From 4eda9bda8f4871174b0bd7c02e5dad43ae3a94bb Mon Sep 17 00:00:00 2001 From: LiShuzhen Date: Fri, 23 Sep 2022 09:44:42 +0800 Subject: [PATCH] netutils/mqttc: Add mbedtls configs. MIIO-62724 Signed-off-by: LiShuzhen --- netutils/mqttc/Kconfig | 4 ++++ netutils/mqttc/Make.defs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/netutils/mqttc/Kconfig b/netutils/mqttc/Kconfig index de2001e19..a76d0b2f0 100644 --- a/netutils/mqttc/Kconfig +++ b/netutils/mqttc/Kconfig @@ -11,6 +11,10 @@ config NETUTILS_MQTTC if NETUTILS_MQTTC +config NETUTILS_MQTTC_WITH_MBEDTLS + bool "Enable MQTT-C with mbedtls" + default n + config NETUTILS_MQTTC_VERSION string "MQTT-C Version" default "1.1.5" diff --git a/netutils/mqttc/Make.defs b/netutils/mqttc/Make.defs index 155950aec..7dbeb0035 100644 --- a/netutils/mqttc/Make.defs +++ b/netutils/mqttc/Make.defs @@ -26,4 +26,8 @@ CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" \ CXXFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" \ $(APPDIR)/netutils/mqttc/MQTT-C/include} +ifneq ($(CONFIG_NETUTILS_MQTTC_WITH_MBEDTLS),) +CFLAGS += -DMQTT_USE_MBEDTLS +endif + endif