From: whitequark Date: Thu, 12 Sep 2019 21:49:08 +0000 (+0000) Subject: vendor.xilinx_7series: Vivado requires bash on *nix as well. X-Git-Tag: v0.1rc1~105 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8f8c09f29c0562aaf450ae8e6a79c68673706fb;p=nmigen.git vendor.xilinx_7series: Vivado requires bash on *nix as well. --- diff --git a/nmigen/vendor/xilinx_7series.py b/nmigen/vendor/xilinx_7series.py index 61733c8..6e7d227 100644 --- a/nmigen/vendor/xilinx_7series.py +++ b/nmigen/vendor/xilinx_7series.py @@ -54,6 +54,13 @@ class Xilinx7SeriesPlatform(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 "${{platform._toolchain_env_var}}" ] && . "${{platform._toolchain_env_var}}" + {{emit_commands("sh")}} + """, "{{name}}.v": r""" /* {{autogenerated}} */ {{emit_design("verilog")}}