changeset 642:b039cafc8e31

PCM integration: linking
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Wed, 03 Sep 2014 17:42:09 +0000
parents e60f51f747f5
children d779078abe40
files gsm-fw/finlink/Makefile gsm-fw/services/Makefile gsm-fw/services/pcm/Makefile
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/finlink/Makefile	Wed Sep 03 17:31:21 2014 +0000
+++ b/gsm-fw/finlink/Makefile	Wed Sep 03 17:42:09 2014 +0000
@@ -35,6 +35,9 @@
 INT_PIECES+=	../L1/iramcode.o
 EXT_PIECES+=	../L1/xipcode.o
 endif
+ifeq (${CONFIG_INCLUDE_PCM},1)
+EXT_PIECES+=	../services/pcm/xipcode.o
+endif
 ifeq (${RVM_ETM_SWE},1)
 EXT_PIECES+=	../services/etm/xipcode.o
 endif
--- a/gsm-fw/services/Makefile	Wed Sep 03 17:31:21 2014 +0000
+++ b/gsm-fw/services/Makefile	Wed Sep 03 17:42:09 2014 +0000
@@ -1,8 +1,11 @@
 sinclude ../include/config.mk
 
-ALL_SUBDIR=	dar etm ffs
+ALL_SUBDIR=	dar etm ffs pcm
 
 BUILD_SUBDIR=	dar ffs
+ifeq (${CONFIG_INCLUDE_PCM},1)
+BUILD_SUBDIR+=	pcm
+endif
 ifeq (${RVM_ETM_SWE},1)
 BUILD_SUBDIR+=	etm
 endif
--- a/gsm-fw/services/pcm/Makefile	Wed Sep 03 17:31:21 2014 +0000
+++ b/gsm-fw/services/pcm/Makefile	Wed Sep 03 17:42:09 2014 +0000
@@ -6,9 +6,12 @@
 
 HDRS=	pcm.h
 
-all:	${OBJS}
+all:	xipcode.o
 
 ${OBJS}:	${HDRS}
 
+xipcode.o:	${OBJS}
+	${LD} -r -o $@ ${OBJS}
+
 clean:
 	rm -f *.[oa] *errs