]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
kernel-fitimage: reduce dependency to the cpio
authorPatrick Williams <patrick@stwcx.xyz>
Mon, 12 Dec 2022 22:18:08 +0000 (16:18 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Dec 2022 23:31:38 +0000 (23:31 +0000)
In order to build a fitimage, we don't need the image to be "complete"
but we need the cpio portion of it built since the cpio is what ends
up inside the FIT.  By reducing the dependency to `do_image_cpio` we
are able to include an image's rootfs as the ramdisk for a FIT and
then bundle that FIT into a larger SPI flash layout.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/classes-recipe/kernel-fitimage.bbclass

index 7980910aa8c4d103a0a20a1a66931b96c283bc2d..ccc132482e9a2775db1b78f2fbc9e825887345f7 100644 (file)
@@ -38,7 +38,7 @@ python __anonymous () {
 
         image = d.getVar('INITRAMFS_IMAGE')
         if image:
-            d.appendVarFlag('do_assemble_fitimage_initramfs', 'depends', ' ${INITRAMFS_IMAGE}:do_image_complete')
+            d.appendVarFlag('do_assemble_fitimage_initramfs', 'depends', ' ${INITRAMFS_IMAGE}:do_image_cpio')
 
         ubootenv = d.getVar('UBOOT_ENV')
         if ubootenv: