From 201722474a7b45bfb247c0164753979a7752de17 Mon Sep 17 00:00:00 2001 From: Ahreum Jeong Date: Thu, 14 Sep 2017 18:35:51 +0900 Subject: [PATCH] Update Directories.mk, KernelLibs.mk and ProtectedLibs.mk for audio support Add audio directory to KERNDEPDIR and library to TINYARALIBS becuase this is in kernel-space. --- os/Directories.mk | 5 +++++ os/KernelLibs.mk | 6 ++++++ os/ProtectedLibs.mk | 6 ++++++ 3 files changed, 17 insertions(+) diff --git a/os/Directories.mk b/os/Directories.mk index d4f6abf..f647b41 100644 --- a/os/Directories.mk +++ b/os/Directories.mk @@ -187,7 +187,12 @@ else KERNDEPDIRS += $(FSDIRS) endif +# Add Audio Module +ifeq ($(CONFIG_AUDIO),y) +KERNDEPDIRS += audio +endif +CLEANDIRS += audio # Add networking directories to KERNDEPDIRS and CLEANDIRS diff --git a/os/KernelLibs.mk b/os/KernelLibs.mk index aa07748..7efa57e 100644 --- a/os/KernelLibs.mk +++ b/os/KernelLibs.mk @@ -79,6 +79,12 @@ ifeq ($(CONFIG_HAVE_CXX),y) 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) diff --git a/os/ProtectedLibs.mk b/os/ProtectedLibs.mk index 5700e61..e8fe0de 100644 --- a/os/ProtectedLibs.mk +++ b/os/ProtectedLibs.mk @@ -114,6 +114,12 @@ TINYARALIBS += $(LIBRARIES_DIR)$(DELIM)libmbedcrypto$(LIBEXT) 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) -- 2.7.4