forked from M-Labs/nac3
add local run script
This commit is contained in:
parent
d65df2f454
commit
aff7c3a40b
|
@ -0,0 +1,21 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
impure=0
|
||||||
|
|
||||||
|
while getopts "h:i" opt; do
|
||||||
|
case "$opt" in
|
||||||
|
\?) exit 0
|
||||||
|
;;
|
||||||
|
i) impure=1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
cd openocd
|
||||||
|
if [ $impure -eq 1 ]; then
|
||||||
|
openocd -f zc706.cfg -c 'pld load 0 ../build/gateware/top.bit; load_image ../build/firmware/armv7-none-eabihf/release/szl; resume 0; exit'
|
||||||
|
else
|
||||||
|
openocd -f zc706.cfg -c 'pld load 0 ../result/top.bit; load_image ../result/szl.elf; resume 0; exit'
|
||||||
|
fi
|
|
@ -16,6 +16,7 @@ in
|
||||||
pkgs.cacert
|
pkgs.cacert
|
||||||
pkgs.cargo-xbuild
|
pkgs.cargo-xbuild
|
||||||
|
|
||||||
|
pkgs.openocd
|
||||||
pkgs.openssh pkgs.rsync
|
pkgs.openssh pkgs.rsync
|
||||||
|
|
||||||
(pkgs.python3.withPackages(ps: (with artiqpkgs; [ migen migen-axi misoc artiq ])))
|
(pkgs.python3.withPackages(ps: (with artiqpkgs; [ migen migen-axi misoc artiq ])))
|
||||||
|
|
Loading…
Reference in New Issue