]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
spec: Point fedora --with-loader-nvram at nightly firmware repo
authorCole Robinson <crobinso@redhat.com>
Wed, 22 Apr 2015 20:01:32 +0000 (16:01 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 28 Apr 2015 00:23:02 +0000 (20:23 -0400)
Fedora doesn't ship OVMF/AAVMF builds in its repos due to licensing
issues, so the recommended way to consume these bits is via Gerd's
nightly repo: https://www.kraxel.org/repos

Let's teach fedora builds about the loader/nvram pairs these packages
installed, so users don't need to edit qemu.conf to get virt-manager
UEFI support.

(cherry picked from commit f93e1211297aeae0ca7ee2f0d9dd0a213f468702)

libvirt.spec.in

index 380595f8a6c7892cef61e56df79928a4d93d7be1..5d43f4444e9281d83527118290910666f48d5863 100644 (file)
 %endif
 
 
+# Advertise OVMF and AAVMF from nightly firmware repo
+%if 0%{?fedora}
+    %define with_loader_nvram --with-loader-nvram="/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd:/usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd:/usr/share/edk2.git/aarch64/QEMU_EFI-pflash.raw:/usr/share/edk2.git/aarch64/vars-template-pflash.raw"
+%endif
+
+
 # The RHEL-5 Xen package has some feature backports. This
 # flag is set to enable use of those special bits on RHEL-5
 %if 0%{?rhel} == 5
@@ -1510,6 +1516,7 @@ rm -f po/stamp-po
            %{with_packager_version} \
            --with-qemu-user=%{qemu_user} \
            --with-qemu-group=%{qemu_group} \
+           %{?with_loader_nvram} \
            %{?enable_werror} \
            --enable-expensive-tests \
            %{init_scripts}