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 #########################################################################
75 #########################################################################
77 #########################################################################
85 #########################################################################
87 #########################################################################
166 #########################################################################
168 #########################################################################
258 xilinx-ppc440-generic \
259 xilinx-ppc440-generic_flash \
267 #########################################################################
269 #########################################################################
276 #########################################################################
278 #########################################################################
303 #########################################################################
304 ## MPC8260 Systems (includes 8250, 8255 etc.)
305 #########################################################################
339 #########################################################################
340 ## MPC83xx Systems (includes 8349, etc.)
341 #########################################################################
346 MPC8313ERDB_NAND_66 \
367 #########################################################################
368 ## MPC85xx Systems (includes 8540, 8560 etc.)
369 #########################################################################
406 #########################################################################
408 #########################################################################
416 #########################################################################
418 #########################################################################
440 #########################################################################
442 #########################################################################
466 #########################################################################
468 #########################################################################
478 #########################################################################
480 #########################################################################
496 #########################################################################
498 #########################################################################
539 #########################################################################
541 #########################################################################
547 #########################################################################
549 #########################################################################
564 #########################################################################
565 ## ARM Cortex-A8 Systems
566 #########################################################################
567 LIST_ARM_CORTEX_A8=" \
576 #########################################################################
578 #########################################################################
600 #########################################################################
602 #########################################################################
633 #########################################################################
635 #########################################################################
643 ${LIST_ARM_CORTEX_A8} \
649 #########################################################################
650 ## MIPS Systems (default = big endian)
651 #########################################################################
658 vct_platinum_onenand \
659 vct_platinum_onenand_small \
661 vct_platinumavc_small \
662 vct_platinumavc_onenand \
663 vct_platinumavc_onenand_small \
666 vct_premium_onenand \
667 vct_premium_onenand_small \
689 #########################################################################
690 ## MIPS Systems (little endian)
691 #########################################################################
708 #########################################################################
710 #########################################################################
723 #########################################################################
725 #########################################################################
730 ADNPESC1_DNPEVA2_base_32\
738 #########################################################################
740 #########################################################################
750 #########################################################################
751 ## MicroBlaze Systems
752 #########################################################################
759 #########################################################################
761 #########################################################################
766 EB+MCF-EV123_internal \
787 #########################################################################
789 #########################################################################
802 #########################################################################
804 #########################################################################
829 #########################################################################
831 #########################################################################
858 #########################################################################
860 #########################################################################
862 LIST_sparc="gr_xc3s_1500 gr_cpci_ax2000 gr_ep2s60 grsim grsim_leon2"
864 #-----------------------------------------------------------------------
866 #----- for now, just run PPC by default -----
867 [ $# = 0 ] && set $LIST_ppc
869 #-----------------------------------------------------------------------
874 ${MAKE} distclean >/dev/null
875 ${MAKE} ${target}_config
877 ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
878 | tee ${LOG_DIR}/$target.ERR
880 ${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
881 | tee -a ${LOG_DIR}/$target.MAKELOG
884 #-----------------------------------------------------------------------
890 arm|SA|ARM7|ARM9|ARM10|ARM11|ARM_CORTEX_A8|at91|ixp|pxa \
897 |ppc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx|TSEC \
902 for target in `eval echo '$LIST_'${arg}`
904 build_target ${target}
907 *) build_target ${arg}