1.1 --- a/make/linux/makefiles/defs.make Wed Sep 06 00:35:24 2017 -0700 1.2 +++ b/make/linux/makefiles/defs.make Thu May 24 18:41:44 2018 +0800 1.3 @@ -22,6 +22,12 @@ 1.4 # 1.5 # 1.6 1.7 +# 1.8 +# This file has been modified by Loongson Technology in 2015. These 1.9 +# modifications are Copyright (c) 2015 Loongson Technology, and are made 1.10 +# available on the same license terms set forth above. 1.11 +# 1.12 + 1.13 # The common definitions for hotspot linux builds. 1.14 # Include the top level defs.make under make directory instead of this one. 1.15 # This file is included into make/defs.make. 1.16 @@ -39,6 +45,11 @@ 1.17 ARCH := ppc64 1.18 endif 1.19 endif 1.20 +ifeq ($(ARCH), mips64el) 1.21 + ARCH=mips64 1.22 +endif 1.23 + 1.24 +ARCH=mips64 1.25 1.26 PATH_SEP ?= : 1.27 1.28 @@ -83,6 +94,15 @@ 1.29 HS_ARCH = sparc 1.30 endif 1.31 1.32 +# mips 1.33 +ifeq ($(ARCH), mips64) 1.34 + ARCH_DATA_MODEL = 64 1.35 + MAKE_ARGS += LP64=1 1.36 + VM_PLATFORM = linux_mips64 1.37 + PLATFORM = linux-mips64 1.38 + HS_ARCH = mips 1.39 +endif 1.40 + 1.41 # i686/i586 and amd64/x86_64 1.42 ifneq (,$(findstring $(ARCH), amd64 x86_64 i686 i586)) 1.43 ifeq ($(ARCH_DATA_MODEL), 64) 1.44 @@ -292,13 +312,17 @@ 1.45 $(EXPORT_LIB_DIR)/sa-jdi.jar 1.46 ADD_SA_BINARIES/sparc = $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.$(LIBRARY_SUFFIX) \ 1.47 $(EXPORT_LIB_DIR)/sa-jdi.jar 1.48 +ADD_SA_BINARIES/mips = $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.$(LIBRARY_SUFFIX) \ 1.49 + $(EXPORT_LIB_DIR)/sa-jdi.jar 1.50 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) 1.51 ifeq ($(ZIP_DEBUGINFO_FILES),1) 1.52 ADD_SA_BINARIES/x86 += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.diz 1.53 ADD_SA_BINARIES/sparc += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.diz 1.54 + ADD_SA_BINARIES/mips += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.diz 1.55 else 1.56 ADD_SA_BINARIES/x86 += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.debuginfo 1.57 ADD_SA_BINARIES/sparc += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.debuginfo 1.58 + ADD_SA_BINARIES/mips += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.debuginfo 1.59 endif 1.60 endif 1.61 ADD_SA_BINARIES/ppc =