summaryrefslogtreecommitdiff
path: root/filesystem/filesystem.go
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2021-02-05 03:39:51 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-02-05 03:39:51 +0000
commit364da36115ecdb442d806bb5f1d287d12e258399 (patch)
tree8bd6211af2752645a2adb2b2603e18aee06a2c03 /filesystem/filesystem.go
parent87bd0f3c22b3c55563f2db020dfd3437f0c1a608 (diff)
parent599992bc3e6795b94949eefd36e5812df237d03a (diff)
Merge changes I6a5357e9,I199f070e
* changes: Install ko to /lib/modules android_filesystem is OutputFileProducer
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r--filesystem/filesystem.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index 177296cb2..c06fd4ff7 100644
--- a/filesystem/filesystem.go
+++ b/filesystem/filesystem.go
@@ -271,6 +271,16 @@ func (f *filesystem) AndroidMkEntries() []android.AndroidMkEntries {
}}
}
+var _ android.OutputFileProducer = (*filesystem)(nil)
+
+// Implements android.OutputFileProducer
+func (f *filesystem) OutputFiles(tag string) (android.Paths, error) {
+ if tag == "" {
+ return []android.Path{f.output}, nil
+ }
+ return nil, fmt.Errorf("unsupported module reference tag %q", tag)
+}
+
// Filesystem is the public interface for the filesystem struct. Currently, it's only for the apex
// package to have access to the output file.
type Filesystem interface {