build.plat: remove TemplatedPlatform.unix_interpreter.

Vendor toolchains generally require far more workarounds than this,
and we already have a perfectly fine way of overriding templates.
This commit is contained in:
whitequark 2019-08-21 21:02:05 +00:00
parent 1fc63a62c0
commit 25b280dba1
2 changed files with 7 additions and 11 deletions

View file

@ -76,6 +76,13 @@ class XilinxSpartan3Or6Platform(TemplatedPlatform):
file_templates = {
**TemplatedPlatform.build_script_templates,
"build_{{name}}.sh": r"""
# {{autogenerated}}
set -e{{verbose("x")}}
if [ -z "$BASH" ] ; then exec /bin/bash "$0" "$@"; fi
[ -n "$NMIGEN_{{platform.toolchain}}_env" ] && . "$NMIGEN_{{platform.toolchain}}_env"
{{emit_commands("sh")}}
""",
"{{name}}.v": r"""
/* {{autogenerated}} */
{{emit_design("verilog")}}
@ -118,7 +125,6 @@ class XilinxSpartan3Or6Platform(TemplatedPlatform):
{{get_override("add_constraints")|default("# (add_constraints placeholder)")}}
"""
}
unix_interpreter = "bash"
command_templates = [
r"""
{{get_tool("xst")}}