annotate target-utils/loadagent/Makefile @ 893:fa119e49673b

gsm-fw/L1/cust0/Makefile: compile pirelli.c XIP module with -mthumb
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 29 Jun 2015 23:00:49 +0000
parents e7ba9fcb3637
children 5cff3579814c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1 CC= arm-elf-gcc
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2 CFLAGS= -Os -fno-builtin
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
3 CPPFLAGS=-I../include
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
4 LD= arm-elf-ld
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
5 OBJCOPY=arm-elf-objcopy
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
6
378
3164604a6c70 install compalstage-*.bin and loadagent.srec from target-utils
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 41
diff changeset
7 INSTDIR=/usr/local/share/freecalypso
3164604a6c70 install compalstage-*.bin and loadagent.srec from target-utils
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 41
diff changeset
8
19
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
9 PROG= loadagent
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
10 OBJS= crt0.o cmdtab.o main.o mygetchar.o
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
11 LIBS= ../libcommon/libcommon.a ../libload/libload.a ../libprintf/libprintf.a
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
12 LDS= ../env/iram.lds
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
13
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
14 TC_LIBS=`${CC} -print-file-name=libc.a` \
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
15 `${CC} -print-file-name=libgcc.a`
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
16
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
17 all: ${PROG}.srec
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
18
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
19 crt0.S: ../env/crt0.S
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
20 ln -s $< .
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
21
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
22 ${PROG}.elf: ${OBJS} ${LIBS} ${LDS}
629
e7ba9fcb3637 target-utils: move loadagent to 0x838000 in preparation for ramImages that
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 386
diff changeset
23 ${LD} -N --defsym Base_addr=0x838000 --defsym stack_bottom=0x83FFFC \
e7ba9fcb3637 target-utils: move loadagent to 0x838000 in preparation for ramImages that
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 386
diff changeset
24 -T ${LDS} -o $@ ${OBJS} \
19
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
25 --start-group ${LIBS} --end-group \
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
26 --start-group ${TC_LIBS} --end-group
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
27
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
28 ${PROG}.srec: ${PROG}.elf
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
29 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
30
378
3164604a6c70 install compalstage-*.bin and loadagent.srec from target-utils
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 41
diff changeset
31 install:
386
90af6744d256 make install in target-utils: do mkdir -p before the install command
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 378
diff changeset
32 mkdir -p ${INSTDIR}
378
3164604a6c70 install compalstage-*.bin and loadagent.srec from target-utils
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 41
diff changeset
33 install -c ${PROG}.srec ${INSTDIR}
3164604a6c70 install compalstage-*.bin and loadagent.srec from target-utils
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 41
diff changeset
34
19
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
35 clean:
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
36 rm -f *.o *errs *core *.elf *.bin *.srec crt0.S
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
37
c0e063494194 loadagent built with memory dump commands
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
38 FRC: