build/xilinx/programmer: fix settings in run_vivado (update)
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 19 Dec 2017 09:29:29 +0000 (10:29 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 19 Dec 2017 09:29:29 +0000 (10:29 +0100)
litex/build/xilinx/programmer.py

index 51d92ef559166bce73ea256b5f4812e95dbd4d45..9232a12e2bb63152a46105c84b5b36affd3909a5 100644 (file)
@@ -76,7 +76,7 @@ def _run_vivado(path, ver, cmds):
     if sys.platform == "win32" or sys.platform == "cygwin":
         vivado_cmd = "vivado -mode tcl"
     else:
-        settings = common.settings(path, ver)
+        settings = common.settings(path, "", ver, first="name")
         vivado_cmd = "bash -c \"source " + settings + "&& vivado -mode tcl\""
     with subprocess.Popen(vivado_cmd, stdin=subprocess.PIPE, shell=True) as process:
         process.stdin.write(cmds.encode("ASCII"))