annotate gsm-fw/finlink/Makefile @ 1034:405b5469abc4 default tip

top README: repository change notice
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 12 Jun 2016 19:06:34 +0000
parents 62ca61292b77
children
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
633
da72b51c0572 gsm-fw/finlink: flashImage support added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 597
diff changeset
5 FLASH_TARGET= flashImage.bin
81
147861b15cda nuc-fw: ramImage.srec built, nucdemo runs
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 80
diff changeset
6 RAM_TARGET= ramImage.srec
80
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
7
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
8 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
9 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
10 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
11 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
12
168
60afcd233b04 gsm-fw: first conditionally-built feature: ETM
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 143
diff changeset
13 sinclude ../include/config.mk
60afcd233b04 gsm-fw: first conditionally-built feature: ETM
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 143
diff changeset
14
490
06ab60fec942 gsm-fw/gpf/tst_pei/tst_pei.c: use FFS_O_RDONLY when reading tracemask file
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 489
diff changeset
15 BASE_LIBS= ../riviera/librv.a ../nucleus/libplus.xip.a \
860
cbc49d533b7d gsm-fw: new implementation of bzero() and some specialized bcopy variants
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 848
diff changeset
16 ../nucleus/libplus.iram.a ../sprintf/libsprintf.a \
cbc49d533b7d gsm-fw: new implementation of bzero() and some specialized bcopy variants
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 848
diff changeset
17 ../libiram/libiram.a
490
06ab60fec942 gsm-fw/gpf/tst_pei/tst_pei.c: use FFS_O_RDONLY when reading tracemask file
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 489
diff changeset
18 LIB_DEPEND= ${BASE_LIBS}
489
2a26785fb5a2 gsm-fw: GPF included in the build with feature gpf, link successful
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 310
diff changeset
19
671
210268d8e553 gsm-fw: comlib included in the build along with ccd
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 658
diff changeset
20 ifeq (${CONFIG_INCLUDE_PS},1)
843
7666dd5df2bc gsm-fw: libgdi.a added to the link with CONFIG_INCLUDE_PS
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 822
diff changeset
21 PS_LIBS= ../g23m-aci/dti/libdti.a ../g23m-glue/gdi/libgdi.a \
7666dd5df2bc gsm-fw: libgdi.a added to the link with CONFIG_INCLUDE_PS
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 822
diff changeset
22 ../comlib/comlib.a ../ccd/libccd.a
671
210268d8e553 gsm-fw: comlib included in the build along with ccd
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 658
diff changeset
23 LIB_LINK_ORDER+=${PS_LIBS}
210268d8e553 gsm-fw: comlib included in the build along with ccd
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 658
diff changeset
24 LIB_DEPEND+= ${PS_LIBS}
658
46e5c90fd0b8 gsm-fw: ccd hooked into the build
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 642
diff changeset
25 endif
46e5c90fd0b8 gsm-fw: ccd hooked into the build
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 642
diff changeset
26
637
0677a6fbb8b6 gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 633
diff changeset
27 ifeq (${CONFIG_INCLUDE_GPF},1)
490
06ab60fec942 gsm-fw/gpf/tst_pei/tst_pei.c: use FFS_O_RDONLY when reading tracemask file
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 489
diff changeset
28 GPF_LIBS= ../gpf/libs/libgpf.xip.a ../gpf/libs/libgpf.iram.a
06ab60fec942 gsm-fw/gpf/tst_pei/tst_pei.c: use FFS_O_RDONLY when reading tracemask file
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 489
diff changeset
29 LIB_LINK_ORDER+= --start-group ${GPF_LIBS} --end-group
06ab60fec942 gsm-fw/gpf/tst_pei/tst_pei.c: use FFS_O_RDONLY when reading tracemask file
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 489
diff changeset
30 LIB_DEPEND+= ${GPF_LIBS}
489
2a26785fb5a2 gsm-fw: GPF included in the build with feature gpf, link successful
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 310
diff changeset
31 endif
80
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
32
899
ab20a5e9dbf3 gsm-fw/L1/dsp code made into a library in preparation for adding patch codes
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 865
diff changeset
33 ifeq (${CONFIG_INCLUDE_L1},1)
ab20a5e9dbf3 gsm-fw/L1/dsp code made into a library in preparation for adding patch codes
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 865
diff changeset
34 LIB_LINK_ORDER+=../L1/dsp/libdsp.a
ab20a5e9dbf3 gsm-fw/L1/dsp code made into a library in preparation for adding patch codes
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 865
diff changeset
35 LIB_DEPEND+= ../L1/dsp/libdsp.a
ab20a5e9dbf3 gsm-fw/L1/dsp code made into a library in preparation for adding patch codes
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 865
diff changeset
36 endif
ab20a5e9dbf3 gsm-fw/L1/dsp code made into a library in preparation for adding patch codes
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 865
diff changeset
37
490
06ab60fec942 gsm-fw/gpf/tst_pei/tst_pei.c: use FFS_O_RDONLY when reading tracemask file
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 489
diff changeset
38 LIB_LINK_ORDER+= ${BASE_LIBS}
06ab60fec942 gsm-fw/gpf/tst_pei/tst_pei.c: use FFS_O_RDONLY when reading tracemask file
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 489
diff changeset
39 LIB_LINK_ORDER+= --start-group ${LIBC_A} ${LIBGCC_A} --end-group
06ab60fec942 gsm-fw/gpf/tst_pei/tst_pei.c: use FFS_O_RDONLY when reading tracemask file
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 489
diff changeset
40
597
8be182dd9218 gsm-fw: INT_{Dis,En}ableIRQ() functions implemented (needed by L1 code)
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 595
diff changeset
41 INT_PIECES= ../bsp/iramcode.o
219
2beb88a3d528 gsm-fw links with FFS included
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 168
diff changeset
42 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
43 ../services/ffs/xipcode.o ../services/dar/xipcode.o
939
62ca61292b77 gsm-fw: Intel single bank flash driver (Compal) compiles and links
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents: 899
diff changeset
44 ifeq (${FLASH_IS_INTEL_ONEBANK},1)
62ca61292b77 gsm-fw: Intel single bank flash driver (Compal) compiles and links
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents: 899
diff changeset
45 INT_PIECES+= ../services/ffs/intelsbdrv.o
62ca61292b77 gsm-fw: Intel single bank flash driver (Compal) compiles and links
Mychaela Falconia <falcon@ivan.Harhan.ORG>
parents: 899
diff changeset
46 endif
637
0677a6fbb8b6 gsm-fw: CONFIG_INCLUDE_xxx reworked in preparation for G23 integration
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 633
diff changeset
47 ifeq (${CONFIG_INCLUDE_GPF},1)
489
2a26785fb5a2 gsm-fw: GPF included in the build with feature gpf, link successful
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 310
diff changeset
48 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
49 endif
595
3b4dce7dac06 gsm-fw/finlink/Makefile: link L1 when enabled
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 490
diff changeset
50 ifeq (${CONFIG_INCLUDE_L1},1)
3b4dce7dac06 gsm-fw/finlink/Makefile: link L1 when enabled
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 490
diff changeset
51 INT_PIECES+= ../L1/iramcode.o
3b4dce7dac06 gsm-fw/finlink/Makefile: link L1 when enabled
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 490
diff changeset
52 EXT_PIECES+= ../L1/xipcode.o
3b4dce7dac06 gsm-fw/finlink/Makefile: link L1 when enabled
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 490
diff changeset
53 endif
822
2d3f29ef866d gsm-fw: first attempt to link with g23m-aci and g23m-gsm included
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 671
diff changeset
54 ifeq (${CONFIG_INCLUDE_PS},1)
2d3f29ef866d gsm-fw: first attempt to link with g23m-aci and g23m-gsm included
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 671
diff changeset
55 EXT_PIECES+= ../g23m-aci/xipcode.o ../g23m-gsm/xipcode.o
848
8227a33397de gtamodem-gsm flashImage links with cst included!
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 843
diff changeset
56 EXT_PIECES+= ../g23m-glue/cst/xipcode.o
822
2d3f29ef866d gsm-fw: first attempt to link with g23m-aci and g23m-gsm included
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 671
diff changeset
57 endif
642
b039cafc8e31 PCM integration: linking
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 637
diff changeset
58 ifeq (${CONFIG_INCLUDE_PCM},1)
b039cafc8e31 PCM integration: linking
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 637
diff changeset
59 EXT_PIECES+= ../services/pcm/xipcode.o
b039cafc8e31 PCM integration: linking
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 637
diff changeset
60 endif
168
60afcd233b04 gsm-fw: first conditionally-built feature: ETM
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 143
diff changeset
61 ifeq (${RVM_ETM_SWE},1)
60afcd233b04 gsm-fw: first conditionally-built feature: ETM
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 143
diff changeset
62 EXT_PIECES+= ../services/etm/xipcode.o
60afcd233b04 gsm-fw: first conditionally-built feature: ETM
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 143
diff changeset
63 endif
865
f5affe83ba2d lldbg hack (poor girl's substitute for JTAG) implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 860
diff changeset
64 ifeq (${CONFIG_LLDBG},1)
f5affe83ba2d lldbg hack (poor girl's substitute for JTAG) implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 860
diff changeset
65 EXT_PIECES+= ../lldbg/xipcode.o
f5affe83ba2d lldbg hack (poor girl's substitute for JTAG) implemented
Space Falcon <falcon@ivan.Harhan.ORG>
parents: 860
diff changeset
66 endif
80
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
67
633
da72b51c0572 gsm-fw/finlink: flashImage support added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 597
diff changeset
68 flashImage: ${FLASH_TARGET}
80
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
69 ramImage: ${RAM_TARGET}
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
70
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
71 iramcode.o: ${INT_PIECES}
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
72 ${LD} -r -o $@ ${INT_PIECES}
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
73
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
74 xipcode.o: ${EXT_PIECES}
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
75 ${LD} -r -o $@ ${EXT_PIECES}
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
76
92
f459043fae0c nuc-fw config: ld script generation implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
77 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
78 m4 flash.m4 ld-script.src > $@
f459043fae0c nuc-fw config: ld script generation implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
79
633
da72b51c0572 gsm-fw/finlink: flashImage support added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 597
diff changeset
80 flashImage.elf: iramcode.o xipcode.o ../sysglue/flashboot.o ${LIB_DEPEND} \
da72b51c0572 gsm-fw/finlink: flashImage support added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 597
diff changeset
81 flashImage.ld
da72b51c0572 gsm-fw/finlink: flashImage support added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 597
diff changeset
82 ${LD} -N -T flashImage.ld -o $@ -Map flashImage.map \
da72b51c0572 gsm-fw/finlink: flashImage support added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 597
diff changeset
83 iramcode.o xipcode.o ../sysglue/flashboot.o \
da72b51c0572 gsm-fw/finlink: flashImage support added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 597
diff changeset
84 ${LIB_LINK_ORDER}
da72b51c0572 gsm-fw/finlink: flashImage support added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 597
diff changeset
85
da72b51c0572 gsm-fw/finlink: flashImage support added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 597
diff changeset
86 flashImage.bin: flashImage.elf
da72b51c0572 gsm-fw/finlink: flashImage support added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 597
diff changeset
87 ${OBJCOPY} -O binary $< $@
da72b51c0572 gsm-fw/finlink: flashImage support added
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 597
diff changeset
88
92
f459043fae0c nuc-fw config: ld script generation implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
89 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
90 m4 xram.m4 ld-script.src > $@
f459043fae0c nuc-fw config: ld script generation implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
91
490
06ab60fec942 gsm-fw/gpf/tst_pei/tst_pei.c: use FFS_O_RDONLY when reading tracemask file
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 489
diff changeset
92 ramImage.elf: iramcode.o xipcode.o ${LIB_DEPEND} ramImage.ld
92
f459043fae0c nuc-fw config: ld script generation implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
93 ${LD} -N -T ramImage.ld -o $@ -Map ramImage.map iramcode.o xipcode.o \
490
06ab60fec942 gsm-fw/gpf/tst_pei/tst_pei.c: use FFS_O_RDONLY when reading tracemask file
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 489
diff changeset
94 ${LIB_LINK_ORDER}
80
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
95
81
147861b15cda nuc-fw: ramImage.srec built, nucdemo runs
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 80
diff changeset
96 ramImage.srec: ramImage.elf
147861b15cda nuc-fw: ramImage.srec built, nucdemo runs
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 80
diff changeset
97 ${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
98
80
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
99 clean:
92
f459043fae0c nuc-fw config: ld script generation implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 81
diff changeset
100 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
101
39b1c369b67f nuc-fw: links to an ELF image
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
102 FRC: