summaryrefslogtreecommitdiffstats
path: root/recipes-bsp
diff options
context:
space:
mode:
authorChunrong Guo <B40290@freescale.com>2015-12-11 01:26:16 -0600
committerOtavio Salvador <otavio@ossystems.com.br>2016-04-19 15:03:22 -0300
commita057f900f43d8f6a6ae631bd435949846a072b67 (patch)
tree1c147fa950ce75247168c83c17cab975eec9bc3a /recipes-bsp
parentf9fdc597d1c2e06846fc6381e054481ff885aeaa (diff)
downloadmeta-freescale-a057f900f43d8f6a6ae631bd435949846a072b67.tar.gz
u-boot-ls1: The finale u-boot binary is not named as u-boot.bin for sdcard/spi
Signed-off-by: Chunrong Guo <B40290@freescale.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb31
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
102do_compile_append_qoriq-arm () { 102do_compile_append_qoriq-arm () {
103 if [ "x${UBOOT_CONFIG}" != "x" ] 103unset 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
115do_install_append_qoriq-ppc() { 126do_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