diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2020-02-07 14:19:28 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2020-02-07 14:19:28 +0000 |
commit | 73d5983af061e3ded84365edb7408b8f4f08f17e (patch) | |
tree | 666c5bd578eefbcf786b86e7ba74721c12b5737d | |
parent | 396b950a1b4711eb3e52b58a227c1846dc493e17 (diff) | |
download | build_soong-73d5983af061e3ded84365edb7408b8f4f08f17e.tar.gz build_soong-73d5983af061e3ded84365edb7408b8f4f08f17e.tar.bz2 build_soong-73d5983af061e3ded84365edb7408b8f4f08f17e.zip |
Remove UseApexImage and GenerateApexImage.
These options are not used anymore.
Bug: 119800099
Test: m
Change-Id: I4568ff23ed71a5c288ed87828aed6e4bc4f8bd4d
-rw-r--r-- | dexpreopt/config.go | 3 | ||||
-rw-r--r-- | java/dexpreopt.go | 8 | ||||
-rw-r--r-- | java/dexpreopt_bootjars.go | 12 | ||||
-rw-r--r-- | java/dexpreopt_config.go | 39 |
4 files changed, 0 insertions, 62 deletions
diff --git a/dexpreopt/config.go b/dexpreopt/config.go index 720f79e2..e3538784 100644 --- a/dexpreopt/config.go +++ b/dexpreopt/config.go @@ -32,9 +32,6 @@ type GlobalConfig struct { UseArtImage bool // use the art image (use other boot class path dex files without image) - GenerateApexImage bool // generate an extra boot image only containing jars from the runtime apex - UseApexImage bool // use the apex image by default - HasSystemOther bool // store odex files that match PatternsOnSystemOther on the system_other partition PatternsOnSystemOther []string // patterns (using '%' to denote a prefix match) to put odex on the system_other partition diff --git a/java/dexpreopt.go b/java/dexpreopt.go index 5faec081..c81e199c 100644 --- a/java/dexpreopt.go +++ b/java/dexpreopt.go @@ -111,14 +111,6 @@ func (d *dexpreopter) dexpreopt(ctx android.ModuleContext, dexJarFile android.Mo if global.UseArtImage { bootImage = artBootImageConfig(ctx) } - if global.UseApexImage { - bootImage = frameworkJZBootImageConfig(ctx) - dexFiles = bootImage.dexPathsDeps.Paths() - dexLocations = bootImage.dexLocationsDeps - if global.UseArtImage { - bootImage = artJZBootImageConfig(ctx) - } - } var archs []android.ArchType for _, a := range ctx.MultiTargets() { diff --git a/java/dexpreopt_bootjars.go b/java/dexpreopt_bootjars.go index 87f6d5e3..607a4378 100644 --- a/java/dexpreopt_bootjars.go +++ b/java/dexpreopt_bootjars.go @@ -197,13 +197,6 @@ func DexpreoptedArtApexJars(ctx android.BuilderContext) map[android.ArchType]and // Include dexpreopt files for the primary boot image. files := artBootImageConfig(ctx).imagesDeps - // For JIT-zygote config, also include dexpreopt files for the primary JIT-zygote image. - if dexpreoptGlobalConfig(ctx).UseApexImage { - for arch, paths := range artJZBootImageConfig(ctx).imagesDeps { - files[arch] = append(files[arch], paths...) - } - } - return files } @@ -232,11 +225,6 @@ func (d *dexpreoptBootJars) GenerateBuildActions(ctx android.SingletonContext) { d.defaultBootImage = buildBootImage(ctx, defaultBootImageConfig(ctx)) // Create boot image for the ART apex (build artifacts are accessed via the global boot image config). d.otherImages = append(d.otherImages, buildBootImage(ctx, artBootImageConfig(ctx))) - if global.GenerateApexImage { - // Create boot images for the JIT-zygote experiment. - d.otherImages = append(d.otherImages, buildBootImage(ctx, artJZBootImageConfig(ctx))) - d.otherImages = append(d.otherImages, buildBootImage(ctx, frameworkJZBootImageConfig(ctx))) - } dumpOatRules(ctx, d.defaultBootImage) } diff --git a/java/dexpreopt_config.go b/java/dexpreopt_config.go index 637a32f0..4c9add8b 100644 --- a/java/dexpreopt_config.go +++ b/java/dexpreopt_config.go @@ -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) |