< prev index next >

make/Images.gmk

Print this page




  73     /jdk.localedata/** \
  74     #
  75 
  76 JLINK_TOOL := $(JLINK) -J-Djlink.debug=true \
  77     --module-path $(IMAGES_OUTPUTDIR)/jmods \
  78     --endian $(OPENJDK_TARGET_CPU_ENDIAN) \
  79     --release-info $(BASE_RELEASE_FILE) \
  80     --order-resources=$(call CommaList, $(JLINK_ORDER_RESOURCES)) \
  81     --dedup-legal-notices=error-if-not-same-content \
  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         $(ECHO) 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         $(TOUCH) $@
 101 
 102 $(JRE_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \
 103     $(call DependOnVariable, JRE_MODULES_LIST) $(BASE_RELEASE_FILE)
 104         $(ECHO) Creating legacy jre image
 105         $(RM) -r $(JRE_IMAGE_DIR)
 106         $(call ExecuteWithLog, $(SUPPORT_OUTPUTDIR)/images/jre, \
 107             $(JLINK_TOOL) --add-modules $(JRE_MODULES_LIST) \
 108                 $(JLINK_JRE_EXTRA_OPTS) \
 109                 --output $(JRE_IMAGE_DIR) \
 110         )




 111         $(TOUCH) $@
 112 
 113 TOOL_JRE_TARGETS := $(JRE_IMAGE_DIR)/$(JIMAGE_TARGET_FILE)
 114 TOOL_JDK_TARGETS := $(JDK_IMAGE_DIR)/$(JIMAGE_TARGET_FILE)
 115 
 116 ################################################################################
 117 # /man dir
 118 #
 119 # All variables in this section are assigned with simple =, without :, to enable
 120 # more selective overriding from the custom version of this file.
 121 #
 122 # Avoid evaluating this whole section on windows for speed and stability
 123 ifneq ($(OPENJDK_TARGET_OS), windows)
 124   ifeq ($(BUILD_MANPAGES), true)
 125     JRE_MAN_PAGES += \
 126         java.1 \
 127         jjs.1 \
 128         keytool.1 \
 129         orbd.1 \
 130         pack200.1 \




  73     /jdk.localedata/** \
  74     #
  75 
  76 JLINK_TOOL := $(JLINK) -J-Djlink.debug=true \
  77     --module-path $(IMAGES_OUTPUTDIR)/jmods \
  78     --endian $(OPENJDK_TARGET_CPU_ENDIAN) \
  79     --release-info $(BASE_RELEASE_FILE) \
  80     --order-resources=$(call CommaList, $(JLINK_ORDER_RESOURCES)) \
  81     --dedup-legal-notices=error-if-not-same-content \
  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 \
 138         pack200.1 \


< prev index next >