From a977adf551281056378976c06529e02d3ab9c4c9 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 27 May 2022 19:39:42 +0200 Subject: [PATCH] build/osfpga: Add workaround to copy .init file to work directory. --- litex/build/osfpga/osfpga.py | 4 ++++ 1 file changed, 4 insertions(+) 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.