1 #
2 # Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation.
8 #
9 # This code is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 # version 2 for more details (a copy is included in the LICENSE file that
13 # accompanied this code).
14 #
15 # You should have received a copy of the GNU General Public License version
16 # 2 along with this work; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
88 endif
89 HS_ARCH = sparc
90 endif
91
92 # i686/i586 and amd64/x86_64
93 ifneq (,$(findstring $(ARCH), amd64 x86_64 i686 i586))
94 ifeq ($(ARCH_DATA_MODEL), 64)
95 ARCH_DATA_MODEL = 64
96 MAKE_ARGS += LP64=1
97 PLATFORM = linux-amd64
98 VM_PLATFORM = linux_amd64
99 else
100 ARCH_DATA_MODEL = 32
101 PLATFORM = linux-i586
102 VM_PLATFORM = linux_i486
103 endif
104
105 HS_ARCH = x86
106 endif
107
108 # ARM
109 ifeq ($(ARCH), arm)
110 ARCH_DATA_MODEL = 32
111 PLATFORM = linux-arm
112 VM_PLATFORM = linux_arm
113 HS_ARCH = arm
114 endif
115
116 # PPC
117 # Notice: after 8046471 ARCH will be 'ppc' for top-level ppc64 builds but
118 # 'ppc64' for HotSpot-only ppc64 builds. Need to detect both variants here!
119 ifneq (,$(findstring $(ARCH), ppc ppc64))
120 ifeq ($(ARCH_DATA_MODEL), 64)
121 MAKE_ARGS += LP64=1
122 PLATFORM = linux-ppc64
123 VM_PLATFORM = linux_ppc64
124 else
125 ARCH_DATA_MODEL = 32
126 PLATFORM = linux-ppc
127 VM_PLATFORM = linux_ppc
128 endif
129
130 HS_ARCH = ppc
131 endif
132
133 # AARCH64
134 ifeq ($(ARCH), aarch64)
135 ARCH_DATA_MODEL = 64
136 MAKE_ARGS += LP64=1
137 PLATFORM = linux-aarch64
138 VM_PLATFORM = linux_aarch64
139 HS_ARCH = aarch64
140 endif
141
142 # On 32 bit linux we build server and client, on 64 bit just server.
143 ifeq ($(JVM_VARIANTS),)
144 ifeq ($(ARCH_DATA_MODEL), 32)
145 JVM_VARIANTS:=client,server
146 JVM_VARIANT_CLIENT:=true
147 JVM_VARIANT_SERVER:=true
|
1 #
2 # Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation.
8 #
9 # This code is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 # version 2 for more details (a copy is included in the LICENSE file that
13 # accompanied this code).
14 #
15 # You should have received a copy of the GNU General Public License version
16 # 2 along with this work; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
88 endif
89 HS_ARCH = sparc
90 endif
91
92 # i686/i586 and amd64/x86_64
93 ifneq (,$(findstring $(ARCH), amd64 x86_64 i686 i586))
94 ifeq ($(ARCH_DATA_MODEL), 64)
95 ARCH_DATA_MODEL = 64
96 MAKE_ARGS += LP64=1
97 PLATFORM = linux-amd64
98 VM_PLATFORM = linux_amd64
99 else
100 ARCH_DATA_MODEL = 32
101 PLATFORM = linux-i586
102 VM_PLATFORM = linux_i486
103 endif
104
105 HS_ARCH = x86
106 endif
107
108 # PPC
109 # Notice: after 8046471 ARCH will be 'ppc' for top-level ppc64 builds but
110 # 'ppc64' for HotSpot-only ppc64 builds. Need to detect both variants here!
111 ifneq (,$(findstring $(ARCH), ppc ppc64))
112 ifeq ($(ARCH_DATA_MODEL), 64)
113 MAKE_ARGS += LP64=1
114 PLATFORM = linux-ppc64
115 VM_PLATFORM = linux_ppc64
116 endif
117
118 HS_ARCH = ppc
119 endif
120
121 # AARCH64
122 ifeq ($(ARCH), aarch64)
123 ARCH_DATA_MODEL = 64
124 MAKE_ARGS += LP64=1
125 PLATFORM = linux-aarch64
126 VM_PLATFORM = linux_aarch64
127 HS_ARCH = aarch64
128 endif
129
130 # On 32 bit linux we build server and client, on 64 bit just server.
131 ifeq ($(JVM_VARIANTS),)
132 ifeq ($(ARCH_DATA_MODEL), 32)
133 JVM_VARIANTS:=client,server
134 JVM_VARIANT_CLIENT:=true
135 JVM_VARIANT_SERVER:=true
|