summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2012-03-23 13:56:29 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-23 17:46:28 +0000
commit56fe5300ab5ab072c20acd03d7fc26e9cae4e652 (patch)
treecdb05395da4f89d57b0a8254235798fe28952f43 /meta
parent00999468341efdca1e884594dbfe25a73149e675 (diff)
downloadopenembedded-core-56fe5300ab5ab072c20acd03d7fc26e9cae4e652.tar.gz
openembedded-core-56fe5300ab5ab072c20acd03d7fc26e9cae4e652.tar.bz2
openembedded-core-56fe5300ab5ab072c20acd03d7fc26e9cae4e652.tar.xz
openembedded-core-56fe5300ab5ab072c20acd03d7fc26e9cae4e652.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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/kernel.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 5e4cdd458..736768eed 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -204,6 +204,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