From d00e774986d347520178fc0bd438656a92479e9b Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Wed, 12 Aug 2015 12:28:48 +0100 Subject: [PATCH] All commands run should be checked. --- make.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/make.py b/make.py index 61ed5fd5..d3ddc7a3 100755 --- a/make.py +++ b/make.py @@ -136,11 +136,11 @@ CPU type: {} actions["build-headers"] = True if actions["clean"]: - subprocess.call(["rm", "-rf", "build/*"]) - subprocess.call(["make", "-C", os.path.join("software", "libcompiler-rt"), "clean"]) - subprocess.call(["make", "-C", os.path.join("software", "libbase"), "clean"]) - subprocess.call(["make", "-C", os.path.join("software", "libnet"), "clean"]) - subprocess.call(["make", "-C", os.path.join("software", "bios"), "clean"]) + subprocess.check_call(["rm", "-rvf", "build/*"]) + subprocess.check_call(["make", "-C", os.path.join("software", "libcompiler-rt"), "clean"]) + subprocess.check_call(["make", "-C", os.path.join("software", "libbase"), "clean"]) + subprocess.check_call(["make", "-C", os.path.join("software", "libnet"), "clean"]) + subprocess.check_call(["make", "-C", os.path.join("software", "bios"), "clean"]) if actions["build-headers"]: boilerplate = """/* @@ -207,7 +207,7 @@ CPU type: {} prog.set_flash_proxy_dir(args.flash_proxy_dir) if prog.needs_bitreverse: flashbit = os.path.join("build", build_name + ".fpg") - subprocess.call([os.path.join("tools", "byteswap"), + subprocess.check_call([os.path.join("tools", "byteswap"), os.path.join("build", build_name + ".bin"), flashbit]) else: -- 2.30.2