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:
Colin Cross 2015-05-11 13:38:59 -07:00 committed by Colin Cross
parent eae04e04ac
commit f9964d5a8d

View file

@ -77,7 +77,8 @@ func (g *generator) GeneratedSourceFiles() []string {
func (g *generator) AndroidDynamicDependencies(ctx common.AndroidDynamicDependerModuleContext) []string { func (g *generator) AndroidDynamicDependencies(ctx common.AndroidDynamicDependerModuleContext) []string {
if g.properties.Tool != "" { if g.properties.Tool != "" {
return []string{g.properties.Tool} ctx.AddFarVariationDependencies([]blueprint.Variation{{"hostordevice", common.Host.String()}},
g.properties.Tool)
} }
return nil return nil
} }