From b0eb3192c5ea57c60310a5b0b51d7c0777a7dd86 Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Tue, 9 Mar 2021 20:29:07 +0900 Subject: 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 --- filesystem/logical_partition.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'filesystem/logical_partition.go') 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) +} -- cgit v1.2.3-59-g8ed1b