CMSIS/RTX: Patch to conditionally compile

tz_context.c should be compiled only for secure world,
definition of API's in tz_context.h should be part of secure
binary/bootloader when building mbed-os as non-secure
pull/6483/head
Deepika 2018-03-28 11:31:18 -05:00 committed by deepikabhavnani
parent 4043d95396
commit d0a43b8af0
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,8 @@
*
*---------------------------------------------------------------------------*/
#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
#include "RTE_Components.h"
#include CMSIS_device_header
#include "tz_context.h"
@ -201,3 +203,4 @@ uint32_t TZ_StoreContext_S (TZ_MemoryId_t id) {
return 1U; // Success
}
#endif