summaryrefslogtreecommitdiffstats
path: root/meta/classes/boot-directdisk.bbclass
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2016-03-22 02:48:19 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-25 10:29:16 +0000
commit4ebaeb281bc70a9962ab9f4c49c0a2587fe3487a (patch)
tree9505154827b8f99b1f8279310f8719f145740012 /meta/classes/boot-directdisk.bbclass
parentaf1f77a1eb9d1dc3de17c9b0a2b74d76ada40544 (diff)
downloadpoky-4ebaeb281bc70a9962ab9f4c49c0a2587fe3487a.tar.gz
bootimg.bbclass: fix settings for grub-efi.bbclass
Fixed: - Found potential conflicted var LABELS ... Set LABELS to "boot install" would build out broken images when build vm + live together, use set_live_vm_vars() to fix the problem. - Use ROOT and LABEL in boot-directdisk.bbclass and image-foo.bbclass, they are not only used by syslinux.bbclass, but also grub-efi.bbclass, add "SYSLINUX_" prefix would mislead users. (From OE-Core rev: d7d1e0193c94abb1cd2daf1c298c8c1788f3616d) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@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.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/boot-directdisk.bbclass b/meta/classes/boot-directdisk.bbclass
index fcdef26fd8..c6ada47479 100644
--- a/meta/classes/boot-directdisk.bbclass
+++ b/meta/classes/boot-directdisk.bbclass
@@ -58,8 +58,8 @@ inherit ${PCBIOS_CLASS}
58inherit ${EFI_CLASS} 58inherit ${EFI_CLASS}
59 59
60DISK_SIGNATURE ?= "${DISK_SIGNATURE_GENERATED}" 60DISK_SIGNATURE ?= "${DISK_SIGNATURE_GENERATED}"
61SYSLINUX_ROOT_VM ?= "root=/dev/sda2" 61ROOT_VM ?= "root=/dev/sda2"
62SYSLINUX_CFG_VM ?= "${S}/syslinux_hdd.cfg" 62SYSLINUX_CFG_VM ?= "${S}/syslinux_vm.cfg"
63 63
64boot_direct_populate() { 64boot_direct_populate() {
65 dest=$1 65 dest=$1
@@ -160,8 +160,8 @@ build_boot_dd() {
160 160
161python do_bootdirectdisk() { 161python do_bootdirectdisk() {
162 validate_disk_signature(d) 162 validate_disk_signature(d)
163 set_live_vm_vars(d, 'VM')
163 if d.getVar("PCBIOS", True) == "1": 164 if d.getVar("PCBIOS", True) == "1":
164 syslinux_set_vars(d, 'VM')
165 bb.build.exec_func('build_syslinux_cfg', d) 165 bb.build.exec_func('build_syslinux_cfg', d)
166 if d.getVar("EFI", True) == "1": 166 if d.getVar("EFI", True) == "1":
167 bb.build.exec_func('build_efi_cfg', d) 167 bb.build.exec_func('build_efi_cfg', d)