add MBEDTLS_PSA_CRYPTO_C defined to K64F PSA target

pull/8804/head
Netanel Gonen 2018-11-27 14:02:55 +02:00
parent 819594477c
commit f1c5aeb70e
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@
#include "crypto.h" #include "crypto.h"
#include "mbed_toolchain.h" #include "mbed_toolchain.h"
#if DEVICE_TRNG #if (defined(DEVICE_TRNG) && defined(MBEDTLS_PSA_CRYPTO_C))
MBED_WEAK void trng_init(trng_t *obj) MBED_WEAK void trng_init(trng_t *obj)
{ {
@ -55,4 +55,4 @@ MBED_WEAK int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t
return 0; return 0;
} }
#endif // DEVICE_TRNG #endif // (defined(DEVICE_TRNG) && defiend(MBEDTLS_PSA_CRYPTO_C))

View File

@ -1439,7 +1439,7 @@
"PSA" "PSA"
], ],
"is_disk_virtual": true, "is_disk_virtual": true,
"macros": ["CPU_MK64FN1M0VMD12", "FSL_RTOS_MBED"], "macros": ["CPU_MK64FN1M0VMD12", "FSL_RTOS_MBED", "MBEDTLS_PSA_CRYPTO_C"],
"inherits": ["Target"], "inherits": ["Target"],
"detect_code": ["0240"], "detect_code": ["0240"],
"device_has": [ "device_has": [