Skip to content

Commit 5a62fe9

Browse files
SebastianBoejukkar
authored andcommitted
[nrf noup] modules: mbedtls: Allow MBEDTLS_BUILTIN to be deselected
Out-of-tree crypto subsystems need to deselect MBEDTLS_BUILTIN, but deselection is not supported. It is however supported to select a dependency in a ! expression. Signed-off-by: Sebastian Bøe <[email protected]> (cherry picked from commit e261976) (cherry picked from commit 906921d)
1 parent 676d548 commit 5a62fe9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/mbedtls/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ choice MBEDTLS_IMPLEMENTATION
2828

2929
config MBEDTLS_BUILTIN
3030
bool "Use Zephyr in-tree mbedTLS version"
31+
depends on ! DISABLE_MBEDTLS_BUILTIN
3132
help
3233
Link with mbedTLS sources included with Zephyr distribution.
3334
Included mbedTLS version is well integrated with and supported
@@ -41,6 +42,11 @@ config MBEDTLS_LIBRARY
4142

4243
endchoice
4344

45+
# subsystems cannot deselect MBEDTLS_BUILTIN, but they can select
46+
# DISABLE_MBEDTLS_BUILTIN.
47+
config DISABLE_MBEDTLS_BUILTIN
48+
bool
49+
4450
config CUSTOM_MBEDTLS_CFG_FILE
4551
bool "Custom mbed TLS configuration file"
4652
help

0 commit comments

Comments
 (0)