X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=coreboot.git;a=blobdiff_plain;f=util%2Fabuild%2Fabuild;h=24e5d638bdc2fee91075d4b3f60e49a913129f56;hp=2040709cd7ced23059b41ff17ea598ff640d035f;hb=f9d19f2a26f81a52cc995e701cb9a29e0b72a428;hpb=76d53b22d393ca15d3c0eef8b2d37478000ae86c diff --git a/util/abuild/abuild b/util/abuild/abuild index 2040709cd..24e5d638b 100755 --- a/util/abuild/abuild +++ b/util/abuild/abuild @@ -35,6 +35,9 @@ cpus=1 # Configure-only mode configureonly=0 +# Did any board fail to build? +failed=0 + # One might want to adjust these in case of cross compiling for i in make gmake gnumake nonexistant_make; do $i --version 2>/dev/null |grep "GNU Make" >/dev/null && break @@ -294,6 +297,7 @@ function compile_target printf "FAILED after ${duration}s!\nLog excerpt:\n" tail -n $CONTEXT make.log 2> /dev/null || tail -$CONTEXT make.log cd $CURR + failed=1 return 1 fi } @@ -622,3 +626,4 @@ else fi xml '' +exit $failed