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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user