diamond: close project when done
authorShawn Hoffman <godisgovernment@gmail.com>
Sat, 9 May 2020 09:16:24 +0000 (02:16 -0700)
committerShawn Hoffman <godisgovernment@gmail.com>
Sat, 9 May 2020 09:28:00 +0000 (02:28 -0700)
Avoids ".recovery file is present" prompt.

litex/build/lattice/diamond.py

index e48f4852bf383ec528302bc00607fdb2640495d3..da993c5c9df76209dc85cdfad677d417b1185d13 100644 (file)
@@ -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 -------------------------------------------------------------------------------------------