From: Florent Kermarrec Date: Mon, 3 Nov 2014 09:39:12 +0000 (+0100) Subject: xilinx_vivado: use REM for comment on Windows X-Git-Tag: 24jan2021_ls180~2099^2~264 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b87ad1af636bf111233fe75a30c05172a5ace24a;p=litex.git xilinx_vivado: use REM for comment on Windows --- diff --git a/mibuild/xilinx_vivado.py b/mibuild/xilinx_vivado.py index abf6ec93..8e7cfc7f 100644 --- a/mibuild/xilinx_vivado.py +++ b/mibuild/xilinx_vivado.py @@ -68,13 +68,14 @@ def _build_files(device, sources, vincpaths, build_name, bitstream_compression): tools.write_to_file(build_name + ".tcl", "\n".join(tcl)) def _run_vivado(build_name, vivado_path, source, ver=None): - build_script_contents = "# Autogenerated by mibuild\nset -e\n" if sys.platform == "win32" or sys.platform == "cygwin": + build_script_contents = "REM Autogenerated by mibuild\n" build_script_contents += "vivado -mode batch -source " + build_name + ".tcl\n" build_script_file = "build_" + build_name + ".bat" tools.write_to_file(build_script_file, build_script_contents) r = subprocess.call([build_script_file]) else: + build_script_contents = "# Autogenerated by mibuild\nset -e\n" settings = xilinx_common.settings(vivado_path, ver) build_script_contents += "source " + settings + "\n" build_script_contents += "vivado -mode batch -source " + build_name + ".tcl\n"