]> code.ossystems Code Review - meta-freescale.git/commitdiff
u-boot-ls1: The finale u-boot binary is not named as u-boot.bin for sdcard/spi
authorChunrong Guo <B40290@freescale.com>
Fri, 11 Dec 2015 07:26:16 +0000 (01:26 -0600)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 19 Apr 2016 18:03:22 +0000 (15:03 -0300)
Signed-off-by: Chunrong Guo <B40290@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb

index 44480b9e386cff7652494728eef3b616eb807d1e..cc3d611a4fd43cce933934b5cf23e8b87101996c 100644 (file)
@@ -100,18 +100,29 @@ do_compile_append_qoriq-ppc() {
 }
 
 do_compile_append_qoriq-arm () {
-    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
-        done
-    fi
+unset i j                                                                                                                       
+    if [ "x${UBOOT_CONFIG}" != "x" ]; then
+         for config in ${UBOOT_MACHINE}; do
+             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
 }
 
+
 do_install_append_qoriq-ppc() {
     for board in ${UBOOT_MACHINE}; do
         if ! grep -wq $board ${S}/boards.cfg;then