Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 63D75E00DE1; Thu, 28 Apr 2016 08:39:47 -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.8 required=5.0 tests=BAYES_00, NO_RDNS_DOTCOM_HELO, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [206.46.173.13 listed in list.dnswl.org] * 0.8 NO_RDNS_DOTCOM_HELO Host HELO'd as a big ISP, but had no rDNS * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from vms173013pub.verizon.net (vms173013pub.verizon.net [206.46.173.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 3ED5BE00DDA for ; Thu, 28 Apr 2016 08:39:44 -0700 (PDT) Received: from vz-proxy-l002.mx.aol.com ([64.236.82.148]) by vms173013.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0O6C00036OT6LF60@vms173013.mailsrvcs.net> for meta-ti@yoctoproject.org; Thu, 28 Apr 2016 10:39:06 -0500 (CDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=J+9Xl1TS c=1 sm=1 tr=0 a=hkQRW7prCrFMEwk2DGUM9Q==:117 a=kziv93cY1bsA:10 a=sozttTNsAAAA:8 a=MtxZe4xPgWu3C6raExoA:9 Received: by 100.15.86.14 with SMTP id 07535e60; Thu, 28 Apr 2016 15:39:06 GMT Received: from localhost.localdomain (elrond [192.168.0.7]) by gandalf.denix.org (Postfix) with ESMTP id C01A7161FAE; Thu, 28 Apr 2016 11:39:05 -0400 (EDT) From: Denys Dmytriyenko To: meta-ti@yoctoproject.org Date: Thu, 28 Apr 2016 11:39:04 -0400 Message-id: <1461857944-28374-1-git-send-email-denis@denix.org> X-Mailer: git-send-email 2.2.0 Subject: [PATCH v2 2/3] u-boot-ti-staging: add version 2016.05 (rc1) 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: Thu, 28 Apr 2016 15:39:47 -0000 From: Denys Dmytriyenko Set UBOOT_LOCALVERSION by default similar to KERNEL_LOCALVERSION Signed-off-by: Denys Dmytriyenko --- v2 - fix license checksum, add UBOOT_LOCALVERSION recipes-bsp/u-boot/u-boot-ti-staging_2016.05.bb | 78 +++++++++++++++++++++++++ recipes-bsp/u-boot/u-boot-ti.inc | 12 ++++ 2 files changed, 90 insertions(+) create mode 100644 recipes-bsp/u-boot/u-boot-ti-staging_2016.05.bb diff --git a/recipes-bsp/u-boot/u-boot-ti-staging_2016.05.bb b/recipes-bsp/u-boot/u-boot-ti-staging_2016.05.bb new file mode 100644 index 0000000..f061c8c --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-ti-staging_2016.05.bb @@ -0,0 +1,78 @@ +require u-boot-ti.inc + +# u-boot needs devtree compiler to parse dts files +DEPENDS += "dtc-native" + +DESCRIPTION = "u-boot bootloader for TI devices" + +LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6" + +PR = "r0" +PV_append = "+git${SRCPV}" + +SRC_URI = "git://git.ti.com/ti-u-boot/ti-u-boot.git;protocol=git;branch=${BRANCH}" + +BRANCH ?= "ti-u-boot-2016.05" + +SRCREV = "70f44b8fc3dac08f44fba75f1dc25680be208fba" + +# Support for secure devices - detailed info is in doc/README.ti-secure +TI_SECURE_DEV_PKG ?= "" +TI_SECURE_DEV_PKG_dra7xx-hs-evm = "${TI_SECURE_DEV_PKG_DRA7}" +TI_SECURE_DEV_PKG_am437x-hs-evm = "${TI_SECURE_DEV_PKG_AM4}" +export TI_SECURE_DEV_PKG + +SPL_BINARY = "MLO" +SPL_UART_BINARY = "u-boot-spl.bin" + +# Keystone specifics +UBOOT_SUFFIX_keystone = "bin" +SPL_UART_BINARY_keystone = "" + +# 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_compile_append_am437x-hs-evm () { + if [ -f ${S}/u-boot-spl_HS_ISSW ]; then + rm -rf ${S}/MLO + cp ${S}/u-boot-spl_HS_ISSW ${S}/MLO + fi +} + +do_install_append_keystone () { + 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_keystone () { + 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} +} diff --git a/recipes-bsp/u-boot/u-boot-ti.inc b/recipes-bsp/u-boot/u-boot-ti.inc index 0cb53ea..b0054c9 100644 --- a/recipes-bsp/u-boot/u-boot-ti.inc +++ b/recipes-bsp/u-boot/u-boot-ti.inc @@ -1,3 +1,15 @@ +# UBOOT_LOCALVERSION can be set to add a tag to the end of the +# U-boot version string. such as the commit id +def get_git_revision(p): + import subprocess + + try: + return subprocess.Popen("git rev-parse HEAD 2>/dev/null ", cwd=p, shell=True, stdout=subprocess.PIPE).communicate()[0].rstrip() + except OSError: + return None + +UBOOT_LOCALVERSION = "-g${@get_git_revision('${S}').__str__()[:10]}" + UBOOT_SUFFIX ?= "img" require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc -- 2.2.0