Merge pull request #1123 from LazyDodo/master

build/altera: fix rbf generation on windows
This commit is contained in:
enjoy-digital 2021-12-07 18:33:13 +01:00 committed by GitHub
commit 96b3587225
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -149,6 +149,13 @@ 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_asm --read_settings_files=off --write_settings_files=off {build_name} -c {build_name}
quartus_sta {build_name} -c {build_name}""" quartus_sta {build_name} -c {build_name}"""
if create_rbf: if create_rbf:
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 += """ script_contents += """
if [ -f "{build_name}.sof" ] if [ -f "{build_name}.sof" ]
then then