diff options
author | Paul Gerber <paul.gerber@ew.tq-group.com> | 2024-08-29 12:43:36 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-08-30 21:59:38 +0100 |
commit | 661eebe146dd992c125fc1e4cfc78af3b16599cd (patch) | |
tree | 68f651bb7ca00d04b944b153c32b27be57438a51 /meta | |
parent | 68dd272c87eaf89e7eef74883aacd7e385cfa787 (diff) | |
download | poky-661eebe146dd992c125fc1e4cfc78af3b16599cd.tar.gz |
uboot-sign: fix counters in do_uboot_assemble_fitimage
Without unsetting `j` and `k` for each `UBOOT_MACHINE`, `j` and `k`
are incremented in the same frequency as `i` and therefore `$j -eq $i`
and `$k -eq $i` is always true for the first `type` from `UBOOT_CONFIG`
and the first `binary` from `UBOOT_BINARIES`.
(From OE-Core rev: 3aef55c7ceb654b0012f20618bfd6ead1ef578b6)
Signed-off-by: Paul Gerber <paul.gerber@ew.tq-group.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes-recipe/uboot-sign.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes-recipe/uboot-sign.bbclass b/meta/classes-recipe/uboot-sign.bbclass index c8e097f2f2..3e5f5dcf66 100644 --- a/meta/classes-recipe/uboot-sign.bbclass +++ b/meta/classes-recipe/uboot-sign.bbclass | |||
@@ -356,8 +356,9 @@ do_uboot_assemble_fitimage() { | |||
356 | fi | 356 | fi |
357 | 357 | ||
358 | if [ -n "${UBOOT_CONFIG}" ]; then | 358 | if [ -n "${UBOOT_CONFIG}" ]; then |
359 | unset i j k | 359 | unset i |
360 | for config in ${UBOOT_MACHINE}; do | 360 | for config in ${UBOOT_MACHINE}; do |
361 | unset j k | ||
361 | i=$(expr $i + 1); | 362 | i=$(expr $i + 1); |
362 | for type in ${UBOOT_CONFIG}; do | 363 | for type in ${UBOOT_CONFIG}; do |
363 | j=$(expr $j + 1); | 364 | j=$(expr $j + 1); |