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 #########################################################################
437 sbc8548_PCI_33_PCIE \
438 sbc8548_PCI_66_PCIE \
454 #########################################################################
456 #########################################################################
466 #########################################################################
468 #########################################################################
490 #########################################################################
492 #########################################################################
516 # Alias "ppc" -> "powerpc" to not break compatibility with older scripts
517 # still using "ppc" instead of "powerpc"
522 #########################################################################
524 #########################################################################
534 #########################################################################
536 #########################################################################
552 #########################################################################
554 #########################################################################
617 davinci_dm355leopard \
622 #########################################################################
624 #########################################################################
630 #########################################################################
632 #########################################################################
648 #########################################################################
649 ## ARM Cortex-A8 Systems
650 #########################################################################
651 LIST_ARM_CORTEX_A8
=" \
666 #########################################################################
668 #########################################################################
701 #########################################################################
703 #########################################################################
736 #########################################################################
738 #########################################################################
746 ${LIST_ARM_CORTEX_A8} \
752 #########################################################################
753 ## MIPS Systems (default = big endian)
754 #########################################################################
761 vct_platinum_onenand \
762 vct_platinum_onenand_small \
764 vct_platinumavc_small \
765 vct_platinumavc_onenand \
766 vct_platinumavc_onenand_small \
769 vct_premium_onenand \
770 vct_premium_onenand_small \
792 #########################################################################
793 ## MIPS Systems (little endian)
794 #########################################################################
811 #########################################################################
813 #########################################################################
826 #########################################################################
828 #########################################################################
836 #########################################################################
837 ## MicroBlaze Systems
838 #########################################################################
844 #########################################################################
846 #########################################################################
852 EB+MCF-EV123_internal \
874 #########################################################################
876 #########################################################################
889 #########################################################################
891 #########################################################################
922 #########################################################################
924 #########################################################################
952 #########################################################################
954 #########################################################################
956 LIST_sparc
="gr_xc3s_1500 gr_cpci_ax2000 gr_ep2s60 grsim grsim_leon2"
958 #-----------------------------------------------------------------------
960 #----- for now, just run PowerPC by default -----
961 [ $# = 0 ] && set $LIST_powerpc
963 #-----------------------------------------------------------------------
968 ${MAKE} distclean
>/dev
/null
969 ${MAKE} ${target}_config
971 ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
972 |
tee ${LOG_DIR}/$target.ERR
974 # Check for 'make' errors
975 if [ ${PIPESTATUS[0]} -ne 0 ] ; then
979 if [ -s ${LOG_DIR}/$target.ERR
] ; then
980 ERR_CNT
=$
((ERR_CNT
+ 1))
981 ERR_LIST
="${ERR_LIST} $target"
983 rm ${LOG_DIR}/$target.ERR
986 TOTAL_CNT
=$
((TOTAL_CNT
+ 1))
988 ${CROSS_COMPILE}size
${BUILD_DIR}/u-boot \
989 |
tee -a ${LOG_DIR}/$target.MAKELOG
992 #-----------------------------------------------------------------------
996 echo "--------------------- SUMMARY ----------------------------"
997 echo "Boards compiled: ${TOTAL_CNT}"
998 if [ ${ERR_CNT} -gt 0 ] ; then
999 echo "Boards with warnings or errors: ${ERR_CNT} (${ERR_LIST} )"
1001 echo "----------------------------------------------------------"
1006 #-----------------------------------------------------------------------
1010 arm|SA|ARM7|ARM9|ARM10|ARM11|ARM_CORTEX_A8|at91|ixp|pxa \
1017 |ppc|powerpc|
5xx|
5xxx|
512x|
8xx|
8220|
824x|
8260|
83xx|
85xx|
86xx|
4xx|
7xx|
74xx|TSEC \
1022 for target
in `eval echo '$LIST_'${arg}`
1024 build_target
${target}
1027 *) build_target
${arg}