examples/make/build-core: create build directory if not existing

This commit is contained in:
Florent Kermarrec 2019-04-24 11:46:15 +02:00
parent c1d8bdf6f2
commit 7f20aa477f
1 changed files with 2 additions and 0 deletions

View File

@ -165,6 +165,8 @@ Depth: {}
platform.finalize(soc_fragment)
v_output = platform.get_verilog(soc_fragment, name="litescope",
special_overrides=xilinx_special_overrides)
if not os.path.exists("build"):
os.makedirs("build")
v_output.write("build/litescope.v")
if actions["build-bitstream"]: