]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - MAKEALL
ppc/85xx: simplify the top makefile for 36-bit config for mpc8536ds
[people/ms/u-boot.git] / MAKEALL
diff --git a/MAKEALL b/MAKEALL
index d38904ab69dfe8946db90091f98e49f9774d5711..dbcad87f18168c0241ba93180208262b04c38cd8 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
 #########################################################################
@@ -50,6 +59,7 @@ LIST_5xxx="           \
        digsy_mtc       \
        EVAL5200        \
        fo300           \
+       galaxy5200      \
        icecube_5100    \
        icecube_5200    \
        inka4x0         \
@@ -194,6 +204,8 @@ LIST_4xx="          \
        csb272          \
        csb472          \
        DASA_SIM        \
+       devconcenter    \
+       dlvision        \
        DP405           \
        DU405           \
        DU440           \
@@ -210,6 +222,7 @@ LIST_4xx="          \
        hcu5            \
        HH405           \
        HUB405          \
+       intip           \
        JSE             \
        KAREF           \
        katmai          \
@@ -237,6 +250,7 @@ LIST_4xx="          \
        PIP405          \
        PLU405          \
        PMC405          \
+       PMC405DE        \
        PMC440          \
        PPChameleonEVB  \
        quad100hd       \
@@ -258,7 +272,7 @@ LIST_4xx="          \
        WUH405          \
        xilinx-ppc440-generic \
        xilinx-ppc440-generic_flash \
-       XPEDITE1K       \
+       XPEDITE1000     \
        yellowstone     \
        yosemite        \
        yucca           \
@@ -362,6 +376,7 @@ LIST_83xx="         \
        sbc8349         \
        SIMPC8313_LP    \
        TQM834x         \
+       vme8349         \
 "
 
 
@@ -385,6 +400,10 @@ LIST_85xx="                \
        MPC8572DS_36BIT \
        P2020DS         \
        P2020DS_36BIT   \
+       P1011RDB        \
+       P1020RDB        \
+       P2010RDB        \
+       P2020RDB        \
        PM854           \
        PM856           \
        sbc8540         \
@@ -510,6 +529,7 @@ LIST_ARM9="                 \
        cp926ejs                \
        cp946es                 \
        cp966                   \
+       imx27lite               \
        lpd7a400                \
        mv88f6281gtw_ge         \
        mx1ads                  \
@@ -570,6 +590,7 @@ LIST_ARM11="                        \
 ## ARM Cortex-A8 Systems
 #########################################################################
 LIST_ARM_CORTEX_A8="           \
+       devkit8000              \
        omap3_beagle            \
        omap3_overo             \
        omap3_evm               \
@@ -602,6 +623,9 @@ LIST_at91="                 \
        m501sk                  \
        pm9261                  \
        pm9263                  \
+       SBC35_A9G20             \
+       TNY_A9260               \
+       TNY_A9G20               \
 "
 
 #########################################################################
@@ -760,7 +784,6 @@ LIST_nios2="                \
 
 LIST_microblaze="                      \
        microblaze-generic              \
-       suzaku                          \
 "
 
 #########################################################################
@@ -772,6 +795,7 @@ LIST_coldfire="                     \
        EB+MCF-EV123            \
        EB+MCF-EV123_internal   \
        idmr                    \
+       M5208EVBE               \
        M52277EVB               \
        M5235EVB                \
        M5249EVB                \
@@ -827,6 +851,7 @@ LIST_blackfin="             \
        cm-bf527        \
        cm-bf533        \
        cm-bf537e       \
+       cm-bf537u       \
        cm-bf548        \
        cm-bf561        \
        ibf-dsp561      \
@@ -884,6 +909,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
@@ -891,7 +924,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