summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/kernel-fitimage.bbclass
diff options
context:
space:
mode:
authorSandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>2023-01-04 15:09:01 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-12 23:08:51 +0000
commite6cb132072d086ecc458a259a5c5425431f4697c (patch)
tree0e409569d9822d08f9285d3654b1f60921083470 /meta/classes-recipe/kernel-fitimage.bbclass
parentf2df3e0681ec15b984cb45cc76ba10c9a49483e8 (diff)
downloadpoky-e6cb132072d086ecc458a259a5c5425431f4697c.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: bcb3c0272f6ab846c3232548df1e1182bcc67486) Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/kernel-fitimage.bbclass')
-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 7980910aa8..92e236a0a4 100644
--- a/meta/classes-recipe/kernel-fitimage.bbclass
+++ b/meta/classes-recipe/kernel-fitimage.bbclass
@@ -590,8 +590,9 @@ fitimage_assemble() {
590 590
591 if [ -n "${EXTERNAL_KERNEL_DEVICETREE}" ]; then 591 if [ -n "${EXTERNAL_KERNEL_DEVICETREE}" ]; then
592 dtbcount=1 592 dtbcount=1
593 for DTB in $(find "${EXTERNAL_KERNEL_DEVICETREE}" \( -name '*.dtb' -o -name '*.dtbo' \) -printf '%P\n' | sort); do 593 for DTB in $(find "${EXTERNAL_KERNEL_DEVICETREE}" -name '*.dtb' -printf '%P\n' | sort) \
594 # Skip DTB if we've picked it up previously 594 $(find "${EXTERNAL_KERNEL_DEVICETREE}" -name '*.dtbo' -printf '%P\n' | sort); do
595 # Skip DTB/DTBO if we've picked it up previously
595 echo "$DTBS" | tr ' ' '\n' | grep -xq "$DTB" && continue 596 echo "$DTBS" | tr ' ' '\n' | grep -xq "$DTB" && continue
596 597
597 DTBS="$DTBS $DTB" 598 DTBS="$DTBS $DTB"