< prev index next >

make/Images.gmk

Print this page
rev 2487 : 8175026: Capture build-time parameters to --generate-jli-classes
Reviewed-by: mchung


  88 
  89 JRE_MODULES_LIST := $(call CommaList, $(JRE_MODULES))
  90 JDK_MODULES_LIST := $(call CommaList, $(JDK_MODULES))
  91 JRE_COMPACT1_MODULES_LIST := $(call CommaList, $(JRE_COMPACT1_MODULES))
  92 JRE_COMPACT2_MODULES_LIST := $(call CommaList, $(JRE_COMPACT2_MODULES))
  93 JRE_COMPACT3_MODULES_LIST := $(call CommaList, $(JRE_COMPACT3_MODULES))
  94 
  95 ################################################################################
  96 
  97 BASE_RELEASE_FILE := $(JDK_OUTPUTDIR)/release
  98 
  99 JMODS := $(wildcard $(IMAGES_OUTPUTDIR)/jmods/*.jmod)
 100 
 101 # Use this file inside the image as target for make rule
 102 JIMAGE_TARGET_FILE := bin/java$(EXE_SUFFIX)
 103 
 104 JLINK_ORDER_RESOURCES := **module-info.class
 105 JLINK_JLI_CLASSES :=
 106 ifeq ($(ENABLE_GENERATE_CLASSLIST), true)
 107   JLINK_ORDER_RESOURCES += @$(SUPPORT_OUTPUTDIR)/link_opt/classlist
 108   JLINK_JLI_CLASSES := --generate-jli-classes=@$(SUPPORT_OUTPUTDIR)/link_opt/jli_trace.out
 109 endif
 110 JLINK_ORDER_RESOURCES += \
 111     /java.base/java/** \
 112     /java.base/jdk/** \
 113     /java.base/sun/** \
 114     /java.base/com/** \
 115     /jdk.localedata/** \
 116     #
 117 
 118 JLINK_TOOL := $(JLINK) -J-Djlink.debug=true \
 119     --module-path $(IMAGES_OUTPUTDIR)/jmods \
 120     --endian $(OPENJDK_BUILD_CPU_ENDIAN) \
 121     --release-info $(BASE_RELEASE_FILE) \
 122     --order-resources=$(call CommaList, $(JLINK_ORDER_RESOURCES)) \
 123     --dedup-legal-notices=error-if-not-same-content \
 124     $(JLINK_JLI_CLASSES) \
 125     #
 126 
 127 JLINK_JRE_EXTRA_OPTS := --no-man-pages --no-header-files --strip-debug
 128 




  88 
  89 JRE_MODULES_LIST := $(call CommaList, $(JRE_MODULES))
  90 JDK_MODULES_LIST := $(call CommaList, $(JDK_MODULES))
  91 JRE_COMPACT1_MODULES_LIST := $(call CommaList, $(JRE_COMPACT1_MODULES))
  92 JRE_COMPACT2_MODULES_LIST := $(call CommaList, $(JRE_COMPACT2_MODULES))
  93 JRE_COMPACT3_MODULES_LIST := $(call CommaList, $(JRE_COMPACT3_MODULES))
  94 
  95 ################################################################################
  96 
  97 BASE_RELEASE_FILE := $(JDK_OUTPUTDIR)/release
  98 
  99 JMODS := $(wildcard $(IMAGES_OUTPUTDIR)/jmods/*.jmod)
 100 
 101 # Use this file inside the image as target for make rule
 102 JIMAGE_TARGET_FILE := bin/java$(EXE_SUFFIX)
 103 
 104 JLINK_ORDER_RESOURCES := **module-info.class
 105 JLINK_JLI_CLASSES :=
 106 ifeq ($(ENABLE_GENERATE_CLASSLIST), true)
 107   JLINK_ORDER_RESOURCES += @$(SUPPORT_OUTPUTDIR)/link_opt/classlist
 108   JLINK_JLI_CLASSES := --generate-jli-classes=@$(SUPPORT_OUTPUTDIR)/link_opt/default_jli_trace.txt
 109 endif
 110 JLINK_ORDER_RESOURCES += \
 111     /java.base/java/** \
 112     /java.base/jdk/** \
 113     /java.base/sun/** \
 114     /java.base/com/** \
 115     /jdk.localedata/** \
 116     #
 117 
 118 JLINK_TOOL := $(JLINK) -J-Djlink.debug=true \
 119     --module-path $(IMAGES_OUTPUTDIR)/jmods \
 120     --endian $(OPENJDK_BUILD_CPU_ENDIAN) \
 121     --release-info $(BASE_RELEASE_FILE) \
 122     --order-resources=$(call CommaList, $(JLINK_ORDER_RESOURCES)) \
 123     --dedup-legal-notices=error-if-not-same-content \
 124     $(JLINK_JLI_CLASSES) \
 125     #
 126 
 127 JLINK_JRE_EXTRA_OPTS := --no-man-pages --no-header-files --strip-debug
 128 


< prev index next >