diff gsm-fw/finlink/Makefile @ 168:60afcd233b04

gsm-fw: first conditionally-built feature: ETM
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 19 Nov 2013 06:06:42 +0000
parents afceeeb2cba1
children 2beb88a3d528
line wrap: on
line diff
--- a/gsm-fw/finlink/Makefile	Tue Nov 19 05:26:02 2013 +0000
+++ b/gsm-fw/finlink/Makefile	Tue Nov 19 06:06:42 2013 +0000
@@ -9,11 +9,16 @@
 LIBGCC_A=	`${CC} -print-file-name=libgcc.a -mthumb-interwork`
 LIBGCC_T=	`${CC} -print-file-name=libgcc.a -mthumb-interwork -mthumb`
 
+sinclude ../include/config.mk
+
 LOCAL_LIBS=	../riviera/librv.a ../nucleus/libplus.xip.a \
 		../nucleus/libplus.iram.a ../sprintf/libsprintf.a
 
 INT_PIECES=	../bsp/niq32.o
 EXT_PIECES=	../bsp/xipcode.o ../serial/xipcode.o ../sysglue/xipcode.o
+ifeq (${RVM_ETM_SWE},1)
+EXT_PIECES+=	../services/etm/xipcode.o
+endif
 
 all:		${RAM_TARGET}
 ramImage:	${RAM_TARGET}