Patchwork [meta-fsl-ppc,17/30] u-boot: use spl version for sd and spi image

login
register
mail settings
Submitter Ting Liu
Date Jan. 8, 2014, 10:08 a.m.
Message ID <1389175702-28380-18-git-send-email-b28495@freescale.com>
Download mbox | patch
Permalink /patch/64391/
State Accepted
Headers show

Comments

Ting Liu - Jan. 8, 2014, 10:08 a.m.
From: Ting Liu <b28495@freescale.com>

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

Patch

diff --git a/recipes-bsp/u-boot/u-boot_git.bb b/recipes-bsp/u-boot/u-boot_git.bb
index bfd2d79..2b6f1a0 100644
--- a/recipes-bsp/u-boot/u-boot_git.bb
+++ b/recipes-bsp/u-boot/u-boot_git.bb
@@ -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