]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: fix extra + in kernelrelease
authorMartin Jansa <martin.jansa@gmail.com>
Fri, 23 Mar 2012 12:56:29 +0000 (13:56 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Mar 2012 17:46:28 +0000 (17:46 +0000)
* 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>
meta/classes/kernel.bbclass

index 5e4cdd458cc272a86cfb0e90a8272fec90f0da8b..736768eedd894e635c4881f568cde22c23d357f9 100644 (file)
@@ -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