summaryrefslogtreecommitdiff
path: root/filesystem
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2021-03-09 20:29:07 +0900
committerJiyong Park <jiyong@google.com>2021-03-09 20:31:51 +0900
commitb0eb3192c5ea57c60310a5b0b51d7c0777a7dd86 (patch)
tree175784019f0027a360152b3c315b8c04227e7687 /filesystem
parentacb7aeb9a80e97a9f54f6188ecca1e4cd7928ed5 (diff)
bootimg and logical_partition are OutputFileProducer
The two module types now implement OutputFileProducer so that we can add them to the data dependencies of tests. Bug: 181860941 Test: atest MicrodroidHostTestCase Change-Id: If263fefb1e5cdb5b57c17eb389c6ecc11d8356f4
Diffstat (limited to 'filesystem')
-rw-r--r--filesystem/bootimg.go10
-rw-r--r--filesystem/logical_partition.go10
2 files changed, 20 insertions, 0 deletions
diff --git a/filesystem/bootimg.go b/filesystem/bootimg.go
index 764f0452b..8e2c55482 100644
--- a/filesystem/bootimg.go
+++ b/filesystem/bootimg.go
@@ -237,3 +237,13 @@ var _ Filesystem = (*bootimg)(nil)
func (b *bootimg) OutputPath() android.Path {
return b.output
}
+
+var _ android.OutputFileProducer = (*bootimg)(nil)
+
+// Implements android.OutputFileProducer
+func (b *bootimg) OutputFiles(tag string) (android.Paths, error) {
+ if tag == "" {
+ return []android.Path{b.output}, nil
+ }
+ return nil, fmt.Errorf("unsupported module reference tag %q", tag)
+}
diff --git a/filesystem/logical_partition.go b/filesystem/logical_partition.go
index e547203bc..16b6037cf 100644
--- a/filesystem/logical_partition.go
+++ b/filesystem/logical_partition.go
@@ -208,3 +208,13 @@ var _ Filesystem = (*logicalPartition)(nil)
func (l *logicalPartition) OutputPath() android.Path {
return l.output
}
+
+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)
+}