mirror of
https://git.yoctoproject.org/meta-raspberrypi
synced 2026-07-16 03:46:56 +00:00
linux-raspberrypi-base.bbclass: remove version hack
* no more required (version > 3.17 | > 4.3.x | > 4.4.5) * causes error with rt kernel Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
committed by
Andrei Gherzan
parent
17f0c23305
commit
96b9c633d7
@@ -14,21 +14,6 @@ def get_dts(d, ver=None):
|
|||||||
from the kernel staging '''
|
from the kernel staging '''
|
||||||
ver = get_kernelversion_file(staging_dir)
|
ver = get_kernelversion_file(staging_dir)
|
||||||
|
|
||||||
if ver is not None:
|
|
||||||
min_ver = ver.split('.', 3)
|
|
||||||
else:
|
|
||||||
return dts
|
|
||||||
|
|
||||||
# Always turn off device tree support for kernel's < 3.18
|
|
||||||
try:
|
|
||||||
if int(min_ver[0]) >= 4:
|
|
||||||
if (int(min_ver[1]) < 4) or (int(min_ver[1]) == 4 and int(min_ver[2]) < 6):
|
|
||||||
dts = ' '.join([(re.sub(r'(.*)\.dtbo$', r'\1-overlay.dtb', x)) for x in dts.split()])
|
|
||||||
elif int(min_ver[1]) < 18:
|
|
||||||
dts = ""
|
|
||||||
except IndexError:
|
|
||||||
min_ver = None
|
|
||||||
|
|
||||||
return dts
|
return dts
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user