From 824deab35c5821268d17ab5a4862f5ea897c49f5 Mon Sep 17 00:00:00 2001 From: Dong Heng Date: Tue, 3 Dec 2019 19:22:22 +0800 Subject: [PATCH] fix(esp-wolfssl): fix esp-wolfssl global option error --- components/esp-wolfssl/Kconfig | 6 ++++++ components/esp-wolfssl/Makefile.projbuild | 8 ++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/components/esp-wolfssl/Kconfig b/components/esp-wolfssl/Kconfig index 0018e0e7..0c33c8d0 100644 --- a/components/esp-wolfssl/Kconfig +++ b/components/esp-wolfssl/Kconfig @@ -8,4 +8,10 @@ config ESP_WOLFSSL_INTERNAL If users want to use external wolfssl, please disable this option. +config WOLFSSL_DEBUG + bool "Enable esp-wolfssl(internal) debugging" + default n + help + Enable esp-wolfssl(internal) debugging functions at compile time. + endmenu diff --git a/components/esp-wolfssl/Makefile.projbuild b/components/esp-wolfssl/Makefile.projbuild index c6f1ff2b..1b460433 100644 --- a/components/esp-wolfssl/Makefile.projbuild +++ b/components/esp-wolfssl/Makefile.projbuild @@ -1,10 +1,6 @@ # Anyone compiling mbedTLS code needs the name of the # alternative config file -#ifdef CONFIG_SSL_USING_MBEDTLS -CPPFLAGS += -DMBEDTLS_CONFIG_FILE='"mbedtls/esp_config.h"' -#endif - -#ifdef CONFIG_SSL_USING_WOLFSSL +ifdef CONFIG_ESP_WOLFSSL_INTERNAL CPPFLAGS += -DWOLFSSL_USER_SETTINGS -#endif +endif