summaryrefslogtreecommitdiffstats
path: root/meta/classes/gummiboot.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-05 21:15:08 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-09 13:39:11 +0000
commit022a8b58c862a1db68c2dcddc908317e5d61d92e (patch)
tree55fbd06754d21b0cad93128e0c912acc2638a959 /meta/classes/gummiboot.bbclass
parente016eb10b075e280b4e78a04e47b59a173386421 (diff)
downloadpoky-022a8b58c862a1db68c2dcddc908317e5d61d92e.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). (From OE-Core rev: 688f7a64917a5ce5cbe12f8e5da4d47e265d240f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/gummiboot.bbclass')
-rw-r--r--meta/classes/gummiboot.bbclass14
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() {
60} 60}
61 61
62python build_efi_cfg() { 62python build_efi_cfg() {
63 s = d.getVar("S", True) 63 s = d.getVar("S")
64 labels = d.getVar('LABELS', True) 64 labels = d.getVar('LABELS')
65 if not labels: 65 if not labels:
66 bb.debug(1, "LABELS not defined, nothing to do") 66 bb.debug(1, "LABELS not defined, nothing to do")
67 return 67 return
@@ -70,7 +70,7 @@ python build_efi_cfg() {
70 bb.debug(1, "No labels, nothing to do") 70 bb.debug(1, "No labels, nothing to do")
71 return 71 return
72 72
73 cfile = d.getVar('GUMMIBOOT_CFG', True) 73 cfile = d.getVar('GUMMIBOOT_CFG')
74 try: 74 try:
75 cfgfile = open(cfile, 'w') 75 cfgfile = open(cfile, 'w')
76 except OSError: 76 except OSError:
@@ -78,7 +78,7 @@ python build_efi_cfg() {
78 78
79 cfgfile.write('# Automatically created by OE\n') 79 cfgfile.write('# Automatically created by OE\n')
80 cfgfile.write('default %s\n' % (labels.split()[0])) 80 cfgfile.write('default %s\n' % (labels.split()[0]))
81 timeout = d.getVar('GUMMIBOOT_TIMEOUT', True) 81 timeout = d.getVar('GUMMIBOOT_TIMEOUT')
82 if timeout: 82 if timeout:
83 cfgfile.write('timeout %s\n' % timeout) 83 cfgfile.write('timeout %s\n' % timeout)
84 else: 84 else:
@@ -88,7 +88,7 @@ python build_efi_cfg() {
88 for label in labels.split(): 88 for label in labels.split():
89 localdata = d.createCopy() 89 localdata = d.createCopy()
90 90
91 overrides = localdata.getVar('OVERRIDES', True) 91 overrides = localdata.getVar('OVERRIDES')
92 if not overrides: 92 if not overrides:
93 bb.fatal('OVERRIDES not defined') 93 bb.fatal('OVERRIDES not defined')
94 94
@@ -104,8 +104,8 @@ python build_efi_cfg() {
104 entrycfg.write('title %s\n' % label) 104 entrycfg.write('title %s\n' % label)
105 entrycfg.write('linux /vmlinuz\n') 105 entrycfg.write('linux /vmlinuz\n')
106 106
107 append = localdata.getVar('APPEND', True) 107 append = localdata.getVar('APPEND')
108 initrd = localdata.getVar('INITRD', True) 108 initrd = localdata.getVar('INITRD')
109 109
110 if initrd: 110 if initrd:
111 entrycfg.write('initrd /initrd\n') 111 entrycfg.write('initrd /initrd\n')