diff --git a/genrule/genrule.go b/genrule/genrule.go index 0f276d060..42ab047a0 100644 --- a/genrule/genrule.go +++ b/genrule/genrule.go @@ -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 }