diff options
author | 2019-02-07 14:25:51 -0800 | |
---|---|---|
committer | 2019-02-07 22:31:04 +0000 | |
commit | 65494b962b5a1fc90fe09046763b25cb91b5ec63 (patch) | |
tree | 2a209afeea5af2f0665dae0af0a38657c17dfe92 /android/singleton.go | |
parent | 7cf14099b70241950e813fd9196a0b3f2cc4e981 (diff) |
Make MakeVarsContext a PathContext
Expose all of SingletonContext to makeVarsContext, and then export
the subset of it that is used through MakeVarsContext.SingletonContext,
plus what is necessary for PathContext, directly through
MakeVarsContext.
Test: m checkbuild
Change-Id: Ie00f36e577fe110b6fa03b901da489d8547773c6
Diffstat (limited to 'android/singleton.go')
-rw-r--r-- | android/singleton.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/android/singleton.go b/android/singleton.go index f926435b1..05ec6b542 100644 --- a/android/singleton.go +++ b/android/singleton.go @@ -22,6 +22,7 @@ import ( // SingletonContext type SingletonContext interface { Config() Config + DeviceConfig() DeviceConfig ModuleName(module blueprint.Module) string ModuleDir(module blueprint.Module) string @@ -93,6 +94,10 @@ func (s singletonContextAdaptor) Config() Config { return s.SingletonContext.Config().(Config) } +func (s singletonContextAdaptor) DeviceConfig() DeviceConfig { + return DeviceConfig{s.Config().deviceConfig} +} + func (s singletonContextAdaptor) Variable(pctx PackageContext, name, value string) { s.SingletonContext.Variable(pctx.PackageContext, name, value) } |