X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=MAKEALL;h=ab1bb6fdf26158acb0bc1c9eefb0adadf28d6f14;hb=35e3717772c8c3534c18d8aac69e4b822777c23b;hp=6ee5c499950a36a3c15b5546e4e78b221dcb838e;hpb=7cb5fc15f22de46cc6fabc26baf994cf8f7fa546;p=platform%2Fkernel%2Fu-boot.git diff --git a/MAKEALL b/MAKEALL index 6ee5c49..ab1bb6f 100755 --- a/MAKEALL +++ b/MAKEALL @@ -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 } #-----------------------------------------------------------------------