summaryrefslogtreecommitdiff
path: root/zephyr/zmake/zmake/toolchains.py
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-01-15 12:58:55 -0700
committerCommit Bot <commit-bot@chromium.org>2021-01-15 21:07:57 +0000
commit6caef56bc6da982881537b3c176829807aeade77 (patch)
tree2838180b84ec76fdff0ecc6a3bc5e90961cd1131 /zephyr/zmake/zmake/toolchains.py
parent9bdcd16c7b70806341658ac975cf0078e459e87d (diff)
downloadchrome-ec-6caef56bc6da982881537b3c176829807aeade77.tar.gz
zmake: reference platform/ec/zephyr for TOOLCHAIN_ROOT
Update TOOLCHAIN_ROOT to look at platform/ec/zephyr instead of platform/zephyr-chrome since we have all the files moved here. BUG=b:177003034 BRANCH=none TEST=zmake testall Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I28b485bb38da6d2f5fbe6bab2edf25319c14eace Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2633456 Commit-Queue: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr/zmake/zmake/toolchains.py')
-rw-r--r--zephyr/zmake/zmake/toolchains.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/zephyr/zmake/zmake/toolchains.py b/zephyr/zmake/zmake/toolchains.py
index 1ef79f6849..e627ee35ee 100644
--- a/zephyr/zmake/zmake/toolchains.py
+++ b/zephyr/zmake/zmake/toolchains.py
@@ -40,10 +40,10 @@ def find_zephyr_sdk():
# Mapping of toolchain names -> (λ (module-paths) build-config)
toolchains = {
'coreboot-sdk': lambda modules: build_config.BuildConfig(
- cmake_defs={'TOOLCHAIN_ROOT': str(modules['zephyr-chrome']),
+ cmake_defs={'TOOLCHAIN_ROOT': str(modules['ec-shim'] / 'zephyr'),
'ZEPHYR_TOOLCHAIN_VARIANT': 'coreboot-sdk'}),
'llvm': lambda modules: build_config.BuildConfig(
- cmake_defs={'TOOLCHAIN_ROOT': str(modules['zephyr-chrome']),
+ cmake_defs={'TOOLCHAIN_ROOT': str(modules['ec-shim'] / 'zephyr'),
'ZEPHYR_TOOLCHAIN_VARIANT': 'llvm'}),
'zephyr': lambda _: build_config.BuildConfig(
cmake_defs={'ZEPHYR_TOOLCHAIN_VARIANT': 'zephyr',