update ota.mk for loader-program
1) When compiling the loader program, the DTLS module is no longer configured
#we need the crc
ifeq ($(CONFIG_OTA_ENABLE),y)
+ ifeq ($(CONFIG_LOADER_ENABLE),y)
+ OTA_MODULE_SRC = ${wildcard $(iot_link_root)/ota/*.c} \
+ ${wildcard $(iot_link_root)/ota/manager/pack.c}
+ else
OTA_MODULE_SRC = ${wildcard $(iot_link_root)/ota/*.c} \
${wildcard $(iot_link_root)/ota/manager/*.c}
+ endif
+
C_SOURCES += $(OTA_MODULE_SRC)
OTA_MODULE_INC = -I $(iot_link_root)/ota -I $(iot_link_root)/ota/manager
