diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2021-08-31 18:44:15 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-01 22:57:37 +0000 |
commit | 4259d21065b281d8acc58e041d92d64c4db24205 (patch) | |
tree | 4aef746387316e6ad61d488ededf5a173335a5cd /zephyr/test/hooks | |
parent | 3010ab154cb84277e81e906bc05ae360d263993c (diff) | |
download | chrome-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/hooks')
-rw-r--r-- | zephyr/test/hooks/zmake.yaml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zephyr/test/hooks/zmake.yaml b/zephyr/test/hooks/zmake.yaml index 9158a292d7..6aa10c2661 100644 --- a/zephyr/test/hooks/zmake.yaml +++ b/zephyr/test/hooks/zmake.yaml @@ -5,6 +5,8 @@ board: native_posix supported-zephyr-versions: - v2.6 -toolchain: llvm +supported-toolchains: + - llvm + - host output-type: elf is-test: true |