cmake: Set minimum required Zephyr SDK version to 0.13

In order to use the newlib retagetable locking interface (for thread
safety), which requires the newlib multi-threading feature to be
enabled, the Zephyr SDK 0.13.0 or above must be used.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
Stephanos Ioannidis 2021-08-04 23:20:10 +09:00 committed by Kumar Gala
commit b973cdc9e8

View file

@ -16,11 +16,7 @@
# FORMAT=json: Print the output as a json formatted string, useful for Python # FORMAT=json: Print the output as a json formatted string, useful for Python
# This is the minimum required Zephyr-SDK version which supports CMake package # This is the minimum required Zephyr-SDK version which supports CMake package
if("${ARCH}" STREQUAL "arm64") set(TOOLCHAIN_ZEPHYR_MINIMUM_REQUIRED_VERSION 0.13)
set(TOOLCHAIN_ZEPHYR_MINIMUM_REQUIRED_VERSION 0.12.4)
else()
set(TOOLCHAIN_ZEPHYR_MINIMUM_REQUIRED_VERSION 0.12)
endif()
# Set internal variables if set in environment. # Set internal variables if set in environment.
if(NOT DEFINED ZEPHYR_TOOLCHAIN_VARIANT) if(NOT DEFINED ZEPHYR_TOOLCHAIN_VARIANT)