[packages/xen] Build Xen alsa as an EFI binary on x86_64

jajcus jajcus at pld-linux.org
Mon Oct 29 15:07:55 CET 2012


commit 2c37e39c7177825f7fcd6c549f1f86c95f65fa63
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Mon Oct 29 15:07:16 2012 +0100

    Build Xen alsa as an EFI binary on x86_64

 xen.spec | 31 +++++++++++++++++++++++++++++--
 1 file changed, 29 insertions(+), 2 deletions(-)
---
diff --git a/xen.spec b/xen.spec
index 18e4222..638ae29 100644
--- a/xen.spec
+++ b/xen.spec
@@ -12,10 +12,15 @@
 %bcond_without	bluetooth	# disable bluetooth support in Xen qemu
 %bcond_without	brlapi		# disable brlapi support in Xen qemu
 %bcond_without	ocaml		# build Ocaml libraries for Xen tools
-#
+%bcond_without	efi		# build the EFI hypervisor
+
+%ifnarch x86_64
+%undefine	with_efi
+%endif
+
 # from Config.mk:
 %define	seabios_version		1.6.3.2
-#
+
 %define	xen_extfiles_url	http://xenbits.xensource.com/xen-extfiles
 Summary:	Xen - a virtual machine monitor
 Summary(pl.UTF-8):	Xen - monitor maszyny wirtualnej
@@ -85,6 +90,7 @@ BuildRequires:	bcc
 %endif
 %{?with_bluetooth:BuildRequires:	bluez-libs-devel}
 %{?with_brlapi:BuildRequires:	brlapi-devel}
+%{?with_efi:BuildRequires:	binutils >= 2.23.51.0.3-2}
 BuildRequires:	bzip2-devel
 BuildRequires:	ceph-devel
 BuildRequires:	curl-devel
@@ -331,6 +337,20 @@ This package provides bash-completion for Xen (xl).
 %description -n bash-completion-%{name} -l pl.UTF-8
 Ten pakiet zapewnia bashowe dopełnianie poleceń dla Xena (xl).
 
+%package efi
+Summary:	Xen hypervisor binary for EFI
+Summary(pl.UTF-8):	Hybervisor Xen dla EFI
+Group:		Applications/System
+Requires:	%{name}-libs-guest = %{version}-%{release}
+
+%description efi
+Xen hypervisor EFI binary, which can be booted directly from (U)EFI
+firmware without help from any additional bootloader.
+
+%description efi -l pl.UTF-8
+Nadzorca Xen w postaci, która może być uruchomiona wprost z firmware
+(U)EFI, bez potrzeby oddzielnego bootloadera.
+
 %prep
 %setup -q -a 16
 %patch0 -p1
@@ -775,3 +795,10 @@ fi
 %files -n bash-completion-%{name}
 %defattr(644,root,root,755)
 /etc/bash_completion.d/xl.sh
+
+%if %{with efi}
+%files efi
+%defattr(644,root,root,755)
+%dir %{_libdir}/efi
+%{_libdir}/efi/*.efi
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xen.git/commitdiff/2c37e39c7177825f7fcd6c549f1f86c95f65fa63



More information about the pld-cvs-commit mailing list