Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 38a29a6

Browse files
author
Zhang Jun Hao
committed
feat(wolfssl): add wolfssl debug option
1 parent 8209aeb commit 38a29a6

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

components/ssl/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ config SSL_USING_WOLFSSL
1616
bool "wolfSSL"
1717
endchoice
1818

19+
menu "wolfSSL"
20+
depends on SSL_USING_WOLFSSL
21+
22+
config WOLFSSL_DEBUG
23+
bool "Enable wolfSSL debugging"
24+
default n
25+
help
26+
Enable wolfSSL debugging functions at compile time.
27+
28+
endmenu # wolfSSL
29+
1930
menu "mbedTLS"
2031
depends on SSL_USING_MBEDTLS
2132

components/ssl/component.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@
55
ifdef CONFIG_SSL_USING_WOLFSSL
66
COMPONENT_ADD_INCLUDEDIRS := wolfssl/include wolfssl/wolfssl wolfssl/wolfssl/wolfssl
77

8+
ifdef CONFIG_WOLFSSL_DEBUG
9+
WOLFSSLLIB = wolfssl_debug
10+
COMPONENT_ADD_LDFLAGS := -L $(COMPONENT_PATH)/wolfssl/lib -lwolfssl_debug
11+
else
812
WOLFSSLLIB = wolfssl
913
COMPONENT_ADD_LDFLAGS := -L $(COMPONENT_PATH)/wolfssl/lib -lwolfssl
14+
endif
1015

1116
# re-link program if wolfssl library change
1217
COMPONENT_ADD_LINKER_DEPS := $(patsubst %,$(COMPONENT_PATH)/wolfssl/lib/lib%.a,$(WOLFSSLLIB))

0 commit comments

Comments
 (0)