Skip to content

Commit

Permalink
modules: mbedtls: properly guard PSA_CRYPTO_C
Browse files Browse the repository at this point in the history
Instead of silently `#undef`ing PSA_CRYPTO_C when TF-M is in use,
enforce that rule at the Kconfig level.

Signed-off-by: Tomi Fontanilles <[email protected]>
  • Loading branch information
tomi-font authored and nashif committed Jul 8, 2024
1 parent 48dd5c9 commit 83cd9f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions modules/mbedtls/Kconfig.tls-generic
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ endchoice

config MBEDTLS_PSA_CRYPTO_C
bool "Platform Security Architecture cryptography API"
depends on !BUILD_WITH_TFM
default y if UOSCORE || UEDHOC

config MBEDTLS_USE_PSA_CRYPTO
Expand Down
4 changes: 0 additions & 4 deletions modules/mbedtls/configs/config-tls-generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,4 @@
#include CONFIG_MBEDTLS_USER_CONFIG_FILE
#endif

#if defined(CONFIG_BUILD_WITH_TFM)
#undef MBEDTLS_PSA_CRYPTO_C
#endif

#endif /* MBEDTLS_CONFIG_H */

0 comments on commit 83cd9f5

Please sign in to comment.