@@ -33,6 +33,8 @@ MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image-image ti-kernel-fitimage"
TFA_PLATFORM = "k3"
+BUILD_INITRD_IMAGE = ""
+
# Use the expected value of the ubifs filesystem's volume name in the kernel
# and u-boot.
UBI_VOLNAME = "rootfs"
@@ -43,7 +45,11 @@ MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "ti-pka-fw"
IMAGE_FSTYPES += "tar.xz wic.xz wic.bmap"
-IMAGE_BOOT_FILES ?= "${SPL_BINARYNAME} u-boot.${UBOOT_SUFFIX} tiboot3.bin tiboot3-*-evm.bin"
+BUILD_INITRD_IMAGE:bsp-mainline = "ti-initrd-image:do_image_complete"
+BUILD_INITRD_IMAGE:bsp-next = "ti-initrd-image:do_image_complete"
+do_image_complete[depends] += "${BUILD_INITRD_IMAGE}"
+
+IMAGE_BOOT_FILES ?= "${SPL_BINARYNAME} u-boot.${UBOOT_SUFFIX} tiboot3.bin tiboot3-*-evm.bin initrd.cpio.xz"
IMAGE_EFI_BOOT_FILES ?= "${IMAGE_BOOT_FILES}"
EFI_PROVIDER ?= "grub-efi"
Trigger build for initramfs image and package it in the boot partition of all K3 platforms whenever an image recipe is built with upstream kernel(mainline or mainline-next). Signed-off-by: Moteen Shah <m-shah@ti.com> --- meta-ti-bsp/conf/machine/include/k3.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)