build/osfpga: Add workaround to copy .init file to work directory.

This commit is contained in:
Florent Kermarrec 2022-05-27 19:39:42 +02:00
parent c401bdd7f1
commit a977adf551
1 changed files with 4 additions and 0 deletions

View File

@ -97,6 +97,10 @@ class OSFPGAToolchain:
v_output.write(v_file)
platform.add_source(v_file)
# Copy .init files to work directory; FIXME.
os.makedirs(build_name, exist_ok=True)
os.system(f"cp *.init {build_name}")
# Generate constraints file.
# IOs.
# TODO.