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
|
|
|
|
|
|
|
|
[ -d LOG ] || mkdir LOG || exit 1
|
|
|
|
|
|
|
|
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=" \
|
2004-04-19 08:32:11 +09:00
|
|
|
icecube_5100 icecube_5200 EVAL5200 PM520 \
|
2004-07-12 04:17:20 +09:00
|
|
|
Total5100 Total5200 Total5200_Rev2 TQM5200_AA \
|
2003-07-17 06:53:01 +09:00
|
|
|
"
|
|
|
|
|
2002-11-03 08:17:16 +09:00
|
|
|
#########################################################################
|
|
|
|
## MPC8xx Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_8xx=" \
|
2004-07-10 07:51:01 +09:00
|
|
|
Adder87x GENIETV MBX860T RBC823 \
|
2004-06-10 06:04:48 +09:00
|
|
|
AdderII GTH MHPC rmu \
|
|
|
|
ADS860 hermes MPC86xADS RPXClassic \
|
|
|
|
AMX860 IAD210 MPC885ADS RPXlite \
|
|
|
|
c2mon ICU862_100MHz MVS1 RPXlite_DW \
|
|
|
|
CCM IP860 NETPHONE RRvision \
|
|
|
|
cogent_mpc8xx IVML24 NETTA SM850 \
|
|
|
|
ELPT860 IVML24_128 NETTA2 SPD823TS \
|
|
|
|
ESTEEM192E IVML24_256 NETTA_ISDN svm_sc8xx \
|
|
|
|
ETX094 IVMS8 NETVIA SXNI855T \
|
|
|
|
FADS823 IVMS8_128 NETVIA_V2 TOP860 \
|
|
|
|
FADS850SAR IVMS8_256 NX823 TQM823L \
|
|
|
|
FADS860T KUP4K pcu_e TQM823L_LCD \
|
|
|
|
FLAGADM KUP4X QS823 TQM850L \
|
|
|
|
FPS850L LANTEC QS850 TQM855L \
|
|
|
|
GEN860T lwmon QS860T TQM860L \
|
|
|
|
GEN860T_SC MBX R360MPI v37 \
|
2002-11-03 08:17:16 +09:00
|
|
|
"
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## PPC4xx Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_4xx=" \
|
2004-02-24 05:48:38 +09:00
|
|
|
ADCIOP AR405 ASH405 BUBINGA405EP \
|
|
|
|
CANBT CPCI405 CPCI4052 CPCI405AB \
|
|
|
|
CPCI440 CPCIISER4 CRAYL1 csb272 \
|
2004-06-09 21:47:02 +09:00
|
|
|
csb472 DASA_SIM DP405 DU405 \
|
|
|
|
EBONY ERIC EXBITGEN HUB405 \
|
|
|
|
JSE MIP405 MIP405T ML2 \
|
|
|
|
ml300 OCOTEA OCRTC ORSG \
|
|
|
|
PCI405 PIP405 PLU405 PMC405 \
|
|
|
|
PPChameleonEVB VOH405 W7OLMC W7OLMG \
|
|
|
|
WALNUT405 XPEDITE1K \
|
2002-11-03 08:17:16 +09:00
|
|
|
"
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## MPC824x Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_824x=" \
|
2004-02-24 05:48:38 +09:00
|
|
|
A3000 BMW CPC45 CU824 \
|
2004-02-27 08:46:20 +09:00
|
|
|
debris eXalion MOUSSE MUSENKI \
|
|
|
|
MVBLUE OXC PN62 Sandpoint8240 \
|
2004-07-11 07:35:59 +09:00
|
|
|
Sandpoint8245 SL8245 utx8245 sbc8240 \
|
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=" \
|
2003-05-13 06:50:16 +09:00
|
|
|
atc cogent_mpc8260 CPU86 ep8260 \
|
2004-06-09 23:47:54 +09:00
|
|
|
gw8260 hymod IPHASE4539 ISPAN \
|
|
|
|
MPC8260ADS MPC8266ADS MPC8272ADS PM826 \
|
|
|
|
PM828 ppmc8260 PQ2FADS RPXsuper \
|
|
|
|
rsdproto sacsng sbc8260 SCM \
|
|
|
|
TQM8260_AC TQM8260_AD TQM8260_AE ZPC1900 \
|
2002-11-03 08:17:16 +09:00
|
|
|
"
|
|
|
|
|
2003-10-16 08:53:47 +09:00
|
|
|
#########################################################################
|
|
|
|
## MPC85xx Systems (includes 8540, 8560 etc.)
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_85xx=" \
|
2004-07-11 07:35:59 +09:00
|
|
|
MPC8540ADS MPC8560ADS sbc8560 stxgp3 \
|
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 \
|
|
|
|
PCIPPC2 PCIPPC6 ZUMA \
|
2002-11-03 08:17:16 +09:00
|
|
|
"
|
|
|
|
|
|
|
|
LIST_7xx=" \
|
|
|
|
BAB7xx ELPPC \
|
|
|
|
"
|
|
|
|
|
2003-07-17 06:53:01 +09:00
|
|
|
LIST_ppc="${LIST_5xx} ${LIST_5xxx} \
|
|
|
|
${LIST_8xx} \
|
2003-04-01 02:27:09 +09:00
|
|
|
${LIST_824x} ${LIST_8260} \
|
2003-10-16 08:53:47 +09:00
|
|
|
${LIST_85xx} \
|
2003-04-01 02:27:09 +09:00
|
|
|
${LIST_4xx} \
|
|
|
|
${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
|
|
|
|
#########################################################################
|
|
|
|
|
2004-07-02 01:30:44 +09:00
|
|
|
LIST_ARM7="B2 ep7312 evb4510 impa7 modnet50"
|
2002-11-03 08:17:16 +09:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## ARM9 Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2003-08-30 07:00:43 +09:00
|
|
|
LIST_ARM9=" \
|
2004-08-02 07:48:16 +09:00
|
|
|
at91rm9200dk integratorcp integratorap lpd7a400 \
|
|
|
|
mx1ads mx1fs2 omap1510inn omap1610h2 \
|
|
|
|
omap1610inn omap730p2 scb9328 smdk2400 \
|
|
|
|
smdk2410 trab VCMA9 versatile \
|
2003-08-30 07:00:43 +09:00
|
|
|
"
|
2002-11-03 08:17:16 +09:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## Xscale Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2004-09-29 01:44:41 +09:00
|
|
|
LIST_pxa=" \
|
|
|
|
cerf250 cradle csb226 innokom \
|
|
|
|
lubbock wepep250 xaeniax xm250 \
|
|
|
|
xsengine \
|
|
|
|
"
|
2002-11-03 08:17:16 +09:00
|
|
|
|
2003-10-15 04:43:55 +09:00
|
|
|
LIST_ixp="ixdp425"
|
2002-11-03 08:17:16 +09:00
|
|
|
|
2003-10-15 04:43:55 +09:00
|
|
|
|
|
|
|
LIST_arm="${LIST_SA} ${LIST_ARM7} ${LIST_ARM9} ${LIST_pxa} ${LIST_ixp}"
|
2002-11-03 08:17:16 +09:00
|
|
|
|
2003-03-27 21:09:35 +09:00
|
|
|
#########################################################################
|
2003-10-10 05:09:04 +09:00
|
|
|
## MIPS Systems
|
2003-03-27 21:09:35 +09:00
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_mips4kc="incaip"
|
|
|
|
|
2003-04-05 09:53:31 +09:00
|
|
|
LIST_mips5kc="purple"
|
|
|
|
|
2003-12-08 03:32:37 +09:00
|
|
|
LIST_au1x00="dbau1000 dbau1100 dbau1500"
|
2003-10-10 05:09:04 +09:00
|
|
|
|
|
|
|
LIST_mips="${LIST_mips4kc} ${LIST_mips5kc} ${LIST_au1x00}"
|
2003-03-27 21:09:35 +09:00
|
|
|
|
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=" \
|
2004-03-15 00:20:55 +09:00
|
|
|
ADNPESC1 ADNPESC1_base_32 \
|
|
|
|
ADNPESC1_DNPEVA2_base_32 \
|
2004-01-04 04:43:48 +09:00
|
|
|
DK1C20 DK1C20_standard_32 \
|
2004-02-10 08:12:24 +09:00
|
|
|
DK1S10 DK1S10_standard_32 DK1S10_mtx_ldk_20 \
|
2004-01-04 04:43:48 +09:00
|
|
|
"
|
|
|
|
|
2004-07-11 08:48:41 +09:00
|
|
|
#########################################################################
|
|
|
|
## MicroBlaze Systems
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_microblaze="suzaku"
|
|
|
|
|
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
|
2003-12-07 04:49:23 +09:00
|
|
|
${MAKE} ${JOBS} all 2>&1 >LOG/$target.MAKELOG | tee LOG/$target.ERR
|
2002-11-03 08:17:16 +09:00
|
|
|
${CROSS_COMPILE:-ppc_8xx-}size u-boot | tee -a LOG/$target.MAKELOG
|
|
|
|
}
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
for arg in $@
|
|
|
|
do
|
|
|
|
case "$arg" in
|
2003-10-16 08:53:47 +09:00
|
|
|
ppc|5xx|5xxx|8xx|824x|8260|85xx|4xx|7xx|74xx| \
|
2003-10-15 04:43:55 +09:00
|
|
|
arm|SA|ARM7|ARM9|pxa|ixp| \
|
2004-07-11 08:48:41 +09:00
|
|
|
microblaze| \
|
2003-10-15 04:43:55 +09:00
|
|
|
mips| \
|
2004-01-04 04:43:48 +09:00
|
|
|
nios| \
|
2003-10-15 04:43:55 +09:00
|
|
|
x86|I486)
|
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
|