annotate target-utils/helloapp/Makefile @ 597:ca4433b714d2

CHANGES: fc-fsio cleaning commands documented
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 04 Feb 2020 18:22:22 +0000
parents bfddfecc52b2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 CC= arm-elf-gcc
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 CFLAGS= -Os -fno-builtin
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 CPPFLAGS=-I../include
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 LD= arm-elf-ld
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 OBJCOPY=arm-elf-objcopy
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6
520
bfddfecc52b2 target-utils: removed duplicated mygetchar.c modules
Mychaela Falconia <falcon@freecalypso.org>
parents: 516
diff changeset
7 BOOTROM_OBJS= crt0.o cmdtab.o main-bootrom.o
bfddfecc52b2 target-utils: removed duplicated mygetchar.c modules
Mychaela Falconia <falcon@freecalypso.org>
parents: 516
diff changeset
8 IRDA_OBJS= crt0.o cmdtab.o main-fixeduart.o uartbase-irda.o
bfddfecc52b2 target-utils: removed duplicated mygetchar.c modules
Mychaela Falconia <falcon@freecalypso.org>
parents: 516
diff changeset
9 MODEM_OBJS= crt0.o cmdtab.o main-fixeduart.o uartbase-modem.o
516
8bdbae4c0e53 target-utils/helloapp: build boot-ROM-based and fixed-UART versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 477
diff changeset
10
103
40dea2dbc7e6 target-utils: helloapp converted to our own libc
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
11 LIBS= ../libcommon/libcommon.a ../libprintf/libprintf.a ../libbase/libbase.a \
40dea2dbc7e6 target-utils: helloapp converted to our own libc
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
12 ../libc/libc.a
40dea2dbc7e6 target-utils: helloapp converted to our own libc
Mychaela Falconia <falcon@freecalypso.org>
parents: 0
diff changeset
13 LIBGCC= `${CC} -print-file-name=libgcc.a`
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 LDS= ../env/iram.lds
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15
516
8bdbae4c0e53 target-utils/helloapp: build boot-ROM-based and fixed-UART versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 477
diff changeset
16 all: helloapp-bootrom.srec helloapp-irda.srec helloapp-modem.srec
8bdbae4c0e53 target-utils/helloapp: build boot-ROM-based and fixed-UART versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 477
diff changeset
17
8bdbae4c0e53 target-utils/helloapp: build boot-ROM-based and fixed-UART versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 477
diff changeset
18 .SUFFIXES: .elf .srec
8bdbae4c0e53 target-utils/helloapp: build boot-ROM-based and fixed-UART versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 477
diff changeset
19
8bdbae4c0e53 target-utils/helloapp: build boot-ROM-based and fixed-UART versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 477
diff changeset
20 .elf.srec:
8bdbae4c0e53 target-utils/helloapp: build boot-ROM-based and fixed-UART versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 477
diff changeset
21 ${OBJCOPY} -O srec --srec-forceS3 --srec-len=30 $< $@
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22
477
58d3a0634272 target-utils/*/Makefile: better construct for crt0.S symlink
Mychaela Falconia <falcon@freecalypso.org>
parents: 103
diff changeset
23 crt0.S:
58d3a0634272 target-utils/*/Makefile: better construct for crt0.S symlink
Mychaela Falconia <falcon@freecalypso.org>
parents: 103
diff changeset
24 ln -s ../env/crt0.S .
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25
516
8bdbae4c0e53 target-utils/helloapp: build boot-ROM-based and fixed-UART versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 477
diff changeset
26 helloapp-bootrom.elf: ${BOOTROM_OBJS} ${LIBS} ${LDS}
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 ${LD} -N --defsym Base_addr=0x800750 --defsym stack_bottom=0x83FFFC \
516
8bdbae4c0e53 target-utils/helloapp: build boot-ROM-based and fixed-UART versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 477
diff changeset
28 -T ${LDS} -o $@ ${BOOTROM_OBJS} ${LIBS} ${LIBGCC}
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29
516
8bdbae4c0e53 target-utils/helloapp: build boot-ROM-based and fixed-UART versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 477
diff changeset
30 helloapp-irda.elf: ${IRDA_OBJS} ${LIBS} ${LDS}
8bdbae4c0e53 target-utils/helloapp: build boot-ROM-based and fixed-UART versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 477
diff changeset
31 ${LD} -N --defsym Base_addr=0x820000 --defsym stack_bottom=0x83FFFC \
8bdbae4c0e53 target-utils/helloapp: build boot-ROM-based and fixed-UART versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 477
diff changeset
32 -T ${LDS} -o $@ ${IRDA_OBJS} ${LIBS} ${LIBGCC}
8bdbae4c0e53 target-utils/helloapp: build boot-ROM-based and fixed-UART versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 477
diff changeset
33
8bdbae4c0e53 target-utils/helloapp: build boot-ROM-based and fixed-UART versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 477
diff changeset
34 helloapp-modem.elf: ${MODEM_OBJS} ${LIBS} ${LDS}
8bdbae4c0e53 target-utils/helloapp: build boot-ROM-based and fixed-UART versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 477
diff changeset
35 ${LD} -N --defsym Base_addr=0x820000 --defsym stack_bottom=0x83FFFC \
8bdbae4c0e53 target-utils/helloapp: build boot-ROM-based and fixed-UART versions
Mychaela Falconia <falcon@freecalypso.org>
parents: 477
diff changeset
36 -T ${LDS} -o $@ ${MODEM_OBJS} ${LIBS} ${LIBGCC}
0
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
37
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
38 clean:
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
39 rm -f *.o *errs *core *.elf *.bin *.srec crt0.S
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
40
e7502631a0f9 initial import from freecalypso-sw rev 1033:5ab737ac3ad7
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
41 FRC: