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 #########################################################################
83 #########################################################################
85 #########################################################################
164 #########################################################################
166 #########################################################################
256 xilinx-ppc440-generic \
257 xilinx-ppc440-generic_flash \
265 #########################################################################
267 #########################################################################
274 #########################################################################
276 #########################################################################
300 #########################################################################
301 ## MPC8260 Systems (includes 8250, 8255 etc.)
302 #########################################################################
336 #########################################################################
337 ## MPC83xx Systems (includes 8349, etc.)
338 #########################################################################
343 MPC8313ERDB_NAND_66 \
364 #########################################################################
365 ## MPC85xx Systems (includes 8540, 8560 etc.)
366 #########################################################################
401 #########################################################################
403 #########################################################################
411 #########################################################################
413 #########################################################################
435 #########################################################################
437 #########################################################################
461 #########################################################################
463 #########################################################################
473 #########################################################################
475 #########################################################################
491 #########################################################################
493 #########################################################################
532 #########################################################################
534 #########################################################################
540 #########################################################################
542 #########################################################################
555 #########################################################################
556 ## ARM Cortex-A8 Systems
557 #########################################################################
558 LIST_ARM_CORTEX_A8=" \
566 #########################################################################
568 #########################################################################
587 #########################################################################
589 #########################################################################
618 #########################################################################
620 #########################################################################
628 ${LIST_ARM_CORTEX_A8} \
634 #########################################################################
635 ## MIPS Systems (default = big endian)
636 #########################################################################
643 vct_platinum_onenand \
644 vct_platinum_onenand_small \
646 vct_platinumavc_small \
647 vct_platinumavc_onenand \
648 vct_platinumavc_onenand_small \
651 vct_premium_onenand \
652 vct_premium_onenand_small \
674 #########################################################################
675 ## MIPS Systems (little endian)
676 #########################################################################
693 #########################################################################
695 #########################################################################
708 #########################################################################
710 #########################################################################
715 ADNPESC1_DNPEVA2_base_32\
723 #########################################################################
725 #########################################################################
735 #########################################################################
736 ## MicroBlaze Systems
737 #########################################################################
744 #########################################################################
746 #########################################################################
751 EB+MCF-EV123_internal \
772 #########################################################################
774 #########################################################################
787 #########################################################################
789 #########################################################################
803 #########################################################################
805 #########################################################################
832 #########################################################################
834 #########################################################################
836 LIST_sparc="gr_xc3s_1500 gr_cpci_ax2000 gr_ep2s60 grsim grsim_leon2"
838 #-----------------------------------------------------------------------
840 #----- for now, just run PPC by default -----
841 [ $# = 0 ] && set $LIST_ppc
843 #-----------------------------------------------------------------------
848 ${MAKE} distclean >/dev/null
849 ${MAKE} ${target}_config
851 ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
852 | tee ${LOG_DIR}/$target.ERR
854 ${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
855 | tee -a ${LOG_DIR}/$target.MAKELOG
858 #-----------------------------------------------------------------------
864 arm|SA|ARM7|ARM9|ARM10|ARM11|ARM_CORTEX_A8|at91|ixp|pxa \
871 |ppc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx|TSEC \
876 for target in `eval echo '$LIST_'${arg}`
878 build_target ${target}
881 *) build_target ${arg}