8175026: Capture build-time parameters to --generate-jli-classes
authorredestad
Fri, 17 Feb 2017 18:12:53 +0100
changeset 43783 35fe9d6f5075
parent 43782 2b4bab13109b
child 43784 275ea55928df
child 43882 d662da2c29a8
child 43883 6762918b5814
child 43917 18750661e660
8175026: Capture build-time parameters to --generate-jli-classes Reviewed-by: mchung, ihse
make/GenerateLinkOptData.gmk
make/Images.gmk
make/Main.gmk
--- a/make/GenerateLinkOptData.gmk	Thu Feb 16 18:27:56 2017 +0000
+++ b/make/GenerateLinkOptData.gmk	Fri Feb 17 18:12:53 2017 +0100
@@ -49,7 +49,7 @@
 
 LINK_OPT_DIR := $(SUPPORT_OUTPUTDIR)/link_opt
 CLASSLIST_FILE := $(LINK_OPT_DIR)/classlist
-JLI_TRACE_FILE := $(LINK_OPT_DIR)/jli_trace.out
+JLI_TRACE_FILE := $(LINK_OPT_DIR)/default_jli_trace.txt
 
 # If an external buildjdk has been supplied, we don't build a separate interim
 # image, so just use the external build jdk instead.
@@ -83,6 +83,14 @@
 
 TARGETS += $(COPY_CLASSLIST)
 
+# Copy the default_jli_trace.txt file into jdk.jlink
+$(eval $(call SetupCopyFiles, COPY_JLI_TRACE, \
+    FILES := $(JLI_TRACE_FILE), \
+    DEST := $(JDK_OUTPUTDIR)/modules/jdk.jlink/jdk/tools/jlink/internal/plugins, \
+))
+
+TARGETS += $(COPY_JLI_TRACE)
+
 ################################################################################
 
 all: $(TARGETS)
--- a/make/Images.gmk	Thu Feb 16 18:27:56 2017 +0000
+++ b/make/Images.gmk	Fri Feb 17 18:12:53 2017 +0100
@@ -105,7 +105,7 @@
 JLINK_JLI_CLASSES :=
 ifeq ($(ENABLE_GENERATE_CLASSLIST), true)
   JLINK_ORDER_RESOURCES += @$(SUPPORT_OUTPUTDIR)/link_opt/classlist
-  JLINK_JLI_CLASSES := --generate-jli-classes=@$(SUPPORT_OUTPUTDIR)/link_opt/jli_trace.out
+  JLINK_JLI_CLASSES := --generate-jli-classes=@$(SUPPORT_OUTPUTDIR)/link_opt/default_jli_trace.txt
 endif
 JLINK_ORDER_RESOURCES += \
     /java.base/java/** \
--- a/make/Main.gmk	Thu Feb 16 18:27:56 2017 +0000
+++ b/make/Main.gmk	Fri Feb 17 18:12:53 2017 +0100
@@ -727,7 +727,7 @@
     generate-link-opt-data: buildtools-jdk
 
     # The generated classlist needs to go into java.base-jmod.
-    java.base-jmod jdk-image jre-image: generate-link-opt-data
+    java.base-jmod jdk.jlink-jmod jdk-image jre-image: generate-link-opt-data
   endif
 
   release-file: create-source-revision-tracker