Use far dependency for genrule tool
A far dependency will not inherit any of the variations from the current module, allowing a device genrule to depend on a host tool to generate the sources. Change-Id: I7f622ddd31a81d605f55d5946a109ea53e864084
This commit is contained in:
@@ -77,7 +77,8 @@ func (g *generator) GeneratedSourceFiles() []string {
|
||||
|
||||
func (g *generator) AndroidDynamicDependencies(ctx common.AndroidDynamicDependerModuleContext) []string {
|
||||
if g.properties.Tool != "" {
|
||||
return []string{g.properties.Tool}
|
||||
ctx.AddFarVariationDependencies([]blueprint.Variation{{"hostordevice", common.Host.String()}},
|
||||
g.properties.Tool)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user