From 1c25f7ef5289e76e65ff0918c3891dfdbcf0efcc Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 4 Dec 2017 14:03:52 +0000 Subject: [PATCH] gateware: make software builds spew less junk on the console. [ci skip] --- artiq/gateware/amp/soc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/artiq/gateware/amp/soc.py b/artiq/gateware/amp/soc.py index 71844feb9..d237822eb 100644 --- a/artiq/gateware/amp/soc.py +++ b/artiq/gateware/amp/soc.py @@ -1,4 +1,5 @@ import os +import subprocess from misoc.cores import timer from misoc.interconnect import wishbone @@ -49,4 +50,7 @@ def build_artiq_soc(soc, argdict): builder.add_software_package("libunwind") builder.add_software_package("ksupport", os.path.join(artiq_dir, "firmware", "ksupport")) builder.add_software_package("runtime", os.path.join(artiq_dir, "firmware", "runtime")) - builder.build() + try: + builder.build() + except subprocess.CalledProcessError as e: + raise SystemExit("Command {} failed".format(" ".join(e.cmd)))