mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-25 02:57:33 +08:00
feat(ssl): Restructure ssl folder
Put mbedtls, axtls, openssl to ssl, also add kconfig to choose ssl library. Default use mbedtls.
This commit is contained in:
@ -1,6 +0,0 @@
|
||||
#
|
||||
# Component Makefile
|
||||
#
|
||||
COMPONENT_ADD_INCLUDEDIRS += include/ssl
|
||||
|
||||
COMPONENT_SRCDIRS := source/ssl source/crypto
|
@ -1,8 +0,0 @@
|
||||
#
|
||||
# Component Makefile
|
||||
#
|
||||
COMPONENT_ADD_INCLUDEDIRS += include/mbedtls
|
||||
|
||||
COMPONENT_SRCDIRS += source/library source/platform
|
||||
|
||||
CFLAGS += -DMBEDTLS_CONFIG_FILE='"config_esp.h"'
|
@ -1,6 +0,0 @@
|
||||
#
|
||||
# Component Makefile
|
||||
#
|
||||
COMPONENT_ADD_INCLUDEDIRS += include/openssl include/internal include/platform
|
||||
|
||||
COMPONENT_SRCDIRS := source/library source/platform
|
17
components/ssl/Kconfig
Normal file
17
components/ssl/Kconfig
Normal file
@ -0,0 +1,17 @@
|
||||
menu "SSL"
|
||||
|
||||
choice SSL_LIBRARY_CHOOSE
|
||||
prompt "Choose SSL/TLS library"
|
||||
default SSL_USING_MBEDTLS
|
||||
help
|
||||
Choose the SSL/TLS library which you want to use.
|
||||
|
||||
Currently we support mbedTLS and axTLS.
|
||||
|
||||
config SSL_USING_MBEDTLS
|
||||
bool "mbedTLS"
|
||||
config SSL_USING_AXTLS
|
||||
bool "axTLS"
|
||||
endchoice
|
||||
|
||||
endmenu
|
6
components/ssl/Makefile.projbuild
Normal file
6
components/ssl/Makefile.projbuild
Normal file
@ -0,0 +1,6 @@
|
||||
# Anyone compiling mbedTLS code needs the name of the
|
||||
# alternative config file
|
||||
|
||||
#ifdef CONFIG_SSL_USING_MBEDTLS
|
||||
CPPFLAGS += -DMBEDTLS_CONFIG_FILE='"mbedtls/config_esp.h"'
|
||||
#endif
|
15
components/ssl/component.mk
Normal file
15
components/ssl/component.mk
Normal file
@ -0,0 +1,15 @@
|
||||
#
|
||||
# Component Makefile
|
||||
#
|
||||
COMPONENT_ADD_INCLUDEDIRS := openssl/include
|
||||
COMPONENT_PRIV_INCLUDEDIRS := openssl/include/internal openssl/include/openssl openssl/include/platform
|
||||
|
||||
COMPONENT_SRCDIRS := openssl/source/library openssl/source/platform
|
||||
|
||||
ifdef CONFIG_SSL_USING_MBEDTLS
|
||||
COMPONENT_ADD_INCLUDEDIRS += mbedtls/include
|
||||
COMPONENT_SRCDIRS += mbedtls/source/library mbedtls/source/platform
|
||||
else
|
||||
COMPONENT_ADD_INCLUDEDIRS += axtls/include
|
||||
COMPONENT_SRCDIRS += axtls/source/ssl axtls/source/crypto
|
||||
endif
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user