mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-21 17:16:29 +08:00
feat(wolfssl): add wolfssl debug option
This commit is contained in:
@ -16,6 +16,17 @@ config SSL_USING_WOLFSSL
|
||||
bool "wolfSSL"
|
||||
endchoice
|
||||
|
||||
menu "wolfSSL"
|
||||
depends on SSL_USING_WOLFSSL
|
||||
|
||||
config WOLFSSL_DEBUG
|
||||
bool "Enable wolfSSL debugging"
|
||||
default n
|
||||
help
|
||||
Enable wolfSSL debugging functions at compile time.
|
||||
|
||||
endmenu # wolfSSL
|
||||
|
||||
menu "mbedTLS"
|
||||
depends on SSL_USING_MBEDTLS
|
||||
|
||||
|
@ -5,8 +5,13 @@
|
||||
ifdef CONFIG_SSL_USING_WOLFSSL
|
||||
COMPONENT_ADD_INCLUDEDIRS := wolfssl/include wolfssl/wolfssl wolfssl/wolfssl/wolfssl
|
||||
|
||||
ifdef CONFIG_WOLFSSL_DEBUG
|
||||
WOLFSSLLIB = wolfssl_debug
|
||||
COMPONENT_ADD_LDFLAGS := -L $(COMPONENT_PATH)/wolfssl/lib -lwolfssl_debug
|
||||
else
|
||||
WOLFSSLLIB = wolfssl
|
||||
COMPONENT_ADD_LDFLAGS := -L $(COMPONENT_PATH)/wolfssl/lib -lwolfssl
|
||||
endif
|
||||
|
||||
# re-link program if wolfssl library change
|
||||
COMPONENT_ADD_LINKER_DEPS := $(patsubst %,$(COMPONENT_PATH)/wolfssl/lib/lib%.a,$(WOLFSSLLIB))
|
||||
|
Reference in New Issue
Block a user