rm migen edit
This commit is contained in:
parent
6ba3b89701
commit
749da5a945
12
shell.nix
12
shell.nix
|
@ -34,10 +34,6 @@ let
|
||||||
set-gdb-config-file && cargo run --example ethernet
|
set-gdb-config-file && cargo run --example ethernet
|
||||||
'';
|
'';
|
||||||
|
|
||||||
editMigenScript = writeShellScriptBin "edit-migen-script" ''
|
|
||||||
nano -m migen/fpga_config.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
compileMigenScript = writeShellScriptBin "compile-migen-script" ''
|
compileMigenScript = writeShellScriptBin "compile-migen-script" ''
|
||||||
python3 migen/fpga_config.py
|
python3 migen/fpga_config.py
|
||||||
echo "Compiled fpga_config.py to top.bin"
|
echo "Compiled fpga_config.py to top.bin"
|
||||||
|
@ -65,6 +61,10 @@ let
|
||||||
echo "Reset is complete, please reset the openocd server."
|
echo "Reset is complete, please reset the openocd server."
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
openocdFlash = writeShellScriptBin "openocd-flash" ''
|
||||||
|
openocd -f openocd/openocd.cfg -f openocd/$1.cfg
|
||||||
|
'';
|
||||||
|
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "nix-shell";
|
name = "nix-shell";
|
||||||
|
@ -83,13 +83,11 @@ in
|
||||||
runOpenOcdBlock
|
runOpenOcdBlock
|
||||||
setGDBConfigFile
|
setGDBConfigFile
|
||||||
runEthernetServer
|
runEthernetServer
|
||||||
editMigenScript
|
|
||||||
compileMigenScript
|
compileMigenScript
|
||||||
flashFPGAConfig
|
flashFPGAConfig
|
||||||
configureFPGA
|
configureFPGA
|
||||||
verifyFPGAConfig
|
verifyFPGAConfig
|
||||||
resetFlash
|
resetFlash
|
||||||
|
openocdFlash
|
||||||
];
|
];
|
||||||
|
|
||||||
RUST_BACKTRACE = 1;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue