Fix build for ppc64le
Signed-off-by: Al Stone <ahs3@redhat.com>
This commit is contained in:
parent
d85d7f3b20
commit
98fbc9f19d
@ -36,6 +36,7 @@ Patch9: template.patch
|
||||
Patch10: free.patch
|
||||
Patch11: update-big-endian.patch
|
||||
Patch12: aslts.patch
|
||||
Patch13: ppc64le.patch
|
||||
|
||||
BuildRequires: bison patchutils flex
|
||||
|
||||
@ -98,6 +99,7 @@ gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f -
|
||||
%patch10 -p1 -b .free
|
||||
%patch11 -p1 -b .update-big-endian
|
||||
%patch12 -p1 -b .aslts
|
||||
%patch13 -p1 -b .ppc64le
|
||||
|
||||
cp -p %{SOURCE2} README.Fedora
|
||||
cp -p %{SOURCE3} iasl.1
|
||||
@ -192,10 +194,11 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jan 27 2017 Al Stone <ahs3@redhat.com> - 20170119-1
|
||||
* Mon Jan 30 2017 Al Stone <ahs3@redhat.com> - 20170119-1
|
||||
- Update to latest upstream. Closes BZ#1381017.
|
||||
- Refresh patches.
|
||||
- Add patch to fix ASLTS.
|
||||
- Add patch to fix ppc64le build.
|
||||
|
||||
* Mon Jan 9 2017 Al Stone <ahs3@redhat.com> - 20161222-1
|
||||
- Update to latest upstream. Closes BZ#1381017.
|
||||
|
24
ppc64le.patch
Normal file
24
ppc64le.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff -Naur acpica-unix2-20170119.orig/source/include/platform/aclinux.h acpica-unix2-20170119/source/include/platform/aclinux.h
|
||||
--- acpica-unix2-20170119.orig/source/include/platform/aclinux.h 2017-01-30 15:38:53.465753721 -0700
|
||||
+++ acpica-unix2-20170119/source/include/platform/aclinux.h 2017-01-30 15:42:55.911358257 -0700
|
||||
@@ -203,7 +203,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(__ppc64le__) ||\
|
||||
defined(__s390x__)
|
||||
#define ACPI_MACHINE_WIDTH 64
|
||||
#define COMPILER_DEPENDENT_INT64 long
|
||||
@@ -219,9 +219,11 @@
|
||||
#define __cdecl
|
||||
#endif
|
||||
|
||||
+#if !defined(__ppc64le__)
|
||||
#if defined(__PPC64__) || defined(__s390x__)
|
||||
#define ACPI_BIG_ENDIAN
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
|
Loading…
Reference in New Issue
Block a user