aboutsummaryrefslogtreecommitdiffstats
path: root/genrule
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2017-11-29 00:27:14 -0800
committerColin Cross <ccross@android.com>2017-11-30 00:44:18 +0000
commit6510f91a1c8a40b6b06d382792d4da1a72eb1118 (patch)
tree4511e4f6ee6f7d43d03b7489ede41b6f22b2a559 /genrule
parentaabf67968c4abc98d94bd8ccd6d612246b2fbbdc (diff)
downloadbuild_soong-6510f91a1c8a40b6b06d382792d4da1a72eb1118.tar.gz
build_soong-6510f91a1c8a40b6b06d382792d4da1a72eb1118.tar.bz2
build_soong-6510f91a1c8a40b6b06d382792d4da1a72eb1118.zip
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
Diffstat (limited to 'genrule')
-rw-r--r--genrule/genrule.go4
1 files changed, 2 insertions, 2 deletions
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)