diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-05 21:15:08 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-06 11:46:14 +0000 |
commit | 688f7a64917a5ce5cbe12f8e5da4d47e265d240f (patch) | |
tree | dec209d96fc00cc8a5fdd9ffd3f47abc167e0f4b /meta/classes/gummiboot.bbclass | |
parent | af330fc0087692039d4256a6fb1e122742e8ec1a (diff) | |
download | openembedded-core-contrib-688f7a64917a5ce5cbe12f8e5da4d47e265d240f.tar.gz |
meta/scripts: Various getVar/getVarFlag expansion parameter fixes
There were a few straggling expansion parameter removals left for
getVar/getVarFlag where the odd whitespace meant they were missed
on previous passes. There were also some plain broken ussages such
as:
d.getVar('ALTERNATIVE_TARGET', old_name, True)
path = d.getVar('PATH', d, True)
d.getVar('IMAGE_ROOTFS', 'True')
which I've corrected (they happend to work by luck).
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/gummiboot.bbclass')
-rw-r--r-- | meta/classes/gummiboot.bbclass | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/meta/classes/gummiboot.bbclass b/meta/classes/gummiboot.bbclass index 4f2dea6c3d..5aaf766ef4 100644 --- a/meta/classes/gummiboot.bbclass +++ b/meta/classes/gummiboot.bbclass @@ -60,8 +60,8 @@ efi_hddimg_populate() { } python build_efi_cfg() { - s = d.getVar("S", True) - labels = d.getVar('LABELS', True) + s = d.getVar("S") + labels = d.getVar('LABELS') if not labels: bb.debug(1, "LABELS not defined, nothing to do") return @@ -70,7 +70,7 @@ python build_efi_cfg() { bb.debug(1, "No labels, nothing to do") return - cfile = d.getVar('GUMMIBOOT_CFG', True) + cfile = d.getVar('GUMMIBOOT_CFG') try: cfgfile = open(cfile, 'w') except OSError: @@ -78,7 +78,7 @@ python build_efi_cfg() { cfgfile.write('# Automatically created by OE\n') cfgfile.write('default %s\n' % (labels.split()[0])) - timeout = d.getVar('GUMMIBOOT_TIMEOUT', True) + timeout = d.getVar('GUMMIBOOT_TIMEOUT') if timeout: cfgfile.write('timeout %s\n' % timeout) else: @@ -88,7 +88,7 @@ python build_efi_cfg() { for label in labels.split(): localdata = d.createCopy() - overrides = localdata.getVar('OVERRIDES', True) + overrides = localdata.getVar('OVERRIDES') if not overrides: bb.fatal('OVERRIDES not defined') @@ -104,8 +104,8 @@ python build_efi_cfg() { entrycfg.write('title %s\n' % label) entrycfg.write('linux /vmlinuz\n') - append = localdata.getVar('APPEND', True) - initrd = localdata.getVar('INITRD', True) + append = localdata.getVar('APPEND') + initrd = localdata.getVar('INITRD') if initrd: entrycfg.write('initrd /initrd\n') |