From: Shawn Hoffman Date: Sat, 9 May 2020 09:16:24 +0000 (-0700) Subject: diamond: close project when done X-Git-Tag: 24jan2021_ls180~360^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eeee179dd87e62c68502e5781bd43c17ce5de975;p=litex.git diamond: close project when done Avoids ".recovery file is present" prompt. --- diff --git a/litex/build/lattice/diamond.py b/litex/build/lattice/diamond.py index e48f4852..da993c5c 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 -------------------------------------------------------------------------------------------