aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Pasanen <dan.pasanen@gmail.com>2017-08-23 08:32:09 -0500
committerRashed Abdel-Tawab <rashed@linux.com>2017-10-28 14:13:26 -0700
commit4848b23ccc44a246b67e3f1d87addbea815fa88a (patch)
tree9f3adf612afb678303ecc9aa3ce40f419de46015
parent769d138874511a1f1720772a1af52d8fb32546b9 (diff)
downloadbuild_soong-4848b23ccc44a246b67e3f1d87addbea815fa88a.tar.gz
build_soong-4848b23ccc44a246b67e3f1d87addbea815fa88a.tar.bz2
build_soong-4848b23ccc44a246b67e3f1d87addbea815fa88a.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.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/build/config.go b/ui/build/config.go
index 7e8091b9..9907b2c8 100644
--- a/ui/build/config.go
+++ b/ui/build/config.go
@@ -62,6 +62,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)
}