Skip to contentSkip to conversation

meta-ti-bsp: Add KERNEL_DEVICETREE_PREFIX logic to Arago images

PATCH In review Ryan Eatmon 2 participants 3 messages Jul 23, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 meta-ti-bsp: Add KERNEL_DEVICETREE_PREFIX logic to Arago images

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.

---
v2: Changed guard variable from arago to ti-soc and renamed .inc file.

 meta-ti-bsp/conf/layer.conf                                   | 1 +
 .../meta-arago-distro/recipes-core/images/image-ti.inc        | 3 +++
 .../recipes-core/images/tisdk-base-image.bbappend             | 4 ++++
 .../recipes-core/images/tisdk-bootstrap-base-image.bbappend   | 4 ++++
 .../recipes-core/images/tisdk-bootstrap-image.bbappend        | 4 ++++
 .../recipes-core/images/tisdk-default-image.bbappend          | 4 ++++
 .../recipes-core/images/tisdk-thinlinux-image.bbappend        | 4 ++++
 .../recipes-core/images/tisdk-tiny-image.bbappend             | 4 ++++
 8 files changed, 28 insertions(+)
 create mode 100644 meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/image-ti.inc
 create mode 100644 meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-base-image.bbappend
 create mode 100644 meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-bootstrap-base-image.bbappend
 create mode 100644 meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-bootstrap-image.bbappend
 create mode 100644 meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-default-image.bbappend
 create mode 100644 meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-thinlinux-image.bbappend
 create mode 100644 meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bbappend
meta-ti-bsp/conf/layer.conf +1 -0
index e3a28628..02519f76 100644
@@ -23,6 +23,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 \
 "
 
meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/image-ti.inc new file +3 -0
new file mode 100644
index 00000000..31c6b6f7
@@ -0,0 +1,3 @@
+include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''}
+
+do_image_wic[depends] += "virtual/kernel:do_shared_workdir"
meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-base-image.bbappend new file +4 -0
new file mode 100644
index 00000000..db5a0dc5
@@ -0,0 +1,4 @@
+IMAGE_TI = ""
+IMAGE_TI:ti-soc = "image-ti.inc"
+
+require ${IMAGE_TI}
meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-bootstrap-base-image.bbappend new file +4 -0
new file mode 100644
index 00000000..db5a0dc5
@@ -0,0 +1,4 @@
+IMAGE_TI = ""
+IMAGE_TI:ti-soc = "image-ti.inc"
+
+require ${IMAGE_TI}
meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-bootstrap-image.bbappend new file +4 -0
new file mode 100644
index 00000000..db5a0dc5
@@ -0,0 +1,4 @@
+IMAGE_TI = ""
+IMAGE_TI:ti-soc = "image-ti.inc"
+
+require ${IMAGE_TI}
meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-default-image.bbappend new file +4 -0
new file mode 100644
index 00000000..db5a0dc5
@@ -0,0 +1,4 @@
+IMAGE_TI = ""
+IMAGE_TI:ti-soc = "image-ti.inc"
+
+require ${IMAGE_TI}
meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-thinlinux-image.bbappend new file +4 -0
new file mode 100644
index 00000000..db5a0dc5
@@ -0,0 +1,4 @@
+IMAGE_TI = ""
+IMAGE_TI:ti-soc = "image-ti.inc"
+
+require ${IMAGE_TI}
meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bbappend new file +4 -0
new file mode 100644
index 00000000..db5a0dc5
@@ -0,0 +1,4 @@
+IMAGE_TI = ""
+IMAGE_TI:ti-soc = "image-ti.inc"
+
+require ${IMAGE_TI}
Signature · 1 line
2.17.1
#1 lore raw

PATCH v2 2/2 meta-ti-bsp: Add KERNEL_DEVICETREE_PREFIX logic to Poky images

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.

---
v2: Changed guard variable from poky to ti-soc and renamed .inc file.

 meta-ti-bsp/conf/layer.conf                                      | 1 +
 .../recipes-core/images/core-image-base.bbappend}                | 0
 .../recipes-core/images/core-image-minimal.bbappend}             | 0
 .../{meta-arago-distro => core}/recipes-core/images/image-ti.inc | 0
 4 files changed, 1 insertion(+)
 copy meta-ti-bsp/dynamic-layers/{meta-arago-distro/recipes-core/images/tisdk-base-image.bbappend => core/recipes-core/images/core-image-base.bbappend} (100%)
 copy meta-ti-bsp/dynamic-layers/{meta-arago-distro/recipes-core/images/tisdk-base-image.bbappend => core/recipes-core/images/core-image-minimal.bbappend} (100%)
 copy meta-ti-bsp/dynamic-layers/{meta-arago-distro => core}/recipes-core/images/image-ti.inc (100%)
meta-ti-bsp/conf/layer.conf +1 -0
index 02519f76..828814ce 100644
@@ -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 += " \
meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-base.bbappend renamed from meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-base-image.bbappend +0 -0
similarity index 100%
copy from meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-base-image.bbappend
copy to meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-base.bbappend
meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-minimal.bbappend renamed from meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-base-image.bbappend +0 -0
similarity index 100%
copy from meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-base-image.bbappend
copy to meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-minimal.bbappend
meta-ti-bsp/dynamic-layers/core/recipes-core/images/image-ti.inc renamed from meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/image-ti.inc +0 -0
similarity index 100%
copy from meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/image-ti.inc
copy to meta-ti-bsp/dynamic-layers/core/recipes-core/images/image-ti.inc
Signature · 1 line
2.17.1
#2 lore raw

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

Quoted 9 lines · Ryan Eatmon via lists.yoctoproject.org

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.

---

So will we need to do this for all images then, even custom ones? Seems messy, is there no way we can bubble up this KERNEL_DEVICETREE_PREFIX support into a more core layer. It seems like something that would be useful beyond just TI.

Maybe we could find a way with a custom kernel-devicetree.bbclass in our layer until then also.

Andrew

Quoted 46 lines

v2: Changed guard variable from poky to ti-soc and renamed .inc file.

  meta-ti-bsp/conf/layer.conf                                      | 1 +
  .../recipes-core/images/core-image-base.bbappend}                | 0
  .../recipes-core/images/core-image-minimal.bbappend}             | 0
  .../{meta-arago-distro => core}/recipes-core/images/image-ti.inc | 0
  4 files changed, 1 insertion(+)

copy meta-ti-bsp/dynamic-layers/{meta-arago-distro/recipes-core/images/tisdk-base-image.bbappend => core/recipes-core/images/core-image-base.bbappend} (100%) copy meta-ti-bsp/dynamic-layers/{meta-arago-distro/recipes-core/images/tisdk-base-image.bbappend => core/recipes-core/images/core-image-minimal.bbappend} (100%) copy meta-ti-bsp/dynamic-layers/{meta-arago-distro => core}/recipes-core/images/image-ti.inc (100%)

meta-ti-bsp/conf/layer.conf +1 -0
index 02519f76..828814ce 100644
@@ -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 += " \
meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-base.bbappend renamed from meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-base-image.bbappend +0 -0
similarity index 100%
copy from meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-base-image.bbappend
copy to meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-base.bbappend
meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-minimal.bbappend renamed from meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-base-image.bbappend +0 -0
similarity index 100%
copy from meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-base-image.bbappend
copy to meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-minimal.bbappend
meta-ti-bsp/dynamic-layers/core/recipes-core/images/image-ti.inc renamed from meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/image-ti.inc +0 -1
similarity index 100%
copy from meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/image-ti.inc
copy to meta-ti-bsp/dynamic-layers/core/recipes-core/images/image-ti.inc
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

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