Update dexpreopt for the ART APEX name change.
Test: Build & boot Bug: 135753770 Exempt-From-Owner-Approval: Approved internally Change-Id: I3aac9112b022cce3ef8cfdf4bdbbed8bb0c8f4c7 Merged-In: I3aac9112b022cce3ef8cfdf4bdbbed8bb0c8f4c7
This commit is contained in:
@@ -107,17 +107,17 @@ func defaultBootImageConfig(ctx android.PathContext) bootImageConfig {
|
||||
return ctx.Config().Once(defaultBootImageConfigKey, func() interface{} {
|
||||
global := dexpreoptGlobalConfig(ctx)
|
||||
|
||||
runtimeModules := global.RuntimeApexJars
|
||||
nonFrameworkModules := concat(runtimeModules, global.ProductUpdatableBootModules)
|
||||
artModules := global.ArtApexJars
|
||||
nonFrameworkModules := concat(artModules, global.ProductUpdatableBootModules)
|
||||
frameworkModules := android.RemoveListFromList(global.BootJars, nonFrameworkModules)
|
||||
|
||||
var nonUpdatableBootModules []string
|
||||
var nonUpdatableBootLocations []string
|
||||
|
||||
for _, m := range runtimeModules {
|
||||
for _, m := range artModules {
|
||||
nonUpdatableBootModules = append(nonUpdatableBootModules, m)
|
||||
nonUpdatableBootLocations = append(nonUpdatableBootLocations,
|
||||
filepath.Join("/apex/com.android.runtime/javalib", m+".jar"))
|
||||
filepath.Join("/apex/com.android.art/javalib", m+".jar"))
|
||||
}
|
||||
|
||||
for _, m := range frameworkModules {
|
||||
@@ -176,16 +176,16 @@ func apexBootImageConfig(ctx android.PathContext) bootImageConfig {
|
||||
return ctx.Config().Once(apexBootImageConfigKey, func() interface{} {
|
||||
global := dexpreoptGlobalConfig(ctx)
|
||||
|
||||
runtimeModules := global.RuntimeApexJars
|
||||
nonFrameworkModules := concat(runtimeModules, global.ProductUpdatableBootModules)
|
||||
artModules := global.ArtApexJars
|
||||
nonFrameworkModules := concat(artModules, global.ProductUpdatableBootModules)
|
||||
frameworkModules := android.RemoveListFromList(global.BootJars, nonFrameworkModules)
|
||||
imageModules := concat(runtimeModules, frameworkModules)
|
||||
imageModules := concat(artModules, frameworkModules)
|
||||
|
||||
var bootLocations []string
|
||||
|
||||
for _, m := range runtimeModules {
|
||||
for _, m := range artModules {
|
||||
bootLocations = append(bootLocations,
|
||||
filepath.Join("/apex/com.android.runtime/javalib", m+".jar"))
|
||||
filepath.Join("/apex/com.android.art/javalib", m+".jar"))
|
||||
}
|
||||
|
||||
for _, m := range frameworkModules {
|
||||
|
Reference in New Issue
Block a user