public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] imagetypes XZ_OPTIONS replaced by XZ_DEFAULTS defined in bitbake.comf
@ 2023-02-09 22:41 roberto.foglietta
  2023-02-10 10:27 ` Henning Schild
  0 siblings, 1 reply; 5+ messages in thread
From: roberto.foglietta @ 2023-02-09 22:41 UTC (permalink / raw)
  To: isar-users; +Cc: roberto.foglietta, Anton Mikanovich

From: Anton Mikanovich <amikan@ilbers.de>

imagetypes, bugfix

A previous patch moved XZ_ variables declarations into bitbake.conf from
the imagetypes class. In such patch the XZ_OPTIONS has been renamed in
XZ_DEFAULTS but the XZ_ command in imagetype class has not been updated.
This patch fixed this bug which decreases performance and alters the
expected behaviour.

Requires:

 * bitbake.conf: declare default XZ and ZSTD options

Signed-off-by: Roberto A. Foglietta <roberto.foglietta@gmail.com>
---
 meta/classes/imagetypes.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/imagetypes.bbclass b/meta/classes/imagetypes.bbclass
index 0cff440f..7d193d2e 100644
--- a/meta/classes/imagetypes.bbclass
+++ b/meta/classes/imagetypes.bbclass
@@ -98,5 +98,5 @@ IMAGE_CONVERSIONS = "gz xz"
 CONVERSION_CMD:gz = "${SUDO_CHROOT} sh -c 'gzip -f -9 -n -c --rsyncable ${IMAGE_FILE_CHROOT} > ${IMAGE_FILE_CHROOT}.gz'"
 CONVERSION_DEPS:gz = "gzip"
 
-CONVERSION_CMD:xz = "${SUDO_CHROOT} sh -c 'xz -c ${XZ_OPTIONS} ${IMAGE_FILE_CHROOT} > ${IMAGE_FILE_CHROOT}.xz'"
+CONVERSION_CMD:xz = "${SUDO_CHROOT} sh -c 'xz -c ${XZ_DEFAULTS} ${IMAGE_FILE_CHROOT} > ${IMAGE_FILE_CHROOT}.xz'"
 CONVERSION_DEPS:xz = "xz-utils"
-- 
2.34.1


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

* Re: [PATCH] imagetypes XZ_OPTIONS replaced by XZ_DEFAULTS defined in bitbake.comf
  2023-02-09 22:41 [PATCH] imagetypes XZ_OPTIONS replaced by XZ_DEFAULTS defined in bitbake.comf roberto.foglietta
@ 2023-02-10 10:27 ` Henning Schild
  2023-02-10 10:31   ` Henning Schild
  0 siblings, 1 reply; 5+ messages in thread
From: Henning Schild @ 2023-02-10 10:27 UTC (permalink / raw)
  To: roberto.foglietta; +Cc: isar-users, roberto.foglietta, Anton Mikanovich

Am Thu,  9 Feb 2023 23:41:48 +0100
schrieb roberto.foglietta@linuxteam.org:

> From: Anton Mikanovich <amikan@ilbers.de>
> 
> imagetypes, bugfix
> 
> A previous patch moved XZ_ variables declarations into bitbake.conf
> from the imagetypes class. In such patch the XZ_OPTIONS has been
> renamed in XZ_DEFAULTS but the XZ_ command in imagetype class has not
> been updated. This patch fixed this bug which decreases performance
> and alters the expected behaviour.
> 
> Requires:
> 
>  * bitbake.conf: declare default XZ and ZSTD options

Fixes: 924aa382ca26 ("bitbake.conf: declare default XZ and ZSTD options")
> Signed-off-by: Roberto A. Foglietta <roberto.foglietta@gmail.com>

Good catch. ACK, thanks!

Henning

> ---
>  meta/classes/imagetypes.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/classes/imagetypes.bbclass
> b/meta/classes/imagetypes.bbclass index 0cff440f..7d193d2e 100644
> --- a/meta/classes/imagetypes.bbclass
> +++ b/meta/classes/imagetypes.bbclass
> @@ -98,5 +98,5 @@ IMAGE_CONVERSIONS = "gz xz"
>  CONVERSION_CMD:gz = "${SUDO_CHROOT} sh -c 'gzip -f -9 -n -c
> --rsyncable ${IMAGE_FILE_CHROOT} > ${IMAGE_FILE_CHROOT}.gz'"
> CONVERSION_DEPS:gz = "gzip" 
> -CONVERSION_CMD:xz = "${SUDO_CHROOT} sh -c 'xz -c ${XZ_OPTIONS}
> ${IMAGE_FILE_CHROOT} > ${IMAGE_FILE_CHROOT}.xz'" +CONVERSION_CMD:xz =
> "${SUDO_CHROOT} sh -c 'xz -c ${XZ_DEFAULTS} ${IMAGE_FILE_CHROOT} >
> ${IMAGE_FILE_CHROOT}.xz'" CONVERSION_DEPS:xz = "xz-utils"


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

* Re: [PATCH] imagetypes XZ_OPTIONS replaced by XZ_DEFAULTS defined in bitbake.comf
  2023-02-10 10:27 ` Henning Schild
@ 2023-02-10 10:31   ` Henning Schild
  2023-02-10 11:15     ` Roberto A. Foglietta
  0 siblings, 1 reply; 5+ messages in thread
From: Henning Schild @ 2023-02-10 10:31 UTC (permalink / raw)
  To: roberto.foglietta; +Cc: isar-users, roberto.foglietta, Anton Mikanovich

Am Fri, 10 Feb 2023 11:27:14 +0100
schrieb Henning Schild <henning.schild@siemens.com>:

> Am Thu,  9 Feb 2023 23:41:48 +0100
> schrieb roberto.foglietta@linuxteam.org:
> 
> > From: Anton Mikanovich <amikan@ilbers.de>
> > 
> > imagetypes, bugfix
> > 
> > A previous patch moved XZ_ variables declarations into bitbake.conf
> > from the imagetypes class. In such patch the XZ_OPTIONS has been
> > renamed in XZ_DEFAULTS but the XZ_ command in imagetype class has
> > not been updated. This patch fixed this bug which decreases
> > performance and alters the expected behaviour.
> > 
> > Requires:
> > 
> >  * bitbake.conf: declare default XZ and ZSTD options  
> 
> Fixes: 924aa382ca26 ("bitbake.conf: declare default XZ and ZSTD
> options")

Not something isar uses, but it is nice to know and does not do harm.

taken from
https://www.kernel.org/doc/html/v4.17/process/submitting-patches.html#describe-your-changes

last bits of the paragraph

Henning

> > Signed-off-by: Roberto A. Foglietta <roberto.foglietta@gmail.com>  
> 
> Good catch. ACK, thanks!
> 
> Henning
> 
> > ---
> >  meta/classes/imagetypes.bbclass | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/meta/classes/imagetypes.bbclass
> > b/meta/classes/imagetypes.bbclass index 0cff440f..7d193d2e 100644
> > --- a/meta/classes/imagetypes.bbclass
> > +++ b/meta/classes/imagetypes.bbclass
> > @@ -98,5 +98,5 @@ IMAGE_CONVERSIONS = "gz xz"
> >  CONVERSION_CMD:gz = "${SUDO_CHROOT} sh -c 'gzip -f -9 -n -c
> > --rsyncable ${IMAGE_FILE_CHROOT} > ${IMAGE_FILE_CHROOT}.gz'"
> > CONVERSION_DEPS:gz = "gzip" 
> > -CONVERSION_CMD:xz = "${SUDO_CHROOT} sh -c 'xz -c ${XZ_OPTIONS}
> > ${IMAGE_FILE_CHROOT} > ${IMAGE_FILE_CHROOT}.xz'" +CONVERSION_CMD:xz
> > = "${SUDO_CHROOT} sh -c 'xz -c ${XZ_DEFAULTS} ${IMAGE_FILE_CHROOT} >
> > ${IMAGE_FILE_CHROOT}.xz'" CONVERSION_DEPS:xz = "xz-utils"  
> 


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

* Re: [PATCH] imagetypes XZ_OPTIONS replaced by XZ_DEFAULTS defined in bitbake.comf
  2023-02-10 10:31   ` Henning Schild
@ 2023-02-10 11:15     ` Roberto A. Foglietta
  2023-02-10 11:28       ` Henning Schild
  0 siblings, 1 reply; 5+ messages in thread
From: Roberto A. Foglietta @ 2023-02-10 11:15 UTC (permalink / raw)
  To: Henning Schild; +Cc: roberto.foglietta, isar-users, Anton Mikanovich

On Fri, 10 Feb 2023 at 11:32, Henning Schild <henning.schild@siemens.com> wrote:
>
> Not something isar uses, but it is nice to know and does not do harm.
>

ISAR uses this value when producing the .xz image.

I have sent the v2 patch with the patch description correction.

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

* Re: [PATCH] imagetypes XZ_OPTIONS replaced by XZ_DEFAULTS defined in bitbake.comf
  2023-02-10 11:15     ` Roberto A. Foglietta
@ 2023-02-10 11:28       ` Henning Schild
  0 siblings, 0 replies; 5+ messages in thread
From: Henning Schild @ 2023-02-10 11:28 UTC (permalink / raw)
  To: Roberto A. Foglietta; +Cc: roberto.foglietta, isar-users, Anton Mikanovich

Am Fri, 10 Feb 2023 12:15:35 +0100
schrieb "Roberto A. Foglietta" <roberto.foglietta@gmail.com>:

> On Fri, 10 Feb 2023 at 11:32, Henning Schild
> <henning.schild@siemens.com> wrote:
> >
> > Not something isar uses, but it is nice to know and does not do
> > harm. 
> 
> ISAR uses this value when producing the .xz image.

I was talking about the "Fixes:" tag. Not needed but nice to have

Henning

> I have sent the v2 patch with the patch description correction.


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

end of thread, other threads:[~2023-02-10 11:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-09 22:41 [PATCH] imagetypes XZ_OPTIONS replaced by XZ_DEFAULTS defined in bitbake.comf roberto.foglietta
2023-02-10 10:27 ` Henning Schild
2023-02-10 10:31   ` Henning Schild
2023-02-10 11:15     ` Roberto A. Foglietta
2023-02-10 11:28       ` Henning Schild

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox