[meta-freescale] [meta-fsl-ppc][dora][PATCH 18/31] u-boot: use spl version for sd and spi image

b28495 at freescale.com b28495 at freescale.com
Wed Jan 15 01:41:23 PST 2014


From: Ting Liu <b28495 at freescale.com>

Signed-off-by: Ting Liu <b28495 at freescale.com>
---
 recipes-bsp/u-boot/u-boot_git.bb |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/recipes-bsp/u-boot/u-boot_git.bb b/recipes-bsp/u-boot/u-boot_git.bb
index d74ea67..02ba38c 100644
--- a/recipes-bsp/u-boot/u-boot_git.bb
+++ b/recipes-bsp/u-boot/u-boot_git.bb
@@ -84,6 +84,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
 
-- 
1.7.9.7




More information about the meta-freescale mailing list