diff --git a/components/TARGET_PSA/services/crypto/COMPONENT_SPE/psa_crypto_access_control.c b/components/TARGET_PSA/services/crypto/COMPONENT_SPE/psa_crypto_access_control.c index ec7ba0aebe..84df52973e 100644 --- a/components/TARGET_PSA/services/crypto/COMPONENT_SPE/psa_crypto_access_control.c +++ b/components/TARGET_PSA/services/crypto/COMPONENT_SPE/psa_crypto_access_control.c @@ -19,7 +19,15 @@ #include "psa_crypto_access_control.h" #include "psa_crypto_slot_management.h" + +#if defined(TARGET_TFM) +#define SPM_PANIC(format, ...) \ +{ \ + while(1){}; \ +} +#else #include "spm_panic.h" +#endif typedef struct psa_crypto_access_control_s { psa_key_handle_t key_handle;