diff options
-rw-r--r-- | meta/classes-recipe/kernel-fitimage.bbclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes-recipe/kernel-fitimage.bbclass b/meta/classes-recipe/kernel-fitimage.bbclass index 838ce204cb..107914e28c 100644 --- a/meta/classes-recipe/kernel-fitimage.bbclass +++ b/meta/classes-recipe/kernel-fitimage.bbclass | |||
@@ -535,6 +535,10 @@ fitimage_assemble() { | |||
535 | fi | 535 | fi |
536 | 536 | ||
537 | DTB=$(echo "$DTB" | tr '/' '_') | 537 | DTB=$(echo "$DTB" | tr '/' '_') |
538 | |||
539 | # Skip DTB if we've picked it up previously | ||
540 | echo "$DTBS" | tr ' ' '\n' | grep -xq "$DTB" && continue | ||
541 | |||
538 | DTBS="$DTBS $DTB" | 542 | DTBS="$DTBS $DTB" |
539 | fitimage_emit_section_dtb $1 $DTB $DTB_PATH | 543 | fitimage_emit_section_dtb $1 $DTB $DTB_PATH |
540 | done | 544 | done |
@@ -544,6 +548,10 @@ fitimage_assemble() { | |||
544 | dtbcount=1 | 548 | dtbcount=1 |
545 | 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' -o -name '*.dtbo' \) -printf '%P\n' | sort); do |
546 | DTB=$(echo "$DTB" | tr '/' '_') | 550 | DTB=$(echo "$DTB" | tr '/' '_') |
551 | |||
552 | # Skip DTB if we've picked it up previously | ||
553 | echo "$DTBS" | tr ' ' '\n' | grep -xq "$DTB" && continue | ||
554 | |||
547 | DTBS="$DTBS $DTB" | 555 | DTBS="$DTBS $DTB" |
548 | fitimage_emit_section_dtb $1 $DTB "${EXTERNAL_KERNEL_DEVICETREE}/$DTB" | 556 | fitimage_emit_section_dtb $1 $DTB "${EXTERNAL_KERNEL_DEVICETREE}/$DTB" |
549 | done | 557 | done |