< prev index next >

make/common/shared/Platform.gmk

Print this page
rev 8219 : 8024900: PPC64: Enable new build on AIX (jdk part)
8024854: PPC64: Basic changes and files to build the class library on AIX
Reviewed-by: alanb, prr, sla, chegar, michaelm, mullan, art, erikj
Contributed-by: luchsh@linux.vnet.ibm.com, spoole@linux.vnet.ibm.com, thomas.stuefe@sap.com
rev 8220 : 8036767: PPC64: Support for little endian execution model
Reviewed-by: simonis

@@ -149,10 +149,20 @@
   BUNDLE_FILE_SUFFIX=.tar
   # How much RAM does this machine have (zones send an error to stderr):
   MB_OF_MEMORY:=$(shell /usr/sbin/prtconf 2>/dev/null | fgrep 'Memory size:' | expand | cut -d' ' -f3)
 endif
 
+ifeq ($(SYSTEM_UNAME), AIX)
+  PLATFORM = aix
+  ARCH=ppc64
+  ARCH_DATA_MODEL=64
+  ARCH_FAMILY=$(ARCH)
+  LIBARCH=$(ARCH)
+  ARCHPROP = $(LIBARCH)
+endif
+
+
 # Platform settings specific to Linux
 ifeq ($(SYSTEM_UNAME), Linux)
   PLATFORM = linux
   # Arch and OS name/version
   ifdef CROSS_COMPILE_ARCH

@@ -179,11 +189,11 @@
                 *) \
                     echo $(mach) \
                     ;; \
       esac
   ARCH        := $(shell $(archExpr) )
-  ARCH_FAMILY := $(ARCH)
+  ARCH_FAMILY := $(ARCH:ppc64le=ppc64)
 
   # Linux builds may be 32-bit or 64-bit data model.
   ifeq ($(ARCH), sparc)
     # Linux sparc build can be either 32-bit or 64-bit.
     #   Default to 32, but allow explicit setting to 32 or 64.

@@ -193,10 +203,17 @@
     ifeq ($(ARCH_DATA_MODEL), 32)
       ARCH=sparc
     else
       ARCH=sparcv9
     endif
+  else ifeq ($(ARCH), ppc64)
+    ARCH_DATA_MODEL=64
+    OPENJDK_TARGET_CPU_ENDIAN=big
+  else ifeq ($(ARCH), ppc64le)
+    ARCH_DATA_MODEL=64
+    OPENJDK_TARGET_CPU_ENDIAN=little
+    ARCH := ppc64
   else
     # Most archs are 32-bit
     ifndef ARCH_DATA_MODEL
       ARCH_DATA_MODEL=32
       ifeq ($(ARCH), amd64)
< prev index next >