Skip to contentSkip to conversation

uki.bbclass: use basename for dtbs available via KERNEL_DEVICETREE

PATCH New Ricardo Salveti 1 participant 1 message Nov 20, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uki.bbclass: use basename for dtbs available via KERNEL_DEVICETREE

Device-tree files set via KERNEL_DEVICETREE are deployed without any vendor sub-directory (e.g. arm/juno.dtb gets deployed as juno.dtb).

Same is also done in kernel-fit-image.bbclass.

---
 meta/classes-recipe/uki.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/classes-recipe/uki.bbclass +3 -1
index fedff222c6c..a2b1c8a82d6 100644
@@ -152,7 +152,9 @@ python do_uki() {
     # dtb
     if d.getVar('KERNEL_DEVICETREE'):
         for dtb in d.getVar('KERNEL_DEVICETREE').split():
-            dtb_path = "%s/%s" % (deploy_dir_image, dtb)
+            # DTBs are without sub-directories in deploy_dir
+            dtb_name = os.path.basename(dtb)
+            dtb_path = "%s/%s" % (deploy_dir_image, dtb_name)
             if not os.path.exists(dtb_path):
                 bb.fatal(f"ERROR: cannot find {dtb_path}.")
             ukify_cmd += " --devicetree %s" % (dtb_path)
Signature · 1 line
2.34.1