Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 24814E00B62; Thu, 8 May 2014 21:56:27 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=RCVD_IN_DNSWL_NONE,RDNS_NONE autolearn=no version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [206.46.173.21 listed in list.dnswl.org] * 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS Received: from vms173021pub.verizon.net (unknown [206.46.173.21]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id EC12EE00B66 for ; Thu, 8 May 2014 21:56:24 -0700 (PDT) Received: from gandalf.denix.org ([unknown] [71.191.205.189]) by vms173021.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0N5A00BZHG9FBJ60@vms173021.mailsrvcs.net> for meta-ti@yoctoproject.org; Thu, 08 May 2014 22:56:09 -0500 (CDT) Received: from localhost.localdomain (elrond [192.168.0.7]) by gandalf.denix.org (Postfix) with ESMTP id 708B2200BD; Thu, 08 May 2014 23:56:03 -0400 (EDT) From: Denys Dmytriyenko To: meta-ti@yoctoproject.org Date: Thu, 08 May 2014 23:55:44 -0400 Message-id: <1399607745-24450-1-git-send-email-denis@denix.org> X-Mailer: git-send-email 1.9.2 Subject: [PATCH 1/2] u-boot-keystone: update to the latest version X-BeenThere: meta-ti@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-ti layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 May 2014 04:56:27 -0000 From: Denys Dmytriyenko Modified version of the original patch from Sam Nelson * Update source URL/REV * Added SPI NOR binaries and deployed images Signed-off-by: Denys Dmytriyenko --- recipes-bsp/u-boot/u-boot-keystone_2013.01.bb | 53 ++++++++++++++++++++++++--- 1 file changed, 48 insertions(+), 5 deletions(-) diff --git a/recipes-bsp/u-boot/u-boot-keystone_2013.01.bb b/recipes-bsp/u-boot/u-boot-keystone_2013.01.bb index 788d813..6717e62 100644 --- a/recipes-bsp/u-boot/u-boot-keystone_2013.01.bb +++ b/recipes-bsp/u-boot/u-boot-keystone_2013.01.bb @@ -4,13 +4,56 @@ DESCRIPTION = "u-boot bootloader for Multi-Core BU devices" COMPATIBLE_MACHINE = "keystone" -PR = "r2+gitr${SRCPV}" - -SRC_URI = "git://arago-project.org/git/projects/u-boot-keystone.git;protocol=git;branch=${BRANCH}" +PR = "r3+gitr${SRCPV}" +# Tag "K2_UBOOT_2013_01_14.03_02" +SRCREV = "0b9b4be2f3097b5bdc3b0ea7aa5e8f465097e365" BRANCH = "master" -# DEV.MCSDK-03.00.00.07 -SRCREV = "82f40e857d853165310d0753e79235aefb65d7ba" +SRC_URI = "git://git.ti.com/keystone-linux/u-boot.git;protocol=git;branch=${BRANCH}" + +S = "${WORKDIR}/git" UBOOT_SUFFIX = "bin" +UBOOT_MAKE_TARGET = "u-boot-spi.gph" + +# SPI NOR Flash binaries +UBOOT_SPI_SPL_BINARY = "u-boot-spl.bin" +UBOOT_SPI_BINARY = "u-boot.img" +UBOOT_SPI_GPH_BINARY = "u-boot-spi.gph" + +# SPI NOR Flash deployed images +UBOOT_SPI_SPL_IMAGE = "u-boot-spl-${MACHINE}-${PV}-${PR}.bin" +UBOOT_SPI_SPL_SYMLINK = "u-boot-spl-${MACHINE}.bin" +UBOOT_SPI_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}.img" +UBOOT_SPI_SYMLINK = "u-boot-${MACHINE}.img" +UBOOT_SPI_GPH_IMAGE = "u-boot-spi-${MACHINE}-${PV}-${PR}.gph" +UBOOT_SPI_GPH_SYMLINK = "u-boot-spi-${MACHINE}.gph" + +do_install_append () { + install ${S}/spl/${UBOOT_SPI_SPL_BINARY} ${D}/boot/${UBOOT_SPI_SPL_IMAGE} + ln -sf ${UBOOT_SPI_SPL_IMAGE} ${D}/boot/${UBOOT_SPI_SPL_BINARY} + + install ${S}/${UBOOT_SPI_BINARY} ${D}/boot/${UBOOT_SPI_IMAGE} + ln -sf ${UBOOT_SPI_IMAGE} ${D}/boot/${UBOOT_SPI_BINARY} + + install ${S}/${UBOOT_SPI_GPH_BINARY} ${D}/boot/${UBOOT_SPI_GPH_IMAGE} + ln -sf ${UBOOT_SPI_GPH_IMAGE} ${D}/boot/${UBOOT_SPI_GPH_BINARY} +} + +do_deploy_append () { + install ${S}/spl/${UBOOT_SPI_SPL_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_SPL_IMAGE} + rm -f ${UBOOT_SPI_SPL_BINARY} ${UBOOT_SPI_SPL_SYMLINK} + ln -sf ${UBOOT_SPI_SPL_IMAGE} ${UBOOT_SPI_SPL_SYMLINK} + ln -sf ${UBOOT_SPI_SPL_IMAGE} ${UBOOT_SPI_SPL_BINARY} + + install ${S}/${UBOOT_SPI_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_IMAGE} + rm -f ${UBOOT_SPI_BINARY} ${UBOOT_SPI_SYMLINK} + ln -sf ${UBOOT_SPI_IMAGE} ${UBOOT_SPI_SYMLINK} + ln -sf ${UBOOT_SPI_IMAGE} ${UBOOT_SPI_BINARY} + + install ${S}/${UBOOT_SPI_GPH_BINARY} ${DEPLOYDIR}/${UBOOT_SPI_GPH_IMAGE} + rm -f ${UBOOT_SPI_GPH_BINARY} ${UBOOT_SPI_GPH_SYMLINK} + ln -sf ${UBOOT_SPI_GPH_IMAGE} ${UBOOT_SPI_GPH_SYMLINK} + ln -sf ${UBOOT_SPI_GPH_IMAGE} ${UBOOT_SPI_GPH_BINARY} +} -- 1.9.2