From 916b8455fff116a19d24165267ef0e0011e65a39 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Tue, 9 Jun 2015 11:54:49 -0700 Subject: buildgcc: Fail if a patch failed to apply Otherwise one could end up with what they think is a coreboot toolchain but in fact it'd be missing some patches. Change-Id: Ic451f7061b822d0f4b64acc9976ba81fd544e85b Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/10487 Reviewed-by: Patrick Georgi Tested-by: build bot (Jenkins) Reviewed-by: Alexander Couzens --- util/crossgcc/buildgcc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'util/crossgcc') diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index 740a0358b9..1f73078b78 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -226,8 +226,10 @@ unpack_and_patch() { for patch in patches/${dir}_*.patch; do test -r $patch || continue printf " o $(basename $patch)\n" - $PATCH -s -N -p0 < $(echo $patch) || \ + $PATCH -s -N -p0 < $(echo $patch) || { printf "\n${RED}Failed $patch.${NC}\n" + exit 1 + } done touch ${dir}/.unpack_success ) -- cgit v1.2.3