diff --git a/TESTS/psa/attestation/main.cpp b/TESTS/psa/attestation/main.cpp index 7bf382624c..b3265d79fc 100755 --- a/TESTS/psa/attestation/main.cpp +++ b/TESTS/psa/attestation/main.cpp @@ -26,6 +26,11 @@ #include "entropy.h" #include "entropy_poll.h" + +#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C))) +#error [NOT_SUPPORTED] Mbed Crypto is OFF - skipping. +#endif // TARGET_PSA + /* MAX value support macro */ #if !defined(MAX) #define MAX(a,b) (((a)>(b))?(a):(b))