diff options
| author | Paul Gerber <paul.gerber@ew.tq-group.com> | 2024-08-29 12:43:36 +0200 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-10-18 06:04:41 -0700 |
| commit | e6acba1518756304c6ef7770bbc7812fb2cb882b (patch) | |
| tree | d488fb650f7d31ef1f7a61fb4eb39dab2186ac0c /meta/classes-recipe | |
| parent | f43ef3aa9225073d5d88368cbcba3b12fee8ee8f (diff) | |
| download | poky-e6acba1518756304c6ef7770bbc7812fb2cb882b.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: 7f81c38e91563d6d77621a3bfcb155cd226c9b74)
Signed-off-by: Paul Gerber <paul.gerber@ew.tq-group.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3aef55c7ceb654b0012f20618bfd6ead1ef578b6)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/classes-recipe')
| -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); |
