2002-11-03 08:17:16 +09:00
|
|
|
#!/bin/sh
|
|
|
|
|
2003-12-07 04:49:23 +09:00
|
|
|
: ${JOBS:=}
|
|
|
|
|
2002-11-03 08:17:16 +09:00
|
|
|
if [ "${CROSS_COMPILE}" ] ; then
|
|
|
|
MAKE="make CROSS_COMPILE=${CROSS_COMPILE}"
|
|
|
|
else
|
|
|
|
MAKE=make
|
|
|
|
fi
|
|
|
|
|
2006-09-02 02:49:50 +09:00
|
|
|
if [ "${MAKEALL_LOGDIR}" ] ; then
|
|
|
|
LOG_DIR=${MAKEALL_LOGDIR}
|
|
|
|
else
|
|
|
|
LOG_DIR="LOG"
|
|
|
|
fi
|
2006-09-07 18:51:23 +09:00
|
|
|
|
2006-09-02 02:49:50 +09:00
|
|
|
if [ ! "${BUILD_DIR}" ] ; then
|
|
|
|
BUILD_DIR="."
|
|
|
|
fi
|
|
|
|
|
2006-09-07 19:05:53 +09:00
|
|
|
[ -d ${LOG_DIR} ] || mkdir ${LOG_DIR} || exit 1
|
2002-11-03 08:17:16 +09:00
|
|
|
|
|
|
|
LIST=""
|
|
|
|
|
2003-04-01 02:27:09 +09:00
|
|
|
#########################################################################
|
|
|
|
## MPC5xx Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_5xx=" \
|
|
|
|
cmi_mpc5xx \
|
|
|
|
"
|
|
|
|
|
2003-07-17 06:53:01 +09:00
|
|
|
#########################################################################
|
|
|
|
## MPC5xxx Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_5xxx=" \
|
2006-08-19 06:27:33 +09:00
|
|
|
BC3450 cpci5200 EVAL5200 fo300 \
|
|
|
|
icecube_5100 icecube_5200 lite5200b mcc200 \
|
|
|
|
o2dnt pf5200 PM520 TB5200 \
|
|
|
|
Total5100 Total5200 Total5200_Rev2 TQM5200 \
|
2006-10-14 04:09:09 +09:00
|
|
|
TQM5200_B TQM5200S v38b \
|
2003-07-17 06:53:01 +09:00
|
|
|
"
|
|
|
|
|
2002-11-03 08:17:16 +09:00
|
|
|
#########################################################################
|
|
|
|
## MPC8xx Systems
|
|
|
|
#########################################################################
|
|
|
|
LIST_8xx=" \
|
2004-09-29 20:02:56 +09:00
|
|
|
Adder87x GENIETV MBX860T R360MPI \
|
|
|
|
AdderII GTH MHPC RBC823 \
|
|
|
|
ADS860 hermes MPC86xADS rmu \
|
|
|
|
AMX860 IAD210 MPC885ADS RPXClassic \
|
|
|
|
c2mon ICU862_100MHz MVS1 RPXlite \
|
|
|
|
CCM IP860 NETPHONE RPXlite_DW \
|
|
|
|
cogent_mpc8xx IVML24 NETTA RRvision \
|
|
|
|
ELPT860 IVML24_128 NETTA2 SM850 \
|
2006-07-12 15:48:24 +09:00
|
|
|
EP88x IVML24_256 NETTA_ISDN spc1920 \
|
|
|
|
ESTEEM192E IVMS8 NETVIA SPD823TS \
|
|
|
|
ETX094 IVMS8_128 NETVIA_V2 svm_sc8xx \
|
|
|
|
FADS823 IVMS8_256 NX823 SXNI855T \
|
|
|
|
FADS850SAR KUP4K pcu_e TOP860 \
|
|
|
|
FADS860T KUP4X QS823 TQM823L \
|
|
|
|
FLAGADM LANTEC QS850 TQM823L_LCD \
|
|
|
|
FPS850L lwmon QS860T TQM850L \
|
|
|
|
GEN860T MBX quantum TQM855L \
|
|
|
|
GEN860T_SC TQM860L \
|
2006-07-12 22:26:01 +09:00
|
|
|
TQM885D \
|
2006-07-12 15:48:24 +09:00
|
|
|
uc100 \
|
2004-12-19 18:58:11 +09:00
|
|
|
v37 \
|
2002-11-03 08:17:16 +09:00
|
|
|
"
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## PPC4xx Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_4xx=" \
|
2006-09-18 17:48:03 +09:00
|
|
|
ADCIOP alpr AP1000 AR405 \
|
|
|
|
ASH405 bamboo bubinga CANBT \
|
|
|
|
CMS700 CPCI2DP CPCI405 CPCI4052 \
|
|
|
|
CPCI405AB CPCI405DT CPCI440 CPCIISER4 \
|
|
|
|
CRAYL1 csb272 csb472 DASA_SIM \
|
|
|
|
DP405 DU405 ebony ERIC \
|
|
|
|
EXBITGEN G2000 HH405 HUB405 \
|
|
|
|
JSE KAREF luan METROBOX \
|
|
|
|
MIP405 MIP405T ML2 ml300 \
|
|
|
|
ocotea OCRTC ORSG p3p440 \
|
|
|
|
PCI405 pcs440ep PIP405 PLU405 \
|
|
|
|
PMC405 PPChameleonEVB sbc405 sequoia \
|
|
|
|
sequoia_nand VOH405 VOM405 W7OLMC \
|
2006-06-02 23:18:04 +09:00
|
|
|
W7OLMG walnut WUH405 XPEDITE1K \
|
2006-11-27 22:11:22 +09:00
|
|
|
yellowstone yosemite yucca \
|
2002-11-03 08:17:16 +09:00
|
|
|
"
|
|
|
|
|
2004-10-28 09:09:35 +09:00
|
|
|
#########################################################################
|
|
|
|
## MPC8220 Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_8220=" \
|
|
|
|
Alaska8220 Yukon8220 \
|
|
|
|
"
|
|
|
|
|
2002-11-03 08:17:16 +09:00
|
|
|
#########################################################################
|
|
|
|
## MPC824x Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_824x=" \
|
2005-09-26 01:59:36 +09:00
|
|
|
A3000 barco BMW CPC45 \
|
|
|
|
CU824 debris eXalion HIDDEN_DRAGON \
|
2006-07-21 22:21:40 +09:00
|
|
|
MOUSSE MUSENKI MVBLUE \
|
2006-07-21 18:29:20 +09:00
|
|
|
OXC PN62 Sandpoint8240 Sandpoint8245 \
|
|
|
|
sbc8240 SL8245 utx8245 \
|
2002-11-03 08:17:16 +09:00
|
|
|
"
|
2003-06-21 09:17:24 +09:00
|
|
|
|
2002-11-03 08:17:16 +09:00
|
|
|
#########################################################################
|
2003-05-04 00:50:43 +09:00
|
|
|
## MPC8260 Systems (includes 8250, 8255 etc.)
|
2002-11-03 08:17:16 +09:00
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_8260=" \
|
2005-04-04 07:35:21 +09:00
|
|
|
atc cogent_mpc8260 CPU86 CPU87 \
|
2006-10-09 07:35:30 +09:00
|
|
|
ep8248 ep8260 ep82xxm gw8260 \
|
|
|
|
hymod IPHASE4539 ISPAN MPC8260ADS \
|
|
|
|
MPC8266ADS MPC8272ADS PM826 PM828 \
|
|
|
|
ppmc8260 Rattler8248 RPXsuper rsdproto \
|
|
|
|
sacsng sbc8260 SCM TQM8260_AC \
|
|
|
|
TQM8260_AD TQM8260_AE ZPC1900 \
|
2002-11-03 08:17:16 +09:00
|
|
|
"
|
|
|
|
|
2005-07-29 00:08:46 +09:00
|
|
|
#########################################################################
|
|
|
|
## MPC83xx Systems (includes 8349, etc.)
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_83xx=" \
|
2006-11-04 10:33:44 +09:00
|
|
|
TQM834x MPC8349EMDS MPC8349ITX MPC8360EMDS \
|
2005-07-29 00:08:46 +09:00
|
|
|
"
|
|
|
|
|
|
|
|
|
2003-10-16 08:53:47 +09:00
|
|
|
#########################################################################
|
|
|
|
## MPC85xx Systems (includes 8540, 8560 etc.)
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_85xx=" \
|
2005-07-30 00:20:29 +09:00
|
|
|
MPC8540ADS MPC8540EVAL MPC8541CDS MPC8548CDS \
|
2005-08-06 03:03:38 +09:00
|
|
|
MPC8555CDS MPC8560ADS PM854 PM856 \
|
|
|
|
sbc8540 sbc8560 stxgp3 TQM8540 \
|
2005-11-30 21:06:40 +09:00
|
|
|
TQM8541 TQM8555 TQM8560 \
|
2003-10-16 08:53:47 +09:00
|
|
|
"
|
|
|
|
|
2002-11-03 08:17:16 +09:00
|
|
|
#########################################################################
|
|
|
|
## 74xx/7xx Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_74xx=" \
|
2004-01-03 09:43:19 +09:00
|
|
|
DB64360 DB64460 EVB64260 P3G4 \
|
2006-11-29 23:42:37 +09:00
|
|
|
p3m7448 PCIPPC2 PCIPPC6 ZUMA \
|
2002-11-03 08:17:16 +09:00
|
|
|
"
|
|
|
|
|
|
|
|
LIST_7xx=" \
|
2006-11-29 23:42:37 +09:00
|
|
|
BAB7xx CPCI750 ELPPC p3m750 \
|
|
|
|
ppmc7xx \
|
2002-11-03 08:17:16 +09:00
|
|
|
"
|
|
|
|
|
2005-06-27 22:30:03 +09:00
|
|
|
LIST_ppc="${LIST_5xx} ${LIST_5xxx} \
|
|
|
|
${LIST_8xx} \
|
|
|
|
${LIST_8220} ${LIST_824x} ${LIST_8260} \
|
2005-07-29 00:08:46 +09:00
|
|
|
${LIST_83xx} \
|
2005-06-27 22:30:03 +09:00
|
|
|
${LIST_85xx} \
|
|
|
|
${LIST_4xx} \
|
2003-04-01 02:27:09 +09:00
|
|
|
${LIST_74xx} ${LIST_7xx}"
|
2002-11-03 08:17:16 +09:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## StrongARM Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2004-04-16 08:23:39 +09:00
|
|
|
LIST_SA="assabet dnp1110 gcplus lart shannon"
|
2002-11-03 08:17:16 +09:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## ARM7 Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2005-09-25 08:48:28 +09:00
|
|
|
LIST_ARM7=" \
|
2005-09-26 08:06:33 +09:00
|
|
|
armadillo B2 ep7312 evb4510 \
|
2005-10-07 00:08:18 +09:00
|
|
|
impa7 integratorap ap7 ap720t \
|
2005-09-25 08:48:28 +09:00
|
|
|
modnet50 \
|
|
|
|
"
|
2002-11-03 08:17:16 +09:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## ARM9 Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2003-08-30 07:00:43 +09:00
|
|
|
LIST_ARM9=" \
|
2005-10-07 00:08:18 +09:00
|
|
|
at91rm9200dk cmc_pu2 \
|
|
|
|
ap920t ap922_XA10 ap926ejs ap946es \
|
|
|
|
ap966 cp920t cp922_XA10 cp926ejs \
|
|
|
|
cp946es cp966 lpd7a400 mp2usb \
|
2006-03-06 02:57:33 +09:00
|
|
|
mx1ads mx1fs2 netstar omap1510inn \
|
2006-07-21 18:31:42 +09:00
|
|
|
omap1610h2 omap1610inn omap730p2 sbc2410x \
|
|
|
|
scb9328 smdk2400 smdk2410 trab \
|
|
|
|
VCMA9 versatile versatileab versatilepb \
|
|
|
|
voiceblue \
|
2003-08-30 07:00:43 +09:00
|
|
|
"
|
2002-11-03 08:17:16 +09:00
|
|
|
|
2005-09-25 08:48:28 +09:00
|
|
|
#########################################################################
|
|
|
|
## ARM10 Systems
|
|
|
|
#########################################################################
|
|
|
|
LIST_ARM10=" \
|
2005-10-07 00:08:18 +09:00
|
|
|
integratorcp cp1026 \
|
2005-09-25 08:48:28 +09:00
|
|
|
"
|
|
|
|
|
2005-01-10 08:16:25 +09:00
|
|
|
#########################################################################
|
|
|
|
## ARM11 Systems
|
|
|
|
#########################################################################
|
2005-09-25 08:48:28 +09:00
|
|
|
LIST_ARM11=" \
|
2005-10-07 00:08:18 +09:00
|
|
|
cp1136 omap2420h4 \
|
2005-09-25 08:48:28 +09:00
|
|
|
"
|
2005-01-10 08:16:25 +09:00
|
|
|
|
2002-11-03 08:17:16 +09:00
|
|
|
#########################################################################
|
|
|
|
## Xscale Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2004-09-29 01:44:41 +09:00
|
|
|
LIST_pxa=" \
|
2005-04-06 09:04:16 +09:00
|
|
|
adsvix cerf250 cradle csb226 \
|
2006-05-02 14:51:46 +09:00
|
|
|
delta innokom lubbock pleb2 \
|
|
|
|
pxa255_idp wepep250 xaeniax xm250 \
|
|
|
|
xsengine zylonite \
|
2004-09-29 01:44:41 +09:00
|
|
|
"
|
2002-11-03 08:17:16 +09:00
|
|
|
|
2006-05-30 22:56:48 +09:00
|
|
|
LIST_ixp="ixdp425 ixdpg425 pdnb3"
|
2002-11-03 08:17:16 +09:00
|
|
|
|
2003-10-15 04:43:55 +09:00
|
|
|
|
2005-01-10 08:16:25 +09:00
|
|
|
LIST_arm=" \
|
|
|
|
${LIST_SA} \
|
2005-09-25 08:48:28 +09:00
|
|
|
${LIST_ARM7} ${LIST_ARM9} ${LIST_ARM10} ${LIST_ARM11} \
|
2005-01-10 08:16:25 +09:00
|
|
|
${LIST_pxa} ${LIST_ixp} \
|
|
|
|
"
|
2002-11-03 08:17:16 +09:00
|
|
|
|
2003-03-27 21:09:35 +09:00
|
|
|
#########################################################################
|
2005-08-14 07:27:00 +09:00
|
|
|
## MIPS Systems (default = big endian)
|
2003-03-27 21:09:35 +09:00
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_mips4kc="incaip"
|
|
|
|
|
2003-04-05 09:53:31 +09:00
|
|
|
LIST_mips5kc="purple"
|
|
|
|
|
2006-06-17 00:32:31 +09:00
|
|
|
LIST_au1xx0="dbau1000 dbau1100 dbau1500 dbau1550 dbau1550_el gth2"
|
2003-10-10 05:09:04 +09:00
|
|
|
|
2005-01-10 07:28:56 +09:00
|
|
|
LIST_mips="${LIST_mips4kc} ${LIST_mips5kc} ${LIST_au1xx0}"
|
2003-03-27 21:09:35 +09:00
|
|
|
|
2005-08-14 07:27:00 +09:00
|
|
|
#########################################################################
|
|
|
|
## MIPS Systems (little endian)
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_mips4kc_el=""
|
|
|
|
|
|
|
|
LIST_mips5kc_el=""
|
|
|
|
|
|
|
|
LIST_au1xx0_el="dbau1550_el"
|
|
|
|
|
|
|
|
LIST_mips_el="${LIST_mips4kc_el} ${LIST_mips5kc_el} ${LIST_au1xx0_el}"
|
|
|
|
|
2003-06-01 03:35:21 +09:00
|
|
|
#########################################################################
|
|
|
|
## i386 Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_I486="sc520_cdp sc520_spunk sc520_spunk_rel"
|
|
|
|
|
|
|
|
LIST_x86="${LIST_I486}"
|
|
|
|
|
2004-01-04 04:43:48 +09:00
|
|
|
#########################################################################
|
|
|
|
## NIOS Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_nios=" \
|
2006-06-11 02:27:47 +09:00
|
|
|
ADNPESC1 ADNPESC1_base_32 \
|
2004-03-15 00:20:55 +09:00
|
|
|
ADNPESC1_DNPEVA2_base_32 \
|
2006-06-11 02:27:47 +09:00
|
|
|
DK1C20 DK1C20_standard_32 \
|
|
|
|
DK1S10 DK1S10_standard_32 DK1S10_mtx_ldk_20 \
|
2004-01-04 04:43:48 +09:00
|
|
|
"
|
|
|
|
|
2004-10-11 06:27:30 +09:00
|
|
|
#########################################################################
|
|
|
|
## Nios-II Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2006-06-11 02:27:47 +09:00
|
|
|
LIST_nios2=" \
|
|
|
|
EP1C20 EP1S10 EP1S40 \
|
|
|
|
PCI5441 PK1C20 \
|
|
|
|
"
|
2004-10-11 06:27:30 +09:00
|
|
|
|
2004-07-11 08:48:41 +09:00
|
|
|
#########################################################################
|
|
|
|
## MicroBlaze Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2006-06-11 02:27:47 +09:00
|
|
|
LIST_microblaze=" \
|
|
|
|
suzaku
|
|
|
|
"
|
2004-07-11 08:48:41 +09:00
|
|
|
|
2006-01-27 07:38:46 +09:00
|
|
|
#########################################################################
|
|
|
|
## ColdFire Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2006-06-11 02:27:47 +09:00
|
|
|
LIST_coldfire=" \
|
|
|
|
cobra5272 EB+MCF-EV123 EB+MCF-EV123_internal \
|
2006-12-20 08:27:32 +09:00
|
|
|
idmr M5271EVB M5272C3 M5282EVB \
|
|
|
|
TASREG r5200 M5271EVB \
|
2006-04-20 15:42:42 +09:00
|
|
|
"
|
2006-01-27 07:38:46 +09:00
|
|
|
|
2006-10-24 21:42:37 +09:00
|
|
|
#########################################################################
|
|
|
|
## AVR32 Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_avr32="atstk1002"
|
|
|
|
|
2003-06-01 03:35:21 +09:00
|
|
|
#-----------------------------------------------------------------------
|
2002-11-03 08:17:16 +09:00
|
|
|
|
|
|
|
#----- for now, just run PPC by default -----
|
|
|
|
[ $# = 0 ] && set $LIST_ppc
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
|
|
|
|
build_target() {
|
|
|
|
target=$1
|
|
|
|
|
|
|
|
${MAKE} distclean >/dev/null
|
|
|
|
${MAKE} ${target}_config
|
2006-09-02 02:49:50 +09:00
|
|
|
|
|
|
|
${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
|
|
|
|
| tee ${LOG_DIR}/$target.ERR
|
|
|
|
|
|
|
|
${CROSS_COMPILE:-ppc_8xx-}size ${BUILD_DIR}/u-boot \
|
|
|
|
| tee -a ${LOG_DIR}/$target.MAKELOG
|
2002-11-03 08:17:16 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
for arg in $@
|
|
|
|
do
|
|
|
|
case "$arg" in
|
2005-07-29 00:08:46 +09:00
|
|
|
ppc|5xx|5xxx|8xx|8220|824x|8260|83xx|85xx|4xx|7xx|74xx| \
|
2005-09-25 08:48:28 +09:00
|
|
|
arm|SA|ARM7|ARM9|ARM10|ARM11|pxa|ixp| \
|
2004-07-11 08:48:41 +09:00
|
|
|
microblaze| \
|
2005-08-14 07:27:00 +09:00
|
|
|
mips|mips_el| \
|
2004-10-11 06:27:30 +09:00
|
|
|
nios|nios2| \
|
2006-01-27 07:38:46 +09:00
|
|
|
x86|I486| \
|
2006-10-24 21:42:37 +09:00
|
|
|
coldfire| \
|
|
|
|
avr32)
|
2002-11-03 08:17:16 +09:00
|
|
|
for target in `eval echo '$LIST_'${arg}`
|
|
|
|
do
|
|
|
|
build_target ${target}
|
|
|
|
done
|
|
|
|
;;
|
|
|
|
*) build_target ${arg}
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|