Add ifdef TARGET_PSA and MBEDTLS_PSA_CRYPTO_C to test file

if not supported return error
pull/9668/head
Moran Peker 2019-02-20 12:15:27 +02:00
parent 2720b5a73d
commit e12f5eeaa7
1 changed files with 5 additions and 0 deletions

View File

@ -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))