summaryrefslogtreecommitdiff
path: root/filesystem/filesystem.go
diff options
context:
space:
mode:
author Yu Liu <yudiliu@google.com> 2025-02-13 02:05:00 +0000
committer Yu Liu <yudiliu@google.com> 2025-02-19 00:18:39 +0000
commit0a37d429bcbfdf5110bbfcf14f43764dc01585a4 (patch)
treeacda2280ff7ee8cd210a9696b615297d64c4d5b4 /filesystem/filesystem.go
parent9354e34a7b2ba36b1e611dc0f062416649decbeb (diff)
Change depVisitor to use providers instead of type-asserting to
interfaces directly, the next step is to change it to use ModuleProxy once IsDepInSameApex is ready. Bug: 377723687 Test: Unit tests and compare the ninja and mk files generated. Change-Id: I13a4e256a26dbf7f9b3b746d628ac8f68b4e598e
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r--filesystem/filesystem.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index f84993de7..3829399b2 100644
--- a/filesystem/filesystem.go
+++ b/filesystem/filesystem.go
@@ -387,6 +387,9 @@ type InstalledFilesStruct struct {
type FilesystemInfo struct {
// The built filesystem image
Output android.Path
+ // Returns the output file that is signed by avbtool. If this module is not signed, returns
+ // nil.
+ SignedOutputPath android.Path
// An additional hermetic filesystem image.
// e.g. this will contain inodes with pinned timestamps.
// This will be copied to target_files.zip
@@ -655,7 +658,8 @@ func (f *filesystem) GenerateAndroidBuildActions(ctx android.ModuleContext) {
}
fsInfo := FilesystemInfo{
- Output: f.output,
+ Output: f.OutputPath(),
+ SignedOutputPath: f.SignedOutputPath(),
OutputHermetic: outputHermetic,
FileListFile: fileListFile,
RootDir: rootDir,
@@ -1499,3 +1503,10 @@ func (f *filesystem) MakeVars(ctx android.MakeVarsModuleContext) {
ctx.StrictRaw("SOONG_DEFINED_SYSTEM_IMAGE_PATH", f.output.String())
}
}
+
+func setCommonFilesystemInfo(ctx android.ModuleContext, m Filesystem) {
+ android.SetProvider(ctx, FilesystemProvider, FilesystemInfo{
+ Output: m.OutputPath(),
+ SignedOutputPath: m.SignedOutputPath(),
+ })
+}