]> git.sur5r.net Git - u-boot/commitdiff
MAKEALL: Fix error reporting for BUILD_NBUILDS==1
authorJoe Hershberger <joe.hershberger@ni.com>
Mon, 21 May 2012 04:49:37 +0000 (04:49 +0000)
committerWolfgang Denk <wd@denx.de>
Tue, 22 May 2012 08:18:17 +0000 (10:18 +0200)
This was broken by f588bb034d5d3a0417f45965f1aba4d4cf8a2893

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Andy Fleming <afleming@freescale.com>
MAKEALL

diff --git a/MAKEALL b/MAKEALL
index 05e2d9097f8caca4a7bf8f6a622b1a886ff59071..b7fcae4af7e88786256d127d1cddbb7fe28c2e66 100755 (executable)
--- a/MAKEALL
+++ b/MAKEALL
@@ -709,7 +709,11 @@ build_targets() {
                        : $((CURRENT_CNT += 1))
                        rm -f "${donep}${TOTAL_CNT}"
                        rm -f "${skipp}${TOTAL_CNT}"
-                       build_target ${t} ${TOTAL_CNT} &
+                       if [ $BUILD_MANY == 1 ] ; then
+                               build_target ${t} ${TOTAL_CNT} &
+                       else
+                               build_target ${t} ${TOTAL_CNT}
+                       fi
                fi
 
                # We maintain a running count of all the builds we have done.
@@ -745,8 +749,6 @@ print_stats() {
        if [ $BUILD_MANY == 1 ] && [ -e "${OUTPUT_PREFIX}/ERR" ] ; then
                ERR_LIST=$(ls ${OUTPUT_PREFIX}/ERR/)
                ERR_CNT=`ls -1 ${OUTPUT_PREFIX}/ERR/ | wc | awk '{print $1}'`
-       else
-               ERR_CNT=0
        fi
 
        echo ""