From 49ae245a5b03551f740b6d20e4d022ba378398b100af7f2c6873fb655cb80203 Mon Sep 17 00:00:00 2001 From: Raymund Will Date: Fri, 12 Jun 2015 07:41:29 +0000 Subject: [PATCH 1/2] Accepting request 311695 from home:pluskalm:branches:Base:System - Update to 3.0.2 * Last entry in changelog same as for version 3.0w - Drop no longer needed patches (both part of upstream) * gnu-efi-build-fix.patch * gnu-efi-allow-external-stdarg.patch - Cleanup spec file with spec-cleaner OBS-URL: https://build.opensuse.org/request/show/311695 OBS-URL: https://build.opensuse.org/package/show/Base:System/gnu-efi?expand=0&rev=17 --- gnu-efi-3.0.2.tar.bz2 | 3 + gnu-efi-allow-external-stdarg.patch | 42 ----------- gnu-efi-build-fix.patch | 113 ---------------------------- gnu-efi.changes | 10 +++ gnu-efi.spec | 38 ++++------ gnu-efi_3.0w.orig.tar.gz | 3 - 6 files changed, 27 insertions(+), 182 deletions(-) create mode 100644 gnu-efi-3.0.2.tar.bz2 delete mode 100644 gnu-efi-allow-external-stdarg.patch delete mode 100644 gnu-efi-build-fix.patch delete mode 100644 gnu-efi_3.0w.orig.tar.gz diff --git a/gnu-efi-3.0.2.tar.bz2 b/gnu-efi-3.0.2.tar.bz2 new file mode 100644 index 0000000..b90b2f5 --- /dev/null +++ b/gnu-efi-3.0.2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:194b580ecdb1fad0e41914845ba064c279afb687855960b58693459e5537b4d7 +size 136134 diff --git a/gnu-efi-allow-external-stdarg.patch b/gnu-efi-allow-external-stdarg.patch deleted file mode 100644 index 8400952..0000000 --- a/gnu-efi-allow-external-stdarg.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 6c10e225bc759d69af520a551b9d7b37f3ae0a82 Mon Sep 17 00:00:00 2001 -From: Nigel Croxon -Date: Mon, 25 Aug 2014 08:51:23 -0400 -Subject: [PATCH] From: David Decotigny Date: Thu, 31 Jul - 2014 18:19:16 -0700 Subject: [PATCH 5/5] allow to use external stdarg.h - -in cases we use gnu-efi together with other libs that define stdarg.h, -break the tie by telling gnu-efi to use that stdarg.h . - -Signed-off-by: David Decotigny -Signed-off-by: Nigel Croxon ---- - gnu-efi-3.0/inc/efistdarg.h | 13 +++++++++---- - 1 file changed, 9 insertions(+), 4 deletions(-) - -diff --git a/gnu-efi-3.0/inc/efistdarg.h b/gnu-efi-3.0/inc/efistdarg.h -index 440f9cd..bb04b31 100644 ---- a/gnu-efi-3.0/inc/efistdarg.h -+++ b/gnu-efi-3.0/inc/efistdarg.h -@@ -19,10 +19,15 @@ Revision History - - --*/ - -+#ifndef GNU_EFI_USE_EXTERNAL_STDARG - typedef __builtin_va_list va_list; - --#define va_start(v,l) __builtin_va_start(v,l) --#define va_end(v) __builtin_va_end(v) --#define va_arg(v,l) __builtin_va_arg(v,l) --#define va_copy(d,s) __builtin_va_copy(d,s) -+# define va_start(v,l) __builtin_va_start(v,l) -+# define va_end(v) __builtin_va_end(v) -+# define va_arg(v,l) __builtin_va_arg(v,l) -+# define va_copy(d,s) __builtin_va_copy(d,s) -+#else -+# include -+#endif -+ - #endif --- -1.8.4.5 - diff --git a/gnu-efi-build-fix.patch b/gnu-efi-build-fix.patch deleted file mode 100644 index 43fab4b..0000000 --- a/gnu-efi-build-fix.patch +++ /dev/null @@ -1,113 +0,0 @@ -From 0a69c42779d1d28aa406fa2c435b180156ee3435 Mon Sep 17 00:00:00 2001 -From: Fedora Ninjas -Date: Thu, 15 May 2014 21:29:25 -0400 -Subject: [PATCH] Try to make this build. - ---- - Make.defaults - inc/Makefile - 2 files changed, 12 insertions(+), 22 deletion(-) - -diff -up a/gnuefi/Makefile b/gnuefi/Makefile ---- a/gnuefi/Makefile 2014-05-15 17:15:54.000000000 -0500 -+++ b/gnuefi/Makefile 2014-05-19 14:02:29.048732554 -0500 -@@ -52,19 +52,6 @@ reloc_aarch64.o: CFLAGS += -fno-jump-tab - - TARGETS = crt0-efi-$(ARCH).o libgnuefi.a - --INSTALLTARGETS = $(TARGETS) --ifneq (,$(findstring FreeBSD,$(OS))) -- ifeq ($(ARCH),x86_64) -- INSTALLTARGETS += elf_$(ARCH)_fbsd_efi.lds -- else -- INSTALLTARGETS += elf_$(ARCH)_efi.lds -- endif --else -- INSTALLTARGETS += elf_$(ARCH)_efi.lds --endif -- --LIBDIRINSTALL = $(INSTALLROOT)/$(LIBDIR) -- - all: $(TARGETS) - - libgnuefi.a: $(patsubst %,libgnuefi.a(%),$(OBJS)) -@@ -72,14 +59,17 @@ libgnuefi.a: $(patsubst %,libgnuefi.a(%) - clean: - rm -f $(TARGETS) *~ *.o $(OBJS) - --$(LIBDIRINSTALL): -- mkdir -p $@ -- --.SECONDEXPANSION: -- --$(LIBDIRINSTALL)/%: % | $$(dir $$@) -- $(INSTALL) -m 644 $< $(dir $@) -- --install: $(addprefix $(LIBDIRINSTALL)/,$(INSTALLTARGETS)) -+install: -+ mkdir -p $(INSTALLROOT)/$(LIBDIR) -+ $(INSTALL) -m 644 $(TARGETS) $(INSTALLROOT)/$(LIBDIR) -+ifneq (,$(findstring FreeBSD,$(OS))) -+ ifeq ($(ARCH),x86_64) -+ $(INSTALL) -m 644 elf_$(ARCH)_fbsd_efi.lds $(INSTALLROOT)/$(LIBDIR) -+ else -+ $(INSTALL) -m 644 elf_$(ARCH)_efi.lds $(INSTALLROOT)/$(LIBDIR) -+ endif -+else -+ $(INSTALL) -m 644 elf_$(ARCH)_efi.lds $(INSTALLROOT)/$(LIBDIR) -+endif - - include $(SRCDIR)/../Make.rules -diff --git a/inc/Makefile b/inc/Makefile -index 526af22..71fded5 100644 ---- a/inc/Makefile -+++ b/inc/Makefile -@@ -8,34 +8,20 @@ TOPDIR = $(SRCDIR)/.. - - CDIR=$(TOPDIR)/.. - --INCDIRINSTALL = $(INSTALLROOT)$(PREFIX)/include/efi -- --SRCHEADERS = $(wildcard $(SRCDIR)/*.h) \ -- $(wildcard $(SRCDIR)/protocol/*.h) \ -- $(wildcard $(SRCDIR)/$(ARCH)/*.h) --ifeq ($(ARCH),ia64) -- SRCHEADERS += $(wildcard $(SRCDIR)/protocol/$(ARCH)/*.h) --endif -- --HEADERS = $(patsubst $(SRCDIR)/%,%,$(SRCHEADERS)) -- - all: - - clean: - -- rm -f *~ -- --$(INCDIRINSTALL) \ --$(INCDIRINSTALL)/protocol \ --$(INCDIRINSTALL)/$(ARCH) \ --$(INCDIRINSTALL)/protocol/$(ARCH): -- mkdir -p $@ -- --.SECONDEXPANSION: -- --$(INCDIRINSTALL)/%.h: %.h | $$(dir $$@) -- $(INSTALL) -m 644 $< $(dir $@) -- --install: $(addprefix $(INCDIRINSTALL)/,$(HEADERS)) -+install: -+ mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi -+ mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi/protocol -+ mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi/$(ARCH) -+ $(INSTALL) -m 644 *.h $(INSTALLROOT)$(PREFIX)/include/efi -+ $(INSTALL) -m 644 protocol/*.h $(INSTALLROOT)$(PREFIX)/include/efi/protocol -+ $(INSTALL) -m 644 $(ARCH)/*.h $(INSTALLROOT)$(PREFIX)/include/efi/$(ARCH) -+ifeq ($(ARCH),ia64) -+ mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi/protocol/ia64 -+ $(INSTALL) -m 644 protocol/ia64/*.h $(INSTALLROOT)$(PREFIX)/include/efi/protocol/ia64 -+endif - - include $(SRCDIR)/../Make.rules --- -1.8.3.1 - diff --git a/gnu-efi.changes b/gnu-efi.changes index fd34d65..b972963 100644 --- a/gnu-efi.changes +++ b/gnu-efi.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Thu Jun 11 20:50:21 UTC 2015 - mpluskal@suse.com + +- Update to 3.0.2 + * Last entry in changelog same as for version 3.0w +- Drop no longer needed patches (both part of upstream) + * gnu-efi-build-fix.patch + * gnu-efi-allow-external-stdarg.patch +- Cleanup spec file with spec-cleaner + ------------------------------------------------------------------- Fri Sep 26 02:41:54 UTC 2014 - glin@suse.com diff --git a/gnu-efi.spec b/gnu-efi.spec index bfa1c56..79701d5 100644 --- a/gnu-efi.spec +++ b/gnu-efi.spec @@ -1,7 +1,7 @@ # # spec file for package gnu-efi # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,16 +17,14 @@ Name: gnu-efi -Version: 3.0w +Version: 3.0.2 Release: 0 Summary: Library for EFI Applications License: BSD-3-Clause and GPL-2.0+ Group: Development/Libraries/Other Url: http://sourceforge.net/projects/gnu-efi -Source: http://downloads.sourceforge.net/gnu-efi/gnu-efi_3.0w.orig.tar.gz +Source: http://sourceforge.net/projects/gnu-efi/files/gnu-efi-%{version}.tar.bz2 Source1: %{name}-rpmlintrc -Patch1: %{name}-build-fix.patch -Patch2: %{name}-allow-external-stdarg.patch BuildRequires: kernel-source BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: ia64 %ix86 x86_64 aarch64 @@ -35,41 +33,33 @@ ExclusiveArch: ia64 %ix86 x86_64 aarch64 Library to develop EFI applications for IA-64 (IPF), IA-32 (x86) and x86_64 platforms using the GNU toolchain and the EFI development environment. -Authors: --------- - Johannes Erdfelt - David Mosberger - Stephane Eranian - %prep -%setup -q -n gnu-efi-3.0 -%patch1 -p1 -%patch2 -p2 +%setup -q %build ########################## ## DO NOT ADD RPM OPT FLAGS! THIS DOES NOT BUILD AGAINST GLIBC ## ########################## -make LINUX_HEADERS=/usr/src/linux +make %{?_smp_mflags} LINUX_HEADERS=%{_prefix}/src/linux %install -make install INSTALLROOT=%{buildroot} LIBDIR=%{_prefix}/%_lib PREFIX=%{_prefix} +make install INSTALLROOT=%{buildroot} LIBDIR=%{_libdir} PREFIX=%{_prefix} %if 0 -mkdir %{buildroot}%{_prefix}/%{_lib}/%{name} -cp -p apps/*.efi %{buildroot}%{_prefix}/%{_lib}/%{name} +mkdir %{buildroot}%{_libdir}/%{name} +cp -p apps/*.efi %{buildroot}%{_libdir}/%{name} %endif %files %defattr(-, root, root) %doc README.* -%{_prefix}/include/efi -%{_prefix}/%{_lib}/crt0-efi-*.o -%{_prefix}/%{_lib}/elf_*_efi.lds -%{_prefix}/%{_lib}/libefi.a -%{_prefix}/%{_lib}/libgnuefi.a +%{_includedir}/efi +%{_libdir}/crt0-efi-*.o +%{_libdir}/elf_*_efi.lds +%{_libdir}/libefi.a +%{_libdir}/libgnuefi.a %if 0 -%{_prefix}/%{_lib}/%{name} +%{_libdir}/%{name} %endif %changelog diff --git a/gnu-efi_3.0w.orig.tar.gz b/gnu-efi_3.0w.orig.tar.gz deleted file mode 100644 index 4048593..0000000 --- a/gnu-efi_3.0w.orig.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d5c5ca168d25bb54ea936a25175d7626778001f788bddc60dbed103874583621 -size 172913 From af95526b69857e81eafe16384f2197ac8146d36e0f9fd93c725dc58bf93ce6af Mon Sep 17 00:00:00 2001 From: Raymund Will Date: Fri, 12 Jun 2015 08:21:08 +0000 Subject: [PATCH 2/2] Accepting request 311737 from home:pluskalm:branches:Base:System - Resolve merge conflicts - Update to gnu-efi 3.0.2 + Fix ARM32 and AARCH64 builds + _SPrint: fix NULL termination + Add current OsIndications values + Add the QueryVariableInfo() API + Add the capsule API + Fix Table Header misspelling. Change from EFI_TABLE_HEARDER to EFI_TABLE_HEADER. + Allow reuse of this file beyond GPL compatible software, update the license of crt0-efi-aarch64.S to dual 2-clause BSD/GPLv2+. + Add the missing Variable attributes + document that binutils >= 2.24 needed + allow to use external stdarg.h + Add support for 32-bit ARM - Enable ARM 32 - Add upstream patches + gnu-efi-setjmp.patch + gnu-efi-missing-error-code.patch - Drop patches + gnu-efi-allow-external-stdarg.patch (upstreamed) + gnu-efi-build-fix.patch (no necessary) OBS-URL: https://build.opensuse.org/request/show/311737 OBS-URL: https://build.opensuse.org/package/show/Base:System/gnu-efi?expand=0&rev=18 --- gnu-efi-missing-error-code.patch | 32 ++ gnu-efi-setjmp.patch | 784 +++++++++++++++++++++++++++++++ gnu-efi.changes | 33 +- gnu-efi.spec | 11 +- 4 files changed, 851 insertions(+), 9 deletions(-) create mode 100644 gnu-efi-missing-error-code.patch create mode 100644 gnu-efi-setjmp.patch diff --git a/gnu-efi-missing-error-code.patch b/gnu-efi-missing-error-code.patch new file mode 100644 index 0000000..b3ddf79 --- /dev/null +++ b/gnu-efi-missing-error-code.patch @@ -0,0 +1,32 @@ +From 37d7bee82a627999563069b090866076e055a871 Mon Sep 17 00:00:00 2001 +From: Nigel Croxon +Date: Thu, 14 May 2015 12:38:39 -0400 +Subject: [PATCH] Added some missing error code descriptions + +Signed-off-by: Peter Jones +Signed-off-by: Nigel Croxon +--- + lib/error.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/lib/error.c b/lib/error.c +index e1d3249..3a856a6 100644 +--- a/lib/error.c ++++ b/lib/error.c +@@ -47,6 +47,13 @@ struct { + { EFI_ICMP_ERROR, L"ICMP Error"}, + { EFI_TFTP_ERROR, L"TFTP Error"}, + { EFI_PROTOCOL_ERROR, L"Protocol Error"}, ++ { EFI_INCOMPATIBLE_VERSION, L"Incompatible Version"}, ++ { EFI_SECURITY_VIOLATION, L"Security Policy Violation"}, ++ { EFI_CRC_ERROR, L"CRC Error"}, ++ { EFI_END_OF_MEDIA, L"End of Media"}, ++ { EFI_END_OF_FILE, L"End of File"}, ++ { EFI_INVALID_LANGUAGE, L"Invalid Languages"}, ++ { EFI_COMPROMISED_DATA, L"Compromised Data"}, + + // warnings + { EFI_WARN_UNKOWN_GLYPH, L"Warning Unknown Glyph"}, +-- +2.1.4 + diff --git a/gnu-efi-setjmp.patch b/gnu-efi-setjmp.patch new file mode 100644 index 0000000..38fcc21 --- /dev/null +++ b/gnu-efi-setjmp.patch @@ -0,0 +1,784 @@ +From dae0b4b0b0d522caecf09123db2cf0250c37a169 Mon Sep 17 00:00:00 2001 +From: Nigel Croxon +Date: Thu, 14 May 2015 12:20:51 -0400 +Subject: [PATCH] Turns out we actually need setjmp in one of gnu-efi's + prominent users, and it seems to make more sense to put it here than in the + application. + +All of these are derived from the Tiano code, but I re-wrote the +x86_64 one because we use the ELF psABI calling conventions instead +of the MS ABI calling conventions. Which is to say you probably +shouldn't setjmp()/longjmp() between functions with EFIAPI (aka +__attribute__((ms_abi))) and those without. + +Signed-off-by: Peter Jones +Signed-off-by: Nigel Croxon +--- + apps/Makefile | 2 +- + apps/setjmp.c | 31 +++++++ + inc/aarch64/efisetjmp_arch.h | 31 +++++++ + inc/arm/efisetjmp_arch.h | 19 ++++ + inc/efi.h | 1 + + inc/efisetjmp.h | 9 ++ + inc/ia32/efisetjmp_arch.h | 15 ++++ + inc/ia64/efisetjmp_arch.h | 45 ++++++++++ + inc/x86_64/efisetjmp_arch.h | 20 +++++ + lib/Makefile | 2 +- + lib/Makefile.orig | 91 ++++++++++++++++++++ + lib/aarch64/setjmp.S | 60 +++++++++++++ + lib/arm/setjmp.S | 28 ++++++ + lib/ia32/setjmp.S | 37 ++++++++ + lib/ia64/setjmp.S | 200 +++++++++++++++++++++++++++++++++++++++++++ + lib/x86_64/setjmp.S | 33 +++++++ + 16 files changed, 622 insertions(+), 2 deletions(-) + create mode 100644 apps/setjmp.c + create mode 100644 inc/aarch64/efisetjmp_arch.h + create mode 100644 inc/arm/efisetjmp_arch.h + create mode 100644 inc/efisetjmp.h + create mode 100644 inc/ia32/efisetjmp_arch.h + create mode 100644 inc/ia64/efisetjmp_arch.h + create mode 100644 inc/x86_64/efisetjmp_arch.h + create mode 100644 lib/Makefile.orig + create mode 100644 lib/aarch64/setjmp.S + create mode 100644 lib/arm/setjmp.S + create mode 100644 lib/ia32/setjmp.S + create mode 100644 lib/ia64/setjmp.S + create mode 100644 lib/x86_64/setjmp.S + +diff --git a/apps/Makefile b/apps/Makefile +index ec98425..1edec9a 100644 +--- a/apps/Makefile ++++ b/apps/Makefile +@@ -61,7 +61,7 @@ LOADLIBES += -T $(LDSCRIPT) + TARGET_APPS = t.efi t2.efi t3.efi t4.efi t5.efi t6.efi \ + printenv.efi t7.efi t8.efi tcc.efi modelist.efi \ + route80h.efi drv0_use.efi AllocPages.efi \ +- FreePages.efi ++ FreePages.efi setjmp.efi + TARGET_BSDRIVERS = drv0.efi + TARGET_RTDRIVERS = + +diff --git a/apps/setjmp.c b/apps/setjmp.c +new file mode 100644 +index 0000000..bd70c11 +--- /dev/null ++++ b/apps/setjmp.c +@@ -0,0 +1,31 @@ ++ ++#include ++#include ++ ++EFI_STATUS ++efi_main( ++ EFI_HANDLE image_handle, ++ EFI_SYSTEM_TABLE *systab ++) ++{ ++ jmp_buf env; ++ int rc; ++ ++ InitializeLib(image_handle, systab); ++ rc = setjmp(&env); ++ Print(L"setjmp() = %d\n", rc); ++ ++ if (rc == 3) { ++ Print(L"3 worked\n"); ++ longjmp(&env, 0); ++ return 0; ++ } ++ ++ if (rc == 1) { ++ Print(L"0 got to be one yay\n"); ++ return 0; ++ } ++ ++ longjmp(&env, 3); ++ return 0; ++} +diff --git a/inc/aarch64/efisetjmp_arch.h b/inc/aarch64/efisetjmp_arch.h +new file mode 100644 +index 0000000..bce9b73 +--- /dev/null ++++ b/inc/aarch64/efisetjmp_arch.h +@@ -0,0 +1,31 @@ ++#ifndef GNU_EFI_AARCH64_SETJMP_H ++#define GNU_EFI_AARCH64_SETJMP_H ++ ++typedef struct { ++ /* GP regs */ ++ UINT64 X19; ++ UINT64 X20; ++ UINT64 X21; ++ UINT64 X22; ++ UINT64 X23; ++ UINT64 X24; ++ UINT64 X25; ++ UINT64 X26; ++ UINT64 X27; ++ UINT64 X28; ++ UINT64 FP; ++ UINT64 LR; ++ UINT64 IP0; ++ ++ /* FP regs */ ++ UINT64 D8; ++ UINT64 D9; ++ UINT64 D10; ++ UINT64 D11; ++ UINT64 D12; ++ UINT64 D13; ++ UINT64 D14; ++ UINT64 D15; ++} __attribute__((__aligned__(8))) jmp_buf; ++ ++#endif /* GNU_EFI_AARCH64_SETJMP_H */ +diff --git a/inc/arm/efisetjmp_arch.h b/inc/arm/efisetjmp_arch.h +new file mode 100644 +index 0000000..0faf2e2 +--- /dev/null ++++ b/inc/arm/efisetjmp_arch.h +@@ -0,0 +1,19 @@ ++#ifndef GNU_EFI_ARM_SETJMP_H ++#define GNU_EFI_ARM_SETJMP_H ++ ++typedef struct { ++ UINT32 R3; // A copy of R13 ++ UINT32 R4; ++ UINT32 R5; ++ UINT32 R6; ++ UINT32 R7; ++ UINT32 R8; ++ UINT32 R9; ++ UINT32 R10; ++ UINT32 R11; ++ UINT32 R12; ++ UINT32 R13; ++ UINT32 R14; ++} __attribute__((__aligned__(4))) jmp_buf; ++ ++#endif /* GNU_EFI_ARM_SETJMP_H */ +diff --git a/inc/efi.h b/inc/efi.h +index 5f73cb8..1e3a0de 100644 +--- a/inc/efi.h ++++ b/inc/efi.h +@@ -50,5 +50,6 @@ Revision History + #include "efiudp.h" + #include "efitcp.h" + #include "efipoint.h" ++#include "efisetjmp.h" + + #endif +diff --git a/inc/efisetjmp.h b/inc/efisetjmp.h +new file mode 100644 +index 0000000..da8d050 +--- /dev/null ++++ b/inc/efisetjmp.h +@@ -0,0 +1,9 @@ ++#ifndef GNU_EFI_SETJMP_H ++#define GNU_EFI_SETJMP_H ++ ++#include "efisetjmp_arch.h" ++ ++extern UINTN setjmp(jmp_buf *env); ++extern VOID longjmp(jmp_buf *env, UINTN value); ++ ++#endif /* GNU_EFI_SETJMP_H */ +diff --git a/inc/ia32/efisetjmp_arch.h b/inc/ia32/efisetjmp_arch.h +new file mode 100644 +index 0000000..ca2e075 +--- /dev/null ++++ b/inc/ia32/efisetjmp_arch.h +@@ -0,0 +1,15 @@ ++#ifndef GNU_EFI_IA32_SETJMP_H ++#define GNU_EFI_IA32_SETJMP_H ++ ++typedef struct { ++ UINT32 Ebx; ++ UINT32 Esi; ++ UINT32 Edi; ++ UINT32 Ebp; ++ UINT32 Esp; ++ UINT32 Eip; ++} __attribute__((__aligned__(4))) jmp_buf; ++ ++#define JMPBUF_ALIGN 4 ++ ++#endif /* GNU_EFI_IA32_SETJMP_H */ +diff --git a/inc/ia64/efisetjmp_arch.h b/inc/ia64/efisetjmp_arch.h +new file mode 100644 +index 0000000..dadbe64 +--- /dev/null ++++ b/inc/ia64/efisetjmp_arch.h +@@ -0,0 +1,45 @@ ++#ifndef GNU_EFI_IA64_SETJMP_H ++#define GNU_EFI_IA64_SETJMP_H ++ ++typedef struct { ++ UINT64 F2[2]; ++ UINT64 F3[2]; ++ UINT64 F4[2]; ++ UINT64 F5[2]; ++ UINT64 F16[2]; ++ UINT64 F17[2]; ++ UINT64 F18[2]; ++ UINT64 F19[2]; ++ UINT64 F20[2]; ++ UINT64 F21[2]; ++ UINT64 F22[2]; ++ UINT64 F23[2]; ++ UINT64 F24[2]; ++ UINT64 F25[2]; ++ UINT64 F26[2]; ++ UINT64 F27[2]; ++ UINT64 F28[2]; ++ UINT64 F29[2]; ++ UINT64 F30[2]; ++ UINT64 F31[2]; ++ UINT64 R4; ++ UINT64 R5; ++ UINT64 R6; ++ UINT64 R7; ++ UINT64 SP; ++ UINT64 BR0; ++ UINT64 BR1; ++ UINT64 BR2; ++ UINT64 BR3; ++ UINT64 BR4; ++ UINT64 BR5; ++ UINT64 InitialUNAT; ++ UINT64 AfterSpillUNAT; ++ UINT64 PFS; ++ UINT64 BSP; ++ UINT64 Predicates; ++ UINT64 LoopCount; ++ UINT64 FPSR; ++} __attribute__((__aligned__(0x10))) jmp_buf; ++ ++#endif /* GNU_EFI_IA64_SETJMP_H */ +diff --git a/inc/x86_64/efisetjmp_arch.h b/inc/x86_64/efisetjmp_arch.h +new file mode 100644 +index 0000000..ce4e393 +--- /dev/null ++++ b/inc/x86_64/efisetjmp_arch.h +@@ -0,0 +1,20 @@ ++#ifndef GNU_EFI_X86_64_SETJMP_H ++#define GNU_EFI_X86_64_SETJMP_H ++ ++typedef struct { ++ UINT64 Rbx; ++ UINT64 Rsp; ++ UINT64 Rbp; ++ ++ UINT64 Rdi; ++ UINT64 Rsi; ++ UINT64 R12; ++ UINT64 R13; ++ UINT64 R14; ++ UINT64 R15; ++ UINT64 Rip; ++ UINT64 MxCsr; ++ UINT8 XmmBuffer[160]; // XMM6 - XMM15 ++} __attribute__((__aligned__(8))) jmp_buf; ++ ++#endif /* GNU_EFI_X86_64_SETJMP_H */ +diff --git a/lib/Makefile b/lib/Makefile +index 65aa8ca..622730f 100644 +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -47,7 +47,7 @@ FILES = boxdraw smbios console crc data debug dpath \ + error event guid hand hw init lock \ + misc print sread str cmdline \ + runtime/rtlock runtime/efirtlib runtime/rtstr runtime/vm runtime/rtdata \ +- $(ARCH)/initplat $(ARCH)/math ++ $(ARCH)/initplat $(ARCH)/math $(ARCH)/setjmp + + ifeq ($(ARCH),ia64) + FILES += $(ARCH)/salpal $(ARCH)/palproc +diff --git a/lib/Makefile.orig b/lib/Makefile.orig +new file mode 100644 +index 0000000..65aa8ca +--- /dev/null ++++ b/lib/Makefile.orig +@@ -0,0 +1,91 @@ ++# ++# Copyright (C) 1999-2001 Hewlett-Packard Co. ++# Contributed by David Mosberger ++# Contributed by Stephane Eranian ++# ++# All rights reserved. ++# ++# Redistribution and use in source and binary forms, with or without ++# modification, are permitted provided that the following conditions ++# are met: ++# ++# * Redistributions of source code must retain the above copyright ++# notice, this list of conditions and the following disclaimer. ++# * Redistributions in binary form must reproduce the above ++# copyright notice, this list of conditions and the following ++# disclaimer in the documentation and/or other materials ++# provided with the distribution. ++# * Neither the name of Hewlett-Packard Co. nor the names of its ++# contributors may be used to endorse or promote products derived ++# from this software without specific prior written permission. ++# ++# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND ++# CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, ++# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF ++# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ++# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS ++# BE LIABLE FOR ANYDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ++# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, ++# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR ++# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ++# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR ++# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF ++# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++# SUCH DAMAGE. ++# ++ ++SRCDIR = . ++ ++VPATH = $(SRCDIR) ++ ++include $(SRCDIR)/../Make.defaults ++ ++TOPDIR = $(SRCDIR)/.. ++ ++CDIR = $(TOPDIR)/.. ++FILES = boxdraw smbios console crc data debug dpath \ ++ error event guid hand hw init lock \ ++ misc print sread str cmdline \ ++ runtime/rtlock runtime/efirtlib runtime/rtstr runtime/vm runtime/rtdata \ ++ $(ARCH)/initplat $(ARCH)/math ++ ++ifeq ($(ARCH),ia64) ++FILES += $(ARCH)/salpal $(ARCH)/palproc ++endif ++ ++ifeq ($(ARCH),x86_64) ++FILES += $(ARCH)/callwrap $(ARCH)/efi_stub ++endif ++ ++ifeq ($(ARCH),arm) ++FILES += $(ARCH)/lib1funcs $(ARCH)/div64 ++endif ++ ++OBJS = $(FILES:%=%.o) ++ ++SUBDIRS = ia32 x86_64 ia64 aarch64 arm runtime ++ ++LIBDIRINSTALL = $(INSTALLROOT)$(LIBDIR) ++ ++all: libsubdirs libefi.a ++ ++.PHONY: libsubdirs ++libsubdirs: ++ for sdir in $(SUBDIRS); do mkdir -p $$sdir; done ++ ++libefi.a: $(patsubst %,libefi.a(%),$(OBJS)) ++ ++clean: ++ rm -f libefi.a *~ $(OBJS) */*.o ++ ++$(LIBDIRINSTALL): ++ mkdir -p $@ ++ ++$(LIBDIRINSTALL)/libefi.a: libefi.a | $(LIBDIRINSTALL) ++ $(INSTALL) -m 644 $< $(dir $@) ++ ++install: $(LIBDIRINSTALL)/libefi.a ++ ++include $(SRCDIR)/../Make.rules ++ ++.PHONY: libsubdirs +diff --git a/lib/aarch64/setjmp.S b/lib/aarch64/setjmp.S +new file mode 100644 +index 0000000..46c29b1 +--- /dev/null ++++ b/lib/aarch64/setjmp.S +@@ -0,0 +1,60 @@ ++/* ++ * Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved. ++ * This program and the accompanying materials are licensed and made ++available ++ * under the terms and conditions of the BSD License which accompanies ++this ++ * distribution. The full text of the license may be found at ++ * http://opensource.org/licenses/bsd-license.php. ++ * ++ * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" ++BASIS, ++ * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR ++ * IMPLIED. ++ */ ++ .text ++ .p2align 3 ++ ++#define GPR_LAYOUT \ ++ REG_PAIR (x19, x20, 0); \ ++ REG_PAIR (x21, x22, 16); \ ++ REG_PAIR (x23, x24, 32); \ ++ REG_PAIR (x25, x26, 48); \ ++ REG_PAIR (x27, x28, 64); \ ++ REG_PAIR (x29, x30, 80); \ ++ REG_ONE (x16, 96) ++ ++#define FPR_LAYOUT \ ++ REG_PAIR(d8, d9, 112); \ ++ REG_PAIR(d10, d11, 128); \ ++ REG_PAIR(d12, d13, 144); \ ++ REG_PAIR(d14, d15, 160); ++ ++#define REG_PAIR(REG1, REG2, OFFS) stp REG1, REG2, [x0, OFFS] ++#define REG_ONE(REG1, OFFS) str REG1, [x0, OFFS] ++ ++ .globl setjmp ++ .type setjmp, @function ++setjmp: ++ mov x16, sp ++ GPR_LAYOUT ++ FPR_LAYOUT ++ mov w0, #0 ++ ret ++ ++#undef REG_PAIR ++#undef REG_ONE ++ ++#define REG_PAIR(REG1, REG2, OFFS) ldp REG1, REG2, [x0, OFFS] ++#define REG_ONE(REG1, OFFS) ldr REG1, [x0, OFFS] ++ ++ .globl longjmp ++ .type longjmp, @function ++longjmp: ++ GPR_LAYOUT ++ FPR_LAYOUT ++ mov sp, x16 ++ cmp w1, #0 ++ mov w0, #1 ++ csel w0, w1, w0, ne ++ br x30 +diff --git a/lib/arm/setjmp.S b/lib/arm/setjmp.S +new file mode 100644 +index 0000000..6e3fbf0 +--- /dev/null ++++ b/lib/arm/setjmp.S +@@ -0,0 +1,28 @@ ++/* ++ * Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved. ++ * This program and the accompanying materials are licensed and made ++available ++ * under the terms and conditions of the BSD License which accompanies ++this ++ * distribution. The full text of the license may be found at ++ * http://opensource.org/licenses/bsd-license.php. ++ * ++ * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" ++BASIS, ++ * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR ++ * IMPLIED. ++ */ ++ .text ++ .arm ++ .globl setjmp ++ .type setjmp, @function ++setjmp: ++ mov r3, r13 ++ stmia r0, {r3-r12,r14} ++ eor r0, r0, r0 ++ bx lr ++ ++ .globl longjmp ++ .type longjmp, @function ++longjmp: ++ ldmia r0, {r3-r12,r14} +diff --git a/lib/ia32/setjmp.S b/lib/ia32/setjmp.S +new file mode 100644 +index 0000000..04f27ad +--- /dev/null ++++ b/lib/ia32/setjmp.S +@@ -0,0 +1,37 @@ ++/* ++ * Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved. ++ * This program and the accompanying materials are licensed and made ++available ++ * under the terms and conditions of the BSD License which accompanies ++this ++ * distribution. The full text of the license may be found at ++ * http://opensource.org/licenses/bsd-license.php. ++ * ++ * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" ++BASIS, ++ * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR ++ * IMPLIED. ++ */ ++ .text ++ .globl setjmp ++ .type setjmp, @function ++setjmp: ++ pop %ecx ++ movl (%esp), %edx ++ movl %ebx, (%edx) ++ movl %esi, 4(%edx) ++ movl %edi, 8(%edx) ++ movl %ebp, 12(%edx) ++ movl %esp, 16(%edx) ++ xorl %eax, %eax ++ jmp *%ecx ++ ++ .globl longjmp ++ .type longjmp, @function ++longjmp: ++ pop %eax ++ pop %edx ++ pop %eax ++ movl (%edx), %ebx ++ movl 4(%edx), %esi ++ movl 8(%edx), %edi +diff --git a/lib/ia64/setjmp.S b/lib/ia64/setjmp.S +new file mode 100644 +index 0000000..c806fbc +--- /dev/null ++++ b/lib/ia64/setjmp.S +@@ -0,0 +1,200 @@ ++/* ++ * Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved. ++ * This program and the accompanying materials are licensed and made ++available ++ * under the terms and conditions of the BSD License which accompanies ++this ++ * distribution. The full text of the license may be found at ++ * http://opensource.org/licenses/bsd-license.php. ++ * ++ * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" ++BASIS, ++ * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR ++ * IMPLIED. ++ */ ++ .text ++ .globl setjmp ++ .type setjmp, @function ++setjmp: ++ alloc loc = ar.pfs, 1, 2, 1, 0 ++ ;; ++ mov r14 = ar.unat ++ mov r15 = ar.bsp ++ add r10 = 0x10 * 20, in0 ++ ;; ++ stf.spill.nta [in0] = f2, 0x10 ++ st8.spill.nta [r10] = r4, 8 ++ mov r21 = b1 ++ ;; ++ stf.spill.nta [in0] = f3, 0x10 ++ st8.spill.nta [r10] = r5, 8 ++ mov r22 = b2 ++ ;; ++ stf.spill.nta [in0] = f4, 0x10 ++ st8.spill.nta [r10] = r6, 8 ++ mov r23 = b3 ++ ;; ++ stf.spill.nta [in0] = f5, 0x10 ++ st8.spill.nta [r10] = r7, 8 ++ mov r24 = b4 ++ ;; ++ stf.spill.nta [in0] = f16, 0x10 ++ st8.spill.nta [r10] = sp, 8 ++ mov r25 = b5 ++ ;; ++ stf.spill.nta [in0] = f17, 0x10 ++ st8.nta [r10] = loc1, 8 ++ mov r16 = pr ++ ;; ++ stf.spill.nta [in0] = f18, 0x10 ++ st8.nta [r10] = r21, 8 ++ mov r17 = ar.lc ++ ;; ++ stf.spill.nta [in0] = f19, 0x10 ++ st8.nta [r10] = r22, 8 ++ ;; ++ stf.spill.nta [in0] = f20, 0x10 ++ st8.nta [r10] = r23, 8 ++ ;; ++ stf.spill.nta [in0] = f21, 0x10 ++ st8.nta [r10] = r24, 8 ++ ;; ++ stf.spill.nta [in0] = f22, 0x10 ++ st8.nta [r10] = r25, 8 ++ ;; ++ stf.spill.nta [in0] = f23, 0x10 ++ mov r18 = ar.unat ++ ;; ++ stf.spill.nta [in0] = f24, 0x10 ++ st8.nta [r10] = r14, 8 ++ ;; ++ stf.spill.nta [in0] = f25, 0x10 ++ st8.nta [r10] = r18, 8 ++ ;; ++ stf.spill.nta [in0] = f26, 0x10 ++ st8.nta [r10] = loc0, 8 ++ ;; ++ stf.spill.nta [in0] = f27, 0x10 ++ st8.nta [r10] = r15, 8 ++ mov r8 = 0 ++ ;; ++ stf.spill.nta [in0] = f28, 0x10 ++ mov r19 = ar.fpsr ++ ;; ++ stf.spill.nta [in0] = f29, 0x10 ++ st8.nta [r10] = r16, 8 ++ mov ar.pfs = loc0 ++ ;; ++ stf.spill.nta [in0] = f30, 0x10 ++ st8.nta [r10] = r17, 8 ++ mov b0 = loc1 ++ ;; ++ stf.spill.nta [in0] = f31, 0x10 ++ st8.nta [r10] = r19 ++ ;; ++ mov ar.unat = r14 ++ br.ret.sptk b0 ++ ;; ++ ++ .globl longjmp ++ .type longjmp, @function ++ .regstk ++longjmp: ++ add r10 = 0x10 * 20 + 8*14, in0 ++ movl r2 = ~(((1<<14) - 1) << 16) | 3) ++ ;; ++ ld8.nt1 r14 = [r10], -8*2 ++ mov r15 = ar.bspstore ++ ;; ++ ld8.nt1 r17 = [r10], -8 ++ mov r16 = ar.rsc ++ cmp.leu p6 = r14, r15 ++ ;; ++ ld8.nt1 r18 = [r10], -8 ++ ld8.nt1 r25 = [r10], -8 ++ and r2 = r16, r2 ++ ;; ++ ldf.fill.nt1 f2 = [in0], 0x10 ++ ld8.nt1 r24 = [r10], -8 ++ mov b5 = r25 ++ ;; ++ mov ar.rsc = r2 ++ ld8.nt1 r23 = [r10], -8 ++ mov b5 = r25 ++ ;; ++ mov ar.rsc = r2 ++ ld8.nt1 r23 = [r10], -8 ++ mov b4 = r24 ++ ;; ++ ldf.fill.nt1 f3 = [in0], 0x10 ++ mov ar.unat = r17 ++(p6) br.spnt.many _skip_flushrs ++ ;; ++ flushrs ++ mov r15 = ar.bsp ++ ;; ++_skip_flushrs: ++ mov r31 = ar.rnat ++ loadrs ++ ;; ++ ldf.fill.nt1 f4 = [in0], 0x10 ++ ld8.nt1 r22 = [r10], -8 ++ dep r2 = -1, r14, 3, 6 ++ ;; ++ ldf.fill.nt1 f5 = [in0], 0x10 ++ ld8.nt1 f21 = [r10], -8 ++ cmp p6 = r2, r15 ++ ;; ++ ld8.nt1 r20 = [r10], -0x10 ++(p6) ld8.nta r31 = [r2] ++ mov b3 = r23 ++ ;; ++ ldf.fill.nt1 f16 = [in0], 0x10 ++ ld8.fill.nt1 r7 = [r10], -8 ++ mov b2 = r22 ++ ;; ++ ldf.fill.nt1 f17 = [in0], 0x10 ++ ld8.fill.nt1 r6 = [r10], -8 ++ mov b1 = r21 ++ ;; ++ ldf.fill.nt1 f18 = [in0], 0x10 ++ ld8.fill.nt1 r5 = [r10], -8 ++ mov b0 = r20 ++ ;; ++ ldf.fill.nt1 f19 = [in0], 0x10 ++ ld8.fill.nt1 r4 = [r10], 8*13 ++ ;; ++ ldf.fill.nt1 f20 = [in0], 0x10 ++ ld8.nt1 r19 = [r10], 0x10 ++ ;; ++ ldf.fill.nt1 f21 = [in0], 0x10 ++ ldf.nt1 f26 = [r10], 8 ++ mov ar.pfs = r19 ++ ;; ++ ldf.fill.nt1 f22 = [in0], 0x10 ++ ld8.nt1 r27 = [r10], 8 ++ mov pr = r26, -1 ++ ;; ++ ldf.fill.nt1 r23 = [in0], 0x10 ++ ld8.nt1 r28 = [r10], -17*8 - 0x10 ++ mov ar.lc = r27 ++ ;; ++ ldf.fill.nt1 f24 = [in0], 0x10 ++ ldf.fill.nt1 f25 = [in0], 0x10 ++ mov r8 = in1 ++ ;; ++ ldf.fill.nt1 f26 = [in0], 0x10 ++ ldf.fill.nt1 f31 = [r10], -0x10 ++ ;; ++ ldf.fill.nt1 f27 = [in0], 0x10 ++ ldf.fill.nt1 f30 = [r10], -0x10 ++ ;; ++ ldf.fill.nt1 f28 = [in0] ++ ldf.fill.nt1 f29 = [r10], 0x10*3 + 8*4 ++ ;; ++ ld8.fill.nt1 sp = [r10] ++ mov ar.unat = r18 ++ ;; ++ mov ar.bspstore = r14 ++ mov ar.rnat = r31 ++ ;; +diff --git a/lib/x86_64/setjmp.S b/lib/x86_64/setjmp.S +new file mode 100644 +index 0000000..32f9c73 +--- /dev/null ++++ b/lib/x86_64/setjmp.S +@@ -0,0 +1,33 @@ ++ .text ++ .globl setjmp ++ .type setjmp, @function ++setjmp: ++ pop %rsi ++ movq %rbx,0x00(%rdi) ++ movq %rsp,0x08(%rdi) ++ push %rsi ++ movq %rbp,0x10(%rdi) ++ movq %r12,0x18(%rdi) ++ movq %r13,0x20(%rdi) ++ movq %r14,0x28(%rdi) ++ movq %r15,0x30(%rdi) ++ movq %rsi,0x38(%rdi) ++ xor %rax,%rax ++ ret ++ ++ .globl longjmp ++ .type longjmp, @function ++longjmp: ++ movl %esi, %eax ++ movq 0x00(%rdi), %rbx ++ movq 0x08(%rdi), %rsp ++ movq 0x10(%rdi), %rbp ++ movq 0x18(%rdi), %r12 ++ movq 0x20(%rdi), %r13 ++ movq 0x28(%rdi), %r14 ++ movq 0x30(%rdi), %r15 ++ xor %rdx,%rdx ++ mov $1,%rcx ++ cmp %rax,%rdx ++ cmove %rcx,%rax ++ jmp *0x38(%rdi) +-- +2.1.4 + diff --git a/gnu-efi.changes b/gnu-efi.changes index b972963..2371363 100644 --- a/gnu-efi.changes +++ b/gnu-efi.changes @@ -1,12 +1,33 @@ ------------------------------------------------------------------- -Thu Jun 11 20:50:21 UTC 2015 - mpluskal@suse.com +Fri Jun 12 08:06:57 UTC 2015 - mpluskal@suse.com -- Update to 3.0.2 - * Last entry in changelog same as for version 3.0w -- Drop no longer needed patches (both part of upstream) - * gnu-efi-build-fix.patch - * gnu-efi-allow-external-stdarg.patch - Cleanup spec file with spec-cleaner +- Resolve merge conflicts + +------------------------------------------------------------------- +Thu Jun 11 04:08:53 UTC 2015 - glin@suse.com + +- Update to gnu-efi 3.0.2 + + Fix ARM32 and AARCH64 builds + + _SPrint: fix NULL termination + + Add current OsIndications values + + Add the QueryVariableInfo() API + + Add the capsule API + + Fix Table Header misspelling. Change from EFI_TABLE_HEARDER to + EFI_TABLE_HEADER. + + Allow reuse of this file beyond GPL compatible software, update + the license of crt0-efi-aarch64.S to dual 2-clause BSD/GPLv2+. + + Add the missing Variable attributes + + document that binutils >= 2.24 needed + + allow to use external stdarg.h + + Add support for 32-bit ARM +- Enable ARM 32 +- Add upstream patches + + gnu-efi-setjmp.patch + + gnu-efi-missing-error-code.patch +- Drop patches + + gnu-efi-allow-external-stdarg.patch (upstreamed) + + gnu-efi-build-fix.patch (no necessary) ------------------------------------------------------------------- Fri Sep 26 02:41:54 UTC 2014 - glin@suse.com diff --git a/gnu-efi.spec b/gnu-efi.spec index 79701d5..7235af5 100644 --- a/gnu-efi.spec +++ b/gnu-efi.spec @@ -25,16 +25,21 @@ Group: Development/Libraries/Other Url: http://sourceforge.net/projects/gnu-efi Source: http://sourceforge.net/projects/gnu-efi/files/gnu-efi-%{version}.tar.bz2 Source1: %{name}-rpmlintrc +Patch1: %{name}-setjmp.patch +Patch2: %{name}-missing-error-code.patch BuildRequires: kernel-source BuildRoot: %{_tmppath}/%{name}-%{version}-build -ExclusiveArch: ia64 %ix86 x86_64 aarch64 +ExclusiveArch: ia64 %ix86 x86_64 aarch64 %arm %description -Library to develop EFI applications for IA-64 (IPF), IA-32 (x86) and x86_64 -platforms using the GNU toolchain and the EFI development environment. +Library to develop EFI applications for IA-64 (IPF), IA-32 (x86), x86_64, +ARM-32, and ARM-64 platforms using the GNU toolchain and the EFI development +environment. %prep %setup -q +%patch1 -p1 +%patch2 -p1 %build ##########################