[PATCH cf 2/2] Add support for ppc64el as little-endian ppc64.

Fernando Seiti Furusato ferseiti at linux.vnet.ibm.com
Fri Jan 8 05:38:11 PST 2016


From: Adam Conrad <adconrad at ubuntu.com>

Defines that ppc64 can also have little endian byte order, since it is
initially assumed as big endian only.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=93631

Signed-off-by: Fernando Seiti Furusato <ferseiti at linux.vnet.ibm.com>
---
 Imake.cf   | 5 +++++
 Imake.tmpl | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/Imake.cf b/Imake.cf
index 0942fb0..1215d4b 100644
--- a/Imake.cf
+++ b/Imake.cf
@@ -941,6 +941,11 @@ XCOMM Keep cpp from replacing path elements containing i486/i586/i686
 #  undef __powerpc__
 # endif
 # ifdef __powerpc64__
+#  ifdef __LITTLE_ENDIAN__
+#    ifndef Ppc64elArchitecture
+#      define Ppc64elArchitecture
+#    endif
+#  endif
 #  ifndef Ppc64Architecture
 #   define Ppc64Architecture
 #  endif
diff --git a/Imake.tmpl b/Imake.tmpl
index 3e5c28e..c9c4249 100644
--- a/Imake.tmpl
+++ b/Imake.tmpl
@@ -528,6 +528,8 @@ XCOMM the platform-specific parameters - edit site.def to change
 #define ByteOrder		X_LITTLE_ENDIAN
 #elif defined(RsArchitecture)
 #define ByteOrder		X_BIG_ENDIAN
+#elif defined(Ppc64elArchitecture)
+#define ByteOrder		X_LITTLE_ENDIAN
 #elif defined(PpcArchitecture) || defined(Ppc64Architecture)
 #define ByteOrder		X_BIG_ENDIAN
 #elif defined(HPArchitecture)
-- 
2.7.0.rc3



More information about the xorg-devel mailing list