diff options
author | Ryan Eatmon <reatmon@ti.com> | 2025-07-23 16:32:56 -0500 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2025-07-24 08:55:15 -0500 |
commit | f2a6a1cd1c6d56b54ac768768e70325d061fa0cf (patch) | |
tree | ad816ba479ea037558d74c7485391ce7dd665733 | |
parent | ed492d5a4fa4329ffb3e1ca469cc050193395229 (diff) | |
download | meta-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>
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 = " \ | |||
25 | BBFILES_DYNAMIC += " \ | 25 | BBFILES_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 | ||
30 | SIGGEN_EXCLUDERECIPES_ABISAFE += " \ | 31 | 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..db5a0dc5 --- /dev/null +++ b/meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-base.bbappend | |||
@@ -0,0 +1,4 @@ | |||
1 | IMAGE_TI = "" | ||
2 | IMAGE_TI:ti-soc = "image-ti.inc" | ||
3 | |||
4 | require ${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 @@ | |||
1 | IMAGE_TI = "" | ||
2 | IMAGE_TI:ti-soc = "image-ti.inc" | ||
3 | |||
4 | require ${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 @@ | |||
1 | include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''} | ||
2 | |||
3 | do_image_wic[depends] += "virtual/kernel:do_shared_workdir" | ||