diff options
| author | Ryan Eatmon <reatmon@ti.com> | 2026-02-12 09:00:08 -0600 |
|---|---|---|
| committer | Ryan Eatmon <reatmon@ti.com> | 2026-02-12 09:11:19 -0600 |
| commit | 77de8a110a0d443f0a81f540da78b7a3610ff978 (patch) | |
| tree | 3358856f8c05ea6c0b0eac97491f8a03ed743349 | |
| parent | 300f2a8d00287c79919e73b4692797b0a9f82f23 (diff) | |
| download | meta-ti-77de8a110a0d443f0a81f540da78b7a3610ff978.tar.gz | |
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 <reatmon@ti.com>
| -rw-r--r-- | meta-ti-bsp/conf/machine/include/ti-core-initramfs.inc | 3 | ||||
| -rw-r--r-- | 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 @@ | |||
| 5 | # TI_CORE_INITRAMFS_ENABLED = "0" | 5 | # TI_CORE_INITRAMFS_ENABLED = "0" |
| 6 | # | 6 | # |
| 7 | #------------------------------------------------------------------------------ | 7 | #------------------------------------------------------------------------------ |
| 8 | TI_CORE_INITRAMFS_ENABLED ?= "${@ '1' if d.getVar('TI_CORE_INITRAMFS_KERNEL_MODULES') else '0'}" | 8 | TI_CORE_INITRAMFS_ENABLED ?= "${@ '1' if d.getVar('TI_CORE_INITRAMFS_KERNEL_MODULES') or d.getVar('TI_CORE_INITRAMFS_EXTRA_INSTALL') else '0'}" |
| 9 | 9 | ||
| 10 | TI_CORE_INITRAMFS_KERNEL_MODULES ?= "" | 10 | TI_CORE_INITRAMFS_KERNEL_MODULES ?= "" |
| 11 | TI_CORE_INITRAMFS_EXTRA_INSTALL ?= "" | ||
| 11 | 12 | ||
| 12 | TI_CORE_INITRAMFS_IMAGE = "ti-core-initramfs" | 13 | TI_CORE_INITRAMFS_IMAGE = "ti-core-initramfs" |
| 13 | TI_CORE_INITRAMFS_IMAGE_FILE = "${TI_CORE_INITRAMFS_IMAGE}.cpio.xz" | 14 | 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" | |||
| 15 | 15 | ||
| 16 | export IMAGE_BASENAME = "${IMAGE_NAME}" | 16 | export IMAGE_BASENAME = "${IMAGE_NAME}" |
| 17 | 17 | ||
| 18 | PACKAGE_INSTALL = "packagegroup-ti-core-initramfs" | 18 | TI_CORE_INITRAMFS_EXTRA_INSTALL ?= "" |
| 19 | |||
| 20 | PACKAGE_INSTALL = "\ | ||
| 21 | packagegroup-ti-core-initramfs \ | ||
| 22 | ${TI_CORE_INITRAMFS_EXTRA_INSTALL} \ | ||
| 23 | " | ||
| 19 | 24 | ||
| 20 | # Ensure the initramfs only contains the bare minimum | 25 | # Ensure the initramfs only contains the bare minimum |
| 21 | IMAGE_FEATURES = "" | 26 | IMAGE_FEATURES = "" |
