8152666: The new Hotspot Build System
Co-authored-by: Magnus Ihse Bursie <magnus.ihse.bursie@oracle.com> Co-authored-by: Ingemar Aberg <ingemar.aberg@oracle.com> Reviewed-by: ihse, dcubed, erikj
This commit is contained in:
parent
947b3357ab
commit
fd6a72271b
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -83,20 +83,20 @@ ifneq ($(STATIC_BUILD), true)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(OPENJDK_TARGET_OS), windows)
|
ifneq ($(OPENJDK_TARGET_OS), windows)
|
||||||
ifeq ($(JVM_VARIANT_SERVER), true)
|
ifeq ($(call check-jvm-variant, server), true)
|
||||||
BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/server/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX)
|
BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/server/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX)
|
||||||
ifneq (, $(JSIG_DEBUGINFO))
|
ifneq (, $(JSIG_DEBUGINFO))
|
||||||
BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/server/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I))
|
BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/server/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I))
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifeq ($(JVM_VARIANT_CLIENT), true)
|
ifeq ($(call check-jvm-variant, client), true)
|
||||||
BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/client/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX)
|
BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/client/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX)
|
||||||
ifneq (, $(JSIG_DEBUGINFO))
|
ifneq (, $(JSIG_DEBUGINFO))
|
||||||
BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/client/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I))
|
BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/client/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I))
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifneq ($(OPENJDK_TARGET_OS), macosx)
|
ifneq ($(OPENJDK_TARGET_OS), macosx)
|
||||||
ifeq ($(JVM_VARIANT_MINIMAL1), true)
|
ifeq ($(call check-jvm-variant, minimal), true)
|
||||||
BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/minimal/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX)
|
BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/minimal/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX)
|
||||||
ifneq (,$(JSIG_DEBUGINFO))
|
ifneq (,$(JSIG_DEBUGINFO))
|
||||||
BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/minimal/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I))
|
BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/minimal/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -88,7 +88,7 @@ endif
|
|||||||
#
|
#
|
||||||
# How to install jvm.cfg.
|
# How to install jvm.cfg.
|
||||||
#
|
#
|
||||||
ifeq ($(JVM_VARIANT_ZERO), true)
|
ifeq ($(call check-jvm-variant, zero zeroshark), true)
|
||||||
JVMCFG_ARCH := zero
|
JVMCFG_ARCH := zero
|
||||||
else
|
else
|
||||||
JVMCFG_ARCH := $(OPENJDK_TARGET_CPU_LEGACY)
|
JVMCFG_ARCH := $(OPENJDK_TARGET_CPU_LEGACY)
|
||||||
@ -99,7 +99,7 @@ ifeq ($(OPENJDK_TARGET_OS), macosx)
|
|||||||
else
|
else
|
||||||
JVMCFG_SRC := $(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/conf/$(JVMCFG_ARCH)/jvm.cfg
|
JVMCFG_SRC := $(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/conf/$(JVMCFG_ARCH)/jvm.cfg
|
||||||
# Allow override by ALT_JVMCFG_SRC if it exists
|
# Allow override by ALT_JVMCFG_SRC if it exists
|
||||||
JVMCFG_SRC := $(if $(wildcard $(ALT_JVMCFG_SRC)),$(ALT_JVMCFG_SRC),$(JVMCFG_SRC))
|
JVMCFG_SRC := $(if $(wildcard $(ALT_JVMCFG_SRC)),$(ALT_JVMCFG_SRC),$(JVMCFG_SRC))
|
||||||
endif
|
endif
|
||||||
JVMCFG_DIR := $(LIB_DST_DIR)$(OPENJDK_TARGET_CPU_LIBDIR)
|
JVMCFG_DIR := $(LIB_DST_DIR)$(OPENJDK_TARGET_CPU_LIBDIR)
|
||||||
JVMCFG := $(JVMCFG_DIR)/jvm.cfg
|
JVMCFG := $(JVMCFG_DIR)/jvm.cfg
|
||||||
@ -117,12 +117,12 @@ else
|
|||||||
# The main problem is deciding whether to use aliases for the VMs that are not
|
# The main problem is deciding whether to use aliases for the VMs that are not
|
||||||
# present and the current position is that we add aliases for client and server, but
|
# present and the current position is that we add aliases for client and server, but
|
||||||
# not for minimal.
|
# not for minimal.
|
||||||
CLIENT_AND_SERVER := $(and $(findstring true, $(JVM_VARIANT_SERVER)), $(findstring true, $(JVM_VARIANT_CLIENT)))
|
CLIENT_AND_SERVER := $(call check-jvm-variant, client)+$(call check-jvm-variant, server)
|
||||||
ifeq ($(CLIENT_AND_SERVER), true)
|
ifeq ($(CLIENT_AND_SERVER), true+true)
|
||||||
COPY_JVM_CFG_FILE := true
|
COPY_JVM_CFG_FILE := true
|
||||||
else
|
else
|
||||||
# For zero, the default jvm.cfg file is sufficient
|
# For zero, the default jvm.cfg file is sufficient
|
||||||
ifeq ($(JVM_VARIANT_ZERO), true)
|
ifeq ($(call check-jvm-variant, zero zeroshark), true)
|
||||||
COPY_JVM_CFG_FILE := true
|
COPY_JVM_CFG_FILE := true
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
@ -136,21 +136,21 @@ else
|
|||||||
$(MKDIR) -p $(@D)
|
$(MKDIR) -p $(@D)
|
||||||
$(RM) $(@)
|
$(RM) $(@)
|
||||||
# Now check for other permutations
|
# Now check for other permutations
|
||||||
ifeq ($(JVM_VARIANT_SERVER), true)
|
ifeq ($(call check-jvm-variant, server), true)
|
||||||
$(PRINTF) "-server KNOWN\n">>$(@)
|
$(PRINTF) "-server KNOWN\n">>$(@)
|
||||||
$(PRINTF) "-client ALIASED_TO -server\n">>$(@)
|
$(PRINTF) "-client ALIASED_TO -server\n">>$(@)
|
||||||
ifeq ($(JVM_VARIANT_MINIMAL1), true)
|
ifeq ($(call check-jvm-variant, minimal), true)
|
||||||
$(PRINTF) "-minimal KNOWN\n">>$(@)
|
$(PRINTF) "-minimal KNOWN\n">>$(@)
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
ifeq ($(JVM_VARIANT_CLIENT), true)
|
ifeq ($(call check-jvm-variant, client), true)
|
||||||
$(PRINTF) "-client KNOWN\n">>$(@)
|
$(PRINTF) "-client KNOWN\n">>$(@)
|
||||||
$(PRINTF) "-server ALIASED_TO -client\n">>$(@)
|
$(PRINTF) "-server ALIASED_TO -client\n">>$(@)
|
||||||
ifeq ($(JVM_VARIANT_MINIMAL1), true)
|
ifeq ($(call check-jvm-variant, minimal), true)
|
||||||
$(PRINTF) "-minimal KNOWN\n">>$(@)
|
$(PRINTF) "-minimal KNOWN\n">>$(@)
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
ifeq ($(JVM_VARIANT_MINIMAL1), true)
|
ifeq ($(call check-jvm-variant, minimal), true)
|
||||||
$(PRINTF) "-minimal KNOWN\n">>$(@)
|
$(PRINTF) "-minimal KNOWN\n">>$(@)
|
||||||
$(PRINTF) "-server ALIASED_TO -minimal\n">>$(@)
|
$(PRINTF) "-server ALIASED_TO -minimal\n">>$(@)
|
||||||
$(PRINTF) "-client ALIASED_TO -minimal\n">>$(@)
|
$(PRINTF) "-client ALIASED_TO -minimal\n">>$(@)
|
||||||
|
@ -289,7 +289,7 @@ LIBJLI_SRC_DIRS := $(call FindSrcDirsForLib, java.base, jli)
|
|||||||
|
|
||||||
LIBJLI_CFLAGS := $(CFLAGS_JDKLIB)
|
LIBJLI_CFLAGS := $(CFLAGS_JDKLIB)
|
||||||
|
|
||||||
ifeq ($(JVM_VARIANT_ZERO), true)
|
ifeq ($(call check-jvm-variant, zero zeroshark), true)
|
||||||
ERGO_FAMILY := zero
|
ERGO_FAMILY := zero
|
||||||
else
|
else
|
||||||
ifeq ($(OPENJDK_TARGET_CPU_ARCH), x86)
|
ifeq ($(OPENJDK_TARGET_CPU_ARCH), x86)
|
||||||
|
Loading…
Reference in New Issue
Block a user