summaryrefslogtreecommitdiffstats
path: root/meta/classes/bootimg.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-11 17:33:43 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-19 10:24:50 +0100
commitbfd279de3275abbfaf3e630383ec244131e0375f (patch)
tree0d1c90461a890d21444f5d2afb13c52b302427f1 /meta/classes/bootimg.bbclass
parent99203edda6f0b09d817454d656c100b7a8806b18 (diff)
downloadpoky-bfd279de3275abbfaf3e630383ec244131e0375f.tar.gz
Convert tab indentation in python functions into four-space
(From OE-Core rev: 604d46c686d06d62d5a07b9c7f4fa170f99307d8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/bootimg.bbclass')
-rw-r--r--meta/classes/bootimg.bbclass26
1 files changed, 13 insertions, 13 deletions
diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass
index a4c0e8d931..11a29cdf2b 100644
--- a/meta/classes/bootimg.bbclass
+++ b/meta/classes/bootimg.bbclass
@@ -42,15 +42,15 @@ EFI_CLASS = "${@base_contains("MACHINE_FEATURES", "efi", "grub-efi", "dummy", d)
42# contain "efi". This way legacy is supported by default if neither is 42# contain "efi". This way legacy is supported by default if neither is
43# specified, maintaining the original behavior. 43# specified, maintaining the original behavior.
44def pcbios(d): 44def pcbios(d):
45 pcbios = base_contains("MACHINE_FEATURES", "pcbios", "1", "0", d) 45 pcbios = base_contains("MACHINE_FEATURES", "pcbios", "1", "0", d)
46 if pcbios == "0": 46 if pcbios == "0":
47 pcbios = base_contains("MACHINE_FEATURES", "efi", "0", "1", d) 47 pcbios = base_contains("MACHINE_FEATURES", "efi", "0", "1", d)
48 return pcbios 48 return pcbios
49 49
50def pcbios_class(d): 50def pcbios_class(d):
51 if d.getVar("PCBIOS", True) == "1": 51 if d.getVar("PCBIOS", True) == "1":
52 return "syslinux" 52 return "syslinux"
53 return "dummy" 53 return "dummy"
54 54
55PCBIOS = "${@pcbios(d)}" 55PCBIOS = "${@pcbios(d)}"
56PCBIOS_CLASS = "${@pcbios_class(d)}" 56PCBIOS_CLASS = "${@pcbios_class(d)}"
@@ -181,12 +181,12 @@ build_hddimg() {
181} 181}
182 182
183python do_bootimg() { 183python do_bootimg() {
184 if d.getVar("PCBIOS", True) == "1": 184 if d.getVar("PCBIOS", True) == "1":
185 bb.build.exec_func('build_syslinux_cfg', d) 185 bb.build.exec_func('build_syslinux_cfg', d)
186 if d.getVar("EFI", True) == "1": 186 if d.getVar("EFI", True) == "1":
187 bb.build.exec_func('build_grub_cfg', d) 187 bb.build.exec_func('build_grub_cfg', d)
188 bb.build.exec_func('build_hddimg', d) 188 bb.build.exec_func('build_hddimg', d)
189 bb.build.exec_func('build_iso', d) 189 bb.build.exec_func('build_iso', d)
190} 190}
191 191
192addtask bootimg before do_build 192addtask bootimg before do_build