From: Paul Gerber Date: Thu, 29 Aug 2024 10:43:36 +0000 (+0200) Subject: uboot-sign: fix counters in do_uboot_assemble_fitimage X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3aef55c7ceb654b0012f20618bfd6ead1ef578b6;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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`. Signed-off-by: Paul Gerber Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/uboot-sign.bbclass b/meta/classes-recipe/uboot-sign.bbclass index c8e097f2f2b..3e5f5dcf66f 100644 --- a/meta/classes-recipe/uboot-sign.bbclass +++ b/meta/classes-recipe/uboot-sign.bbclass @@ -356,8 +356,9 @@ do_uboot_assemble_fitimage() { fi if [ -n "${UBOOT_CONFIG}" ]; then - unset i j k + unset i for config in ${UBOOT_MACHINE}; do + unset j k i=$(expr $i + 1); for type in ${UBOOT_CONFIG}; do j=$(expr $j + 1);