mirror of
https://git.yoctoproject.org/meta-raspberrypi
synced 2026-05-08 05:09:17 +00:00
devicetree: auto-disable dts for old kernels
After '6392a63 rpi-base.inc: Use KERNEL_DEVICETREE by default' was introduced, kernel versions < 3.18 might not be buildable. Since full device tree support was introduced in 3.18 this change ensures that all kernel < 3.18 will automatically disable device tree. Signed-off-by: Petter Mabäcker <petter@technux.se>
This commit is contained in:
committed by
Andrei Gherzan
parent
6ef9d94a2c
commit
4a4373c02d
@@ -1,4 +1,5 @@
|
||||
require linux.inc
|
||||
inherit linux-raspberrypi-base
|
||||
|
||||
DESCRIPTION = "Linux Kernel for Raspberry Pi"
|
||||
SECTION = "kernel"
|
||||
@@ -26,7 +27,8 @@ UDEV_GE_141 ?= "1"
|
||||
# See http://www.yoctoproject.org/docs/current/bitbake-user-manual/bitbake-user-manual.html#anonymous-python-functions
|
||||
python __anonymous () {
|
||||
kerneltype = d.getVar('KERNEL_IMAGETYPE', True)
|
||||
kerneldt = d.getVar('KERNEL_DEVICETREE', True)
|
||||
kerneldt = get_dts(d, d.getVar('LINUX_VERSION', True))
|
||||
d.setVar("KERNEL_DEVICETREE", kerneldt)
|
||||
|
||||
# Add dependency to 'rpi-mkimage-native' package only if RPi bootloader is used with DT-enable kernel
|
||||
if kerneldt:
|
||||
|
||||
Reference in New Issue
Block a user