Add audio directory to KERNDEPDIR and library to TINYARALIBS becuase this is in kernel-space.
KERNDEPDIRS += $(FSDIRS)
endif
+# Add Audio Module
+ifeq ($(CONFIG_AUDIO),y)
+KERNDEPDIRS += audio
+endif
+CLEANDIRS += audio
# Add networking directories to KERNDEPDIRS and CLEANDIRS
USERLIBS += $(LIBRARIES_DIR)$(DELIM)libcxx$(LIBEXT)
endif
+# Add libraries for audio support
+
+ifeq ($(CONFIG_AUDIO),y)
+TINYARALIBS += $(LIBRARIES_DIR)$(DELIM)libaudio$(LIBEXT)
+endif
+
# Add libraries for network support
ifeq ($(CONFIG_NET),y)
endif
endif
+# Add libraries for audio module
+
+ifeq ($(CONFIG_AUDIO),y)
+TINYARALIBS += $(LIBRARIES_DIR)$(DELIM)libaudio$(LIBEXT)
+endif
+
# Add libraries for power management module
ifeq ($(CONFIG_PM),y)