diff --git a/litex/soc/cores/cpu/naxriscv/core.py b/litex/soc/cores/cpu/naxriscv/core.py index e6b1a2549..3f40fd66f 100755 --- a/litex/soc/cores/cpu/naxriscv/core.py +++ b/litex/soc/cores/cpu/naxriscv/core.py @@ -260,8 +260,7 @@ class NaxRiscv(CPU): cmd = f"""cd {ndir} && sbt "runMain naxriscv.platform.LitexGen {" ".join(gen_args)}\"""" print("NaxRiscv generation command :") print(cmd) - if os.system(cmd) != 0: - raise OSError('Failed to run sbt') + subprocess.check_call(cmd, shell=True) def add_sources(self, platform):