132 |
132 |
133 $(JDK_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \ |
133 $(JDK_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \ |
134 $(call DependOnVariable, JDK_MODULES_LIST) $(BASE_RELEASE_FILE) |
134 $(call DependOnVariable, JDK_MODULES_LIST) $(BASE_RELEASE_FILE) |
135 $(ECHO) Creating jdk jimage |
135 $(ECHO) Creating jdk jimage |
136 $(RM) -r $(JDK_IMAGE_DIR) |
136 $(RM) -r $(JDK_IMAGE_DIR) |
137 $(JLINK_TOOL) --add-modules $(JDK_MODULES_LIST) \ |
137 $(call ExecuteWithLog, $(SUPPORT_OUTPUTDIR)/images/jdk, \ |
138 $(JLINK_JDK_EXTRA_OPTS) \ |
138 $(JLINK_TOOL) --add-modules $(JDK_MODULES_LIST) \ |
139 --output $(JDK_IMAGE_DIR) |
139 $(JLINK_JDK_EXTRA_OPTS) \ |
|
140 --output $(JDK_IMAGE_DIR) \ |
|
141 ) |
140 $(TOUCH) $@ |
142 $(TOUCH) $@ |
141 |
143 |
142 $(JRE_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \ |
144 $(JRE_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \ |
143 $(call DependOnVariable, JRE_MODULES_LIST) $(BASE_RELEASE_FILE) |
145 $(call DependOnVariable, JRE_MODULES_LIST) $(BASE_RELEASE_FILE) |
144 $(ECHO) Creating jre jimage |
146 $(ECHO) Creating jre jimage |
145 $(RM) -r $(JRE_IMAGE_DIR) |
147 $(RM) -r $(JRE_IMAGE_DIR) |
146 $(JLINK_TOOL) --add-modules $(JRE_MODULES_LIST) \ |
148 $(call ExecuteWithLog, $(SUPPORT_OUTPUTDIR)/images/jre, \ |
147 $(JLINK_JRE_EXTRA_OPTS) \ |
149 $(JLINK_TOOL) --add-modules $(JRE_MODULES_LIST) \ |
148 --output $(JRE_IMAGE_DIR) |
150 $(JLINK_JRE_EXTRA_OPTS) \ |
|
151 --output $(JRE_IMAGE_DIR) \ |
|
152 ) |
149 $(TOUCH) $@ |
153 $(TOUCH) $@ |
150 |
154 |
151 |
155 |
152 $(JRE_COMPACT1_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \ |
156 $(JRE_COMPACT1_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \ |
153 $(call DependOnVariable, JRE_COMPACT1_MODULES_LIST) $(BASE_RELEASE_FILE) |
157 $(call DependOnVariable, JRE_COMPACT1_MODULES_LIST) $(BASE_RELEASE_FILE) |
154 $(ECHO) Creating jre compact1 jimage |
158 $(ECHO) Creating jre compact1 jimage |
155 $(RM) -r $(JRE_COMPACT1_IMAGE_DIR) |
159 $(RM) -r $(JRE_COMPACT1_IMAGE_DIR) |
156 $(JLINK_TOOL) --add-modules $(JRE_COMPACT1_MODULES_LIST) \ |
160 $(call ExecuteWithLog, $(SUPPORT_OUTPUTDIR)/images/jre_compact1, \ |
157 $(JLINK_JRE_EXTRA_OPTS) \ |
161 $(JLINK_TOOL) --add-modules $(JRE_COMPACT1_MODULES_LIST) \ |
158 --output $(JRE_COMPACT1_IMAGE_DIR) |
162 $(JLINK_JRE_EXTRA_OPTS) \ |
|
163 --output $(JRE_COMPACT1_IMAGE_DIR) \ |
|
164 ) |
159 $(TOUCH) $@ |
165 $(TOUCH) $@ |
160 |
166 |
161 $(JRE_COMPACT2_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \ |
167 $(JRE_COMPACT2_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \ |
162 $(call DependOnVariable, JRE_COMPACT2_MODULES_LIST) $(BASE_RELEASE_FILE) |
168 $(call DependOnVariable, JRE_COMPACT2_MODULES_LIST) $(BASE_RELEASE_FILE) |
163 $(ECHO) Creating jre compact2 jimage |
169 $(ECHO) Creating jre compact2 jimage |
164 $(RM) -r $(JRE_COMPACT2_IMAGE_DIR) |
170 $(RM) -r $(JRE_COMPACT2_IMAGE_DIR) |
165 $(JLINK_TOOL) --add-modules $(JRE_COMPACT2_MODULES_LIST) \ |
171 $(call ExecuteWithLog, $(SUPPORT_OUTPUTDIR)/images/jre_compact2, \ |
166 $(JLINK_JRE_EXTRA_OPTS) \ |
172 $(JLINK_TOOL) --add-modules $(JRE_COMPACT2_MODULES_LIST) \ |
167 --output $(JRE_COMPACT2_IMAGE_DIR) |
173 $(JLINK_JRE_EXTRA_OPTS) \ |
|
174 --output $(JRE_COMPACT2_IMAGE_DIR) \ |
|
175 ) |
168 $(TOUCH) $@ |
176 $(TOUCH) $@ |
169 |
177 |
170 $(JRE_COMPACT3_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \ |
178 $(JRE_COMPACT3_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \ |
171 $(call DependOnVariable, JRE_COMPACT3_MODULES_LIST) $(BASE_RELEASE_FILE) |
179 $(call DependOnVariable, JRE_COMPACT3_MODULES_LIST) $(BASE_RELEASE_FILE) |
172 $(ECHO) Creating jre compact3 jimage |
180 $(ECHO) Creating jre compact3 jimage |
173 $(RM) -r $(JRE_COMPACT3_IMAGE_DIR) |
181 $(RM) -r $(JRE_COMPACT3_IMAGE_DIR) |
174 $(JLINK_TOOL) --add-modules $(JRE_COMPACT3_MODULES_LIST) \ |
182 $(call ExecuteWithLog, $(SUPPORT_OUTPUTDIR)/images/jre_compact3, \ |
175 $(JLINK_JRE_EXTRA_OPTS) \ |
183 $(JLINK_TOOL) --add-modules $(JRE_COMPACT3_MODULES_LIST) \ |
176 --output $(JRE_COMPACT3_IMAGE_DIR) |
184 $(JLINK_JRE_EXTRA_OPTS) \ |
|
185 --output $(JRE_COMPACT3_IMAGE_DIR) \ |
|
186 ) |
177 $(TOUCH) $@ |
187 $(TOUCH) $@ |
178 |
188 |
179 TOOL_JRE_TARGETS := $(JRE_IMAGE_DIR)/$(JIMAGE_TARGET_FILE) |
189 TOOL_JRE_TARGETS := $(JRE_IMAGE_DIR)/$(JIMAGE_TARGET_FILE) |
180 TOOL_JDK_TARGETS := $(JDK_IMAGE_DIR)/$(JIMAGE_TARGET_FILE) |
190 TOOL_JDK_TARGETS := $(JDK_IMAGE_DIR)/$(JIMAGE_TARGET_FILE) |
181 TOOL_JRE_COMPACT1_TARGETS := $(JRE_COMPACT1_IMAGE_DIR)/$(JIMAGE_TARGET_FILE) |
191 TOOL_JRE_COMPACT1_TARGETS := $(JRE_COMPACT1_IMAGE_DIR)/$(JIMAGE_TARGET_FILE) |