Skip to content

Commit

Permalink
libero: add dummy Makefile
Browse files Browse the repository at this point in the history
fusesoc relies on the Makefile timestamp to know if it should rerun the
setup stage. Add a dummy file so that one can launch build and run
stages without having to destroy and regenerate a project.

This should be removed when updating libero to the flow api.

Signed-off-by: Liam Beguin <[email protected]>
  • Loading branch information
liambeguin committed Jul 15, 2024
1 parent 13b364d commit 1cce9f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions edalize/libero.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ def configure_main(self):
escaped_name = self.name.replace(".", "_")
self._run_libero(script=escaped_name + "-project.tcl")

# FIXME: fusesoc relies on the Makefile timestamp
makefile = os.path.join(self.work_root, 'Makefile')
open(makefile, 'a').close()

def src_file_filter(self, f):
file_types = {
"verilogSource": "-hdl_source {",
Expand Down

0 comments on commit 1cce9f3

Please sign in to comment.