summaryrefslogtreecommitdiffstats
path: root/meta/classes
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:47:42 +0000
commitc73e50a91e02fb2ef0ab962fd97a32b5668a389e (patch)
treec47df3573bcf0f99ffd712f1ce7ab7dd9194f411 /meta/classes
parent39439da55570acaa5e36a7db577a3c2c0486b5f8 (diff)
downloadpoky-c73e50a91e02fb2ef0ab962fd97a32b5668a389e.tar.gz
kernel.bbclass: fix extra + in kernelrelease
* see http://lists.linuxtogo.org/pipermail/openembedded-core/2011-December/014308.html (From OE-Core rev: 56fe5300ab5ab072c20acd03d7fc26e9cae4e652) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 5e4cdd458c..736768eedd 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -204,6 +204,12 @@ sysroot_stage_all_append() {
204} 204}
205 205
206kernel_do_configure() { 206kernel_do_configure() {
207 # fixes extra + in /lib/modules/2.6.37+
208 # $ scripts/setlocalversion . => +
209 # $ make kernelversion => 2.6.37
210 # $ make kernelrelease => 2.6.37+
211 touch ${B}/.scmversion
212
207 # Copy defconfig to .config if .config does not exist. This allows 213 # Copy defconfig to .config if .config does not exist. This allows
208 # recipes to manage the .config themselves in do_configure_prepend(). 214 # recipes to manage the .config themselves in do_configure_prepend().
209 if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then 215 if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then