compile 322 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 16 17 18 19 20 21

make
EXIT_CODE=$?

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

rm ./Drivers
rm -rf ./build/

exit EXIT_CODE