From 66629ae58f7494eea0cc9f822ca38b7f20c29b5e Mon Sep 17 00:00:00 2001 From: Michael LeMay Date: Fri, 12 Feb 2016 13:49:19 -0800 Subject: [PATCH] galileo: build_newlib.sh: Exit on configuration error This patch adds a check for the result of the newlib configure command and immediately exits the build_newlib.sh script if configure fails. --- platform/galileo/bsp/libc/build_newlib.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platform/galileo/bsp/libc/build_newlib.sh b/platform/galileo/bsp/libc/build_newlib.sh index cef167e14..d0a1926ef 100755 --- a/platform/galileo/bsp/libc/build_newlib.sh +++ b/platform/galileo/bsp/libc/build_newlib.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + JOBS=5 TARGET=i586-elf VERSION=2.2.0-1 @@ -99,7 +101,9 @@ cleanup() { # By default we always call prepare, build and setup. -prepare && build && setup +prepare +build +setup # But we only cleanup if -c is used. case $1 in