From a609efecf170b1b7cb9e393e237fe75c20fb2a90 Mon Sep 17 00:00:00 2001 From: Aaron Massey Date: Fri, 12 May 2023 14:10:01 -0600 Subject: 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 Reviewed-by: Jack Rosenthal Tested-by: Jack Rosenthal --- zephyr/zmake/zmake/toolchains.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'zephyr/zmake/zmake/toolchains.py') 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 -- cgit v1.2.1