Follow argument changes to RuleBuilder

Pass pctx and ctx to NewRuleBuilder instead of RuleBuilder.Build,
and don't pass ctx to RuleBuilderCommand.BuiltTool.  Follows the
changes in I63e6597e19167393876dc2259d6f521363b7dabc.

Test: m checkbuild
Change-Id: I5d11e07ae1a24a967e379c151f4f5d7d188c6cc0
This commit is contained in:
Colin Cross 2020-11-16 17:58:17 -08:00
parent 961ef44f0b
commit 40c9513f7f

View File

@ -48,10 +48,10 @@ func (t *targetFSConfigGen) GenerateAndroidBuildActions(ctx android.ModuleContex
path := android.PathForModuleGen(ctx, "empty")
t.paths = android.Paths{path}
rule := android.NewRuleBuilder()
rule := android.NewRuleBuilder(pctx, ctx)
rule.Command().Text("rm -rf").Output(path)
rule.Command().Text("touch").Output(path)
rule.Build(pctx, ctx, "fs_config_empty", "create empty file")
rule.Build("fs_config_empty", "create empty file")
}
}