diff mbox series

[meta-ti,master/scarthgap,2/2] meta-ti-bsp: Add KERNEL_DEVICETREE_PREFIX logic to Poky images

Message ID 20250721164531.7051-2-reatmon@ti.com
State Superseded
Delegated to: Ryan Eatmon
Headers show
Series [meta-ti,master/scarthgap,1/2] meta-ti-bsp: Add KERNEL_DEVICETREE_PREFIX logic to Arago images | expand

Commit Message

Ryan Eatmon July 21, 2025, 4:45 p.m. UTC
The boot partition for things like the wic image, use the
KERNEL_DEVICETREE to populate DTBs.  But for the meta-ti-bsp kernels we
tend to rely on the KERNEL_DEVICETREE_PREFIX to glob pull in DTBs
instead of a single list.  So using dynamic layers, we can inject the
proper code to properly resolve the KERNEL_DEVICETREE in each image
file.

Signed-off-by: Ryan Eatmon <reatmon@ti.com>
---
 meta-ti-bsp/conf/layer.conf                                   | 1 +
 .../core/recipes-core/images/core-image-base.bbappend         | 4 ++++
 .../core/recipes-core/images/core-image-minimal.bbappend      | 4 ++++
 .../recipes-core/images/image-poky.inc}                       | 0
 4 files changed, 9 insertions(+)
 create mode 100644 meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-base.bbappend
 create mode 100644 meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-minimal.bbappend
 copy meta-ti-bsp/dynamic-layers/{meta-arago-distro/recipes-core/images/image-arago.inc => core/recipes-core/images/image-poky.inc} (100%)
diff mbox series

Patch

diff --git a/meta-ti-bsp/conf/layer.conf b/meta-ti-bsp/conf/layer.conf
index 02519f76..828814ce 100644
--- a/meta-ti-bsp/conf/layer.conf
+++ b/meta-ti-bsp/conf/layer.conf
@@ -25,6 +25,7 @@  LAYERRECOMMENDS_meta-ti-bsp = " \
 BBFILES_DYNAMIC += " \
     meta-arago-distro:${LAYERDIR}/dynamic-layers/meta-arago-distro/recipes*/*/*.bbappend \
     openembedded-layer:${LAYERDIR}/dynamic-layers/openembedded-layer/recipes*/*/*.bbappend \
+    core:${LAYERDIR}/dynamic-layers/core/recipes*/*/*.bbappend \
 "
 
 SIGGEN_EXCLUDERECIPES_ABISAFE += " \
diff --git a/meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-base.bbappend b/meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-base.bbappend
new file mode 100644
index 00000000..b6c70dc5
--- /dev/null
+++ b/meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-base.bbappend
@@ -0,0 +1,4 @@ 
+IMAGE_POKY = ""
+IMAGE_POKY:poky = "image-poky.inc"
+
+require ${IMAGE_POKY}
diff --git a/meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-minimal.bbappend b/meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-minimal.bbappend
new file mode 100644
index 00000000..b6c70dc5
--- /dev/null
+++ b/meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-minimal.bbappend
@@ -0,0 +1,4 @@ 
+IMAGE_POKY = ""
+IMAGE_POKY:poky = "image-poky.inc"
+
+require ${IMAGE_POKY}
diff --git a/meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/image-arago.inc b/meta-ti-bsp/dynamic-layers/core/recipes-core/images/image-poky.inc
similarity index 100%
copy from meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/image-arago.inc
copy to meta-ti-bsp/dynamic-layers/core/recipes-core/images/image-poky.inc