Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/195'
Browse files Browse the repository at this point in the history
* origin/pr/195:
  Depend on edk2-ovmf-xen instead of bundling OVMF
  • Loading branch information
marmarek committed Nov 4, 2024
2 parents c4e3dbf + c30b4fe commit 3229a84
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions xen.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
%define build_qemutrad %{?_with_qemutrad: 1} %{?!_with_qemutrad: 0}
# build with ovmf from edk2-ovmf unless rpmbuild was run with --without ovmf
%define build_ovmf %{?_without_ovmf: 0} %{?!_without_ovmf: 1}
# set to 0 for archs that don't use qemu or ovmf (reduces build dependencies)
# set to 0 for archs that don't use qemu or ovmf (reduces dependencies)
%ifnarch x86_64 %{ix86}
%define build_qemutrad 0
%define build_ovmf 0
Expand Down Expand Up @@ -239,7 +239,7 @@ BuildRequires: systemd-devel
BuildRequires: libfdt-devel
%endif
%if %build_ovmf
BuildRequires: edk2-ovmf
Requires: edk2-ovmf-xen
%endif
%if %build_hyp
BuildRequires: bison flex
Expand Down Expand Up @@ -416,7 +416,7 @@ CONFIG_EXTRA="--enable-qemu-traditional"
CONFIG_EXTRA=""
%endif
%if %build_ovmf
CONFIG_EXTRA="$CONFIG_EXTRA --with-system-ovmf=%{_libexecdir}/%{name}/boot/ovmf.bin"
CONFIG_EXTRA="$CONFIG_EXTRA --with-system-ovmf=%{_datadir}/edk2/xen/OVMF.fd"
%endif
%ifnarch armv7hl aarch64
CONFIG_EXTRA="$CONFIG_EXTRA --with-system-ipxe=/usr/share/ipxe/10ec8139.rom"
Expand Down Expand Up @@ -574,10 +574,6 @@ rm -f %{buildroot}/%{_libdir}/efi/xen.efi
rm -rf %{buildroot}/%{_unitdir}/oxenstored.service
%endif

%if %build_ovmf
cat /usr/share/OVMF/OVMF_{VARS,CODE}.fd >%{buildroot}%{_libexecdir}/%{name}/boot/ovmf.bin
%endif

############ fixup files in /etc ############

# logrotate
Expand Down Expand Up @@ -902,9 +898,6 @@ fi
%{_libexecdir}/%{name}/boot/xen-shim
/usr/lib/debug%{_libexecdir}/xen/boot/xen-shim-syms
%endif
%if %build_ovmf
%{_libexecdir}/xen/boot/ovmf.bin
%endif
%if %build_stubdom
%if %build_qemutrad
%{_libexecdir}/xen/boot/ioemu-stubdom.gz
Expand Down

0 comments on commit 3229a84

Please sign in to comment.