Skip to contentSkip to conversation

Chase Maupin : setup-defconfig: allow using KERNEL_LOCALVERSION

PATCH Arago Project git 1 participant 1 message Apr 18, 2013

lore
Share & tools
lore
#0 lore raw
Module: meta-ti
Branch: danny
Commit: 4b0d898ffdf7c186c6e02b59bb9093488a8774c7
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=4b0d898ffdf7c186c6e02b59bb9093488a8774c7
Author: Chase Maupin <[email protected]>
Date:   Wed Apr 10 16:51:43 2013 -0500

setup-defconfig: allow using KERNEL_LOCALVERSION

* Add capability to use KERNEL_LOCALVERSION to set an extra version string in the kernel. This mimics functionality submitted to the kernel.bbclass but since this overwrites the do_configure it must be added here as well.

---

 recipes-kernel/linux/setup-defconfig.inc |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
recipes-kernel/linux/setup-defconfig.inc +6 -0
index fc5e18e..ed3bce2 100644
@@ -1,3 +1,7 @@
+# KERNEL_LOCALVERSION can be set to add a tag to the end of the
+# kernel version string.  such as the commit id
+KERNEL_LOCALVERSION ?= ""
+
 # Check the defconfig file and see if it points to an in kernel
 # defconfig that should be used, or if it is a complete config file
 
@@ -16,6 +20,8 @@ do_setup_defconfig() {
 #   3. else run yes '' | oe_runmake oldconfig like the default do_configure
 #      does
 do_configure() {
+    echo ${KERNEL_LOCALVERSION} > ${B}/.scmversion
+    echo ${KERNEL_LOCALVERSION} > ${S}/.scmversion
     config=`cat ${S}/.config | grep use-kernel-config | cut -d= -f2`
     if [ "x${config}" != "x" ]
     then