kernel.bbclass: fix extra + in kernelrelease
authorMartin Jansa <Martin.Jansa@gmail.com>
Fri, 23 Mar 2012 08:31:17 +0000 (09:31 +0100)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:19:53 +0000 (08:19 -0800)
* see http://lists.linuxtogo.org/pipermail/openembedded-core/2011-December/014308.html

(From meta-openembedded rev: ef29620a796fc3004afaf998c875ad76c533652c)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-oe/classes/kernel.bbclass

index 02d0ca5..d87b177 100644 (file)
@@ -209,6 +209,12 @@ sysroot_stage_all_append() {
 }
 
 kernel_do_configure() {
+       # fixes extra + in /lib/modules/2.6.37+
+       # $ scripts/setlocalversion . => +
+       # $ make kernelversion => 2.6.37
+       # $ make kernelrelease => 2.6.37+
+       touch ${B}/.scmversion
+
        # Copy defconfig to .config if .config does not exist. This allows
        # recipes to manage the .config themselves in do_configure_prepend().
        if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then