diff options
| author | Nathan Rossi <nathan.rossi@xilinx.com> | 2015-02-04 17:22:45 +1000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2015-02-20 21:17:04 -0500 |
| commit | fd2e7465c8a01aed8a27847799744c0ca3bfb936 (patch) | |
| tree | 21d165926864c1dfd9b366c6b533b58ae3adb897 | |
| parent | 31cceea813c806ca8b4f14de305b2ebc53fdf426 (diff) | |
| download | meta-virtualization-fd2e7465c8a01aed8a27847799744c0ca3bfb936.tar.gz | |
xen: Add 'hvm' PACKAGECONFIG for hvmloader building
* The 'hvm' PACKAGECONFIG (which is valid for x86 targets, and default
enabled for x86-64 targets) enables building the hvmloader with
in-built seabios, ipxe and vgabios firmware
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
| -rw-r--r-- | recipes-extended/xen/xen.inc | 5 | ||||
| -rw-r--r-- | recipes-extended/xen/xen_4.5.0.bb | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc index 3f703ce4..0e4136aa 100644 --- a/recipes-extended/xen/xen.inc +++ b/recipes-extended/xen/xen.inc | |||
| @@ -15,11 +15,13 @@ require xen-arch.inc | |||
| 15 | PACKAGECONFIG ??= " \ | 15 | PACKAGECONFIG ??= " \ |
| 16 | sdl \ | 16 | sdl \ |
| 17 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \ | 17 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \ |
| 18 | ${@bb.utils.contains('XEN_TARGET_ARCH', 'x86_64', 'hvm', '', d)} \ | ||
| 18 | " | 19 | " |
| 19 | 20 | ||
| 20 | PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,virtual/libsdl," | 21 | PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,virtual/libsdl," |
| 21 | PACKAGECONFIG[xsm] = "--enable-xsmpolicy,--disable-xsmpolicy,checkpolicy-native," | 22 | PACKAGECONFIG[xsm] = "--enable-xsmpolicy,--disable-xsmpolicy,checkpolicy-native," |
| 22 | PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd," | 23 | PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd," |
| 24 | PACKAGECONFIG[hvm] = "--with-system-seabios="${STAGING_DIR_HOST}/usr/share/firmware/bios.bin",--disable-seabios,seabios ipxe vgabios," | ||
| 23 | 25 | ||
| 24 | DEPENDS = " \ | 26 | DEPENDS = " \ |
| 25 | bison-native \ | 27 | bison-native \ |
| @@ -686,7 +688,8 @@ EXTRA_OECONF += " \ | |||
| 686 | --disable-ioemu-stubdom \ | 688 | --disable-ioemu-stubdom \ |
| 687 | --disable-pv-grub \ | 689 | --disable-pv-grub \ |
| 688 | --disable-xenstore-stubdom \ | 690 | --disable-xenstore-stubdom \ |
| 689 | " | 691 | --disable-rombios \ |
| 692 | " | ||
| 690 | 693 | ||
| 691 | do_configure() { | 694 | do_configure() { |
| 692 | # no stubs-32.h in our 64-bit sysroot - hack it into tools/include/gnu | 695 | # no stubs-32.h in our 64-bit sysroot - hack it into tools/include/gnu |
diff --git a/recipes-extended/xen/xen_4.5.0.bb b/recipes-extended/xen/xen_4.5.0.bb index cef0665a..6c17b906 100644 --- a/recipes-extended/xen/xen_4.5.0.bb +++ b/recipes-extended/xen/xen_4.5.0.bb | |||
| @@ -19,9 +19,14 @@ EXTRA_OECONF_append += " \ | |||
| 19 | --with-sysconfig-leaf-dir=default \ | 19 | --with-sysconfig-leaf-dir=default \ |
| 20 | --with-system-qemu=/usr/bin/qemu-system-i386 \ | 20 | --with-system-qemu=/usr/bin/qemu-system-i386 \ |
| 21 | --disable-qemu-traditional \ | 21 | --disable-qemu-traditional \ |
| 22 | --disable-seabios \ | ||
| 23 | " | 22 | " |
| 24 | 23 | ||
| 24 | EXTRA_OEMAKE += "STDVGA_ROM=${STAGING_DIR_HOST}/usr/share/firmware/vgabios-0.7a.bin" | ||
| 25 | EXTRA_OEMAKE += "CIRRUSVGA_ROM=${STAGING_DIR_HOST}/usr/share/firmware/vgabios-0.7a.cirrus.bin" | ||
| 26 | EXTRA_OEMAKE += "SEABIOS_ROM=${STAGING_DIR_HOST}/usr/share/firmware/bios.bin" | ||
| 27 | EXTRA_OEMAKE += "ETHERBOOT_ROMS=${STAGING_DIR_HOST}/usr/share/firmware/rtl8139.rom" | ||
| 28 | #EXTRA_OEMAKE += "XENGFX_ROM=${STAGING_DIR_HOST}/usr/share/firmware/vgabios.bin" | ||
| 29 | |||
| 25 | do_configure_prepend() { | 30 | do_configure_prepend() { |
| 26 | # fixup AS/CC/CCP/etc variable within StdGNU.mk | 31 | # fixup AS/CC/CCP/etc variable within StdGNU.mk |
| 27 | for i in AS LD CC CPP AR RANLIB NM STRIP OBJCOPY OBJDUMP; do | 32 | for i in AS LD CC CPP AR RANLIB NM STRIP OBJCOPY OBJDUMP; do |
