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=08f766fa4f0c53e17895aca3b7c598b855f64955;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 179185b6b23..b31992999f6 100644 --- a/meta/classes/kernel-fitimage.bbclass +++ b/meta/classes/kernel-fitimage.bbclass @@ -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}"