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 #########################################################################
259 xilinx-ppc440-generic \
260 xilinx-ppc440-generic_flash \
268 #########################################################################
270 #########################################################################
277 #########################################################################
279 #########################################################################
304 #########################################################################
305 ## MPC8260 Systems (includes 8250, 8255 etc.)
306 #########################################################################
340 #########################################################################
341 ## MPC83xx Systems (includes 8349, etc.)
342 #########################################################################
347 MPC8313ERDB_NAND_66 \
368 #########################################################################
369 ## MPC85xx Systems (includes 8540, 8560 etc.)
370 #########################################################################
407 #########################################################################
409 #########################################################################
418 #########################################################################
420 #########################################################################
442 #########################################################################
444 #########################################################################
468 #########################################################################
470 #########################################################################
480 #########################################################################
482 #########################################################################
498 #########################################################################
500 #########################################################################
542 #########################################################################
544 #########################################################################
550 #########################################################################
552 #########################################################################
567 #########################################################################
568 ## ARM Cortex-A8 Systems
569 #########################################################################
570 LIST_ARM_CORTEX_A8
=" \
579 #########################################################################
581 #########################################################################
605 #########################################################################
607 #########################################################################
638 #########################################################################
640 #########################################################################
648 ${LIST_ARM_CORTEX_A8} \
654 #########################################################################
655 ## MIPS Systems (default = big endian)
656 #########################################################################
663 vct_platinum_onenand \
664 vct_platinum_onenand_small \
666 vct_platinumavc_small \
667 vct_platinumavc_onenand \
668 vct_platinumavc_onenand_small \
671 vct_premium_onenand \
672 vct_premium_onenand_small \
694 #########################################################################
695 ## MIPS Systems (little endian)
696 #########################################################################
713 #########################################################################
715 #########################################################################
728 #########################################################################
730 #########################################################################
735 ADNPESC1_DNPEVA2_base_32\
743 #########################################################################
745 #########################################################################
755 #########################################################################
756 ## MicroBlaze Systems
757 #########################################################################
764 #########################################################################
766 #########################################################################
771 EB+MCF-EV123_internal \
792 #########################################################################
794 #########################################################################
807 #########################################################################
809 #########################################################################
834 #########################################################################
836 #########################################################################
864 #########################################################################
866 #########################################################################
868 LIST_sparc
="gr_xc3s_1500 gr_cpci_ax2000 gr_ep2s60 grsim grsim_leon2"
870 #-----------------------------------------------------------------------
872 #----- for now, just run PPC by default -----
873 [ $# = 0 ] && set $LIST_ppc
875 #-----------------------------------------------------------------------
880 ${MAKE} distclean
>/dev
/null
881 ${MAKE} ${target}_config
883 ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
884 |
tee ${LOG_DIR}/$target.ERR
886 ${CROSS_COMPILE}size
${BUILD_DIR}/u-boot \
887 |
tee -a ${LOG_DIR}/$target.MAKELOG
890 #-----------------------------------------------------------------------
896 arm|SA|ARM7|ARM9|ARM10|ARM11|ARM_CORTEX_A8|at91|ixp|pxa \
903 |ppc|
5xx|
5xxx|
512x|
8xx|
8220|
824x|
8260|
83xx|
85xx|
86xx|
4xx|
7xx|
74xx|TSEC \
908 for target
in `eval echo '$LIST_'${arg}`
910 build_target
${target}
913 *) build_target
${arg}