]> code.ossystems Code Review - meta-freescale.git/commitdiff
u-boot-ls1: fix multiple u-boot compile path changed.
authorChunrong Guo <B40290@freescale.com>
Fri, 3 Apr 2015 05:54:16 +0000 (13:54 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 3 Apr 2015 18:29:52 +0000 (15:29 -0300)
  *fix the following error:
  |couldn't open "/poky/build/tmp/work/ls1021aqds-poky-linux-gnueabi/u-boot-ls1/2014.07-r0/git/u-boot.bin": no such file or directory

  (From OE-Core rev: eca277b0af9e0e29022f81f54c17bf24aec02232)

Signed-off-by: Chunrong Guo <B40290@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/recipes-bsp/u-boot/u-boot-ls1_2014.07.bb

index 1a1f76dcf60be69f905220a98c74107e87ef7ca4..010d2cc2dca1b7830fa065979ee1a3d473b9e904 100644 (file)
@@ -8,11 +8,17 @@ DEPENDS += "change-file-endianess-native"
 PROVIDES += "u-boot"
 
 do_compile_append () {
-    case "${UBOOT_MACHINE}" in
-        *spi*) tclsh ${STAGING_BINDIR_NATIVE}/byte_swap.tcl ${S}/u-boot.bin ${S}/u-boot.swap.bin 8 
-        mv ${S}/u-boot.swap.bin ${S}/u-boot.bin;;
-        *sdcard*)  mv ${S}/u-boot-with-spl-pbl.bin  ${S}/u-boot.bin;;
-    esac
+    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.bin ${S}/${config}/u-boot.swap.bin 8
+                mv ${S}/${config}/u-boot.swap.bin ${S}/u-boot-${type}.${UBOOT_SUFFIX};;
+                *sdcard*)  mv ${S}/${config}/u-boot-with-spl-pbl.bin  ${S}/${config}/u-boot.bin;;
+            esac
+        done
+    fi
+
 }
 
 PACKAGES += "${PN}-images"