All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-fsl-arm][PATCH] u-boot-ls1: The finale u-boot binary is not named as u-boot.bin for sdcard/spi
@ 2015-11-17  8:47 b40290
  2015-12-07 12:59 ` Otavio Salvador
  0 siblings, 1 reply; 3+ messages in thread
From: b40290 @ 2015-11-17  8:47 UTC (permalink / raw)
  To: meta-freescale

From: Chunrong Guo <B40290@freescale.com>

Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
 recipes-bsp/u-boot/u-boot-ls1_2015.01.bb | 25 +++++++++++++++++--------
 1 file changed, 17 insertions(+), 8 deletions(-)

diff --git a/recipes-bsp/u-boot/u-boot-ls1_2015.01.bb b/recipes-bsp/u-boot/u-boot-ls1_2015.01.bb
index 5b1e566..ae31763 100644
--- a/recipes-bsp/u-boot/u-boot-ls1_2015.01.bb
+++ b/recipes-bsp/u-boot/u-boot-ls1_2015.01.bb
@@ -25,17 +25,26 @@ DEPENDS += "change-file-endianess-native dtc-native"
 PROVIDES += "u-boot"
 
 do_compile_append () {
-    if [ "x${UBOOT_CONFIG}" != "x" ]
-    then
+ unset i j
+    if [ "x${UBOOT_CONFIG}" != "x" ]; then
         for config in ${UBOOT_MACHINE}; do
-            case "${config}" in
-                *spi*) tclsh ${STAGING_BINDIR_NATIVE}/byte_swap.tcl ${S}/${config}/u-boot-dtb.bin ${S}/${config}/u-boot.swap.bin 8
-                mv ${S}/${config}/u-boot.swap.bin ${S}/u-boot-${type}.${UBOOT_SUFFIX};;
-                *nand* | *sdcard*)  mv ${S}/${config}/u-boot-with-spl-pbl.bin  ${S}/${config}/u-boot.bin;;
-            esac
+            i=`expr $i + 1`;
+            for type in ${UBOOT_CONFIG}; do
+                j=`expr $j + 1`;
+                if [ $j -eq $i ]; then
+                    case "${config}" in
+                        *nand* | *sdcard*)
+                            cp ${config}/u-boot-with-spl-pbl.bin ${config}/u-boot-${type}.${UBOOT_SUFFIX};;
+                        *spi*) 
+                            tclsh ${STAGING_BINDIR_NATIVE}/byte_swap.tcl ${config}/u-boot-dtb.bin ${config}/u-boot.swap.bin 8
+                            cp ${config}/u-boot.swap.bin ${config}/u-boot-${type}.${UBOOT_SUFFIX};;
+                    esac
+                fi
+            done
+            unset j
         done
+        unset i
     fi
-
 }
 
 PACKAGES += "${PN}-images"
-- 
1.9.2



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

* Re: [meta-fsl-arm][PATCH] u-boot-ls1: The finale u-boot binary is not named as u-boot.bin for sdcard/spi
  2015-11-17  8:47 [meta-fsl-arm][PATCH] u-boot-ls1: The finale u-boot binary is not named as u-boot.bin for sdcard/spi b40290
@ 2015-12-07 12:59 ` Otavio Salvador
  2015-12-11  8:12   ` Guo Chunrong
  0 siblings, 1 reply; 3+ messages in thread
From: Otavio Salvador @ 2015-12-07 12:59 UTC (permalink / raw)
  To: chun guo; +Cc: meta-freescale, Weng White-B18292

On Tue, Nov 17, 2015 at 6:47 AM,  <b40290@freescale.com> wrote:
> From: Chunrong Guo <B40290@freescale.com>
>
> Signed-off-by: Chunrong Guo <B40290@freescale.com>

This has been applied to meta-fsl-arm however it does not apply on
meta-freescale. Could you check if it needs change and send a
meta-freescale specific patch, if applicable?

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


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

* Re: [meta-fsl-arm][PATCH] u-boot-ls1: The finale u-boot binary is not named as u-boot.bin for sdcard/spi
  2015-12-07 12:59 ` Otavio Salvador
@ 2015-12-11  8:12   ` Guo Chunrong
  0 siblings, 0 replies; 3+ messages in thread
From: Guo Chunrong @ 2015-12-11  8:12 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: meta-freescale, Weng White

Hello Otavio,

The patch will be backported to  meta-freescale.

Thanks
Chunrong


-----Original Message-----
From: Otavio Salvador [mailto:otavio.salvador@ossystems.com.br] 
Sent: Monday, December 07, 2015 9:00 PM
To: Guo Chunrong-B40290
Cc: meta-freescale@yoctoproject.org; Weng White-B18292; Luo Zhenhua-B19537
Subject: Re: [meta-freescale] [meta-fsl-arm][PATCH] u-boot-ls1: The finale u-boot binary is not named as u-boot.bin for sdcard/spi

On Tue, Nov 17, 2015 at 6:47 AM,  <b40290@freescale.com> wrote:
> From: Chunrong Guo <B40290@freescale.com>
>
> Signed-off-by: Chunrong Guo <B40290@freescale.com>

This has been applied to meta-fsl-arm however it does not apply on meta-freescale. Could you check if it needs change and send a meta-freescale specific patch, if applicable?

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

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

end of thread, other threads:[~2015-12-11  9:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-17  8:47 [meta-fsl-arm][PATCH] u-boot-ls1: The finale u-boot binary is not named as u-boot.bin for sdcard/spi b40290
2015-12-07 12:59 ` Otavio Salvador
2015-12-11  8:12   ` Guo Chunrong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.