Skip to content

Commit c5014f4

Browse files
authored
Merge pull request #9324 from kfnta/avoid_mbed_tz_context
Avoid building mbed_tz_context.c for TF-M targets
2 parents 116e42f + 1e8169d commit c5014f4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
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

tools/importer/cmsis_importer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@
150150
"287121ffdc4c9c19f9ce8872e4edd941862daca1",
151151
"b228cd9db0b7ed79d99f1d9be15d512791f367cc",
152152
"1752803626865147dca92f30a39cef8d04581736",
153-
"6a6e3ac0ebab1a6b6aa08d0928702c79562acee9"
153+
"6a6e3ac0ebab1a6b6aa08d0928702c79562acee9",
154+
"fb354752eb69403ad503c8e53da67da6483776d6",
155+
"d3f7abdb7c109517e6a71daed8bae63ad6436afc"
154156
]
155157
}
156158

0 commit comments

Comments
 (0)