CMSIS/CORTEX-M: Don't build mbed_tz_context.c in TF-M targets

- TF-M v8m secure-side implements their own TZ context APIs so need to avoid building the Mbed implementation.
pull/9324/head
Michael Schwarcz 2019-01-03 13:03:33 +02:00
parent 7addb8032f
commit d3f7abdb7c
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,8 @@
* limitations under the License.
*/
#if !TARGET_TFM
#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
#include "RTE_Components.h"
@ -201,3 +203,5 @@ uint32_t TZ_StoreContext_S (TZ_MemoryId_t id) {
return 1U; // Success
}
#endif
#endif // !TARGET_TFM