]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
uboot-sign: fix loop in do_uboot_assemble_fitimage
authorRalph Siemsen <ralph.siemsen@linaro.org>
Thu, 9 May 2024 12:42:04 +0000 (08:42 -0400)
committerSteve Sakoman <steve@sakoman.com>
Sat, 18 May 2024 12:34:45 +0000 (05:34 -0700)
When using multiple u-boot configurations in UBOOT_CONFIG, the helper
function uboot_assemble_fitimage_helper() was not called with all
combinations of type & binary, due to a copy-n-paste indexing error.

Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2d338548a4b745a71eaf6c29231adc93c4165778)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes-recipe/uboot-sign.bbclass

index 7a0b8047e4968e6a86e584a61c6ab124d57a4208..c8e097f2f2b0712589080664f335da273ccedfce 100644 (file)
@@ -367,7 +367,7 @@ do_uboot_assemble_fitimage() {
                        done
 
                        for binary in ${UBOOT_BINARIES}; do
-                               k=$(expr $j + 1);
+                               k=$(expr $k + 1);
                                if [ $k -eq $i ]; then
                                        break;
                                fi