[yocto] [meta-raspberrypi][PATCH 1/3] Remove True option to getVar calls
Paul Barker
paul at paulbarker.me.uk
Mon Jan 2 05:20:11 PST 2017
getVar() now defaults to expanding by default.
Signed-off-by: Paul Barker <paul at paulbarker.me.uk>
---
classes/linux-raspberrypi-base.bbclass | 4 ++--
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
def get_dts(d, ver=None):
import re
- staging_dir = d.getVar("STAGING_KERNEL_BUILDDIR", True)
- dts = d.getVar("KERNEL_DEVICETREE", True)
+ staging_dir = d.getVar("STAGING_KERNEL_BUILDDIR")
+ dts = d.getVar("KERNEL_DEVICETREE")
# d.getVar() might return 'None' as a normal string
# 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",
# Set programmatically some variables during recipe parsing
# 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 = get_dts(d, d.getVar('LINUX_VERSION', True))
+ kerneltype = d.getVar('KERNEL_IMAGETYPE')
+ kerneldt = get_dts(d, d.getVar('LINUX_VERSION'))
d.setVar("KERNEL_DEVICETREE", kerneldt)
}
--
2.1.4
More information about the yocto
mailing list