From d81db069077029ee3cd77c951575799fb53390a0 Mon Sep 17 00:00:00 2001 From: William Douglas Date: Tue, 2 Apr 2013 14:55:42 -0700 Subject: [PATCH] Add packaging files Also don't define GNU_EFI_USE_MS_ABI as it causes the uefi_call_wrapper to be undefined in objects that link to this library. Change-Id: I8af734529afdd4bbd545d184886a633bd60acec1 Signed-off-by: William Douglas --- Make.defaults | 2 +- packaging/gnu-efi.spec | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 packaging/gnu-efi.spec diff --git a/Make.defaults b/Make.defaults index 38da180..e3b71af 100644 --- a/Make.defaults +++ b/Make.defaults @@ -54,7 +54,7 @@ GCCNEWENOUGH := $(shell ([ $(GCCVERSION) -gt "4" ] || ([ $(GCCVERSION) -eq "4" ] CPPFLAGS = -DCONFIG_$(ARCH) ifeq ($(GCCNEWENOUGH),1) -CPPFLAGS += -DGNU_EFI_USE_MS_ABI -maccumulate-outgoing-args --std=c11 +CPPFLAGS += -maccumulate-outgoing-args --std=c11 endif CFLAGS = $(ARCH3264) -O2 -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants ASFLAGS = $(ARCH3264) diff --git a/packaging/gnu-efi.spec b/packaging/gnu-efi.spec new file mode 100644 index 0000000..119246c --- /dev/null +++ b/packaging/gnu-efi.spec @@ -0,0 +1,27 @@ +Name: gnu-efi +Version: 3.0 +Release: 1 +License: BSD-3-Clause +Summary: EFI development environment +Url: http://sourceforge.net/projects/gnu-efi/ +Group: System/Boot +Source0: http://download.sourceforge.net/%{name}/%{name}_%{version}.orig.tar.gz +BuildRequires: pciutils + + +%description +gnu-efi is a library for building EFI applications + +%prep +%setup -q -n %{name}-%{version} + +%build +make + +%install +make install PREFIX=%{_prefix} INSTALLROOT=%{buildroot} + +%files +%defattr(-,root,root) +%{_includedir}/efi/* +%{_prefix}/lib/* -- 2.7.4