diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2012-03-23 09:31:17 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-03-26 15:05:46 +0200 |
commit | ef29620a796fc3004afaf998c875ad76c533652c (patch) | |
tree | a80651c3704d2d64a8a85bf55a061da5eb77c0ed /meta-oe/classes/kernel.bbclass | |
parent | 5d07b1429e302463c951eeee962c2a3941789126 (diff) | |
download | meta-openembedded-ef29620a796fc3004afaf998c875ad76c533652c.tar.gz |
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/kernel.bbclass')
-rw-r--r-- | meta-oe/classes/kernel.bbclass | 6 |
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() { | |||
209 | } | 209 | } |
210 | 210 | ||
211 | kernel_do_configure() { | 211 | kernel_do_configure() { |
212 | # fixes extra + in /lib/modules/2.6.37+ | ||
213 | # $ scripts/setlocalversion . => + | ||
214 | # $ make kernelversion => 2.6.37 | ||
215 | # $ make kernelrelease => 2.6.37+ | ||
216 | touch ${B}/.scmversion | ||
217 | |||
212 | # Copy defconfig to .config if .config does not exist. This allows | 218 | # Copy defconfig to .config if .config does not exist. This allows |
213 | # recipes to manage the .config themselves in do_configure_prepend(). | 219 | # recipes to manage the .config themselves in do_configure_prepend(). |
214 | if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then | 220 | if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then |