diff options
-rw-r--r-- | recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb b/recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb index 44480b9e..cc3d611a 100644 --- a/recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb +++ b/recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb | |||
@@ -100,18 +100,29 @@ do_compile_append_qoriq-ppc() { | |||
100 | } | 100 | } |
101 | 101 | ||
102 | do_compile_append_qoriq-arm () { | 102 | do_compile_append_qoriq-arm () { |
103 | if [ "x${UBOOT_CONFIG}" != "x" ] | 103 | unset i j |
104 | then | 104 | if [ "x${UBOOT_CONFIG}" != "x" ]; then |
105 | for config in ${UBOOT_MACHINE}; do | 105 | for config in ${UBOOT_MACHINE}; do |
106 | case "${config}" in | 106 | i=`expr $i + 1`; |
107 | *spi*) tclsh ${STAGING_BINDIR_NATIVE}/byte_swap.tcl ${S}/${config}/u-boot-dtb.bin ${S}/${config}/u-boot.swap.bin 8 | 107 | for type in ${UBOOT_CONFIG}; do |
108 | mv ${S}/${config}/u-boot.swap.bin ${S}/u-boot-${type}.${UBOOT_SUFFIX};; | 108 | j=`expr $j + 1`; |
109 | *nand* | *sdcard*) mv ${S}/${config}/u-boot-with-spl-pbl.bin ${S}/${config}/u-boot.bin;; | 109 | if [ $j -eq $i ]; then |
110 | esac | 110 | case "${config}" in |
111 | done | 111 | *nand* | *sdcard*) |
112 | fi | 112 | cp ${config}/u-boot-with-spl-pbl.bin ${config}/u-boot-${type}.${UBOOT_SUFFIX};; |
113 | *spi*) | ||
114 | tclsh ${STAGING_BINDIR_NATIVE}/byte_swap.tcl ${config}/u-boot-dtb.bin ${config}/u-boot.swap.bin 8 | ||
115 | cp ${config}/u-boot.swap.bin ${config}/u-boot-${type}.${UBOOT_SUFFIX};; | ||
116 | esac | ||
117 | fi | ||
118 | done | ||
119 | unset j | ||
120 | done | ||
121 | unset i | ||
122 | fi | ||
113 | } | 123 | } |
114 | 124 | ||
125 | |||
115 | do_install_append_qoriq-ppc() { | 126 | do_install_append_qoriq-ppc() { |
116 | for board in ${UBOOT_MACHINE}; do | 127 | for board in ${UBOOT_MACHINE}; do |
117 | if ! grep -wq $board ${S}/boards.cfg;then | 128 | if ! grep -wq $board ${S}/boards.cfg;then |