summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2025-03-24 17:22:55 +0000
committer Spandan Das <spandandas@google.com> 2025-03-24 17:22:55 +0000
commit27452ec5b4e8a0e6e5e82c281b091033b7152dd8 (patch)
tree165fd4bea74e31d76bb140ae2a7bfded28d9f46b
parent9329c67e4535f7545529aeae96064c1fbbc887dd (diff)
Dist Soong built target_files.zip in Soong only builds
Test: presubmits Bug: 385383524 Change-Id: Id89e2df5ef721756b5fd4d631cfb4f17eaf48392
-rw-r--r--filesystem/android_device.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/filesystem/android_device.go b/filesystem/android_device.go
index a2181c1a1..a25194261 100644
--- a/filesystem/android_device.go
+++ b/filesystem/android_device.go
@@ -120,6 +120,7 @@ type androidDevice struct {
rootDirForFsConfig string
rootDirForFsConfigTimestamp android.Path
apkCertsInfo android.Path
+ targetFilesZip android.Path
}
func AndroidDeviceFactory() android.Module {
@@ -401,6 +402,9 @@ func (a *androidDevice) distFiles(ctx android.ModuleContext) {
ctx.DistForGoalWithFilename("dist_files", a.miscInfo, "super_misc_info.txt")
}
}
+ if a.targetFilesZip != nil {
+ ctx.DistForGoalWithFilename("target-files-package", a.targetFilesZip, namePrefix+insertBeforeExtension(a.targetFilesZip.Base(), "-FILE_NAME_TAG_PLACEHOLDER"))
+ }
}
}
@@ -590,6 +594,7 @@ func (a *androidDevice) buildTargetFilesZip(ctx android.ModuleContext, allInstal
a.copyImagesToTargetZip(ctx, builder, targetFilesDir)
a.copyMetadataToTargetZip(ctx, builder, targetFilesDir, allInstalledModules)
+ a.targetFilesZip = targetFilesZip
builder.Command().
BuiltTool("soong_zip").
Text("-d").