summaryrefslogtreecommitdiff
path: root/zephyr/zmake/zmake/zmake.py
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-05-01 07:53:50 -0600
committerCommit Bot <commit-bot@chromium.org>2021-05-01 15:30:35 +0000
commit89e4a2e95103abbfb31d6d77bba0d9eeb047290b (patch)
tree95a3e237d0253e5551b7b9a9146f35bc7ebce760 /zephyr/zmake/zmake/zmake.py
parentb9719752392ddfdc6319a79932a05c4bc794b997 (diff)
downloadchrome-ec-89e4a2e95103abbfb31d6d77bba0d9eeb047290b.tar.gz
zephyr: zmake: resolve the build directory in build phase
If "zmake build" is passed a relative directory (as is the case with the chromeos-base/chromeos-zephyr ebuild), we need to resolve it to the absolute path before using it in a binman invocation, as binman is invoked in a different working directory than "zmake build" was started from. BUG=b:181337770 BRANCH=none TEST=emerge-trogdor-zephyr chromeos-zephyr Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Idd9896f240013760f40cf40387f01bfc291a6f57 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2865026 Commit-Queue: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr/zmake/zmake/zmake.py')
-rw-r--r--zephyr/zmake/zmake/zmake.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/zephyr/zmake/zmake/zmake.py b/zephyr/zmake/zmake/zmake.py
index 0412654582..bbffb38192 100644
--- a/zephyr/zmake/zmake/zmake.py
+++ b/zephyr/zmake/zmake/zmake.py
@@ -300,6 +300,7 @@ class Zmake:
log_writers = []
dirs = {}
+ build_dir = build_dir.resolve()
project = zmake.project.Project(build_dir / 'project')
# Compute the version string.