From 7f20aa477fcf55aa2975097aa0025e72d5b60d10 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 24 Apr 2019 11:46:15 +0200 Subject: [PATCH] examples/make/build-core: create build directory if not existing --- examples/make.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/make.py b/examples/make.py index 3379880..c7d4896 100755 --- a/examples/make.py +++ b/examples/make.py @@ -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"]: