blob: a93d180481b2803960f68bc4f174d6c30184af7b [file] [log] [blame]
Colin Cross800fe132019-02-11 14:21:24 -08001// Copyright 2019 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 (
18 "path/filepath"
19 "strings"
20
21 "android/soong/android"
22 "android/soong/dexpreopt"
23
24 "github.com/google/blueprint/pathtools"
25 "github.com/google/blueprint/proptools"
26)
27
28func init() {
29 android.RegisterSingletonType("dex_bootjars", dexpreoptBootJarsFactory)
30}
31
32// The image "location" is a symbolic path that with multiarchitecture
33// support doesn't really exist on the device. Typically it is
34// /system/framework/boot.art and should be the same for all supported
35// architectures on the device. The concrete architecture specific
36// content actually ends up in a "filename" that contains an
37// architecture specific directory name such as arm, arm64, mips,
38// mips64, x86, x86_64.
39//
40// Here are some example values for an x86_64 / x86 configuration:
41//
42// bootImages["x86_64"] = "out/soong/generic_x86_64/dex_bootjars/system/framework/x86_64/boot.art"
43// dexpreopt.PathToLocation(bootImages["x86_64"], "x86_64") = "out/soong/generic_x86_64/dex_bootjars/system/framework/boot.art"
44//
45// bootImages["x86"] = "out/soong/generic_x86_64/dex_bootjars/system/framework/x86/boot.art"
46// dexpreopt.PathToLocation(bootImages["x86"])= "out/soong/generic_x86_64/dex_bootjars/system/framework/boot.art"
47//
48// The location is passed as an argument to the ART tools like dex2oat instead of the real path. The ART tools
49// will then reconstruct the real path, so the rules must have a dependency on the real path.
50
Colin Cross44df5812019-02-15 23:06:46 -080051type bootImageConfig struct {
52 name string
53 modules []string
54 dexLocations []string
55 dexPaths android.WritablePaths
56 dir android.OutputPath
57 symbolsDir android.OutputPath
58 images map[android.ArchType]android.OutputPath
Colin Cross800fe132019-02-11 14:21:24 -080059}
60
Colin Cross44df5812019-02-15 23:06:46 -080061type bootImage struct {
62 bootImageConfig
Colin Cross800fe132019-02-11 14:21:24 -080063
Colin Cross44df5812019-02-15 23:06:46 -080064 installs map[android.ArchType]android.RuleBuilderInstalls
65 vdexInstalls map[android.ArchType]android.RuleBuilderInstalls
66 unstrippedInstalls map[android.ArchType]android.RuleBuilderInstalls
Colin Cross800fe132019-02-11 14:21:24 -080067
Colin Cross44df5812019-02-15 23:06:46 -080068 profileInstalls android.RuleBuilderInstalls
69}
Colin Cross800fe132019-02-11 14:21:24 -080070
Colin Cross44df5812019-02-15 23:06:46 -080071func newBootImage(ctx android.PathContext, config bootImageConfig) *bootImage {
72 image := &bootImage{
Nicolas Geoffray72892f12019-02-22 15:34:40 +000073 bootImageConfig: config,
Colin Cross800fe132019-02-11 14:21:24 -080074
Colin Cross44df5812019-02-15 23:06:46 -080075 installs: make(map[android.ArchType]android.RuleBuilderInstalls),
76 vdexInstalls: make(map[android.ArchType]android.RuleBuilderInstalls),
77 unstrippedInstalls: make(map[android.ArchType]android.RuleBuilderInstalls),
78 }
Colin Cross800fe132019-02-11 14:21:24 -080079
Colin Cross44df5812019-02-15 23:06:46 -080080 return image
Colin Cross800fe132019-02-11 14:21:24 -080081}
82
83func concat(lists ...[]string) []string {
84 var size int
85 for _, l := range lists {
86 size += len(l)
87 }
88 ret := make([]string, 0, size)
89 for _, l := range lists {
90 ret = append(ret, l...)
91 }
92 return ret
93}
94
Colin Cross800fe132019-02-11 14:21:24 -080095func dexpreoptBootJarsFactory() android.Singleton {
Colin Cross44df5812019-02-15 23:06:46 -080096 return &dexpreoptBootJars{}
Colin Cross800fe132019-02-11 14:21:24 -080097}
98
99func skipDexpreoptBootJars(ctx android.PathContext) bool {
100 if ctx.Config().UnbundledBuild() {
101 return true
102 }
103
104 if len(ctx.Config().Targets[android.Android]) == 0 {
105 // Host-only build
106 return true
107 }
108
109 return false
110}
111
Colin Cross44df5812019-02-15 23:06:46 -0800112type dexpreoptBootJars struct {
113 defaultBootImage *bootImage
Nicolas Geoffray72892f12019-02-22 15:34:40 +0000114 otherImages []*bootImage
Colin Cross44df5812019-02-15 23:06:46 -0800115}
Colin Cross800fe132019-02-11 14:21:24 -0800116
117// dexpreoptBoot singleton rules
Colin Cross44df5812019-02-15 23:06:46 -0800118func (d *dexpreoptBootJars) GenerateBuildActions(ctx android.SingletonContext) {
Colin Cross800fe132019-02-11 14:21:24 -0800119 if skipDexpreoptBootJars(ctx) {
120 return
121 }
122
Colin Cross44df5812019-02-15 23:06:46 -0800123 global := dexpreoptGlobalConfig(ctx)
Colin Cross800fe132019-02-11 14:21:24 -0800124
125 // Skip recompiling the boot image for the second sanitization phase. We'll get separate paths
126 // and invalidate first-stage artifacts which are crucial to SANITIZE_LITE builds.
127 // Note: this is technically incorrect. Compiled code contains stack checks which may depend
128 // on ASAN settings.
129 if len(ctx.Config().SanitizeDevice()) == 1 &&
130 ctx.Config().SanitizeDevice()[0] == "address" &&
Colin Cross44df5812019-02-15 23:06:46 -0800131 global.SanitizeLite {
Colin Cross800fe132019-02-11 14:21:24 -0800132 return
133 }
134
Nicolas Geoffray72892f12019-02-22 15:34:40 +0000135 // Always create the default boot image first, to get a unique profile rule for all images.
Colin Cross44df5812019-02-15 23:06:46 -0800136 d.defaultBootImage = buildBootImage(ctx, defaultBootImageConfig(ctx))
Nicolas Geoffray72892f12019-02-22 15:34:40 +0000137 if global.GenerateApexImage {
138 d.otherImages = append(d.otherImages, buildBootImage(ctx, apexBootImageConfig(ctx)))
139 }
Colin Cross44df5812019-02-15 23:06:46 -0800140}
141
142// buildBootImage takes a bootImageConfig, creates rules to build it, and returns a *bootImage.
143func buildBootImage(ctx android.SingletonContext, config bootImageConfig) *bootImage {
144 global := dexpreoptGlobalConfig(ctx)
145
146 image := newBootImage(ctx, config)
147
148 bootDexJars := make(android.Paths, len(image.modules))
Colin Cross800fe132019-02-11 14:21:24 -0800149
150 ctx.VisitAllModules(func(module android.Module) {
151 // Collect dex jar paths for the modules listed above.
152 if j, ok := module.(Dependency); ok {
153 name := ctx.ModuleName(module)
Colin Cross44df5812019-02-15 23:06:46 -0800154 if i := android.IndexList(name, image.modules); i != -1 {
Colin Cross800fe132019-02-11 14:21:24 -0800155 bootDexJars[i] = j.DexJar()
156 }
157 }
158 })
159
160 var missingDeps []string
161 // Ensure all modules were converted to paths
162 for i := range bootDexJars {
163 if bootDexJars[i] == nil {
164 if ctx.Config().AllowMissingDependencies() {
Colin Cross44df5812019-02-15 23:06:46 -0800165 missingDeps = append(missingDeps, image.modules[i])
Colin Cross800fe132019-02-11 14:21:24 -0800166 bootDexJars[i] = android.PathForOutput(ctx, "missing")
167 } else {
168 ctx.Errorf("failed to find dex jar path for module %q",
Colin Cross44df5812019-02-15 23:06:46 -0800169 image.modules[i])
Colin Cross800fe132019-02-11 14:21:24 -0800170 }
171 }
172 }
173
174 // The path to bootclasspath dex files needs to be known at module GenerateAndroidBuildAction time, before
175 // the bootclasspath modules have been compiled. Copy the dex jars there so the module rules that have
176 // already been set up can find them.
177 for i := range bootDexJars {
178 ctx.Build(pctx, android.BuildParams{
179 Rule: android.Cp,
180 Input: bootDexJars[i],
Colin Cross44df5812019-02-15 23:06:46 -0800181 Output: image.dexPaths[i],
Colin Cross800fe132019-02-11 14:21:24 -0800182 })
183 }
184
Colin Cross44df5812019-02-15 23:06:46 -0800185 profile := bootImageProfileRule(ctx, image, missingDeps)
Colin Cross800fe132019-02-11 14:21:24 -0800186
Colin Cross44df5812019-02-15 23:06:46 -0800187 if !global.DisablePreopt {
Colin Cross800fe132019-02-11 14:21:24 -0800188 targets := ctx.Config().Targets[android.Android]
189 if ctx.Config().SecondArchIsTranslated() {
190 targets = targets[:1]
191 }
192
193 for _, target := range targets {
Colin Cross44df5812019-02-15 23:06:46 -0800194 buildBootImageRuleForArch(ctx, image, target.Arch.ArchType, profile, missingDeps)
Colin Cross800fe132019-02-11 14:21:24 -0800195 }
196 }
Colin Cross44df5812019-02-15 23:06:46 -0800197
198 return image
Colin Cross800fe132019-02-11 14:21:24 -0800199}
200
Colin Cross44df5812019-02-15 23:06:46 -0800201func buildBootImageRuleForArch(ctx android.SingletonContext, image *bootImage,
Colin Cross800fe132019-02-11 14:21:24 -0800202 arch android.ArchType, profile android.Path, missingDeps []string) {
203
Colin Cross44df5812019-02-15 23:06:46 -0800204 global := dexpreoptGlobalConfig(ctx)
205
206 symbolsDir := image.symbolsDir.Join(ctx, "system/framework", arch.String())
Nicolas Geoffray72892f12019-02-22 15:34:40 +0000207 symbolsFile := symbolsDir.Join(ctx, image.name+".oat")
Colin Cross44df5812019-02-15 23:06:46 -0800208 outputDir := image.dir.Join(ctx, "system/framework", arch.String())
209 outputPath := image.images[arch]
Colin Cross69f59a32019-02-15 10:39:37 -0800210 oatLocation := pathtools.ReplaceExtension(dexpreopt.PathToLocation(outputPath, arch), "oat")
Colin Cross800fe132019-02-11 14:21:24 -0800211
212 rule := android.NewRuleBuilder()
213 rule.MissingDeps(missingDeps)
214
215 rule.Command().Text("mkdir").Flag("-p").Flag(symbolsDir.String())
216 rule.Command().Text("rm").Flag("-f").
217 Flag(symbolsDir.Join(ctx, "*.art").String()).
218 Flag(symbolsDir.Join(ctx, "*.oat").String()).
219 Flag(symbolsDir.Join(ctx, "*.invocation").String())
220 rule.Command().Text("rm").Flag("-f").
221 Flag(outputDir.Join(ctx, "*.art").String()).
222 Flag(outputDir.Join(ctx, "*.oat").String()).
223 Flag(outputDir.Join(ctx, "*.invocation").String())
224
225 cmd := rule.Command()
226
227 extraFlags := ctx.Config().Getenv("ART_BOOT_IMAGE_EXTRA_ARGS")
228 if extraFlags == "" {
229 // Use ANDROID_LOG_TAGS to suppress most logging by default...
230 cmd.Text(`ANDROID_LOG_TAGS="*:e"`)
231 } else {
232 // ...unless the boot image is generated specifically for testing, then allow all logging.
233 cmd.Text(`ANDROID_LOG_TAGS="*:v"`)
234 }
235
236 invocationPath := outputPath.ReplaceExtension(ctx, "invocation")
237
Colin Cross44df5812019-02-15 23:06:46 -0800238 cmd.Tool(global.Tools.Dex2oat).
Colin Cross800fe132019-02-11 14:21:24 -0800239 Flag("--avoid-storing-invocation").
Colin Cross69f59a32019-02-15 10:39:37 -0800240 FlagWithOutput("--write-invocation-to=", invocationPath).ImplicitOutput(invocationPath).
Colin Cross44df5812019-02-15 23:06:46 -0800241 Flag("--runtime-arg").FlagWithArg("-Xms", global.Dex2oatImageXms).
242 Flag("--runtime-arg").FlagWithArg("-Xmx", global.Dex2oatImageXmx)
Colin Cross800fe132019-02-11 14:21:24 -0800243
Colin Cross69f59a32019-02-15 10:39:37 -0800244 if profile != nil {
Colin Cross800fe132019-02-11 14:21:24 -0800245 cmd.FlagWithArg("--compiler-filter=", "speed-profile")
Colin Cross69f59a32019-02-15 10:39:37 -0800246 cmd.FlagWithInput("--profile-file=", profile)
Colin Cross44df5812019-02-15 23:06:46 -0800247 } else if global.PreloadedClasses.Valid() {
248 cmd.FlagWithInput("--image-classes=", global.PreloadedClasses.Path())
Colin Cross800fe132019-02-11 14:21:24 -0800249 }
250
Colin Cross44df5812019-02-15 23:06:46 -0800251 if global.DirtyImageObjects.Valid() {
252 cmd.FlagWithInput("--dirty-image-objects=", global.DirtyImageObjects.Path())
Colin Cross800fe132019-02-11 14:21:24 -0800253 }
254
255 cmd.
Colin Cross44df5812019-02-15 23:06:46 -0800256 FlagForEachInput("--dex-file=", image.dexPaths.Paths()).
257 FlagForEachArg("--dex-location=", image.dexLocations).
Colin Cross800fe132019-02-11 14:21:24 -0800258 Flag("--generate-debug-info").
259 Flag("--generate-build-id").
Colin Cross69f59a32019-02-15 10:39:37 -0800260 FlagWithOutput("--oat-symbols=", symbolsFile).
Colin Cross800fe132019-02-11 14:21:24 -0800261 Flag("--strip").
Colin Cross69f59a32019-02-15 10:39:37 -0800262 FlagWithOutput("--oat-file=", outputPath.ReplaceExtension(ctx, "oat")).
Colin Cross800fe132019-02-11 14:21:24 -0800263 FlagWithArg("--oat-location=", oatLocation).
Colin Cross69f59a32019-02-15 10:39:37 -0800264 FlagWithOutput("--image=", outputPath).
Colin Cross800fe132019-02-11 14:21:24 -0800265 FlagWithArg("--base=", ctx.Config().LibartImgDeviceBaseAddress()).
266 FlagWithArg("--instruction-set=", arch.String()).
Colin Cross44df5812019-02-15 23:06:46 -0800267 FlagWithArg("--instruction-set-variant=", global.CpuVariant[arch]).
268 FlagWithArg("--instruction-set-features=", global.InstructionSetFeatures[arch]).
269 FlagWithArg("--android-root=", global.EmptyDirectory).
Colin Cross800fe132019-02-11 14:21:24 -0800270 FlagWithArg("--no-inline-from=", "core-oj.jar").
271 Flag("--abort-on-hard-verifier-error")
272
Colin Cross44df5812019-02-15 23:06:46 -0800273 if global.BootFlags != "" {
274 cmd.Flag(global.BootFlags)
Colin Cross800fe132019-02-11 14:21:24 -0800275 }
276
277 if extraFlags != "" {
278 cmd.Flag(extraFlags)
279 }
280
281 cmd.Textf(`|| ( echo %s ; false )`, proptools.ShellEscape([]string{failureMessage})[0])
282
283 installDir := filepath.Join("/system/framework", arch.String())
284 vdexInstallDir := filepath.Join("/system/framework")
285
286 var extraFiles android.WritablePaths
287 var vdexInstalls android.RuleBuilderInstalls
288 var unstrippedInstalls android.RuleBuilderInstalls
289
290 // dex preopt on the bootclasspath produces multiple files. The first dex file
Nicolas Geoffray72892f12019-02-22 15:34:40 +0000291 // is converted into to 'name'.art (to match the legacy assumption that 'name'.art
292 // exists), and the rest are converted to 'name'-<jar>.art.
Colin Cross800fe132019-02-11 14:21:24 -0800293 // In addition, each .art file has an associated .oat and .vdex file, and an
294 // unstripped .oat file
Colin Cross44df5812019-02-15 23:06:46 -0800295 for i, m := range image.modules {
296 name := image.name
Colin Cross800fe132019-02-11 14:21:24 -0800297 if i != 0 {
298 name += "-" + m
299 }
300
301 art := outputDir.Join(ctx, name+".art")
302 oat := outputDir.Join(ctx, name+".oat")
303 vdex := outputDir.Join(ctx, name+".vdex")
304 unstrippedOat := symbolsDir.Join(ctx, name+".oat")
305
306 extraFiles = append(extraFiles, art, oat, vdex, unstrippedOat)
307
308 // Install the .oat and .art files.
Colin Cross69f59a32019-02-15 10:39:37 -0800309 rule.Install(art, filepath.Join(installDir, art.Base()))
310 rule.Install(oat, filepath.Join(installDir, oat.Base()))
Colin Cross800fe132019-02-11 14:21:24 -0800311
312 // The vdex files are identical between architectures, install them to a shared location. The Make rules will
313 // only use the install rules for one architecture, and will create symlinks into the architecture-specific
314 // directories.
315 vdexInstalls = append(vdexInstalls,
Colin Cross69f59a32019-02-15 10:39:37 -0800316 android.RuleBuilderInstall{vdex, filepath.Join(vdexInstallDir, vdex.Base())})
Colin Cross800fe132019-02-11 14:21:24 -0800317
318 // Install the unstripped oat files. The Make rules will put these in $(TARGET_OUT_UNSTRIPPED)
319 unstrippedInstalls = append(unstrippedInstalls,
Colin Cross69f59a32019-02-15 10:39:37 -0800320 android.RuleBuilderInstall{unstrippedOat, filepath.Join(installDir, unstrippedOat.Base())})
Colin Cross800fe132019-02-11 14:21:24 -0800321 }
322
Colin Cross69f59a32019-02-15 10:39:37 -0800323 cmd.ImplicitOutputs(extraFiles)
Colin Cross800fe132019-02-11 14:21:24 -0800324
Colin Cross44df5812019-02-15 23:06:46 -0800325 rule.Build(pctx, ctx, image.name+"JarsDexpreopt_"+arch.String(), "dexpreopt "+image.name+" jars "+arch.String())
Colin Cross800fe132019-02-11 14:21:24 -0800326
327 // save output and installed files for makevars
Colin Cross44df5812019-02-15 23:06:46 -0800328 image.installs[arch] = rule.Installs()
329 image.vdexInstalls[arch] = vdexInstalls
330 image.unstrippedInstalls[arch] = unstrippedInstalls
Colin Cross800fe132019-02-11 14:21:24 -0800331}
332
333const failureMessage = `ERROR: Dex2oat failed to compile a boot image.
334It is likely that the boot classpath is inconsistent.
335Rebuild with ART_BOOT_IMAGE_EXTRA_ARGS="--runtime-arg -verbose:verifier" to see verification errors.`
336
Colin Cross44df5812019-02-15 23:06:46 -0800337func bootImageProfileRule(ctx android.SingletonContext, image *bootImage, missingDeps []string) android.WritablePath {
Nicolas Geoffray72892f12019-02-22 15:34:40 +0000338 return ctx.Config().Once(bootImageProfileRuleKey, func() interface{} {
339 global := dexpreoptGlobalConfig(ctx)
Colin Cross44df5812019-02-15 23:06:46 -0800340
Nicolas Geoffray72892f12019-02-22 15:34:40 +0000341 if !global.UseProfileForBootImage || ctx.Config().IsPdkBuild() || ctx.Config().UnbundledBuild() {
342 return nil
Colin Cross69f59a32019-02-15 10:39:37 -0800343 }
Colin Cross800fe132019-02-11 14:21:24 -0800344
Nicolas Geoffray72892f12019-02-22 15:34:40 +0000345 tools := global.Tools
Colin Cross800fe132019-02-11 14:21:24 -0800346
Nicolas Geoffray72892f12019-02-22 15:34:40 +0000347 rule := android.NewRuleBuilder()
348 rule.MissingDeps(missingDeps)
Colin Cross800fe132019-02-11 14:21:24 -0800349
Nicolas Geoffray72892f12019-02-22 15:34:40 +0000350 var bootImageProfile android.Path
351 if len(global.BootImageProfiles) > 1 {
352 combinedBootImageProfile := image.dir.Join(ctx, "boot-image-profile.txt")
353 rule.Command().Text("cat").Inputs(global.BootImageProfiles).Text(">").Output(combinedBootImageProfile)
354 bootImageProfile = combinedBootImageProfile
355 } else if len(global.BootImageProfiles) == 1 {
356 bootImageProfile = global.BootImageProfiles[0]
357 } else {
358 // If not set, use the default. Some branches like master-art-host don't have frameworks/base, so manually
359 // handle the case that the default is missing. Those branches won't attempt to build the profile rule,
360 // and if they do they'll get a missing deps error.
361 defaultProfile := "frameworks/base/config/boot-image-profile.txt"
362 path := android.ExistentPathForSource(ctx, defaultProfile)
363 if path.Valid() {
364 bootImageProfile = path.Path()
365 } else {
366 missingDeps = append(missingDeps, defaultProfile)
367 bootImageProfile = android.PathForOutput(ctx, "missing")
368 }
369 }
Colin Cross800fe132019-02-11 14:21:24 -0800370
Nicolas Geoffray72892f12019-02-22 15:34:40 +0000371 profile := image.dir.Join(ctx, "boot.prof")
Colin Cross800fe132019-02-11 14:21:24 -0800372
Nicolas Geoffray72892f12019-02-22 15:34:40 +0000373 rule.Command().
374 Text(`ANDROID_LOG_TAGS="*:e"`).
375 Tool(tools.Profman).
376 FlagWithInput("--create-profile-from=", bootImageProfile).
377 FlagForEachInput("--apk=", image.dexPaths.Paths()).
378 FlagForEachArg("--dex-location=", image.dexLocations).
379 FlagWithOutput("--reference-profile-file=", profile)
Colin Cross800fe132019-02-11 14:21:24 -0800380
Nicolas Geoffray72892f12019-02-22 15:34:40 +0000381 rule.Install(profile, "/system/etc/boot-image.prof")
382
383 rule.Build(pctx, ctx, "bootJarsProfile", "profile boot jars")
384
385 image.profileInstalls = rule.Installs()
386
387 return profile
388 }).(android.WritablePath)
Colin Cross800fe132019-02-11 14:21:24 -0800389}
390
Nicolas Geoffray72892f12019-02-22 15:34:40 +0000391var bootImageProfileRuleKey = android.NewOnceKey("bootImageProfileRule")
392
Colin Cross44df5812019-02-15 23:06:46 -0800393// Export paths for default boot image to Make
394func (d *dexpreoptBootJars) MakeVars(ctx android.MakeVarsContext) {
395 image := d.defaultBootImage
396 if image != nil {
Colin Cross44df5812019-02-15 23:06:46 -0800397 ctx.Strict("DEXPREOPT_IMAGE_PROFILE_BUILT_INSTALLED", image.profileInstalls.String())
Colin Cross44df5812019-02-15 23:06:46 -0800398 ctx.Strict("DEXPREOPT_BOOTCLASSPATH_DEX_FILES", strings.Join(image.dexPaths.Strings(), " "))
399 ctx.Strict("DEXPREOPT_BOOTCLASSPATH_DEX_LOCATIONS", strings.Join(image.dexLocations, " "))
Nicolas Geoffray72892f12019-02-22 15:34:40 +0000400
401 var imageNames []string
402 for _, current := range append(d.otherImages, image) {
403 imageNames = append(imageNames, current.name)
404 for arch, _ := range current.images {
405 ctx.Strict("DEXPREOPT_IMAGE_VDEX_BUILT_INSTALLED_"+current.name+"_"+arch.String(), current.vdexInstalls[arch].String())
406 ctx.Strict("DEXPREOPT_IMAGE_"+current.name+"_"+arch.String(), current.images[arch].String())
407 ctx.Strict("DEXPREOPT_IMAGE_BUILT_INSTALLED_"+current.name+"_"+arch.String(), current.installs[arch].String())
408 ctx.Strict("DEXPREOPT_IMAGE_UNSTRIPPED_BUILT_INSTALLED_"+current.name+"_"+arch.String(), current.unstrippedInstalls[arch].String())
409 }
410 }
411 ctx.Strict("DEXPREOPT_IMAGE_NAMES", strings.Join(imageNames, " "))
Colin Cross800fe132019-02-11 14:21:24 -0800412 }
Colin Cross800fe132019-02-11 14:21:24 -0800413}