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 <[email protected]>
---
 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 = ""
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19503): 
https://lists.yoctoproject.org/g/meta-ti/message/19503
Mute This Topic: https://lists.yoctoproject.org/mt/117775500/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to