treat s390x as 64-bit arch

This commit is contained in:
Dan Horák 2014-06-06 22:15:35 +02:00
parent c1b58bb48e
commit d08f6a5d82
2 changed files with 14 additions and 0 deletions

12
acpica-tools-s390x.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up acpica-unix2-20140424/source/include/platform/aclinux.h.s390x acpica-unix2-20140424/source/include/platform/aclinux.h
--- acpica-unix2-20140424/source/include/platform/aclinux.h.s390x 2014-06-06 21:58:18.000000000 +0200
+++ acpica-unix2-20140424/source/include/platform/aclinux.h 2014-06-06 21:58:32.000000000 +0200
@@ -134,7 +134,7 @@
#define ACPI_CAST_PTHREAD_T(Pthread) ((ACPI_THREAD_ID) (Pthread))
#if defined(__ia64__) || defined(__x86_64__) ||\
- defined(__aarch64__) || defined(__PPC64__)
+ defined(__aarch64__) || defined(__PPC64__) || defined(__s390x__)
#define ACPI_MACHINE_WIDTH 64
#define COMPILER_DEPENDENT_INT64 long
#define COMPILER_DEPENDENT_UINT64 unsigned long

View File

@ -30,6 +30,7 @@ Patch3: aapits-linux.patch
Patch4: asllookup-miscompare.patch Patch4: asllookup-miscompare.patch
Patch5: aapits-makefile.patch Patch5: aapits-makefile.patch
Patch6: re-enable-big-endian.patch Patch6: re-enable-big-endian.patch
Patch7: acpica-tools-s390x.patch
BuildRequires: bison patchutils flex BuildRequires: bison patchutils flex
@ -87,6 +88,7 @@ gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f -
%patch4 -p1 -b .asllookup-miscompare %patch4 -p1 -b .asllookup-miscompare
%patch5 -p1 -b .aapits-makefile %patch5 -p1 -b .aapits-makefile
%patch6 -p1 -b .re-enable-big-endian %patch6 -p1 -b .re-enable-big-endian
%patch7 -p1 -b .s390x
cp -p %{SOURCE2} README.Fedora cp -p %{SOURCE2} README.Fedora
cp -p %{SOURCE3} iasl.1 cp -p %{SOURCE3} iasl.1