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

(Cherry picked from d0a43b8af0)
pull/7875/head
Deepika 2018-03-28 11:31:18 -05:00 committed by Russ Butler
parent ace5df9079
commit fb354752eb
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,8 @@
* limitations under the License.
*/
#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
#include "RTE_Components.h"
#include CMSIS_device_header
#include "tz_context.h"
@ -198,3 +200,4 @@ uint32_t TZ_StoreContext_S (TZ_MemoryId_t id) {
return 1U; // Success
}
#endif