summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorPetter Mabäcker <petter@technux.se>2015-05-25 16:59:21 +0200
committerAndrei Gherzan <andrei.gherzan@windriver.com>2015-06-05 14:49:46 +0200
commit4a4373c02d3d8355a2e5faa10af61450e5b093d8 (patch)
treedda67ceb2186e3472ec242693de1887985b2ad90 /recipes-kernel
parent6ef9d94a2c2588dcefe442577ef6ae5bbe722dec (diff)
downloadmeta-raspberrypi-4a4373c02d3d8355a2e5faa10af61450e5b093d8.tar.gz
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>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/linux-raspberrypi.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc
index 84d4f9e..7e36408 100644
--- a/recipes-kernel/linux/linux-raspberrypi.inc
+++ b/recipes-kernel/linux/linux-raspberrypi.inc
@@ -1,4 +1,5 @@
1require linux.inc 1require linux.inc
2inherit linux-raspberrypi-base
2 3
3DESCRIPTION = "Linux Kernel for Raspberry Pi" 4DESCRIPTION = "Linux Kernel for Raspberry Pi"
4SECTION = "kernel" 5SECTION = "kernel"
@@ -26,7 +27,8 @@ UDEV_GE_141 ?= "1"
26# See http://www.yoctoproject.org/docs/current/bitbake-user-manual/bitbake-user-manual.html#anonymous-python-functions 27# See http://www.yoctoproject.org/docs/current/bitbake-user-manual/bitbake-user-manual.html#anonymous-python-functions
27python __anonymous () { 28python __anonymous () {
28 kerneltype = d.getVar('KERNEL_IMAGETYPE', True) 29 kerneltype = d.getVar('KERNEL_IMAGETYPE', True)
29 kerneldt = d.getVar('KERNEL_DEVICETREE', True) 30 kerneldt = get_dts(d, d.getVar('LINUX_VERSION', True))
31 d.setVar("KERNEL_DEVICETREE", kerneldt)
30 32
31 # Add dependency to 'rpi-mkimage-native' package only if RPi bootloader is used with DT-enable kernel 33 # Add dependency to 'rpi-mkimage-native' package only if RPi bootloader is used with DT-enable kernel
32 if kerneldt: 34 if kerneldt: