Merge "Use the apex image when the device config asks for it."
This commit is contained in:
@@ -32,6 +32,7 @@ type GlobalConfig struct {
|
|||||||
OnlyPreoptBootImageAndSystemServer bool // only preopt jars in the boot image or system server
|
OnlyPreoptBootImageAndSystemServer bool // only preopt jars in the boot image or system server
|
||||||
|
|
||||||
GenerateApexImage bool // generate an extra boot image only containing jars from the runtime apex
|
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
|
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
|
PatternsOnSystemOther []string // patterns (using '%' to denote a prefix match) to put odex on the system_other partition
|
||||||
|
@@ -98,6 +98,9 @@ func (d *dexpreopter) dexpreopt(ctx android.ModuleContext, dexJarFile android.Mo
|
|||||||
|
|
||||||
global := dexpreoptGlobalConfig(ctx)
|
global := dexpreoptGlobalConfig(ctx)
|
||||||
bootImage := defaultBootImageConfig(ctx)
|
bootImage := defaultBootImageConfig(ctx)
|
||||||
|
if global.UseApexImage {
|
||||||
|
bootImage = apexBootImageConfig(ctx)
|
||||||
|
}
|
||||||
|
|
||||||
var archs []android.ArchType
|
var archs []android.ArchType
|
||||||
for _, a := range ctx.MultiTargets() {
|
for _, a := range ctx.MultiTargets() {
|
||||||
|
Reference in New Issue
Block a user