annotate target-utils/pirexplore/Makefile @ 881:da9a36515da6

rvinterf: log sent AT commands in ASCII form
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 01:35:33 +0000
parents e7ba9fcb3637
children 1557e15a012f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
67
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1 CC= arm-elf-gcc
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2 CFLAGS= -Os -fno-builtin
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
3 CPPFLAGS=-I../include
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
4 LD= arm-elf-ld
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
5 OBJCOPY=arm-elf-objcopy
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
6
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
7 PROG= pirexplore
206
9539929b3414 pirexplore: flashid command implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 196
diff changeset
8 OBJS= crt0.o cmdtab.o ffsparam.o flashid.o lcd.o main.o mygetchar.o rtc.o
224
2900fe603f8a beginning of MPFFS->TIFFS naming convention change
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 206
diff changeset
9 LIBS= ../libcommon/libcommon.a ../libload/libload.a ../libtiffs/libtiffs.a \
196
3daa8ebbe74d pirexplore: a bit of refactoring
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 101
diff changeset
10 ../libprintf/libprintf.a
67
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
11 LDS= ../env/iram.lds
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
12
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
13 TC_LIBS=`${CC} -print-file-name=libc.a` \
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
14 `${CC} -print-file-name=libgcc.a`
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
15
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
16 all: ${PROG}.srec
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
17
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
18 crt0.S: ../env/crt0.S
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
19 ln -s $< .
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
20
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
21 ${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: 224
diff changeset
22 ${LD} -N --defsym Base_addr=0x800750 --defsym stack_bottom=0x87FFFC \
e7ba9fcb3637 target-utils: move loadagent to 0x838000 in preparation for ramImages that
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 224
diff changeset
23 -T ${LDS} -o $@ ${OBJS} \
67
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
24 --start-group ${LIBS} --end-group \
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
25 --start-group ${TC_LIBS} --end-group
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
26
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
27 ${PROG}.srec: ${PROG}.elf
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
28 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
29
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
30 clean:
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
31 rm -f *.o *errs *core *.elf *.bin *.srec crt0.S
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
32
b8f335553000 pirexplore utility started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
33 FRC: