summaryrefslogtreecommitdiff
path: root/android/packaging.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2025-02-14 12:47:51 -0800
committer Cole Faust <colefaust@google.com> 2025-02-14 13:20:23 -0800
commitb052df5062d9c4695d0f48362d8a113571a01bfc (patch)
tree860cd07a5de034ab64c773f39670f843f1cd3abc /android/packaging.go
parent83cc13dc2ffdb2e1b77cb56e9d7dfb7b251a27ac (diff)
Reapply "Make fsverity files able to be built independently"
The difference from the original cl is an extra mkdir -p before copying the apks to their staging dir path. The parent directories weren't being created before. Right now, fsverity files are built when building the staging directory. This is slow, before this cl it takes over a minute to generate the staging directory, after it's only ~10 seconds. Fsverity files are now generated before the staging directory is built, in independant ninja actions. Bug: 394404628 Test: m aosp_shared_system_image, verified it didn't change before/after Change-Id: Icf48f0859e6d66ba5ce68d77a7254218d271d526
Diffstat (limited to 'android/packaging.go')
-rw-r--r--android/packaging.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/android/packaging.go b/android/packaging.go
index 551fd4c3f..4e0c74a12 100644
--- a/android/packaging.go
+++ b/android/packaging.go
@@ -202,6 +202,11 @@ func (p *PackagingSpec) SrcPath() Path {
return p.srcPath
}
+// The symlink target of the PackagingSpec. Do not use, for the soong-only migration.
+func (p *PackagingSpec) SymlinkTarget() string {
+ return p.symlinkTarget
+}
+
type PackageModule interface {
Module
packagingBase() *PackagingBase