diff options
author | Jiyong Park <jiyong@google.com> | 2021-02-04 15:37:34 +0900 |
---|---|---|
committer | Jiyong Park <jiyong@google.com> | 2021-02-05 00:29:47 +0900 |
commit | 940dfd4db2d73368e20c29a086e4ef9a1d3b1ca0 (patch) | |
tree | 88ccacc7ac5041252d02c75bfd1ffda061880d09 /filesystem/filesystem.go | |
parent | 53b2427fc9a3e256d8611ba27f399fe828797468 (diff) |
android_filesystem is OutputFileProducer
... to be able to reference the module in data property of test modules.
Bug: N/A
Test: m VirtualizationHostTestCases
Change-Id: I199f070e811011cea6189ef24c0b2d8a683f79d0
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r-- | filesystem/filesystem.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go index 5092ad06e..2fe97d372 100644 --- a/filesystem/filesystem.go +++ b/filesystem/filesystem.go @@ -250,6 +250,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 { |