build/xilinx/vivado: merge migen change
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 12 Nov 2018 11:00:30 +0000 (12:00 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 12 Nov 2018 11:00:30 +0000 (12:00 +0100)
litex/build/xilinx/vivado.py

index ab212b1a71852497d8970760506bcd97dfafc084..1dd4761e392dea14ec164824ddc03f6e219a532b 100644 (file)
@@ -214,14 +214,9 @@ class XilinxVivadoToolchain:
         )
 
     def build(self, platform, fragment, build_dir="build", build_name="top",
-            toolchain_path=None, source=True, run=True):
+            toolchain_path="/opt/Xilinx/Vivado", source=True, run=True, **kwargs):
         if toolchain_path is None:
-            if sys.platform == "win32":
-                toolchain_path = "C:\\Xilinx\\Vivado"
-            elif sys.platform == "cygwin":
-                toolchain_path = "/cygdrive/c/Xilinx/Vivado"
-            else:
-                toolchain_path = "/opt/Xilinx/Vivado"
+            toolchain_path = "/opt/Xilinx/Vivado"
         os.makedirs(build_dir, exist_ok=True)
         cwd = os.getcwd()
         os.chdir(build_dir)