< prev index next >

make/Images.gmk

Print this page




  85   JLINK_JDK_EXTRA_OPTS := --keep-packaged-modules $(JDK_IMAGE_DIR)/jmods
  86 endif
  87 
  88 $(eval $(call SetupExecute, jlink_jdk, \
  89     WARN := Creating jdk image, \
  90     DEPS := $(JMODS) $(BASE_RELEASE_FILE) \
  91         $(call DependOnVariable, JDK_MODULES_LIST), \
  92     OUTPUT_DIR := $(JDK_IMAGE_DIR), \
  93     SUPPORT_DIR := $(SUPPORT_OUTPUTDIR)/images/jdk, \
  94     PRE_COMMAND := $(RM) -r $(JDK_IMAGE_DIR), \
  95     COMMAND := $(JLINK_TOOL) --add-modules $(JDK_MODULES_LIST) \
  96         $(JLINK_JDK_EXTRA_OPTS) --output $(JDK_IMAGE_DIR), \
  97 ))
  98 
  99 JLINK_JDK_TARGETS := $(jlink_jdk)
 100 
 101 $(eval $(call SetupExecute, jlink_jre, \
 102     WARN := Creating legacy jre image, \
 103     DEPS := $(JMODS) $(BASE_RELEASE_FILE) \
 104         $(call DependOnVariable, JDK_MODULES_LIST), \
 105     OUTPUT_DIR := $(JRE_IMAGE_DIR), \
 106     SUPPORT_DIR := $(SUPPORT_OUTPUTDIR)/images/jre, \
 107     PRE_COMMAND := $(RM) -r $(JRE_IMAGE_DIR), \
 108     COMMAND := $(JLINK_TOOL) --add-modules $(JRE_MODULES_LIST) \
 109         $(JLINK_JRE_EXTRA_OPTS) --output $(JRE_IMAGE_DIR), \
 110 ))
 111 
 112 JLINK_JRE_TARGETS := $(jlink_jre)
 113 
 114 ifeq ($(BUILD_CDS_ARCHIVE), true)
 115   ifeq ($(OPENJDK_TARGET_OS), windows)
 116     CDS_ARCHIVE := bin/server/classes.jsa
 117   else
 118     CDS_ARCHIVE := lib/server/classes.jsa
 119   endif
 120 
 121   $(eval $(call SetupExecute, gen_cds_archive_jdk, \
 122       WARN := Creating CDS archive for jdk image, \
 123       DEPS := $(jlink_jdk), \
 124       OUTPUT_FILE := $(JDK_IMAGE_DIR)/$(CDS_ARCHIVE), \
 125       SUPPORT_DIR := $(SUPPORT_OUTPUTDIR)/images/jdk, \
 126       COMMAND := $(FIXPATH) $(JDK_IMAGE_DIR)/bin/java -Xshare:dump \
 127           -Xmx128M -Xms128M $(LOG_INFO), \
 128   ))
 129 
 130   JDK_TARGETS += $(gen_cds_archive_jdk)
 131 
 132   $(eval $(call SetupExecute, gen_cds_archive_jre, \
 133       WARN := Creating CDS archive for jre image, \
 134       DEPS := $(jlink_jre), \
 135       OUTPUT_FILE := $(JRE_IMAGE_DIR)/$(CDS_ARCHIVE), \
 136       SUPPORT_DIR := $(SUPPORT_OUTPUTDIR)/images/jre, \
 137       COMMAND := $(FIXPATH) $(JRE_IMAGE_DIR)/bin/java -Xshare:dump \
 138           -Xmx128M -Xms128M $(LOG_INFO), \
 139   ))
 140 
 141   JRE_TARGETS += $(gen_cds_archive_jre)
 142 endif
 143 
 144 ################################################################################
 145 # src.zip
 146 
 147 $(JDK_IMAGE_DIR)/lib/src.zip: $(SUPPORT_OUTPUTDIR)/src.zip
 148         $(call LogInfo, Copying $(patsubst $(OUTPUTDIR)/%,%,$@))
 149         $(install-file)
 150 
 151 JDK_TARGETS += $(JDK_IMAGE_DIR)/lib/src.zip
 152 
 153 ################################################################################
 154 # /demo dir
 155 # Avoid doing the expensive find unless called with "jdk" as target.
 156 ifneq ($(filter jdk, $(MAKECMDGOALS)), )
 157 
 158   DEMO_FILES := \
 159       $(if $(wildcard $(SUPPORT_OUTPUTDIR)/demos/image), \
 160         $(shell $(FIND) $(SUPPORT_OUTPUTDIR)/demos/image \
 161             -type f -a ! \( -name "_the*" -o -name "javac_state" \) ) \




  85   JLINK_JDK_EXTRA_OPTS := --keep-packaged-modules $(JDK_IMAGE_DIR)/jmods
  86 endif
  87 
  88 $(eval $(call SetupExecute, jlink_jdk, \
  89     WARN := Creating jdk image, \
  90     DEPS := $(JMODS) $(BASE_RELEASE_FILE) \
  91         $(call DependOnVariable, JDK_MODULES_LIST), \
  92     OUTPUT_DIR := $(JDK_IMAGE_DIR), \
  93     SUPPORT_DIR := $(SUPPORT_OUTPUTDIR)/images/jdk, \
  94     PRE_COMMAND := $(RM) -r $(JDK_IMAGE_DIR), \
  95     COMMAND := $(JLINK_TOOL) --add-modules $(JDK_MODULES_LIST) \
  96         $(JLINK_JDK_EXTRA_OPTS) --output $(JDK_IMAGE_DIR), \
  97 ))
  98 
  99 JLINK_JDK_TARGETS := $(jlink_jdk)
 100 
 101 $(eval $(call SetupExecute, jlink_jre, \
 102     WARN := Creating legacy jre image, \
 103     DEPS := $(JMODS) $(BASE_RELEASE_FILE) \
 104         $(call DependOnVariable, JDK_MODULES_LIST), \
 105     OUTPUT_DIR := $(JDK_IMAGE_DIR), \
 106     SUPPORT_DIR := $(SUPPORT_OUTPUTDIR)/images/jre, \
 107     PRE_COMMAND := $(RM) -r $(JRE_IMAGE_DIR), \
 108     COMMAND := $(JLINK_TOOL) --add-modules $(JRE_MODULES_LIST) \
 109         $(JLINK_JRE_EXTRA_OPTS) --output $(JRE_IMAGE_DIR), \
 110 ))
 111 
 112 JLINK_JRE_TARGETS := $(jlink_jre)
 113 
 114 ifeq ($(BUILD_CDS_ARCHIVE), true)
 115   ifeq ($(OPENJDK_TARGET_OS), windows)
 116     CDS_ARCHIVE := bin/server/classes.jsa
 117   else
 118     CDS_ARCHIVE := lib/server/classes.jsa
 119   endif
 120 
 121   $(eval $(call SetupExecute, gen_cds_archive_jdk, \
 122       WARN := Creating CDS archive for jdk image, \
 123       DEPS := $(jlink_jdk), \
 124       OUTPUT_FILE := $(JDK_IMAGE_DIR)/$(CDS_ARCHIVE), \
 125       SUPPORT_DIR := $(SUPPORT_OUTPUTDIR)/images/jdk, \
 126       COMMAND := $(FIXPATH) $(JDK_IMAGE_DIR)/bin/java -Xshare:dump \
 127           -Xmx128M -Xms128M $(LOG_INFO), \
 128   ))
 129 
 130   JDK_TARGETS += $(gen_cds_archive_jdk)
 131 
 132   $(eval $(call SetupExecute, gen_cds_archive_jre, \
 133       WARN := Creating CDS archive for jre image, \
 134       DEPS := $(jlink_jre), \
 135       OUTPUT_FILE := $(JRE_IMAGE_DIR)/$(CDS_ARCHIVE), \
 136       SUPPORT_DIR := $(SUPPORT_OUTPUTDIR)/images/jre, \
 137       COMMAND := $(FIXPATH) $(JRE_IMAGE_DIR)/bin/java -Xshare:dump \
 138           -Xmx128M -Xms128M $(LOG_INFO), \
 139   ))
 140 
 141   JDK_TARGETS += $(gen_cds_archive_jdk)
 142 endif
 143 
 144 ################################################################################
 145 # src.zip
 146 
 147 $(JDK_IMAGE_DIR)/lib/src.zip: $(SUPPORT_OUTPUTDIR)/src.zip
 148         $(call LogInfo, Copying $(patsubst $(OUTPUTDIR)/%,%,$@))
 149         $(install-file)
 150 
 151 JDK_TARGETS += $(JDK_IMAGE_DIR)/lib/src.zip
 152 
 153 ################################################################################
 154 # /demo dir
 155 # Avoid doing the expensive find unless called with "jdk" as target.
 156 ifneq ($(filter jdk, $(MAKECMDGOALS)), )
 157 
 158   DEMO_FILES := \
 159       $(if $(wildcard $(SUPPORT_OUTPUTDIR)/demos/image), \
 160         $(shell $(FIND) $(SUPPORT_OUTPUTDIR)/demos/image \
 161             -type f -a ! \( -name "_the*" -o -name "javac_state" \) ) \


< prev index next >