mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Merge pull request #1123 from LazyDodo/master
build/altera: fix rbf generation on windows
This commit is contained in:
commit
96b3587225
1 changed files with 8 additions and 1 deletions
|
@ -149,7 +149,14 @@ quartus_fit --read_settings_files=off --write_settings_files=off {build_name} -c
|
|||
quartus_asm --read_settings_files=off --write_settings_files=off {build_name} -c {build_name}
|
||||
quartus_sta {build_name} -c {build_name}"""
|
||||
if create_rbf:
|
||||
script_contents += """
|
||||
if sys.platform in ["win32", "cygwin"]:
|
||||
script_contents += """
|
||||
if exist "{build_name}.sof" (
|
||||
quartus_cpf -c {build_name}.sof {build_name}.rbf
|
||||
)
|
||||
"""
|
||||
else:
|
||||
script_contents += """
|
||||
if [ -f "{build_name}.sof" ]
|
||||
then
|
||||
quartus_cpf -c {build_name}.sof {build_name}.rbf
|
||||
|
|
Loading…
Reference in a new issue