Readd parts of patch 1 that are not upstream.

This commit is contained in:
Paolo Bonzini 2013-11-14 16:30:12 +01:00
parent 87734555de
commit 60a9a27ad7
2 changed files with 17 additions and 1 deletions

14
basetools-arm.patch Normal file
View File

@ -0,0 +1,14 @@
diff --git a/BaseTools/Source/C/GNUmakefile b/BaseTools/Source/C/GNUmakefile
index e0dde3e..bee0059 100644
--- a/BaseTools/Source/C/GNUmakefile
+++ b/BaseTools/Source/C/GNUmakefile
@@ -22,6 +22,9 @@ ifndef ARCH
ifeq ($(uname_m),x86_64)
ARCH=X64
endif
+ ifeq ($(patsubst arm%,ARM,$(uname_m)),ARM)
+ ARCH=ARM
+ endif
ifeq ($(patsubst i%86,IA32,$(uname_m)),IA32)
ARCH=IA32
endif

View File

@ -17,6 +17,7 @@ Summary: EFI Development Kit II
# rm -rf edk2-r${SVNREV}/FatBinPkg
# tar -cv edk2-r${SVNREV} | xz -6 > edk2-r${SVNREV}.tar.xz
Source0: edk2-r%{SVNREV}.tar.xz
Patch1: basetools-arm.patch
License: BSD
Group: Applications/Emulators
@ -65,6 +66,7 @@ build EFI executables and ROMs using the GNU tools.
%prep
%setup -q -n %{name}-r%{SVNREV}
%patch1 -p1
%build
source ./edksetup.sh
@ -164,7 +166,7 @@ done
%changelog
* Thu Nov 14 2013 Paolo Bonzini <pbonzini@redhat.com> - 20131114svn14844-1
- Upgrade to r14844.
- Remove patch 1.
- Remove upstreamed parts of patch 1.
* Fri Nov 8 2013 Paolo Bonzini <pbonzini@redhat.com> - 20130515svn14365-7
- Make BaseTools compile on ARM.