blob: f88823fd053478bfaf04e8bb959cb8fd3ca1a2d9 [file] [log] [blame]
Paul Duffinbb7f1ac2021-03-29 22:18:45 +01001// Copyright 2021 Google Inc. All rights reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package java
16
17import (
Paul Duffin6a766452021-04-12 14:15:22 +010018 "fmt"
19
Paul Duffinbb7f1ac2021-03-29 22:18:45 +010020 "android/soong/android"
21 "android/soong/dexpreopt"
22)
23
24func init() {
25 registerPlatformBootclasspathBuildComponents(android.InitRegistrationContext)
26}
27
28func registerPlatformBootclasspathBuildComponents(ctx android.RegistrationContext) {
Paul Duffine3ecce62021-04-29 10:34:11 +010029 ctx.RegisterSingletonModuleType("platform_bootclasspath", platformBootclasspathFactory)
Paul Duffinbb7f1ac2021-03-29 22:18:45 +010030}
31
Paul Duffin01b463b2021-04-26 20:05:39 +010032// The tags used for the dependencies between the platform bootclasspath and any configured boot
33// jars.
34var (
35 platformBootclasspathArtBootJarDepTag = bootclasspathDependencyTag{name: "art-boot-jar"}
36 platformBootclasspathNonUpdatableBootJarDepTag = bootclasspathDependencyTag{name: "non-updatable-boot-jar"}
37 platformBootclasspathUpdatableBootJarDepTag = bootclasspathDependencyTag{name: "updatable-boot-jar"}
38)
Paul Duffinb432df92021-03-22 22:09:42 +000039
Paul Duffinbb7f1ac2021-03-29 22:18:45 +010040type platformBootclasspathModule struct {
Paul Duffine3ecce62021-04-29 10:34:11 +010041 android.SingletonModuleBase
Artur Satayev97259dc2021-04-07 15:17:14 +010042 ClasspathFragmentBase
Paul Duffinb432df92021-03-22 22:09:42 +000043
Paul Duffin62d8c3b2021-04-07 20:35:11 +010044 properties platformBootclasspathProperties
45
Paul Duffinb432df92021-03-22 22:09:42 +000046 // The apex:module pairs obtained from the configured modules.
47 //
48 // Currently only for testing.
49 configuredModules []android.Module
Paul Duffin62d8c3b2021-04-07 20:35:11 +010050
51 // The apex:module pairs obtained from the fragments.
52 //
53 // Currently only for testing.
54 fragments []android.Module
Paul Duffin6a766452021-04-12 14:15:22 +010055
56 // Path to the monolithic hiddenapi-flags.csv file.
Paul Duffin0b659862021-04-13 13:02:29 +010057 hiddenAPIFlagsCSV android.OutputPath
Paul Duffin6a766452021-04-12 14:15:22 +010058
59 // Path to the monolithic hiddenapi-index.csv file.
Paul Duffin0b659862021-04-13 13:02:29 +010060 hiddenAPIIndexCSV android.OutputPath
Paul Duffin6a766452021-04-12 14:15:22 +010061
62 // Path to the monolithic hiddenapi-unsupported.csv file.
Paul Duffin0b659862021-04-13 13:02:29 +010063 hiddenAPIMetadataCSV android.OutputPath
Paul Duffin62d8c3b2021-04-07 20:35:11 +010064}
65
Paul Duffin62d8c3b2021-04-07 20:35:11 +010066type platformBootclasspathProperties struct {
Paul Duffinb67d8782021-04-22 11:49:41 +010067 BootclasspathFragmentsDepsProperties
Paul Duffin702210b2021-04-08 20:12:41 +010068
Paul Duffin46169772021-04-14 15:01:56 +010069 Hidden_api HiddenAPIFlagFileProperties
Paul Duffinbb7f1ac2021-03-29 22:18:45 +010070}
71
Paul Duffine3ecce62021-04-29 10:34:11 +010072func platformBootclasspathFactory() android.SingletonModule {
Paul Duffinbb7f1ac2021-03-29 22:18:45 +010073 m := &platformBootclasspathModule{}
Paul Duffin62d8c3b2021-04-07 20:35:11 +010074 m.AddProperties(&m.properties)
Artur Satayev97259dc2021-04-07 15:17:14 +010075 // TODO(satayev): split systemserver and apex jars into separate configs.
76 initClasspathFragment(m)
Paul Duffinbb7f1ac2021-03-29 22:18:45 +010077 android.InitAndroidArchModule(m, android.DeviceSupported, android.MultilibCommon)
78 return m
79}
80
Paul Duffin6a766452021-04-12 14:15:22 +010081var _ android.OutputFileProducer = (*platformBootclasspathModule)(nil)
82
Artur Satayev97259dc2021-04-07 15:17:14 +010083func (b *platformBootclasspathModule) AndroidMkEntries() (entries []android.AndroidMkEntries) {
84 entries = append(entries, android.AndroidMkEntries{
85 Class: "FAKE",
86 // Need at least one output file in order for this to take effect.
87 OutputFile: android.OptionalPathForPath(b.hiddenAPIFlagsCSV),
88 Include: "$(BUILD_PHONY_PACKAGE)",
89 })
90 entries = append(entries, b.classpathFragmentBase().getAndroidMkEntries()...)
91 return
Paul Duffin6a766452021-04-12 14:15:22 +010092}
93
94// Make the hidden API files available from the platform-bootclasspath module.
95func (b *platformBootclasspathModule) OutputFiles(tag string) (android.Paths, error) {
96 switch tag {
97 case "hiddenapi-flags.csv":
98 return android.Paths{b.hiddenAPIFlagsCSV}, nil
99 case "hiddenapi-index.csv":
100 return android.Paths{b.hiddenAPIIndexCSV}, nil
101 case "hiddenapi-metadata.csv":
102 return android.Paths{b.hiddenAPIMetadataCSV}, nil
103 }
104
105 return nil, fmt.Errorf("unknown tag %s", tag)
106}
107
Paul Duffinbb7f1ac2021-03-29 22:18:45 +0100108func (b *platformBootclasspathModule) DepsMutator(ctx android.BottomUpMutatorContext) {
Paul Duffin74431d52021-04-21 14:10:42 +0100109 b.hiddenAPIDepsMutator(ctx)
110
Paul Duffinbb7f1ac2021-03-29 22:18:45 +0100111 if SkipDexpreoptBootJars(ctx) {
112 return
113 }
114
115 // Add a dependency onto the dex2oat tool which is needed for creating the boot image. The
116 // path is retrieved from the dependency by GetGlobalSoongConfig(ctx).
117 dexpreopt.RegisterToolDeps(ctx)
118}
119
Paul Duffin74431d52021-04-21 14:10:42 +0100120func (b *platformBootclasspathModule) hiddenAPIDepsMutator(ctx android.BottomUpMutatorContext) {
121 if ctx.Config().IsEnvTrue("UNSAFE_DISABLE_HIDDENAPI_FLAGS") {
122 return
123 }
124
125 // Add dependencies onto the stub lib modules.
126 sdkKindToStubLibModules := hiddenAPIComputeMonolithicStubLibModules(ctx.Config())
127 hiddenAPIAddStubLibDependencies(ctx, sdkKindToStubLibModules)
128}
129
Paul Duffin4994d262021-04-22 12:08:59 +0100130func (b *platformBootclasspathModule) BootclasspathDepsMutator(ctx android.BottomUpMutatorContext) {
131 // Add dependencies on all the modules configured in the "art" boot image.
132 artImageConfig := genBootImageConfigs(ctx)[artBootImageName]
Paul Duffin01b463b2021-04-26 20:05:39 +0100133 addDependenciesOntoBootImageModules(ctx, artImageConfig.modules, platformBootclasspathArtBootJarDepTag)
Paul Duffinb432df92021-03-22 22:09:42 +0000134
Paul Duffin01b463b2021-04-26 20:05:39 +0100135 // Add dependencies on all the non-updatable module configured in the "boot" boot image. That does
136 // not include modules configured in the "art" boot image.
Paul Duffin4994d262021-04-22 12:08:59 +0100137 bootImageConfig := b.getImageConfig(ctx)
Paul Duffin01b463b2021-04-26 20:05:39 +0100138 addDependenciesOntoBootImageModules(ctx, bootImageConfig.modules, platformBootclasspathNonUpdatableBootJarDepTag)
Paul Duffinb432df92021-03-22 22:09:42 +0000139
Paul Duffin4994d262021-04-22 12:08:59 +0100140 // Add dependencies on all the updatable modules.
141 updatableModules := dexpreopt.GetGlobalConfig(ctx).UpdatableBootJars
Paul Duffin01b463b2021-04-26 20:05:39 +0100142 addDependenciesOntoBootImageModules(ctx, updatableModules, platformBootclasspathUpdatableBootJarDepTag)
Paul Duffin62d8c3b2021-04-07 20:35:11 +0100143
Paul Duffin4994d262021-04-22 12:08:59 +0100144 // Add dependencies on all the fragments.
145 b.properties.BootclasspathFragmentsDepsProperties.addDependenciesOntoFragments(ctx)
Paul Duffinb432df92021-03-22 22:09:42 +0000146}
147
Paul Duffin01b463b2021-04-26 20:05:39 +0100148func addDependenciesOntoBootImageModules(ctx android.BottomUpMutatorContext, modules android.ConfiguredJarList, tag bootclasspathDependencyTag) {
Paul Duffinb432df92021-03-22 22:09:42 +0000149 for i := 0; i < modules.Len(); i++ {
150 apex := modules.Apex(i)
151 name := modules.Jar(i)
152
Paul Duffin01b463b2021-04-26 20:05:39 +0100153 addDependencyOntoApexModulePair(ctx, apex, name, tag)
Paul Duffinb432df92021-03-22 22:09:42 +0000154 }
155}
156
Paul Duffine3ecce62021-04-29 10:34:11 +0100157// GenerateSingletonBuildActions does nothing and must never do anything.
158//
159// This module only implements android.SingletonModule so that it can implement
160// android.SingletonMakeVarsProvider.
161func (b *platformBootclasspathModule) GenerateSingletonBuildActions(android.SingletonContext) {
162 // Keep empty
163}
164
165func (d *platformBootclasspathModule) MakeVars(ctx android.MakeVarsContext) {
Paul Duffin12d29b72021-04-29 13:50:01 +0100166 d.generateHiddenApiMakeVars(ctx)
Paul Duffine3ecce62021-04-29 10:34:11 +0100167}
168
Paul Duffinbb7f1ac2021-03-29 22:18:45 +0100169func (b *platformBootclasspathModule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
Artur Satayev97259dc2021-04-07 15:17:14 +0100170 b.classpathFragmentBase().generateAndroidBuildActions(ctx)
171
Paul Duffin01b463b2021-04-26 20:05:39 +0100172 // Gather all the dependencies from the art, updatable and non-updatable boot jars.
173 artModules := gatherApexModulePairDepsWithTag(ctx, platformBootclasspathArtBootJarDepTag)
174 nonUpdatableModules := gatherApexModulePairDepsWithTag(ctx, platformBootclasspathNonUpdatableBootJarDepTag)
175 updatableModules := gatherApexModulePairDepsWithTag(ctx, platformBootclasspathUpdatableBootJarDepTag)
176
177 // Concatenate them all, in order as they would appear on the bootclasspath.
178 var allModules []android.Module
179 allModules = append(allModules, artModules...)
180 allModules = append(allModules, nonUpdatableModules...)
181 allModules = append(allModules, updatableModules...)
182 b.configuredModules = allModules
183
184 // Gather all the fragments dependencies.
Paul Duffin9bacf562021-04-28 21:16:02 +0100185 b.fragments = gatherApexModulePairDepsWithTag(ctx, bootclasspathFragmentDepTag)
Paul Duffinb432df92021-03-22 22:09:42 +0000186
Paul Duffinf23bc472021-04-27 12:42:20 +0100187 // Check the configuration of the boot modules.
188 // ART modules are checked by the art-bootclasspath-fragment.
189 b.checkNonUpdatableModules(ctx, nonUpdatableModules)
190 b.checkUpdatableModules(ctx, updatableModules)
191
Paul Duffin9b381ef2021-04-08 23:01:37 +0100192 b.generateHiddenAPIBuildActions(ctx, b.configuredModules, b.fragments)
Paul Duffin702210b2021-04-08 20:12:41 +0100193
Paul Duffinbb7f1ac2021-03-29 22:18:45 +0100194 // Nothing to do if skipping the dexpreopt of boot image jars.
195 if SkipDexpreoptBootJars(ctx) {
196 return
197 }
198
Paul Duffin4c094422021-04-26 20:10:48 +0100199 b.generateBootImageBuildActions(ctx, updatableModules)
Paul Duffinbb7f1ac2021-03-29 22:18:45 +0100200}
201
Paul Duffinf23bc472021-04-27 12:42:20 +0100202// checkNonUpdatableModules ensures that the non-updatable modules supplied are not part of an
203// updatable module.
204func (b *platformBootclasspathModule) checkNonUpdatableModules(ctx android.ModuleContext, modules []android.Module) {
205 for _, m := range modules {
206 apexInfo := ctx.OtherModuleProvider(m, android.ApexInfoProvider).(android.ApexInfo)
207 fromUpdatableApex := apexInfo.Updatable
208 if fromUpdatableApex {
209 // error: this jar is part of an updatable apex
210 ctx.ModuleErrorf("module %q from updatable apexes %q is not allowed in the framework boot image", ctx.OtherModuleName(m), apexInfo.InApexes)
211 } else {
212 // ok: this jar is part of the platform or a non-updatable apex
213 }
214 }
215}
216
217// checkUpdatableModules ensures that the updatable modules supplied are not from the platform.
218func (b *platformBootclasspathModule) checkUpdatableModules(ctx android.ModuleContext, modules []android.Module) {
219 for _, m := range modules {
220 apexInfo := ctx.OtherModuleProvider(m, android.ApexInfoProvider).(android.ApexInfo)
221 fromUpdatableApex := apexInfo.Updatable
222 if fromUpdatableApex {
223 // ok: this jar is part of an updatable apex
224 } else {
225 name := ctx.OtherModuleName(m)
226 if apexInfo.IsForPlatform() {
227 // error: this jar is part of the platform
228 ctx.ModuleErrorf("module %q from platform is not allowed in the updatable boot jars list", name)
229 } else {
230 // TODO(b/177892522): Treat this as an error.
231 // Cannot do that at the moment because framework-wifi and framework-tethering are in the
232 // PRODUCT_UPDATABLE_BOOT_JARS but not marked as updatable in AOSP.
233 }
234 }
235 }
236}
237
Paul Duffinbb7f1ac2021-03-29 22:18:45 +0100238func (b *platformBootclasspathModule) getImageConfig(ctx android.EarlyModuleContext) *bootImageConfig {
239 return defaultBootImageConfig(ctx)
240}
Paul Duffin702210b2021-04-08 20:12:41 +0100241
242// generateHiddenAPIBuildActions generates all the hidden API related build rules.
Paul Duffin9b381ef2021-04-08 23:01:37 +0100243func (b *platformBootclasspathModule) generateHiddenAPIBuildActions(ctx android.ModuleContext, modules []android.Module, fragments []android.Module) {
Paul Duffin702210b2021-04-08 20:12:41 +0100244
Paul Duffin90b8ad32021-04-13 12:25:01 +0100245 // Save the paths to the monolithic files for retrieval via OutputFiles().
246 b.hiddenAPIFlagsCSV = hiddenAPISingletonPaths(ctx).flags
247 b.hiddenAPIIndexCSV = hiddenAPISingletonPaths(ctx).index
248 b.hiddenAPIMetadataCSV = hiddenAPISingletonPaths(ctx).metadata
Paul Duffin6a766452021-04-12 14:15:22 +0100249
Paul Duffin0b659862021-04-13 13:02:29 +0100250 // Don't run any hiddenapi rules if UNSAFE_DISABLE_HIDDENAPI_FLAGS=true. This is a performance
251 // optimization that can be used to reduce the incremental build time but as its name suggests it
252 // can be unsafe to use, e.g. when the changes affect anything that goes on the bootclasspath.
Vishnu Nair0dbd02a2021-04-30 00:24:07 +0000253 if ctx.Config().IsEnvTrue("UNSAFE_DISABLE_HIDDENAPI_FLAGS") {
Paul Duffin0b659862021-04-13 13:02:29 +0100254 paths := android.OutputPaths{b.hiddenAPIFlagsCSV, b.hiddenAPIIndexCSV, b.hiddenAPIMetadataCSV}
255 for _, path := range paths {
256 ctx.Build(pctx, android.BuildParams{
257 Rule: android.Touch,
258 Output: path,
259 })
260 }
261 return
262 }
263
Paul Duffin1ba24672021-04-12 23:26:14 +0100264 hiddenAPISupportingModules := []hiddenAPISupportingModule{}
Paul Duffin702210b2021-04-08 20:12:41 +0100265 for _, module := range modules {
Paul Duffin1ba24672021-04-12 23:26:14 +0100266 if h, ok := module.(hiddenAPISupportingModule); ok {
267 if h.bootDexJar() == nil {
268 ctx.ModuleErrorf("module %s does not provide a bootDexJar file", module)
Paul Duffin702210b2021-04-08 20:12:41 +0100269 }
Paul Duffin1ba24672021-04-12 23:26:14 +0100270 if h.flagsCSV() == nil {
271 ctx.ModuleErrorf("module %s does not provide a flagsCSV file", module)
272 }
273 if h.indexCSV() == nil {
274 ctx.ModuleErrorf("module %s does not provide an indexCSV file", module)
275 }
276 if h.metadataCSV() == nil {
277 ctx.ModuleErrorf("module %s does not provide a metadataCSV file", module)
278 }
279
280 if ctx.Failed() {
281 continue
282 }
283
284 hiddenAPISupportingModules = append(hiddenAPISupportingModules, h)
Paul Duffin702210b2021-04-08 20:12:41 +0100285 } else {
Paul Duffin1ba24672021-04-12 23:26:14 +0100286 ctx.ModuleErrorf("module %s of type %s does not support hidden API processing", module, ctx.OtherModuleType(module))
Paul Duffin702210b2021-04-08 20:12:41 +0100287 }
288 }
289
Paul Duffin1ba24672021-04-12 23:26:14 +0100290 moduleSpecificFlagsPaths := android.Paths{}
291 for _, module := range hiddenAPISupportingModules {
292 moduleSpecificFlagsPaths = append(moduleSpecificFlagsPaths, module.flagsCSV())
293 }
294
Paul Duffin9b381ef2021-04-08 23:01:37 +0100295 flagFileInfo := b.properties.Hidden_api.hiddenAPIFlagFileInfo(ctx)
296 for _, fragment := range fragments {
297 if ctx.OtherModuleHasProvider(fragment, hiddenAPIFlagFileInfoProvider) {
298 info := ctx.OtherModuleProvider(fragment, hiddenAPIFlagFileInfoProvider).(hiddenAPIFlagFileInfo)
299 flagFileInfo.append(info)
300 }
301 }
302
303 // Store the information for testing.
304 ctx.SetProvider(hiddenAPIFlagFileInfoProvider, flagFileInfo)
Paul Duffin702210b2021-04-08 20:12:41 +0100305
306 outputPath := hiddenAPISingletonPaths(ctx).flags
307 baseFlagsPath := hiddenAPISingletonPaths(ctx).stubFlags
Paul Duffin9b381ef2021-04-08 23:01:37 +0100308 ruleToGenerateHiddenApiFlags(ctx, outputPath, baseFlagsPath, moduleSpecificFlagsPaths, flagFileInfo)
Paul Duffin00b2bfd2021-04-12 17:24:36 +0100309
Paul Duffin74431d52021-04-21 14:10:42 +0100310 b.generateHiddenAPIStubFlagsRules(ctx, hiddenAPISupportingModules)
Paul Duffin00b2bfd2021-04-12 17:24:36 +0100311 b.generateHiddenAPIIndexRules(ctx, hiddenAPISupportingModules)
Paul Duffin85dee5d2021-04-13 00:14:38 +0100312 b.generatedHiddenAPIMetadataRules(ctx, hiddenAPISupportingModules)
Paul Duffin00b2bfd2021-04-12 17:24:36 +0100313}
314
Paul Duffin74431d52021-04-21 14:10:42 +0100315func (b *platformBootclasspathModule) generateHiddenAPIStubFlagsRules(ctx android.ModuleContext, modules []hiddenAPISupportingModule) {
316 bootDexJars := android.Paths{}
317 for _, module := range modules {
318 bootDexJars = append(bootDexJars, module.bootDexJar())
319 }
320
321 sdkKindToStubPaths := hiddenAPIGatherStubLibDexJarPaths(ctx)
322
323 outputPath := hiddenAPISingletonPaths(ctx).stubFlags
324 rule := ruleToGenerateHiddenAPIStubFlagsFile(ctx, outputPath, bootDexJars, sdkKindToStubPaths)
325 rule.Build("platform-bootclasspath-monolithic-hiddenapi-stub-flags", "monolithic hidden API stub flags")
326}
327
Paul Duffin00b2bfd2021-04-12 17:24:36 +0100328func (b *platformBootclasspathModule) generateHiddenAPIIndexRules(ctx android.ModuleContext, modules []hiddenAPISupportingModule) {
329 indexes := android.Paths{}
330 for _, module := range modules {
331 indexes = append(indexes, module.indexCSV())
332 }
333
334 rule := android.NewRuleBuilder(pctx, ctx)
335 rule.Command().
336 BuiltTool("merge_csv").
337 Flag("--key_field signature").
338 FlagWithArg("--header=", "signature,file,startline,startcol,endline,endcol,properties").
339 FlagWithOutput("--output=", hiddenAPISingletonPaths(ctx).index).
340 Inputs(indexes)
341 rule.Build("platform-bootclasspath-monolithic-hiddenapi-index", "monolithic hidden API index")
Paul Duffin702210b2021-04-08 20:12:41 +0100342}
Paul Duffin85dee5d2021-04-13 00:14:38 +0100343
344func (b *platformBootclasspathModule) generatedHiddenAPIMetadataRules(ctx android.ModuleContext, modules []hiddenAPISupportingModule) {
345 metadataCSVFiles := android.Paths{}
346 for _, module := range modules {
347 metadataCSVFiles = append(metadataCSVFiles, module.metadataCSV())
348 }
349
350 rule := android.NewRuleBuilder(pctx, ctx)
351
352 outputPath := hiddenAPISingletonPaths(ctx).metadata
353
354 rule.Command().
355 BuiltTool("merge_csv").
356 Flag("--key_field signature").
357 FlagWithOutput("--output=", outputPath).
358 Inputs(metadataCSVFiles)
359
360 rule.Build("platform-bootclasspath-monolithic-hiddenapi-metadata", "monolithic hidden API metadata")
361}
Paul Duffinad19d382021-04-26 16:44:00 +0100362
Paul Duffin12d29b72021-04-29 13:50:01 +0100363// generateHiddenApiMakeVars generates make variables needed by hidden API related make rules, e.g.
364// veridex and run-appcompat.
365func (b *platformBootclasspathModule) generateHiddenApiMakeVars(ctx android.MakeVarsContext) {
366 if ctx.Config().IsEnvTrue("UNSAFE_DISABLE_HIDDENAPI_FLAGS") {
367 return
368 }
369 // INTERNAL_PLATFORM_HIDDENAPI_FLAGS is used by Make rules in art/ and cts/.
370 ctx.Strict("INTERNAL_PLATFORM_HIDDENAPI_FLAGS", b.hiddenAPIFlagsCSV.String())
371}
372
Paul Duffinad19d382021-04-26 16:44:00 +0100373// generateBootImageBuildActions generates ninja rules related to the boot image creation.
Paul Duffin4c094422021-04-26 20:10:48 +0100374func (b *platformBootclasspathModule) generateBootImageBuildActions(ctx android.ModuleContext, updatableModules []android.Module) {
Paul Duffinad19d382021-04-26 16:44:00 +0100375 // Force the GlobalSoongConfig to be created and cached for use by the dex_bootjars
376 // GenerateSingletonBuildActions method as it cannot create it for itself.
377 dexpreopt.GetGlobalSoongConfig(ctx)
378
379 imageConfig := b.getImageConfig(ctx)
380 if imageConfig == nil {
381 return
382 }
383
384 global := dexpreopt.GetGlobalConfig(ctx)
385 if !shouldBuildBootImages(ctx.Config(), global) {
386 return
387 }
388
389 // Generate the framework profile rule
390 bootFrameworkProfileRule(ctx, imageConfig)
Paul Duffin4c094422021-04-26 20:10:48 +0100391
392 // Generate the updatable bootclasspath packages rule.
393 generateUpdatableBcpPackagesRule(ctx, imageConfig, updatableModules)
Paul Duffinf7a55922021-04-26 23:09:15 +0100394
395 dumpOatRules(ctx, imageConfig)
Paul Duffinad19d382021-04-26 16:44:00 +0100396}