diff options
author | Stefan Stanacar <stefanx.stanacar@intel.com> | 2014-03-06 19:57:25 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-11 09:30:14 -0700 |
commit | 9d04183cf8aed9eaa2aa03058488b1198f73cea0 (patch) | |
tree | 83baa1ccab871cb465fecdc88aaa112fe75cb68b /meta/classes/boot-directdisk.bbclass | |
parent | de18567e623ffa1033dc1ba236cad2fa34143e56 (diff) | |
download | poky-9d04183cf8aed9eaa2aa03058488b1198f73cea0.tar.gz |
bootimg/grub-efi.bbclass: allow using a different class for EFI images
Abstract away some names so one can select using EFI_PROVIDER a different
class than grub-efi for populating live images, basically allowing the use
of a different bootloader than grub-efi.
(From OE-Core rev: 14e5de3b8f4d5902d0ac683ff45fb878e88b40ef)
Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/boot-directdisk.bbclass')
-rw-r--r-- | meta/classes/boot-directdisk.bbclass | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/classes/boot-directdisk.bbclass b/meta/classes/boot-directdisk.bbclass index 42b341536a..88e5c52e2b 100644 --- a/meta/classes/boot-directdisk.bbclass +++ b/meta/classes/boot-directdisk.bbclass | |||
@@ -32,7 +32,8 @@ BOOTDD_VOLUME_ID ?= "boot" | |||
32 | BOOTDD_EXTRA_SPACE ?= "16384" | 32 | BOOTDD_EXTRA_SPACE ?= "16384" |
33 | 33 | ||
34 | EFI = "${@base_contains("MACHINE_FEATURES", "efi", "1", "0", d)}" | 34 | EFI = "${@base_contains("MACHINE_FEATURES", "efi", "1", "0", d)}" |
35 | EFI_CLASS = "${@base_contains("MACHINE_FEATURES", "efi", "grub-efi", "", d)}" | 35 | EFI_PROVIDER ?= "grub-efi" |
36 | EFI_CLASS = "${@base_contains("MACHINE_FEATURES", "efi", "${EFI_PROVIDER}", "", d)}" | ||
36 | 37 | ||
37 | # Include legacy boot if MACHINE_FEATURES includes "pcbios" or if it does not | 38 | # Include legacy boot if MACHINE_FEATURES includes "pcbios" or if it does not |
38 | # contain "efi". This way legacy is supported by default if neither is | 39 | # contain "efi". This way legacy is supported by default if neither is |
@@ -87,7 +88,7 @@ build_boot_dd() { | |||
87 | syslinux_hddimg_populate $HDDDIR | 88 | syslinux_hddimg_populate $HDDDIR |
88 | fi | 89 | fi |
89 | if [ "${EFI}" = "1" ]; then | 90 | if [ "${EFI}" = "1" ]; then |
90 | grubefi_hddimg_populate $HDDDIR | 91 | efi_hddimg_populate $HDDDIR |
91 | fi | 92 | fi |
92 | 93 | ||
93 | if [ "${IS_VMDK}" = "true" ]; then | 94 | if [ "${IS_VMDK}" = "true" ]; then |
@@ -154,7 +155,7 @@ python do_bootdirectdisk() { | |||
154 | if d.getVar("PCBIOS", True) == "1": | 155 | if d.getVar("PCBIOS", True) == "1": |
155 | bb.build.exec_func('build_syslinux_cfg', d) | 156 | bb.build.exec_func('build_syslinux_cfg', d) |
156 | if d.getVar("EFI", True) == "1": | 157 | if d.getVar("EFI", True) == "1": |
157 | bb.build.exec_func('build_grub_cfg', d) | 158 | bb.build.exec_func('build_efi_cfg', d) |
158 | bb.build.exec_func('build_boot_dd', d) | 159 | bb.build.exec_func('build_boot_dd', d) |
159 | } | 160 | } |
160 | 161 | ||