]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - MAKEALL
MAKEALL: Fix return value
[karo-tx-uboot.git] / MAKEALL
diff --git a/MAKEALL b/MAKEALL
index 1ec97af24692b781d1721a2b95a9341c7270b73c..f9caabd8ffd35f43809aff18ec3ce9458c94dd00 100755 (executable)
--- 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
@@ -404,9 +405,21 @@ LIST_85xx="                \
        P2020DS         \
        P2020DS_36BIT   \
        P1011RDB        \
+       P1011RDB_NAND   \
+       P1011RDB_SDCARD \
+       P1011RDB_SPIFLASH       \
        P1020RDB        \
+       P1020RDB_NAND   \
+       P1020RDB_SDCARD \
+       P1020RDB_SPIFLASH       \
        P2010RDB        \
+       P2010RDB_NAND   \
+       P2010RDB_SDCARD \
+       P2010RDB_SPIFLASH       \
        P2020RDB        \
+       P2020RDB_NAND   \
+       P2020RDB_SDCARD \
+       P2020RDB_SPIFLASH       \
        PM854           \
        PM856           \
        sbc8540         \
@@ -567,6 +580,7 @@ LIST_ARM9="                 \
        davinci_sffsdr          \
        davinci_sonata          \
        davinci_dm355evm        \
+       davinci_dm355leopard    \
        davinci_dm6467evm       \
 "
 
@@ -604,6 +618,7 @@ LIST_ARM_CORTEX_A8="                \
        omap3_overo             \
        omap3_evm               \
        omap3_pandora           \
+       omap3_sdp3430           \
        omap3_zoom1             \
        omap3_zoom2             \
        smdkc100                \
@@ -922,6 +937,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"
@@ -945,6 +966,8 @@ print_stats() {
                echo "Boards with warnings or errors: ${ERR_CNT} (${ERR_LIST} )"
        fi
        echo "----------------------------------------------------------"
+
+       exit $RC
 }
 
 #-----------------------------------------------------------------------