diff options
author | Dan Pasanen <dan.pasanen@gmail.com> | 2017-08-23 08:32:09 -0500 |
---|---|---|
committer | Rashed Abdel-Tawab <rashed@linux.com> | 2018-08-06 22:41:46 -0700 |
commit | 823aad091be8791e8499cffa055aa76a54b589aa (patch) | |
tree | 77dbd195344ca187936bd654cd0edfd80b1950b6 /ui/build/config.go | |
parent | a427e814f07d071b4a3c31976a7701b4f80546b5 (diff) | |
download | build_soong-823aad091be8791e8499cffa055aa76a54b589aa.tar.gz build_soong-823aad091be8791e8499cffa055aa76a54b589aa.tar.bz2 build_soong-823aad091be8791e8499cffa055aa76a54b589aa.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
Diffstat (limited to 'ui/build/config.go')
-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 27ed8e9f..eef67cb9 100644 --- a/ui/build/config.go +++ b/ui/build/config.go @@ -74,6 +74,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) } |