From 823aad091be8791e8499cffa055aa76a54b589aa Mon Sep 17 00:00:00 2001 From: Dan Pasanen Date: Wed, 23 Aug 2017 08:32:09 -0500 Subject: 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 --- ui/build/config.go | 2 ++ 1 file changed, 2 insertions(+) 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) } -- cgit v1.2.3