summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorSandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>2023-01-08 10:25:34 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-26 23:39:06 +0000
commit7a23e13b251bf8b4121635d7d2752580ab7861a2 (patch)
tree16b3446003945a75ec5024763da37e3d89281cc7 /meta
parentcd1acece79d1219a9d7850ac0d82a904e5e41541 (diff)
downloadpoky-7a23e13b251bf8b4121635d7d2752580ab7861a2.tar.gz
kernel-fitimage: Adjust order of dtb/dtbo files
The dtb files must be before the dtbo files, otherwise the overlays may not be applied correctly. From Bruce Ashfield: We can split between dtbs and dtbos, they just need to be sorted for reproducibility reasons. Of course, this was only working by luck previously (before the sort), since it has always been gathering dtbs and dtbo's with find, depending on filesystem ordering for the order in the fitimage). (From OE-Core rev: bc1690632a1f85f364430c9fc7dc675cfe00d085) Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes-recipe/kernel-fitimage.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes-recipe/kernel-fitimage.bbclass b/meta/classes-recipe/kernel-fitimage.bbclass
index 8ddebf8dd8..06cdc4f1ec 100644
--- a/meta/classes-recipe/kernel-fitimage.bbclass
+++ b/meta/classes-recipe/kernel-fitimage.bbclass
@@ -546,10 +546,11 @@ fitimage_assemble() {
546 546
547 if [ -n "${EXTERNAL_KERNEL_DEVICETREE}" ]; then 547 if [ -n "${EXTERNAL_KERNEL_DEVICETREE}" ]; then
548 dtbcount=1 548 dtbcount=1
549 for DTB in $(find "${EXTERNAL_KERNEL_DEVICETREE}" \( -name '*.dtb' -o -name '*.dtbo' \) -printf '%P\n' | sort); do 549 for DTB in $(find "${EXTERNAL_KERNEL_DEVICETREE}" -name '*.dtb' -printf '%P\n' | sort) \
550 $(find "${EXTERNAL_KERNEL_DEVICETREE}" -name '*.dtbo' -printf '%P\n' | sort); do
550 DTB=$(echo "$DTB" | tr '/' '_') 551 DTB=$(echo "$DTB" | tr '/' '_')
551 552
552 # Skip DTB if we've picked it up previously 553 # Skip DTB/DTBO if we've picked it up previously
553 echo "$DTBS" | tr ' ' '\n' | grep -xq "$DTB" && continue 554 echo "$DTBS" | tr ' ' '\n' | grep -xq "$DTB" && continue
554 555
555 DTBS="$DTBS $DTB" 556 DTBS="$DTBS $DTB"