From 33613a85afc4b1481367fbe92a17ee59c240250b Mon Sep 17 00:00:00 2001 From: Sven Eisenhauer Date: Fri, 10 Nov 2023 15:11:48 +0100 Subject: add new repo --- .../mi2/Termin2/Aufgabe/makefile1 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Bachelor/Mikroprozessorsysteme2/mi2/Termin2/Aufgabe/makefile1 (limited to 'Bachelor/Mikroprozessorsysteme2/mi2/Termin2/Aufgabe/makefile1') diff --git a/Bachelor/Mikroprozessorsysteme2/mi2/Termin2/Aufgabe/makefile1 b/Bachelor/Mikroprozessorsysteme2/mi2/Termin2/Aufgabe/makefile1 new file mode 100644 index 0000000..4df82d6 --- /dev/null +++ b/Bachelor/Mikroprozessorsysteme2/mi2/Termin2/Aufgabe/makefile1 @@ -0,0 +1,22 @@ +FILE = Termin2Aufgabe1 +Opti = 1 + +all: +# Übersetzen der Quelldatei +# arm-elf-gcc -g -Ttext 0x2000000 -O$(Opti) $(FILE).c -I ../h + arm-elf-gcc -g -e main -Ttext 0x2000000 -O$(Opti) $(FILE).c -o $(FILE).elf -nostdlib + +# Erzeugen der Assemblerdatei aus der Quelldatei + arm-elf-gcc -S -O$(Opti) $(FILE).c + +# Ereugen der Objektdateien +# arm-elf-gcc -c -g -O$(Opti) ../boot/swi.S -o swi.o +# arm-elf-gcc -c -g -O$(Opti) ../boot/boot.S -o boot.o + +# Binden für die RAM-Version +# arm-elf-ld -Ttext 0x02000000 -O$(Opti) boot.o swi.o $(FILE).o -o $(FILE).elf + +# Binden für die FLASH-Version +# arm-elf-ld -Ttext 0x01000000 -O$(Opti) boot.o swi.o $(FILE).o -o $(FILE).out +# arm-elf-objcopy -I elf32-littlearm -O binary -x -S -N -g $(FILE).out $(FILE).rom + -- cgit v1.2.3