]> 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>
Mon, 8 Apr 2019 11:49:57 +0000 (13:49 +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 179185b6b236157987e91ae80e487eb31e207ed6..b31992999f677a34a5871ec1ef308ff1fb600f02 100644 (file)
@@ -348,10 +348,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}"