diff options
author | 2025-02-19 10:05:47 -0800 | |
---|---|---|
committer | 2025-02-19 10:05:47 -0800 | |
commit | 3c551be748d53083d57e6f50c16fe9ba3546ed14 (patch) | |
tree | b28adfc4473dc0cf022fe169ab29ecf02df223e0 /filesystem/filesystem.go | |
parent | daeb7c813ce0a6150d76c4f67c1c43d1ecde052f (diff) | |
parent | 0a37d429bcbfdf5110bbfcf14f43764dc01585a4 (diff) |
Merge "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." into main
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r-- | filesystem/filesystem.go | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go index c78061ab8..c0fb636ea 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 @@ -659,7 +662,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, @@ -1504,3 +1508,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(), + }) +} |