diff mbox series

[master,4/4,v3] meta-ti-bsp: conf: machine: include: Build initramfs for all K3 platforms

Message ID 20250930134131.1149453-5-m-shah@ti.com
State New
Headers show
Series Add recipes to build initramfs image | expand

Commit Message

Moteen Shah Sept. 30, 2025, 1:41 p.m. UTC
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 | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Comments

Denys Dmytriyenko Sept. 30, 2025, 10:11 p.m. UTC | #1
On Tue, Sep 30, 2025 at 07:11:31PM +0530, Moteen Shah via lists.yoctoproject.org wrote:
> 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 | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc
> index 50411a8e..69684a15 100644
> --- a/meta-ti-bsp/conf/machine/include/k3.inc
> +++ b/meta-ti-bsp/conf/machine/include/k3.inc
> @@ -43,7 +43,12 @@ 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_CORE_INITRD_IMAGE ?= ""

The variable name still uses INITRD here - please be consistent.


> +BUILD_CORE_INITRD_IMAGE:bsp-mainline = "ti-core-initramfs:do_image_complete"
> +BUILD_CORE_INITRD_IMAGE:bsp-next = "ti-core-initramfs:do_image_complete"
> +do_image_complete[depends] += "${BUILD_CORE_INITRD_IMAGE}"
> +
> +IMAGE_BOOT_FILES ?= "${SPL_BINARYNAME} u-boot.${UBOOT_SUFFIX} tiboot3.bin tiboot3-*-evm.bin ti-core-initramfs.cpio.xz"

ti-core-initramfs.cpio.xz gets added here unconditionally - what if it's not 
enabled and is not getting built?


>  IMAGE_EFI_BOOT_FILES ?= "${IMAGE_BOOT_FILES}"
>  
>  EFI_PROVIDER ?= "grub-efi"
> -- 
> 2.34.1
diff mbox series

Patch

diff --git a/meta-ti-bsp/conf/machine/include/k3.inc b/meta-ti-bsp/conf/machine/include/k3.inc
index 50411a8e..69684a15 100644
--- a/meta-ti-bsp/conf/machine/include/k3.inc
+++ b/meta-ti-bsp/conf/machine/include/k3.inc
@@ -43,7 +43,12 @@  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_CORE_INITRD_IMAGE ?= ""
+BUILD_CORE_INITRD_IMAGE:bsp-mainline = "ti-core-initramfs:do_image_complete"
+BUILD_CORE_INITRD_IMAGE:bsp-next = "ti-core-initramfs:do_image_complete"
+do_image_complete[depends] += "${BUILD_CORE_INITRD_IMAGE}"
+
+IMAGE_BOOT_FILES ?= "${SPL_BINARYNAME} u-boot.${UBOOT_SUFFIX} tiboot3.bin tiboot3-*-evm.bin ti-core-initramfs.cpio.xz"
 IMAGE_EFI_BOOT_FILES ?= "${IMAGE_BOOT_FILES}"
 
 EFI_PROVIDER ?= "grub-efi"