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>
This commit is contained in:
Joshua Lock 2010-05-20 14:14:22 +01:00
parent e30c5a29d2
commit 3da120a872
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,9 @@ def get_kernelversion(p):
import re
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'