commit
f043a4f5ab
|
@ -32,6 +32,7 @@ if _have_colorama:
|
||||||
|
|
||||||
|
|
||||||
def settings(path, ver=None, sub=None):
|
def settings(path, ver=None, sub=None):
|
||||||
|
assert path is not None
|
||||||
if ver is None:
|
if ver is None:
|
||||||
vers = list(tools.versions(path))
|
vers = list(tools.versions(path))
|
||||||
if not vers:
|
if not vers:
|
||||||
|
|
|
@ -141,6 +141,13 @@ class XilinxVivadoToolchain:
|
||||||
|
|
||||||
def build(self, platform, fragment, build_dir="build", build_name="top",
|
def build(self, platform, fragment, build_dir="build", build_name="top",
|
||||||
toolchain_path=None, source=True, run=True, **kwargs):
|
toolchain_path=None, 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"
|
||||||
os.makedirs(build_dir, exist_ok=True)
|
os.makedirs(build_dir, exist_ok=True)
|
||||||
cwd = os.getcwd()
|
cwd = os.getcwd()
|
||||||
os.chdir(build_dir)
|
os.chdir(build_dir)
|
||||||
|
|
Loading…
Reference in New Issue