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:
parent
e30c5a29d2
commit
3da120a872
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in New Issue