blob: ff54938818954caa9e3513709ef59a4eb6f442f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Vorschlag eines Makefile zu Termin5 WS2004
FILE = Termin5Aufgabe3
Opti = 0
all:
# �bersetzen der Quelldatei
arm-elf-gcc -c -g -O$(Opti) $(FILE).c -I ../h
# Erzeugen der Assemblerdatei aus der Quelldatei
arm-elf-gcc -S -o$(Opti) $(FILE).c -I ../h
# Erzeugen der ben�titgen Objektdateien
arm-elf-gcc -c -g -O$(Opti) ../boot/swi.S -o swi.o -I ../h
# eigener SoftWareInterrupt-Handler
arm-elf-gcc -c -g -O$(Opti) swi.S -o swi.o -I ../h
arm-elf-gcc -c -g -O$(Opti) ../boot/boot_ice.S -o boot_ice.o -I ../h
arm-elf-gcc -c -g -O$(Opti) ../boot/boot_flash.S -o boot_flash.o -I ../h
arm-elf-gcc -c -g -O$(Opti) seriell.S -I ../h
arm-elf-gcc -c -g -O$(Opti) ser_io.S -I ../h
arm-elf-gcc -c -g -O$(Opti) boot.S -I ../h
# Binden f�r die RAM-Version
arm-elf-ld -Ttext 0x02000000 -O$(Opti) boot_ice.o swi.o seriell.o ser_io.o $(FILE).o -o $(FILE).elf /gnutools/lib/gcc-lib/arm-elf/3.3.2/libgcc.a
# arm-elf-ld -Ttext 0x02000000 -O$(Opti) boot_ice.o swi.o $(FILE).o -o $(FILE).elf /gnutools/lib/gcc-lib/arm-elf/3.3.2/libgcc.a
# arm-elf-ld -Ttext 0x02000000 -O$(Opti) boot_ice.o swi.o $(FILE).o -o $(FILE).elf
# Linkerskripte noch nicht getestet
# arm-elf-ld -T ldscript.ram boot.o swi.o seriell.o ser_io.o swi.o $(FILE).o -o $(FILE).elf /gnutools/lib/gcc-lib/arm-elf/3.2.2/libgcc.a
# Binden f�r die FLASH-Version
# arm-elf-ld -Ttext 0x1000000 boot.o swi.o $(FILE).o -o $(FILE).out /gnutools/lib/gcc-lib/arm-elf/3.3.2/libgcc.a
# arm-elf-ld -Ttext 0x1000000 boot_flash.o swi.o $(FILE).o -o $(FILE).out
# Linkerskripte noch nicht getestet
# arm-elf-ld -T ldscript.rom boot.o seriell.o ser_io.o swi.o $(FILE).o -o $(FILE).out /gnutools/lib/gcc-lib/arm-elf/3.2.2/libgcc.a
# -I --input-target <bfdname> Assume input file is in format <bfdname>
# -O --output-target <bfdname> Create an output file in format <bfdname>
# -S --strip-all Remove all symbol and relocation information
# -x --discard-all Remove all non-global symbols
# -N --strip-symbol <name> Do not copy symbol <name>
# -O --output-target <bfdname> Create an output file in format <bfdname>
# -g --strip-debug Remove all debugging symbols
# arm-elf-objcopy -I elf32-littlearm -O binary -x -S -N -g $(FILE).out $(FILE).rom
# programm.rom nach /tftpboot/downlaod.bin kopieren <cp name.rom /tftpboot/download.bin>
# Jumper E7 mu� auf STD stecken
# Mit <telnet 141.100.xxx.xxx> mit dem BDI2000 verbinden.
# mit <erase 0x1100000> flash-Bereich l�schen
# mit <prog 0x1100000 download.bin bin> Programm ins flash schreiben.
#
#
clean:
rm *.o
rm *.s
rm *.elf
rm *.rom
|