Skip to content

Commit

Permalink
hvm: Use our SeaBIOS build
Browse files Browse the repository at this point in the history
The SeaBIOS build provided by Fedora 25 is too old to support the
mptsas1068 scsi controller. So we build a newer one together with the
linux stubdom qemu (binary included in xen-hvm-stubdom-linux).
  • Loading branch information
HW42 committed Sep 22, 2017
1 parent 6dd581a commit bd36986
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions xen.spec
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ BuildRequires: pciutils-devel
BuildRequires: libuuid-devel
# iasl needed to build hvmloader
BuildRequires: iasl
# build using Fedora seabios and ipxe packages for roms
BuildRequires: seabios-bin ipxe-roms-qemu
# build using Fedora's ipxe package for roms
BuildRequires: ipxe-roms-qemu
# modern compressed kernels
BuildRequires: bzip2-devel xz-devel
# libfsimage
Expand Down Expand Up @@ -147,7 +147,6 @@ Requires(postun): systemd
BuildRequires: systemd
BuildRequires: systemd-devel
# BIOS for HVMs
Requires: seabios-bin
BuildRequires: edk2-ovmf

%description
Expand Down Expand Up @@ -337,11 +336,6 @@ patch -d tools/qemu-xen-traditional -p4 < %{SOURCE35}/lwip-dhcp-qemu-glue.patch
%define efi_flags LD_EFI=/usr/x86_64-w64-mingw32/bin/ld EFI_VENDOR=qubes
mkdir -p dist/install/boot/efi/efi/qubes
%endif
%if %(test -f /usr/share/seabios/bios-256k.bin && echo 1|| echo 0)
%define seabiosloc /usr/share/seabios/bios-256k.bin
%else
%define seabiosloc /usr/share/seabios/bios.bin
%endif
export XEN_VENDORVERSION="-%{release}"
export CFLAGS_EXTRA="$RPM_OPT_FLAGS"
export PATH="/usr/bin:$PATH"
Expand All @@ -356,7 +350,7 @@ make %{?_smp_mflags} %{?efi_flags} prefix=/usr dist-xen
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--libexecdir=/usr/lib \
--with-system-seabios=%{seabiosloc} \
--with-system-seabios=/usr/lib/xen/boot/seabios-256k.bin \
--with-system-ovmf=/usr/lib/xen/boot/ovmf.bin \
--enable-vtpm-stubdom \
--enable-vtpmmgr-stubdom \
Expand Down

0 comments on commit bd36986

Please sign in to comment.