Patchwork [meta-oe,2/5] kernel.bbclass: fix extra + in kernelrelease

login
register
mail settings
Submitter Martin Jansa
Date March 23, 2012, 1:04 p.m.
Message ID <0683eac11a18f65c19f75ead09b16106aab9a911.1332507730.git.Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/24281/
State Accepted
Commit ef29620a796fc3004afaf998c875ad76c533652c
Headers show

Comments

Martin Jansa - March 23, 2012, 1:04 p.m.
* see http://lists.linuxtogo.org/pipermail/openembedded-core/2011-December/014308.html

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta-oe/classes/kernel.bbclass |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Patch

diff --git a/meta-oe/classes/kernel.bbclass b/meta-oe/classes/kernel.bbclass
index 02d0ca5..d87b177 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