Commit 109f2dd1 authored by William D. Jones's avatar William D. Jones Committed by Sébastien Bourdeauducq
Browse files

lattice/icestorm: Separate build script header from commands.

parent a12c7718
...@@ -38,12 +38,12 @@ def _run_icestorm(source, build_template, build_name, pnr_pkg_opts, ...@@ -38,12 +38,12 @@ def _run_icestorm(source, build_template, build_name, pnr_pkg_opts,
if sys.platform == "win32" or sys.platform == "cygwin": if sys.platform == "win32" or sys.platform == "cygwin":
script_ext = ".bat" script_ext = ".bat"
shell = ["cmd", "/c"] shell = ["cmd", "/c"]
build_script_contents = "@echo off\nrem Autogenerated by Migen\n" build_script_contents = "@echo off\nrem Autogenerated by Migen\n\n"
fail_stmt = " || exit /b" fail_stmt = " || exit /b"
else: else:
script_ext = ".sh" script_ext = ".sh"
shell = ["bash"] shell = ["bash"]
build_script_contents = "# Autogenerated by Migen\nset -e\n" build_script_contents = "# Autogenerated by Migen\nset -e\n\n"
fail_stmt = "" fail_stmt = ""
for s in build_template: for s in build_template:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment