Remove True option to getVar calls
getVar() now defaults to expanding by default. Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
This commit is contained in:

committed by
Andrei Gherzan

parent
e1f69daa80
commit
3ad29d11e7
@ -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.
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user