diff mbox series

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

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

Commit Message

Ryan Eatmon July 23, 2025, 9:32 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>
---
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%)

Comments

Andrew Davis July 23, 2025, 10:24 p.m. UTC | #1
On 7/23/25 4:32 PM, Ryan Eatmon via lists.yoctoproject.org wrote:
> 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>
> ---

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

> 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%)
> 
> 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/meta-arago-distro/recipes-core/images/tisdk-base-image.bbappend b/meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-base.bbappend
> 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
> diff --git a/meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-base-image.bbappend b/meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-minimal.bbappend
> 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
> diff --git a/meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/image-ti.inc b/meta-ti-bsp/dynamic-layers/core/recipes-core/images/image-ti.inc
> 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: meta-ti+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [afd@ti.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
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/meta-arago-distro/recipes-core/images/tisdk-base-image.bbappend b/meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-base.bbappend
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
diff --git a/meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/tisdk-base-image.bbappend b/meta-ti-bsp/dynamic-layers/core/recipes-core/images/core-image-minimal.bbappend
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
diff --git a/meta-ti-bsp/dynamic-layers/meta-arago-distro/recipes-core/images/image-ti.inc b/meta-ti-bsp/dynamic-layers/core/recipes-core/images/image-ti.inc
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