From: Andreas Oberritter Date: Thu, 23 Mar 2017 00:27:35 +0000 (+0100) Subject: kernel-fitimage.bbclass: search dtb in all subdirectories of arch/*/boot X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40b4bf2b2b7fcb2550f2290fa2b9c99ab507f246;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git kernel-fitimage.bbclass: search dtb in all subdirectories of arch/*/boot Some architectures, like arm64, organize dts files in vendor subdirectories. Signed-off-by: Andreas Oberritter --- diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass index 1bcb09c5988..d2c9d6e2021 100644 --- a/meta/classes/kernel-fitimage.bbclass +++ b/meta/classes/kernel-fitimage.bbclass @@ -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}"