From c8f8c09f29c0562aaf450ae8e6a79c68673706fb Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 12 Sep 2019 21:49:08 +0000 Subject: [PATCH] vendor.xilinx_7series: Vivado requires bash on *nix as well. --- nmigen/vendor/xilinx_7series.py | 7 +++++++ 1 file changed, 7 insertions(+) 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")}} -- 2.30.2