summaryrefslogtreecommitdiff
path: root/filesystem/logical_partition.go
diff options
context:
space:
mode:
author mrziwang <mrziwang@google.com> 2024-06-07 11:15:33 -0700
committer mrziwang <mrziwang@google.com> 2024-06-07 11:15:33 -0700
commit555d133433fef7a9c2eb1420efce05398f13018d (patch)
treebd5a5ebe7681afb9babde837801f8f55f1145a8d /filesystem/logical_partition.go
parent02f1e342cdfeab0889695d05aa0152a139f3873d (diff)
Use OutputFilesProvider on filesystem module types
Test: CI Bug: 339477385 Change-Id: I0902726cfef13c716d73c1abc5c9836bdcf3e10f
Diffstat (limited to 'filesystem/logical_partition.go')
-rw-r--r--filesystem/logical_partition.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/filesystem/logical_partition.go b/filesystem/logical_partition.go
index e2f7d7bdf..e483fe472 100644
--- a/filesystem/logical_partition.go
+++ b/filesystem/logical_partition.go
@@ -185,6 +185,8 @@ func (l *logicalPartition) GenerateAndroidBuildActions(ctx android.ModuleContext
l.installDir = android.PathForModuleInstall(ctx, "etc")
ctx.InstallFile(l.installDir, l.installFileName(), l.output)
+
+ ctx.SetOutputFiles([]android.Path{l.output}, "")
}
// Add a rule that converts the filesystem for the given partition to the given rule builder. The
@@ -231,13 +233,3 @@ func (l *logicalPartition) OutputPath() android.Path {
func (l *logicalPartition) SignedOutputPath() android.Path {
return nil // logical partition is not signed by itself
}
-
-var _ android.OutputFileProducer = (*logicalPartition)(nil)
-
-// Implements android.OutputFileProducer
-func (l *logicalPartition) OutputFiles(tag string) (android.Paths, error) {
- if tag == "" {
- return []android.Path{l.output}, nil
- }
- return nil, fmt.Errorf("unsupported module reference tag %q", tag)
-}