diff options
-rw-r--r-- | classes/linux-raspberrypi-base.bbclass | 4 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-raspberrypi.inc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/classes/linux-raspberrypi-base.bbclass b/classes/linux-raspberrypi-base.bbclass index dc2330a..e925d4e 100644 --- a/classes/linux-raspberrypi-base.bbclass +++ b/classes/linux-raspberrypi-base.bbclass | |||
@@ -3,8 +3,8 @@ inherit linux-kernel-base | |||
3 | def get_dts(d, ver=None): | 3 | def get_dts(d, ver=None): |
4 | import re | 4 | import re |
5 | 5 | ||
6 | staging_dir = d.getVar("STAGING_KERNEL_BUILDDIR", True) | 6 | staging_dir = d.getVar("STAGING_KERNEL_BUILDDIR") |
7 | dts = d.getVar("KERNEL_DEVICETREE", True) | 7 | dts = d.getVar("KERNEL_DEVICETREE") |
8 | 8 | ||
9 | # d.getVar() might return 'None' as a normal string | 9 | # d.getVar() might return 'None' as a normal string |
10 | # leading to 'is None' check isn't enough. | 10 | # leading to 'is None' check isn't enough. |
diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index 98229d9..19ebefb 100644 --- a/recipes-kernel/linux/linux-raspberrypi.inc +++ b/recipes-kernel/linux/linux-raspberrypi.inc | |||
@@ -32,8 +32,8 @@ KERNEL_MODULE_AUTOLOAD += "${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", | |||
32 | # Set programmatically some variables during recipe parsing | 32 | # Set programmatically some variables during recipe parsing |
33 | # See http://www.yoctoproject.org/docs/current/bitbake-user-manual/bitbake-user-manual.html#anonymous-python-functions | 33 | # See http://www.yoctoproject.org/docs/current/bitbake-user-manual/bitbake-user-manual.html#anonymous-python-functions |
34 | python __anonymous () { | 34 | python __anonymous () { |
35 | kerneltype = d.getVar('KERNEL_IMAGETYPE', True) | 35 | kerneltype = d.getVar('KERNEL_IMAGETYPE') |
36 | kerneldt = get_dts(d, d.getVar('LINUX_VERSION', True)) | 36 | kerneldt = get_dts(d, d.getVar('LINUX_VERSION')) |
37 | d.setVar("KERNEL_DEVICETREE", kerneldt) | 37 | d.setVar("KERNEL_DEVICETREE", kerneldt) |
38 | } | 38 | } |
39 | 39 | ||