summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-03-24 11:16:29 -0700
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-03-24 11:16:29 -0700
commitbefeba4120e6c7af20566d89aabba53add0b294b (patch)
treefe3e03f3309771ffa05e16fcc38a651591042123
parent73326999541136999d52f6b9ecc7f3395cc3bb65 (diff)
parent27452ec5b4e8a0e6e5e82c281b091033b7152dd8 (diff)
Merge "Dist Soong built target_files.zip in Soong only builds" into main
-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 b96c5eae3..9a085a628 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").