Skip to content

Commit f1c5aeb

Browse files
author
Netanel Gonen
committed
add MBEDTLS_PSA_CRYPTO_C defined to K64F PSA target
1 parent 8195944 commit f1c5aeb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

features/mbedtls/platform/TARGET_PSA/COMPONENT_NSPE/src/psa_hrng.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "crypto.h"
2020
#include "mbed_toolchain.h"
2121

22-
#if DEVICE_TRNG
22+
#if (defined(DEVICE_TRNG) && defined(MBEDTLS_PSA_CRYPTO_C))
2323

2424
MBED_WEAK void trng_init(trng_t *obj)
2525
{
@@ -55,4 +55,4 @@ MBED_WEAK int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t
5555
return 0;
5656
}
5757

58-
#endif // DEVICE_TRNG
58+
#endif // (defined(DEVICE_TRNG) && defiend(MBEDTLS_PSA_CRYPTO_C))

targets/targets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@
14391439
"PSA"
14401440
],
14411441
"is_disk_virtual": true,
1442-
"macros": ["CPU_MK64FN1M0VMD12", "FSL_RTOS_MBED"],
1442+
"macros": ["CPU_MK64FN1M0VMD12", "FSL_RTOS_MBED", "MBEDTLS_PSA_CRYPTO_C"],
14431443
"inherits": ["Target"],
14441444
"detect_code": ["0240"],
14451445
"device_has": [

0 commit comments

Comments
 (0)