Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] u-boot: Fix potential index error issues in do_deploy with multiple u-boot configurations
@ 2024-07-02  8:16 Florian Amstutz
  2024-07-02  8:34 ` Patchtest results for " patchtest
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Florian Amstutz @ 2024-07-02  8:16 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 683 bytes --]

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 <florian.amstutz@scs.ch>
---
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 54ea2e9e50..70fb192d6e 100644
--- a/meta/recipes-bsp/u-boot/u-boot.inc
+++ b/meta/recipes-bsp/u-boot/u-boot.inc
@@ -209,6 +209,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.34.1

[-- Attachment #2: Type: text/html, Size: 977 bytes --]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-07-03  6:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-02  8:16 [PATCH] u-boot: Fix potential index error issues in do_deploy with multiple u-boot configurations Florian Amstutz
2024-07-02  8:34 ` Patchtest results for " patchtest
2024-07-02 13:50 ` [OE-core] " Quentin Schulz
2024-07-03  6:51 ` Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox