2002-11-03 07:17:16 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ "${CROSS_COMPILE}" ] ; then
|
|
|
|
MAKE="make CROSS_COMPILE=${CROSS_COMPILE}"
|
|
|
|
else
|
|
|
|
MAKE=make
|
|
|
|
fi
|
|
|
|
|
|
|
|
[ -d LOG ] || mkdir LOG || exit 1
|
|
|
|
|
|
|
|
LIST=""
|
|
|
|
|
2003-04-01 01:27:09 +08:00
|
|
|
#########################################################################
|
|
|
|
## MPC5xx Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_5xx=" \
|
|
|
|
cmi_mpc5xx \
|
|
|
|
"
|
|
|
|
|
2002-11-03 07:17:16 +08:00
|
|
|
#########################################################################
|
|
|
|
## MPC8xx Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_8xx=" \
|
|
|
|
ADS860 AMX860 c2mon CCM \
|
2003-03-12 18:41:04 +08:00
|
|
|
cogent_mpc8xx ESTEEM192E ETX094 ELPT860 \
|
|
|
|
FADS823 FADS850SAR FADS860T FLAGADM \
|
|
|
|
FPS850L GEN860T GENIETV GTH \
|
|
|
|
hermes IAD210 ICU862_100MHz IP860 \
|
|
|
|
IVML24 IVML24_128 IVML24_256 IVMS8 \
|
|
|
|
IVMS8_128 IVMS8_256 KUP4K LANTEC \
|
|
|
|
lwmon MBX MBX860T MHPC \
|
|
|
|
MVS1 NETVIA NX823 pcu_e \
|
|
|
|
R360MPI RPXClassic RPXlite RRvision \
|
2003-03-26 14:55:25 +08:00
|
|
|
SM850 SPD823TS svm_sc8xx SXNI855T \
|
|
|
|
TOP860 TQM823L TQM823L_LCD TQM850L \
|
2003-04-21 00:49:37 +08:00
|
|
|
TQM855L TQM860L TTTech v37 \
|
2002-11-03 07:17:16 +08:00
|
|
|
"
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## PPC4xx Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_4xx=" \
|
|
|
|
ADCIOP AR405 CANBT CPCI405 \
|
|
|
|
CPCI4052 CPCI440 CPCIISER4 CRAYL1 \
|
|
|
|
DASA_SIM DU405 EBONY ERIC \
|
|
|
|
MIP405 ML2 OCRTC ORSG \
|
|
|
|
PCI405 PIP405 W7OLMC W7OLMG \
|
|
|
|
WALNUT405 \
|
|
|
|
"
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## MPC824x Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_824x=" \
|
2003-03-12 18:41:04 +08:00
|
|
|
BMW CPC45 CU824 MOUSSE \
|
|
|
|
MUSENKI OXC PN62 Sandpoint8240 \
|
|
|
|
Sandpoint8245 utx8245 \
|
2002-11-03 07:17:16 +08:00
|
|
|
"
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## MPC8260 Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_8260=" \
|
|
|
|
cogent_mpc8260 CPU86 ep8260 gw8260 \
|
2003-03-06 08:58:30 +08:00
|
|
|
hymod IPHASE4539 MPC8260ADS MPC8266ADS \
|
|
|
|
PM826 ppmc8260 RPXsuper rsdproto \
|
|
|
|
sacsng sbc8260 SCM TQM8260 \
|
2002-11-03 07:17:16 +08:00
|
|
|
"
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## 74xx/7xx Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_74xx=" \
|
|
|
|
EVB64260 PCIPPC2 PCIPPC6 ZUMA \
|
|
|
|
"
|
|
|
|
|
|
|
|
LIST_7xx=" \
|
|
|
|
BAB7xx ELPPC \
|
|
|
|
"
|
|
|
|
|
2003-04-01 01:27:09 +08:00
|
|
|
LIST_ppc="${LIST_5xx} ${LIST_8xx} \
|
|
|
|
${LIST_824x} ${LIST_8260} \
|
|
|
|
${LIST_4xx} \
|
|
|
|
${LIST_74xx} ${LIST_7xx}"
|
2002-11-03 07:17:16 +08:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## StrongARM Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2003-04-01 00:34:49 +08:00
|
|
|
LIST_SA="dnp1110 lart shannon"
|
2002-11-03 07:17:16 +08:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## ARM7 Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2003-03-26 14:55:25 +08:00
|
|
|
LIST_ARM7="ep7312 impa7"
|
2002-11-03 07:17:16 +08:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## ARM9 Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2003-04-01 00:34:49 +08:00
|
|
|
LIST_ARM9="at91rm9200dk smdk2400 smdk2410 trab VCMA9"
|
2002-11-03 07:17:16 +08:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## Xscale Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2003-04-05 08:53:31 +08:00
|
|
|
LIST_xscale="cradle csb226 innokom lubbock wepep250"
|
2002-11-03 07:17:16 +08:00
|
|
|
|
|
|
|
|
|
|
|
LIST_arm="${LIST_SA} ${LIST_ARM7} ${LIST_ARM9} ${LIST_xscale}"
|
|
|
|
|
2003-03-27 20:09:35 +08:00
|
|
|
#########################################################################
|
|
|
|
## MIPS 4Kc Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_mips4kc="incaip"
|
|
|
|
|
2003-04-05 08:53:31 +08:00
|
|
|
LIST_mips5kc="purple"
|
|
|
|
|
|
|
|
LIST_mips="${LIST_mips4kc} ${LIST_mips5kc}"
|
2003-03-27 20:09:35 +08:00
|
|
|
|
2002-11-03 07:17:16 +08:00
|
|
|
|
|
|
|
#----- for now, just run PPC by default -----
|
|
|
|
[ $# = 0 ] && set $LIST_ppc
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
|
|
|
|
build_target() {
|
|
|
|
target=$1
|
|
|
|
|
|
|
|
${MAKE} distclean >/dev/null
|
|
|
|
${MAKE} ${target}_config
|
|
|
|
${MAKE} all 2>&1 >LOG/$target.MAKELOG | tee LOG/$target.ERR
|
|
|
|
${CROSS_COMPILE:-ppc_8xx-}size u-boot | tee -a LOG/$target.MAKELOG
|
|
|
|
}
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
for arg in $@
|
|
|
|
do
|
|
|
|
case "$arg" in
|
2003-04-01 01:27:09 +08:00
|
|
|
5xx|8xx|824x|8260|4xx|7xx|74xx|SA|ARM7|ARM9|ppc|arm|xscale|mips)
|
2002-11-03 07:17:16 +08:00
|
|
|
for target in `eval echo '$LIST_'${arg}`
|
|
|
|
do
|
|
|
|
build_target ${target}
|
|
|
|
done
|
|
|
|
;;
|
|
|
|
*) build_target ${arg}
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|