Merge "bootimg and logical_partition are OutputFileProducer"
This commit is contained in:
commit
cb60b31f21
|
@ -237,3 +237,13 @@ var _ Filesystem = (*bootimg)(nil)
|
||||||
func (b *bootimg) OutputPath() android.Path {
|
func (b *bootimg) OutputPath() android.Path {
|
||||||
return b.output
|
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)
|
||||||
|
}
|
||||||
|
|
|
@ -208,3 +208,13 @@ var _ Filesystem = (*logicalPartition)(nil)
|
||||||
func (l *logicalPartition) OutputPath() android.Path {
|
func (l *logicalPartition) OutputPath() android.Path {
|
||||||
return l.output
|
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)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue