Remove option to create boot image based on preloaded classes
From now on, the only supported approach is to use a boot image profile. Test: make Change-Id: Ibd8fbd1dd81db0a7b3f3b3e626a70dcc26510224
This commit is contained in:
@@ -286,8 +286,6 @@ func buildBootImageRuleForArch(ctx android.SingletonContext, image *bootImage,
|
||||
if profile != nil {
|
||||
cmd.FlagWithArg("--compiler-filter=", "speed-profile")
|
||||
cmd.FlagWithInput("--profile-file=", profile)
|
||||
} else if global.PreloadedClasses.Valid() {
|
||||
cmd.FlagWithInput("--image-classes=", global.PreloadedClasses.Path())
|
||||
}
|
||||
|
||||
if global.DirtyImageObjects.Valid() {
|
||||
@@ -374,7 +372,7 @@ Rebuild with ART_BOOT_IMAGE_EXTRA_ARGS="--runtime-arg -verbose:verifier" to see
|
||||
func bootImageProfileRule(ctx android.SingletonContext, image *bootImage, missingDeps []string) android.WritablePath {
|
||||
global := dexpreoptGlobalConfig(ctx)
|
||||
|
||||
if !global.UseProfileForBootImage || ctx.Config().IsPdkBuild() || ctx.Config().UnbundledBuild() {
|
||||
if ctx.Config().IsPdkBuild() || ctx.Config().UnbundledBuild() {
|
||||
return nil
|
||||
}
|
||||
return ctx.Config().Once(bootImageProfileRuleKey, func() interface{} {
|
||||
|
Reference in New Issue
Block a user