diff options
| author | Zhenhua Luo <b19537@freescale.com> | 2012-08-09 19:19:52 +0800 |
|---|---|---|
| committer | Matthew McClintock <msm@freescale.com> | 2012-11-13 11:12:27 -0600 |
| commit | fbd582d2817f41b74a1dcd7781bbd31c5d909b51 (patch) | |
| tree | 43eaaf40b9478f2f3661005305cdcd2db9a4e350 | |
| parent | 0854292ae9fef3d5c3c555ede54d0d198a187bc6 (diff) | |
| download | meta-fsl-ppc-fbd582d2817f41b74a1dcd7781bbd31c5d909b51.tar.gz | |
u-boot: fix nand image name issue for different core type
Final nand u-boot image is named differently in u-boot source. That is:
"u-boot-nand.bin" for e500v2 boards, "u-boot.bin" for other boards.
Signed-off-by: Zhenhua Luo <b19537@freescale.com>
Signed-off-by: Ting Liu <b28495@freescale.com>
| -rw-r--r-- | recipes-kernel/u-boot/u-boot_git.bb | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/recipes-kernel/u-boot/u-boot_git.bb b/recipes-kernel/u-boot/u-boot_git.bb index c0de2ec..207a6ff 100644 --- a/recipes-kernel/u-boot/u-boot_git.bb +++ b/recipes-kernel/u-boot/u-boot_git.bb | |||
| @@ -5,7 +5,7 @@ PROVIDES = "virtual/bootloader" | |||
| 5 | LICENSE = "GPLv2" | 5 | LICENSE = "GPLv2" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb" |
| 7 | 7 | ||
| 8 | PR = "r26" | 8 | PR = "r27" |
| 9 | INHIBIT_DEFAULT_DEPS = "1" | 9 | INHIBIT_DEFAULT_DEPS = "1" |
| 10 | DEPENDS = "boot-format-native virtual/${TARGET_PREFIX}gcc libgcc" | 10 | DEPENDS = "boot-format-native virtual/${TARGET_PREFIX}gcc libgcc" |
| 11 | 11 | ||
| @@ -69,18 +69,20 @@ do_compile () { | |||
| 69 | esac | 69 | esac |
| 70 | 70 | ||
| 71 | if [ "x${UBOOT_TARGET}" != "x" ]; then | 71 | if [ "x${UBOOT_TARGET}" != "x" ]; then |
| 72 | if [ "${MACHINE_ARCH}" == "p1023rds" ] || \ | 72 | if [ "${UBOOT_TARGET}" == "u-boot-sd" ]; then |
| 73 | [ "${MACHINE_ARCH}" == "p2041rdb" ] || \ | ||
| 74 | [ "${MACHINE_ARCH}" == "p3041ds" ] || \ | ||
| 75 | [ "${MACHINE_ARCH}" == "p4080ds" ] || \ | ||
| 76 | [ "${MACHINE_ARCH}" == "p5020ds" ] || \ | ||
| 77 | [ "${UBOOT_TARGET}" == "u-boot-sd" ] || \ | ||
| 78 | [ "${UBOOT_TARGET}" == "u-boot-nand" ]; then | ||
| 79 | cp ${S}/${board}/u-boot.bin ${S}/${board}/${UBOOT_TARGET}.bin | 73 | cp ${S}/${board}/u-boot.bin ${S}/${board}/${UBOOT_TARGET}.bin |
| 74 | elif [ "${UBOOT_TARGET}" == "u-boot-nand" ];then | ||
| 75 | if [ "${DEFAULTTUNE}" != "ppce500v2" ];then | ||
| 76 | cp ${S}/${board}/u-boot.bin ${S}/${board}/${UBOOT_TARGET}.bin | ||
| 77 | fi | ||
| 80 | else | 78 | else |
| 81 | ${STAGING_BINDIR_NATIVE}/boot_format \ | 79 | if [ -n "${BOOTFORMAT_CONFIG}" ];then |
| 80 | ${STAGING_BINDIR_NATIVE}/boot_format \ | ||
| 82 | ${STAGING_DATADIR_NATIVE}/boot_format/${BOOTFORMAT_CONFIG} \ | 81 | ${STAGING_DATADIR_NATIVE}/boot_format/${BOOTFORMAT_CONFIG} \ |
| 83 | ${S}/${board}/u-boot.bin -spi ${S}/${board}/${UBOOT_TARGET}.bin | 82 | ${S}/${board}/u-boot.bin -spi ${S}/${board}/${UBOOT_TARGET}.bin |
| 83 | else | ||
| 84 | cp ${S}/${board}/u-boot.bin ${S}/${board}/${UBOOT_TARGET}.bin | ||
| 85 | fi | ||
| 84 | fi | 86 | fi |
| 85 | fi | 87 | fi |
| 86 | done | 88 | done |
