File tree Expand file tree Collapse file tree 8 files changed +22
-8
lines changed
modules/trusted-firmware-m Expand file tree Collapse file tree 8 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ zephyr_file(APPLICATION_ROOT TOOLCHAIN_ROOT)
9696
9797# Host-tools don't unconditionally set TOOLCHAIN_HOME anymore,
9898# but in case Zephyr's SDK toolchain is used, set TOOLCHAIN_HOME
99- if ("${ZEPHYR_TOOLCHAIN_VARIANT} " STREQUAL "zephyr" )
99+ if ("${ZEPHYR_TOOLCHAIN_VARIANT} " STREQUAL "zephyr-gnu " )
100100 set (TOOLCHAIN_HOME ${HOST_TOOLS_HOME} )
101101endif ()
102102
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ endif()
5454# 1) Zephyr specified as toolchain (ZEPHYR_SDK_INSTALL_DIR still used if defined)
5555# 2) No toolchain specified == Default to Zephyr toolchain
5656# Until we completely deprecate it
57- if (("zephyr" STREQUAL ${ZEPHYR_TOOLCHAIN_VARIANT} ) OR
57+ if (("zephyr-gnu " STREQUAL ${ZEPHYR_TOOLCHAIN_VARIANT} ) OR
5858 (NOT DEFINED ZEPHYR_TOOLCHAIN_VARIANT) OR
5959 (DEFINED ZEPHYR_SDK_INSTALL_DIR) OR
6060 (Zephyr-sdk_FIND_REQUIRED))
Original file line number Diff line number Diff line change 11# SPDX-License-Identifier: Apache-2.0
22
3- include (${ZEPHYR_SDK_INSTALL_DIR} /cmake/zephyr/generic.cmake)
3+ include (${ZEPHYR_SDK_INSTALL_DIR} /cmake/zephyr/gnu/ generic.cmake)
44
55set (TOOLCHAIN_KCONFIG_DIR ${ZEPHYR_SDK_INSTALL_DIR} /cmake/zephyr)
66
Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: Apache-2.0
2+
3+ include (${ZEPHYR_SDK_INSTALL_DIR} /cmake/zephyr/gnu/target .cmake)
Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: Apache-2.0
2+
3+ include (${ZEPHYR_SDK_INSTALL_DIR} /cmake/zephyr/llvm/generic.cmake)
4+
5+ set (TOOLCHAIN_KCONFIG_DIR ${ZEPHYR_SDK_INSTALL_DIR} /cmake/zephyr)
6+
7+ message (STATUS "Found toolchain: zephyr ${SDK_VERSION} (${ZEPHYR_SDK_INSTALL_DIR} )" )
Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: Apache-2.0
2+
3+ include (${ZEPHYR_SDK_INSTALL_DIR} /cmake/zephyr/llvm/target .cmake)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -202,10 +202,14 @@ if (CONFIG_BUILD_WITH_TFM)
202202 # Get the toolchain variant
203203 # TODO: Add support for cross-compile toolchain variant
204204 # TODO: Enforce GCC version check against TF-M compiler requirements
205- if (${ZEPHYR_TOOLCHAIN_VARIANT} STREQUAL "zephyr" )
205+ if (${ZEPHYR_TOOLCHAIN_VARIANT} STREQUAL "zephyr-gnu " )
206206 set (TFM_TOOLCHAIN_FILE "toolchain_GNUARM.cmake" )
207207 set (TFM_TOOLCHAIN_PREFIX "arm-zephyr-eabi" )
208- set (TFM_TOOLCHAIN_PATH ${ZEPHYR_SDK_INSTALL_DIR} /arm-zephyr-eabi/bin)
208+ set (TFM_TOOLCHAIN_PATH ${ZEPHYR_SDK_INSTALL_DIR} /gnu/arm-zephyr-eabi/bin)
209+ elseif (${ZEPHYR_TOOLCHAIN_VARIANT} STREQUAL "zephyr-llvm" )
210+ set (TFM_TOOLCHAIN_FILE "toolchain_GNUARM.cmake" )
211+ set (TFM_TOOLCHAIN_PREFIX "arm-zephyr-eabi" )
212+ set (TFM_TOOLCHAIN_PATH ${ZEPHYR_SDK_INSTALL_DIR} /llvm/bin)
209213 elseif (${ZEPHYR_TOOLCHAIN_VARIANT} STREQUAL "gnuarmemb" )
210214 set (TFM_TOOLCHAIN_FILE "toolchain_GNUARM.cmake" )
211215 set (TFM_TOOLCHAIN_PREFIX "arm-none-eabi" )
You can’t perform that action at this time.
0 commit comments