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:
parent
eae04e04ac
commit
f9964d5a8d
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue