Return-Path: Received: from vms173013pub.verizon.net (vms173013pub.verizon.net [206.46.173.13]) by arago-project.org (Postfix) with ESMTP id B99F552A19 for ; Fri, 23 Aug 2013 20:16:59 +0000 (UTC) Received: from gandalf.denix.org ([unknown] [108.45.150.102]) by vms173013.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0MS000AWA305CPO2@vms173013.mailsrvcs.net> for meta-arago@arago-project.org; Fri, 23 Aug 2013 15:16:59 -0500 (CDT) Received: from elrond.denix (elrond [192.168.0.7]) by gandalf.denix.org (Postfix) with ESMTP id 8BC15200E2; Fri, 23 Aug 2013 16:16:53 -0400 (EDT) From: Denys Dmytriyenko To: meta-arago@arago-project.org Date: Fri, 23 Aug 2013 16:16:41 -0400 Message-id: <1377289002-20230-3-git-send-email-denis@denix.org> X-Mailer: git-send-email 1.8.3.2 In-reply-to: <1377289002-20230-1-git-send-email-denis@denix.org> References: <1377289002-20230-1-git-send-email-denis@denix.org> Subject: [PATCH 3/4] linux-ti-staging: enable LOCALVERSION and AUTOREV X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Aug 2013 20:17:00 -0000 From: Denys Dmytriyenko Signed-off-by: Denys Dmytriyenko --- .../linux/linux-ti-staging_git.bbappend | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meta-arago-distro/recipes-kernel/linux/linux-ti-staging_git.bbappend diff --git a/meta-arago-distro/recipes-kernel/linux/linux-ti-staging_git.bbappend b/meta-arago-distro/recipes-kernel/linux/linux-ti-staging_git.bbappend new file mode 100644 index 0000000..a0a777c --- /dev/null +++ b/meta-arago-distro/recipes-kernel/linux/linux-ti-staging_git.bbappend @@ -0,0 +1,19 @@ +MACHINE_KERNEL_PR_append = "-arago0" + +FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" + +require copy-defconfig.inc + +SRCREV = "${AUTOREV}" + +KERNEL_LOCALVERSION = "-g${@d.getVar('SRCPV', True).partition('+')[2][0:7]}" + +# The below lines are overlayed until the LOCALVERSION change is merged into +# the oe-core danny branch. Update: not coming to danny, keep until dylan. +kernel_do_configure_prepend() { + if [ ! -e ${B}/.scmversion -a ! -e ${S}/.scmversion ] + then + echo ${KERNEL_LOCALVERSION} > ${B}/.scmversion + echo ${KERNEL_LOCALVERSION} > ${S}/.scmversion + fi +} -- 1.8.3.2