cmake: Use Zephyr SDK by default on all host operating systems
This commit updates the Zephyr build system to use the Zephyr SDK by default for all host operating systems, when `ZEPHYR_TOOLCHAIN_VARIANT` environment variable is not explicitly set. Note that the Zephyr SDK is now available on all three major host operating systems (i.e. Linux, macOS, Windows), and there is no reason to exclude this behaviour for non-Linux hosts anymore. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
parent
4fd24a4341
commit
07e4d08554
1 changed files with 2 additions and 2 deletions
|
@ -52,10 +52,10 @@ endif()
|
|||
# Verify Zephyr SDK Toolchain.
|
||||
# There are three scenarios where Zephyr SDK should be looked up:
|
||||
# 1) Zephyr specified as toolchain (ZEPHYR_SDK_INSTALL_DIR still used if defined)
|
||||
# 2) No toolchain specified == Default to Zephyr toolchain (Linux only)
|
||||
# 2) No toolchain specified == Default to Zephyr toolchain
|
||||
# Until we completely deprecate it
|
||||
if(("zephyr" STREQUAL ${ZEPHYR_TOOLCHAIN_VARIANT}) OR
|
||||
((NOT DEFINED ZEPHYR_TOOLCHAIN_VARIANT) AND (${CMAKE_HOST_SYSTEM_NAME} STREQUAL Linux)) OR
|
||||
(NOT DEFINED ZEPHYR_TOOLCHAIN_VARIANT) OR
|
||||
(DEFINED ZEPHYR_SDK_INSTALL_DIR))
|
||||
|
||||
# No toolchain was specified, so inform user that we will be searching.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue