提交 714d218d 编写于 作者: D dholmes

8009429: Miscellaneous profiles cleanup

8009428: Revert changes to $ substitution performed as part of nashorn integration
Reviewed-by: alanb, erikj
上级 b617f7c3
...@@ -213,28 +213,28 @@ RT_JAR_EXCLUDES += \ ...@@ -213,28 +213,28 @@ RT_JAR_EXCLUDES += \
org/relaxng/datatype \ org/relaxng/datatype \
sun/awt/HKSCS.class \ sun/awt/HKSCS.class \
sun/awt/motif/X11GB2312.class \ sun/awt/motif/X11GB2312.class \
sun/awt/motif/X11GB2312\$$Decoder.class \ sun/awt/motif/X11GB2312\$$$$Decoder.class \
sun/awt/motif/X11GB2312\$$Encoder.class \ sun/awt/motif/X11GB2312\$$$$Encoder.class \
sun/awt/motif/X11GBK.class \ sun/awt/motif/X11GBK.class \
sun/awt/motif/X11GBK\$$Encoder.class \ sun/awt/motif/X11GBK\$$$$Encoder.class \
sun/awt/motif/X11KSC5601.class \ sun/awt/motif/X11KSC5601.class \
sun/awt/motif/X11KSC5601\$$Decoder.class \ sun/awt/motif/X11KSC5601\$$$$Decoder.class \
sun/awt/motif/X11KSC5601\$$Encoder.class \ sun/awt/motif/X11KSC5601\$$$$Encoder.class \
sun/jvmstat \ sun/jvmstat \
sun/net/spi/nameservice/dns \ sun/net/spi/nameservice/dns \
sun/nio/cs/ext \ sun/nio/cs/ext \
sun/rmi/rmic \ sun/rmi/rmic \
sun/security/ec/ECDHKeyAgreement.class \ sun/security/ec/ECDHKeyAgreement.class \
sun/security/ec/ECDSASignature.class \ sun/security/ec/ECDSASignature.class \
sun/security/ec/ECDSASignature\$$Raw.class \ sun/security/ec/ECDSASignature\$$$$Raw.class \
sun/security/ec/ECDSASignature\$$SHA1.class \ sun/security/ec/ECDSASignature\$$$$SHA1.class \
sun/security/ec/ECDSASignature\$$SHA224.class \ sun/security/ec/ECDSASignature\$$$$SHA224.class \
sun/security/ec/ECDSASignature\$$SHA256.class \ sun/security/ec/ECDSASignature\$$$$SHA256.class \
sun/security/ec/ECDSASignature\$$SHA384.class \ sun/security/ec/ECDSASignature\$$$$SHA384.class \
sun/security/ec/ECDSASignature\$$SHA512.class \ sun/security/ec/ECDSASignature\$$$$SHA512.class \
sun/security/ec/ECKeyFactory.class \ sun/security/ec/ECKeyFactory.class \
sun/security/ec/ECKeyPairGenerator.class \ sun/security/ec/ECKeyPairGenerator.class \
sun/security/ec/SunEC\$$1.class \ sun/security/ec/SunEC\$$$$1.class \
sun/security/ec/SunEC.class \ sun/security/ec/SunEC.class \
sun/security/ec/SunECEntries.class \ sun/security/ec/SunECEntries.class \
sun/security/internal \ sun/security/internal \
...@@ -357,23 +357,25 @@ $(PROFILE_VERSION_CLASS_TARGETS) : $(PROFILE_VERSION_JAVA_TARGETS) ...@@ -357,23 +357,25 @@ $(PROFILE_VERSION_CLASS_TARGETS) : $(PROFILE_VERSION_JAVA_TARGETS)
# Support for removing the addPropertyChangeListener and removePropertyChangeListener # Support for removing the addPropertyChangeListener and removePropertyChangeListener
# methods from classes that only go into the profile builds. For now the Pack200.Packer # methods from classes that only go into the profile builds.
# and Packer200.Unpacker classes have special handling because of the $ in the file
# name.
BEANLESS_CLASSES = $(IMAGES_OUTPUTDIR)/beanless BEANLESS_CLASSES = $(IMAGES_OUTPUTDIR)/beanless
# When there are $ characters in filenames we have some very subtle interactions between
# make expansion and shell expansion. In this particular case $< will contain a single $ while
# $@ will contain \$. So we have to pass $< in single-quotes to avoid shell expansion
$(BEANLESS_CLASSES)/%: $(JDK_OUTPUTDIR)/classes/% $(BEANLESS_CLASSES)/%: $(JDK_OUTPUTDIR)/classes/%
$(MKDIR) -p $(@D) $(MKDIR) -p $(@D)
$(TOOL_REMOVEMETHODS) $< $@ addPropertyChangeListener removePropertyChangeListener $(TOOL_REMOVEMETHODS) '$<' $@ addPropertyChangeListener removePropertyChangeListener
CLASSES_TO_DEBEAN = \ CLASSES_TO_DEBEAN = \
java/util/logging/LogManager.class \ java/util/logging/LogManager.class \
java/util/jar/Pack200\$$Packer.class \
java/util/jar/Pack200\$$Unpacker.class \
com/sun/java/util/jar/pack/PackerImpl.class \ com/sun/java/util/jar/pack/PackerImpl.class \
com/sun/java/util/jar/pack/UnpackerImpl.class com/sun/java/util/jar/pack/UnpackerImpl.class
BEANLESS_CLASSES_TARGETS =
ifneq ($(PROFILE),) ifneq ($(PROFILE),)
BEANLESS_CLASSES_TARGETS := $(foreach c, $(CLASSES_TO_DEBEAN), $(BEANLESS_CLASSES)/$c) BEANLESS_CLASSES_TARGETS := $(addprefix $(BEANLESS_CLASSES)/, $(CLASSES_TO_DEBEAN))
endif endif
...@@ -400,13 +402,8 @@ $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/rt.jar: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the ...@@ -400,13 +402,8 @@ $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/rt.jar: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the
$(ECHO) Updating rt.jar $(PROFILE) && \ $(ECHO) Updating rt.jar $(PROFILE) && \
$(CD) $(patsubst %$(VERSION_CLASS_PATH),%,$(CLASS_FILE)) && \ $(CD) $(patsubst %$(VERSION_CLASS_PATH),%,$(CLASS_FILE)) && \
$(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(VERSION_CLASS_PATH); \ $(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(VERSION_CLASS_PATH); \
$(MKDIR) -p $(BEANLESS_CLASSES)/java/util/jar; \
$(TOOL_REMOVEMETHODS) $(JDK_OUTPUTDIR)/classes/java/util/jar/Pack200\$$Packer.class \
$(BEANLESS_CLASSES)/java/util/jar/Pack200\$$Packer.class addPropertyChangeListener removePropertyChangeListener; \
$(TOOL_REMOVEMETHODS) $(JDK_OUTPUTDIR)/classes/java/util/jar/Pack200\$$Unpacker.class \
$(BEANLESS_CLASSES)/java/util/jar/Pack200\$$Unpacker.class addPropertyChangeListener removePropertyChangeListener; \
$(CD) $(BEANLESS_CLASSES) && \ $(CD) $(BEANLESS_CLASSES) && \
$(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(CLASSES_TO_DEBEAN) java/util/jar/* ; \ $(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(CLASSES_TO_DEBEAN); \
fi fi
$(MV) $@.tmp $@ $(MV) $@.tmp $@
......
...@@ -30,9 +30,8 @@ ...@@ -30,9 +30,8 @@
PROFILE_NAMES := compact1 compact2 compact3 PROFILE_NAMES := compact1 compact2 compact3
# The include files use 1,2,3,4 for simplicity and conciseness. Internally we # The include files use 1,2,3 for simplicity and conciseness. Internally we
# use profile_1, profile_2 and profile_3. Note that profile_4 is a full JRE so # use profile_1, profile_2 and profile_3.
# we never have to use it directly.
ALL_PROFILES := profile_1 profile_2 profile_3 ALL_PROFILES := profile_1 profile_2 profile_3
......
...@@ -74,11 +74,11 @@ PROFILE_3_JARS := \ ...@@ -74,11 +74,11 @@ PROFILE_3_JARS := \
$(PROFILE_2_JARS) $(PROFILE_2_JARS)
ifdef OPENJDK ifdef OPENJDK
PROFILE_4_JRE_JAR_FILES := $(filter-out alt-rt.jar, $(PROFILE_4_JRE_JAR_FILES)) FULL_JRE_JAR_FILES := $(filter-out alt-rt.jar, $(FULL_JRE_JAR_FILES))
endif endif
PROFILE_4_JARS := \ FULL_JRE_JARS := \
$(addprefix $(IMAGES_OUTPUTDIR)/lib/, $(PROFILE_4_JRE_JAR_FILES)) \ $(addprefix $(IMAGES_OUTPUTDIR)/lib/, $(FULL_JRE_JAR_FILES)) \
$(PROFILE_3_JARS) $(PROFILE_3_JARS)
# The full set of "jar" files needed for a complete JDK (ct.sym and src.zip # The full set of "jar" files needed for a complete JDK (ct.sym and src.zip
...@@ -86,7 +86,7 @@ PROFILE_4_JARS := \ ...@@ -86,7 +86,7 @@ PROFILE_4_JARS := \
# Note we need to add back the regular form of all the custom profile jars e.g. # Note we need to add back the regular form of all the custom profile jars e.g.
# rt.jar and resources.jar # rt.jar and resources.jar
ALL_JARS := $(PROFILE_4_JARS) \ ALL_JARS := $(FULL_JRE_JARS) \
$(IMAGES_OUTPUTDIR)/lib/rt.jar \ $(IMAGES_OUTPUTDIR)/lib/rt.jar \
$(IMAGES_OUTPUTDIR)/lib/resources.jar \ $(IMAGES_OUTPUTDIR)/lib/resources.jar \
$(IMAGES_OUTPUTDIR)/lib/jconsole.jar \ $(IMAGES_OUTPUTDIR)/lib/jconsole.jar \
...@@ -140,7 +140,7 @@ ALL_JRE_BIN_FILES := \ ...@@ -140,7 +140,7 @@ ALL_JRE_BIN_FILES := \
$(PROFILE_1_JRE_BIN_FILES) \ $(PROFILE_1_JRE_BIN_FILES) \
$(PROFILE_2_JRE_BIN_FILES) \ $(PROFILE_2_JRE_BIN_FILES) \
$(PROFILE_3_JRE_BIN_FILES) \ $(PROFILE_3_JRE_BIN_FILES) \
$(PROFILE_4_JRE_BIN_FILES) $(FULL_JRE_BIN_FILES)
NOT_JRE_BIN_FILES := $(filter-out $(ALL_JRE_BIN_FILES), $(NEW_ALL_BIN_LIST)) NOT_JRE_BIN_FILES := $(filter-out $(ALL_JRE_BIN_FILES), $(NEW_ALL_BIN_LIST))
...@@ -149,18 +149,18 @@ ifeq ($(PROFILE), profile_1) ...@@ -149,18 +149,18 @@ ifeq ($(PROFILE), profile_1)
NOT_JRE_BIN_FILES += \ NOT_JRE_BIN_FILES += \
$(PROFILE_2_JRE_BIN_FILES) \ $(PROFILE_2_JRE_BIN_FILES) \
$(PROFILE_3_JRE_BIN_FILES) \ $(PROFILE_3_JRE_BIN_FILES) \
$(PROFILE_4_JRE_BIN_FILES) $(FULL_JRE_BIN_FILES)
endif endif
ifeq ($(PROFILE), profile_2) ifeq ($(PROFILE), profile_2)
NOT_JRE_BIN_FILES += \ NOT_JRE_BIN_FILES += \
$(PROFILE_3_JRE_BIN_FILES) \ $(PROFILE_3_JRE_BIN_FILES) \
$(PROFILE_4_JRE_BIN_FILES) $(FULL_JRE_BIN_FILES)
endif endif
ifeq ($(PROFILE), profile_3) ifeq ($(PROFILE), profile_3)
NOT_JRE_BIN_FILES += \ NOT_JRE_BIN_FILES += \
$(PROFILE_4_JRE_BIN_FILES) $(FULL_JRE_BIN_FILES)
endif endif
NOT_JRE_BIN_FILES := $(addprefix $(JDK_OUTPUTDIR)/bin/, $(NOT_JRE_BIN_FILES)) NOT_JRE_BIN_FILES := $(addprefix $(JDK_OUTPUTDIR)/bin/, $(NOT_JRE_BIN_FILES))
...@@ -173,7 +173,7 @@ ALL_JRE_LIB_FILES := \ ...@@ -173,7 +173,7 @@ ALL_JRE_LIB_FILES := \
$(PROFILE_1_JRE_LIB_FILES) \ $(PROFILE_1_JRE_LIB_FILES) \
$(PROFILE_2_JRE_LIB_FILES) \ $(PROFILE_2_JRE_LIB_FILES) \
$(PROFILE_3_JRE_LIB_FILES) \ $(PROFILE_3_JRE_LIB_FILES) \
$(PROFILE_4_JRE_LIB_FILES) $(FULL_JRE_LIB_FILES)
NOT_JRE_LIB_FILES := $(filter-out $(ALL_JRE_LIB_FILES), $(NEW_ALL_LIB_LIST)) NOT_JRE_LIB_FILES := $(filter-out $(ALL_JRE_LIB_FILES), $(NEW_ALL_LIB_LIST))
...@@ -189,18 +189,18 @@ ifeq ($(PROFILE), profile_1) ...@@ -189,18 +189,18 @@ ifeq ($(PROFILE), profile_1)
NOT_JRE_LIB_FILES += \ NOT_JRE_LIB_FILES += \
$(PROFILE_2_JRE_LIB_FILES) \ $(PROFILE_2_JRE_LIB_FILES) \
$(PROFILE_3_JRE_LIB_FILES) \ $(PROFILE_3_JRE_LIB_FILES) \
$(PROFILE_4_JRE_LIB_FILES) $(FULL_JRE_LIB_FILES)
endif endif
ifeq ($(PROFILE), profile_2) ifeq ($(PROFILE), profile_2)
NOT_JRE_LIB_FILES += \ NOT_JRE_LIB_FILES += \
$(PROFILE_3_JRE_LIB_FILES) \ $(PROFILE_3_JRE_LIB_FILES) \
$(PROFILE_4_JRE_LIB_FILES) $(FULL_JRE_LIB_FILES)
endif endif
ifeq ($(PROFILE), profile_3) ifeq ($(PROFILE), profile_3)
NOT_JRE_LIB_FILES += \ NOT_JRE_LIB_FILES += \
$(PROFILE_4_JRE_LIB_FILES) $(FULL_JRE_LIB_FILES)
endif endif
# Exclude the custom jar files as these will be added back via a special rule # Exclude the custom jar files as these will be added back via a special rule
...@@ -279,13 +279,13 @@ class_list = $(patsubst $(JDK_OUTPUTDIR)/classes/%,%,\ ...@@ -279,13 +279,13 @@ class_list = $(patsubst $(JDK_OUTPUTDIR)/classes/%,%,\
ifeq ($(PROFILE), profile_1) ifeq ($(PROFILE), profile_1)
RT_JAR_EXCLUDES += \ RT_JAR_EXCLUDES += \
$(PROFILE_1_RTJAR_EXCLUDE_TYPES) \ $(call class_list, $(PROFILE_1_RTJAR_EXCLUDE_TYPES)) \
$(PROFILE_2_RTJAR_INCLUDE_PACKAGES) \ $(PROFILE_2_RTJAR_INCLUDE_PACKAGES) \
$(call class_list, $(PROFILE_2_RTJAR_INCLUDE_TYPES)) \ $(call class_list, $(PROFILE_2_RTJAR_INCLUDE_TYPES)) \
$(PROFILE_3_RTJAR_INCLUDE_PACKAGES) \ $(PROFILE_3_RTJAR_INCLUDE_PACKAGES) \
$(call class_list, $(PROFILE_3_RTJAR_INCLUDE_TYPES)) \ $(call class_list, $(PROFILE_3_RTJAR_INCLUDE_TYPES)) \
$(PROFILE_4_RTJAR_INCLUDE_PACKAGES) \ $(FULL_JRE_RTJAR_INCLUDE_PACKAGES) \
$(call class_list, $(PROFILE_4_RTJAR_INCLUDE_TYPES)) $(call class_list, $(FULL_JRE_RTJAR_INCLUDE_TYPES))
RT_JAR_INCLUDE_TYPES := \ RT_JAR_INCLUDE_TYPES := \
$(call class_list, $(PROFILE_1_RTJAR_INCLUDE_TYPES)) $(call class_list, $(PROFILE_1_RTJAR_INCLUDE_TYPES))
PROFILE_INCLUDE_METAINF_SERVICES := \ PROFILE_INCLUDE_METAINF_SERVICES := \
...@@ -293,11 +293,11 @@ ifeq ($(PROFILE), profile_1) ...@@ -293,11 +293,11 @@ ifeq ($(PROFILE), profile_1)
endif endif
ifeq ($(PROFILE), profile_2) ifeq ($(PROFILE), profile_2)
RT_JAR_EXCLUDES += \ RT_JAR_EXCLUDES += \
$(PROFILE_2_RTJAR_EXCLUDE_TYPES) \ $(call class_list, $(PROFILE_2_RTJAR_EXCLUDE_TYPES)) \
$(PROFILE_3_RTJAR_INCLUDE_PACKAGES) \ $(PROFILE_3_RTJAR_INCLUDE_PACKAGES) \
$(call class_list, $(PROFILE_3_RTJAR_INCLUDE_TYPES)) \ $(call class_list, $(PROFILE_3_RTJAR_INCLUDE_TYPES)) \
$(PROFILE_4_RTJAR_INCLUDE_PACKAGES) \ $(FULL_JRE_RTJAR_INCLUDE_PACKAGES) \
$(call class_list, $(PROFILE_4_RTJAR_INCLUDE_TYPES)) $(call class_list, $(FULL_JRE_RTJAR_INCLUDE_TYPES))
RT_JAR_INCLUDE_TYPES := \ RT_JAR_INCLUDE_TYPES := \
$(call class_list, $(PROFILE_1_RTJAR_INCLUDE_TYPES)) \ $(call class_list, $(PROFILE_1_RTJAR_INCLUDE_TYPES)) \
$(call class_list, $(PROFILE_2_RTJAR_INCLUDE_TYPES)) $(call class_list, $(PROFILE_2_RTJAR_INCLUDE_TYPES))
...@@ -307,9 +307,9 @@ ifeq ($(PROFILE), profile_2) ...@@ -307,9 +307,9 @@ ifeq ($(PROFILE), profile_2)
endif endif
ifeq ($(PROFILE), profile_3) ifeq ($(PROFILE), profile_3)
RT_JAR_EXCLUDES += \ RT_JAR_EXCLUDES += \
$(PROFILE_3_RTJAR_EXCLUDE_TYPES) \ $(call class_list, $(PROFILE_3_RTJAR_EXCLUDE_TYPES)) \
$(PROFILE_4_RTJAR_INCLUDE_PACKAGES) \ $(FULL_JRE_RTJAR_INCLUDE_PACKAGES) \
$(call class_list, $(PROFILE_4_RTJAR_INCLUDE_TYPES)) $(call class_list, $(FULL_JRE_RTJAR_INCLUDE_TYPES))
RT_JAR_INCLUDE_TYPES := \ RT_JAR_INCLUDE_TYPES := \
$(call class_list, $(PROFILE_1_RTJAR_INCLUDE_TYPES)) \ $(call class_list, $(PROFILE_1_RTJAR_INCLUDE_TYPES)) \
$(call class_list, $(PROFILE_2_RTJAR_INCLUDE_TYPES)) \ $(call class_list, $(PROFILE_2_RTJAR_INCLUDE_TYPES)) \
......
...@@ -142,7 +142,7 @@ PROFILE_3_JRE_JAR_FILES := \ ...@@ -142,7 +142,7 @@ PROFILE_3_JRE_JAR_FILES := \
management-agent.jar management-agent.jar
PROFILE_4_JRE_BIN_FILES := \ FULL_JRE_BIN_FILES := \
orbd$(EXE_SUFFIX) \ orbd$(EXE_SUFFIX) \
pack200$(EXE_SUFFIX) \ pack200$(EXE_SUFFIX) \
policytool$(EXE_SUFFIX) \ policytool$(EXE_SUFFIX) \
...@@ -150,7 +150,7 @@ PROFILE_4_JRE_BIN_FILES := \ ...@@ -150,7 +150,7 @@ PROFILE_4_JRE_BIN_FILES := \
tnameserv$(EXE_SUFFIX) \ tnameserv$(EXE_SUFFIX) \
unpack200$(EXE_SUFFIX) unpack200$(EXE_SUFFIX)
PROFILE_4_JRE_LIB_FILES := \ FULL_JRE_LIB_FILES := \
$(OPENJDK_TARGET_CPU_LEGACY_LIB)/$(LIBRARY_PREFIX)awt$(SHARED_LIBRARY_SUFFIX) \ $(OPENJDK_TARGET_CPU_LEGACY_LIB)/$(LIBRARY_PREFIX)awt$(SHARED_LIBRARY_SUFFIX) \
$(OPENJDK_TARGET_CPU_LEGACY_LIB)/$(LIBRARY_PREFIX)awt_headless$(SHARED_LIBRARY_SUFFIX) \ $(OPENJDK_TARGET_CPU_LEGACY_LIB)/$(LIBRARY_PREFIX)awt_headless$(SHARED_LIBRARY_SUFFIX) \
$(OPENJDK_TARGET_CPU_LEGACY_LIB)/$(LIBRARY_PREFIX)awt_xawt$(SHARED_LIBRARY_SUFFIX) \ $(OPENJDK_TARGET_CPU_LEGACY_LIB)/$(LIBRARY_PREFIX)awt_xawt$(SHARED_LIBRARY_SUFFIX) \
...@@ -222,7 +222,7 @@ PROFILE_4_JRE_LIB_FILES := \ ...@@ -222,7 +222,7 @@ PROFILE_4_JRE_LIB_FILES := \
servicetag/jdk_header.png \ servicetag/jdk_header.png \
sound.properties sound.properties
PROFILE_4_JRE_OTHER_FILES := \ FULL_JRE_OTHER_FILES := \
man/ja_JP.UTF-8/man1/java.1 \ man/ja_JP.UTF-8/man1/java.1 \
man/ja_JP.UTF-8/man1/javaws.1 \ man/ja_JP.UTF-8/man1/javaws.1 \
man/ja_JP.UTF-8/man1/keytool.1 \ man/ja_JP.UTF-8/man1/keytool.1 \
...@@ -246,7 +246,7 @@ PROFILE_4_JRE_OTHER_FILES := \ ...@@ -246,7 +246,7 @@ PROFILE_4_JRE_OTHER_FILES := \
man/man1/tnameserv.1 \ man/man1/tnameserv.1 \
man/man1/unpack200.1 man/man1/unpack200.1
PROFILE_4_JRE_JAR_FILES := \ FULL_JRE_JAR_FILES := \
alt-rt.jar \ alt-rt.jar \
charsets.jar \ charsets.jar \
ext/cldrdata.jar \ ext/cldrdata.jar \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册