18 # |
18 # |
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
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 |
20 # or visit www.oracle.com if you need additional information or have any |
21 # questions. |
21 # questions. |
22 # |
22 # |
|
23 # |
|
24 |
|
25 # |
|
26 # This file has been modified by Loongson Technology in 2018. These |
|
27 # modifications are Copyright (c) 2015 Loongson Technology, and are made |
|
28 # available on the same license terms set forth above. |
23 # |
29 # |
24 |
30 |
25 # The common definitions for hotspot builds. |
31 # The common definitions for hotspot builds. |
26 |
32 |
27 # Optionally include SPEC file generated by configure. |
33 # Optionally include SPEC file generated by configure. |
283 # BUILDARCH - build directory |
289 # BUILDARCH - build directory |
284 # LIBARCH - directory name in JDK/JRE |
290 # LIBARCH - directory name in JDK/JRE |
285 |
291 |
286 # Use uname output for SRCARCH, but deal with platform differences. If ARCH |
292 # Use uname output for SRCARCH, but deal with platform differences. If ARCH |
287 # is not explicitly listed below, it is treated as x86. |
293 # is not explicitly listed below, it is treated as x86. |
288 SRCARCH ?= $(ARCH/$(filter sparc sparc64 ia64 amd64 x86_64 ppc ppc64 zero,$(ARCH))) |
294 SRCARCH ?= $(ARCH/$(filter sparc sparc64 ia64 amd64 x86_64 ppc ppc64 mips64 zero,$(ARCH))) |
289 ARCH/ = x86 |
295 ARCH/ = x86 |
290 ARCH/sparc = sparc |
296 ARCH/sparc = sparc |
291 ARCH/sparc64= sparc |
297 ARCH/sparc64= sparc |
292 ARCH/ia64 = ia64 |
298 ARCH/ia64 = ia64 |
293 ARCH/amd64 = x86 |
299 ARCH/amd64 = x86 |
294 ARCH/x86_64 = x86 |
300 ARCH/x86_64 = x86 |
295 ARCH/ppc64 = ppc |
301 ARCH/ppc64 = ppc |
296 ARCH/ppc = ppc |
302 ARCH/ppc = ppc |
|
303 ARCH/mips64 = mips |
297 ARCH/zero = zero |
304 ARCH/zero = zero |
298 |
305 |
299 # BUILDARCH is usually the same as SRCARCH, except for sparcv9 |
306 # BUILDARCH is usually the same as SRCARCH, except for sparcv9 |
300 BUILDARCH ?= $(SRCARCH) |
307 BUILDARCH ?= $(SRCARCH) |
301 ifeq ($(BUILDARCH), x86) |
308 ifeq ($(BUILDARCH), x86) |
312 endif |
319 endif |
313 ifeq ($(BUILDARCH), ppc) |
320 ifeq ($(BUILDARCH), ppc) |
314 ifdef LP64 |
321 ifdef LP64 |
315 BUILDARCH = ppc64 |
322 BUILDARCH = ppc64 |
316 endif |
323 endif |
|
324 endif |
|
325 ifeq ($(BUILDARCH), mips) |
|
326 BUILDARCH = mips64 |
317 endif |
327 endif |
318 |
328 |
319 # LIBARCH is 1:1 mapping from BUILDARCH |
329 # LIBARCH is 1:1 mapping from BUILDARCH |
320 LIBARCH ?= $(LIBARCH/$(BUILDARCH)) |
330 LIBARCH ?= $(LIBARCH/$(BUILDARCH)) |
321 LIBARCH/i486 = i386 |
331 LIBARCH/i486 = i386 |
322 LIBARCH/amd64 = amd64 |
332 LIBARCH/amd64 = amd64 |
323 LIBARCH/sparc = sparc |
333 LIBARCH/sparc = sparc |
324 LIBARCH/sparcv9 = sparcv9 |
334 LIBARCH/sparcv9 = sparcv9 |
325 LIBARCH/ia64 = ia64 |
335 LIBARCH/ia64 = ia64 |
326 LIBARCH/ppc64 = ppc64 |
336 LIBARCH/ppc64 = ppc64 |
|
337 LIBARCH/mips64 = mips64 |
327 LIBARCH/zero = $(ZERO_LIBARCH) |
338 LIBARCH/zero = $(ZERO_LIBARCH) |
328 |
339 |
329 LP64_ARCH += sparcv9 amd64 ia64 ppc64 zero |
340 LP64_ARCH += sparcv9 amd64 ia64 ppc64 mips64 zero |
330 endif |
341 endif |
331 |
342 |
332 # Required make macro settings for all platforms |
343 # Required make macro settings for all platforms |
333 MAKE_ARGS += BOOTDIR=$(ABS_BOOTDIR) |
344 MAKE_ARGS += BOOTDIR=$(ABS_BOOTDIR) |
334 MAKE_ARGS += OUTPUTDIR=$(ABS_OUTPUTDIR) |
345 MAKE_ARGS += OUTPUTDIR=$(ABS_OUTPUTDIR) |