From: Chunrong Guo <[email protected]>
Signed-off-by: Chunrong Guo <[email protected]>
---
recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb | 31 ++++++++++++++++++++----------
1 file 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 44480b9..cc3d611 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() {
}
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
--
2.3.3
--
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale