From eeee179dd87e62c68502e5781bd43c17ce5de975 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Sat, 9 May 2020 02:16:24 -0700 Subject: [PATCH] diamond: close project when done Avoids ".recovery file is present" prompt. --- litex/build/lattice/diamond.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litex/build/lattice/diamond.py b/litex/build/lattice/diamond.py index e48f4852b..da993c5c9 100644 --- a/litex/build/lattice/diamond.py +++ b/litex/build/lattice/diamond.py @@ -104,6 +104,9 @@ def _build_tcl(device, sources, vincpaths, build_name): if _produces_jedec(device): tcl.append("prj_run Export -impl impl -task Jedecgen") + # Cleanly close the project + tcl.append("prj_project close") + tools.write_to_file(build_name + ".tcl", "\n".join(tcl)) # Script -------------------------------------------------------------------------------------------