diff options
author | Dan Pasanen <dan.pasanen@gmail.com> | 2017-08-23 08:32:09 -0500 |
---|---|---|
committer | Rashed Abdel-Tawab <rashed@linux.com> | 2017-12-05 16:06:13 -0800 |
commit | 1063e939ab34634bb8b3049e3e9d20116b362fd4 (patch) | |
tree | 5528925866318b39b1d87a8846c0b1178860148c | |
parent | 0c77f66b8b821b8f603a3c35f21ef960f53c5b78 (diff) | |
download | build_soong-1063e939ab34634bb8b3049e3e9d20116b362fd4.tar.gz build_soong-1063e939ab34634bb8b3049e3e9d20116b362fd4.tar.bz2 build_soong-1063e939ab34634bb8b3049e3e9d20116b362fd4.zip |
soong: use absolute path for OUT_DIR
* 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 ef061576..6cdcd12a 100644 --- a/ui/build/config.go +++ b/ui/build/config.go @@ -70,6 +70,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) } |