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
diff --git a/platform/ext/cmsis/cmsis_iccarm.h b/platform/ext/cmsis/cmsis_iccarm.h
index 4020ad7..0627a15 100644
--- a/platform/ext/cmsis/cmsis_iccarm.h
+++ b/platform/ext/cmsis/cmsis_iccarm.h
@@ -7,8 +7,8 @@
//------------------------------------------------------------------------------
//
-// Copyright (c) 2017-2019 IAR Systems
-// Copyright (c) 2017-2019 Arm Limited. All rights reserved.
+// Copyright (c) 2017-2020 IAR Systems
+// Copyright (c) 2017-2019 Arm Limited. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
@@ -236,12 +236,11 @@
#endif
#endif
-#ifndef __WEAK
- #if __ICCARM_V8
- #define __WEAK __attribute__((weak))
- #else
- #define __WEAK _Pragma("__weak")
- #endif
+#undef __WEAK /* undo the definition from DLib_Defaults.h */
+#if __ICCARM_V8
+ #define __WEAK __attribute__((weak))
+#else
+ #define __WEAK _Pragma("__weak")
#endif
#ifndef __PROGRAM_START