diff options
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() { | |||
60 | } | 60 | } |
61 | 61 | ||
62 | python build_efi_cfg() { | 62 | python 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') |