]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
classes: image_types: apply EXTRA_IMAGECMD:squashfs* in oe_mksquashfs()
authorMartin Hundeb?ll <martin@geanix.com>
Mon, 6 May 2024 12:24:13 +0000 (14:24 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 May 2024 08:47:06 +0000 (09:47 +0100)
commite6c1e3a65c3672473dcd01e4a950f89b70121d6b
tree80e344547671ba27615ae7c8bd1250e2f44bff3b
parentbc91a95ad96faa644241833a883cc63608dd59c2
classes: image_types: apply EXTRA_IMAGECMD:squashfs* in oe_mksquashfs()

Since commit c991f9d6031 ("image_types: Set SOURCE_DATE_EPOCH for squashfs"),
I assume, the EXTRA_IMAGECMD:squashfs* variable(s) has been ignored.
This is due to the override magic, which isn't applied to functions
called by IMAGE_CMD:<type>, but only to the IMAGE_CMD:<type> itself.

Other image types (e.g. ext*) works around this by passing the
EXTRA_IMAGECMD variable as an argument to the called function.

To do the same for oe_mksquashfs(), the number of mandatory arguments is
fixed to one (with a little logic to handle the zstd filename). This
allows passing ${EXTRA_IMAGECMD} as an argument to oe_mksquashfs(),
which makes the variable functional again.

Signed-off-by: Martin Hundebøll <martin@geanix.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/image_types.bbclass