]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
uki.bbclass: use basename for dtbs available via KERNEL_DEVICETREE
authorRicardo Salveti <ricardo@foundries.io>
Thu, 20 Nov 2025 02:06:33 +0000 (23:06 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Nov 2025 10:51:16 +0000 (10:51 +0000)
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.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/classes-recipe/uki.bbclass

index fedff222c6c5dda61e04c578bc7f337a580e1bd4..a2b1c8a82d6f06d571c1418c7c4ffeb70e2796a5 100644 (file)
@@ -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)