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>
This commit is contained in:
Nathan Rossi 2015-02-04 17:22:45 +10:00 committed by Bruce Ashfield
parent 31cceea813
commit fd2e7465c8
2 changed files with 10 additions and 2 deletions

View File

@ -15,11 +15,13 @@ require xen-arch.inc
PACKAGECONFIG ??= " \ PACKAGECONFIG ??= " \
sdl \ sdl \
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \
${@bb.utils.contains('XEN_TARGET_ARCH', 'x86_64', 'hvm', '', d)} \
" "
PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,virtual/libsdl," PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,virtual/libsdl,"
PACKAGECONFIG[xsm] = "--enable-xsmpolicy,--disable-xsmpolicy,checkpolicy-native," PACKAGECONFIG[xsm] = "--enable-xsmpolicy,--disable-xsmpolicy,checkpolicy-native,"
PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd," PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd,"
PACKAGECONFIG[hvm] = "--with-system-seabios="${STAGING_DIR_HOST}/usr/share/firmware/bios.bin",--disable-seabios,seabios ipxe vgabios,"
DEPENDS = " \ DEPENDS = " \
bison-native \ bison-native \
@ -686,6 +688,7 @@ EXTRA_OECONF += " \
--disable-ioemu-stubdom \ --disable-ioemu-stubdom \
--disable-pv-grub \ --disable-pv-grub \
--disable-xenstore-stubdom \ --disable-xenstore-stubdom \
--disable-rombios \
" "
do_configure() { do_configure() {

View File

@ -19,9 +19,14 @@ EXTRA_OECONF_append += " \
--with-sysconfig-leaf-dir=default \ --with-sysconfig-leaf-dir=default \
--with-system-qemu=/usr/bin/qemu-system-i386 \ --with-system-qemu=/usr/bin/qemu-system-i386 \
--disable-qemu-traditional \ --disable-qemu-traditional \
--disable-seabios \
" "
EXTRA_OEMAKE += "STDVGA_ROM=${STAGING_DIR_HOST}/usr/share/firmware/vgabios-0.7a.bin"
EXTRA_OEMAKE += "CIRRUSVGA_ROM=${STAGING_DIR_HOST}/usr/share/firmware/vgabios-0.7a.cirrus.bin"
EXTRA_OEMAKE += "SEABIOS_ROM=${STAGING_DIR_HOST}/usr/share/firmware/bios.bin"
EXTRA_OEMAKE += "ETHERBOOT_ROMS=${STAGING_DIR_HOST}/usr/share/firmware/rtl8139.rom"
#EXTRA_OEMAKE += "XENGFX_ROM=${STAGING_DIR_HOST}/usr/share/firmware/vgabios.bin"
do_configure_prepend() { do_configure_prepend() {
# fixup AS/CC/CCP/etc variable within StdGNU.mk # fixup AS/CC/CCP/etc variable within StdGNU.mk
for i in AS LD CC CPP AR RANLIB NM STRIP OBJCOPY OBJDUMP; do for i in AS LD CC CPP AR RANLIB NM STRIP OBJCOPY OBJDUMP; do