compile 328 Bytes
Newer Older
1
#!/bin/bash
2

3
mv -n *.dat *.inc *.h Inc/
4 5
[ -f ./build ] && rm ./build
[ -f src/encrypt.c ] && sed -i src/encrypt.c -e "s/\(\s\)init(/\1_init(/g"
6 7
mkdir -p /tmp/f7/Drivers
ln -s /tmp/f7/Drivers Drivers
8 9 10 11 12 13 14 15

make
EXIT_CODE=$?

mv build/f7.bin .
mv build/f7.hex . 
mv build/f7.elf .

Enrico Pozzobon committed
16
rm -rf ./Drivers
17 18
rm -rf ./build/

Enrico Pozzobon committed
19 20
exit $EXIT_CODE

21 22