]> code.ossystems Code Review - meta-freescale.git/commitdiff
u-boot: use spl version for sd and spi image
authorTing Liu <b28495@freescale.com>
Tue, 29 Oct 2013 06:21:04 +0000 (14:21 +0800)
committerZhenhua Luo <zhenhua.luo@freescale.com>
Sun, 12 Jan 2014 10:06:01 +0000 (18:06 +0800)
Signed-off-by: Ting Liu <b28495@freescale.com>
meta-fsl-ppc/recipes-bsp/u-boot/u-boot_git.bb

index bfd2d79cf0a0873c0cc1f78f9120560af4342932..2b6f1a01ecd23d062bc38b8d3bff92746c70c13a 100644 (file)
@@ -85,6 +85,14 @@ do_compile () {
                 if echo $board |egrep -q "(P1010RDB|P1020RDB|P1021RDB|P1024RDB|P2020RDB|P1022DS|P1025RDB|BSC913)";then
                     UBOOT_SOURCE=u-boot-with-spl
                 fi
+            elif [ "${UBOOT_TARGET}" = "u-boot-spi" ];then
+                if echo $board |egrep -q "(P1020RDB|P1021RDB|P2020RDB|P1022DS)";then
+                    UBOOT_SOURCE=u-boot-with-spl
+                fi
+            elif [ "${UBOOT_TARGET}" = "u-boot-sd" ];then
+                if echo $board |egrep -q "(P1020RDB|P1021RDB|P2020RDB|P1022DS)";then
+                    UBOOT_SOURCE=u-boot-with-spl
+                fi
             fi
             cp ${S}/${board}/${UBOOT_SOURCE}.bin  ${S}/${board}/${UBOOT_TARGET}.bin