From 77de8a110a0d443f0a81f540da78b7a3610ff978 Mon Sep 17 00:00:00 2001 From: Ryan Eatmon Date: Thu, 12 Feb 2026 09:00:08 -0600 Subject: [PATCH] ti-core-initramfs: Add TI_CORE_INITRAMFS_EXTRA_INSTALL Add TI_CORE_INITRAMFS_EXTRA_INSTALL variable that another layer can use to install additional packages/changes into the initramfs. Setting this variable will also turn on the initramfs even if the platform does not have kernel modules to include. Signed-off-by: Ryan Eatmon --- meta-ti-bsp/conf/machine/include/ti-core-initramfs.inc | 3 ++- meta-ti-bsp/recipes-ti/initramfs/ti-core-initramfs.bb | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/meta-ti-bsp/conf/machine/include/ti-core-initramfs.inc b/meta-ti-bsp/conf/machine/include/ti-core-initramfs.inc index 3b749e37..9d3cc612 100644 --- a/meta-ti-bsp/conf/machine/include/ti-core-initramfs.inc +++ b/meta-ti-bsp/conf/machine/include/ti-core-initramfs.inc @@ -5,9 +5,10 @@ # TI_CORE_INITRAMFS_ENABLED = "0" # #------------------------------------------------------------------------------ -TI_CORE_INITRAMFS_ENABLED ?= "${@ '1' if d.getVar('TI_CORE_INITRAMFS_KERNEL_MODULES') else '0'}" +TI_CORE_INITRAMFS_ENABLED ?= "${@ '1' if d.getVar('TI_CORE_INITRAMFS_KERNEL_MODULES') or d.getVar('TI_CORE_INITRAMFS_EXTRA_INSTALL') else '0'}" TI_CORE_INITRAMFS_KERNEL_MODULES ?= "" +TI_CORE_INITRAMFS_EXTRA_INSTALL ?= "" TI_CORE_INITRAMFS_IMAGE = "ti-core-initramfs" TI_CORE_INITRAMFS_IMAGE_FILE = "${TI_CORE_INITRAMFS_IMAGE}.cpio.xz" diff --git a/meta-ti-bsp/recipes-ti/initramfs/ti-core-initramfs.bb b/meta-ti-bsp/recipes-ti/initramfs/ti-core-initramfs.bb index ddf4e5b4..0180f09e 100644 --- a/meta-ti-bsp/recipes-ti/initramfs/ti-core-initramfs.bb +++ b/meta-ti-bsp/recipes-ti/initramfs/ti-core-initramfs.bb @@ -15,7 +15,12 @@ IMAGE_NAME = "ti-core-initramfs" export IMAGE_BASENAME = "${IMAGE_NAME}" -PACKAGE_INSTALL = "packagegroup-ti-core-initramfs" +TI_CORE_INITRAMFS_EXTRA_INSTALL ?= "" + +PACKAGE_INSTALL = "\ + packagegroup-ti-core-initramfs \ + ${TI_CORE_INITRAMFS_EXTRA_INSTALL} \ +" # Ensure the initramfs only contains the bare minimum IMAGE_FEATURES = ""