netutils/mqttc: Add mbedtls configs.

MIIO-62724

Signed-off-by: LiShuzhen <lishuzhen@xiaomi.com>
This commit is contained in:
LiShuzhen 2022-09-23 09:44:42 +08:00 committed by Petro Karashchenko
parent 6f01a3b3d4
commit 4eda9bda8f
2 changed files with 8 additions and 0 deletions
netutils/mqttc

@ -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"

@ -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