diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2023-01-13 16:41:43 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-01-17 18:35:13 +0000 |
commit | acd1253a35b9c35c7c3c139e31014bf1c5d696bf (patch) | |
tree | bb6ba6618531dbf289fe3903094876ac4054eabf /zephyr/cmake | |
parent | 92e23477494e6815a90bded7386f8e1ad138f87d (diff) | |
download | chrome-ec-acd1253a35b9c35c7c3c139e31014bf1c5d696bf.tar.gz |
zephyr: zmake: Probe coreboot-sdk from environment variable
When probing the presence of coreboot-sdk, check the environment
variable COREBOOT_SDK_ROOT to determine the location, and default to
/opt/coreboot-sdk (where it is in the chroot).
This also enables us to remove the hard-coded /opt/coreboot-sdk from
the cmake rules.
BUG=b:259306777
BRANCH=none
TEST=COREBOOT_SDK_ROOT=$HOME/coreboot/util/crossgcc/xgcc \
zmake build herobrine
Change-Id: Icdfd7feb59db87161748bec1fcb44e1e35e779ed
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4166336
Reviewed-by: Aaron Massey <aaronmassey@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'zephyr/cmake')
-rw-r--r-- | zephyr/cmake/toolchain/coreboot-sdk/target.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/cmake/toolchain/coreboot-sdk/target.cmake b/zephyr/cmake/toolchain/coreboot-sdk/target.cmake index 5a82a658a4..15858e09d9 100644 --- a/zephyr/cmake/toolchain/coreboot-sdk/target.cmake +++ b/zephyr/cmake/toolchain/coreboot-sdk/target.cmake @@ -21,7 +21,7 @@ elseif("${ARCH}" STREQUAL "x86" AND CONFIG_X86_64) endif() if(NOT DEFINED COREBOOT_SDK_ROOT) - set(COREBOOT_SDK_ROOT "/opt/coreboot-sdk") + set(COREBOOT_SDK_ROOT "$ENV{COREBOOT_SDK_ROOT}") endif() set(CC gcc) |