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 #########################################################################
74 #########################################################################
76 #########################################################################
82 #########################################################################
84 #########################################################################
162 #########################################################################
164 #########################################################################
254 xilinx-ppc440-generic \
255 xilinx-ppc440-generic_flash \
263 #########################################################################
265 #########################################################################
272 #########################################################################
274 #########################################################################
298 #########################################################################
299 ## MPC8260 Systems (includes 8250, 8255 etc.)
300 #########################################################################
334 #########################################################################
335 ## MPC83xx Systems (includes 8349, etc.)
336 #########################################################################
341 MPC8313ERDB_NAND_66 \
362 #########################################################################
363 ## MPC85xx Systems (includes 8540, 8560 etc.)
364 #########################################################################
396 #########################################################################
398 #########################################################################
406 #########################################################################
408 #########################################################################
430 #########################################################################
432 #########################################################################
456 #########################################################################
458 #########################################################################
468 #########################################################################
470 #########################################################################
486 #########################################################################
488 #########################################################################
527 #########################################################################
529 #########################################################################
535 #########################################################################
537 #########################################################################
548 #########################################################################
549 ## ARM Cortex-A8 Systems
550 #########################################################################
551 LIST_ARM_CORTEX_A8=" \
559 #########################################################################
561 #########################################################################
578 #########################################################################
580 #########################################################################
609 #########################################################################
611 #########################################################################
619 ${LIST_ARM_CORTEX_A8} \
625 #########################################################################
626 ## MIPS Systems (default = big endian)
627 #########################################################################
634 vct_platinum_onenand \
635 vct_platinum_onenand_small \
637 vct_platinumavc_small \
638 vct_platinumavc_onenand \
639 vct_platinumavc_onenand_small \
642 vct_premium_onenand \
643 vct_premium_onenand_small \
665 #########################################################################
666 ## MIPS Systems (little endian)
667 #########################################################################
684 #########################################################################
686 #########################################################################
699 #########################################################################
701 #########################################################################
706 ADNPESC1_DNPEVA2_base_32\
714 #########################################################################
716 #########################################################################
726 #########################################################################
727 ## MicroBlaze Systems
728 #########################################################################
735 #########################################################################
737 #########################################################################
742 EB+MCF-EV123_internal \
763 #########################################################################
765 #########################################################################
778 #########################################################################
780 #########################################################################
789 #########################################################################
791 #########################################################################
818 #########################################################################
820 #########################################################################
822 LIST_sparc="gr_xc3s_1500 gr_cpci_ax2000 gr_ep2s60 grsim grsim_leon2"
824 #-----------------------------------------------------------------------
826 #----- for now, just run PPC by default -----
827 [ $# = 0 ] && set $LIST_ppc
829 #-----------------------------------------------------------------------
834 ${MAKE} distclean >/dev/null
835 ${MAKE} ${target}_config
837 ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
838 | tee ${LOG_DIR}/$target.ERR
840 ${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
841 | tee -a ${LOG_DIR}/$target.MAKELOG
844 #-----------------------------------------------------------------------
850 arm|SA|ARM7|ARM9|ARM10|ARM11|ARM_CORTEX_A8|at91|ixp|pxa \
857 |ppc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx|TSEC \
862 for target in `eval echo '$LIST_'${arg}`
864 build_target ${target}
867 *) build_target ${arg}