From 067400cdd24574258d6fa39fadd338b9a3167121 Mon Sep 17 00:00:00 2001 From: Wu Jian Gang Date: Thu, 12 Apr 2018 18:02:39 +0800 Subject: [PATCH] feat(ssl): Make current openssl wrap enabled when using mbedTLS --- components/ssl/component.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/ssl/component.mk b/components/ssl/component.mk index 209bf29f..cda5bda0 100644 --- a/components/ssl/component.mk +++ b/components/ssl/component.mk @@ -1,15 +1,16 @@ # # Component Makefile # + +ifdef CONFIG_SSL_USING_MBEDTLS 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 +COMPONENT_ADD_INCLUDEDIRS := axtls/include +COMPONENT_SRCDIRS := axtls/source/ssl axtls/source/crypto endif \ No newline at end of file