aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorTTornblom <thomas.tornblom@iar.com>2020-06-12 21:46:43 +0200
committerTTornblom <thomas.tornblom@iar.com>2020-08-05 09:12:53 +0200
commit34d8bf46f114f1f0a470467c095c7621a48f6fa1 (patch)
tree5f658b66a56c66d1b42472632fc6c7d0bd137d09 /cmake
parent17766727cfa51b261c0687ee5c3ba1aee800ba39 (diff)
downloadtrusted-firmware-m-34d8bf46f114f1f0a470467c095c7621a48f6fa1.tar.gz
Platform: Add IAR support for FVP_SSE300_MPS2 target
Added IAR support to cmake file Added linker scripts and make use of REGION macros in startup files Fixed minor type mismatch warning Added v8.1M to IAR compiler cmake file, just use it as a v8M for now until we get proper support for the Cortex-M55 Signed-off-by: TTornblom <thomas.tornblom@iar.com> Change-Id: Ia2a888ef97e0e4b6146313950a3de73d75b2735c
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Common/CompilerIarArm850.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/Common/CompilerIarArm850.cmake b/cmake/Common/CompilerIarArm850.cmake
index dfa9a36d8..e68568d91 100644
--- a/cmake/Common/CompilerIarArm850.cmake
+++ b/cmake/Common/CompilerIarArm850.cmake
@@ -25,6 +25,12 @@ elseif(${ARM_CPU_ARCHITECTURE} STREQUAL "ARMv8-M.MAIN")
string_append_unique_item(STRING CMAKE_CXX_FLAGS_CPU KEY "--cpu" VAL "--cpu Cortex-M33.no_dsp")
string_append_unique_item(STRING CMAKE_CXX_FLAGS_CPU KEY "--cpu" VAL "--cpu Cortex-M33.no_dsp")
string_append_unique_item(STRING CMAKE_LINK_FLAGS_CPU KEY "--cpu" VAL "--cpu Cortex-M33.no_dsp")
+elseif(${ARM_CPU_ARCHITECTURE} STREQUAL "ARMv8.1-M.MAIN")
+# Treat v8.1-m as v8-m until we get full v8.1-m/Cortex-M55 support in iccarm
+ string_append_unique_item(STRING CMAKE_C_FLAGS_CPU KEY "--cpu" VAL "--cpu Cortex-M33.no_dsp")
+ string_append_unique_item(STRING CMAKE_CXX_FLAGS_CPU KEY "--cpu" VAL "--cpu Cortex-M33.no_dsp")
+ string_append_unique_item(STRING CMAKE_CXX_FLAGS_CPU KEY "--cpu" VAL "--cpu Cortex-M33.no_dsp")
+ string_append_unique_item(STRING CMAKE_LINK_FLAGS_CPU KEY "--cpu" VAL "--cpu Cortex-M33.no_dsp")
elseif(${ARM_CPU_ARCHITECTURE} STREQUAL "ARMv7-M")
string_append_unique_item(STRING CMAKE_C_FLAGS_CPU KEY "--cpu" VAL "--cpu Cortex-M4")
string_append_unique_item(STRING CMAKE_CXX_FLAGS_CPU KEY "--cpu" VAL "--cpu Cortex-M4")