diff options
| -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 2ab2e1393..44480b9e3 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 | ||
