Ensure that MBEDTLS_USE_PSA_CRYPTO is only defined when it should be

MBEDTLS_USE_PSA_CRYPTO should only be defined in Mbed OS when the
appropriate Mbed OS flags are set.
pull/13191/head
Darryl Green 2020-06-25 14:24:25 +01:00
parent 077f4c3d46
commit a3af4305bc
1 changed files with 4 additions and 0 deletions

View File

@ -123,6 +123,10 @@ conf unset MBEDTLS_PLATFORM_TIME_TYPE_MACRO
# which should fit RSA 4096 bit keys.
conf set MBEDTLS_MPI_MAX_SIZE 512
# Explicitly unset MBEDTLS_USE_PSA_CRYPTO as this will be set based on the
# FEATURE_PSA flag in Mbed OS
conf unset MBEDTLS_USE_PSA_CRYPTO
# add an #ifndef to include config-no-entropy.h when the target does not have
# an entropy source we can use.
append_code \