2023-02-26 19:41:10 +00:00
|
|
|
#!/bin/bash
|
2023-03-03 17:03:43 +00:00
|
|
|
set -e
|
|
|
|
python3 make.py --build --doc
|
2023-02-26 19:41:10 +00:00
|
|
|
cp build/gsd_orangecrab/gateware/gsd_orangecrab.bit gsd_orangecrab.dfu && echo "Copied .bit to .dfu"
|
2023-03-13 18:40:23 +00:00
|
|
|
dfu-suffix -v 1209 -p 5af0 -a gsd_orangecrab.dfu && echo "Added DFU suffix for target (VID:PID)"
|
|
|
|
# rm -f /mnt/c/Users/suple/Desktop/dfu-util-0.9-win64/gsd.dfu && echo "Deleted old Win11 DFU"
|
|
|
|
# mv gsd_orangecrab.dfu /mnt/c/Users/suple/Desktop/dfu-util-0.9-win64/gsd.dfu && echo "Moved new DFU to Win11 Desktop"
|
2023-05-12 13:06:41 +00:00
|
|
|
rm -r docs/ && echo "Deleted old docs in project root"
|
2023-03-03 17:03:43 +00:00
|
|
|
cp -r build/gsd_orangecrab/doc/_build/html docs/ && echo "Copied docs to project root"
|
2023-05-12 13:06:41 +00:00
|
|
|
python3 demo/demo.py --build-path build/gsd_orangecrab/
|
|
|
|
rm -f demo/*.o demo/*.d demo/demo.bin demo/demo.elf demo/demo.elf.map && echo "Cleaned up build artifacts"
|