summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Eatmon <reatmon@ti.com>2025-07-23 16:32:56 -0500
committerRyan Eatmon <reatmon@ti.com>2025-07-24 08:55:15 -0500
commitf2a6a1cd1c6d56b54ac768768e70325d061fa0cf (patch)
treead816ba479ea037558d74c7485391ce7dd665733
parented492d5a4fa4329ffb3e1ca469cc050193395229 (diff)
downloadmeta-ti-f2a6a1cd1c6d56b54ac768768e70325d061fa0cf.tar.gz
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. Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rw-r--r--meta-ti-bsp/conf/layer.conf1
-rw-r--r--meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-base.bbappend4
-rw-r--r--meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-minimal.bbappend4
-rw-r--r--meta-ti-bsp/dynamic-layers/core/recipes-core/images/image-ti.inc3
4 files changed, 12 insertions, 0 deletions
diff --git a/meta-ti-bsp/conf/layer.conf b/meta-ti-bsp/conf/layer.conf
index f7835459..10067159 100644
--- a/meta-ti-bsp/conf/layer.conf
+++ b/meta-ti-bsp/conf/layer.conf
@@ -25,6 +25,7 @@ LAYERRECOMMENDS_meta-ti-bsp = " \
25BBFILES_DYNAMIC += " \ 25BBFILES_DYNAMIC += " \
26 meta-arago-distro:${LAYERDIR}/dynamic-layers/meta-arago-distro/recipes*/*/*.bbappend \ 26 meta-arago-distro:${LAYERDIR}/dynamic-layers/meta-arago-distro/recipes*/*/*.bbappend \
27 openembedded-layer:${LAYERDIR}/dynamic-layers/openembedded-layer/recipes*/*/*.bbappend \ 27 openembedded-layer:${LAYERDIR}/dynamic-layers/openembedded-layer/recipes*/*/*.bbappend \
28 core:${LAYERDIR}/dynamic-layers/core/recipes*/*/*.bbappend \
28" 29"
29 30
30SIGGEN_EXCLUDERECIPES_ABISAFE += " \ 31SIGGEN_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..db5a0dc5
--- /dev/null
+++ b/meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-base.bbappend
@@ -0,0 +1,4 @@
1IMAGE_TI = ""
2IMAGE_TI:ti-soc = "image-ti.inc"
3
4require ${IMAGE_TI}
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..db5a0dc5
--- /dev/null
+++ b/meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-minimal.bbappend
@@ -0,0 +1,4 @@
1IMAGE_TI = ""
2IMAGE_TI:ti-soc = "image-ti.inc"
3
4require ${IMAGE_TI}
diff --git a/meta-ti-bsp/dynamic-layers/core/recipes-core/images/image-ti.inc b/meta-ti-bsp/dynamic-layers/core/recipes-core/images/image-ti.inc
new file mode 100644
index 00000000..31c6b6f7
--- /dev/null
+++ b/meta-ti-bsp/dynamic-layers/core/recipes-core/images/image-ti.inc
@@ -0,0 +1,3 @@
1include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''}
2
3do_image_wic[depends] += "virtual/kernel:do_shared_workdir"