aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTTornblom <thomas.tornblom@iar.com>2020-09-03 17:42:11 +0200
committerTamas Ban <tamas.ban@arm.com>2020-09-24 12:49:54 +0000
commit18b3bf07dca20864110cbd7987209d9338ff912a (patch)
tree184f2fe8602fd368877824e31606e65cf15ccc8a /lib
parentb8e3af0c9b9232919712d6f2c1ed91f846ee1956 (diff)
downloadtrusted-firmware-m-18b3bf07dca20864110cbd7987209d9338ff912a.tar.gz
Build: Add IAR support to new build system
Adding IAR toolchain cmake file and target files for an519, an521, musca_a, sse-200_aws, psoc64, lpcxpresso55s69 Updated a few files to discriminate between armclang/gcc and iar Removed some dead files Add patch file to mbedcrypto - this can be removed once the PR with the same changes is merged upstream Signed-off-by: Raef Coles <raef.coles@arm.com> Signed-off-by: TTornblom <thomas.tornblom@iar.com> Change-Id: I2aafff7803d0aa12f1df598b8f157e94e1f3c03f
Diffstat (limited to 'lib')
-rw-r--r--lib/ext/mbedcrypto/0007-Update_IAR_support_in_CMakeLists_txt.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/ext/mbedcrypto/0007-Update_IAR_support_in_CMakeLists_txt.patch b/lib/ext/mbedcrypto/0007-Update_IAR_support_in_CMakeLists_txt.patch
new file mode 100644
index 000000000..a3a16d982
--- /dev/null
+++ b/lib/ext/mbedcrypto/0007-Update_IAR_support_in_CMakeLists_txt.patch
@@ -0,0 +1,29 @@
+From d80105c296b616f7fa113fac8d73b0a5622a59d8 Mon Sep 17 00:00:00 2001
+From: TTornblom <thomas.tornblom@iar.com>
+Date: Thu, 16 Apr 2020 13:53:38 +0200
+Subject: [PATCH] BUILD: Update IAR support in CMakeLists.txt
+
+Applied the same change as in mbed-crypto for using this as a sub
+project with the IAR toolchain.
+
+Signed-off-by: TTornblom <thomas.tornblom@iar.com>
+---
+ CMakeLists.txt | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1e3098cd91..b71230aad3 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -159,7 +159,10 @@ if(CMAKE_COMPILER_IS_CLANG)
+ endif(CMAKE_COMPILER_IS_CLANG)
+
+ if(CMAKE_COMPILER_IS_IAR)
+- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --warn_about_c_style_casts --warnings_are_errors -Ohz")
++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --warn_about_c_style_casts")
++ set(CMAKE_C_FLAGS_RELEASE "-Ohz")
++ set(CMAKE_C_FLAGS_DEBUG "--debug -On")
++ set(CMAKE_C_FLAGS_CHECK "--warnings_are_errors")
+ endif(CMAKE_COMPILER_IS_IAR)
+
+ if(CMAKE_COMPILER_IS_MSVC)