build/xilinx/vivado: merge migen change

This commit is contained in:
Florent Kermarrec 2018-11-12 12:00:30 +01:00
parent a7f17f9915
commit 58414b1819
1 changed files with 2 additions and 7 deletions

View 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)