examples/make/build-core: create build directory if not existing
This commit is contained in:
parent
c1d8bdf6f2
commit
7f20aa477f
|
@ -165,6 +165,8 @@ Depth: {}
|
||||||
platform.finalize(soc_fragment)
|
platform.finalize(soc_fragment)
|
||||||
v_output = platform.get_verilog(soc_fragment, name="litescope",
|
v_output = platform.get_verilog(soc_fragment, name="litescope",
|
||||||
special_overrides=xilinx_special_overrides)
|
special_overrides=xilinx_special_overrides)
|
||||||
|
if not os.path.exists("build"):
|
||||||
|
os.makedirs("build")
|
||||||
v_output.write("build/litescope.v")
|
v_output.write("build/litescope.v")
|
||||||
|
|
||||||
if actions["build-bitstream"]:
|
if actions["build-bitstream"]:
|
||||||
|
|
Loading…
Reference in New Issue