BugID:24057741: Add tls compile control for mbedtls hal
@@ -32,11 +32,13 @@ ifeq (y,$(strip $(SUPPORT_TLS)))
$(NAME)_COMPONENTS += itls id2 alicrypto libiot_certs
$(NAME)_SOURCES += os/HAL_TLS_itls.c
else
+ ifeq (y, $(strip $(MBEDTLS_CONFIG_TLS)))
$(NAME)_DEFINES += USE_PUBLIC_MBEDTLS
$(NAME)_COMPONENTS += mbedtls libiot_certs
$(NAME)_SOURCES += os/HAL_TLS_mbedtls.c os/dns.c
endif
endif
+endif
ifeq (y,$(strip $(COAP_COMM_ENABLED)))
ifeq (y,$(strip $(COAP_DTLS_SUPPORT)))
