support compile without fota
@@ -152,7 +152,16 @@ LWM2M_SRC = \
ATINY_TINY_SRC = \
${wildcard $(TOP_DIR)/components/connectivity/agent_tiny/atiny_lwm2m/*.c}
+
+ifeq ($(WITH_FOTA), yes)
C_SOURCES += $(ATINY_TINY_SRC)
+else
+ ATINY_TINY_SRC_NO_FOTA = \
+ $(filter-out $(TOP_DIR)/components/connectivity/agent_tiny/atiny_lwm2m/atiny_fota_manager.c \
+ $(TOP_DIR)/components/connectivity/agent_tiny/atiny_lwm2m/atiny_fota_state.c \
+ $(TOP_DIR)/components/connectivity/agent_tiny/atiny_lwm2m/firmware_update.c, $(ATINY_TINY_SRC))
+ C_SOURCES += $(ATINY_TINY_SRC_NO_FOTA)
+endif
AGENT_DEMO_SRC = \
${wildcard $(TOP_DIR)/demos/agenttiny_lwm2m/*.c}
