提交 33e805d1 编写于 作者: T twisti

7143766: add ALT_JDK_IMAGE_DIR and improve test_jdk

Reviewed-by: rbackman, jrose, dholmes
上级 77016965
...@@ -402,7 +402,6 @@ $(EXPORT_INCLUDE_DIR)/%: $(HS_ALT_SRC)/share/vm/jfr/agent/% ...@@ -402,7 +402,6 @@ $(EXPORT_INCLUDE_DIR)/%: $(HS_ALT_SRC)/share/vm/jfr/agent/%
$(install-file) $(install-file)
else else
$(EXPORT_INCLUDE_DIR)/jfr.h: $(EXPORT_INCLUDE_DIR)/jfr.h:
endif endif
# Doc files (jvmti.html) # Doc files (jvmti.html)
...@@ -448,12 +447,18 @@ $(JDK_IMAGE_DIR)/jre/lib/rt.jar: ...@@ -448,12 +447,18 @@ $(JDK_IMAGE_DIR)/jre/lib/rt.jar:
($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -) ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -)
test_jdk: test_jdk:
ifneq ($(ZERO_BUILD), true)
ifeq ($(ARCH_DATA_MODEL), 32) ifeq ($(ARCH_DATA_MODEL), 32)
$(JDK_IMAGE_DIR)/bin/java -client -version ifneq ($(ZERO_BUILD), true)
$(JDK_IMAGE_DIR)/bin/java -d32 -client -Xinternalversion
$(JDK_IMAGE_DIR)/bin/java -d32 -client -version
endif
$(JDK_IMAGE_DIR)/bin/java -d32 -server -Xinternalversion
$(JDK_IMAGE_DIR)/bin/java -d32 -server -version
endif
ifeq ($(ARCH_DATA_MODEL), 64)
$(JDK_IMAGE_DIR)/bin/java -d64 -server -Xinternalversion
$(JDK_IMAGE_DIR)/bin/java -d64 -server -version
endif endif
endif
$(JDK_IMAGE_DIR)/bin/java -server -version
copy_product_jdk:: copy_product_jdk::
$(RM) -r $(JDK_IMAGE_DIR) $(RM) -r $(JDK_IMAGE_DIR)
...@@ -545,6 +550,7 @@ SLASH_JAVA.desc = Root of all build tools, e.g. /java or J: ...@@ -545,6 +550,7 @@ SLASH_JAVA.desc = Root of all build tools, e.g. /java or J:
OUTPUTDIR.desc = Output directory, default is build/<osname> OUTPUTDIR.desc = Output directory, default is build/<osname>
BOOTDIR.desc = JDK used to compile agent java source and test with BOOTDIR.desc = JDK used to compile agent java source and test with
JDK_IMPORT_PATH.desc = Promoted JDK to copy for 'create_jdk' JDK_IMPORT_PATH.desc = Promoted JDK to copy for 'create_jdk'
JDK_IMAGE_DIR.desc = Directory to place JDK to copy
EXPORT_PATH.desc = Directory to place files to export for JDK build EXPORT_PATH.desc = Directory to place files to export for JDK build
# Make variables to print out (description and value) # Make variables to print out (description and value)
...@@ -553,6 +559,7 @@ VARIABLE_PRINTVAL_LIST += \ ...@@ -553,6 +559,7 @@ VARIABLE_PRINTVAL_LIST += \
OUTPUTDIR \ OUTPUTDIR \
BOOTDIR \ BOOTDIR \
JDK_IMPORT_PATH \ JDK_IMPORT_PATH \
JDK_IMAGE_DIR \
EXPORT_PATH EXPORT_PATH
# Make variables that should refer to directories that exist # Make variables that should refer to directories that exist
......
...@@ -191,6 +191,9 @@ ifeq ($(OS_VENDOR), Darwin) ...@@ -191,6 +191,9 @@ ifeq ($(OS_VENDOR), Darwin)
# Set universal image dir # Set universal image dir
JDK_IMAGE_DIR=$(OUTPUTDIR)/jdk-universal$(EXPORT_SUBDIR) JDK_IMAGE_DIR=$(OUTPUTDIR)/jdk-universal$(EXPORT_SUBDIR)
ifneq ($(ALT_JDK_IMAGE_DIR),)
JDK_IMAGE_DIR=$(ALT_JDK_IMAGE_DIR)
endif
# Binaries to 'universalize' if built # Binaries to 'universalize' if built
UNIVERSAL_LIPO_LIST += $(EXPORT_JRE_LIB_DIR)/libjsig.$(LIBRARY_SUFFIX) UNIVERSAL_LIPO_LIST += $(EXPORT_JRE_LIB_DIR)/libjsig.$(LIBRARY_SUFFIX)
......
...@@ -124,8 +124,8 @@ the_vm: vm_build_preliminaries $(adjust-mflags) ...@@ -124,8 +124,8 @@ the_vm: vm_build_preliminaries $(adjust-mflags)
@$(UpdatePCH) @$(UpdatePCH)
@$(MAKE) -f vm.make $(MFLAGS-adjusted) @$(MAKE) -f vm.make $(MFLAGS-adjusted)
install: the_vm install gamma: the_vm
@$(MAKE) -f vm.make install @$(MAKE) -f vm.make $@
# next rules support "make foo.[ois]" # next rules support "make foo.[ois]"
......
...@@ -193,6 +193,9 @@ endif ...@@ -193,6 +193,9 @@ endif
# Default jdk image if one is created for you with create_jdk # Default jdk image if one is created for you with create_jdk
JDK_IMAGE_DIR=$(OUTPUTDIR)/jdk-$(PLATFORM) JDK_IMAGE_DIR=$(OUTPUTDIR)/jdk-$(PLATFORM)
ifneq ($(ALT_JDK_IMAGE_DIR),)
JDK_IMAGE_DIR=$(ALT_JDK_IMAGE_DIR)
endif
# The platform dependent defs.make defines platform specific variable such # The platform dependent defs.make defines platform specific variable such
# as ARCH, EXPORT_LIST etc. We must place the include here after BOOTDIR is defined. # as ARCH, EXPORT_LIST etc. We must place the include here after BOOTDIR is defined.
......
...@@ -115,8 +115,8 @@ the_vm: vm_build_preliminaries $(adjust-mflags) ...@@ -115,8 +115,8 @@ the_vm: vm_build_preliminaries $(adjust-mflags)
@$(UpdatePCH) @$(UpdatePCH)
@$(MAKE) -f vm.make $(MFLAGS-adjusted) @$(MAKE) -f vm.make $(MFLAGS-adjusted)
install: the_vm install gamma: the_vm
@$(MAKE) -f vm.make install @$(MAKE) -f vm.make $@
# next rules support "make foo.[ois]" # next rules support "make foo.[ois]"
......
...@@ -107,8 +107,8 @@ $(adjust-mflags): $(GAMMADIR)/make/$(Platform_os_family)/makefiles/adjust-mflags ...@@ -107,8 +107,8 @@ $(adjust-mflags): $(GAMMADIR)/make/$(Platform_os_family)/makefiles/adjust-mflags
the_vm: vm_build_preliminaries $(adjust-mflags) the_vm: vm_build_preliminaries $(adjust-mflags)
@$(MAKE) -f vm.make $(MFLAGS-adjusted) @$(MAKE) -f vm.make $(MFLAGS-adjusted)
install: the_vm install gamma: the_vm
@$(MAKE) -f vm.make install @$(MAKE) -f vm.make $@
# next rules support "make foo.[oi]" # next rules support "make foo.[oi]"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册