Use OutputFilesProvider on filesystem module types
Test: CI Bug: 339477385 Change-Id: I0902726cfef13c716d73c1abc5c9836bdcf3e10f
This commit is contained in:
@@ -81,6 +81,8 @@ func (a *avbGenVbmetaImage) GenerateAndroidBuildActions(ctx android.ModuleContex
|
||||
a.output = android.PathForModuleOut(ctx, a.installFileName()).OutputPath
|
||||
cmd.FlagWithOutput("--output_vbmeta_image ", a.output)
|
||||
builder.Build("avbGenVbmetaImage", fmt.Sprintf("avbGenVbmetaImage %s", ctx.ModuleName()))
|
||||
|
||||
ctx.SetOutputFiles([]android.Path{a.output}, "")
|
||||
}
|
||||
|
||||
var _ android.AndroidMkEntriesProvider = (*avbGenVbmetaImage)(nil)
|
||||
@@ -99,16 +101,6 @@ func (a *avbGenVbmetaImage) AndroidMkEntries() []android.AndroidMkEntries {
|
||||
}}
|
||||
}
|
||||
|
||||
var _ android.OutputFileProducer = (*avbGenVbmetaImage)(nil)
|
||||
|
||||
// Implements android.OutputFileProducer
|
||||
func (a *avbGenVbmetaImage) OutputFiles(tag string) (android.Paths, error) {
|
||||
if tag == "" {
|
||||
return []android.Path{a.output}, nil
|
||||
}
|
||||
return nil, fmt.Errorf("unsupported module reference tag %q", tag)
|
||||
}
|
||||
|
||||
type avbGenVbmetaImageDefaults struct {
|
||||
android.ModuleBase
|
||||
android.DefaultsModuleBase
|
||||
|
Reference in New Issue
Block a user