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 #########################################################################
77 #########################################################################
79 #########################################################################
87 #########################################################################
89 #########################################################################
168 #########################################################################
170 #########################################################################
264 xilinx-ppc440-generic \
265 xilinx-ppc440-generic_flash \
273 #########################################################################
275 #########################################################################
282 #########################################################################
284 #########################################################################
309 #########################################################################
310 ## MPC8260 Systems (includes 8250, 8255 etc.)
311 #########################################################################
345 #########################################################################
346 ## MPC83xx Systems (includes 8349, etc.)
347 #########################################################################
352 MPC8313ERDB_NAND_66 \
374 #########################################################################
375 ## MPC85xx Systems (includes 8540, 8560 etc.)
376 #########################################################################
414 #########################################################################
416 #########################################################################
425 #########################################################################
427 #########################################################################
449 #########################################################################
451 #########################################################################
475 #########################################################################
477 #########################################################################
487 #########################################################################
489 #########################################################################
505 #########################################################################
507 #########################################################################
551 #########################################################################
553 #########################################################################
559 #########################################################################
561 #########################################################################
576 #########################################################################
577 ## ARM Cortex-A8 Systems
578 #########################################################################
579 LIST_ARM_CORTEX_A8
=" \
588 #########################################################################
590 #########################################################################
614 #########################################################################
616 #########################################################################
647 #########################################################################
649 #########################################################################
657 ${LIST_ARM_CORTEX_A8} \
663 #########################################################################
664 ## MIPS Systems (default = big endian)
665 #########################################################################
672 vct_platinum_onenand \
673 vct_platinum_onenand_small \
675 vct_platinumavc_small \
676 vct_platinumavc_onenand \
677 vct_platinumavc_onenand_small \
680 vct_premium_onenand \
681 vct_premium_onenand_small \
703 #########################################################################
704 ## MIPS Systems (little endian)
705 #########################################################################
722 #########################################################################
724 #########################################################################
737 #########################################################################
739 #########################################################################
744 ADNPESC1_DNPEVA2_base_32\
752 #########################################################################
754 #########################################################################
764 #########################################################################
765 ## MicroBlaze Systems
766 #########################################################################
773 #########################################################################
775 #########################################################################
780 EB+MCF-EV123_internal \
802 #########################################################################
804 #########################################################################
817 #########################################################################
819 #########################################################################
844 #########################################################################
846 #########################################################################
874 #########################################################################
876 #########################################################################
878 LIST_sparc
="gr_xc3s_1500 gr_cpci_ax2000 gr_ep2s60 grsim grsim_leon2"
880 #-----------------------------------------------------------------------
882 #----- for now, just run PPC by default -----
883 [ $# = 0 ] && set $LIST_ppc
885 #-----------------------------------------------------------------------
890 ${MAKE} distclean
>/dev
/null
891 ${MAKE} ${target}_config
893 ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
894 |
tee ${LOG_DIR}/$target.ERR
896 ${CROSS_COMPILE}size
${BUILD_DIR}/u-boot \
897 |
tee -a ${LOG_DIR}/$target.MAKELOG
900 #-----------------------------------------------------------------------
906 arm|SA|ARM7|ARM9|ARM10|ARM11|ARM_CORTEX_A8|at91|ixp|pxa \
913 |ppc|
5xx|
5xxx|
512x|
8xx|
8220|
824x|
8260|
83xx|
85xx|
86xx|
4xx|
7xx|
74xx|TSEC \
918 for target
in `eval echo '$LIST_'${arg}`
920 build_target
${target}
923 *) build_target
${arg}