summaryrefslogtreecommitdiffstats
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:37:05 +0000
commit3edd7714c1b948f5fb4102b1881c2bb26a20a64c (patch)
treeac349cc27b58fd70b713f58faaec4e8ab539ed9c
parentf26e5d7500608c64623619d83b9d52bd76bf8231 (diff)
downloadpoky-3edd7714c1b948f5fb4102b1881c2bb26a20a64c.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: ca91d226e3e1671872bea9de55510545598acf91) Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Steve Sakoman <steve@sakoman.com> (cherry picked from commit 3df94d3c93707f03c501f8aa56450457d0f7fb71) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/kernel-fitimage.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass
index 983392c23a..3cd4a45bbe 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -540,10 +540,11 @@ fitimage_assemble() {
540 540
541 if [ -n "${EXTERNAL_KERNEL_DEVICETREE}" ]; then 541 if [ -n "${EXTERNAL_KERNEL_DEVICETREE}" ]; then
542 dtbcount=1 542 dtbcount=1
543 for DTB in $(find "${EXTERNAL_KERNEL_DEVICETREE}" \( -name '*.dtb' -o -name '*.dtbo' \) -printf '%P\n' | sort); do 543 for DTB in $(find "${EXTERNAL_KERNEL_DEVICETREE}" -name '*.dtb' -printf '%P\n' | sort) \
544 $(find "${EXTERNAL_KERNEL_DEVICETREE}" -name '*.dtbo' -printf '%P\n' | sort); do
544 DTB=$(echo "$DTB" | tr '/' '_') 545 DTB=$(echo "$DTB" | tr '/' '_')
545 546
546 # Skip DTB if we've picked it up previously 547 # Skip DTB/DTBO if we've picked it up previously
547 echo "$DTBS" | tr ' ' '\n' | grep -xq "$DTB" && continue 548 echo "$DTBS" | tr ' ' '\n' | grep -xq "$DTB" && continue
548 549
549 DTBS="$DTBS $DTB" 550 DTBS="$DTBS $DTB"