From 5a0764eaac90bd62dac4a387eed5eb68f556412f Mon Sep 17 00:00:00 2001 From: Florian Amstutz Date: Tue, 2 Jul 2024 01:16:35 -0700 Subject: [PATCH] u-boot: Fix potential index error issues in do_deploy with multiple u-boot configurations If i or j have not been unset in do_deploy:prepend functions, images are not correctly copied to DEPLOYDIR. Signed-off-by: Florian Amstutz Signed-off-by: Richard Purdie --- meta/recipes-bsp/u-boot/u-boot.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc index ce14847b332..fc36c21ec2e 100644 --- a/meta/recipes-bsp/u-boot/u-boot.inc +++ b/meta/recipes-bsp/u-boot/u-boot.inc @@ -217,6 +217,7 @@ RDEPENDS:${PN} += "${PN}-env" do_deploy () { if [ -n "${UBOOT_CONFIG}" ] then + unset i j for config in ${UBOOT_MACHINE}; do i=$(expr $i + 1); for type in ${UBOOT_CONFIG}; do -- 2.47.2