diff options
-rw-r--r-- | recipes-bsp/u-boot/u-boot-ls1_2015.01.bb | 25 |
1 files 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" | |||
25 | PROVIDES += "u-boot" | 25 | PROVIDES += "u-boot" |
26 | 26 | ||
27 | do_compile_append () { | 27 | do_compile_append () { |
28 | if [ "x${UBOOT_CONFIG}" != "x" ] | 28 | unset i j |
29 | then | 29 | if [ "x${UBOOT_CONFIG}" != "x" ]; then |
30 | for config in ${UBOOT_MACHINE}; do | 30 | for config in ${UBOOT_MACHINE}; do |
31 | case "${config}" in | 31 | i=`expr $i + 1`; |
32 | *spi*) tclsh ${STAGING_BINDIR_NATIVE}/byte_swap.tcl ${S}/${config}/u-boot-dtb.bin ${S}/${config}/u-boot.swap.bin 8 | 32 | for type in ${UBOOT_CONFIG}; do |
33 | mv ${S}/${config}/u-boot.swap.bin ${S}/u-boot-${type}.${UBOOT_SUFFIX};; | 33 | j=`expr $j + 1`; |
34 | *nand* | *sdcard*) mv ${S}/${config}/u-boot-with-spl-pbl.bin ${S}/${config}/u-boot.bin;; | 34 | if [ $j -eq $i ]; then |
35 | esac | 35 | case "${config}" in |
36 | *nand* | *sdcard*) | ||
37 | cp ${config}/u-boot-with-spl-pbl.bin ${config}/u-boot-${type}.${UBOOT_SUFFIX};; | ||
38 | *spi*) | ||
39 | tclsh ${STAGING_BINDIR_NATIVE}/byte_swap.tcl ${config}/u-boot-dtb.bin ${config}/u-boot.swap.bin 8 | ||
40 | cp ${config}/u-boot.swap.bin ${config}/u-boot-${type}.${UBOOT_SUFFIX};; | ||
41 | esac | ||
42 | fi | ||
43 | done | ||
44 | unset j | ||
36 | done | 45 | done |
46 | unset i | ||
37 | fi | 47 | fi |
38 | |||
39 | } | 48 | } |
40 | 49 | ||
41 | PACKAGES += "${PN}-images" | 50 | PACKAGES += "${PN}-images" |