2002-11-02 23:17:16 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2003-12-06 19:49:23 +00:00
|
|
|
: ${JOBS:=}
|
|
|
|
|
2002-11-02 23:17:16 +00:00
|
|
|
if [ "${CROSS_COMPILE}" ] ; then
|
|
|
|
MAKE="make CROSS_COMPILE=${CROSS_COMPILE}"
|
|
|
|
else
|
|
|
|
MAKE=make
|
|
|
|
fi
|
|
|
|
|
|
|
|
[ -d LOG ] || mkdir LOG || exit 1
|
|
|
|
|
|
|
|
LIST=""
|
|
|
|
|
2003-03-31 17:27:09 +00:00
|
|
|
#########################################################################
|
|
|
|
## MPC5xx Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_5xx=" \
|
|
|
|
cmi_mpc5xx \
|
|
|
|
"
|
|
|
|
|
2003-07-16 21:53:01 +00:00
|
|
|
#########################################################################
|
|
|
|
## MPC5xxx Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_5xxx=" \
|
2004-01-02 14:00:00 +00:00
|
|
|
IceCube_5100 IceCube_5200 EVAL5200 \
|
2003-07-16 21:53:01 +00:00
|
|
|
"
|
|
|
|
|
2002-11-02 23:17:16 +00:00
|
|
|
#########################################################################
|
|
|
|
## MPC8xx Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_8xx=" \
|
2003-08-30 00:05:50 +00:00
|
|
|
AdderII ADS860 AMX860 c2mon \
|
2004-01-04 16:28:35 +00:00
|
|
|
CCM cogent_mpc8xx DUET_ADS ESTEEM192E \
|
|
|
|
ETX094 ELPT860 FADS823 FADS850SAR \
|
|
|
|
FADS860T FLAGADM FPS850L GEN860T \
|
|
|
|
GEN860T_SC GENIETV GTH hermes \
|
|
|
|
IAD210 ICU862_100MHz IP860 IVML24 \
|
|
|
|
IVML24_128 IVML24_256 IVMS8 IVMS8_128 \
|
2004-02-23 20:48:38 +00:00
|
|
|
IVMS8_256 KUP4K LANTEC lwmon \
|
2004-01-04 16:28:35 +00:00
|
|
|
MBX MBX860T MHPC MPC86xADS \
|
|
|
|
MVS1 NETVIA NETVIA_V2 NX823 \
|
|
|
|
pcu_e QS823 QS850 QS860T \
|
|
|
|
R360MPI RBC823 rmu RPXClassic \
|
|
|
|
RPXlite RRvision SM850 SPD823TS \
|
|
|
|
svm_sc8xx SXNI855T TOP860 TQM823L \
|
|
|
|
TQM823L_LCD TQM850L TQM855L TQM860L \
|
|
|
|
v37 \
|
2002-11-02 23:17:16 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## PPC4xx Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_4xx=" \
|
2004-02-23 20:48:38 +00:00
|
|
|
ADCIOP AR405 ASH405 BUBINGA405EP \
|
|
|
|
CANBT CPCI405 CPCI4052 CPCI405AB \
|
|
|
|
CPCI440 CPCIISER4 CRAYL1 csb272 \
|
|
|
|
DASA_SIM DP405 DU405 EBONY \
|
|
|
|
ERIC EXBITGEN HUB405 MIP405 \
|
|
|
|
MIP405T ML2 OCRTC ORSG \
|
|
|
|
PCI405 PIP405 PLU405 PMC405 \
|
|
|
|
PPChameleonEVB VOH405 W7OLMC W7OLMG \
|
|
|
|
WALNUT405 XPEDITE1K \
|
2002-11-02 23:17:16 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## MPC824x Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_824x=" \
|
2004-02-23 20:48:38 +00:00
|
|
|
A3000 BMW CPC45 CU824 \
|
|
|
|
debris MOUSSE MUSENKI MVBLUE \
|
|
|
|
OXC PN62 Sandpoint8240 Sandpoint8245 \
|
2003-12-07 19:24:00 +00:00
|
|
|
SL8245 utx8245 \
|
2002-11-02 23:17:16 +00:00
|
|
|
"
|
2003-06-21 00:17:24 +00:00
|
|
|
|
2002-11-02 23:17:16 +00:00
|
|
|
#########################################################################
|
2003-05-03 15:50:43 +00:00
|
|
|
## MPC8260 Systems (includes 8250, 8255 etc.)
|
2002-11-02 23:17:16 +00:00
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_8260=" \
|
2003-05-12 21:50:16 +00:00
|
|
|
atc cogent_mpc8260 CPU86 ep8260 \
|
2003-05-03 15:50:43 +00:00
|
|
|
gw8260 hymod IPHASE4539 MPC8260ADS \
|
|
|
|
MPC8266ADS PM826 ppmc8260 RPXsuper \
|
|
|
|
rsdproto sacsng sbc8260 SCM \
|
2003-10-08 22:45:44 +00:00
|
|
|
TQM8260_AC TQM8260_AD TQM8260_AE ZPC1900 \
|
2002-11-02 23:17:16 +00:00
|
|
|
"
|
|
|
|
|
2003-10-15 23:53:47 +00:00
|
|
|
#########################################################################
|
|
|
|
## MPC85xx Systems (includes 8540, 8560 etc.)
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_85xx=" \
|
|
|
|
MPC8540ADS MPC8560ADS \
|
|
|
|
"
|
|
|
|
|
2002-11-02 23:17:16 +00:00
|
|
|
#########################################################################
|
|
|
|
## 74xx/7xx Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_74xx=" \
|
2004-01-03 00:43:19 +00:00
|
|
|
DB64360 DB64460 EVB64260 P3G4 \
|
|
|
|
PCIPPC2 PCIPPC6 ZUMA \
|
2002-11-02 23:17:16 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
LIST_7xx=" \
|
|
|
|
BAB7xx ELPPC \
|
|
|
|
"
|
|
|
|
|
2003-07-16 21:53:01 +00:00
|
|
|
LIST_ppc="${LIST_5xx} ${LIST_5xxx} \
|
|
|
|
${LIST_8xx} \
|
2003-03-31 17:27:09 +00:00
|
|
|
${LIST_824x} ${LIST_8260} \
|
2003-10-15 23:53:47 +00:00
|
|
|
${LIST_85xx} \
|
2003-03-31 17:27:09 +00:00
|
|
|
${LIST_4xx} \
|
|
|
|
${LIST_74xx} ${LIST_7xx}"
|
2002-11-02 23:17:16 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## StrongARM Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2003-03-31 16:34:49 +00:00
|
|
|
LIST_SA="dnp1110 lart shannon"
|
2002-11-02 23:17:16 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## ARM7 Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2003-03-26 06:55:25 +00:00
|
|
|
LIST_ARM7="ep7312 impa7"
|
2002-11-02 23:17:16 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## ARM9 Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2003-08-29 22:00:43 +00:00
|
|
|
LIST_ARM9=" \
|
|
|
|
at91rm9200dk omap1510inn omap1610inn \
|
|
|
|
smdk2400 smdk2410 trab \
|
|
|
|
VCMA9 \
|
|
|
|
"
|
2002-11-02 23:17:16 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## Xscale Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2003-05-23 12:36:20 +00:00
|
|
|
LIST_pxa="cradle csb226 innokom lubbock wepep250"
|
2002-11-02 23:17:16 +00:00
|
|
|
|
2003-10-14 19:43:55 +00:00
|
|
|
LIST_ixp="ixdp425"
|
2002-11-02 23:17:16 +00:00
|
|
|
|
2003-10-14 19:43:55 +00:00
|
|
|
|
|
|
|
LIST_arm="${LIST_SA} ${LIST_ARM7} ${LIST_ARM9} ${LIST_pxa} ${LIST_ixp}"
|
2002-11-02 23:17:16 +00:00
|
|
|
|
2003-03-27 12:09:35 +00:00
|
|
|
#########################################################################
|
2003-10-09 20:09:04 +00:00
|
|
|
## MIPS Systems
|
2003-03-27 12:09:35 +00:00
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_mips4kc="incaip"
|
|
|
|
|
2003-04-05 00:53:31 +00:00
|
|
|
LIST_mips5kc="purple"
|
|
|
|
|
2003-12-07 18:32:37 +00:00
|
|
|
LIST_au1x00="dbau1000 dbau1100 dbau1500"
|
2003-10-09 20:09:04 +00:00
|
|
|
|
|
|
|
LIST_mips="${LIST_mips4kc} ${LIST_mips5kc} ${LIST_au1x00}"
|
2003-03-27 12:09:35 +00:00
|
|
|
|
2003-05-31 18:35:21 +00:00
|
|
|
#########################################################################
|
|
|
|
## i386 Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_I486="sc520_cdp sc520_spunk sc520_spunk_rel"
|
|
|
|
|
|
|
|
LIST_x86="${LIST_I486}"
|
|
|
|
|
2004-01-03 19:43:48 +00:00
|
|
|
#########################################################################
|
|
|
|
## NIOS Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_nios=" \
|
|
|
|
DK1C20 DK1C20_standard_32 \
|
2004-02-09 23:12:24 +00:00
|
|
|
DK1S10 DK1S10_standard_32 DK1S10_mtx_ldk_20 \
|
2004-01-03 19:43:48 +00:00
|
|
|
"
|
|
|
|
|
2003-05-31 18:35:21 +00:00
|
|
|
#-----------------------------------------------------------------------
|
2002-11-02 23:17:16 +00:00
|
|
|
|
|
|
|
#----- for now, just run PPC by default -----
|
|
|
|
[ $# = 0 ] && set $LIST_ppc
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
|
|
|
|
build_target() {
|
|
|
|
target=$1
|
|
|
|
|
|
|
|
${MAKE} distclean >/dev/null
|
|
|
|
${MAKE} ${target}_config
|
2003-12-06 19:49:23 +00:00
|
|
|
${MAKE} ${JOBS} all 2>&1 >LOG/$target.MAKELOG | tee LOG/$target.ERR
|
2002-11-02 23:17:16 +00:00
|
|
|
${CROSS_COMPILE:-ppc_8xx-}size u-boot | tee -a LOG/$target.MAKELOG
|
|
|
|
}
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
for arg in $@
|
|
|
|
do
|
|
|
|
case "$arg" in
|
2003-10-15 23:53:47 +00:00
|
|
|
ppc|5xx|5xxx|8xx|824x|8260|85xx|4xx|7xx|74xx| \
|
2003-10-14 19:43:55 +00:00
|
|
|
arm|SA|ARM7|ARM9|pxa|ixp| \
|
|
|
|
mips| \
|
2004-01-03 19:43:48 +00:00
|
|
|
nios| \
|
2003-10-14 19:43:55 +00:00
|
|
|
x86|I486)
|
2002-11-02 23:17:16 +00:00
|
|
|
for target in `eval echo '$LIST_'${arg}`
|
|
|
|
do
|
|
|
|
build_target ${target}
|
|
|
|
done
|
|
|
|
;;
|
|
|
|
*) build_target ${arg}
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|