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:21:49 -0600 |
commit | 56969e9139bc8577ed9e8cd6a859da13cc200b10 (patch) | |
tree | 99aee0d7558dbe0156774c4b3e7afb95d5c2f48c | |
parent | 8b14fc1436eb204d961c45f5515748c5636ceed6 (diff) | |
download | meta-fsl-ppc-56969e9139bc8577ed9e8cd6a859da13cc200b10.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 |