]>
Commit | Line | Data |
---|---|---|
7ebf7443 WD |
1 | #!/bin/sh |
2 | ||
a8c7c708 WD |
3 | : ${JOBS:=} |
4 | ||
7ebf7443 WD |
5 | if [ "${CROSS_COMPILE}" ] ; then |
6 | MAKE="make CROSS_COMPILE=${CROSS_COMPILE}" | |
7 | else | |
8 | MAKE=make | |
9 | fi | |
10 | ||
11 | [ -d LOG ] || mkdir LOG || exit 1 | |
12 | ||
13 | LIST="" | |
14 | ||
0db5bca8 WD |
15 | ######################################################################### |
16 | ## MPC5xx Systems | |
17 | ######################################################################### | |
18 | ||
19 | LIST_5xx=" \ | |
20 | cmi_mpc5xx \ | |
21 | " | |
22 | ||
945af8d7 WD |
23 | ######################################################################### |
24 | ## MPC5xxx Systems | |
25 | ######################################################################### | |
26 | ||
27 | LIST_5xxx=" \ | |
efa329cb | 28 | IceCube_5100 IceCube_5200 EVAL5200 PM520 \ |
945af8d7 WD |
29 | " |
30 | ||
7ebf7443 WD |
31 | ######################################################################### |
32 | ## MPC8xx Systems | |
33 | ######################################################################### | |
34 | ||
35 | LIST_8xx=" \ | |
0cb61d7d | 36 | AdderII ADS860 AMX860 c2mon \ |
180d3f74 WD |
37 | CCM cogent_mpc8xx DUET_ADS ESTEEM192E \ |
38 | ETX094 ELPT860 FADS823 FADS850SAR \ | |
39 | FADS860T FLAGADM FPS850L GEN860T \ | |
40 | GEN860T_SC GENIETV GTH hermes \ | |
41 | IAD210 ICU862_100MHz IP860 IVML24 \ | |
42 | IVML24_128 IVML24_256 IVMS8 IVMS8_128 \ | |
0608e04d WD |
43 | IVMS8_256 KUP4K KUP4X LANTEC \ |
44 | lwmon MBX MBX860T MHPC \ | |
45 | MPC86xADS MVS1 NETVIA NETVIA_V2 \ | |
46 | NX823 pcu_e QS823 QS850 \ | |
47 | QS860T R360MPI RBC823 rmu \ | |
48 | RPXClassic RPXlite RRvision SM850 \ | |
49 | SPD823TS svm_sc8xx SXNI855T TOP860 \ | |
50 | TQM823L TQM823L_LCD TQM850L TQM855L \ | |
04a85b3b | 51 | TQM860L v37 NETTA NETPHONE \ |
7ebf7443 WD |
52 | " |
53 | ||
54 | ######################################################################### | |
55 | ## PPC4xx Systems | |
56 | ######################################################################### | |
57 | ||
58 | LIST_4xx=" \ | |
cd0a9de6 WD |
59 | ADCIOP AR405 ASH405 BUBINGA405EP \ |
60 | CANBT CPCI405 CPCI4052 CPCI405AB \ | |
61 | CPCI440 CPCIISER4 CRAYL1 csb272 \ | |
62 | DASA_SIM DP405 DU405 EBONY \ | |
63 | ERIC EXBITGEN HUB405 MIP405 \ | |
0e6d798c WD |
64 | MIP405T ML2 ml300 OCOTEA \ |
65 | OCRTC ORSG PCI405 PIP405 \ | |
66 | PLU405 PMC405 PPChameleonEVB VOH405 \ | |
67 | W7OLMC W7OLMG WALNUT405 XPEDITE1K \ | |
7ebf7443 WD |
68 | " |
69 | ||
70 | ######################################################################### | |
71 | ## MPC824x Systems | |
72 | ######################################################################### | |
73 | ||
74 | LIST_824x=" \ | |
cd0a9de6 | 75 | A3000 BMW CPC45 CU824 \ |
80885a9d WD |
76 | debris eXalion MOUSSE MUSENKI \ |
77 | MVBLUE OXC PN62 Sandpoint8240 \ | |
78 | Sandpoint8245 SL8245 utx8245 \ | |
7ebf7443 | 79 | " |
592c5cab | 80 | |
7ebf7443 | 81 | ######################################################################### |
7aa78614 | 82 | ## MPC8260 Systems (includes 8250, 8255 etc.) |
7ebf7443 WD |
83 | ######################################################################### |
84 | ||
85 | LIST_8260=" \ | |
45219c46 | 86 | atc cogent_mpc8260 CPU86 ep8260 \ |
7aa78614 | 87 | gw8260 hymod IPHASE4539 MPC8260ADS \ |
04a85b3b WD |
88 | MPC8266ADS MPC8272ADS PM826 PM828 \ |
89 | ppmc8260 PQ2FADS RPXsuper rsdproto \ | |
90 | sacsng sbc8260 SCM TQM8260_AC \ | |
91 | TQM8260_AD TQM8260_AE ZPC1900 \ | |
7ebf7443 WD |
92 | " |
93 | ||
42d1f039 WD |
94 | ######################################################################### |
95 | ## MPC85xx Systems (includes 8540, 8560 etc.) | |
96 | ######################################################################### | |
97 | ||
98 | LIST_85xx=" \ | |
99 | MPC8540ADS MPC8560ADS \ | |
100 | " | |
101 | ||
7ebf7443 WD |
102 | ######################################################################### |
103 | ## 74xx/7xx Systems | |
104 | ######################################################################### | |
105 | ||
106 | LIST_74xx=" \ | |
3a473b2a WD |
107 | DB64360 DB64460 EVB64260 P3G4 \ |
108 | PCIPPC2 PCIPPC6 ZUMA \ | |
7ebf7443 WD |
109 | " |
110 | ||
111 | LIST_7xx=" \ | |
112 | BAB7xx ELPPC \ | |
113 | " | |
114 | ||
945af8d7 WD |
115 | LIST_ppc="${LIST_5xx} ${LIST_5xxx} \ |
116 | ${LIST_8xx} \ | |
0db5bca8 | 117 | ${LIST_824x} ${LIST_8260} \ |
42d1f039 | 118 | ${LIST_85xx} \ |
0db5bca8 WD |
119 | ${LIST_4xx} \ |
120 | ${LIST_74xx} ${LIST_7xx}" | |
7ebf7443 WD |
121 | |
122 | ######################################################################### | |
123 | ## StrongARM Systems | |
124 | ######################################################################### | |
125 | ||
855a496f | 126 | LIST_SA="dnp1110 gcplus lart shannon" |
7ebf7443 WD |
127 | |
128 | ######################################################################### | |
129 | ## ARM7 Systems | |
130 | ######################################################################### | |
131 | ||
074cff0d | 132 | LIST_ARM7="B2 ep7312 impa7" |
7ebf7443 WD |
133 | |
134 | ######################################################################### | |
135 | ## ARM9 Systems | |
136 | ######################################################################### | |
137 | ||
6f21347d | 138 | LIST_ARM9=" \ |
3d3befa7 WD |
139 | at91rm9200dk integratorcp integratorap \ |
140 | omap1510inn omap1610h2 omap1610inn \ | |
6f21347d | 141 | smdk2400 smdk2410 trab \ |
3d3befa7 | 142 | VCMA9 versatile \ |
6f21347d | 143 | " |
7ebf7443 WD |
144 | |
145 | ######################################################################### | |
146 | ## Xscale Systems | |
147 | ######################################################################### | |
148 | ||
efa329cb | 149 | LIST_pxa="cradle csb226 innokom lubbock wepep250 xm250" |
7ebf7443 | 150 | |
2d5b561e | 151 | LIST_ixp="ixdp425" |
7ebf7443 | 152 | |
2d5b561e WD |
153 | |
154 | LIST_arm="${LIST_SA} ${LIST_ARM7} ${LIST_ARM9} ${LIST_pxa} ${LIST_ixp}" | |
7ebf7443 | 155 | |
c021880a | 156 | ######################################################################### |
5da627a4 | 157 | ## MIPS Systems |
c021880a WD |
158 | ######################################################################### |
159 | ||
160 | LIST_mips4kc="incaip" | |
161 | ||
3e38691e WD |
162 | LIST_mips5kc="purple" |
163 | ||
a2663ea4 | 164 | LIST_au1x00="dbau1000 dbau1100 dbau1500" |
5da627a4 WD |
165 | |
166 | LIST_mips="${LIST_mips4kc} ${LIST_mips5kc} ${LIST_au1x00}" | |
c021880a | 167 | |
7a8e9bed WD |
168 | ######################################################################### |
169 | ## i386 Systems | |
170 | ######################################################################### | |
171 | ||
172 | LIST_I486="sc520_cdp sc520_spunk sc520_spunk_rel" | |
173 | ||
174 | LIST_x86="${LIST_I486}" | |
175 | ||
c935d3bd WD |
176 | ######################################################################### |
177 | ## NIOS Systems | |
178 | ######################################################################### | |
179 | ||
180 | LIST_nios=" \ | |
aaf224ab WD |
181 | ADNPESC1 ADNPESC1_base_32 \ |
182 | ADNPESC1_DNPEVA2_base_32 \ | |
c935d3bd | 183 | DK1C20 DK1C20_standard_32 \ |
ec4c544b | 184 | DK1S10 DK1S10_standard_32 DK1S10_mtx_ldk_20 \ |
c935d3bd WD |
185 | " |
186 | ||
7a8e9bed | 187 | #----------------------------------------------------------------------- |
7ebf7443 WD |
188 | |
189 | #----- for now, just run PPC by default ----- | |
190 | [ $# = 0 ] && set $LIST_ppc | |
191 | ||
192 | #----------------------------------------------------------------------- | |
193 | ||
194 | build_target() { | |
195 | target=$1 | |
196 | ||
197 | ${MAKE} distclean >/dev/null | |
198 | ${MAKE} ${target}_config | |
a8c7c708 | 199 | ${MAKE} ${JOBS} all 2>&1 >LOG/$target.MAKELOG | tee LOG/$target.ERR |
7ebf7443 WD |
200 | ${CROSS_COMPILE:-ppc_8xx-}size u-boot | tee -a LOG/$target.MAKELOG |
201 | } | |
202 | ||
203 | #----------------------------------------------------------------------- | |
204 | ||
205 | ||
206 | for arg in $@ | |
207 | do | |
208 | case "$arg" in | |
42d1f039 | 209 | ppc|5xx|5xxx|8xx|824x|8260|85xx|4xx|7xx|74xx| \ |
2d5b561e WD |
210 | arm|SA|ARM7|ARM9|pxa|ixp| \ |
211 | mips| \ | |
c935d3bd | 212 | nios| \ |
2d5b561e | 213 | x86|I486) |
7ebf7443 WD |
214 | for target in `eval echo '$LIST_'${arg}` |
215 | do | |
216 | build_target ${target} | |
217 | done | |
218 | ;; | |
219 | *) build_target ${arg} | |
220 | ;; | |
221 | esac | |
222 | done |