From a58677ffedd5733ce7eba266bc1ed981d90af2a0 Mon Sep 17 00:00:00 2001 From: Ryan Eatmon Date: Fri, 24 Oct 2025 10:31:50 -0500 Subject: [PATCH] packagegroup-ti-core-initramfs: ensure TI_INITRAMFS_KERNEL_MODULES is set TI_INITRAMFS_KERNEL_MODULES gets set only for TI platfroms and ends up being undefined otherwise, which breaks parsing in yocto-check-layer and/or in multi-BSP setups. Ensure the variable is defined in the packagegroup, if not already set by the machine configuration. Remove the previous default assignment since we put it in the wrong location. Signed-off-by: Denys Dmytriyenko Signed-off-by: Ryan Eatmon --- meta-ti-bsp/conf/machine/include/ti-soc.inc | 2 -- .../recipes-ti/initramfs/packagegroup-ti-core-initramfs.bb | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-ti-bsp/conf/machine/include/ti-soc.inc b/meta-ti-bsp/conf/machine/include/ti-soc.inc index 2e3a1c1b..ca182968 100644 --- a/meta-ti-bsp/conf/machine/include/ti-soc.inc +++ b/meta-ti-bsp/conf/machine/include/ti-soc.inc @@ -29,8 +29,6 @@ CLASS_DEVICETREE_PREFIX = "${@ 'ti-devicetree-prefix' if d.getVar('KERNEL_DEVICE KERNEL_CLASSES += "${CLASS_DEVICETREE_PREFIX}" IMAGE_CLASSES += "${CLASS_DEVICETREE_PREFIX}" -TI_INITRAMFS_KERNEL_MODULES ?= "" - BUILD_CORE_INITRAMFS_IMAGE = "ti-core-initramfs" BUILD_CORE_INITRAMFS_IMAGE_FILE = "${BUILD_CORE_INITRAMFS_IMAGE}.cpio.xz" diff --git a/meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-core-initramfs.bb b/meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-core-initramfs.bb index e9cf5e6b..6845f0c9 100644 --- a/meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-core-initramfs.bb +++ b/meta-ti-bsp/recipes-ti/initramfs/packagegroup-ti-core-initramfs.bb @@ -2,6 +2,8 @@ SUMMARY = "Minimal initramfs for boot requirements" require recipes-core/packagegroups/packagegroup-core-boot.bb +TI_INITRAMFS_KERNEL_MODULES ?= "" + RDEPENDS:${PN} += "\ ${TI_INITRAMFS_KERNEL_MODULES} \ initramfs-framework-base \