fix(mbedtls): enable pthread threading by default

This commit is contained in:
Ashish Sharma
2026-02-11 17:59:04 +08:00
parent 66f39eb968
commit 8a8c4c175e
3 changed files with 9 additions and 5 deletions
+3 -3
View File
@@ -32,7 +32,7 @@ menu "mbedTLS"
config MBEDTLS_THREADING_C
bool "Enable the threading abstraction layer"
default n
default y
help
If you do intend to use contexts between threads, you will need to enable
this layer to prevent race conditions.
@@ -40,14 +40,14 @@ menu "mbedTLS"
config MBEDTLS_THREADING_ALT
bool "Enable threading alternate implementation"
depends on MBEDTLS_THREADING_C
default y
default n
help
Enable threading alt to allow your own alternate threading implementation.
config MBEDTLS_THREADING_PTHREAD
bool "Enable threading pthread implementation"
depends on MBEDTLS_THREADING_C
default n
default y
help
Enable the pthread wrapper layer for the threading layer.
@@ -4,7 +4,7 @@
# Core Configuration
CONFIG_MBEDTLS_FS_IO=y
CONFIG_MBEDTLS_THREADING_C=n
CONFIG_MBEDTLS_THREADING_C=y
CONFIG_MBEDTLS_ERROR_STRINGS=y
CONFIG_MBEDTLS_VERSION_C=n
CONFIG_MBEDTLS_HAVE_TIME=y