Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kestrel Collaboration
Kestrel LiteX
migen
Commits
319d3cdc
Commit
319d3cdc
authored
6 years ago
by
Florent Kermarrec
Browse files
Options
Download
Email Patches
Plain Diff
build: use default toolchain_path on all backends when toolchain_path passed value is None
parent
e7c9ab0b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
migen/build/altera/quartus.py
migen/build/altera/quartus.py
+3
-1
migen/build/lattice/diamond.py
migen/build/lattice/diamond.py
+3
-1
migen/build/xilinx/vivado.py
migen/build/xilinx/vivado.py
+3
-1
No files found.
migen/build/altera/quartus.py
View file @
319d3cdc
...
@@ -117,7 +117,9 @@ fi
...
@@ -117,7 +117,9 @@ fi
class
AlteraQuartusToolchain
:
class
AlteraQuartusToolchain
:
def
build
(
self
,
platform
,
fragment
,
build_dir
=
"build"
,
build_name
=
"top"
,
def
build
(
self
,
platform
,
fragment
,
build_dir
=
"build"
,
build_name
=
"top"
,
toolchain_path
=
"/opt/Altera"
,
run
=
True
,
**
kwargs
):
toolchain_path
=
None
,
run
=
True
,
**
kwargs
):
if
toolchain_path
is
None
:
toolchain_path
=
"/opt/Altera"
cwd
=
os
.
getcwd
()
cwd
=
os
.
getcwd
()
os
.
makedirs
(
build_dir
,
exist_ok
=
True
)
os
.
makedirs
(
build_dir
,
exist_ok
=
True
)
os
.
chdir
(
build_dir
)
os
.
chdir
(
build_dir
)
...
...
This diff is collapsed.
Click to expand it.
migen/build/lattice/diamond.py
View file @
319d3cdc
...
@@ -131,7 +131,9 @@ class LatticeDiamondToolchain:
...
@@ -131,7 +131,9 @@ class LatticeDiamondToolchain:
special_overrides
=
common
.
lattice_ecpx_special_overrides
special_overrides
=
common
.
lattice_ecpx_special_overrides
def
build
(
self
,
platform
,
fragment
,
build_dir
=
"build"
,
build_name
=
"top"
,
def
build
(
self
,
platform
,
fragment
,
build_dir
=
"build"
,
build_name
=
"top"
,
toolchain_path
=
"/opt/Diamond"
,
run
=
True
,
**
kwargs
):
toolchain_path
=
None
,
run
=
True
,
**
kwargs
):
if
toolchain_path
is
None
:
toolchain_path
=
"/opt/Diamond"
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
)
...
...
This diff is collapsed.
Click to expand it.
migen/build/xilinx/vivado.py
View file @
319d3cdc
...
@@ -189,7 +189,9 @@ class XilinxVivadoToolchain:
...
@@ -189,7 +189,9 @@ 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
=
"/opt/Xilinx/Vivado"
,
source
=
True
,
run
=
True
,
**
kwargs
):
toolchain_path
=
None
,
source
=
True
,
run
=
True
,
**
kwargs
):
if
toolchain_path
is
None
:
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
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment