From 5796f30b1802859ca24607725732e67256334a0c Mon Sep 17 00:00:00 2001 From: Christian Klarhorst Date: Tue, 5 Jul 2022 14:14:02 +0200 Subject: [PATCH] build/xilinx/ise: Fix XST flow --- litex/build/xilinx/ise.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/litex/build/xilinx/ise.py b/litex/build/xilinx/ise.py index 3d9b82c94..101d355db 100755 --- a/litex/build/xilinx/ise.py +++ b/litex/build/xilinx/ise.py @@ -215,8 +215,11 @@ bitgen {bitgen_opt} {build_name}.ncd {build_name}.bit{fail_stmt} e_output.write(e_file) self.build_io_constraints() - - command = shell + [build_script_file] + if sys.platform == "win32" or sys.platform == "cygwin": + shell = ["cmd", "/c"] + else: + shell = ["bash"] + command = shell + [script] if which("ise") is None and os.getenv("LITEX_ENV_ISE", False) == False: msg = "Unable to find or source ISE toolchain, please either:\n"