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 #########################################################################
275 xilinx-ppc440-generic \
276 xilinx-ppc440-generic_flash \
284 #########################################################################
286 #########################################################################
293 #########################################################################
295 #########################################################################
319 #########################################################################
320 ## MPC8260 Systems (includes 8250, 8255 etc.)
321 #########################################################################
355 #########################################################################
356 ## MPC83xx Systems (includes 8349, etc.)
357 #########################################################################
363 MPC8313ERDB_NAND_66 \
386 #########################################################################
387 ## MPC85xx Systems (includes 8540, 8560 etc.)
388 #########################################################################
433 sbc8548_PCI_33_PCIE \
434 sbc8548_PCI_66_PCIE \
450 #########################################################################
452 #########################################################################
461 #########################################################################
463 #########################################################################
485 #########################################################################
487 #########################################################################
511 # Alias "ppc" -> "powerpc" to not break compatibility with older scripts
512 # still using "ppc" instead of "powerpc"
517 #########################################################################
519 #########################################################################
529 #########################################################################
531 #########################################################################
547 #########################################################################
549 #########################################################################
610 davinci_dm355leopard \
615 #########################################################################
617 #########################################################################
623 #########################################################################
625 #########################################################################
640 #########################################################################
641 ## ARM Cortex-A8 Systems
642 #########################################################################
643 LIST_ARM_CORTEX_A8
=" \
656 #########################################################################
658 #########################################################################
690 #########################################################################
692 #########################################################################
723 #########################################################################
725 #########################################################################
733 ${LIST_ARM_CORTEX_A8} \
739 #########################################################################
740 ## MIPS Systems (default = big endian)
741 #########################################################################
748 vct_platinum_onenand \
749 vct_platinum_onenand_small \
751 vct_platinumavc_small \
752 vct_platinumavc_onenand \
753 vct_platinumavc_onenand_small \
756 vct_premium_onenand \
757 vct_premium_onenand_small \
779 #########################################################################
780 ## MIPS Systems (little endian)
781 #########################################################################
798 #########################################################################
800 #########################################################################
813 #########################################################################
815 #########################################################################
826 #########################################################################
827 ## MicroBlaze Systems
828 #########################################################################
834 #########################################################################
836 #########################################################################
842 EB+MCF-EV123_internal \
864 #########################################################################
866 #########################################################################
879 #########################################################################
881 #########################################################################
911 #########################################################################
913 #########################################################################
941 #########################################################################
943 #########################################################################
945 LIST_sparc
="gr_xc3s_1500 gr_cpci_ax2000 gr_ep2s60 grsim grsim_leon2"
947 #-----------------------------------------------------------------------
949 #----- for now, just run PowerPC by default -----
950 [ $# = 0 ] && set $LIST_powerpc
952 #-----------------------------------------------------------------------
957 ${MAKE} distclean
>/dev
/null
958 ${MAKE} ${target}_config
960 ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
961 |
tee ${LOG_DIR}/$target.ERR
963 # Check for 'make' errors
964 if [ ${PIPESTATUS[0]} -ne 0 ] ; then
968 if [ -s ${LOG_DIR}/$target.ERR
] ; then
969 ERR_CNT
=$
((ERR_CNT
+ 1))
970 ERR_LIST
="${ERR_LIST} $target"
972 rm ${LOG_DIR}/$target.ERR
975 TOTAL_CNT
=$
((TOTAL_CNT
+ 1))
977 ${CROSS_COMPILE}size
${BUILD_DIR}/u-boot \
978 |
tee -a ${LOG_DIR}/$target.MAKELOG
981 #-----------------------------------------------------------------------
985 echo "--------------------- SUMMARY ----------------------------"
986 echo "Boards compiled: ${TOTAL_CNT}"
987 if [ ${ERR_CNT} -gt 0 ] ; then
988 echo "Boards with warnings or errors: ${ERR_CNT} (${ERR_LIST} )"
990 echo "----------------------------------------------------------"
995 #-----------------------------------------------------------------------
999 arm|SA|ARM7|ARM9|ARM10|ARM11|ARM_CORTEX_A8|at91|ixp|pxa \
1006 |ppc|powerpc|
5xx|
5xxx|
512x|
8xx|
8220|
824x|
8260|
83xx|
85xx|
86xx|
4xx|
7xx|
74xx|TSEC \
1011 for target
in `eval echo '$LIST_'${arg}`
1013 build_target
${target}
1016 *) build_target
${arg}