Merge pull request #1500 from cklarhorst/cd_fix
core/naxriscv: Don't use os.system to execute sbt
This commit is contained in:
commit
a7475d7f96
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue