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.

(cherry picked from commit d3f7abdb7c)
pull/12949/head
Michael Schwarcz 2019-01-03 13:03:33 +02:00 committed by Martin Kojtal
parent 856989d5d4
commit 58af676e9c
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