X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=MAKEALL;h=776f96881084cef5f2835f7b96855520960d7b81;hb=3887c3fbdbbe6bbb4df60ed415c8e1ab9fe56b5e;hp=aeca193acbe33ecf817edfda95cde6293ec6d445;hpb=9453967e28c5e3abbf856f95735ea69bae1e77fa;p=karo-tx-uboot.git diff --git a/MAKEALL b/MAKEALL index aeca193acb..776f968810 100755 --- 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 ######################################################################### @@ -185,7 +194,6 @@ LIST_4xx=" \ canyonlands \ canyonlands_nand \ CMS700 \ - compactcenter \ CPCI2DP \ CPCI405 \ CPCI4052 \ @@ -214,6 +222,7 @@ LIST_4xx=" \ hcu5 \ HH405 \ HUB405 \ + intip \ JSE \ KAREF \ katmai \ @@ -399,6 +408,10 @@ LIST_85xx=" \ PM856 \ sbc8540 \ sbc8548 \ + sbc8548_PCI_33 \ + sbc8548_PCI_66 \ + sbc8548_PCI_33_PCIE \ + sbc8548_PCI_66_PCIE \ sbc8560 \ socrates \ stxgp3 \ @@ -581,6 +594,7 @@ LIST_ARM11=" \ ## ARM Cortex-A8 Systems ######################################################################### LIST_ARM_CORTEX_A8=" \ + devkit8000 \ omap3_beagle \ omap3_overo \ omap3_evm \ @@ -613,7 +627,9 @@ LIST_at91=" \ m501sk \ pm9261 \ pm9263 \ - SBC35_A9G20 \ + SBC35_A9G20 \ + TNY_A9260 \ + TNY_A9G20 \ " ######################################################################### @@ -772,7 +788,6 @@ LIST_nios2=" \ LIST_microblaze=" \ microblaze-generic \ - suzaku \ " ######################################################################### @@ -840,6 +855,7 @@ LIST_blackfin=" \ cm-bf527 \ cm-bf533 \ cm-bf537e \ + cm-bf537u \ cm-bf548 \ cm-bf561 \ ibf-dsp561 \ @@ -897,6 +913,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 @@ -904,7 +928,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