From 40b4bf2b2b7fcb2550f2290fa2b9c99ab507f246 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Thu, 23 Mar 2017 01:27:35 +0100 Subject: 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 --- meta/classes/kernel-fitimage.bbclass | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass index 1bcb09c598..d2c9d6e202 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}" -- cgit 1.2.3-korg