Skip to content

Commit 96ee857

Browse files
valeriosettitomi-font
authored andcommitted
config_psa: include legacy module adjusting in MCUBOOT
MCUboot has its own version of the PSA Crypto core, named "thin_psa_crypto_core.c" which is included in MCUboot's build process when the MCUBOOT_USE_PSA_CRYPTO build symbol is set. MCUBOOT_USE_PSA_CRYPTO mimics what MBEDTLS_PSA_CRYPTO_C does for the official Mbed TLS, so we need to replicate this symbol in "config_psa.h" in order to get the proper PSA builtin support. Signed-off-by: Valerio Setti <vsetti@baylibre.com> (cherry picked from commit b9b26b7) Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
1 parent 3eb9b8e commit 96ee857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/mbedtls/config_psa.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* before we deduce what built-ins are required. */
3535
#include "psa/crypto_adjust_config_key_pair_types.h"
3636

37-
#if defined(MBEDTLS_PSA_CRYPTO_C)
37+
#if defined(MBEDTLS_PSA_CRYPTO_C) || defined(MCUBOOT_USE_PSA_CRYPTO)
3838
/* If we are implementing PSA crypto ourselves, then we want to enable the
3939
* required built-ins. Otherwise, PSA features will be provided by the server. */
4040
#include "mbedtls/config_adjust_legacy_from_psa.h"

0 commit comments

Comments
 (0)