diff gsm-fw/L1/cust0/Makefile @ 542:9dd6ca16f13d

gsm-fw/L1/cust0: split between IRAM and XIP code
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 03 Aug 2014 04:59:30 +0000
parents 1affe428bf72
children 2dccd2b4e5a2
line wrap: on
line diff
--- a/gsm-fw/L1/cust0/Makefile	Sat Aug 02 04:22:36 2014 +0000
+++ b/gsm-fw/L1/cust0/Makefile	Sun Aug 03 04:59:30 2014 +0000
@@ -4,9 +4,22 @@
 CFLAGS=	-O2 -fno-builtin -mthumb-interwork
 LD=	arm-elf-ld
 
-IOBJS=	ind_os.o l1_cust.o l1_rf12.o
+IOBJS=	ind_os.o l1_cust_iram.o
+XOBJS=	l1_cust_xip.o l1_rf12.o
+
+all:	iramcode.o xipcode.o
+
+l1_cust_iram.o:	l1_cust.c
+	${CC} ${CFLAGS} ${CPPFLAGS} -DRUN_INT_RAM -c -o $@ $<
 
-all:	${IOBJS}
+l1_cust_xip.o:	l1_cust.c
+	${CC} ${CFLAGS} ${CPPFLAGS} -DRUN_FLASH -c -o $@ $<
+
+iramcode.o:	${IOBJS}
+	${LD} -r -o $@ ${IOBJS}
+
+xipcode.o:	${XOBJS}
+	${LD} -r -o $@ ${XOBJS}
 
 clean:
 	rm -f *.[oa] *.out *errs