Skip to content

Commit 81e9ea5

Browse files
ioannisggalak
authored andcommitted
config: using CONFIG_MBEDTLS_USER_CONFIG_FILE as safeguard
Now using CONFIG_MBEDTLS_USER_CONFIG_FILE instead of CONFIG_MBEDTLS_USER_CONFIG_ENABLE for inclusion of user config file. The Kconfig MBEDTLS_USER_CONFIG_ENABLE setting now now determines if MBEDTLS_USER_CONFIG_FILE is visible. This removes the problem of MBEDTLS_USER_CONFIG_FILE to be stuck on its first value. Users can use MBEDTLS_USER_CONFIG_ENABLE to get the prompt and define their own value. As the CONFIG_MBEDTLS_USER_CONFIG_FILE is default promptless then we can use this setting directly as it will only be defined if another Kconfig file specifies a default value to use, or user enables: MBEDTLS_USER_CONFIG_ENABLE. Signed-off-by: Torsten Rasmussen <[email protected]> Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent 5888428 commit 81e9ea5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/mbedtls/configs/config-tls-generic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@
426426

427427
/* User config file */
428428

429-
#if defined(CONFIG_MBEDTLS_USER_CONFIG_ENABLE)
429+
#if defined(CONFIG_MBEDTLS_USER_CONFIG_FILE)
430430
#include CONFIG_MBEDTLS_USER_CONFIG_FILE
431431
#endif
432432

0 commit comments

Comments
 (0)