mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			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/10366/head
			
			
		
							parent
							
								
									cd54d2e02f
								
							
						
					
					
						commit
						e8f9faee7e
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue