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 #########################################################################
538 #########################################################################
540 #########################################################################
546 #########################################################################
548 #########################################################################
563 #########################################################################
564 ## ARM Cortex-A8 Systems
565 #########################################################################
566 LIST_ARM_CORTEX_A8=" \
575 #########################################################################
577 #########################################################################
599 #########################################################################
601 #########################################################################
632 #########################################################################
634 #########################################################################
642 ${LIST_ARM_CORTEX_A8} \
648 #########################################################################
649 ## MIPS Systems (default = big endian)
650 #########################################################################
657 vct_platinum_onenand \
658 vct_platinum_onenand_small \
660 vct_platinumavc_small \
661 vct_platinumavc_onenand \
662 vct_platinumavc_onenand_small \
665 vct_premium_onenand \
666 vct_premium_onenand_small \
688 #########################################################################
689 ## MIPS Systems (little endian)
690 #########################################################################
707 #########################################################################
709 #########################################################################
722 #########################################################################
724 #########################################################################
729 ADNPESC1_DNPEVA2_base_32\
737 #########################################################################
739 #########################################################################
749 #########################################################################
750 ## MicroBlaze Systems
751 #########################################################################
758 #########################################################################
760 #########################################################################
765 EB+MCF-EV123_internal \
786 #########################################################################
788 #########################################################################
801 #########################################################################
803 #########################################################################
828 #########################################################################
830 #########################################################################
857 #########################################################################
859 #########################################################################
861 LIST_sparc="gr_xc3s_1500 gr_cpci_ax2000 gr_ep2s60 grsim grsim_leon2"
863 #-----------------------------------------------------------------------
865 #----- for now, just run PPC by default -----
866 [ $# = 0 ] && set $LIST_ppc
868 #-----------------------------------------------------------------------
873 ${MAKE} distclean >/dev/null
874 ${MAKE} ${target}_config
876 ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
877 | tee ${LOG_DIR}/$target.ERR
879 ${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
880 | tee -a ${LOG_DIR}/$target.MAKELOG
883 #-----------------------------------------------------------------------
889 arm|SA|ARM7|ARM9|ARM10|ARM11|ARM_CORTEX_A8|at91|ixp|pxa \
896 |ppc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx|TSEC \
901 for target in `eval echo '$LIST_'${arg}`
903 build_target ${target}
906 *) build_target ${arg}