diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2016-03-22 02:48:21 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-25 10:29:16 +0000 |
commit | e0bc781ce06262632fec441b47551abe116458d4 (patch) | |
tree | aee44928d2cfcac964af77e2d999e331f743450c /meta/classes/bootimg.bbclass | |
parent | 1b1de893049ac7dabb7f028b1a322082f1b3605c (diff) | |
download | poky-e0bc781ce06262632fec441b47551abe116458d4.tar.gz |
bootimg.bbclass: only inherit syslinux when pcbios
syslinux.bbclass should not be seen when use efi.
(From OE-Core rev: f994eef0aeae861857756d3cc05c49cca17bd12b)
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 | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass index 70ce07032b..d9ed7dbbdb 100644 --- a/meta/classes/bootimg.bbclass +++ b/meta/classes/bootimg.bbclass | |||
@@ -40,6 +40,11 @@ EFIIMGDIR = "${S}/efi_img" | |||
40 | COMPACT_ISODIR = "${S}/iso.z" | 40 | COMPACT_ISODIR = "${S}/iso.z" |
41 | COMPRESSISO ?= "0" | 41 | COMPRESSISO ?= "0" |
42 | 42 | ||
43 | ISOLINUXDIR ?= "/isolinux" | ||
44 | ISO_BOOTIMG = "isolinux/isolinux.bin" | ||
45 | ISO_BOOTCAT = "isolinux/boot.cat" | ||
46 | MKISOFS_OPTIONS = "-no-emul-boot -boot-load-size 4 -boot-info-table" | ||
47 | |||
43 | BOOTIMG_VOLUME_ID ?= "boot" | 48 | BOOTIMG_VOLUME_ID ?= "boot" |
44 | BOOTIMG_EXTRA_SPACE ?= "512" | 49 | BOOTIMG_EXTRA_SPACE ?= "512" |
45 | 50 | ||
@@ -59,10 +64,10 @@ def pcbios(d): | |||
59 | return pcbios | 64 | return pcbios |
60 | 65 | ||
61 | PCBIOS = "${@pcbios(d)}" | 66 | PCBIOS = "${@pcbios(d)}" |
67 | PCBIOS_CLASS = "${@['','syslinux'][d.getVar('PCBIOS', True) == '1']}" | ||
62 | 68 | ||
63 | # The syslinux is required for the isohybrid command and boot catalog | ||
64 | inherit syslinux | ||
65 | inherit ${EFI_CLASS} | 69 | inherit ${EFI_CLASS} |
70 | inherit ${PCBIOS_CLASS} | ||
66 | 71 | ||
67 | populate() { | 72 | populate() { |
68 | DEST=$1 | 73 | DEST=$1 |