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 #########################################################################
88 #########################################################################
90 #########################################################################
98 #########################################################################
100 #########################################################################
179 #########################################################################
181 #########################################################################
275 xilinx-ppc440-generic \
276 xilinx-ppc440-generic_flash \
284 #########################################################################
286 #########################################################################
293 #########################################################################
295 #########################################################################
320 #########################################################################
321 ## MPC8260 Systems (includes 8250, 8255 etc.)
322 #########################################################################
356 #########################################################################
357 ## MPC83xx Systems (includes 8349, etc.)
358 #########################################################################
363 MPC8313ERDB_NAND_66 \
386 #########################################################################
387 ## MPC85xx Systems (includes 8540, 8560 etc.)
388 #########################################################################
431 sbc8548_PCI_33_PCIE \
432 sbc8548_PCI_66_PCIE \
448 #########################################################################
450 #########################################################################
459 #########################################################################
461 #########################################################################
483 #########################################################################
485 #########################################################################
509 #########################################################################
511 #########################################################################
521 #########################################################################
523 #########################################################################
539 #########################################################################
541 #########################################################################
587 davinci_dm355leopard \
591 #########################################################################
593 #########################################################################
599 #########################################################################
601 #########################################################################
616 #########################################################################
617 ## ARM Cortex-A8 Systems
618 #########################################################################
619 LIST_ARM_CORTEX_A8=" \
631 #########################################################################
633 #########################################################################
663 #########################################################################
665 #########################################################################
696 #########################################################################
698 #########################################################################
706 ${LIST_ARM_CORTEX_A8} \
712 #########################################################################
713 ## MIPS Systems (default = big endian)
714 #########################################################################
721 vct_platinum_onenand \
722 vct_platinum_onenand_small \
724 vct_platinumavc_small \
725 vct_platinumavc_onenand \
726 vct_platinumavc_onenand_small \
729 vct_premium_onenand \
730 vct_premium_onenand_small \
752 #########################################################################
753 ## MIPS Systems (little endian)
754 #########################################################################
771 #########################################################################
773 #########################################################################
786 #########################################################################
788 #########################################################################
793 ADNPESC1_DNPEVA2_base_32\
801 #########################################################################
803 #########################################################################
813 #########################################################################
814 ## MicroBlaze Systems
815 #########################################################################
821 #########################################################################
823 #########################################################################
828 EB+MCF-EV123_internal \
850 #########################################################################
852 #########################################################################
865 #########################################################################
867 #########################################################################
893 #########################################################################
895 #########################################################################
923 #########################################################################
925 #########################################################################
927 LIST_sparc="gr_xc3s_1500 gr_cpci_ax2000 gr_ep2s60 grsim grsim_leon2"
929 #-----------------------------------------------------------------------
931 #----- for now, just run PPC by default -----
932 [ $# = 0 ] && set $LIST_ppc
934 #-----------------------------------------------------------------------
939 ${MAKE} distclean >/dev/null
940 ${MAKE} ${target}_config
942 ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
943 | tee ${LOG_DIR}/$target.ERR
945 # Check for 'make' errors
946 if [ ${PIPESTATUS[0]} -ne 0 ] ; then
950 if [ -s ${LOG_DIR}/$target.ERR ] ; then
951 ERR_CNT=$((ERR_CNT + 1))
952 ERR_LIST="${ERR_LIST} $target"
954 rm ${LOG_DIR}/$target.ERR
957 TOTAL_CNT=$((TOTAL_CNT + 1))
959 ${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
960 | tee -a ${LOG_DIR}/$target.MAKELOG
963 #-----------------------------------------------------------------------
967 echo "--------------------- SUMMARY ----------------------------"
968 echo "Boards compiled: ${TOTAL_CNT}"
969 if [ ${ERR_CNT} -gt 0 ] ; then
970 echo "Boards with warnings or errors: ${ERR_CNT} (${ERR_LIST} )"
972 echo "----------------------------------------------------------"
977 #-----------------------------------------------------------------------
981 arm|SA|ARM7|ARM9|ARM10|ARM11|ARM_CORTEX_A8|at91|ixp|pxa \
988 |ppc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx|TSEC \
993 for target in `eval echo '$LIST_'${arg}`
995 build_target ${target}
998 *) build_target ${arg}