mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 21:09:03 +02:00
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:
parent
e1f69daa80
commit
3ad29d11e7
|
@ -3,8 +3,8 @@ inherit linux-kernel-base
|
||||||
def get_dts(d, ver=None):
|
def get_dts(d, ver=None):
|
||||||
import re
|
import re
|
||||||
|
|
||||||
staging_dir = d.getVar("STAGING_KERNEL_BUILDDIR", True)
|
staging_dir = d.getVar("STAGING_KERNEL_BUILDDIR")
|
||||||
dts = d.getVar("KERNEL_DEVICETREE", True)
|
dts = d.getVar("KERNEL_DEVICETREE")
|
||||||
|
|
||||||
# d.getVar() might return 'None' as a normal string
|
# d.getVar() might return 'None' as a normal string
|
||||||
# leading to 'is None' check isn't enough.
|
# 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
|
# Set programmatically some variables during recipe parsing
|
||||||
# See http://www.yoctoproject.org/docs/current/bitbake-user-manual/bitbake-user-manual.html#anonymous-python-functions
|
# See http://www.yoctoproject.org/docs/current/bitbake-user-manual/bitbake-user-manual.html#anonymous-python-functions
|
||||||
python __anonymous () {
|
python __anonymous () {
|
||||||
kerneltype = d.getVar('KERNEL_IMAGETYPE', True)
|
kerneltype = d.getVar('KERNEL_IMAGETYPE')
|
||||||
kerneldt = get_dts(d, d.getVar('LINUX_VERSION', True))
|
kerneldt = get_dts(d, d.getVar('LINUX_VERSION'))
|
||||||
d.setVar("KERNEL_DEVICETREE", kerneldt)
|
d.setVar("KERNEL_DEVICETREE", kerneldt)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user