summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Escande <thierry.escande@linaro.org>2019-02-06 11:40:28 +0100
committerThierry Escande <thierry.escande@linaro.org>2019-02-07 11:14:10 +0100
commit208211dd3910bb6bec00af68cb9009e05ea309c1 (patch)
tree070221bd1726ef286c82bcd9041b8757e83c10f3
parent008692898944847da2abe7bdc724509e3daa999e (diff)
fastrpc: Add build support for cdsp domain
Add support to build libcdsprpc.so library and cdsprpcd daemon. Signed-off-by: Thierry Escande <thierry.escande@linaro.org>
-rw-r--r--src/lib/Makefile.am27
-rw-r--r--src/utils/Makefile.am8
2 files changed, 34 insertions, 1 deletions
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
index f8d43df..82c6095 100644
--- a/src/lib/Makefile.am
+++ b/src/lib/Makefile.am
@@ -24,3 +24,30 @@ libadsprpc_la_SOURCES = fastrpc_apps_user.c \
libadsprpc_la_LDFLAGS = -ldl -lpthread -lm -shared
libadsprpc_la_CFLAGS = -I$(top_srcdir)/include -O3 -Iinc -fPIC -fno-short-enums -D_DEBUG -DARM_ARCH_7 -DUSE_SYSLOG
+
+cdsprpcdir = $(libdir)
+
+cdsprpc_LTLIBRARIES = libcdsprpc.la
+libcdsprpc_la_SOURCES = fastrpc_apps_user.c \
+ remotectl_stub.c \
+ listener.c \
+ adsp_current_process_stub.c \
+ apps_std_skel.c \
+ apps_std_imp.c \
+ apps_mem_imp.c \
+ apps_mem_skel.c \
+ rpcmem.c \
+ apps_remotectl_skel.c \
+ std.c \
+ std_mem.c \
+ std_path.c \
+ std_dtoa.c \
+ std_strlprintf.c \
+ BufBound.c \
+ std_SwapBytes.c \
+ smath.c \
+ atomic.c \
+ cae.c
+
+libcdsprpc_la_LDFLAGS = -ldl -lpthread -lm -shared
+libcdsprpc_la_CFLAGS = -I$(top_srcdir)/include -O3 -Iinc -fPIC -fno-short-enums -D_DEBUG -DARM_ARCH_7 -DUSE_SYSLOG -DCDSP_DOMAIN
diff --git a/src/utils/Makefile.am b/src/utils/Makefile.am
index 52290e6..8017a37 100644
--- a/src/utils/Makefile.am
+++ b/src/utils/Makefile.am
@@ -1,7 +1,13 @@
-bin_PROGRAMS = adsprpcd
+bin_PROGRAMS = adsprpcd cdsprpcd
adsprpcd_SOURCES = adsprpcd.c adsp_default_listener_stub.c
adsprpcd_CFLAGS = -I$(top_srcdir)/include
adsprpcd_LDADD = $(top_builddir)/src/lib/libadsprpc.la -lpthread -lm -ldl
+
+cdsprpcd_SOURCES = $(adsprpcd_SOURCES)
+
+cdsprpcd_CFLAGS = $(adsprpcd_CFLAGS)
+
+cdsprpcd_LDADD = $(top_builddir)/src/lib/libcdsprpc.la -lpthread -lm -ldl