Fix attestation main to check PSA target before includes

pull/9668/head
Moran Peker 2019-02-27 11:23:44 +02:00
parent 7dd58b99cc
commit e819b23638
1 changed files with 4 additions and 4 deletions

View File

@ -16,6 +16,10 @@
* limitations under the License.
*/
#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
#error [NOT_SUPPORTED] Mbed Crypto is OFF - skipping.
#endif // TARGET_PSA
#include "greentea-client/test_env.h"
#include "unity/unity.h"
#include "utest/utest.h"
@ -27,10 +31,6 @@
#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))