Merge pull request #1500 from cklarhorst/cd_fix

core/naxriscv: Don't use os.system to execute sbt
This commit is contained in:
enjoy-digital 2022-11-12 11:00:36 +01:00 committed by GitHub
commit a7475d7f96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -260,8 +260,7 @@ class NaxRiscv(CPU):
cmd = f"""cd {ndir} && sbt "runMain naxriscv.platform.LitexGen {" ".join(gen_args)}\"""" cmd = f"""cd {ndir} && sbt "runMain naxriscv.platform.LitexGen {" ".join(gen_args)}\""""
print("NaxRiscv generation command :") print("NaxRiscv generation command :")
print(cmd) print(cmd)
if os.system(cmd) != 0: subprocess.check_call(cmd, shell=True)
raise OSError('Failed to run sbt')
def add_sources(self, platform): def add_sources(self, platform):