]>
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 | ||
f9328639 MB |
11 | if [ "${MAKEALL_LOGDIR}" ] ; then |
12 | LOG_DIR=${MAKEALL_LOGDIR} | |
13 | else | |
14 | LOG_DIR="LOG" | |
15 | fi | |
887e2ec9 | 16 | |
f9328639 MB |
17 | if [ ! "${BUILD_DIR}" ] ; then |
18 | BUILD_DIR="." | |
19 | fi | |
20 | ||
4f0645eb | 21 | [ -d ${LOG_DIR} ] || mkdir ${LOG_DIR} || exit 1 |
7ebf7443 WD |
22 | |
23 | LIST="" | |
24 | ||
0db5bca8 WD |
25 | ######################################################################### |
26 | ## MPC5xx Systems | |
27 | ######################################################################### | |
28 | ||
29 | LIST_5xx=" \ | |
30 | cmi_mpc5xx \ | |
31 | " | |
32 | ||
945af8d7 WD |
33 | ######################################################################### |
34 | ## MPC5xxx Systems | |
35 | ######################################################################### | |
36 | ||
37 | LIST_5xxx=" \ | |
86b116b1 | 38 | BC3450 cm5200 cpci5200 EVAL5200 \ |
fa1df308 BS |
39 | fo300 icecube_5100 icecube_5200 lite5200b \ |
40 | mcc200 mecp5200 motionpro o2dnt \ | |
41 | pf5200 PM520 TB5200 Total5100 \ | |
42 | Total5200 Total5200_Rev2 TQM5200 TQM5200_B \ | |
43 | TQM5200S v38b \ | |
945af8d7 WD |
44 | " |
45 | ||
8993e54b RJ |
46 | ######################################################################### |
47 | ## MPC512x Systems | |
48 | ######################################################################### | |
49 | ||
50 | LIST_512x=" \ | |
51 | ads5121 \ | |
52 | " | |
53 | ||
7ebf7443 WD |
54 | ######################################################################### |
55 | ## MPC8xx Systems | |
56 | ######################################################################### | |
7ebf7443 | 57 | LIST_8xx=" \ |
da93ed81 WD |
58 | Adder87x GENIETV MBX860T R360MPI \ |
59 | AdderII GTH MHPC RBC823 \ | |
60 | ADS860 hermes MPC86xADS rmu \ | |
61 | AMX860 IAD210 MPC885ADS RPXClassic \ | |
62 | c2mon ICU862_100MHz MVS1 RPXlite \ | |
63 | CCM IP860 NETPHONE RPXlite_DW \ | |
64 | cogent_mpc8xx IVML24 NETTA RRvision \ | |
65 | ELPT860 IVML24_128 NETTA2 SM850 \ | |
b02d0177 MK |
66 | EP88x IVML24_256 NETTA_ISDN spc1920 \ |
67 | ESTEEM192E IVMS8 NETVIA SPD823TS \ | |
68 | ETX094 IVMS8_128 NETVIA_V2 svm_sc8xx \ | |
69 | FADS823 IVMS8_256 NX823 SXNI855T \ | |
70 | FADS850SAR KUP4K pcu_e TOP860 \ | |
71 | FADS860T KUP4X QS823 TQM823L \ | |
72 | FLAGADM LANTEC QS850 TQM823L_LCD \ | |
73 | FPS850L lwmon QS860T TQM850L \ | |
74 | GEN860T MBX quantum TQM855L \ | |
75 | GEN860T_SC TQM860L \ | |
090eb735 | 76 | TQM885D \ |
b02d0177 | 77 | uc100 \ |
ec0aee7b | 78 | v37 \ |
7ebf7443 WD |
79 | " |
80 | ||
81 | ######################################################################### | |
82 | ## PPC4xx Systems | |
83 | ######################################################################### | |
84 | ||
85 | LIST_4xx=" \ | |
c440bfe6 SR |
86 | acadia acadia_nand ADCIOP alpr \ |
87 | AP1000 AR405 ASH405 bamboo \ | |
88 | bamboo_nand bubinga CANBT CMS700 \ | |
89 | CPCI2DP CPCI405 CPCI4052 CPCI405AB \ | |
90 | CPCI405DT CPCI440 CPCIISER4 CRAYL1 \ | |
91 | csb272 csb472 DASA_SIM DP405 \ | |
92 | DU405 ebony ERIC EXBITGEN \ | |
93 | G2000 HH405 HUB405 JSE \ | |
b765ffb7 SR |
94 | KAREF katmai luan lwmon5 \ |
95 | METROBOX MIP405 MIP405T ML2 \ | |
96 | ml300 ocotea OCRTC ORSG \ | |
97 | p3p440 PCI405 pcs440ep PIP405 \ | |
98 | PLU405 PMC405 PPChameleonEVB sbc405 \ | |
99 | sc3 sequoia sequoia_nand taishan \ | |
100 | VOH405 VOM405 W7OLMC W7OLMG \ | |
101 | walnut WUH405 XPEDITE1K yellowstone \ | |
102 | yosemite yucca \ | |
7ebf7443 WD |
103 | " |
104 | ||
983fda83 WD |
105 | ######################################################################### |
106 | ## MPC8220 Systems | |
107 | ######################################################################### | |
108 | ||
109 | LIST_8220=" \ | |
110 | Alaska8220 Yukon8220 \ | |
111 | " | |
112 | ||
7ebf7443 WD |
113 | ######################################################################### |
114 | ## MPC824x Systems | |
115 | ######################################################################### | |
116 | ||
117 | LIST_824x=" \ | |
8e6f1a8e WD |
118 | A3000 barco BMW CPC45 \ |
119 | CU824 debris eXalion HIDDEN_DRAGON \ | |
144f7795 | 120 | MOUSSE MUSENKI MVBLUE \ |
53dd6ce4 WD |
121 | OXC PN62 Sandpoint8240 Sandpoint8245 \ |
122 | sbc8240 SL8245 utx8245 \ | |
7ebf7443 | 123 | " |
592c5cab | 124 | |
7ebf7443 | 125 | ######################################################################### |
7aa78614 | 126 | ## MPC8260 Systems (includes 8250, 8255 etc.) |
7ebf7443 WD |
127 | ######################################################################### |
128 | ||
129 | LIST_8260=" \ | |
384cc687 | 130 | atc cogent_mpc8260 CPU86 CPU87 \ |
8d4ac794 WD |
131 | ep8248 ep8260 ep82xxm gw8260 \ |
132 | hymod IPHASE4539 ISPAN MPC8260ADS \ | |
133 | MPC8266ADS MPC8272ADS PM826 PM828 \ | |
134 | ppmc8260 Rattler8248 RPXsuper rsdproto \ | |
135 | sacsng sbc8260 SCM TQM8260_AC \ | |
136 | TQM8260_AD TQM8260_AE ZPC1900 \ | |
7ebf7443 WD |
137 | " |
138 | ||
f046ccd1 EL |
139 | ######################################################################### |
140 | ## MPC83xx Systems (includes 8349, etc.) | |
141 | ######################################################################### | |
142 | ||
143 | LIST_83xx=" \ | |
cdd917a4 WD |
144 | MPC8313ERDB_33 MPC8313ERDB_66 MPC832XEMDS MPC8349EMDS \ |
145 | MPC8349ITX MPC8349ITXGP MPC8360EMDS sbc8349 \ | |
146 | TQM834x \ | |
f046ccd1 EL |
147 | " |
148 | ||
149 | ||
42d1f039 WD |
150 | ######################################################################### |
151 | ## MPC85xx Systems (includes 8540, 8560 etc.) | |
152 | ######################################################################### | |
153 | ||
154 | LIST_85xx=" \ | |
81f481ca | 155 | MPC8540ADS MPC8540EVAL MPC8541CDS MPC8544DS \ |
46175d97 JL |
156 | MPC8548CDS MPC8555CDS MPC8560ADS MPC8568MDS \ |
157 | PM854 PM856 sbc8540 sbc8560 \ | |
158 | stxgp3 stxssa TQM8540 TQM8541 \ | |
159 | TQM8555 TQM8560 \ | |
42d1f039 WD |
160 | " |
161 | ||
822d5536 JL |
162 | ######################################################################### |
163 | ## MPC86xx Systems | |
164 | ######################################################################### | |
165 | ||
166 | LIST_86xx=" \ | |
167 | MPC8641HPCN \ | |
168 | " | |
169 | ||
7ebf7443 WD |
170 | ######################################################################### |
171 | ## 74xx/7xx Systems | |
172 | ######################################################################### | |
173 | ||
174 | LIST_74xx=" \ | |
3a473b2a | 175 | DB64360 DB64460 EVB64260 P3G4 \ |
1eac2a71 | 176 | p3m7448 PCIPPC2 PCIPPC6 ZUMA \ |
e0b369e4 | 177 | mpc7448hpc2 |
7ebf7443 WD |
178 | " |
179 | ||
180 | LIST_7xx=" \ | |
1eac2a71 SR |
181 | BAB7xx CPCI750 ELPPC p3m750 \ |
182 | ppmc7xx \ | |
7ebf7443 WD |
183 | " |
184 | ||
342717f7 WD |
185 | LIST_ppc="${LIST_5xx} ${LIST_5xxx} \ |
186 | ${LIST_8xx} \ | |
187 | ${LIST_8220} ${LIST_824x} ${LIST_8260} \ | |
f046ccd1 | 188 | ${LIST_83xx} \ |
342717f7 | 189 | ${LIST_85xx} \ |
822d5536 | 190 | ${LIST_86xx} \ |
342717f7 | 191 | ${LIST_4xx} \ |
0db5bca8 | 192 | ${LIST_74xx} ${LIST_7xx}" |
7ebf7443 WD |
193 | |
194 | ######################################################################### | |
195 | ## StrongARM Systems | |
196 | ######################################################################### | |
197 | ||
ea66bc88 | 198 | LIST_SA="assabet dnp1110 gcplus lart shannon" |
7ebf7443 WD |
199 | |
200 | ######################################################################### | |
201 | ## ARM7 Systems | |
202 | ######################################################################### | |
203 | ||
74f4304e | 204 | LIST_ARM7=" \ |
c570b2fd | 205 | armadillo B2 ep7312 evb4510 \ |
87cb6862 | 206 | impa7 integratorap ap7 ap720t \ |
b0d8f5bf | 207 | lpc2292sodimm modnet50 SMN42 \ |
74f4304e | 208 | " |
7ebf7443 WD |
209 | |
210 | ######################################################################### | |
211 | ## ARM9 Systems | |
212 | ######################################################################### | |
213 | ||
6f21347d | 214 | LIST_ARM9=" \ |
87cb6862 WD |
215 | at91rm9200dk cmc_pu2 \ |
216 | ap920t ap922_XA10 ap926ejs ap946es \ | |
217 | ap966 cp920t cp922_XA10 cp926ejs \ | |
218 | cp946es cp966 lpd7a400 mp2usb \ | |
addb2e16 | 219 | mx1ads mx1fs2 netstar omap1510inn \ |
32cb2c70 WD |
220 | omap1610h2 omap1610inn omap730p2 sbc2410x \ |
221 | scb9328 smdk2400 smdk2410 trab \ | |
222 | VCMA9 versatile versatileab versatilepb \ | |
223 | voiceblue \ | |
6f21347d | 224 | " |
7ebf7443 | 225 | |
74f4304e WD |
226 | ######################################################################### |
227 | ## ARM10 Systems | |
228 | ######################################################################### | |
229 | LIST_ARM10=" \ | |
87cb6862 | 230 | integratorcp cp1026 \ |
74f4304e WD |
231 | " |
232 | ||
8ed96046 WD |
233 | ######################################################################### |
234 | ## ARM11 Systems | |
235 | ######################################################################### | |
74f4304e | 236 | LIST_ARM11=" \ |
87cb6862 | 237 | cp1136 omap2420h4 \ |
74f4304e | 238 | " |
8ed96046 | 239 | |
7ebf7443 WD |
240 | ######################################################################### |
241 | ## Xscale Systems | |
242 | ######################################################################### | |
243 | ||
4ec3a7f0 | 244 | LIST_pxa=" \ |
20787e23 | 245 | adsvix cerf250 cradle csb226 \ |
5720df78 HS |
246 | delta innokom lubbock pleb2 \ |
247 | pxa255_idp wepep250 xaeniax xm250 \ | |
248 | xsengine zylonite \ | |
4ec3a7f0 | 249 | " |
7ebf7443 | 250 | |
9d8d5a5b | 251 | LIST_ixp="ixdp425 ixdpg425 pdnb3 scpu" |
7ebf7443 | 252 | |
2d5b561e | 253 | |
8ed96046 WD |
254 | LIST_arm=" \ |
255 | ${LIST_SA} \ | |
74f4304e | 256 | ${LIST_ARM7} ${LIST_ARM9} ${LIST_ARM10} ${LIST_ARM11} \ |
8ed96046 WD |
257 | ${LIST_pxa} ${LIST_ixp} \ |
258 | " | |
7ebf7443 | 259 | |
c021880a | 260 | ######################################################################### |
b62bdffb | 261 | ## MIPS Systems (default = big endian) |
c021880a WD |
262 | ######################################################################### |
263 | ||
264 | LIST_mips4kc="incaip" | |
265 | ||
3e38691e WD |
266 | LIST_mips5kc="purple" |
267 | ||
0c32d96d | 268 | LIST_au1xx0="dbau1000 dbau1100 dbau1500 dbau1550 dbau1550_el gth2" |
5da627a4 | 269 | |
ff36fd85 | 270 | LIST_mips="${LIST_mips4kc} ${LIST_mips5kc} ${LIST_au1xx0}" |
c021880a | 271 | |
b62bdffb WD |
272 | ######################################################################### |
273 | ## MIPS Systems (little endian) | |
274 | ######################################################################### | |
275 | ||
276 | LIST_mips4kc_el="" | |
277 | ||
278 | LIST_mips5kc_el="" | |
279 | ||
280 | LIST_au1xx0_el="dbau1550_el" | |
281 | ||
282 | LIST_mips_el="${LIST_mips4kc_el} ${LIST_mips5kc_el} ${LIST_au1xx0_el}" | |
283 | ||
7a8e9bed WD |
284 | ######################################################################### |
285 | ## i386 Systems | |
286 | ######################################################################### | |
287 | ||
288 | LIST_I486="sc520_cdp sc520_spunk sc520_spunk_rel" | |
289 | ||
290 | LIST_x86="${LIST_I486}" | |
291 | ||
c935d3bd WD |
292 | ######################################################################### |
293 | ## NIOS Systems | |
294 | ######################################################################### | |
295 | ||
296 | LIST_nios=" \ | |
4176c799 | 297 | ADNPESC1 ADNPESC1_base_32 \ |
aaf224ab | 298 | ADNPESC1_DNPEVA2_base_32 \ |
4176c799 WD |
299 | DK1C20 DK1C20_standard_32 \ |
300 | DK1S10 DK1S10_standard_32 DK1S10_mtx_ldk_20 \ | |
c935d3bd WD |
301 | " |
302 | ||
5c952cf0 WD |
303 | ######################################################################### |
304 | ## Nios-II Systems | |
305 | ######################################################################### | |
306 | ||
4176c799 WD |
307 | LIST_nios2=" \ |
308 | EP1C20 EP1S10 EP1S40 \ | |
309 | PCI5441 PK1C20 \ | |
310 | " | |
5c952cf0 | 311 | |
857cad37 WD |
312 | ######################################################################### |
313 | ## MicroBlaze Systems | |
314 | ######################################################################### | |
315 | ||
4176c799 | 316 | LIST_microblaze=" \ |
17980495 | 317 | suzaku ml401 xupv2p |
4176c799 | 318 | " |
857cad37 | 319 | |
f8c3b4f3 ZL |
320 | ######################################################################### |
321 | ## ColdFire Systems | |
322 | ######################################################################### | |
323 | ||
4176c799 WD |
324 | LIST_coldfire=" \ |
325 | cobra5272 EB+MCF-EV123 EB+MCF-EV123_internal \ | |
82e5236a | 326 | idmr M5271EVB M5272C3 M5282EVB \ |
daa6e418 | 327 | TASREG r5200 M5271EVB \ |
9acb626f | 328 | " |
f8c3b4f3 | 329 | |
6ccec449 WD |
330 | ######################################################################### |
331 | ## AVR32 Systems | |
332 | ######################################################################### | |
333 | ||
334 | LIST_avr32="atstk1002" | |
335 | ||
ef26a08f AL |
336 | ######################################################################### |
337 | ## Blackfin Systems | |
338 | ######################################################################### | |
339 | ||
340 | LIST_blackfin=" \ | |
65458987 | 341 | bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit \ |
ef26a08f AL |
342 | " |
343 | ||
7a8e9bed | 344 | #----------------------------------------------------------------------- |
7ebf7443 WD |
345 | |
346 | #----- for now, just run PPC by default ----- | |
347 | [ $# = 0 ] && set $LIST_ppc | |
348 | ||
349 | #----------------------------------------------------------------------- | |
350 | ||
351 | build_target() { | |
352 | target=$1 | |
353 | ||
354 | ${MAKE} distclean >/dev/null | |
355 | ${MAKE} ${target}_config | |
f9328639 MB |
356 | |
357 | ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \ | |
358 | | tee ${LOG_DIR}/$target.ERR | |
359 | ||
360 | ${CROSS_COMPILE:-ppc_8xx-}size ${BUILD_DIR}/u-boot \ | |
361 | | tee -a ${LOG_DIR}/$target.MAKELOG | |
7ebf7443 WD |
362 | } |
363 | ||
364 | #----------------------------------------------------------------------- | |
365 | ||
366 | ||
367 | for arg in $@ | |
368 | do | |
369 | case "$arg" in | |
44ba464b WD |
370 | arm|SA|ARM7|ARM9|ARM10|ARM11|ixp|pxa| \ |
371 | avr32| \ | |
372 | blackfin| \ | |
373 | coldfire| \ | |
857cad37 | 374 | microblaze| \ |
b62bdffb | 375 | mips|mips_el| \ |
5c952cf0 | 376 | nios|nios2| \ |
8993e54b | 377 | ppc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx| \ |
44ba464b | 378 | x86|I486) |
7ebf7443 WD |
379 | for target in `eval echo '$LIST_'${arg}` |
380 | do | |
381 | build_target ${target} | |
382 | done | |
383 | ;; | |
384 | *) build_target ${arg} | |
385 | ;; | |
386 | esac | |
387 | done |