-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathppas.sh
executable file
·28 lines (28 loc) · 1.22 KB
/
ppas.sh
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
#!/bin/sh
DoExitAsm ()
{ echo "An error occurred while assembling $1"; exit 1; }
DoExitLink ()
{ echo "An error occurred while linking $1"; exit 1; }
echo Assembling mwindows
/usr/bin/arm-none-eabi-as -mfloat-abi=hard -meabi=5 -march=armv7-a -mfpu=vfpv3 -o /home/pi/ultibo-retro-gui/lib/arm-ultibo/mwindows.o /home/pi/ultibo-retro-gui/lib/arm-ultibo/mwindows.s
if [ $? != 0 ]; then DoExitAsm mwindows; fi
echo Assembling gltest2
/usr/bin/arm-none-eabi-as -mfloat-abi=hard -meabi=5 -march=armv7-a -mfpu=vfpv3 -o /home/pi/ultibo-retro-gui/lib/arm-ultibo/gltest2.o /home/pi/ultibo-retro-gui/lib/arm-ultibo/gltest2.s
if [ $? != 0 ]; then DoExitAsm gltest2; fi
echo Assembling project1
/usr/bin/arm-none-eabi-as -mfloat-abi=hard -meabi=5 -march=armv7-a -mfpu=vfpv3 -o /home/pi/ultibo-retro-gui/lib/arm-ultibo/Project1.o /home/pi/ultibo-retro-gui/lib/arm-ultibo/Project1.s
if [ $? != 0 ]; then DoExitAsm project1; fi
echo Linking Project1
OFS=$IFS
IFS="
"
/usr/bin/arm-none-eabi-ld -g --gc-sections -L. -o Project1.elf -T link.res
if [ $? != 0 ]; then DoExitLink Project1; fi
IFS=$OFS
echo Linking Project1
OFS=$IFS
IFS="
"
/usr/bin/arm-none-eabi-objcopy -O binary Project1.elf kernel7.img
if [ $? != 0 ]; then DoExitLink Project1; fi
IFS=$OFS