3 # Print statistics when we exit
7 # Determine number of CPU cores if no default was set
8 : ${BUILD_NCPUS:="`getconf _NPROCESSORS_ONLN`"}
10 if [ "$BUILD_NCPUS" -gt 1 ]
12 JOBS="-j $((BUILD_NCPUS + 1))"
18 if [ "${CROSS_COMPILE}" ] ; then
19 MAKE="make CROSS_COMPILE=${CROSS_COMPILE}"
24 if [ "${MAKEALL_LOGDIR}" ] ; then
25 LOG_DIR=${MAKEALL_LOGDIR}
30 if [ ! "${BUILD_DIR}" ] ; then
34 [ -d ${LOG_DIR} ] || mkdir ${LOG_DIR} || exit 1
38 # Keep track of the number of builds and errors
44 #########################################################################
46 #########################################################################
52 #########################################################################
54 #########################################################################
87 #########################################################################
89 #########################################################################
98 #########################################################################
100 #########################################################################
179 #########################################################################
181 #########################################################################
273 xilinx-ppc440-generic \
274 xilinx-ppc440-generic_flash \
282 #########################################################################
284 #########################################################################
291 #########################################################################
293 #########################################################################
317 #########################################################################
318 ## MPC8260 Systems (includes 8250, 8255 etc.)
319 #########################################################################
353 #########################################################################
354 ## MPC83xx Systems (includes 8349, etc.)
355 #########################################################################
361 MPC8313ERDB_NAND_66 \
384 #########################################################################
385 ## MPC85xx Systems (includes 8540, 8560 etc.)
386 #########################################################################
431 sbc8548_PCI_33_PCIE \
432 sbc8548_PCI_66_PCIE \
448 #########################################################################
450 #########################################################################
459 #########################################################################
461 #########################################################################
483 #########################################################################
485 #########################################################################
509 # Alias "ppc" -> "powerpc" to not break compatibility with older scripts
510 # still using "ppc" instead of "powerpc"
515 #########################################################################
517 #########################################################################
527 #########################################################################
529 #########################################################################
545 #########################################################################
547 #########################################################################
606 davinci_dm355leopard \
611 #########################################################################
613 #########################################################################
619 #########################################################################
621 #########################################################################
636 #########################################################################
637 ## ARM Cortex-A8 Systems
638 #########################################################################
639 LIST_ARM_CORTEX_A8=" \
652 #########################################################################
654 #########################################################################
686 #########################################################################
688 #########################################################################
719 #########################################################################
721 #########################################################################
729 ${LIST_ARM_CORTEX_A8} \
735 #########################################################################
736 ## MIPS Systems (default = big endian)
737 #########################################################################
744 vct_platinum_onenand \
745 vct_platinum_onenand_small \
747 vct_platinumavc_small \
748 vct_platinumavc_onenand \
749 vct_platinumavc_onenand_small \
752 vct_premium_onenand \
753 vct_premium_onenand_small \
775 #########################################################################
776 ## MIPS Systems (little endian)
777 #########################################################################
794 #########################################################################
796 #########################################################################
809 #########################################################################
811 #########################################################################
816 ADNPESC1_DNPEVA2_base_32\
824 #########################################################################
826 #########################################################################
836 #########################################################################
837 ## MicroBlaze Systems
838 #########################################################################
844 #########################################################################
846 #########################################################################
852 EB+MCF-EV123_internal \
874 #########################################################################
876 #########################################################################
889 #########################################################################
891 #########################################################################
921 #########################################################################
923 #########################################################################
951 #########################################################################
953 #########################################################################
955 LIST_sparc="gr_xc3s_1500 gr_cpci_ax2000 gr_ep2s60 grsim grsim_leon2"
957 #-----------------------------------------------------------------------
959 #----- for now, just run PowerPC by default -----
960 [ $# = 0 ] && set $LIST_powerpc
962 #-----------------------------------------------------------------------
967 ${MAKE} distclean >/dev/null
968 ${MAKE} ${target}_config
970 ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
971 | tee ${LOG_DIR}/$target.ERR
973 # Check for 'make' errors
974 if [ ${PIPESTATUS[0]} -ne 0 ] ; then
978 if [ -s ${LOG_DIR}/$target.ERR ] ; then
979 ERR_CNT=$((ERR_CNT + 1))
980 ERR_LIST="${ERR_LIST} $target"
982 rm ${LOG_DIR}/$target.ERR
985 TOTAL_CNT=$((TOTAL_CNT + 1))
987 ${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
988 | tee -a ${LOG_DIR}/$target.MAKELOG
991 #-----------------------------------------------------------------------
995 echo "--------------------- SUMMARY ----------------------------"
996 echo "Boards compiled: ${TOTAL_CNT}"
997 if [ ${ERR_CNT} -gt 0 ] ; then
998 echo "Boards with warnings or errors: ${ERR_CNT} (${ERR_LIST} )"
1000 echo "----------------------------------------------------------"
1005 #-----------------------------------------------------------------------
1009 arm|SA|ARM7|ARM9|ARM10|ARM11|ARM_CORTEX_A8|at91|ixp|pxa \
1016 |ppc|powerpc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx|TSEC \
1021 for target in `eval echo '$LIST_'${arg}`
1023 build_target ${target}
1026 *) build_target ${arg}