mirror of
https://github.com/supleed2/EIE4-FYP.git
synced 2024-11-10 04:15:49 +00:00
Fix build script, incorrectly traps on ERR
This commit is contained in:
parent
d057017052
commit
5f657cb46b
4
build.sh
4
build.sh
|
@ -19,10 +19,12 @@ rm -f demo/*.o demo/*.d demo/demo.elf demo/demo.elf.map && echo "Cleaned up buil
|
||||||
read -p "Flash OrangeCrab? [y/N]" -n 1 -r FLASH_OC
|
read -p "Flash OrangeCrab? [y/N]" -n 1 -r FLASH_OC
|
||||||
if [[ $FLASH_OC =~ ^[Yy]$ ]]; then
|
if [[ $FLASH_OC =~ ^[Yy]$ ]]; then
|
||||||
echo # Move to next line
|
echo # Move to next line
|
||||||
|
set +e
|
||||||
dfu-util -D gsd_orangecrab.dfu
|
dfu-util -D gsd_orangecrab.dfu
|
||||||
|
set -e
|
||||||
else echo "Skipping Reflash"
|
else echo "Skipping Reflash"
|
||||||
fi
|
fi
|
||||||
read -p "Start litex_term? [y/N]" -n 1 -r START_LT
|
read -p "Start litex_term? [y/N]" -n 1 -r START_LT
|
||||||
if [[ $START_LT =~ ^[Yy]$ ]]; then
|
if [[ $START_LT =~ ^[Yy]$ ]]; then
|
||||||
litex_term --kernel demo.bin /dev/ttyACM0
|
litex_term --kernel kernel.bin /dev/ttyACM0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue