diff --git a/litex/build/osfpga/osfpga.py b/litex/build/osfpga/osfpga.py index c0a4e5419..fffb16761 100644 --- a/litex/build/osfpga/osfpga.py +++ b/litex/build/osfpga/osfpga.py @@ -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.