From 51aaf7dadf38aa04fe5472030bcd078108aeba50 Mon Sep 17 00:00:00 2001 From: Jack Rosenthal Date: Mon, 14 Dec 2020 16:37:17 -0700 Subject: zmake: change projects to chroot-supported toolchains Switch all zmake.yaml files to chroot-supported toolchains so that we can run "zmake testall" without grabbing the Zephyr SDK. Added a new config option to zmake, "prefer-zephyr-sdk", which when set to true, will cause the Zephyr SDK to be used instead of the specified toolchain, if installed. BUG=b:175248887 TEST=zmake testall (both with and without zephyr sdk) observe warning/info message in both cases for volteer Change-Id: I15ef3716d9c1301acaa154fe9d3b54cf85f73b79 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2591608 Tested-by: Jack Rosenthal Auto-Submit: Jack Rosenthal Commit-Queue: Simon Glass Reviewed-by: Simon Glass Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630161 Commit-Queue: Jack Rosenthal --- zephyr/projects/volteer/zmake.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/zephyr/projects/volteer/zmake.yaml b/zephyr/projects/volteer/zmake.yaml index e7f5e37bd6..b1251c2d08 100644 --- a/zephyr/projects/volteer/zmake.yaml +++ b/zephyr/projects/volteer/zmake.yaml @@ -15,8 +15,13 @@ supported-zephyr-versions: # grows a configuration option to handle ecst. output-type: raw -# Note: the Zephyr SDK is not available by default in the chroot. -# Please follow +# Note: coreboot-sdk toolchain will build, but may have runtime +# issues. This is set to "coreboot-sdk" so the automated CQ builder +# can use it for build tests. +# +# For compiling for a real device, you need to use the Zephyr SDK +# toolchain, which is not available in the chroot (and thus, to the CQ +# builder). Please follow # https://docs.zephyrproject.org/latest/getting_started/installation_linux.html # for instructions on installing the SDK. # @@ -24,4 +29,5 @@ output-type: raw # arm-none-eabi-gcc toolchain seems to work fine. If you prefer this # toolchain, you can pass --toolchain=arm-none-eabi to zmake # configure, and that will work as well. -toolchain: zephyr +toolchain: coreboot-sdk +prefer-zephyr-sdk: true -- cgit v1.2.1