annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
80
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1 CC= arm-elf-gcc
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2 LD= arm-elf-ld
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
3 OBJCOPY=arm-elf-objcopy
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
4
81
147861b15cda nuc-fw: ramImage.srec built, nucdemo runs
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 80
diff changeset
5 RAM_TARGET= ramImage.srec
80
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
6
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
7 LIBC_A= `${CC} -print-file-name=libc.a -mthumb-interwork`
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
8 LIBC_T= `${CC} -print-file-name=libc.a -mthumb-interwork -mthumb`
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
9 LIBGCC_A= `${CC} -print-file-name=libgcc.a -mthumb-interwork`
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
10 LIBGCC_T= `${CC} -print-file-name=libgcc.a -mthumb-interwork -mthumb`
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
11
168
60afcd233b04 gsm-fw: first conditionally-built feature: ETM
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 143
diff changeset
12 sinclude ../include/config.mk
60afcd233b04 gsm-fw: first conditionally-built feature: ETM
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 143
diff changeset
13
137
5fe5559003b7 RV bring-up: RVT "system time" heartbeat messages now get printed every 20 s!
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 132
diff changeset
14 LOCAL_LIBS= ../riviera/librv.a ../nucleus/libplus.xip.a \
5fe5559003b7 RV bring-up: RVT "system time" heartbeat messages now get printed every 20 s!
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 132
diff changeset
15 ../nucleus/libplus.iram.a ../sprintf/libsprintf.a
489
2a26785fb5a2 gsm-fw: GPF included in the build with feature gpf, link successful
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 310
diff changeset
16 COND_LOCAL_LIBS=
2a26785fb5a2 gsm-fw: GPF included in the build with feature gpf, link successful
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 310
diff changeset
17
2a26785fb5a2 gsm-fw: GPF included in the build with feature gpf, link successful
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 310
diff changeset
18 ifeq (${CONFIG_GPF},1)
2a26785fb5a2 gsm-fw: GPF included in the build with feature gpf, link successful
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 310
diff changeset
19 COND_LOCAL_LIBS+= --start-group ../gpf/libs/libgpf.xip.a \
2a26785fb5a2 gsm-fw: GPF included in the build with feature gpf, link successful
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 310
diff changeset
20 ../gpf/libs/libgpf.iram.a --end-group
2a26785fb5a2 gsm-fw: GPF included in the build with feature gpf, link successful
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 310
diff changeset
21 endif
80
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
22
132
2c5160a9d652 nuc-fw: switched from nucdemo to Riviera, got some serial output
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 128
diff changeset
23 INT_PIECES= ../bsp/niq32.o
219
2beb88a3d528 gsm-fw links with FFS included
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 168
diff changeset
24 EXT_PIECES= ../bsp/xipcode.o ../serial/xipcode.o ../sysglue/xipcode.o \
310
083f262b7bbe gsm-fw: disabled DAR links
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 219
diff changeset
25 ../services/ffs/xipcode.o ../services/dar/xipcode.o
489
2a26785fb5a2 gsm-fw: GPF included in the build with feature gpf, link successful
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 310
diff changeset
26 ifeq (${CONFIG_GPF},1)
2a26785fb5a2 gsm-fw: GPF included in the build with feature gpf, link successful
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 310
diff changeset
27 EXT_PIECES+= ../gpf/conf/xipcode.o
2a26785fb5a2 gsm-fw: GPF included in the build with feature gpf, link successful
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 310
diff changeset
28 endif
168
60afcd233b04 gsm-fw: first conditionally-built feature: ETM
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 143
diff changeset
29 ifeq (${RVM_ETM_SWE},1)
60afcd233b04 gsm-fw: first conditionally-built feature: ETM
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 143
diff changeset
30 EXT_PIECES+= ../services/etm/xipcode.o
60afcd233b04 gsm-fw: first conditionally-built feature: ETM
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 143
diff changeset
31 endif
80
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
32
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
33 all: ${RAM_TARGET}
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
34 ramImage: ${RAM_TARGET}
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
35
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
36 iramcode.o: ${INT_PIECES}
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
37 ${LD} -r -o $@ ${INT_PIECES}
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
38
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
39 xipcode.o: ${EXT_PIECES}
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
40 ${LD} -r -o $@ ${EXT_PIECES}
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
41
92
f459043fae0c nuc-fw config: ld script generation implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
42 flashImage.ld: ld-script.src flash.m4 ../include/config.m4
f459043fae0c nuc-fw config: ld script generation implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
43 m4 flash.m4 ld-script.src > $@
f459043fae0c nuc-fw config: ld script generation implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
44
f459043fae0c nuc-fw config: ld script generation implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
45 ramImage.ld: ld-script.src xram.m4 ../include/config.m4
f459043fae0c nuc-fw config: ld script generation implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
46 m4 xram.m4 ld-script.src > $@
f459043fae0c nuc-fw config: ld script generation implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
47
f459043fae0c nuc-fw config: ld script generation implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
48 ramImage.elf: iramcode.o xipcode.o ${LOCAL_LIBS} ramImage.ld
f459043fae0c nuc-fw config: ld script generation implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
49 ${LD} -N -T ramImage.ld -o $@ -Map ramImage.map iramcode.o xipcode.o \
489
2a26785fb5a2 gsm-fw: GPF included in the build with feature gpf, link successful
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 310
diff changeset
50 ${COND_LOCAL_LIBS} ${LOCAL_LIBS} \
80
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
51 --start-group ${LIBC_A} ${LIBGCC_A} --end-group
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
52
81
147861b15cda nuc-fw: ramImage.srec built, nucdemo runs
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 80
diff changeset
53 ramImage.srec: ramImage.elf
147861b15cda nuc-fw: ramImage.srec built, nucdemo runs
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 80
diff changeset
54 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@
147861b15cda nuc-fw: ramImage.srec built, nucdemo runs
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 80
diff changeset
55
80
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
56 clean:
92
f459043fae0c nuc-fw config: ld script generation implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
57 rm -f *.o *errs *core *.elf *.bin *.srec *.ld *.map
80
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
58
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
59 FRC: