summaryrefslogtreecommitdiff
path: root/zephyr/test/i2c_dts/zmake.yaml
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-08-31 18:44:15 -0600
committerCommit Bot <commit-bot@chromium.org>2021-09-01 22:57:37 +0000
commit4259d21065b281d8acc58e041d92d64c4db24205 (patch)
tree4aef746387316e6ad61d488ededf5a173335a5cd /zephyr/test/i2c_dts/zmake.yaml
parent3010ab154cb84277e81e906bc05ae360d263993c (diff)
downloadchrome-ec-4259d21065b281d8acc58e041d92d64c4db24205.tar.gz
zephyr: zmake: implement multiple toolchain support/probing
Our GitLab builder uses different toolchains than the supported ones we use for development. At present, this means that the GitLab CI needs to call -t for each build with the desired toolchain, preventing us from using the more general commands "zmake coverage" or "zmake testall". Extend the idea of toolchain in our config files to be "supported toolchains" instead (i.e., multiple toolchains can be supported instead of one. We do this by refactoring our toolchain support code to consist of two related methods: - "probe" returns True if the toolchain is detected on the system, or False otherwise - "get_toolchain_config" returns the BuildConfig associated with the toolchain for the system, mirroring the functionality previously implemented in lambda functions. Also dropped support for arm-none-eabi, as I believe this was only used early on during scarlet development, and am not aware of any current users. BUG=b:178731498 BRANCH=none TEST=./run_tests.sh TEST=zmake testall Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I9b2ad508ae6703f0c3b56518fc32606c0ff1777c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3134668 Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'zephyr/test/i2c_dts/zmake.yaml')
-rw-r--r--zephyr/test/i2c_dts/zmake.yaml4
1 files changed, 3 insertions, 1 deletions
diff --git a/zephyr/test/i2c_dts/zmake.yaml b/zephyr/test/i2c_dts/zmake.yaml
index 5d6d9482f9..c3fca2272e 100644
--- a/zephyr/test/i2c_dts/zmake.yaml
+++ b/zephyr/test/i2c_dts/zmake.yaml
@@ -6,7 +6,9 @@ board: native_posix
supported-zephyr-versions:
- v2.6
output-type: elf
-toolchain: llvm
+supported-toolchains:
+ - llvm
+ - host
is-test: true
dts-overlays:
- overlay.dts