]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
kernel-fitimage.bbclass: search dtb in all subdirectories of arch/*/boot
authorAndreas Oberritter <obi@opendreambox.org>
Thu, 23 Mar 2017 00:27:35 +0000 (01:27 +0100)
committerAndreas Oberritter <obi@opendreambox.org>
Thu, 2 Jul 2020 10:18:39 +0000 (12:18 +0200)
Some architectures, like arm64, organize dts files in vendor
subdirectories.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
meta/classes/kernel-fitimage.bbclass

index 1bcb09c59885178b0288ea61ceca609669345742..d2c9d6e202194ae8bdd0f455626e491c1d530169 100644 (file)
@@ -374,10 +374,7 @@ fitimage_assemble() {
                                bbwarn "${DTB} contains the full path to the the dts file, but only the dtb name should be used."
                                DTB=`basename ${DTB} | sed 's,\.dts$,.dtb,g'`
                        fi
-                       DTB_PATH="arch/${ARCH}/boot/dts/${DTB}"
-                       if [ ! -e "${DTB_PATH}" ]; then
-                               DTB_PATH="arch/${ARCH}/boot/${DTB}"
-                       fi
+                       DTB_PATH=`find arch/${ARCH}/boot -name "${DTB}"`
 
                        DTB=$(echo "${DTB}" | tr '/' '_')
                        DTBS="${DTBS} ${DTB}"