FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/finlink/Makefile @ 143:afceeeb2cba1
Our nuc-fw is destined to become gsm-fw, so I went ahead and did the big hg mv
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Tue, 12 Nov 2013 05:35:48 +0000 |
parents | nuc-fw/finlink/Makefile@5fe5559003b7 |
children | 60afcd233b04 |
comparison
equal
deleted
inserted
replaced
142:15d5977390c2 | 143:afceeeb2cba1 |
---|---|
1 CC= arm-elf-gcc | |
2 LD= arm-elf-ld | |
3 OBJCOPY=arm-elf-objcopy | |
4 | |
5 RAM_TARGET= ramImage.srec | |
6 | |
7 LIBC_A= `${CC} -print-file-name=libc.a -mthumb-interwork` | |
8 LIBC_T= `${CC} -print-file-name=libc.a -mthumb-interwork -mthumb` | |
9 LIBGCC_A= `${CC} -print-file-name=libgcc.a -mthumb-interwork` | |
10 LIBGCC_T= `${CC} -print-file-name=libgcc.a -mthumb-interwork -mthumb` | |
11 | |
12 LOCAL_LIBS= ../riviera/librv.a ../nucleus/libplus.xip.a \ | |
13 ../nucleus/libplus.iram.a ../sprintf/libsprintf.a | |
14 | |
15 INT_PIECES= ../bsp/niq32.o | |
16 EXT_PIECES= ../bsp/xipcode.o ../serial/xipcode.o ../sysglue/xipcode.o | |
17 | |
18 all: ${RAM_TARGET} | |
19 ramImage: ${RAM_TARGET} | |
20 | |
21 iramcode.o: ${INT_PIECES} | |
22 ${LD} -r -o $@ ${INT_PIECES} | |
23 | |
24 xipcode.o: ${EXT_PIECES} | |
25 ${LD} -r -o $@ ${EXT_PIECES} | |
26 | |
27 flashImage.ld: ld-script.src flash.m4 ../include/config.m4 | |
28 m4 flash.m4 ld-script.src > $@ | |
29 | |
30 ramImage.ld: ld-script.src xram.m4 ../include/config.m4 | |
31 m4 xram.m4 ld-script.src > $@ | |
32 | |
33 ramImage.elf: iramcode.o xipcode.o ${LOCAL_LIBS} ramImage.ld | |
34 ${LD} -N -T ramImage.ld -o $@ -Map ramImage.map iramcode.o xipcode.o \ | |
35 ${LOCAL_LIBS} \ | |
36 --start-group ${LIBC_A} ${LIBGCC_A} --end-group | |
37 | |
38 ramImage.srec: ramImage.elf | |
39 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@ | |
40 | |
41 clean: | |
42 rm -f *.o *errs *core *.elf *.bin *.srec *.ld *.map | |
43 | |
44 FRC: |