aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/classes
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2012-03-23 09:31:17 +0100
committerKoen Kooi <koen@dominion.thruhere.net>2012-03-26 15:05:46 +0200
commitef29620a796fc3004afaf998c875ad76c533652c (patch)
treea80651c3704d2d64a8a85bf55a061da5eb77c0ed /meta-oe/classes
parent5d07b1429e302463c951eeee962c2a3941789126 (diff)
downloadmeta-openembedded-ef29620a796fc3004afaf998c875ad76c533652c.tar.gz
meta-openembedded-ef29620a796fc3004afaf998c875ad76c533652c.tar.bz2
meta-openembedded-ef29620a796fc3004afaf998c875ad76c533652c.zip
kernel.bbclass: fix extra + in kernelrelease
* see http://lists.linuxtogo.org/pipermail/openembedded-core/2011-December/014308.html Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/classes')
-rw-r--r--meta-oe/classes/kernel.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-oe/classes/kernel.bbclass b/meta-oe/classes/kernel.bbclass
index 02d0ca547..d87b177c7 100644
--- a/meta-oe/classes/kernel.bbclass
+++ b/meta-oe/classes/kernel.bbclass
@@ -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