Skip to content

Commit

Permalink
examples/make/build-core: create build directory if not existing
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Apr 24, 2019
1 parent c1d8bdf commit 7f20aa4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ def _get_args():
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"]:
Expand Down

0 comments on commit 7f20aa4

Please sign in to comment.