Merge "Remove host boot image from boot.zip."
This commit is contained in:
@@ -332,10 +332,12 @@ func buildBootImage(ctx android.SingletonContext, image *bootImageConfig) *bootI
|
||||
bootFrameworkProfileRule(ctx, image, missingDeps)
|
||||
updatableBcpPackagesRule(ctx, image, missingDeps)
|
||||
|
||||
var allFiles android.Paths
|
||||
var zipFiles android.Paths
|
||||
for _, variant := range image.variants {
|
||||
files := buildBootImageVariant(ctx, variant, profile, missingDeps)
|
||||
allFiles = append(allFiles, files.Paths()...)
|
||||
if variant.target.Os == android.Android {
|
||||
zipFiles = append(zipFiles, files.Paths()...)
|
||||
}
|
||||
}
|
||||
|
||||
if image.zip != nil {
|
||||
@@ -343,8 +345,8 @@ func buildBootImage(ctx android.SingletonContext, image *bootImageConfig) *bootI
|
||||
rule.Command().
|
||||
BuiltTool(ctx, "soong_zip").
|
||||
FlagWithOutput("-o ", image.zip).
|
||||
FlagWithArg("-C ", image.dir.String()).
|
||||
FlagWithInputList("-f ", allFiles, " -f ")
|
||||
FlagWithArg("-C ", image.dir.Join(ctx, android.Android.String()).String()).
|
||||
FlagWithInputList("-f ", zipFiles, " -f ")
|
||||
|
||||
rule.Build(pctx, ctx, "zip_"+image.name, "zip "+image.name+" image")
|
||||
}
|
||||
|
@@ -118,7 +118,7 @@ func TestDexpreoptBootZip(t *testing.T) {
|
||||
|
||||
ctx := android.PathContextForTesting(testConfig(nil, "", nil))
|
||||
expectedInputs := []string{}
|
||||
for _, target := range dexpreoptTargets(ctx) {
|
||||
for _, target := range ctx.Config().Targets[android.Android] {
|
||||
for _, ext := range []string{".art", ".oat", ".vdex"} {
|
||||
for _, jar := range []string{"foo", "bar", "baz"} {
|
||||
expectedInputs = append(expectedInputs,
|
||||
|
Reference in New Issue
Block a user