aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/linux-kernel-base.bbclass
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-05-20 14:14:22 +0100
committerJoshua Lock <josh@linux.intel.com>2010-05-20 14:14:22 +0100
commit3da120a87247a2f8076e4e28e40615474a12bbc1 (patch)
tree4831d9de41c320663d7427a71709868541546d31 /meta/classes/linux-kernel-base.bbclass
parente30c5a29d27f424bb2ec8033bb8337d6ce54251c (diff)
downloadopenembedded-core-contrib-3da120a87247a2f8076e4e28e40615474a12bbc1.tar.gz
linux-kernel-base.bbclass: merge version detection updates from upstream
Kernels after 2.6.33 store the utrelease.h file, used to detect the kernels version, in a different location. Merged from oe.dev Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/classes/linux-kernel-base.bbclass')
-rw-r--r--meta/classes/linux-kernel-base.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/linux-kernel-base.bbclass b/meta/classes/linux-kernel-base.bbclass
index b3e0fdad7a2..510951a620b 100644
--- a/meta/classes/linux-kernel-base.bbclass
+++ b/meta/classes/linux-kernel-base.bbclass
@@ -4,6 +4,9 @@ def get_kernelversion(p):
fn = p + '/include/linux/utsrelease.h'
if not os.path.isfile(fn):
+ # after 2.6.33-rc1
+ fn = p + '/include/generated/utsrelease.h'
+ if not os.path.isfile(fn):
fn = p + '/include/linux/version.h'
import re