From 6510f91a1c8a40b6b06d382792d4da1a72eb1118 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 29 Nov 2017 00:27:14 -0800 Subject: Replace ModuleContext.AConfig() with Config() AConfig() now duplicates Config(). Replace the uses of AConfig() with Config(). Leave AConfig() for now until code in other projects is cleaned up. Test: m checkbuild Change-Id: Ic88be643049d21dba45dbd1a65588ed94bf43bdc --- genrule/genrule.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'genrule') diff --git a/genrule/genrule.go b/genrule/genrule.go index c142c53e..651ec15d 100644 --- a/genrule/genrule.go +++ b/genrule/genrule.go @@ -134,7 +134,7 @@ func (g *Module) DepsMutator(ctx android.BottomUpMutatorContext) { if g, ok := ctx.Module().(*Module); ok { if len(g.properties.Tools) > 0 { ctx.AddFarVariationDependencies([]blueprint.Variation{ - {"arch", ctx.AConfig().BuildOsVariant}, + {"arch", ctx.Config().BuildOsVariant}, }, hostToolDepTag, g.properties.Tools...) } } @@ -168,7 +168,7 @@ func (g *Module) GenerateAndroidBuildActions(ctx android.ModuleContext) { if t, ok := module.(HostToolProvider); ok { if !t.(android.Module).Enabled() { - if ctx.AConfig().AllowMissingDependencies() { + if ctx.Config().AllowMissingDependencies() { ctx.AddMissingDependencies([]string{tool}) } else { ctx.ModuleErrorf("depends on disabled module %q", tool) -- cgit v1.2.3