From 556392f94705d9c7b0f029fe0b46cd6fad0d722c Mon Sep 17 00:00:00 2001 From: Las Safin Date: Tue, 5 Oct 2021 12:43:46 +0000 Subject: [PATCH] ecp5-program: Delete garbage --- nix/ecp5-program.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 '' -- 2.30.2