Add packaging files accepted/trunk/20130406.013345 submit/trunk/20130404.171446
authorWilliam Douglas <william.douglas@intel.com>
Tue, 2 Apr 2013 21:55:42 +0000 (14:55 -0700)
committerWilliam Douglas <william.douglas@intel.com>
Thu, 4 Apr 2013 17:14:16 +0000 (10:14 -0700)
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 <william.douglas@intel.com>
Make.defaults
packaging/gnu-efi.spec [new file with mode: 0644]

index 38da180..e3b71af 100644 (file)
@@ -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 (file)
index 0000000..119246c
--- /dev/null
@@ -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/*