Skip to content

Commit d3f7abd

Browse files
author
Michael Schwarcz
committed
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.
1 parent 7addb80 commit d3f7abd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmsis/TARGET_CORTEX_M/mbed_tz_context.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
* limitations under the License.
2323
*/
2424

25+
#if !TARGET_TFM
26+
2527
#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
2628

2729
#include "RTE_Components.h"
@@ -201,3 +203,5 @@ uint32_t TZ_StoreContext_S (TZ_MemoryId_t id) {
201203
return 1U; // Success
202204
}
203205
#endif
206+
207+
#endif // !TARGET_TFM

0 commit comments

Comments
 (0)