8175026: Capture build-time parameters to --generate-jli-classes
Reviewed-by: mchung, ihse
This commit is contained in:
parent
64f56b816f
commit
ada23c9fef
@ -49,7 +49,7 @@ TARGETS += $(CLASSLIST_JAR)
|
|||||||
|
|
||||||
LINK_OPT_DIR := $(SUPPORT_OUTPUTDIR)/link_opt
|
LINK_OPT_DIR := $(SUPPORT_OUTPUTDIR)/link_opt
|
||||||
CLASSLIST_FILE := $(LINK_OPT_DIR)/classlist
|
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
|
# If an external buildjdk has been supplied, we don't build a separate interim
|
||||||
# image, so just use the external build jdk instead.
|
# image, so just use the external build jdk instead.
|
||||||
@ -83,6 +83,14 @@ $(eval $(call SetupCopyFiles, COPY_CLASSLIST, \
|
|||||||
|
|
||||||
TARGETS += $(COPY_CLASSLIST)
|
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)
|
all: $(TARGETS)
|
||||||
|
@ -105,7 +105,7 @@ JLINK_ORDER_RESOURCES := **module-info.class
|
|||||||
JLINK_JLI_CLASSES :=
|
JLINK_JLI_CLASSES :=
|
||||||
ifeq ($(ENABLE_GENERATE_CLASSLIST), true)
|
ifeq ($(ENABLE_GENERATE_CLASSLIST), true)
|
||||||
JLINK_ORDER_RESOURCES += @$(SUPPORT_OUTPUTDIR)/link_opt/classlist
|
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
|
endif
|
||||||
JLINK_ORDER_RESOURCES += \
|
JLINK_ORDER_RESOURCES += \
|
||||||
/java.base/java/** \
|
/java.base/java/** \
|
||||||
|
@ -727,7 +727,7 @@ else
|
|||||||
generate-link-opt-data: buildtools-jdk
|
generate-link-opt-data: buildtools-jdk
|
||||||
|
|
||||||
# The generated classlist needs to go into java.base-jmod.
|
# 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
|
endif
|
||||||
|
|
||||||
release-file: create-source-revision-tracker
|
release-file: create-source-revision-tracker
|
||||||
|
Loading…
x
Reference in New Issue
Block a user