diff mbox series

[master,v2,3/6] ti-kernel-fitimage: extend default FIT image wrapper

Message ID 20250702014616.100136-3-denis@denix.org
State New
Headers show
Series [master,v2,1/6] beagle-bsp: unset KERNEL_DEVICETREE_PREFIX | expand

Commit Message

Denys Dmytriyenko July 2, 2025, 1:46 a.m. UTC
From: Denys Dmytriyenko <denys@konsulko.com>

OE-Core provides default FIT image wrapper, but we need to extend it
with support for the dynamic devicetree prefix matching. While at it,
also use the correct kernel version from PKGV. Both of these use the
shared kernel sources tree, hence ensure it's available before any
processing.

Since old behavior was putting vendor subdir as a sanitized prefix
for each DTB entry as "ti_", U-boot expects corresponding config
entries to also contain the same - update conf prefix accordingly.

Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
---
v2 - set conf prefix to contain sanitized vendor subdir

 meta-ti-bsp/recipes-kernel/linux/ti-kernel-fitimage.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta-ti-bsp/recipes-kernel/linux/ti-kernel-fitimage.bb
diff mbox series

Patch

diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-kernel-fitimage.bb b/meta-ti-bsp/recipes-kernel/linux/ti-kernel-fitimage.bb
new file mode 100644
index 00000000..dae76387
--- /dev/null
+++ b/meta-ti-bsp/recipes-kernel/linux/ti-kernel-fitimage.bb
@@ -0,0 +1,8 @@ 
+FIT_DESC ?= "Kernel fitImage for ${DISTRO_NAME}/${PKGV}/${MACHINE}"
+FIT_CONF_PREFIX ?= "conf-ti_"
+
+require recipes-kernel/linux/linux-yocto-fitimage.bb
+
+include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''}
+
+do_compile[depends] += "virtual/kernel:do_shared_workdir"