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.

(From OE-Core rev: 5a0764eaac90bd62dac4a387eed5eb68f556412f)

Signed-off-by: Florian Amstutz <florian.amstutz@scs.ch>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Florian Amstutz
2024-07-02 01:16:35 -07:00
committed by Richard Purdie
parent 226ae9288e
commit 221e778021

View File

@@ -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