X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=MAKEALL;h=ab1bb6fdf26158acb0bc1c9eefb0adadf28d6f14;hb=f298e4b6dd56df3e35a13a6ddd572ca3baf06ad2;hp=5a0542234943a0ba8215f3e9a04c9aa060a54d17;hpb=06f43286c6354aaab0103615e83893512f86eee7;p=u-boot diff --git a/MAKEALL b/MAKEALL index 5a05422349..ab1bb6fdf2 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 @@ -539,6 +540,7 @@ LIST_ARM7=" \ ######################################################################### LIST_ARM9=" \ + a320evb \ ap920t \ ap922_XA10 \ ap926ejs \ @@ -549,6 +551,7 @@ LIST_ARM9=" \ cp926ejs \ cp946es \ cp966 \ + da830evm \ imx27lite \ lpd7a400 \ mv88f6281gtw_ge \ @@ -937,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" @@ -960,6 +969,8 @@ print_stats() { echo "Boards with warnings or errors: ${ERR_CNT} (${ERR_LIST} )" fi echo "----------------------------------------------------------" + + exit $RC } #-----------------------------------------------------------------------