diff options
author | Zhenhua Luo <zhenhua.luo@freescale.com> | 2015-09-01 15:20:40 +0800 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2016-04-19 15:03:18 -0300 |
commit | ebe3bb62f466b6dc390d9cc063a589ce6cf16d94 (patch) | |
tree | a9ef5553a348980997c5b3dd14919532ae65f061 | |
parent | a5b82447e38c046c8bd694fcdedc40ca852baf23 (diff) | |
download | meta-freescale-ebe3bb62f466b6dc390d9cc063a589ce6cf16d94.tar.gz |
u-boot-qoriq: use machine specific variables defined in machine conf
Use the following machine specific variables which are defined in machine
conf file:
* UBOOT_SOURCE_NAND
* UBOOT_SOURCE_SPI
* UBOOT_SOURCE_SD
Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r-- | recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb | 30 |
1 files changed, 6 insertions, 24 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 2ab2e139..44480b9e 100644 --- a/recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb +++ b/recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb | |||
@@ -80,30 +80,12 @@ do_compile_append_qoriq-ppc() { | |||
80 | cp ${S}/${board}/${UBOOT_SOURCE} ${S}/${board}/${UBOOT_TARGET}.bin | 80 | cp ${S}/${board}/${UBOOT_SOURCE} ${S}/${board}/${UBOOT_TARGET}.bin |
81 | elif [ "x${UBOOT_TARGET}" != "x" ]; then | 81 | elif [ "x${UBOOT_TARGET}" != "x" ]; then |
82 | # some boards' final binary was not named as u-boot.bin | 82 | # some boards' final binary was not named as u-boot.bin |
83 | if [ "${UBOOT_TARGET}" = "u-boot-nand" ];then | 83 | if [ "${UBOOT_TARGET}" = "u-boot-nand" ] && [ "${UBOOT_SOURCE_NAND}" != "" ]; then |
84 | if echo $board |egrep -q "^(BSC|C29|P10|P2020RDB)";then | 84 | UBOOT_SOURCE="${UBOOT_SOURCE_NAND}" |
85 | UBOOT_SOURCE=u-boot-with-spl.bin | 85 | elif [ "${UBOOT_TARGET}" = "u-boot-spi" ] && [ "${UBOOT_SOURCE_SPI}" != "" ]; then |
86 | elif echo $board |egrep -q "^(B4|T1|T2|T4)";then | 86 | UBOOT_SOURCE="${UBOOT_SOURCE_SPI}" |
87 | UBOOT_SOURCE=u-boot-with-spl-pbl.bin | 87 | elif [ "${UBOOT_TARGET}" = "u-boot-sd" ] && [ "${UBOOT_SOURCE_SD}" != "" ]; then |
88 | elif echo $board |egrep -q "^(P2041|P3|P4|P5)";then | 88 | UBOOT_SOURCE="${UBOOT_SOURCE_SD}" |
89 | UBOOT_SOURCE=u-boot.pbl | ||
90 | fi | ||
91 | elif [ "${UBOOT_TARGET}" = "u-boot-spi" ];then | ||
92 | if echo $board |egrep -q "^(P10|P2020RDB)";then | ||
93 | UBOOT_SOURCE=u-boot-with-spl.bin | ||
94 | elif echo $board |egrep -q "^(T1|T2)";then | ||
95 | UBOOT_SOURCE=u-boot-with-spl-pbl.bin | ||
96 | elif echo $board |egrep -q "^(B4|P2041|P3|P4|P5|T4)";then | ||
97 | UBOOT_SOURCE=u-boot.pbl | ||
98 | fi | ||
99 | elif [ "${UBOOT_TARGET}" = "u-boot-sd" ];then | ||
100 | if echo $board |egrep -q "^(P10|P2020RDB)";then | ||
101 | UBOOT_SOURCE=u-boot-with-spl.bin | ||
102 | elif echo $board |egrep -q "^(B4|T1|T2|T4)";then | ||
103 | UBOOT_SOURCE=u-boot-with-spl-pbl.bin | ||
104 | elif echo $board |egrep -q "^(P2041|P3|P4|P5)";then | ||
105 | UBOOT_SOURCE=u-boot.pbl | ||
106 | fi | ||
107 | fi | 89 | fi |
108 | cp ${S}/${board}/${UBOOT_SOURCE} ${S}/${board}/${UBOOT_TARGET}.bin | 90 | cp ${S}/${board}/${UBOOT_SOURCE} ${S}/${board}/${UBOOT_TARGET}.bin |
109 | 91 | ||