forked from M-Labs/humpback-dds
nix: simplify
This commit is contained in:
parent
0b01b9f090
commit
235ddaaf39
29
shell.nix
29
shell.nix
|
@ -30,30 +30,6 @@ let
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
runEthernetServer = writeShellScriptBin "run-ethernet-server" ''
|
|
||||||
set-gdb-config-file && cargo run --example ethernet
|
|
||||||
'';
|
|
||||||
|
|
||||||
compileMigenScript = writeShellScriptBin "compile-migen-script" ''
|
|
||||||
python3 migen/fpga_config.py
|
|
||||||
echo "Compiled fpga_config.py to top.bin"
|
|
||||||
'';
|
|
||||||
|
|
||||||
flashFPGAConfig = writeShellScriptBin "flash-fpga-config" ''
|
|
||||||
openocd-flash fpga-config
|
|
||||||
'';
|
|
||||||
|
|
||||||
configureFPGA = writeShellScriptBin "configure-fpga" ''
|
|
||||||
compile-migen-script \
|
|
||||||
&& cargo build --example fpga_config \
|
|
||||||
&& flash-fpga-config
|
|
||||||
'';
|
|
||||||
|
|
||||||
resetFlash = writeShellScriptBin "reset-flash" ''
|
|
||||||
gdb -batch -x gdb_config/reset.gdb
|
|
||||||
echo "Reset is complete, please reset the openocd server."
|
|
||||||
'';
|
|
||||||
|
|
||||||
openocdFlash = writeShellScriptBin "openocd-flash" ''
|
openocdFlash = writeShellScriptBin "openocd-flash" ''
|
||||||
openocd -f openocd/openocd.cfg -f openocd/$1.cfg
|
openocd -f openocd/openocd.cfg -f openocd/$1.cfg
|
||||||
'';
|
'';
|
||||||
|
@ -79,11 +55,6 @@ in
|
||||||
runOpenOcd
|
runOpenOcd
|
||||||
runOpenOcdBlock
|
runOpenOcdBlock
|
||||||
setGDBConfigFile
|
setGDBConfigFile
|
||||||
runEthernetServer
|
|
||||||
compileMigenScript
|
|
||||||
flashFPGAConfig
|
|
||||||
configureFPGA
|
|
||||||
resetFlash
|
|
||||||
openocdFlash
|
openocdFlash
|
||||||
publishMqtt
|
publishMqtt
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue