buildgcc: Break if parts of the toolchain are missing
authorPatrick Georgi <patrick@georgi-clan.de>
Sun, 17 Jul 2011 09:36:10 +0000 (11:36 +0200)
committerMarc Jones <marcj303@gmail.com>
Tue, 26 Jul 2011 14:35:54 +0000 (16:35 +0200)
We test for the presence of a couple of tools and even print an error.
But the tool didn't stop there.

Change-Id: I40dcf7894408ea7b24d5f68c76df4b7541f469bd
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/111
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marcj303@gmail.com>
util/crossgcc/buildgcc

index 9211cfdd72c4f8bca24a86eb1d76adc1cefa52fb..355b01afb4b7e8380f11c2eeb1c718301efa9337 100755 (executable)
@@ -88,9 +88,9 @@ searchgnu()
        exit 1
 }
 
-TAR=`searchgnu tar`
-PATCH=`searchgnu patch`
-MAKE=`searchgnu make`
+TAR=`searchgnu tar` || exit $?
+PATCH=`searchgnu patch` || exit $?
+MAKE=`searchgnu make` || exit $?
 
 cleanup()
 {