3 # Determine number of CPU cores if no default was set
4 : ${BUILD_NCPUS:="`getconf _NPROCESSORS_ONLN`"}
6 if [ "$BUILD_NCPUS" -gt 1 ]
8 JOBS
=-j`expr "$BUILD_NCPUS" + 1`
14 if [ "${CROSS_COMPILE}" ] ; then
15 MAKE
="make CROSS_COMPILE=${CROSS_COMPILE}"
20 if [ "${MAKEALL_LOGDIR}" ] ; then
21 LOG_DIR
=${MAKEALL_LOGDIR}
26 if [ ! "${BUILD_DIR}" ] ; then
30 [ -d ${LOG_DIR} ] || mkdir
${LOG_DIR} ||
exit 1
34 #########################################################################
36 #########################################################################
42 #########################################################################
44 #########################################################################
76 #########################################################################
78 #########################################################################
86 #########################################################################
88 #########################################################################
167 #########################################################################
169 #########################################################################
261 xilinx-ppc440-generic \
262 xilinx-ppc440-generic_flash \
270 #########################################################################
272 #########################################################################
279 #########################################################################
281 #########################################################################
306 #########################################################################
307 ## MPC8260 Systems (includes 8250, 8255 etc.)
308 #########################################################################
342 #########################################################################
343 ## MPC83xx Systems (includes 8349, etc.)
344 #########################################################################
349 MPC8313ERDB_NAND_66 \
370 #########################################################################
371 ## MPC85xx Systems (includes 8540, 8560 etc.)
372 #########################################################################
409 #########################################################################
411 #########################################################################
420 #########################################################################
422 #########################################################################
444 #########################################################################
446 #########################################################################
470 #########################################################################
472 #########################################################################
482 #########################################################################
484 #########################################################################
500 #########################################################################
502 #########################################################################
546 #########################################################################
548 #########################################################################
554 #########################################################################
556 #########################################################################
571 #########################################################################
572 ## ARM Cortex-A8 Systems
573 #########################################################################
574 LIST_ARM_CORTEX_A8
=" \
583 #########################################################################
585 #########################################################################
609 #########################################################################
611 #########################################################################
642 #########################################################################
644 #########################################################################
652 ${LIST_ARM_CORTEX_A8} \
658 #########################################################################
659 ## MIPS Systems (default = big endian)
660 #########################################################################
667 vct_platinum_onenand \
668 vct_platinum_onenand_small \
670 vct_platinumavc_small \
671 vct_platinumavc_onenand \
672 vct_platinumavc_onenand_small \
675 vct_premium_onenand \
676 vct_premium_onenand_small \
698 #########################################################################
699 ## MIPS Systems (little endian)
700 #########################################################################
717 #########################################################################
719 #########################################################################
732 #########################################################################
734 #########################################################################
739 ADNPESC1_DNPEVA2_base_32\
747 #########################################################################
749 #########################################################################
759 #########################################################################
760 ## MicroBlaze Systems
761 #########################################################################
768 #########################################################################
770 #########################################################################
775 EB+MCF-EV123_internal \
796 #########################################################################
798 #########################################################################
811 #########################################################################
813 #########################################################################
838 #########################################################################
840 #########################################################################
868 #########################################################################
870 #########################################################################
872 LIST_sparc
="gr_xc3s_1500 gr_cpci_ax2000 gr_ep2s60 grsim grsim_leon2"
874 #-----------------------------------------------------------------------
876 #----- for now, just run PPC by default -----
877 [ $# = 0 ] && set $LIST_ppc
879 #-----------------------------------------------------------------------
884 ${MAKE} distclean
>/dev
/null
885 ${MAKE} ${target}_config
887 ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
888 |
tee ${LOG_DIR}/$target.ERR
890 ${CROSS_COMPILE}size
${BUILD_DIR}/u-boot \
891 |
tee -a ${LOG_DIR}/$target.MAKELOG
894 #-----------------------------------------------------------------------
900 arm|SA|ARM7|ARM9|ARM10|ARM11|ARM_CORTEX_A8|at91|ixp|pxa \
907 |ppc|
5xx|
5xxx|
512x|
8xx|
8220|
824x|
8260|
83xx|
85xx|
86xx|
4xx|
7xx|
74xx|TSEC \
912 for target
in `eval echo '$LIST_'${arg}`
914 build_target
${target}
917 *) build_target
${arg}