linux-mainline: Add "allwinner" prefix only if not available

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
This commit is contained in:
Marek Belisko 2023-11-20 13:02:33 +01:00
parent cd1031613f
commit cc1de9f039

View File

@ -19,8 +19,9 @@ python() {
major, minor = kernel_version() major, minor = kernel_version()
if major >= 6 and minor >= 5: if major >= 6 and minor >= 5:
dt = d.getVar('KERNEL_DEVICETREE', True) dt = d.getVar('KERNEL_DEVICETREE', True)
dt = "allwinner/{0}".format(dt) if not "allwinner" in dt:
d.setVar('KERNEL_DEVICETREE', dt) dt = "allwinner/{0}".format(dt)
d.setVar('KERNEL_DEVICETREE', dt)
d.setVar('KERNEL_DTB_PREFIX', "1") d.setVar('KERNEL_DTB_PREFIX', "1")
} }