jdk/makefiles/Profiles.gmk
changeset 20547 453837141fac
parent 19570 e1c7cdf2f15a
child 20551 8518304d2097
equal deleted inserted replaced
20546:5e40a295cce2 20547:453837141fac
    38 #
    38 #
    39 # These are the jar files to be built. In some builds these have to be
    39 # These are the jar files to be built. In some builds these have to be
    40 # imported (signed jars) rather than built.
    40 # imported (signed jars) rather than built.
    41 #
    41 #
    42 # The incoming lists, eg PROFILE_1_JRE_JARS_FILES, are the jars to be
    42 # The incoming lists, eg PROFILE_1_JRE_JARS_FILES, are the jars to be
    43 # included in this profile. They have the jar name relative to the lib 
    43 # included in this profile. They have the jar name relative to the lib
    44 # directory. We have to turn these into targets by adding the 
    44 # directory. We have to turn these into targets by adding the
    45 # $(IMAGES_OUTPUTDIR)/lib prefix
    45 # $(IMAGES_OUTPUTDIR)/lib prefix
    46 #
    46 #
    47 # Note that some jars may be optional depending on the type of build (jdk vs.
    47 # Note that some jars may be optional depending on the type of build (jdk vs.
    48 # openjdk) and the platform.
    48 # openjdk) and the platform.
    49 #
    49 #
    56 CUSTOM_PROFILE_JARS := $(addprefix $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/, $(CUSTOM_JARS))
    56 CUSTOM_PROFILE_JARS := $(addprefix $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/, $(CUSTOM_JARS))
    57 
    57 
    58 # These are the common jar files built for and included with this profile
    58 # These are the common jar files built for and included with this profile
    59 # Filter out the custom jars and turn them into targets.
    59 # Filter out the custom jars and turn them into targets.
    60 
    60 
    61 PROFILE_1_JARS :=  \
    61 PROFILE_1_JARS := \
    62     $(addprefix $(IMAGES_OUTPUTDIR)/lib/, $(filter-out $(CUSTOM_JARS), $(PROFILE_1_JRE_JAR_FILES)))
    62     $(addprefix $(IMAGES_OUTPUTDIR)/lib/, $(filter-out $(CUSTOM_JARS), $(PROFILE_1_JRE_JAR_FILES)))
    63 
    63 
    64 PROFILE_2_JARS := \
    64 PROFILE_2_JARS := \
    65     $(if $(PROFILE_2_JRE_JAR_FILES), $(addprefix $(IMAGES_OUTPUTDIR)/lib/, $(PROFILE_2_JRE_JAR_FILES))) \
    65     $(if $(PROFILE_2_JRE_JAR_FILES), $(addprefix $(IMAGES_OUTPUTDIR)/lib/, $(PROFILE_2_JRE_JAR_FILES))) \
    66     $(PROFILE_1_JARS)
    66     $(PROFILE_1_JARS)
    72 ifdef OPENJDK
    72 ifdef OPENJDK
    73   FULL_JRE_JAR_FILES := $(filter-out alt-rt.jar, $(FULL_JRE_JAR_FILES))
    73   FULL_JRE_JAR_FILES := $(filter-out alt-rt.jar, $(FULL_JRE_JAR_FILES))
    74 endif
    74 endif
    75 
    75 
    76 ifneq ($(ENABLE_JFR), true)
    76 ifneq ($(ENABLE_JFR), true)
    77   FULL_JRE_JAR_FILES :=  $(filter-out jfr.jar, $(FULL_JRE_JAR_FILES))
    77   FULL_JRE_JAR_FILES := $(filter-out jfr.jar, $(FULL_JRE_JAR_FILES))
    78 endif
    78 endif
    79 
    79 
    80 FULL_JRE_JARS := \
    80 FULL_JRE_JARS := \
    81     $(addprefix $(IMAGES_OUTPUTDIR)/lib/, $(FULL_JRE_JAR_FILES)) \
    81     $(addprefix $(IMAGES_OUTPUTDIR)/lib/, $(FULL_JRE_JAR_FILES)) \
    82     $(PROFILE_3_JARS)
    82     $(PROFILE_3_JARS)
    85 # are also included.)
    85 # are also included.)
    86 # Note we need to add back the regular form of all the custom profile jars e.g.
    86 # Note we need to add back the regular form of all the custom profile jars e.g.
    87 # rt.jar and resources.jar that we filtered out above
    87 # rt.jar and resources.jar that we filtered out above
    88 
    88 
    89 ALL_JARS := $(FULL_JRE_JARS) \
    89 ALL_JARS := $(FULL_JRE_JARS) \
    90         $(IMAGES_OUTPUTDIR)/lib/rt.jar \
    90     $(IMAGES_OUTPUTDIR)/lib/rt.jar \
    91         $(IMAGES_OUTPUTDIR)/lib/resources.jar \
    91     $(IMAGES_OUTPUTDIR)/lib/resources.jar \
    92         $(IMAGES_OUTPUTDIR)/lib/jconsole.jar \
    92     $(IMAGES_OUTPUTDIR)/lib/jconsole.jar \
    93         $(IMAGES_OUTPUTDIR)/lib/dt.jar \
    93     $(IMAGES_OUTPUTDIR)/lib/dt.jar \
    94         $(IMAGES_OUTPUTDIR)/lib/tools.jar \
    94     $(IMAGES_OUTPUTDIR)/lib/tools.jar \
    95         $(IMAGES_OUTPUTDIR)/lib/ct.sym \
    95     $(IMAGES_OUTPUTDIR)/lib/ct.sym \
    96         $(IMAGES_OUTPUTDIR)/src.zip
    96     $(IMAGES_OUTPUTDIR)/src.zip
    97 
    97 
    98 ifeq ($(INCLUDE_SA),true)
    98 ifeq ($(INCLUDE_SA), true)
    99     ALL_JARS += $(IMAGES_OUTPUTDIR)/lib/sa-jdi.jar
    99   ALL_JARS += $(IMAGES_OUTPUTDIR)/lib/sa-jdi.jar
   100 endif
   100 endif
   101 
   101 
   102 ifeq ($(OPENJDK_TARGET_OS),solaris)
   102 ifeq ($(OPENJDK_TARGET_OS), solaris)
   103     ifndef OPENJDK
   103   ifndef OPENJDK
   104         ALL_JARS += $(IMAGES_OUTPUTDIR)/lib/ext/ucrypto.jar
   104     ALL_JARS += $(IMAGES_OUTPUTDIR)/lib/ext/ucrypto.jar
   105     endif
   105   endif
   106 endif
   106 endif
   107 
   107 
   108 ifeq ($(OPENJDK_TARGET_OS),windows)
   108 ifeq ($(OPENJDK_TARGET_OS), windows)
   109     ALL_JARS += $(IMAGES_OUTPUTDIR)/lib/ext/sunmscapi.jar
   109   ALL_JARS += $(IMAGES_OUTPUTDIR)/lib/ext/sunmscapi.jar
   110 endif 
   110 endif
   111 
   111 
   112 ifeq ($(OPENJDK_TARGET_OS),macosx)
   112 ifeq ($(OPENJDK_TARGET_OS), macosx)
   113     ALL_JARS += $(IMAGES_OUTPUTDIR)/lib/JObjC.jar
   113   ALL_JARS += $(IMAGES_OUTPUTDIR)/lib/JObjC.jar
   114 endif
   114 endif
   115 
   115 
   116 ifeq ($(PROFILE), profile_1)
   116 ifeq ($(PROFILE), profile_1)
   117     PROFILE_JARS := $(PROFILE_1_JARS)
   117   PROFILE_JARS := $(PROFILE_1_JARS)
   118 else ifeq ($(PROFILE), profile_2)
   118 else ifeq ($(PROFILE), profile_2)
   119     PROFILE_JARS := $(PROFILE_2_JARS)
   119   PROFILE_JARS := $(PROFILE_2_JARS)
   120 else ifeq ($(PROFILE), profile_3)
   120 else ifeq ($(PROFILE), profile_3)
   121     PROFILE_JARS := $(PROFILE_3_JARS)
   121   PROFILE_JARS := $(PROFILE_3_JARS)
   122 endif
   122 endif
   123 ifneq ($(PROFILE),)
   123 ifneq ($(PROFILE), )
   124     JARS := $(CUSTOM_PROFILE_JARS) $(PROFILE_JARS)
   124   JARS := $(CUSTOM_PROFILE_JARS) $(PROFILE_JARS)
   125 else
   125 else
   126     JARS := $(ALL_JARS)
   126   JARS := $(ALL_JARS)
   127 endif
   127 endif
   128 
   128 
   129 ###############################################################################
   129 ###############################################################################
   130 # JRE contents
   130 # JRE contents
   131 ###############################################################################
   131 ###############################################################################
   132 
   132 
   133 
   133 
   134 # we don't need to do anything if not building a profile
   134 # we don't need to do anything if not building a profile
   135 ifneq ($(PROFILE),)
   135 ifneq ($(PROFILE), )
   136 
   136 
   137 
   137 
   138 # Need all files to generate the exclude lists
   138 # Need all files to generate the exclude lists
   139 NEW_ALL_BIN_LIST := $(patsubst $(JDK_OUTPUTDIR)/bin/%,%,$(shell $(FIND) $(JDK_OUTPUTDIR)/bin \( -type f -o -type l \) ! -name "sjavac"))
   139 NEW_ALL_BIN_LIST := $(patsubst $(JDK_OUTPUTDIR)/bin/%,%,$(shell $(FIND) $(JDK_OUTPUTDIR)/bin \( -type f -o -type l \) ! -name "sjavac"))
   140 
   140 
   141 ALL_JRE_BIN_FILES := \
   141 ALL_JRE_BIN_FILES := \
   142    $(PROFILE_1_JRE_BIN_FILES) \
   142     $(PROFILE_1_JRE_BIN_FILES) \
   143    $(PROFILE_2_JRE_BIN_FILES) \
   143     $(PROFILE_2_JRE_BIN_FILES) \
   144    $(PROFILE_3_JRE_BIN_FILES) \
   144     $(PROFILE_3_JRE_BIN_FILES) \
   145    $(FULL_JRE_BIN_FILES) 
   145     $(FULL_JRE_BIN_FILES)
   146 
   146 
   147 NOT_JRE_BIN_FILES := $(filter-out $(ALL_JRE_BIN_FILES), $(NEW_ALL_BIN_LIST))
   147 NOT_JRE_BIN_FILES := $(filter-out $(ALL_JRE_BIN_FILES), $(NEW_ALL_BIN_LIST))
   148 
   148 
   149 # Additional exclusions for profile JRE
   149 # Additional exclusions for profile JRE
   150 ifeq ($(PROFILE), profile_1)
   150 ifeq ($(PROFILE), profile_1)
   151     NOT_JRE_BIN_FILES += \
   151   NOT_JRE_BIN_FILES += \
   152         $(PROFILE_2_JRE_BIN_FILES) \
   152       $(PROFILE_2_JRE_BIN_FILES) \
   153         $(PROFILE_3_JRE_BIN_FILES) \
   153       $(PROFILE_3_JRE_BIN_FILES) \
   154         $(FULL_JRE_BIN_FILES) 
   154       $(FULL_JRE_BIN_FILES)
   155 endif
   155 endif
   156 
   156 
   157 ifeq ($(PROFILE), profile_2)
   157 ifeq ($(PROFILE), profile_2)
   158     NOT_JRE_BIN_FILES += \
   158   NOT_JRE_BIN_FILES += \
   159         $(PROFILE_3_JRE_BIN_FILES) \
   159       $(PROFILE_3_JRE_BIN_FILES) \
   160         $(FULL_JRE_BIN_FILES) 
   160       $(FULL_JRE_BIN_FILES)
   161 endif
   161 endif
   162 
   162 
   163 ifeq ($(PROFILE), profile_3)
   163 ifeq ($(PROFILE), profile_3)
   164     NOT_JRE_BIN_FILES += \
   164   NOT_JRE_BIN_FILES += \
   165         $(FULL_JRE_BIN_FILES) 
   165       $(FULL_JRE_BIN_FILES)
   166 endif
   166 endif
   167 
   167 
   168 NOT_JRE_BIN_FILES := $(addprefix $(JDK_OUTPUTDIR)/bin/, $(NOT_JRE_BIN_FILES))
   168 NOT_JRE_BIN_FILES := $(addprefix $(JDK_OUTPUTDIR)/bin/, $(NOT_JRE_BIN_FILES))
   169 
   169 
   170 # Need all files to generate the exclude lists
   170 # Need all files to generate the exclude lists
   171 NEW_ALL_LIB_LIST := $(patsubst $(JDK_OUTPUTDIR)/lib/%,%,$(shell $(FIND) $(JDK_OUTPUTDIR)/lib \( -type f -o -type l \) -a ! \( -name "_the*" -o -name "javac_state " \) ))
   171 NEW_ALL_LIB_LIST := $(patsubst $(JDK_OUTPUTDIR)/lib/%,%,$(shell $(FIND) $(JDK_OUTPUTDIR)/lib \( -type f -o -type l \) -a ! \( -name "_the*" -o -name "javac_state " \) ))
   172 NEW_ALL_LIB_LIST += $(patsubst $(IMAGES_OUTPUTDIR)/lib/%,%,$(shell $(FIND) $(IMAGES_OUTPUTDIR)/lib \( -type f -o -type l \) -a ! \( -name "_the*" -o -name "javac_state " \) ))
   172 NEW_ALL_LIB_LIST += $(patsubst $(IMAGES_OUTPUTDIR)/lib/%,%,$(shell $(FIND) $(IMAGES_OUTPUTDIR)/lib \( -type f -o -type l \) -a ! \( -name "_the*" -o -name "javac_state " \) ))
   173 
   173 
   174 ALL_JRE_LIB_FILES := \
   174 ALL_JRE_LIB_FILES := \
   175    $(PROFILE_1_JRE_LIB_FILES) \
   175     $(PROFILE_1_JRE_LIB_FILES) \
   176    $(PROFILE_2_JRE_LIB_FILES) \
   176     $(PROFILE_2_JRE_LIB_FILES) \
   177    $(PROFILE_3_JRE_LIB_FILES) \
   177     $(PROFILE_3_JRE_LIB_FILES) \
   178    $(FULL_JRE_LIB_FILES) 
   178     $(FULL_JRE_LIB_FILES)
   179 
   179 
   180 NOT_JRE_LIB_FILES := $(filter-out $(ALL_JRE_LIB_FILES), $(NEW_ALL_LIB_LIST))
   180 NOT_JRE_LIB_FILES := $(filter-out $(ALL_JRE_LIB_FILES), $(NEW_ALL_LIB_LIST))
   181 
   181 
   182 # Although these are NOT JRE lib files we have to filter them from the list
   182 # Although these are NOT JRE lib files we have to filter them from the list
   183 # (ie cause them to be added them back in here) because the logic in
   183 # (ie cause them to be added them back in here) because the logic in
   186 # This needs fixing.
   186 # This needs fixing.
   187 NOT_JRE_LIB_FILES := $(filter-out $(OPENJDK_TARGET_CPU_LEGACY_LIB)/$(LIBRARY_PREFIX)attach$(SHARED_LIBRARY_SUFFIX) $(OPENJDK_TARGET_CPU_LEGACY_LIB)/$(SALIB_NAME), $(NOT_JRE_LIB_FILES))
   187 NOT_JRE_LIB_FILES := $(filter-out $(OPENJDK_TARGET_CPU_LEGACY_LIB)/$(LIBRARY_PREFIX)attach$(SHARED_LIBRARY_SUFFIX) $(OPENJDK_TARGET_CPU_LEGACY_LIB)/$(SALIB_NAME), $(NOT_JRE_LIB_FILES))
   188 
   188 
   189 # Additional exclusions for profile JREs
   189 # Additional exclusions for profile JREs
   190 ifeq ($(PROFILE), profile_1)
   190 ifeq ($(PROFILE), profile_1)
   191     NOT_JRE_LIB_FILES += \
   191   NOT_JRE_LIB_FILES += \
   192         $(PROFILE_2_JRE_LIB_FILES) \
   192       $(PROFILE_2_JRE_LIB_FILES) \
   193         $(PROFILE_3_JRE_LIB_FILES) \
   193       $(PROFILE_3_JRE_LIB_FILES) \
   194         $(FULL_JRE_LIB_FILES) 
   194       $(FULL_JRE_LIB_FILES)
   195 endif
   195 endif
   196 
   196 
   197 ifeq ($(PROFILE), profile_2)
   197 ifeq ($(PROFILE), profile_2)
   198     NOT_JRE_LIB_FILES += \
   198   NOT_JRE_LIB_FILES += \
   199         $(PROFILE_3_JRE_LIB_FILES) \
   199       $(PROFILE_3_JRE_LIB_FILES) \
   200         $(FULL_JRE_LIB_FILES) 
   200       $(FULL_JRE_LIB_FILES)
   201 endif
   201 endif
   202 
   202 
   203 ifeq ($(PROFILE), profile_3)
   203 ifeq ($(PROFILE), profile_3)
   204     NOT_JRE_LIB_FILES += \
   204   NOT_JRE_LIB_FILES += \
   205         $(FULL_JRE_LIB_FILES) 
   205       $(FULL_JRE_LIB_FILES)
   206 endif
   206 endif
   207 
   207 
   208 # Exclude the custom jar files as these will be added back via a special rule
   208 # Exclude the custom jar files as these will be added back via a special rule
   209 NOT_JRE_LIB_FILES += $(CUSTOM_JARS)
   209 NOT_JRE_LIB_FILES += $(CUSTOM_JARS)
   210 
   210 
   211 ###############################################################################
   211 ###############################################################################
   212 # Customization of rt.jar file contents
   212 # Customization of rt.jar file contents
   213 # These are expressed as exclusions from everything found in the 
   213 # These are expressed as exclusions from everything found in the
   214 # JDK_OUTPUTDIR/classes directory
   214 # JDK_OUTPUTDIR/classes directory
   215 ###############################################################################
   215 ###############################################################################
   216 
   216 
   217 # The main set of excluded types/packages (ie everything not destined to be
   217 # The main set of excluded types/packages (ie everything not destined to be
   218 # part of rt.jar or resources.jar is captured in the CreateJars.gmk RT_JAR_EXCLUDES
   218 # part of rt.jar or resources.jar is captured in the CreateJars.gmk RT_JAR_EXCLUDES
   229 #
   229 #
   230 # - PROFILE_n_RTJAR_INCLUDE_TYPES
   230 # - PROFILE_n_RTJAR_INCLUDE_TYPES
   231 #
   231 #
   232 # These are specific types that must be included within a package.
   232 # These are specific types that must be included within a package.
   233 # There are two cases:
   233 # There are two cases:
   234 # - individual types in a package that is otherwise excluded at this 
   234 # - individual types in a package that is otherwise excluded at this
   235 #   profile level. The only arises if there are split packages. 
   235 #   profile level. The only arises if there are split packages.
   236 #
   236 #
   237 # - A higher-level package is included in a high profile where a subpackage
   237 # - A higher-level package is included in a high profile where a subpackage
   238 # is included in a lower profile. Including the package in the high profile
   238 # is included in a lower profile. Including the package in the high profile
   239 # would exclude it and all subpackages from the lower profile, so instead
   239 # would exclude it and all subpackages from the lower profile, so instead
   240 # the classes in the package are listed for that higher profile (as *.class)
   240 # the classes in the package are listed for that higher profile (as *.class)
   245 #
   245 #
   246 # These are specific types that must be excluded even though most of the
   246 # These are specific types that must be excluded even though most of the
   247 # containing package is include. Again this occurs with split packges.
   247 # containing package is include. Again this occurs with split packges.
   248 #
   248 #
   249 # So the exclude list for each profile consists of the include lists
   249 # So the exclude list for each profile consists of the include lists
   250 # for all profiles above it, together with any explicitly excluded types. 
   250 # for all profiles above it, together with any explicitly excluded types.
   251 # This is then combined with the overall RT_JAR_EXCLUDES list (which covers
   251 # This is then combined with the overall RT_JAR_EXCLUDES list (which covers
   252 # things that go into other jar files).
   252 # things that go into other jar files).
   253 #
   253 #
   254 # We also have to define the types to be explicitly included. This
   254 # We also have to define the types to be explicitly included. This
   255 # accumulates up the profiles ie profile 3 has to include the types
   255 # accumulates up the profiles ie profile 3 has to include the types
   256 # that profiles 1 and 2 had to include. This is unnecessary if, for example,
   256 # that profiles 1 and 2 had to include. This is unnecessary if, for example,
   257 # profile 3 includes the entire package, but it is harmless to add them
   257 # profile 3 includes the entire package, but it is harmless to add them
   258 # explicitly, and complex to determine if we still need to include them.
   258 # explicitly, and complex to determine if we still need to include them.
   259 #
   259 #
   260 # Need a way to express: 
   260 # Need a way to express:
   261 #  for (int i = profile+1; i < 4; i++)
   261 #  for (int i = profile+1; i < 4; i++)
   262 #     RT_JAR_EXCLUDES += PROFILE_$i_RTJAR_INCLUDE_PACKAGES
   262 #     RT_JAR_EXCLUDES += PROFILE_$i_RTJAR_INCLUDE_PACKAGES
   263 #
   263 #
   264 # Do it the long way for now
   264 # Do it the long way for now
   265 #
   265 #
   266 # - PROFILE_n_INCLUDE_METAINF_SERVICES
   266 # - PROFILE_n_INCLUDE_METAINF_SERVICES
   267 #
   267 #
   268 # These are META-INF/services/ entries found in resources.jar. Together
   268 # These are META-INF/services/ entries found in resources.jar. Together
   269 # resources.jar and rt.jar hold the contents of the classes directory, (the
   269 # resources.jar and rt.jar hold the contents of the classes directory, (the
   270 # classes in rt.jar and everything else in resources.jar).Hence the 
   270 # classes in rt.jar and everything else in resources.jar).Hence the
   271 # include/exclude information for resources.jar is tied to that of rt.jar
   271 # include/exclude information for resources.jar is tied to that of rt.jar
   272 
   272 
   273 include profile-rtjar-includes.txt
   273 include profile-rtjar-includes.txt
   274 
   274 
   275 # Function to expand foo/*.class into the set of classes
   275 # Function to expand foo/*.class into the set of classes
   276 # NOTE: Classfiles with $ in their name are problematic as that is the
   276 # NOTE: Classfiles with $ in their name are problematic as that is the
   277 # meta-character for both make and the shell! Hence the \$$$$ substitution.
   277 # meta-character for both make and the shell! Hence the \$$$$ substitution.
   278 # But note that if you echo these values they will NOT display as expected.
   278 # But note that if you echo these values they will NOT display as expected.
   279 class_list =  $(patsubst $(JDK_OUTPUTDIR)/classes/%,%,\
   279 class_list = $(patsubst $(JDK_OUTPUTDIR)/classes/%,%, \
   280      $(foreach i,$(1), $(subst $$,\$$$$, $(wildcard $(JDK_OUTPUTDIR)/classes/$i))))
   280     $(foreach i, $(1), $(subst $$,\$$$$, $(wildcard $(JDK_OUTPUTDIR)/classes/$i))))
   281 
   281 
   282 ifeq ($(PROFILE), profile_1)
   282 ifeq ($(PROFILE), profile_1)
   283   RT_JAR_EXCLUDES += \
   283   RT_JAR_EXCLUDES += \
   284     $(call class_list, $(PROFILE_1_RTJAR_EXCLUDE_TYPES)) \
   284       $(call class_list, $(PROFILE_1_RTJAR_EXCLUDE_TYPES)) \
   285     $(PROFILE_2_RTJAR_INCLUDE_PACKAGES) \
   285       $(PROFILE_2_RTJAR_INCLUDE_PACKAGES) \
   286     $(call class_list, $(PROFILE_2_RTJAR_INCLUDE_TYPES)) \
   286       $(call class_list, $(PROFILE_2_RTJAR_INCLUDE_TYPES)) \
   287     $(PROFILE_3_RTJAR_INCLUDE_PACKAGES) \
   287       $(PROFILE_3_RTJAR_INCLUDE_PACKAGES) \
   288     $(call class_list, $(PROFILE_3_RTJAR_INCLUDE_TYPES)) \
   288       $(call class_list, $(PROFILE_3_RTJAR_INCLUDE_TYPES)) \
   289     $(FULL_JRE_RTJAR_INCLUDE_PACKAGES) \
   289       $(FULL_JRE_RTJAR_INCLUDE_PACKAGES) \
   290     $(call class_list, $(FULL_JRE_RTJAR_INCLUDE_TYPES))
   290       $(call class_list, $(FULL_JRE_RTJAR_INCLUDE_TYPES))
   291   RT_JAR_INCLUDE_TYPES := \
   291   RT_JAR_INCLUDE_TYPES := \
   292 	$(call class_list, $(PROFILE_1_RTJAR_INCLUDE_TYPES))
   292       $(call class_list, $(PROFILE_1_RTJAR_INCLUDE_TYPES))
   293   PROFILE_INCLUDE_METAINF_SERVICES := \
   293   PROFILE_INCLUDE_METAINF_SERVICES := \
   294     $(PROFILE_1_INCLUDE_METAINF_SERVICES)
   294       $(PROFILE_1_INCLUDE_METAINF_SERVICES)
   295 endif
   295 endif
   296 ifeq ($(PROFILE), profile_2)
   296 ifeq ($(PROFILE), profile_2)
   297   RT_JAR_EXCLUDES += \
   297   RT_JAR_EXCLUDES += \
   298     $(call class_list, $(PROFILE_2_RTJAR_EXCLUDE_TYPES)) \
   298       $(call class_list, $(PROFILE_2_RTJAR_EXCLUDE_TYPES)) \
   299     $(PROFILE_3_RTJAR_INCLUDE_PACKAGES) \
   299       $(PROFILE_3_RTJAR_INCLUDE_PACKAGES) \
   300     $(call class_list, $(PROFILE_3_RTJAR_INCLUDE_TYPES)) \
   300       $(call class_list, $(PROFILE_3_RTJAR_INCLUDE_TYPES)) \
   301     $(FULL_JRE_RTJAR_INCLUDE_PACKAGES) \
   301       $(FULL_JRE_RTJAR_INCLUDE_PACKAGES) \
   302     $(call class_list, $(FULL_JRE_RTJAR_INCLUDE_TYPES))
   302       $(call class_list, $(FULL_JRE_RTJAR_INCLUDE_TYPES))
   303   RT_JAR_INCLUDE_TYPES := \
   303   RT_JAR_INCLUDE_TYPES := \
   304 	$(call class_list, $(PROFILE_1_RTJAR_INCLUDE_TYPES)) \
   304       $(call class_list, $(PROFILE_1_RTJAR_INCLUDE_TYPES)) \
   305 	$(call class_list, $(PROFILE_2_RTJAR_INCLUDE_TYPES))
   305       $(call class_list, $(PROFILE_2_RTJAR_INCLUDE_TYPES))
   306   PROFILE_INCLUDE_METAINF_SERVICES := \
   306   PROFILE_INCLUDE_METAINF_SERVICES := \
   307     $(PROFILE_1_INCLUDE_METAINF_SERVICES) \
   307       $(PROFILE_1_INCLUDE_METAINF_SERVICES) \
   308     $(PROFILE_2_INCLUDE_METAINF_SERVICES)
   308       $(PROFILE_2_INCLUDE_METAINF_SERVICES)
   309 endif
   309 endif
   310 ifeq ($(PROFILE), profile_3)
   310 ifeq ($(PROFILE), profile_3)
   311   RT_JAR_EXCLUDES += \
   311   RT_JAR_EXCLUDES += \
   312     $(call class_list, $(PROFILE_3_RTJAR_EXCLUDE_TYPES)) \
   312       $(call class_list, $(PROFILE_3_RTJAR_EXCLUDE_TYPES)) \
   313     $(FULL_JRE_RTJAR_INCLUDE_PACKAGES) \
   313       $(FULL_JRE_RTJAR_INCLUDE_PACKAGES) \
   314     $(call class_list, $(FULL_JRE_RTJAR_INCLUDE_TYPES))
   314       $(call class_list, $(FULL_JRE_RTJAR_INCLUDE_TYPES))
   315   RT_JAR_INCLUDE_TYPES := \
   315   RT_JAR_INCLUDE_TYPES := \
   316 	$(call class_list, $(PROFILE_1_RTJAR_INCLUDE_TYPES)) \
   316       $(call class_list, $(PROFILE_1_RTJAR_INCLUDE_TYPES)) \
   317 	$(call class_list, $(PROFILE_2_RTJAR_INCLUDE_TYPES)) \
   317       $(call class_list, $(PROFILE_2_RTJAR_INCLUDE_TYPES)) \
   318 	$(call class_list, $(PROFILE_3_RTJAR_INCLUDE_TYPES))
   318       $(call class_list, $(PROFILE_3_RTJAR_INCLUDE_TYPES))
   319   PROFILE_INCLUDE_METAINF_SERVICES := \
   319   PROFILE_INCLUDE_METAINF_SERVICES := \
   320     $(PROFILE_1_INCLUDE_METAINF_SERVICES) \
   320       $(PROFILE_1_INCLUDE_METAINF_SERVICES) \
   321     $(PROFILE_2_INCLUDE_METAINF_SERVICES) \
   321       $(PROFILE_2_INCLUDE_METAINF_SERVICES) \
   322     $(PROFILE_3_INCLUDE_METAINF_SERVICES)
   322       $(PROFILE_3_INCLUDE_METAINF_SERVICES)
   323 endif
   323 endif
   324 
   324 
   325 # Filter out non-OpenJDK services
   325 # Filter out non-OpenJDK services
   326 ifdef OPENJDK
   326 ifdef OPENJDK
   327   EXCLUDED_SERVICES := META-INF/services/javax.script.ScriptEngineFactory 
   327   EXCLUDED_SERVICES := META-INF/services/javax.script.ScriptEngineFactory
   328   PROFILE_INCLUDE_METAINF_SERVICES := $(filter-out $(EXCLUDED_SERVICES),$(PROFILE_INCLUDE_METAINF_SERVICES))
   328   PROFILE_INCLUDE_METAINF_SERVICES := $(filter-out $(EXCLUDED_SERVICES), $(PROFILE_INCLUDE_METAINF_SERVICES))
   329 endif
   329 endif
   330 
   330 
   331 
   331 
   332 endif # profile
   332 endif # profile
   333