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 #########################################################################
276 xilinx-ppc440-generic \
277 xilinx-ppc440-generic_flash \
285 #########################################################################
287 #########################################################################
294 #########################################################################
296 #########################################################################
320 #########################################################################
321 ## MPC8260 Systems (includes 8250, 8255 etc.)
322 #########################################################################
356 #########################################################################
357 ## MPC83xx Systems (includes 8349, etc.)
358 #########################################################################
365 MPC8313ERDB_NAND_66 \
389 #########################################################################
390 ## MPC85xx Systems (includes 8540, 8560 etc.)
391 #########################################################################
438 sbc8548_PCI_33_PCIE \
439 sbc8548_PCI_66_PCIE \
455 #########################################################################
457 #########################################################################
467 #########################################################################
469 #########################################################################
491 #########################################################################
493 #########################################################################
517 # Alias "ppc" -> "powerpc" to not break compatibility with older scripts
518 # still using "ppc" instead of "powerpc"
523 #########################################################################
525 #########################################################################
535 #########################################################################
537 #########################################################################
553 #########################################################################
555 #########################################################################
618 davinci_dm355leopard \
623 #########################################################################
625 #########################################################################
631 #########################################################################
633 #########################################################################
649 #########################################################################
650 ## ARM Cortex-A8 Systems
651 #########################################################################
652 LIST_ARM_CORTEX_A8
=" \
667 #########################################################################
669 #########################################################################
702 #########################################################################
704 #########################################################################
735 #########################################################################
737 #########################################################################
745 ${LIST_ARM_CORTEX_A8} \
751 #########################################################################
752 ## MIPS Systems (default = big endian)
753 #########################################################################
760 vct_platinum_onenand \
761 vct_platinum_onenand_small \
763 vct_platinumavc_small \
764 vct_platinumavc_onenand \
765 vct_platinumavc_onenand_small \
768 vct_premium_onenand \
769 vct_premium_onenand_small \
791 #########################################################################
792 ## MIPS Systems (little endian)
793 #########################################################################
810 #########################################################################
812 #########################################################################
825 #########################################################################
827 #########################################################################
835 #########################################################################
836 ## MicroBlaze Systems
837 #########################################################################
843 #########################################################################
845 #########################################################################
851 EB+MCF-EV123_internal \
873 #########################################################################
875 #########################################################################
888 #########################################################################
890 #########################################################################
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}