diff mbox series

[01/11] u-boot: Fix potential index error issues in do_deploy with multiple u-boot configurations

Message ID 2dc63a32d4ad8a0b0179bb8d2468f8bf104e5732.1748486276.git.tim.orling@konsulko.com
State New
Headers show
Series [01/11] u-boot: Fix potential index error issues in do_deploy with multiple u-boot configurations | expand

Commit Message

Tim Orling May 29, 2025, 2:41 a.m. UTC
From: Florian Amstutz <florian.amstutz@scs.ch>

If i or j have not been unset in do_deploy:prepend functions, images are not correctly
copied to DEPLOYDIR.

(From OE-Core rev: 5a0764eaac90bd62dac4a387eed5eb68f556412f)

Signed-off-by: Florian Amstutz <florian.amstutz@scs.ch>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
 recipes-bsp/u-boot/u-boot.inc | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/recipes-bsp/u-boot/u-boot.inc b/recipes-bsp/u-boot/u-boot.inc
index f5b43f6..608d621 100644
--- a/recipes-bsp/u-boot/u-boot.inc
+++ b/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