From c25f899c5f05438658f836849dcb4198abec7d92 Mon Sep 17 00:00:00 2001 From: Tomi Fontanilles Date: Mon, 20 Apr 2026 14:30:01 +0300 Subject: [PATCH] [nrf noup] modules: mbedtls: check Kconfig options, not macros nrf-squash! [nrf noup] modules: mbedtls: revert removal of deprecated options Macros are not yet defined because config-mbedtls.h, which includes config-tf-psa-crypto.h, is the one defining them but only after the include. Signed-off-by: Tomi Fontanilles --- modules/mbedtls/configs/config-tf-psa-crypto.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mbedtls/configs/config-tf-psa-crypto.h b/modules/mbedtls/configs/config-tf-psa-crypto.h index 321e40760e20..542ebb8d2c29 100644 --- a/modules/mbedtls/configs/config-tf-psa-crypto.h +++ b/modules/mbedtls/configs/config-tf-psa-crypto.h @@ -296,8 +296,8 @@ #define MBEDTLS_BIGNUM_C #endif -#if defined(MBEDTLS_RSA_C) || \ - defined(MBEDTLS_X509_USE_C) +#if defined(CONFIG_MBEDTLS_RSA_C) || \ + defined(CONFIG_MBEDTLS_X509_USE_C) #define MBEDTLS_OID_C #endif