]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - MAKEALL
s5pc1xx: support Samsung s5pc1xx SoC
[karo-tx-uboot.git] / MAKEALL
diff --git a/MAKEALL b/MAKEALL
index b394adbef78940a9d9894b331086af3101ac33f2..38cd0768dcb1f2b75df0b46d06ed87027df704a1 100755 (executable)
--- a/MAKEALL
+++ b/MAKEALL
@@ -1,11 +1,15 @@
 #!/bin/sh
 
+# Print statistics when we exit
+trap exit 1 2 3 15
+trap print_stats 0
+
 # Determine number of CPU cores if no default was set
 : ${BUILD_NCPUS:="`getconf _NPROCESSORS_ONLN`"}
 
 if [ "$BUILD_NCPUS" -gt 1 ]
 then
-       JOBS=-j`expr "$BUILD_NCPUS" + 1`
+       JOBS="-j $((BUILD_NCPUS + 1))"
 else
        JOBS=""
 fi
@@ -31,6 +35,11 @@ fi
 
 LIST=""
 
+# Keep track of the number of builds and errors
+ERR_CNT=0
+ERR_LIST=""
+TOTAL_CNT=0
+
 #########################################################################
 ## MPC5xx Systems
 #########################################################################
@@ -378,6 +387,9 @@ LIST_83xx="         \
 LIST_85xx="            \
        ATUM8548        \
        MPC8536DS       \
+       MPC8536DS_NAND  \
+       MPC8536DS_SDCARD        \
+       MPC8536DS_SPIFLASH      \
        MPC8540ADS      \
        MPC8540EVAL     \
        MPC8541CDS      \
@@ -537,6 +549,7 @@ LIST_ARM9="                 \
        omap1610inn             \
        omap5912osk             \
        omap730p2               \
+       openrd_base             \
        rd6281a                 \
        sbc2410x                \
        scb9328                 \
@@ -606,11 +619,14 @@ LIST_at91="                       \
        at91sam9260ek           \
        at91sam9261ek           \
        at91sam9263ek           \
-       at91sam9g10ek   \
+       at91sam9g10ek           \
        at91sam9g20ek           \
        at91sam9m10g45ek        \
        at91sam9rlek            \
        cmc_pu2                 \
+       CPUAT91                 \
+       CPU9260                 \
+       CPU9G20                 \
        csb637                  \
        kb9202                  \
        meesc                   \
@@ -904,6 +920,14 @@ build_target() {
 
        ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
                                | tee ${LOG_DIR}/$target.ERR
+       if [ -s ${LOG_DIR}/$target.ERR ] ; then
+               ERR_CNT=$((ERR_CNT + 1))
+               ERR_LIST="${ERR_LIST} $target"
+       else
+               rm ${LOG_DIR}/$target.ERR
+       fi
+
+       TOTAL_CNT=$((TOTAL_CNT + 1))
 
        ${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
                                | tee -a ${LOG_DIR}/$target.MAKELOG
@@ -911,7 +935,17 @@ build_target() {
 
 #-----------------------------------------------------------------------
 
+print_stats() {
+       echo ""
+       echo "--------------------- SUMMARY ----------------------------"
+       echo "Boards compiled: ${TOTAL_CNT}"
+       if [ ${ERR_CNT} -gt 0 ] ; then
+               echo "Boards with warnings or errors: ${ERR_CNT} (${ERR_LIST} )"
+       fi
+       echo "----------------------------------------------------------"
+}
 
+#-----------------------------------------------------------------------
 for arg in $@
 do
        case "$arg" in