build: start iotivity build before apps
Same purpose of commit
Somecases, apps use iotivity feature. Then, iotivity should
be built first.
@@ -80,6 +80,12 @@ endif
USERLIBS += $(LIBRARIES_DIR)$(DELIM)libexternal$(LIBEXT)
+# Add libraries for iotivity support
+
+ifeq ($(CONFIG_ENABLE_IOTIVITY),y)
+USERLIBS += $(LIBRARIES_DIR)$(DELIM)libiotivity$(LIBEXT)
+endif
+
# Add library for application support.
ifneq ($(APPDIR),)
@@ -92,12 +98,6 @@ ifeq ($(CONFIG_NET),y)
TINYARALIBS += $(LIBRARIES_DIR)$(DELIM)libnet$(LIBEXT)
endif
-# Add libraries for iotivity support
-
-ifeq ($(CONFIG_ENABLE_IOTIVITY),y)
-USERLIBS += $(LIBRARIES_DIR)$(DELIM)libiotivity$(LIBEXT)
-endif
-
# Add libraries for audio module
ifeq ($(CONFIG_AUDIO),y)
