From: Anibal Limon <anibal@limonsoftware.com>
To: openembedded-core@lists.openembedded.org
Cc: richard.purdie@linuxfoundation.org, ross.burton@arm.com,
Anibal Limon <anibal@limonsoftware.com>
Subject: [PATCH 1/2] wic: bootimg-partition allow to set var to get boot files
Date: Sat, 23 Mar 2024 13:53:03 -0600 [thread overview]
Message-ID: <20240323195304.2909926-1-anibal@limonsoftware.com> (raw)
This is a generic functionality that takes a set of files and create a
boot parition based on IMAGE_BOOT_FILES var, allow to sepcify the
variable name so a BSP plugin can extend this and re-use the
functionality.
Signed-off-by: Anibal Limon <anibal@limonsoftware.com>
---
scripts/lib/wic/plugins/source/bootimg-partition.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/scripts/lib/wic/plugins/source/bootimg-partition.py b/scripts/lib/wic/plugins/source/bootimg-partition.py
index 58f6da72c3..1071d1af3f 100644
--- a/scripts/lib/wic/plugins/source/bootimg-partition.py
+++ b/scripts/lib/wic/plugins/source/bootimg-partition.py
@@ -32,6 +32,7 @@ class BootimgPartitionPlugin(SourcePlugin):
"""
name = 'bootimg-partition'
+ image_boot_files_var_name = 'IMAGE_BOOT_FILES'
@classmethod
def do_configure_partition(cls, part, source_params, cr, cr_workdir,
@@ -56,12 +57,12 @@ class BootimgPartitionPlugin(SourcePlugin):
else:
var = ""
- boot_files = get_bitbake_var("IMAGE_BOOT_FILES" + var)
+ boot_files = get_bitbake_var(cls.image_boot_files_var_name + var)
if boot_files is not None:
break
if boot_files is None:
- raise WicError('No boot files defined, IMAGE_BOOT_FILES unset for entry #%d' % part.lineno)
+ raise WicError('No boot files defined, %s unset for entry #%d' % (cls.image_boot_files_var_name, part.lineno))
logger.debug('Boot files: %s', boot_files)
--
2.43.0
next reply other threads:[~2024-03-23 19:53 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-23 19:53 Anibal Limon [this message]
2024-03-23 19:53 ` [PATCH 2/2] wic: plugins source bootimage/isoimage rename to allow be imported Anibal Limon
2024-03-25 10:18 ` [OE-core] " Alexandre Belloni
2024-03-25 14:39 ` Anibal Limon
2025-05-29 20:06 ` Ross Burton
2025-05-29 23:22 ` Anibal Limon
2025-05-30 6:45 ` Richard Purdie
2025-05-30 20:06 ` Anibal Limon
[not found] ` <17C008DA5E69D9E5.27941@lists.openembedded.org>
2025-05-04 20:34 ` Anibal Limon
[not found] ` <183C6D415DE5406F.22941@lists.openembedded.org>
2025-05-20 14:20 ` Anibal Limon
2025-05-26 12:01 ` Richard Purdie
2025-05-26 16:30 ` Anibal Limon
2025-05-27 8:04 ` Richard Purdie
2025-05-27 15:58 ` Anibal Limon
[not found] ` <18436D8E0CEF2CEC.13855@lists.openembedded.org>
2025-05-28 1:04 ` Anibal Limon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240323195304.2909926-1-anibal@limonsoftware.com \
--to=anibal@limonsoftware.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=richard.purdie@linuxfoundation.org \
--cc=ross.burton@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox