Hi Quentin,

Thanks for the reply!  Sorry for my delay back. :)  I haven't been able to 
fully reproduce this on poky, but I got a little more info.

First, we are still seeing the issue with EXTRA_IMAGECMD:squashfs-xz:append 
failing to apply. We are using Langdale and Kirkstone worked fine for us. I 
think I narrowed it down to this change: 
https://github.com/yoctoproject/poky/commit/924854accc46f254b6399fc3cf2613a6597410e3.

Using just poky, I add ` EXTRA_IMAGECMD:squashfs-xz:append = "-processors 
${BB_NUMBER_THREADS} -b 262144 -Xdict-size 100%"` to my local.conf and run 
`bitbake -e core-image-minimal` to check the environment.

At the ` kirkstone-4.0.1` tag, I see
# $EXTRA_IMAGECMD [8 operations] # set 
/home/jmbills/temp/poky/meta/classes/image_types.bbclass:224 # "" # 
override[squashfs-xz]::append /home/jmbills/temp/poky/build/conf/local.conf:41 
# "-processors ${BB_NUMBER_THREADS} -b 262144 -Xdict-size 100%"
So, the override is correctly set.

And I see
# $IMAGE_CMD:squashfs-xz # set 
/home/jmbills/temp/poky/meta/classes/image_types.bbclass:107 # "mksquashfs 
${IMAGE_ROOTFS} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.squashfs-xz 
${EXTRA_IMAGECMD} -noappend -comp xz" IMAGE_CMD:squashfs-xz="mksquashfs 
/home/jmbills/temp/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs
 
/home/jmbills/temp/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/deploy-core-image-minimal-image-complete/core-image-minimal-qemux86-64-20221101211323.rootfs.squashfs-xz
 -noappend -comp xz"

In this case ` ${EXTRA_IMAGECMD}` appears to be empty.

If I then change my local.conf to `EXTRA_IMAGECMD:append = "-processors 
${BB_NUMBER_THREADS} -b 262144 -Xdict-size 100%"` and run `bitbake -e 
core-image-minimal`, I see nothing for the override and
# $IMAGE_CMD:squashfs-xz # set 
/home/jmbills/temp/poky/meta/classes/image_types.bbclass:107 # "mksquashfs 
${IMAGE_ROOTFS} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.squashfs-xz 
${EXTRA_IMAGECMD} -noappend -comp xz" IMAGE_CMD:squashfs-xz="mksquashfs 
/home/jmbills/temp/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs
 
/home/jmbills/temp/poky/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/deploy-core-image-minimal-image-complete/core-image-minimal-qemux86-64-20221101211620.rootfs.squashfs-xz
 -processors 64 -b 262144 -Xdict-size 100% -noappend -comp xz"

In this case ` ${EXTRA_IMAGECMD}` contained my parameters.

If I check out `master`, change my local.conf to 
`EXTRA_IMAGECMD:squashfs-xz:append = "-processors ${BB_NUMBER_THREADS} -b 
262144 -Xdict-size 100%"` to my local.conf and run `bitbake -e 
core-image-minimal`, I see the override again
# $EXTRA_IMAGECMD [8 operations] # set 
/home/jmbills/temp/poky/meta/classes-recipe/image_types.bbclass:245 # "" # 
override[squashfs-xz]::append /home/jmbills/temp/poky/build/conf/local.conf:41 
# "-processors ${BB_NUMBER_THREADS} -b 262144 -Xdict-size 100%"

And for IMAGE_CMD, I see
# $IMAGE_CMD:squashfs-xz # set 
/home/jmbills/temp/poky/meta/classes-recipe/image_types.bbclass:121 # 
"oe_mksquashfs xz" IMAGE_CMD:squashfs-xz="oe_mksquashfs xz"

I don't know how to confirm this with poky, but from this it appears that the 
override for squashfs-xz (which is correct in both versions) gets applied later 
during bitbake execution. I don't know how that override gets applied, but if 
it gets appended to IMAGE_CMD:squashfs-xz, then with Kirkstone, the parameters 
would be applied to the end of the mksquashfs command and would work correctly.

But in master, if those parameters get appended, would they be passed to 
"oe_mksquashfs"? Or could they be dropped during the override step since they 
are applied onto "oe_mksquashfs" rather than mksquashfs directly?

Thanks again for your help!
-Jason
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58463): https://lists.yoctoproject.org/g/yocto/message/58463
Mute This Topic: https://lists.yoctoproject.org/mt/94004657/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to