Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 940dfd4d authored by Jiyong Park's avatar Jiyong Park
Browse files

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
parent 53b2427f
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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 {