comparison gsm-fw/finlink/Makefile @ 489:2a26785fb5a2

gsm-fw: GPF included in the build with feature gpf, link successful
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 29 Jun 2014 22:37:29 +0000
parents 083f262b7bbe
children 06ab60fec942
comparison
equal deleted inserted replaced
488:e8ed76bbf556 489:2a26785fb5a2
11 11
12 sinclude ../include/config.mk 12 sinclude ../include/config.mk
13 13
14 LOCAL_LIBS= ../riviera/librv.a ../nucleus/libplus.xip.a \ 14 LOCAL_LIBS= ../riviera/librv.a ../nucleus/libplus.xip.a \
15 ../nucleus/libplus.iram.a ../sprintf/libsprintf.a 15 ../nucleus/libplus.iram.a ../sprintf/libsprintf.a
16 COND_LOCAL_LIBS=
17
18 ifeq (${CONFIG_GPF},1)
19 COND_LOCAL_LIBS+= --start-group ../gpf/libs/libgpf.xip.a \
20 ../gpf/libs/libgpf.iram.a --end-group
21 endif
16 22
17 INT_PIECES= ../bsp/niq32.o 23 INT_PIECES= ../bsp/niq32.o
18 EXT_PIECES= ../bsp/xipcode.o ../serial/xipcode.o ../sysglue/xipcode.o \ 24 EXT_PIECES= ../bsp/xipcode.o ../serial/xipcode.o ../sysglue/xipcode.o \
19 ../services/ffs/xipcode.o ../services/dar/xipcode.o 25 ../services/ffs/xipcode.o ../services/dar/xipcode.o
26 ifeq (${CONFIG_GPF},1)
27 EXT_PIECES+= ../gpf/conf/xipcode.o
28 endif
20 ifeq (${RVM_ETM_SWE},1) 29 ifeq (${RVM_ETM_SWE},1)
21 EXT_PIECES+= ../services/etm/xipcode.o 30 EXT_PIECES+= ../services/etm/xipcode.o
22 endif 31 endif
23 32
24 all: ${RAM_TARGET} 33 all: ${RAM_TARGET}
36 ramImage.ld: ld-script.src xram.m4 ../include/config.m4 45 ramImage.ld: ld-script.src xram.m4 ../include/config.m4
37 m4 xram.m4 ld-script.src > $@ 46 m4 xram.m4 ld-script.src > $@
38 47
39 ramImage.elf: iramcode.o xipcode.o ${LOCAL_LIBS} ramImage.ld 48 ramImage.elf: iramcode.o xipcode.o ${LOCAL_LIBS} ramImage.ld
40 ${LD} -N -T ramImage.ld -o $@ -Map ramImage.map iramcode.o xipcode.o \ 49 ${LD} -N -T ramImage.ld -o $@ -Map ramImage.map iramcode.o xipcode.o \
41 ${LOCAL_LIBS} \ 50 ${COND_LOCAL_LIBS} ${LOCAL_LIBS} \
42 --start-group ${LIBC_A} ${LIBGCC_A} --end-group 51 --start-group ${LIBC_A} ${LIBGCC_A} --end-group
43 52
44 ramImage.srec: ramImage.elf 53 ramImage.srec: ramImage.elf
45 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@ 54 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@
46 55