Merge "bootimg and logical_partition are OutputFileProducer" am: cb60b31f21

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1620998

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I92f21f8838ca92f2974226b54ab3df63c9d8c606
This commit is contained in:
Jiyong Park 2021-03-12 03:55:07 +00:00 committed by Automerger Merge Worker
commit 036c1a503d
2 changed files with 20 additions and 0 deletions

View File

@ -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)
}

View File

@ -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)
}