diff options
| author | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
|---|---|---|
| committer | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
| commit | 33613a85afc4b1481367fbe92a17ee59c240250b (patch) | |
| tree | 670b842326116b376b505ec2263878912fca97e2 /Bachelor/Mikroprozessorsysteme2/mi2/Termin6/makefile | |
| download | Studium-master.tar.gz Studium-master.tar.bz2 | |
Diffstat (limited to 'Bachelor/Mikroprozessorsysteme2/mi2/Termin6/makefile')
| -rw-r--r-- | Bachelor/Mikroprozessorsysteme2/mi2/Termin6/makefile | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/Bachelor/Mikroprozessorsysteme2/mi2/Termin6/makefile b/Bachelor/Mikroprozessorsysteme2/mi2/Termin6/makefile new file mode 100644 index 0000000..9cf7745 --- /dev/null +++ b/Bachelor/Mikroprozessorsysteme2/mi2/Termin6/makefile @@ -0,0 +1,52 @@ +FILE = Termin6Aufgabe1 +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) swi.S -o swi.o -I ../h + arm-elf-gcc -c -g -O$(Opti) ../boot/boot.s -o boot.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 -o seriell.o -I ../h + arm-elf-gcc -c -g -O$(Opti) ser_io.S -o ser_io.o -I ../h + +# Binden für die RAM-Version + arm-elf-ld -Ttext 0x02000000 -O$(Opti) boot.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 + +# 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 /usr/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 |
