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

* [PATCH 2/2] wic: plugins source bootimage/isoimage rename to allow be imported
  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 ` Anibal Limon
  2024-03-25 10:18   ` [OE-core] " Alexandre Belloni
  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

Python not support importing modules with - so change to _.

Signed-off-by: Anibal Limon <anibal@limonsoftware.com>
---
 .../source/{bootimg-biosplusefi.py => bootimg_biosplusefi.py}     | 0
 scripts/lib/wic/plugins/source/{bootimg-efi.py => bootimg_efi.py} | 0
 .../plugins/source/{bootimg-partition.py => bootimg_partition.py} | 0
 .../wic/plugins/source/{bootimg-pcbios.py => bootimg_pcbios.py}   | 0
 .../source/{isoimage-isohybrid.py => isoimage_isohybrid.py}       | 0
 5 files changed, 0 insertions(+), 0 deletions(-)
 rename scripts/lib/wic/plugins/source/{bootimg-biosplusefi.py => bootimg_biosplusefi.py} (100%)
 rename scripts/lib/wic/plugins/source/{bootimg-efi.py => bootimg_efi.py} (100%)
 rename scripts/lib/wic/plugins/source/{bootimg-partition.py => bootimg_partition.py} (100%)
 rename scripts/lib/wic/plugins/source/{bootimg-pcbios.py => bootimg_pcbios.py} (100%)
 rename scripts/lib/wic/plugins/source/{isoimage-isohybrid.py => isoimage_isohybrid.py} (100%)

diff --git a/scripts/lib/wic/plugins/source/bootimg-biosplusefi.py b/scripts/lib/wic/plugins/source/bootimg_biosplusefi.py
similarity index 100%
rename from scripts/lib/wic/plugins/source/bootimg-biosplusefi.py
rename to scripts/lib/wic/plugins/source/bootimg_biosplusefi.py
diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg_efi.py
similarity index 100%
rename from scripts/lib/wic/plugins/source/bootimg-efi.py
rename to scripts/lib/wic/plugins/source/bootimg_efi.py
diff --git a/scripts/lib/wic/plugins/source/bootimg-partition.py b/scripts/lib/wic/plugins/source/bootimg_partition.py
similarity index 100%
rename from scripts/lib/wic/plugins/source/bootimg-partition.py
rename to scripts/lib/wic/plugins/source/bootimg_partition.py
diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py b/scripts/lib/wic/plugins/source/bootimg_pcbios.py
similarity index 100%
rename from scripts/lib/wic/plugins/source/bootimg-pcbios.py
rename to scripts/lib/wic/plugins/source/bootimg_pcbios.py
diff --git a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py b/scripts/lib/wic/plugins/source/isoimage_isohybrid.py
similarity index 100%
rename from scripts/lib/wic/plugins/source/isoimage-isohybrid.py
rename to scripts/lib/wic/plugins/source/isoimage_isohybrid.py
-- 
2.43.0



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

* Re: [OE-core] [PATCH 2/2] wic: plugins source bootimage/isoimage rename to allow be imported
  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   ` Alexandre Belloni
  2024-03-25 14:39     ` Anibal Limon
       [not found]     ` <17C008DA5E69D9E5.27941@lists.openembedded.org>
  0 siblings, 2 replies; 15+ messages in thread
From: Alexandre Belloni @ 2024-03-25 10:18 UTC (permalink / raw)
  To: Anibal Limon; +Cc: openembedded-core, richard.purdie, ross.burton

This breaks some selftests and meta-virtualization:

https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/6573/steps/14/logs/stdio

https://autobuilder.yoctoproject.org/typhoon/#/builders/128/builds/3005/steps/12/logs/stdio


On 23/03/2024 13:53:04-0600, Anibal Limon wrote:
> Python not support importing modules with - so change to _.
> 
> Signed-off-by: Anibal Limon <anibal@limonsoftware.com>
> ---
>  .../source/{bootimg-biosplusefi.py => bootimg_biosplusefi.py}     | 0
>  scripts/lib/wic/plugins/source/{bootimg-efi.py => bootimg_efi.py} | 0
>  .../plugins/source/{bootimg-partition.py => bootimg_partition.py} | 0
>  .../wic/plugins/source/{bootimg-pcbios.py => bootimg_pcbios.py}   | 0
>  .../source/{isoimage-isohybrid.py => isoimage_isohybrid.py}       | 0
>  5 files changed, 0 insertions(+), 0 deletions(-)
>  rename scripts/lib/wic/plugins/source/{bootimg-biosplusefi.py => bootimg_biosplusefi.py} (100%)
>  rename scripts/lib/wic/plugins/source/{bootimg-efi.py => bootimg_efi.py} (100%)
>  rename scripts/lib/wic/plugins/source/{bootimg-partition.py => bootimg_partition.py} (100%)
>  rename scripts/lib/wic/plugins/source/{bootimg-pcbios.py => bootimg_pcbios.py} (100%)
>  rename scripts/lib/wic/plugins/source/{isoimage-isohybrid.py => isoimage_isohybrid.py} (100%)
> 
> diff --git a/scripts/lib/wic/plugins/source/bootimg-biosplusefi.py b/scripts/lib/wic/plugins/source/bootimg_biosplusefi.py
> similarity index 100%
> rename from scripts/lib/wic/plugins/source/bootimg-biosplusefi.py
> rename to scripts/lib/wic/plugins/source/bootimg_biosplusefi.py
> diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg_efi.py
> similarity index 100%
> rename from scripts/lib/wic/plugins/source/bootimg-efi.py
> rename to scripts/lib/wic/plugins/source/bootimg_efi.py
> diff --git a/scripts/lib/wic/plugins/source/bootimg-partition.py b/scripts/lib/wic/plugins/source/bootimg_partition.py
> similarity index 100%
> rename from scripts/lib/wic/plugins/source/bootimg-partition.py
> rename to scripts/lib/wic/plugins/source/bootimg_partition.py
> diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py b/scripts/lib/wic/plugins/source/bootimg_pcbios.py
> similarity index 100%
> rename from scripts/lib/wic/plugins/source/bootimg-pcbios.py
> rename to scripts/lib/wic/plugins/source/bootimg_pcbios.py
> diff --git a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py b/scripts/lib/wic/plugins/source/isoimage_isohybrid.py
> similarity index 100%
> rename from scripts/lib/wic/plugins/source/isoimage-isohybrid.py
> rename to scripts/lib/wic/plugins/source/isoimage_isohybrid.py
> -- 
> 2.43.0
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#197471): https://lists.openembedded.org/g/openembedded-core/message/197471
> Mute This Topic: https://lists.openembedded.org/mt/105108998/3617179
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


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

* Re: [OE-core] [PATCH 2/2] wic: plugins source bootimage/isoimage rename to allow be imported
  2024-03-25 10:18   ` [OE-core] " Alexandre Belloni
@ 2024-03-25 14:39     ` Anibal Limon
  2025-05-29 20:06       ` Ross Burton
       [not found]     ` <17C008DA5E69D9E5.27941@lists.openembedded.org>
  1 sibling, 1 reply; 15+ messages in thread
From: Anibal Limon @ 2024-03-25 14:39 UTC (permalink / raw)
  To: Alexandre Belloni; +Cc: openembedded-core, Richard Purdie, ross.burton

[-- Attachment #1: Type: text/plain, Size: 3522 bytes --]

Hi,

Thanks for reporting, I will adapt the tests.

Regards,
Anibal

On Mon, Mar 25, 2024, 04:18 Alexandre Belloni <alexandre.belloni@bootlin.com>
wrote:

> This breaks some selftests and meta-virtualization:
>
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/6573/steps/14/logs/stdio
>
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/128/builds/3005/steps/12/logs/stdio
>
>
> On 23/03/2024 13:53:04-0600, Anibal Limon wrote:
> > Python not support importing modules with - so change to _.
> >
> > Signed-off-by: Anibal Limon <anibal@limonsoftware.com>
> > ---
> >  .../source/{bootimg-biosplusefi.py => bootimg_biosplusefi.py}     | 0
> >  scripts/lib/wic/plugins/source/{bootimg-efi.py => bootimg_efi.py} | 0
> >  .../plugins/source/{bootimg-partition.py => bootimg_partition.py} | 0
> >  .../wic/plugins/source/{bootimg-pcbios.py => bootimg_pcbios.py}   | 0
> >  .../source/{isoimage-isohybrid.py => isoimage_isohybrid.py}       | 0
> >  5 files changed, 0 insertions(+), 0 deletions(-)
> >  rename scripts/lib/wic/plugins/source/{bootimg-biosplusefi.py =>
> bootimg_biosplusefi.py} (100%)
> >  rename scripts/lib/wic/plugins/source/{bootimg-efi.py =>
> bootimg_efi.py} (100%)
> >  rename scripts/lib/wic/plugins/source/{bootimg-partition.py =>
> bootimg_partition.py} (100%)
> >  rename scripts/lib/wic/plugins/source/{bootimg-pcbios.py =>
> bootimg_pcbios.py} (100%)
> >  rename scripts/lib/wic/plugins/source/{isoimage-isohybrid.py =>
> isoimage_isohybrid.py} (100%)
> >
> > diff --git a/scripts/lib/wic/plugins/source/bootimg-biosplusefi.py
> b/scripts/lib/wic/plugins/source/bootimg_biosplusefi.py
> > similarity index 100%
> > rename from scripts/lib/wic/plugins/source/bootimg-biosplusefi.py
> > rename to scripts/lib/wic/plugins/source/bootimg_biosplusefi.py
> > diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py
> b/scripts/lib/wic/plugins/source/bootimg_efi.py
> > similarity index 100%
> > rename from scripts/lib/wic/plugins/source/bootimg-efi.py
> > rename to scripts/lib/wic/plugins/source/bootimg_efi.py
> > diff --git a/scripts/lib/wic/plugins/source/bootimg-partition.py
> b/scripts/lib/wic/plugins/source/bootimg_partition.py
> > similarity index 100%
> > rename from scripts/lib/wic/plugins/source/bootimg-partition.py
> > rename to scripts/lib/wic/plugins/source/bootimg_partition.py
> > diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py
> b/scripts/lib/wic/plugins/source/bootimg_pcbios.py
> > similarity index 100%
> > rename from scripts/lib/wic/plugins/source/bootimg-pcbios.py
> > rename to scripts/lib/wic/plugins/source/bootimg_pcbios.py
> > diff --git a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
> b/scripts/lib/wic/plugins/source/isoimage_isohybrid.py
> > similarity index 100%
> > rename from scripts/lib/wic/plugins/source/isoimage-isohybrid.py
> > rename to scripts/lib/wic/plugins/source/isoimage_isohybrid.py
> > --
> > 2.43.0
> >
>
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#197471):
> https://lists.openembedded.org/g/openembedded-core/message/197471
> > Mute This Topic: https://lists.openembedded.org/mt/105108998/3617179
> > Group Owner: openembedded-core+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> alexandre.belloni@bootlin.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
>
>
> --
> Alexandre Belloni, co-owner and COO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
>

[-- Attachment #2: Type: text/html, Size: 5270 bytes --]

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

* Re: [OE-core] [PATCH 2/2] wic: plugins source bootimage/isoimage rename to allow be imported
       [not found]     ` <17C008DA5E69D9E5.27941@lists.openembedded.org>
@ 2025-05-04 20:34       ` Anibal Limon
       [not found]       ` <183C6D415DE5406F.22941@lists.openembedded.org>
  1 sibling, 0 replies; 15+ messages in thread
From: Anibal Limon @ 2025-05-04 20:34 UTC (permalink / raw)
  To: anibal; +Cc: Alexandre Belloni, openembedded-core, Richard Purdie,
	bruce.ashfield

[-- Attachment #1: Type: text/plain, Size: 4043 bytes --]

Hi,

Finally sent a patch to meta-virtualization, to fix the problem when rename
the wic source plugins to allow re-use.

https://lists.yoctoproject.org/g/meta-virtualization/message/9240

Cheers!,
Anibal

On Mon, Mar 25, 2024 at 8:39 AM Anibal Limon via lists.openembedded.org
<anibal=limonsoftware.com@lists.openembedded.org> wrote:

> Hi,
>
> Thanks for reporting, I will adapt the tests.
>
> Regards,
> Anibal
>
> On Mon, Mar 25, 2024, 04:18 Alexandre Belloni <
> alexandre.belloni@bootlin.com> wrote:
>
>> This breaks some selftests and meta-virtualization:
>>
>>
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/6573/steps/14/logs/stdio
>>
>>
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/128/builds/3005/steps/12/logs/stdio
>>
>>
>> On 23/03/2024 13:53:04-0600, Anibal Limon wrote:
>> > Python not support importing modules with - so change to _.
>> >
>> > Signed-off-by: Anibal Limon <anibal@limonsoftware.com>
>> > ---
>> >  .../source/{bootimg-biosplusefi.py => bootimg_biosplusefi.py}     | 0
>> >  scripts/lib/wic/plugins/source/{bootimg-efi.py => bootimg_efi.py} | 0
>> >  .../plugins/source/{bootimg-partition.py => bootimg_partition.py} | 0
>> >  .../wic/plugins/source/{bootimg-pcbios.py => bootimg_pcbios.py}   | 0
>> >  .../source/{isoimage-isohybrid.py => isoimage_isohybrid.py}       | 0
>> >  5 files changed, 0 insertions(+), 0 deletions(-)
>> >  rename scripts/lib/wic/plugins/source/{bootimg-biosplusefi.py =>
>> bootimg_biosplusefi.py} (100%)
>> >  rename scripts/lib/wic/plugins/source/{bootimg-efi.py =>
>> bootimg_efi.py} (100%)
>> >  rename scripts/lib/wic/plugins/source/{bootimg-partition.py =>
>> bootimg_partition.py} (100%)
>> >  rename scripts/lib/wic/plugins/source/{bootimg-pcbios.py =>
>> bootimg_pcbios.py} (100%)
>> >  rename scripts/lib/wic/plugins/source/{isoimage-isohybrid.py =>
>> isoimage_isohybrid.py} (100%)
>> >
>> > diff --git a/scripts/lib/wic/plugins/source/bootimg-biosplusefi.py
>> b/scripts/lib/wic/plugins/source/bootimg_biosplusefi.py
>> > similarity index 100%
>> > rename from scripts/lib/wic/plugins/source/bootimg-biosplusefi.py
>> > rename to scripts/lib/wic/plugins/source/bootimg_biosplusefi.py
>> > diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py
>> b/scripts/lib/wic/plugins/source/bootimg_efi.py
>> > similarity index 100%
>> > rename from scripts/lib/wic/plugins/source/bootimg-efi.py
>> > rename to scripts/lib/wic/plugins/source/bootimg_efi.py
>> > diff --git a/scripts/lib/wic/plugins/source/bootimg-partition.py
>> b/scripts/lib/wic/plugins/source/bootimg_partition.py
>> > similarity index 100%
>> > rename from scripts/lib/wic/plugins/source/bootimg-partition.py
>> > rename to scripts/lib/wic/plugins/source/bootimg_partition.py
>> > diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py
>> b/scripts/lib/wic/plugins/source/bootimg_pcbios.py
>> > similarity index 100%
>> > rename from scripts/lib/wic/plugins/source/bootimg-pcbios.py
>> > rename to scripts/lib/wic/plugins/source/bootimg_pcbios.py
>> > diff --git a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
>> b/scripts/lib/wic/plugins/source/isoimage_isohybrid.py
>> > similarity index 100%
>> > rename from scripts/lib/wic/plugins/source/isoimage-isohybrid.py
>> > rename to scripts/lib/wic/plugins/source/isoimage_isohybrid.py
>> > --
>> > 2.43.0
>> >
>>
>> >
>> >
>> >
>>
>>
>> --
>> Alexandre Belloni, co-owner and COO, Bootlin
>> Embedded Linux and Kernel engineering
>> https://bootlin.com
>>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#197487):
> https://lists.openembedded.org/g/openembedded-core/message/197487
> Mute This Topic: https://lists.openembedded.org/mt/105108998/8181911
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> anibal@limonsoftware.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 6082 bytes --]

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

* Re: [OE-core] [PATCH 2/2] wic: plugins source bootimage/isoimage rename to allow be imported
       [not found]       ` <183C6D415DE5406F.22941@lists.openembedded.org>
@ 2025-05-20 14:20         ` Anibal Limon
  2025-05-26 12:01           ` Richard Purdie
  0 siblings, 1 reply; 15+ messages in thread
From: Anibal Limon @ 2025-05-20 14:20 UTC (permalink / raw)
  To: anibal; +Cc: Alexandre Belloni, openembedded-core, Richard Purdie,
	bruce.ashfield

[-- Attachment #1: Type: text/plain, Size: 4452 bytes --]

Just a ping.

After apply this Bruce will apply the meta-virt one,

https://lists.yoctoproject.org/g/meta-virtualization/message/9252

Thanks!,
Anibal

On Sun, May 4, 2025 at 2:34 PM Anibal Limon via lists.openembedded.org
<anibal=limonsoftware.com@lists.openembedded.org> wrote:

> Hi,
>
> Finally sent a patch to meta-virtualization, to fix the problem when
> rename the wic source plugins to allow re-use.
>
> https://lists.yoctoproject.org/g/meta-virtualization/message/9240
>
> Cheers!,
> Anibal
>
> On Mon, Mar 25, 2024 at 8:39 AM Anibal Limon via lists.openembedded.org
> <anibal=limonsoftware.com@lists.openembedded.org> wrote:
>
>> Hi,
>>
>> Thanks for reporting, I will adapt the tests.
>>
>> Regards,
>> Anibal
>>
>> On Mon, Mar 25, 2024, 04:18 Alexandre Belloni <
>> alexandre.belloni@bootlin.com> wrote:
>>
>>> This breaks some selftests and meta-virtualization:
>>>
>>>
>>> https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/6573/steps/14/logs/stdio
>>>
>>>
>>> https://autobuilder.yoctoproject.org/typhoon/#/builders/128/builds/3005/steps/12/logs/stdio
>>>
>>>
>>> On 23/03/2024 13:53:04-0600, Anibal Limon wrote:
>>> > Python not support importing modules with - so change to _.
>>> >
>>> > Signed-off-by: Anibal Limon <anibal@limonsoftware.com>
>>> > ---
>>> >  .../source/{bootimg-biosplusefi.py => bootimg_biosplusefi.py}     | 0
>>> >  scripts/lib/wic/plugins/source/{bootimg-efi.py => bootimg_efi.py} | 0
>>> >  .../plugins/source/{bootimg-partition.py => bootimg_partition.py} | 0
>>> >  .../wic/plugins/source/{bootimg-pcbios.py => bootimg_pcbios.py}   | 0
>>> >  .../source/{isoimage-isohybrid.py => isoimage_isohybrid.py}       | 0
>>> >  5 files changed, 0 insertions(+), 0 deletions(-)
>>> >  rename scripts/lib/wic/plugins/source/{bootimg-biosplusefi.py =>
>>> bootimg_biosplusefi.py} (100%)
>>> >  rename scripts/lib/wic/plugins/source/{bootimg-efi.py =>
>>> bootimg_efi.py} (100%)
>>> >  rename scripts/lib/wic/plugins/source/{bootimg-partition.py =>
>>> bootimg_partition.py} (100%)
>>> >  rename scripts/lib/wic/plugins/source/{bootimg-pcbios.py =>
>>> bootimg_pcbios.py} (100%)
>>> >  rename scripts/lib/wic/plugins/source/{isoimage-isohybrid.py =>
>>> isoimage_isohybrid.py} (100%)
>>> >
>>> > diff --git a/scripts/lib/wic/plugins/source/bootimg-biosplusefi.py
>>> b/scripts/lib/wic/plugins/source/bootimg_biosplusefi.py
>>> > similarity index 100%
>>> > rename from scripts/lib/wic/plugins/source/bootimg-biosplusefi.py
>>> > rename to scripts/lib/wic/plugins/source/bootimg_biosplusefi.py
>>> > diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py
>>> b/scripts/lib/wic/plugins/source/bootimg_efi.py
>>> > similarity index 100%
>>> > rename from scripts/lib/wic/plugins/source/bootimg-efi.py
>>> > rename to scripts/lib/wic/plugins/source/bootimg_efi.py
>>> > diff --git a/scripts/lib/wic/plugins/source/bootimg-partition.py
>>> b/scripts/lib/wic/plugins/source/bootimg_partition.py
>>> > similarity index 100%
>>> > rename from scripts/lib/wic/plugins/source/bootimg-partition.py
>>> > rename to scripts/lib/wic/plugins/source/bootimg_partition.py
>>> > diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py
>>> b/scripts/lib/wic/plugins/source/bootimg_pcbios.py
>>> > similarity index 100%
>>> > rename from scripts/lib/wic/plugins/source/bootimg-pcbios.py
>>> > rename to scripts/lib/wic/plugins/source/bootimg_pcbios.py
>>> > diff --git a/scripts/lib/wic/plugins/source/isoimage-isohybrid.py
>>> b/scripts/lib/wic/plugins/source/isoimage_isohybrid.py
>>> > similarity index 100%
>>> > rename from scripts/lib/wic/plugins/source/isoimage-isohybrid.py
>>> > rename to scripts/lib/wic/plugins/source/isoimage_isohybrid.py
>>> > --
>>> > 2.43.0
>>> >
>>>
>>> >
>>> >
>>> >
>>>
>>>
>>> --
>>> Alexandre Belloni, co-owner and COO, Bootlin
>>> Embedded Linux and Kernel engineering
>>> https://bootlin.com
>>>
>>
>>
>>
>>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#215972):
> https://lists.openembedded.org/g/openembedded-core/message/215972
> Mute This Topic: https://lists.openembedded.org/mt/105108998/8181911
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> anibal@limonsoftware.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 6939 bytes --]

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

* Re: [OE-core] [PATCH 2/2] wic: plugins source bootimage/isoimage rename to allow be imported
  2025-05-20 14:20         ` Anibal Limon
@ 2025-05-26 12:01           ` Richard Purdie
  2025-05-26 16:30             ` Anibal Limon
  0 siblings, 1 reply; 15+ messages in thread
From: Richard Purdie @ 2025-05-26 12:01 UTC (permalink / raw)
  To: Anibal Limon; +Cc: Alexandre Belloni, openembedded-core, bruce.ashfield

On Tue, 2025-05-20 at 08:20 -0600, Anibal Limon wrote:
> Just a ping. 
> 
> After apply this Bruce will apply the meta-virt one,
> 
> https://lists.yoctoproject.org/g/meta-virtualization/message/9252

I put this in for testing and there are multiple references in OE-Core
which also need renaming as without that we see a ton of failures. I've
gone ahead and put a potential patch in master-next but I'm a bit
worried the needed thought/planning for a major change like this hasn't
happened.

I understand the need to make it, we do need to support existing users
somehow though.

Cheers,

Richard


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

* Re: [OE-core] [PATCH 2/2] wic: plugins source bootimage/isoimage rename to allow be imported
  2025-05-26 12:01           ` Richard Purdie
@ 2025-05-26 16:30             ` Anibal Limon
  2025-05-27  8:04               ` Richard Purdie
  0 siblings, 1 reply; 15+ messages in thread
From: Anibal Limon @ 2025-05-26 16:30 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Alexandre Belloni, openembedded-core, bruce.ashfield

[-- Attachment #1: Type: text/plain, Size: 851 bytes --]

Hi Richard,

Yeah, I understand, let me know any further breakage I can fix.

Cheers!,
Anibal

On Mon, May 26, 2025 at 6:01 AM Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:

> On Tue, 2025-05-20 at 08:20 -0600, Anibal Limon wrote:
> > Just a ping.
> >
> > After apply this Bruce will apply the meta-virt one,
> >
> > https://lists.yoctoproject.org/g/meta-virtualization/message/9252
>
> I put this in for testing and there are multiple references in OE-Core
> which also need renaming as without that we see a ton of failures. I've
> gone ahead and put a potential patch in master-next but I'm a bit
> worried the needed thought/planning for a major change like this hasn't
> happened.
>
> I understand the need to make it, we do need to support existing users
> somehow though.
>
> Cheers,
>
> Richard
>

[-- Attachment #2: Type: text/html, Size: 1398 bytes --]

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

* Re: [OE-core] [PATCH 2/2] wic: plugins source bootimage/isoimage rename to allow be imported
  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>
  0 siblings, 2 replies; 15+ messages in thread
From: Richard Purdie @ 2025-05-27  8:04 UTC (permalink / raw)
  To: Anibal Limon; +Cc: Alexandre Belloni, openembedded-core, bruce.ashfield

Hi Anibal,

On Mon, 2025-05-26 at 10:30 -0600, Anibal Limon wrote:
> Yeah, I understand, let me know any further breakage I can fix.

I have patches for oe-core and meta-yocto to fix the issues there.
meta-virtualization fails, I believe you have fixes for that. meta-arm
and meta-intel also showed issues:

https://autobuilder.yoctoproject.org/valkyrie/#/builders/75/builds/1599

https://autobuilder.yoctoproject.org/valkyrie/#/builders/41/builds/1561
https://autobuilder.yoctoproject.org/valkyrie/#/builders/89/builds/1574

I think the missing pieces to get this merged are:

* A note for the migration guide explaining what changed and how to fix
it

* A tweak to wic to warn about "-" characters in the plugin name. This
might be able to translate "-" to "_" with a warning to allow some kind
of slightly easier migration? At the very least we should give users a
better error with a hint about how to fix it.

Cheers,

Richard


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

* Re: [OE-core] [PATCH 2/2] wic: plugins source bootimage/isoimage rename to allow be imported
  2025-05-27  8:04               ` Richard Purdie
@ 2025-05-27 15:58                 ` Anibal Limon
       [not found]                 ` <18436D8E0CEF2CEC.13855@lists.openembedded.org>
  1 sibling, 0 replies; 15+ messages in thread
From: Anibal Limon @ 2025-05-27 15:58 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Alexandre Belloni, openembedded-core, bruce.ashfield

[-- Attachment #1: Type: text/plain, Size: 1199 bytes --]

I will fix the failures and add the proper migration doc to the patch.

Thanks!,
Anibal

On Tue, May 27, 2025 at 2:04 AM Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:

> Hi Anibal,
>
> On Mon, 2025-05-26 at 10:30 -0600, Anibal Limon wrote:
> > Yeah, I understand, let me know any further breakage I can fix.
>
> I have patches for oe-core and meta-yocto to fix the issues there.
> meta-virtualization fails, I believe you have fixes for that. meta-arm
> and meta-intel also showed issues:
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/75/builds/1599
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/41/builds/1561
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/89/builds/1574
>
> I think the missing pieces to get this merged are:
>
> * A note for the migration guide explaining what changed and how to fix
> it
>
> * A tweak to wic to warn about "-" characters in the plugin name. This
> might be able to translate "-" to "_" with a warning to allow some kind
> of slightly easier migration? At the very least we should give users a
> better error with a hint about how to fix it.
>
> Cheers,
>
> Richard
>

[-- Attachment #2: Type: text/html, Size: 2002 bytes --]

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

* Re: [OE-core] [PATCH 2/2] wic: plugins source bootimage/isoimage rename to allow be imported
       [not found]                 ` <18436D8E0CEF2CEC.13855@lists.openembedded.org>
@ 2025-05-28  1:04                   ` Anibal Limon
  0 siblings, 0 replies; 15+ messages in thread
From: Anibal Limon @ 2025-05-28  1:04 UTC (permalink / raw)
  To: anibal; +Cc: Richard Purdie, Alexandre Belloni, openembedded-core,
	bruce.ashfield

[-- Attachment #1: Type: text/plain, Size: 1966 bytes --]

Update, I cannot reproduce meta-intel and meta-arm, I will look at
autobuilder full config to see if I found something I missed.

On Tue, May 27, 2025 at 9:58 AM Anibal Limon via lists.openembedded.org
<anibal=limonsoftware.com@lists.openembedded.org> wrote:

> I will fix the failures and add the proper migration doc to the patch.
>
> Thanks!,
> Anibal
>
> On Tue, May 27, 2025 at 2:04 AM Richard Purdie <
> richard.purdie@linuxfoundation.org> wrote:
>
>> Hi Anibal,
>>
>> On Mon, 2025-05-26 at 10:30 -0600, Anibal Limon wrote:
>> > Yeah, I understand, let me know any further breakage I can fix.
>>
>> I have patches for oe-core and meta-yocto to fix the issues there.
>> meta-virtualization fails, I believe you have fixes for that. meta-arm
>> and meta-intel also showed issues:
>>
>> https://autobuilder.yoctoproject.org/valkyrie/#/builders/75/builds/1599
>>
>> https://autobuilder.yoctoproject.org/valkyrie/#/builders/41/builds/1561
>> https://autobuilder.yoctoproject.org/valkyrie/#/builders/89/builds/1574
>>
>> I think the missing pieces to get this merged are:
>>
>> * A note for the migration guide explaining what changed and how to fix
>> it
>>
>> * A tweak to wic to warn about "-" characters in the plugin name. This
>> might be able to translate "-" to "_" with a warning to allow some kind
>> of slightly easier migration? At the very least we should give users a
>> better error with a hint about how to fix it.
>>
>> Cheers,
>>
>> Richard
>>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#217313):
> https://lists.openembedded.org/g/openembedded-core/message/217313
> Mute This Topic: https://lists.openembedded.org/mt/105108998/8181911
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> anibal@limonsoftware.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 3556 bytes --]

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

* Re: [OE-core] [PATCH 2/2] wic: plugins source bootimage/isoimage rename to allow be imported
  2024-03-25 14:39     ` Anibal Limon
@ 2025-05-29 20:06       ` Ross Burton
  2025-05-29 23:22         ` Anibal Limon
  0 siblings, 1 reply; 15+ messages in thread
From: Ross Burton @ 2025-05-29 20:06 UTC (permalink / raw)
  To: anibal@limonsoftware.com
  Cc: Alexandre Belloni, openembedded-core@lists.openembedded.org,
	Richard Purdie

On 25 Mar 2024, at 14:39, Anibal Limon via lists.openembedded.org <anibal=limonsoftware.com@lists.openembedded.org> wrote:
> Thanks for reporting, I will adapt the tests.

Without having to rewrite all of the documentation and existing files, why doesn’t wic just normalise the plugin name that it reads to replace all - with _?

This means you can still import the module names, but doesn’t change existing behaviour at all.

Ross

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

* Re: [OE-core] [PATCH 2/2] wic: plugins source bootimage/isoimage rename to allow be imported
  2025-05-29 20:06       ` Ross Burton
@ 2025-05-29 23:22         ` Anibal Limon
  2025-05-30  6:45           ` Richard Purdie
  0 siblings, 1 reply; 15+ messages in thread
From: Anibal Limon @ 2025-05-29 23:22 UTC (permalink / raw)
  To: Ross Burton
  Cc: Alexandre Belloni, openembedded-core@lists.openembedded.org,
	Richard Purdie

[-- Attachment #1: Type: text/plain, Size: 775 bytes --]

On Thu, May 29, 2025 at 2:06 PM Ross Burton <Ross.Burton@arm.com> wrote:

> On 25 Mar 2024, at 14:39, Anibal Limon via lists.openembedded.org <anibal=
> limonsoftware.com@lists.openembedded.org> wrote:
> > Thanks for reporting, I will adapt the tests.
>
> Without having to rewrite all of the documentation and existing files, why
> doesn’t wic just normalise the plugin name that it reads to replace all -
> with _?
>
> This means you can still import the module names, but doesn’t change
> existing behaviour at all.
>

Hi Ross,

So to normalize you mean change python module name from _ to - at runtime?.
The plugins already had a name attr with '-', the issue is when trying to
import from an external module.

Regards!,
Anibal


>
> Ross

[-- Attachment #2: Type: text/html, Size: 1496 bytes --]

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

* Re: [OE-core] [PATCH 2/2] wic: plugins source bootimage/isoimage rename to allow be imported
  2025-05-29 23:22         ` Anibal Limon
@ 2025-05-30  6:45           ` Richard Purdie
  2025-05-30 20:06             ` Anibal Limon
  0 siblings, 1 reply; 15+ messages in thread
From: Richard Purdie @ 2025-05-30  6:45 UTC (permalink / raw)
  To: Anibal Limon, Ross Burton
  Cc: Alexandre Belloni, openembedded-core@lists.openembedded.org

On Thu, 2025-05-29 at 17:22 -0600, Anibal Limon wrote:
> 
> 
> On Thu, May 29, 2025 at 2:06 PM Ross Burton <Ross.Burton@arm.com>
> wrote:
> > On 25 Mar 2024, at 14:39, Anibal Limon via lists.openembedded.org
> > <anibal=limonsoftware.com@lists.openembedded.org> wrote:
> > > Thanks for reporting, I will adapt the tests.
> > 
> > Without having to rewrite all of the documentation and existing
> > files, why doesn’t wic just normalise the plugin name that it reads
> > to replace all - with _?
> > 
> > This means you can still import the module names, but doesn’t
> > change existing behaviour at all.
> 
> So to normalize you mean change python module name from _ to - at
> runtime?.
> The plugins already had a name attr with '-', the issue is when
> trying to import from an external module.

What Ross is suggesting is that in the code in wic which parses the
commandline parameters, we could add a line of code to change "-" in
plugin names to "_". We'd need to tweak what gets parsed from the wks
files too.

This would make the migration easier. We may or may not want to issue a
warning at the same time so the user can know to update their wks file
or command.

Cheers,

Richard


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

* Re: [OE-core] [PATCH 2/2] wic: plugins source bootimage/isoimage rename to allow be imported
  2025-05-30  6:45           ` Richard Purdie
@ 2025-05-30 20:06             ` Anibal Limon
  0 siblings, 0 replies; 15+ messages in thread
From: Anibal Limon @ 2025-05-30 20:06 UTC (permalink / raw)
  To: Richard Purdie
  Cc: Ross Burton, Alexandre Belloni,
	openembedded-core@lists.openembedded.org

[-- Attachment #1: Type: text/plain, Size: 1573 bytes --]

On Fri, May 30, 2025 at 12:45 AM Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:

> On Thu, 2025-05-29 at 17:22 -0600, Anibal Limon wrote:
> >
> >
> > On Thu, May 29, 2025 at 2:06 PM Ross Burton <Ross.Burton@arm.com>
> > wrote:
> > > On 25 Mar 2024, at 14:39, Anibal Limon via lists.openembedded.org
> > > <anibal=limonsoftware.com@lists.openembedded.org> wrote:
> > > > Thanks for reporting, I will adapt the tests.
> > >
> > > Without having to rewrite all of the documentation and existing
> > > files, why doesn’t wic just normalise the plugin name that it reads
> > > to replace all - with _?
> > >
> > > This means you can still import the module names, but doesn’t
> > > change existing behaviour at all.
> >
> > So to normalize you mean change python module name from _ to - at
> > runtime?.
> > The plugins already had a name attr with '-', the issue is when
> > trying to import from an external module.
>
> What Ross is suggesting is that in the code in wic which parses the
> commandline parameters, we could add a line of code to change "-" in
> plugin names to "_". We'd need to tweak what gets parsed from the wks
> files too.
>

Yeah, I find the plugin manager when plugins are loaded.


>
> This would make the migration easier. We may or may not want to issue a
> warning at the same time so the user can know to update their wks file
> or command.
>

Sure, I think it starts with a warning and then makes the switch at some
point or not.

 Regards!,
Anibal

>
> Cheers,
>
> Richard
>

[-- Attachment #2: Type: text/html, Size: 2674 bytes --]

^ permalink raw reply	[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.