diff options
author | Ryan Eatmon <reatmon@ti.com> | 2025-07-23 16:32:55 -0500 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2025-07-24 08:55:15 -0500 |
commit | ed492d5a4fa4329ffb3e1ca469cc050193395229 (patch) | |
tree | 5ea841f26d29f168cf3b56e3b2026db405073511 | |
parent | 8aa6c57ae7d608812db0e2ee14f5c38bd69bbb0f (diff) | |
download | meta-ti-ed492d5a4fa4329ffb3e1ca469cc050193395229.tar.gz |
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.
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
8 files changed, 28 insertions, 0 deletions
diff --git a/meta-ti-bsp/conf/layer.conf b/meta-ti-bsp/conf/layer.conf index cbf7f509..f7835459 100644 --- a/meta-ti-bsp/conf/layer.conf +++ b/meta-ti-bsp/conf/layer.conf | |||
@@ -23,6 +23,7 @@ LAYERRECOMMENDS_meta-ti-bsp = " \ | |||
23 | " | 23 | " |
24 | 24 | ||
25 | BBFILES_DYNAMIC += " \ | 25 | BBFILES_DYNAMIC += " \ |
26 | meta-arago-distro:${LAYERDIR}/dynamic-layers/meta-arago-distro/recipes*/*/*.bbappend \ | ||
26 | openembedded-layer:${LAYERDIR}/dynamic-layers/openembedded-layer/recipes*/*/*.bbappend \ | 27 | openembedded-layer:${LAYERDIR}/dynamic-layers/openembedded-layer/recipes*/*/*.bbappend \ |
27 | " | 28 | " |
28 | 29 | ||
diff --git a/meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/image-ti.inc b/meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/image-ti.inc new file mode 100644 index 00000000..31c6b6f7 --- /dev/null +++ b/meta-ti-bsp/dynamic-layers/meta-arago-distro/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" | ||
diff --git a/meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-base-image.bbappend b/meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-base-image.bbappend new file mode 100644 index 00000000..db5a0dc5 --- /dev/null +++ b/meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-base-image.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/meta-arago-distro/recipes-core/images/tisdk-bootstrap-base-image.bbappend b/meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-bootstrap-base-image.bbappend new file mode 100644 index 00000000..db5a0dc5 --- /dev/null +++ b/meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-bootstrap-base-image.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/meta-arago-distro/recipes-core/images/tisdk-bootstrap-image.bbappend b/meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-bootstrap-image.bbappend new file mode 100644 index 00000000..db5a0dc5 --- /dev/null +++ b/meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-bootstrap-image.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/meta-arago-distro/recipes-core/images/tisdk-default-image.bbappend b/meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-default-image.bbappend new file mode 100644 index 00000000..db5a0dc5 --- /dev/null +++ b/meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-default-image.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/meta-arago-distro/recipes-core/images/tisdk-thinlinux-image.bbappend b/meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-thinlinux-image.bbappend new file mode 100644 index 00000000..db5a0dc5 --- /dev/null +++ b/meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-thinlinux-image.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/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bbappend b/meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bbappend new file mode 100644 index 00000000..db5a0dc5 --- /dev/null +++ b/meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-tiny-image.bbappend | |||
@@ -0,0 +1,4 @@ | |||
1 | IMAGE_TI = "" | ||
2 | IMAGE_TI:ti-soc = "image-ti.inc" | ||
3 | |||
4 | require ${IMAGE_TI} | ||