summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp
diff options
context:
space:
mode:
authorFlorian Amstutz <florian.amstutz@scs.ch>2024-07-02 01:16:35 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-02 22:29:13 +0100
commit221e7780214dbaddb2800cbce669579bc1260fc0 (patch)
treee07a2459c51854e41e1ed414b0f79c267ed71384 /meta/recipes-bsp
parent226ae9288e88bb67a6d48b64ab5a68dc1da12a7d (diff)
downloadpoky-221e7780214dbaddb2800cbce669579bc1260fc0.tar.gz
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>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r--meta/recipes-bsp/u-boot/u-boot.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc
index ce14847b33..fc36c21ec2 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"
217do_deploy () { 217do_deploy () {
218 if [ -n "${UBOOT_CONFIG}" ] 218 if [ -n "${UBOOT_CONFIG}" ]
219 then 219 then
220 unset i j
220 for config in ${UBOOT_MACHINE}; do 221 for config in ${UBOOT_MACHINE}; do
221 i=$(expr $i + 1); 222 i=$(expr $i + 1);
222 for type in ${UBOOT_CONFIG}; do 223 for type in ${UBOOT_CONFIG}; do