mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
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:
@@ -3,6 +3,9 @@ def get_kernelversion(p):
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
fn = p + '/include/linux/utsrelease.h'
|
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):
|
if not os.path.isfile(fn):
|
||||||
fn = p + '/include/linux/version.h'
|
fn = p + '/include/linux/version.h'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user