From: Las Safin Date: Tue, 5 Oct 2021 12:43:46 +0000 (+0000) Subject: ecp5-program: Delete garbage X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=556392f94705d9c7b0f029fe0b46cd6fad0d722c;p=soc.git ecp5-program: Delete garbage --- diff --git a/nix/ecp5-program.nix b/nix/ecp5-program.nix index fdf6c683..09ce2194 100644 --- a/nix/ecp5-program.nix +++ b/nix/ecp5-program.nix @@ -12,10 +12,14 @@ writeShellScript "program-ecp5-libresoc" '' export PATH="${openocd}/bin:${pythonWithEnv}/bin:${trellis}/bin:${nextpnr}/bin:$PATH" dir="$(mktemp -d)" - cd "$dir" + pushd "$dir" echo "$dir" export PYTHONPATH="${../src/soc/litex/florent}:$PYTHONPATH" python ${../src/soc/litex/florent/versa_ecp5.py} --sys-clk-freq=55e6 --load-from ${libresoc-ecp5} + + popd + rm -rf "$dir" + exit 0 ''