diff --git a/components/mbedtls/Makefile.projbuild b/components/mbedtls/Makefile.projbuild index ec9d6f2ce7..cf49f9a1d5 100644 --- a/components/mbedtls/Makefile.projbuild +++ b/components/mbedtls/Makefile.projbuild @@ -2,3 +2,7 @@ # alternative config file CPPFLAGS += -DMBEDTLS_CONFIG_FILE='"mbedtls/esp_config.h"' +# Catch usage of deprecated mbedTLS functions when building tests +ifneq ("$(TEST_COMPONENTS_LIST)","") +CPPFLAGS += -DMBEDTLS_DEPRECATED_WARNING +endif