aboutsummaryrefslogtreecommitdiff
path: root/cmake/toolchain/arm-none-eabi-gcc.cmake
diff options
context:
space:
mode:
authorKristofer Jonsson <kristofer.jonsson@arm.com>2021-06-04 18:02:59 +0200
committerKristofer Jonsson <kristofer.jonsson@arm.com>2021-06-28 10:43:50 +0200
commitec451550f961ee940e2d9393bd6a52f4d2c25685 (patch)
tree01fe598a9af85b3f8ae38a353022c83a084f633c /cmake/toolchain/arm-none-eabi-gcc.cmake
parentdabf6b5d835ff8bba36764d3db4dcc07f826dc3f (diff)
downloadethos-u-core-platform-ec451550f961ee940e2d9393bd6a52f4d2c25685.tar.gz
Buildsystem restructuring
- Allow linker file to be overriden - Disable Trustzone build for other targets than Corstone-300 - Make toolchain TARGET_CPU variable cached Change-Id: I98a15e1080e4bf49e029578888b1e4ce362bbab7
Diffstat (limited to 'cmake/toolchain/arm-none-eabi-gcc.cmake')
-rw-r--r--cmake/toolchain/arm-none-eabi-gcc.cmake4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmake/toolchain/arm-none-eabi-gcc.cmake b/cmake/toolchain/arm-none-eabi-gcc.cmake
index 2c0ebd0..b0a27fd 100644
--- a/cmake/toolchain/arm-none-eabi-gcc.cmake
+++ b/cmake/toolchain/arm-none-eabi-gcc.cmake
@@ -16,9 +16,7 @@
# limitations under the License.
#
-if (NOT TARGET_CPU)
- set(TARGET_CPU "cortex-m4")
-endif()
+set(TARGET_CPU "cortex-m4" CACHE STRING "Target CPU")
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_C_COMPILER "arm-none-eabi-gcc")