diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2016-03-22 02:48:19 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-25 10:29:16 +0000 |
commit | 4ebaeb281bc70a9962ab9f4c49c0a2587fe3487a (patch) | |
tree | 9505154827b8f99b1f8279310f8719f145740012 /meta/classes/bootimg.bbclass | |
parent | af1f77a1eb9d1dc3de17c9b0a2b74d76ada40544 (diff) | |
download | poky-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/bootimg.bbclass')
-rw-r--r-- | meta/classes/bootimg.bbclass | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass index 0249a9dcf7..70ce07032b 100644 --- a/meta/classes/bootimg.bbclass +++ b/meta/classes/bootimg.bbclass | |||
@@ -49,8 +49,6 @@ EFI_CLASS = "${@bb.utils.contains("MACHINE_FEATURES", "efi", "${EFI_PROVIDER}", | |||
49 | 49 | ||
50 | KERNEL_IMAGETYPE ??= "bzImage" | 50 | KERNEL_IMAGETYPE ??= "bzImage" |
51 | 51 | ||
52 | LABELS ?= "boot install" | ||
53 | |||
54 | # Include legacy boot if MACHINE_FEATURES includes "pcbios" or if it does not | 52 | # Include legacy boot if MACHINE_FEATURES includes "pcbios" or if it does not |
55 | # contain "efi". This way legacy is supported by default if neither is | 53 | # contain "efi". This way legacy is supported by default if neither is |
56 | # specified, maintaining the original behavior. | 54 | # specified, maintaining the original behavior. |
@@ -282,8 +280,8 @@ build_hddimg() { | |||
282 | } | 280 | } |
283 | 281 | ||
284 | python do_bootimg() { | 282 | python do_bootimg() { |
283 | set_live_vm_vars(d, 'LIVE') | ||
285 | if d.getVar("PCBIOS", True) == "1": | 284 | if d.getVar("PCBIOS", True) == "1": |
286 | syslinux_set_vars(d, 'LIVE') | ||
287 | bb.build.exec_func('build_syslinux_cfg', d) | 285 | bb.build.exec_func('build_syslinux_cfg', d) |
288 | if d.getVar("EFI", True) == "1": | 286 | if d.getVar("EFI", True) == "1": |
289 | bb.build.exec_func('build_efi_cfg', d) | 287 | bb.build.exec_func('build_efi_cfg', d) |