diff options
| author | Dan Pasanen <dan.pasanen@gmail.com> | 2017-08-23 08:32:09 -0500 |
|---|---|---|
| committer | mosimchah <mosimchah@gmail.com> | 2017-08-31 14:07:46 -0400 |
| commit | d11fc2a5a8273a325d9a115f53ffc2d3301094f1 (patch) | |
| tree | 58161512cb376554537d9d37d7129e1823af856f | |
| parent | b1f46010720779c6855fc0a9b01d75167797215e (diff) | |
soong: use absolute path for OUT_DIRn7.1
* This is needed for tasks like inline kernel building. If
OUT_DIR_COMMON_BASE (which will be an absolute path) is not
set, prepend TOP to "out" in order to always use a full path.
Change-Id: I5f955c42854922425268f4cd54dec8cf0a531195
| -rw-r--r-- | ui/build/config.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/build/config.go b/ui/build/config.go index 16826f246..52adb6dbb 100644 --- a/ui/build/config.go +++ b/ui/build/config.go @@ -64,6 +64,8 @@ func NewConfig(ctx Context, args ...string) Config { } else { outDir = filepath.Join(baseDir, filepath.Base(wd)) } + } else { + outDir = filepath.Join(os.Getenv("TOP"), outDir) } ret.environ.Set("OUT_DIR", outDir) } |
