From 1c8c775502ce3abbaa6bd42b4cc55cf3f953764b Mon Sep 17 00:00:00 2001 From: Robert Lubos Date: Thu, 14 Feb 2019 09:39:32 +0100 Subject: [PATCH] modules: mbedtls: Allow to enable OpenThread optimizations OpenThread tweaks some specific mbedTLS configs for it's own need, that allows to save some RAM/ROM. Allow to set these in generic config file if OpenThread is enabled. Signed-off-by: Robert Lubos --- modules/Kconfig.tls-generic | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/Kconfig.tls-generic b/modules/Kconfig.tls-generic index 7ff449c2b18..106ce57f90e 100644 --- a/modules/Kconfig.tls-generic +++ b/modules/Kconfig.tls-generic @@ -299,6 +299,16 @@ config MBEDTLS_ENTROPY_ENABLED bool "Enable mbedTLS generic entropy pool" depends on MBEDTLS_MAC_SHA256_ENABLED || MBEDTLS_MAC_SHA512_ENABLED +config MBEDTLS_OPENTHREAD_OPTIMIZATIONS_ENABLED + bool "Enable mbedTLS optimizations for OpenThread" + depends on NET_L2_OPENTHREAD + default y if !NET_SOCKETS_SOCKOPT_TLS + help + Enable some OpenThread specific mbedTLS optimizations that allows to + save some RAM/ROM when OpenThread is used. Note, that when application + aims to use other mbedTLS services on top of OpenThread (e.g. secure + sockets), it's advised to disable this option. + config MBEDTLS_USER_CONFIG_ENABLE bool "Enable user mbedTLS config file" help