All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] wic: bootimg-partition allow to set var to get boot files
@ 2024-03-23 19:53 Anibal Limon
  2024-03-23 19:53 ` [PATCH 2/2] wic: plugins source bootimage/isoimage rename to allow be imported Anibal Limon
  0 siblings, 1 reply; 15+ messages in thread
From: Anibal Limon @ 2024-03-23 19:53 UTC (permalink / raw)
  To: openembedded-core; +Cc: richard.purdie, ross.burton, Anibal Limon

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



^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2025-05-30 20:06 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-23 19:53 [PATCH 1/2] wic: bootimg-partition allow to set var to get boot files Anibal Limon
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.