diff options
author | Wolfgang Denk <wd@denx.de> | 2009-12-07 23:42:33 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-12-07 23:42:33 +0100 |
commit | 35e3717772c8c3534c18d8aac69e4b822777c23b (patch) | |
tree | 9fa7a1e24f670772cc8d026a15d63ddf85a36810 /MAKEALL | |
parent | 7cb5fc15f22de46cc6fabc26baf994cf8f7fa546 (diff) | |
parent | 0fc52948bda0734431cb528ee4fd82f1dec8c7b5 (diff) | |
download | u-boot-imx-35e3717772c8c3534c18d8aac69e4b822777c23b.zip u-boot-imx-35e3717772c8c3534c18d8aac69e4b822777c23b.tar.gz u-boot-imx-35e3717772c8c3534c18d8aac69e4b822777c23b.tar.bz2 |
Merge branch 'master' of ../work into next
Diffstat (limited to 'MAKEALL')
-rwxr-xr-x | MAKEALL | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Print statistics when we exit trap exit 1 2 3 15 @@ -39,6 +39,7 @@ LIST="" ERR_CNT=0 ERR_LIST="" TOTAL_CNT=0 +RC=0 ######################################################################### ## MPC5xx Systems @@ -939,6 +940,12 @@ build_target() { ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \ | tee ${LOG_DIR}/$target.ERR + + # Check for 'make' errors + if [ ${PIPESTATUS[0]} -ne 0 ] ; then + RC=1 + fi + if [ -s ${LOG_DIR}/$target.ERR ] ; then ERR_CNT=$((ERR_CNT + 1)) ERR_LIST="${ERR_LIST} $target" @@ -962,6 +969,8 @@ print_stats() { echo "Boards with warnings or errors: ${ERR_CNT} (${ERR_LIST} )" fi echo "----------------------------------------------------------" + + exit $RC } #----------------------------------------------------------------------- |