diff options
author | Aaron Massey <aaronmassey@google.com> | 2023-05-12 14:10:01 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-05-12 22:40:06 +0000 |
commit | a609efecf170b1b7cb9e393e237fe75c20fb2a90 (patch) | |
tree | 8bf9719a56d76b67aa1cd040774017e9a86059fc | |
parent | 2800116fe719572f9655819b2ece260fac5e0eaa (diff) | |
download | chrome-ec-a609efecf170b1b7cb9e393e237fe75c20fb2a90.tar.gz |
zmake: Resolve coreboot_sdk_root path
The COREBOOT_SDK_ROOT environment variable is not resolved.
Resolve the COREBOOT_SDK_ROOT environment variable to an absolute path.
BUG=b:268050548
TEST=CQ
TEST=fwsdk: bazel build
//platform/rules_cros_firmware/cros_firmware:herobrine_ec
Change-Id: Ib5e053531dfce1a13e2840d8968ae559d425cf89
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4529215
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r-- | zephyr/zmake/zmake/toolchains.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zephyr/zmake/zmake/toolchains.py b/zephyr/zmake/zmake/toolchains.py index 2e1458ce5b..a92baf2a3e 100644 --- a/zephyr/zmake/zmake/toolchains.py +++ b/zephyr/zmake/zmake/toolchains.py @@ -1,6 +1,7 @@ # Copyright 2020 The ChromiumOS Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. + """Definitions of toolchain variables.""" import os @@ -55,7 +56,7 @@ class CorebootSdkToolchain(GenericToolchain): """ path = pathlib.Path( os.environ.get("COREBOOT_SDK_ROOT", "/opt/coreboot-sdk") - ) + ).resolve() if path.is_dir(): return path return None |