FreeCalypso > hg > freecalypso-tools
annotate target-utils/flash-boot-test/Makefile @ 494:547c540448e5
CHANGES: Mot C155/156 WS=4 change documented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 24 May 2019 06:44:59 +0000 |
parents | cd900b885eb2 |
children | bfddfecc52b2 |
rev | line source |
---|---|
197
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= arm-elf-gcc |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -Os -fno-builtin |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 CPPFLAGS=-I../include |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 LD= arm-elf-ld |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 OBJCOPY=arm-elf-objcopy |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
488
cd900b885eb2
target-utils/flash-boot-test: added wd (watchdog disable) command
Mychaela Falconia <falcon@freecalypso.org>
parents:
477
diff
changeset
|
7 OBJS= vectors.o crt0.o cmdtab.o main.o mygetchar.o uartbase.o uartinit.o \ |
cd900b885eb2
target-utils/flash-boot-test: added wd (watchdog disable) command
Mychaela Falconia <falcon@freecalypso.org>
parents:
477
diff
changeset
|
8 watchdog.o |
197
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a \ |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 ../libc/libc.a |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 LIBGCC= `${CC} -print-file-name=libgcc.a` |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 LDS= ld.script |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 all: fbt-mode0.bin fbt-mode1.bin |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 |
477
58d3a0634272
target-utils/*/Makefile: better construct for crt0.S symlink
Mychaela Falconia <falcon@freecalypso.org>
parents:
200
diff
changeset
|
16 crt0.S: |
58d3a0634272
target-utils/*/Makefile: better construct for crt0.S symlink
Mychaela Falconia <falcon@freecalypso.org>
parents:
200
diff
changeset
|
17 ln -s ../env/crt0.S . |
197
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 fbt-mode0.elf: ${OBJS} magic0.o ${LIBS} ${LDS} |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 ${LD} -N -T ${LDS} -o $@ ${OBJS} magic0.o ${LIBS} ${LIBGCC} |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 fbt-mode0.bin: fbt-mode0.elf |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 ${OBJCOPY} -O binary $< $@ |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 fbt-mode1.elf: ${OBJS} magic1.o ${LIBS} ${LDS} |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 ${LD} -N -T ${LDS} -o $@ ${OBJS} magic1.o ${LIBS} ${LIBGCC} |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 fbt-mode1.bin: fbt-mode1.elf |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 ${OBJCOPY} -O binary $< $@ |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 clean: |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 rm -f *.o *errs *core *.elf *.bin *.srec crt0.S |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 |
dbb54db721d1
target-utils/flash-boot-test written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 FRC: |