Remove UseApexImage and GenerateApexImage.
These options are not used anymore. Bug: 119800099 Test: m Change-Id: I4568ff23ed71a5c288ed87828aed6e4bc4f8bd4d
This commit is contained in:
@@ -125,8 +125,6 @@ var (
|
||||
bootImageConfigKey = android.NewOnceKey("bootImageConfig")
|
||||
artBootImageName = "art"
|
||||
frameworkBootImageName = "boot"
|
||||
artJZBootImageName = "jitzygote-art"
|
||||
frameworkJZBootImageName = "jitzygote-boot"
|
||||
)
|
||||
|
||||
// Construct the global boot image configs.
|
||||
@@ -180,33 +178,9 @@ func genBootImageConfigs(ctx android.PathContext) map[string]*bootImageConfig {
|
||||
dexLocationsDeps: append(artLocations, frameworkLocations...),
|
||||
}
|
||||
|
||||
// ART config for JIT-zygote boot image.
|
||||
artJZCfg := bootImageConfig{
|
||||
extension: false,
|
||||
name: artJZBootImageName,
|
||||
stem: "apex",
|
||||
installSubdir: artSubdir,
|
||||
modules: artModules,
|
||||
dexLocations: artLocations,
|
||||
dexLocationsDeps: artLocations,
|
||||
}
|
||||
|
||||
// Framework config for JIT-zygote boot image extension.
|
||||
frameworkJZCfg := bootImageConfig{
|
||||
extension: true,
|
||||
name: frameworkJZBootImageName,
|
||||
stem: "apex",
|
||||
installSubdir: frameworkSubdir,
|
||||
modules: frameworkModules,
|
||||
dexLocations: frameworkLocations,
|
||||
dexLocationsDeps: append(artLocations, frameworkLocations...),
|
||||
}
|
||||
|
||||
configs := map[string]*bootImageConfig{
|
||||
artBootImageName: &artCfg,
|
||||
frameworkBootImageName: &frameworkCfg,
|
||||
artJZBootImageName: &artJZCfg,
|
||||
frameworkJZBootImageName: &frameworkJZCfg,
|
||||
}
|
||||
|
||||
// common to all configs
|
||||
@@ -249,11 +223,6 @@ func genBootImageConfigs(ctx android.PathContext) map[string]*bootImageConfig {
|
||||
frameworkCfg.primaryImages = artCfg.images
|
||||
frameworkCfg.imageLocations = append(artCfg.imageLocations, frameworkCfg.imageLocations...)
|
||||
|
||||
// specific to the jitzygote-framework config
|
||||
frameworkJZCfg.dexPathsDeps = append(artJZCfg.dexPathsDeps, frameworkJZCfg.dexPathsDeps...)
|
||||
frameworkJZCfg.primaryImages = artJZCfg.images
|
||||
frameworkJZCfg.imageLocations = append(artJZCfg.imageLocations, frameworkJZCfg.imageLocations...)
|
||||
|
||||
return configs
|
||||
}).(map[string]*bootImageConfig)
|
||||
}
|
||||
@@ -266,14 +235,6 @@ func defaultBootImageConfig(ctx android.PathContext) bootImageConfig {
|
||||
return *genBootImageConfigs(ctx)[frameworkBootImageName]
|
||||
}
|
||||
|
||||
func artJZBootImageConfig(ctx android.PathContext) bootImageConfig {
|
||||
return *genBootImageConfigs(ctx)[artJZBootImageName]
|
||||
}
|
||||
|
||||
func frameworkJZBootImageConfig(ctx android.PathContext) bootImageConfig {
|
||||
return *genBootImageConfigs(ctx)[frameworkJZBootImageName]
|
||||
}
|
||||
|
||||
func defaultBootclasspath(ctx android.PathContext) []string {
|
||||
return ctx.Config().OnceStringSlice(defaultBootclasspathKey, func() []string {
|
||||
global := dexpreoptGlobalConfig(ctx)
|
||||
|
Reference in New Issue
Block a user