Return-Path: Received: from co9outboundpool.messaging.microsoft.com (co9ehsobe001.messaging.microsoft.com [207.46.163.24]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6E65CE00294 for ; Thu, 29 Nov 2012 11:16:05 -0800 (PST) Received: from mail19-co9-R.bigfish.com (10.236.132.240) by CO9EHSOBE038.bigfish.com (10.236.130.101) with Microsoft SMTP Server id 14.1.225.23; Thu, 29 Nov 2012 19:16:05 +0000 Received: from mail19-co9 (localhost [127.0.0.1]) by mail19-co9-R.bigfish.com (Postfix) with ESMTP id CE1FD360216 for ; Thu, 29 Nov 2012 19:15:56 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 3 X-BigFish: VS3(zzzz1de0h1202h1d1ah1d2ah1082kzz8275bhz2dh2a8h668h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1155h) Received: from mail19-co9 (localhost.localdomain [127.0.0.1]) by mail19-co9 (MessageSwitch) id 1354216554858362_14205; Thu, 29 Nov 2012 19:15:54 +0000 (UTC) Received: from CO9EHSMHS010.bigfish.com (unknown [10.236.132.254]) by mail19-co9.bigfish.com (Postfix) with ESMTP id CDFF83C0050 for ; Thu, 29 Nov 2012 19:15:54 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CO9EHSMHS010.bigfish.com (10.236.130.20) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 29 Nov 2012 19:15:53 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-002.039d.mgd.msft.net (10.84.1.15) with Microsoft SMTP Server (TLS) id 14.2.318.3; Thu, 29 Nov 2012 19:15:52 +0000 Received: from right.am.freescale.net (right.am.freescale.net [10.82.176.228]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id qATJFpu3013610 for ; Thu, 29 Nov 2012 12:15:52 -0700 From: Matthew McClintock To: Date: Thu, 29 Nov 2012 13:15:25 -0600 Message-ID: <1354216551-13932-2-git-send-email-msm@freescale.com> X-Mailer: git-send-email 1.7.9.7 In-Reply-To: <1354216551-13932-1-git-send-email-msm@freescale.com> References: <1354216551-13932-1-git-send-email-msm@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com Subject: [PATCH 01/27] u-boot: fix nand image name issue for different core type X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Nov 2012 19:16:05 -0000 Content-Type: text/plain From: Zhenhua Luo 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 Signed-off-by: Ting Liu --- recipes-kernel/u-boot/u-boot_git.bb | 20 +++++++++++--------- 1 file 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" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb" -PR = "r26" +PR = "r27" INHIBIT_DEFAULT_DEPS = "1" DEPENDS = "boot-format-native virtual/${TARGET_PREFIX}gcc libgcc" @@ -69,18 +69,20 @@ do_compile () { esac if [ "x${UBOOT_TARGET}" != "x" ]; then - if [ "${MACHINE_ARCH}" == "p1023rds" ] || \ - [ "${MACHINE_ARCH}" == "p2041rdb" ] || \ - [ "${MACHINE_ARCH}" == "p3041ds" ] || \ - [ "${MACHINE_ARCH}" == "p4080ds" ] || \ - [ "${MACHINE_ARCH}" == "p5020ds" ] || \ - [ "${UBOOT_TARGET}" == "u-boot-sd" ] || \ - [ "${UBOOT_TARGET}" == "u-boot-nand" ]; then + if [ "${UBOOT_TARGET}" == "u-boot-sd" ]; then cp ${S}/${board}/u-boot.bin ${S}/${board}/${UBOOT_TARGET}.bin + elif [ "${UBOOT_TARGET}" == "u-boot-nand" ];then + if [ "${DEFAULTTUNE}" != "ppce500v2" ];then + cp ${S}/${board}/u-boot.bin ${S}/${board}/${UBOOT_TARGET}.bin + fi else - ${STAGING_BINDIR_NATIVE}/boot_format \ + if [ -n "${BOOTFORMAT_CONFIG}" ];then + ${STAGING_BINDIR_NATIVE}/boot_format \ ${STAGING_DATADIR_NATIVE}/boot_format/${BOOTFORMAT_CONFIG} \ ${S}/${board}/u-boot.bin -spi ${S}/${board}/${UBOOT_TARGET}.bin + else + cp ${S}/${board}/u-boot.bin ${S}/${board}/${UBOOT_TARGET}.bin + fi fi fi done -- 1.7.9.7