82 $(JLINK_JLI_CLASSES) \ 83 # 84 85 JLINK_JRE_EXTRA_OPTS := --no-man-pages --no-header-files --strip-debug 86 87 ifeq ($(JLINK_KEEP_PACKAGED_MODULES), true) 88 JLINK_JDK_EXTRA_OPTS := --keep-packaged-modules $(JDK_IMAGE_DIR)/jmods 89 endif 90 91 $(JDK_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \ 92 $(call DependOnVariable, JDK_MODULES_LIST) $(BASE_RELEASE_FILE) 93 $(call LogWarn, Creating jdk image) 94 $(RM) -r $(JDK_IMAGE_DIR) 95 $(call ExecuteWithLog, $(SUPPORT_OUTPUTDIR)/images/jdk, \ 96 $(JLINK_TOOL) --add-modules $(JDK_MODULES_LIST) \ 97 $(JLINK_JDK_EXTRA_OPTS) \ 98 --output $(JDK_IMAGE_DIR) \ 99 ) 100 ifeq ($(BUILD_CDS_ARCHIVE), true) 101 $(call LogWarn, Creating CDS archive for jdk image) 102 $(JDK_IMAGE_DIR)/bin/java -Xshare:dump -Xmx128M -Xms128M $(LOG_INFO) 103 endif 104 $(TOUCH) $@ 105 106 $(JRE_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \ 107 $(call DependOnVariable, JRE_MODULES_LIST) $(BASE_RELEASE_FILE) 108 $(call LogWarn, Creating legacy jre image) 109 $(RM) -r $(JRE_IMAGE_DIR) 110 $(call ExecuteWithLog, $(SUPPORT_OUTPUTDIR)/images/jre, \ 111 $(JLINK_TOOL) --add-modules $(JRE_MODULES_LIST) \ 112 $(JLINK_JRE_EXTRA_OPTS) \ 113 --output $(JRE_IMAGE_DIR) \ 114 ) 115 ifeq ($(BUILD_CDS_ARCHIVE), true) 116 $(call LogWarn, Creating CDS archive for jre image) 117 $(JRE_IMAGE_DIR)/bin/java -Xshare:dump -Xmx128M -Xms128M $(LOG_INFO) 118 endif 119 $(TOUCH) $@ 120 121 TOOL_JRE_TARGETS := $(JRE_IMAGE_DIR)/$(JIMAGE_TARGET_FILE) 122 TOOL_JDK_TARGETS := $(JDK_IMAGE_DIR)/$(JIMAGE_TARGET_FILE) 123 124 ################################################################################ 125 # /man dir 126 # 127 # All variables in this section are assigned with simple =, without :, to enable 128 # more selective overriding from the custom version of this file. 129 # 130 # Avoid evaluating this whole section on windows for speed and stability 131 ifneq ($(OPENJDK_TARGET_OS), windows) 132 ifeq ($(BUILD_MANPAGES), true) 133 JRE_MAN_PAGES += \ 134 java.1 \ 135 jjs.1 \ 136 keytool.1 \ 137 orbd.1 \ | 82 $(JLINK_JLI_CLASSES) \ 83 # 84 85 JLINK_JRE_EXTRA_OPTS := --no-man-pages --no-header-files --strip-debug 86 87 ifeq ($(JLINK_KEEP_PACKAGED_MODULES), true) 88 JLINK_JDK_EXTRA_OPTS := --keep-packaged-modules $(JDK_IMAGE_DIR)/jmods 89 endif 90 91 $(JDK_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \ 92 $(call DependOnVariable, JDK_MODULES_LIST) $(BASE_RELEASE_FILE) 93 $(call LogWarn, Creating jdk image) 94 $(RM) -r $(JDK_IMAGE_DIR) 95 $(call ExecuteWithLog, $(SUPPORT_OUTPUTDIR)/images/jdk, \ 96 $(JLINK_TOOL) --add-modules $(JDK_MODULES_LIST) \ 97 $(JLINK_JDK_EXTRA_OPTS) \ 98 --output $(JDK_IMAGE_DIR) \ 99 ) 100 ifeq ($(BUILD_CDS_ARCHIVE), true) 101 $(call LogWarn, Creating CDS archive for jdk image) 102 $(JDK_IMAGE_DIR)/bin/java$(EXE_SUFFIX) -Xshare:dump -Xmx128M -Xms128M $(LOG_INFO) 103 endif 104 $(TOUCH) $@ 105 106 $(JRE_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \ 107 $(call DependOnVariable, JRE_MODULES_LIST) $(BASE_RELEASE_FILE) 108 $(call LogWarn, Creating legacy jre image) 109 $(RM) -r $(JRE_IMAGE_DIR) 110 $(call ExecuteWithLog, $(SUPPORT_OUTPUTDIR)/images/jre, \ 111 $(JLINK_TOOL) --add-modules $(JRE_MODULES_LIST) \ 112 $(JLINK_JRE_EXTRA_OPTS) \ 113 --output $(JRE_IMAGE_DIR) \ 114 ) 115 ifeq ($(BUILD_CDS_ARCHIVE), true) 116 $(call LogWarn, Creating CDS archive for jre image) 117 $(JRE_IMAGE_DIR)/bin/java$(EXE_SUFFIX) -Xshare:dump -Xmx128M -Xms128M $(LOG_INFO) 118 endif 119 $(TOUCH) $@ 120 121 TOOL_JRE_TARGETS := $(JRE_IMAGE_DIR)/$(JIMAGE_TARGET_FILE) 122 TOOL_JDK_TARGETS := $(JDK_IMAGE_DIR)/$(JIMAGE_TARGET_FILE) 123 124 ################################################################################ 125 # /man dir 126 # 127 # All variables in this section are assigned with simple =, without :, to enable 128 # more selective overriding from the custom version of this file. 129 # 130 # Avoid evaluating this whole section on windows for speed and stability 131 ifneq ($(OPENJDK_TARGET_OS), windows) 132 ifeq ($(BUILD_MANPAGES), true) 133 JRE_MAN_PAGES += \ 134 java.1 \ 135 jjs.1 \ 136 keytool.1 \ 137 orbd.1 \ |