]>
Commit | Line | Data |
---|---|---|
f2352877 | 1 | #!/bin/bash |
7ebf7443 | 2 | |
40a28f08 PT |
3 | # Print statistics when we exit |
4 | trap exit 1 2 3 15 | |
5 | trap print_stats 0 | |
6 | ||
7fa6a2f3 WD |
7 | # Determine number of CPU cores if no default was set |
8 | : ${BUILD_NCPUS:="`getconf _NPROCESSORS_ONLN`"} | |
9 | ||
10 | if [ "$BUILD_NCPUS" -gt 1 ] | |
11 | then | |
55f786d8 | 12 | JOBS="-j $((BUILD_NCPUS + 1))" |
7fa6a2f3 WD |
13 | else |
14 | JOBS="" | |
15 | fi | |
16 | ||
a8c7c708 | 17 | |
7ebf7443 WD |
18 | if [ "${CROSS_COMPILE}" ] ; then |
19 | MAKE="make CROSS_COMPILE=${CROSS_COMPILE}" | |
20 | else | |
21 | MAKE=make | |
22 | fi | |
23 | ||
f9328639 MB |
24 | if [ "${MAKEALL_LOGDIR}" ] ; then |
25 | LOG_DIR=${MAKEALL_LOGDIR} | |
26 | else | |
27 | LOG_DIR="LOG" | |
28 | fi | |
887e2ec9 | 29 | |
f9328639 MB |
30 | if [ ! "${BUILD_DIR}" ] ; then |
31 | BUILD_DIR="." | |
32 | fi | |
33 | ||
4f0645eb | 34 | [ -d ${LOG_DIR} ] || mkdir ${LOG_DIR} || exit 1 |
7ebf7443 WD |
35 | |
36 | LIST="" | |
37 | ||
40a28f08 PT |
38 | # Keep track of the number of builds and errors |
39 | ERR_CNT=0 | |
40 | ERR_LIST="" | |
41 | TOTAL_CNT=0 | |
f2352877 | 42 | RC=0 |
40a28f08 | 43 | |
9ec49f8f MF |
44 | # Helper funcs for parsing boards.cfg |
45 | boards_by_field() | |
46 | { | |
47 | awk \ | |
48 | -v field="$1" \ | |
49 | -v select="$2" \ | |
50 | '($1 !~ /^#/ && $field == select) { print $1 }' \ | |
51 | boards.cfg | |
52 | } | |
53 | boards_by_arch() { boards_by_field 2 "$@" ; } | |
54 | boards_by_cpu() { boards_by_field 3 "$@" ; } | |
55 | ||
0db5bca8 WD |
56 | ######################################################################### |
57 | ## MPC5xx Systems | |
58 | ######################################################################### | |
59 | ||
9ec49f8f | 60 | LIST_5xx="$(boards_by_cpu mpc5xx)" |
0db5bca8 | 61 | |
945af8d7 WD |
62 | ######################################################################### |
63 | ## MPC5xxx Systems | |
64 | ######################################################################### | |
65 | ||
9ec49f8f | 66 | LIST_5xxx="$(boards_by_cpu mpc5xxx) |
5c4fa9b4 | 67 | digsy_mtc \ |
fb56579f KP |
68 | EVAL5200 \ |
69 | fo300 \ | |
5b53b29b | 70 | galaxy5200 \ |
fb56579f KP |
71 | icecube_5200 \ |
72 | lite5200b \ | |
73 | mcc200 \ | |
5e0de0e2 | 74 | MVBC_P \ |
1f2463d7 | 75 | MVSMR \ |
c9969947 | 76 | pcm030 \ |
fb56579f KP |
77 | PM520 \ |
78 | TB5200 \ | |
fb56579f KP |
79 | Total5200 \ |
80 | Total5200_Rev2 \ | |
81 | TQM5200 \ | |
82 | TQM5200_B \ | |
83 | TQM5200S \ | |
945af8d7 WD |
84 | " |
85 | ||
8993e54b RJ |
86 | ######################################################################### |
87 | ## MPC512x Systems | |
88 | ######################################################################### | |
89 | ||
9ec49f8f | 90 | LIST_512x="$(boards_by_cpu mpc512x) |
72601d04 | 91 | mpc5121ads \ |
945af8d7 WD |
92 | " |
93 | ||
7ebf7443 WD |
94 | ######################################################################### |
95 | ## MPC8xx Systems | |
96 | ######################################################################### | |
9ec49f8f MF |
97 | |
98 | LIST_8xx="$(boards_by_cpu mpc8xx) | |
fb56579f KP |
99 | Adder87x \ |
100 | AdderII \ | |
101 | ADS860 \ | |
fb56579f KP |
102 | FADS823 \ |
103 | FADS850SAR \ | |
104 | FADS860T \ | |
fb56579f KP |
105 | FPS850L \ |
106 | GEN860T \ | |
107 | GEN860T_SC \ | |
fb56579f | 108 | ICU862_100MHz \ |
fb56579f KP |
109 | IVML24 \ |
110 | IVML24_128 \ | |
111 | IVML24_256 \ | |
112 | IVMS8 \ | |
113 | IVMS8_128 \ | |
114 | IVMS8_256 \ | |
fb56579f KP |
115 | MBX \ |
116 | MBX860T \ | |
fb56579f KP |
117 | MPC86xADS \ |
118 | MPC885ADS \ | |
fb56579f KP |
119 | NETPHONE \ |
120 | NETTA \ | |
121 | NETTA2 \ | |
122 | NETTA_ISDN \ | |
123 | NETVIA \ | |
124 | NETVIA_V2 \ | |
fb56579f | 125 | RPXlite_DW \ |
fb56579f | 126 | SPD823TS \ |
fb56579f | 127 | SXNI855T \ |
efc6f447 | 128 | TK885D \ |
fb56579f KP |
129 | TQM823L \ |
130 | TQM823L_LCD \ | |
131 | TQM850L \ | |
132 | TQM855L \ | |
133 | TQM860L \ | |
134 | TQM885D \ | |
fb56579f | 135 | v37 \ |
7ebf7443 WD |
136 | " |
137 | ||
138 | ######################################################################### | |
139 | ## PPC4xx Systems | |
140 | ######################################################################### | |
141 | ||
9ec49f8f | 142 | LIST_4xx="$(boards_by_cpu ppc4xx) |
fb56579f | 143 | acadia_nand \ |
f09f09d3 | 144 | arches \ |
fb56579f | 145 | bamboo_nand \ |
c813f1f8 | 146 | canyonlands \ |
71665ebf | 147 | canyonlands_nand \ |
fb56579f KP |
148 | CPCI405 \ |
149 | CPCI4052 \ | |
150 | CPCI405AB \ | |
151 | CPCI405DT \ | |
ab4c62c1 | 152 | devconcenter \ |
5deb8022 | 153 | fx12mm \ |
4c9e8557 | 154 | glacier \ |
353f2688 | 155 | haleakala \ |
3d6cb3b2 | 156 | haleakala_nand \ |
3b3bff4c SR |
157 | hcu4 \ |
158 | hcu5 \ | |
4c188367 | 159 | intip \ |
566806ca | 160 | kilauea \ |
3d6cb3b2 | 161 | kilauea_nand \ |
b05f3543 | 162 | mcu25 \ |
fb56579f | 163 | MIP405T \ |
086511fc | 164 | ml507 \ |
01a00431 | 165 | ml507_flash \ |
fb56579f KP |
166 | OCRTC \ |
167 | ORSG \ | |
fb56579f | 168 | PPChameleonEVB \ |
6da0c5bd | 169 | rainier \ |
fb56579f KP |
170 | sequoia \ |
171 | sequoia_nand \ | |
e07f4a80 RR |
172 | v5fx30teval \ |
173 | v5fx30teval_flash \ | |
fb56579f KP |
174 | W7OLMC \ |
175 | W7OLMG \ | |
176 | walnut \ | |
e07f4a80 RR |
177 | xilinx-ppc440-generic \ |
178 | xilinx-ppc440-generic_flash \ | |
fb56579f KP |
179 | yellowstone \ |
180 | yosemite \ | |
7ebf7443 WD |
181 | " |
182 | ||
983fda83 WD |
183 | ######################################################################### |
184 | ## MPC8220 Systems | |
185 | ######################################################################### | |
186 | ||
9ec49f8f | 187 | LIST_8220="$(boards_by_cpu mpc8220)" |
983fda83 | 188 | |
7ebf7443 WD |
189 | ######################################################################### |
190 | ## MPC824x Systems | |
191 | ######################################################################### | |
192 | ||
9ec49f8f | 193 | LIST_824x="$(boards_by_cpu mpc824x) |
fb56579f | 194 | CPC45 \ |
fb56579f | 195 | eXalion \ |
3c1d8954 | 196 | IDS8247 \ |
61525f2f | 197 | linkstation_HGLAN \ |
fb56579f KP |
198 | Sandpoint8240 \ |
199 | Sandpoint8245 \ | |
7ebf7443 | 200 | " |
592c5cab | 201 | |
7ebf7443 | 202 | ######################################################################### |
7aa78614 | 203 | ## MPC8260 Systems (includes 8250, 8255 etc.) |
7ebf7443 WD |
204 | ######################################################################### |
205 | ||
9ec49f8f | 206 | LIST_8260="$(boards_by_cpu mpc8260) |
fb56579f KP |
207 | cogent_mpc8260 \ |
208 | CPU86 \ | |
209 | CPU87 \ | |
210 | ep8248 \ | |
fb56579f KP |
211 | ISPAN \ |
212 | MPC8260ADS \ | |
fb56579f KP |
213 | MPC8272ADS \ |
214 | PM826 \ | |
215 | PM828 \ | |
fb56579f | 216 | Rattler8248 \ |
fb56579f KP |
217 | TQM8260_AC \ |
218 | TQM8260_AD \ | |
219 | TQM8260_AE \ | |
7ebf7443 WD |
220 | " |
221 | ||
f046ccd1 EL |
222 | ######################################################################### |
223 | ## MPC83xx Systems (includes 8349, etc.) | |
224 | ######################################################################### | |
225 | ||
9ec49f8f | 226 | LIST_83xx="$(boards_by_cpu mpc83xx) |
1dee9be6 | 227 | caddy2 \ |
fb56579f | 228 | MPC8313ERDB_33 \ |
64ac1eb5 | 229 | MPC8313ERDB_NAND_66 \ |
8bd522ce | 230 | MPC8315ERDB \ |
2e95004d | 231 | MPC8315ERDB_NAND \ |
fb56579f | 232 | MPC832XEMDS \ |
281df457 | 233 | MPC832XEMDS_ATM \ |
fb56579f KP |
234 | MPC8349ITX \ |
235 | MPC8349ITXGP \ | |
236 | MPC8360EMDS \ | |
281df457 | 237 | MPC8360EMDS_ATM \ |
fab6f556 AV |
238 | MPC8360ERDK_33 \ |
239 | MPC8360ERDK_66 \ | |
b21add4b | 240 | MPC837XEMDS \ |
fb56579f | 241 | sbc8349 \ |
5bb907a4 | 242 | SIMPC8313_LP \ |
c2e49f70 | 243 | vme8349 \ |
f046ccd1 EL |
244 | " |
245 | ||
246 | ||
42d1f039 WD |
247 | ######################################################################### |
248 | ## MPC85xx Systems (includes 8540, 8560 etc.) | |
249 | ######################################################################### | |
250 | ||
9ec49f8f | 251 | LIST_85xx="$(boards_by_cpu mpc85xx) |
9490a7f1 | 252 | MPC8536DS \ |
9a1a0aed | 253 | MPC8536DS_NAND \ |
e40ac487 MH |
254 | MPC8536DS_SDCARD \ |
255 | MPC8536DS_SPIFLASH \ | |
7030d56b | 256 | MPC8536DS_36BIT \ |
fb56579f KP |
257 | MPC8540EVAL \ |
258 | MPC8541CDS \ | |
fb56579f KP |
259 | MPC8548CDS \ |
260 | MPC8555CDS \ | |
765547dc | 261 | MPC8569MDS \ |
c95d541e | 262 | MPC8569MDS_ATM \ |
674ef7bd | 263 | MPC8569MDS_NAND \ |
129ba616 | 264 | MPC8572DS \ |
18af1c5f | 265 | MPC8572DS_36BIT \ |
feb7838f SS |
266 | P2020DS \ |
267 | P2020DS_36BIT \ | |
c17b79fb | 268 | P1011RDB \ |
f7780ec9 | 269 | P1011RDB_NAND \ |
fad15096 DD |
270 | P1011RDB_SDCARD \ |
271 | P1011RDB_SPIFLASH \ | |
bf488bc0 | 272 | P1020RDB \ |
f7780ec9 | 273 | P1020RDB_NAND \ |
fad15096 DD |
274 | P1020RDB_SDCARD \ |
275 | P1020RDB_SPIFLASH \ | |
c17b79fb | 276 | P2010RDB \ |
f7780ec9 | 277 | P2010RDB_NAND \ |
fad15096 DD |
278 | P2010RDB_SDCARD \ |
279 | P2010RDB_SPIFLASH \ | |
728ece34 | 280 | P2020RDB \ |
f7780ec9 | 281 | P2020RDB_NAND \ |
fad15096 DD |
282 | P2020RDB_SDCARD \ |
283 | P2020RDB_SPIFLASH \ | |
fb56579f | 284 | sbc8540 \ |
11c45ebd | 285 | sbc8548 \ |
2738bc8d PG |
286 | sbc8548_PCI_33 \ |
287 | sbc8548_PCI_66 \ | |
288 | sbc8548_PCI_33_PCIE \ | |
289 | sbc8548_PCI_66_PCIE \ | |
fb56579f | 290 | sbc8560 \ |
fb56579f KP |
291 | stxssa \ |
292 | TQM8540 \ | |
293 | TQM8541 \ | |
1287e0c5 | 294 | TQM8548 \ |
a865bcda | 295 | TQM8548_AG \ |
ad7ee5d4 | 296 | TQM8548_BE \ |
fb56579f KP |
297 | TQM8555 \ |
298 | TQM8560 \ | |
42d1f039 WD |
299 | " |
300 | ||
822d5536 JL |
301 | ######################################################################### |
302 | ## MPC86xx Systems | |
303 | ######################################################################### | |
304 | ||
9ec49f8f | 305 | LIST_86xx="$(boards_by_cpu mpc86xx) |
7030d56b | 306 | MPC8641HPCN_36BIT \ |
fb56579f | 307 | MPC8641HPCN \ |
822d5536 JL |
308 | " |
309 | ||
7ebf7443 WD |
310 | ######################################################################### |
311 | ## 74xx/7xx Systems | |
312 | ######################################################################### | |
313 | ||
fb56579f KP |
314 | LIST_74xx=" \ |
315 | DB64360 \ | |
316 | DB64460 \ | |
317 | EVB64260 \ | |
318 | mpc7448hpc2 \ | |
319 | P3G4 \ | |
320 | p3m7448 \ | |
321 | PCIPPC2 \ | |
322 | PCIPPC6 \ | |
323 | ZUMA \ | |
7ebf7443 WD |
324 | " |
325 | ||
fb56579f KP |
326 | LIST_7xx=" \ |
327 | BAB7xx \ | |
328 | CPCI750 \ | |
329 | ELPPC \ | |
330 | p3m750 \ | |
331 | ppmc7xx \ | |
7ebf7443 WD |
332 | " |
333 | ||
d9a42c0a WD |
334 | ######################################################################### |
335 | ## PowerPC groups | |
336 | ######################################################################### | |
337 | ||
338 | LIST_TSEC=" \ | |
339 | ${LIST_83xx} \ | |
340 | ${LIST_85xx} \ | |
341 | ${LIST_86xx} \ | |
342 | " | |
343 | ||
a47a12be | 344 | LIST_powerpc=" \ |
fb56579f | 345 | ${LIST_5xx} \ |
3deca9d4 | 346 | ${LIST_512x} \ |
fb56579f KP |
347 | ${LIST_5xxx} \ |
348 | ${LIST_8xx} \ | |
349 | ${LIST_8220} \ | |
350 | ${LIST_824x} \ | |
351 | ${LIST_8260} \ | |
352 | ${LIST_83xx} \ | |
353 | ${LIST_85xx} \ | |
354 | ${LIST_86xx} \ | |
355 | ${LIST_4xx} \ | |
356 | ${LIST_74xx} \ | |
357 | ${LIST_7xx} \ | |
358 | " | |
7ebf7443 | 359 | |
a47a12be SR |
360 | # Alias "ppc" -> "powerpc" to not break compatibility with older scripts |
361 | # still using "ppc" instead of "powerpc" | |
362 | LIST_ppc=" \ | |
363 | ${LIST_powerpc} \ | |
364 | " | |
365 | ||
7ebf7443 WD |
366 | ######################################################################### |
367 | ## StrongARM Systems | |
368 | ######################################################################### | |
369 | ||
9ec49f8f | 370 | LIST_SA="$(boards_by_cpu sa1100)" |
7ebf7443 WD |
371 | |
372 | ######################################################################### | |
373 | ## ARM7 Systems | |
374 | ######################################################################### | |
375 | ||
fb56579f KP |
376 | LIST_ARM7=" \ |
377 | ap7 \ | |
378 | ap720t \ | |
379 | armadillo \ | |
380 | B2 \ | |
381 | ep7312 \ | |
382 | evb4510 \ | |
383 | impa7 \ | |
384 | integratorap \ | |
385 | lpc2292sodimm \ | |
386 | modnet50 \ | |
387 | SMN42 \ | |
74f4304e | 388 | " |
7ebf7443 WD |
389 | |
390 | ######################################################################### | |
391 | ## ARM9 Systems | |
392 | ######################################################################### | |
393 | ||
fb56579f | 394 | LIST_ARM9=" \ |
43a5f0df | 395 | a320evb \ |
fb56579f KP |
396 | ap920t \ |
397 | ap922_XA10 \ | |
398 | ap926ejs \ | |
399 | ap946es \ | |
400 | ap966 \ | |
401 | cp920t \ | |
402 | cp922_XA10 \ | |
403 | cp926ejs \ | |
404 | cp946es \ | |
405 | cp966 \ | |
2819e136 | 406 | da830evm \ |
89b765c7 | 407 | da850evm \ |
cf3c142e MK |
408 | edb9301 \ |
409 | edb9302 \ | |
410 | edb9302a \ | |
411 | edb9307 \ | |
412 | edb9307a \ | |
413 | edb9312 \ | |
414 | edb9315 \ | |
415 | edb9315a \ | |
ce9c227c | 416 | edminiv2 \ |
16b76705 | 417 | guruplug \ |
10bc241d | 418 | imx27lite \ |
18a056a1 | 419 | jadecpu \ |
fb56579f | 420 | lpd7a400 \ |
bbe31092 | 421 | magnesium \ |
4abc5bff | 422 | mv88f6281gtw_ge \ |
fb56579f KP |
423 | mx1ads \ |
424 | mx1fs2 \ | |
425 | netstar \ | |
ceb70b46 JCPV |
426 | nhk8815 \ |
427 | nhk8815_onenand \ | |
fb56579f KP |
428 | omap1510inn \ |
429 | omap1610h2 \ | |
430 | omap1610inn \ | |
a3543d6d | 431 | omap5912osk \ |
fb56579f | 432 | omap730p2 \ |
e92daeb5 | 433 | openrd_base \ |
fbc8365a | 434 | rd6281a \ |
fb56579f KP |
435 | sbc2410x \ |
436 | scb9328 \ | |
55dd4ba5 | 437 | sheevaplug \ |
fb56579f KP |
438 | smdk2400 \ |
439 | smdk2410 \ | |
7e074158 | 440 | spear300 \ |
080cfee7 | 441 | spear310 \ |
7da69236 | 442 | spear320 \ |
566c9c16 | 443 | spear600 \ |
67fa8c25 | 444 | suen3 \ |
fb56579f KP |
445 | trab \ |
446 | VCMA9 \ | |
447 | versatile \ | |
448 | versatileab \ | |
449 | versatilepb \ | |
450 | voiceblue \ | |
451 | davinci_dvevm \ | |
452 | davinci_schmoogie \ | |
c7f879ec | 453 | davinci_sffsdr \ |
fb56579f | 454 | davinci_sonata \ |
28b00324 | 455 | davinci_dm355evm \ |
5df65cf5 | 456 | davinci_dm355leopard \ |
3fca2929 | 457 | davinci_dm365evm \ |
6ab176d7 | 458 | davinci_dm6467evm \ |
6f21347d | 459 | " |
7ebf7443 | 460 | |
74f4304e WD |
461 | ######################################################################### |
462 | ## ARM10 Systems | |
463 | ######################################################################### | |
fb56579f KP |
464 | LIST_ARM10=" \ |
465 | integratorcp \ | |
466 | cp1026 \ | |
74f4304e WD |
467 | " |
468 | ||
8ed96046 WD |
469 | ######################################################################### |
470 | ## ARM11 Systems | |
471 | ######################################################################### | |
0c692673 GL |
472 | LIST_ARM11=" \ |
473 | cp1136 \ | |
474 | omap2420h4 \ | |
475 | apollon \ | |
476 | imx31_litekit \ | |
477 | imx31_phycore \ | |
478 | imx31_phycore_eet \ | |
479 | mx31ads \ | |
8449f287 | 480 | mx31pdk \ |
d08e5ca3 | 481 | mx31pdk_nand \ |
0c692673 GL |
482 | qong \ |
483 | smdk6400 \ | |
5cc48f7e | 484 | tnetv107x_evm \ |
74f4304e | 485 | " |
8ed96046 | 486 | |
f904cdbb | 487 | ######################################################################### |
f56348af | 488 | ## ARMV7 Systems |
f904cdbb | 489 | ######################################################################### |
f56348af | 490 | LIST_ARMV7=" \ |
ed01e45c | 491 | am3517_evm \ |
b80e41ac | 492 | ca9x4_ct_vxp \ |
c35d7cf0 | 493 | devkit8000 \ |
8a3f6bb6 | 494 | igep0020 \ |
c5fb70c9 | 495 | mx51evk \ |
f904cdbb | 496 | omap3_beagle \ |
9d0fc811 | 497 | omap3_overo \ |
ad9bc8e5 | 498 | omap3_evm \ |
2be2c6cc | 499 | omap3_pandora \ |
e63e5904 | 500 | omap3_sdp3430 \ |
7379f45a | 501 | omap3_zoom1 \ |
376aee78 | 502 | omap3_zoom2 \ |
c57cca25 | 503 | omap4_panda \ |
3e76d62a | 504 | omap4_sdp4430 \ |
c474a8eb | 505 | s5p_goni \ |
8bc4ee9e | 506 | smdkc100 \ |
f904cdbb DB |
507 | " |
508 | ||
602cac13 JCPV |
509 | ######################################################################### |
510 | ## AT91 Systems | |
511 | ######################################################################### | |
512 | ||
22ee6473 SG |
513 | LIST_at91=" \ |
514 | afeb9260 \ | |
515 | at91cap9adk \ | |
516 | at91rm9200dk \ | |
517 | at91rm9200ek \ | |
518 | at91sam9260ek \ | |
519 | at91sam9261ek \ | |
520 | at91sam9263ek \ | |
d8380c9d | 521 | at91sam9g10ek \ |
22ee6473 | 522 | at91sam9g20ek \ |
5ccc2d99 | 523 | at91sam9m10g45ek \ |
22ee6473 SG |
524 | at91sam9rlek \ |
525 | cmc_pu2 \ | |
d8380c9d | 526 | CPUAT91 \ |
23b80982 TR |
527 | CPU9260 \ |
528 | CPU9G20 \ | |
22ee6473 | 529 | csb637 \ |
77e7273c | 530 | eb_cpux9k2 \ |
22ee6473 SG |
531 | kb9202 \ |
532 | meesc \ | |
533 | mp2usb \ | |
534 | m501sk \ | |
44d80256 | 535 | otc570 \ |
22ee6473 SG |
536 | pm9261 \ |
537 | pm9263 \ | |
b5d289fc | 538 | pm9g45 \ |
2dc851e3 AT |
539 | SBC35_A9G20 \ |
540 | TNY_A9260 \ | |
541 | TNY_A9G20 \ | |
602cac13 JCPV |
542 | " |
543 | ||
7ebf7443 WD |
544 | ######################################################################### |
545 | ## Xscale Systems | |
546 | ######################################################################### | |
547 | ||
9ec49f8f | 548 | LIST_pxa="$(boards_by_cpu pxa) |
040f8f63 | 549 | polaris \ |
040f8f63 | 550 | trizepsiv \ |
18a00dfd MV |
551 | vpac270_nor \ |
552 | vpac270_onenand \ | |
4ec3a7f0 | 553 | " |
7ebf7443 | 554 | |
9ec49f8f | 555 | LIST_ixp="$(boards_by_cpu ixp) |
fb56579f KP |
556 | pdnb3 \ |
557 | scpu \ | |
558 | " | |
7ebf7443 | 559 | |
d9a42c0a WD |
560 | ######################################################################### |
561 | ## ARM groups | |
562 | ######################################################################### | |
2d5b561e | 563 | |
f904cdbb DB |
564 | LIST_arm=" \ |
565 | ${LIST_SA} \ | |
566 | ${LIST_ARM7} \ | |
567 | ${LIST_ARM9} \ | |
568 | ${LIST_ARM10} \ | |
569 | ${LIST_ARM11} \ | |
f56348af | 570 | ${LIST_ARMV7} \ |
f904cdbb DB |
571 | ${LIST_at91} \ |
572 | ${LIST_pxa} \ | |
573 | ${LIST_ixp} \ | |
8ed96046 | 574 | " |
7ebf7443 | 575 | |
c021880a | 576 | ######################################################################### |
b62bdffb | 577 | ## MIPS Systems (default = big endian) |
c021880a WD |
578 | ######################################################################### |
579 | ||
fb56579f KP |
580 | LIST_mips4kc=" \ |
581 | incaip \ | |
0764c164 | 582 | qemu_mips \ |
2a61eff6 SR |
583 | vct_platinum \ |
584 | vct_platinum_small \ | |
585 | vct_platinum_onenand \ | |
586 | vct_platinum_onenand_small \ | |
587 | vct_platinumavc \ | |
588 | vct_platinumavc_small \ | |
589 | vct_platinumavc_onenand \ | |
590 | vct_platinumavc_onenand_small \ | |
591 | vct_premium \ | |
592 | vct_premium_small \ | |
593 | vct_premium_onenand \ | |
594 | vct_premium_onenand_small \ | |
fb56579f | 595 | " |
c021880a | 596 | |
fb56579f KP |
597 | LIST_mips5kc=" \ |
598 | purple \ | |
599 | " | |
3e38691e | 600 | |
fb56579f KP |
601 | LIST_au1xx0=" \ |
602 | dbau1000 \ | |
603 | dbau1100 \ | |
604 | dbau1500 \ | |
605 | dbau1550 \ | |
606 | dbau1550_el \ | |
607 | gth2 \ | |
608 | " | |
5da627a4 | 609 | |
fb56579f KP |
610 | LIST_mips=" \ |
611 | ${LIST_mips4kc} \ | |
612 | ${LIST_mips5kc} \ | |
613 | ${LIST_au1xx0} \ | |
614 | " | |
c021880a | 615 | |
b62bdffb WD |
616 | ######################################################################### |
617 | ## MIPS Systems (little endian) | |
618 | ######################################################################### | |
619 | ||
620 | LIST_mips4kc_el="" | |
621 | ||
622 | LIST_mips5kc_el="" | |
623 | ||
fb56579f KP |
624 | LIST_au1xx0_el=" \ |
625 | dbau1550_el \ | |
b09258c5 | 626 | pb1000 \ |
fb56579f | 627 | " |
b62bdffb | 628 | |
fb56579f KP |
629 | LIST_mips_el=" \ |
630 | ${LIST_mips4kc_el} \ | |
631 | ${LIST_mips5kc_el} \ | |
632 | ${LIST_au1xx0_el} \ | |
633 | " | |
b62bdffb | 634 | |
7a8e9bed WD |
635 | ######################################################################### |
636 | ## i386 Systems | |
637 | ######################################################################### | |
638 | ||
9ec49f8f | 639 | LIST_x86="$(boards_by_arch i386) |
c620c01e | 640 | sc520_eNET \ |
fb56579f | 641 | " |
7a8e9bed | 642 | |
5c952cf0 WD |
643 | ######################################################################### |
644 | ## Nios-II Systems | |
645 | ######################################################################### | |
646 | ||
9ec49f8f | 647 | LIST_nios2="$(boards_by_arch nios2) |
8cbb0ddd | 648 | nios2-generic \ |
4176c799 | 649 | " |
5c952cf0 | 650 | |
857cad37 WD |
651 | ######################################################################### |
652 | ## MicroBlaze Systems | |
653 | ######################################################################### | |
654 | ||
9ec49f8f | 655 | LIST_microblaze="$(boards_by_arch microblaze)" |
857cad37 | 656 | |
f8c3b4f3 ZL |
657 | ######################################################################### |
658 | ## ColdFire Systems | |
659 | ######################################################################### | |
660 | ||
9ec49f8f | 661 | LIST_coldfire="$(boards_by_arch m68k) |
9d79e575 | 662 | astro_mcf5373l \ |
fb56579f KP |
663 | cobra5272 \ |
664 | EB+MCF-EV123 \ | |
665 | EB+MCF-EV123_internal \ | |
1552af70 | 666 | M52277EVB \ |
4a442d31 | 667 | M5235EVB \ |
aa5f1f9d TL |
668 | M5329AFEE \ |
669 | M5373EVB \ | |
05316f8e | 670 | M54451EVB \ |
8ae158cd | 671 | M54455EVB \ |
57a12720 TL |
672 | M5475AFE \ |
673 | M5485AFE \ | |
9acb626f | 674 | " |
f8c3b4f3 | 675 | |
6ccec449 WD |
676 | ######################################################################### |
677 | ## AVR32 Systems | |
678 | ######################################################################### | |
679 | ||
9ec49f8f | 680 | LIST_avr32="$(boards_by_arch avr32)" |
6ccec449 | 681 | |
ef26a08f AL |
682 | ######################################################################### |
683 | ## Blackfin Systems | |
684 | ######################################################################### | |
685 | ||
9ec49f8f MF |
686 | LIST_blackfin="$(boards_by_arch blackfin) |
687 | bf527-ezkit-v2 | |
ef26a08f AL |
688 | " |
689 | ||
c7144373 JCPV |
690 | ######################################################################### |
691 | ## SH Systems | |
692 | ######################################################################### | |
693 | ||
c655fad0 NI |
694 | LIST_sh2=" \ |
695 | rsk7203 \ | |
696 | " | |
d9a42c0a WD |
697 | LIST_sh3=" \ |
698 | mpr2 \ | |
699 | ms7720se \ | |
700 | " | |
701 | ||
c7144373 | 702 | LIST_sh4=" \ |
aa9c4f1d | 703 | ms7750se \ |
c7144373 | 704 | ms7722se \ |
9e23fe05 | 705 | MigoR \ |
c133c1fb | 706 | r7780mp \ |
f5e2466f | 707 | r2dplus \ |
7faddaec | 708 | sh7763rdp \ |
0d53a47d | 709 | sh7785lcr \ |
6f0da497 | 710 | ap325rxa \ |
74d9c16a | 711 | espt \ |
c7144373 JCPV |
712 | " |
713 | ||
c7144373 | 714 | LIST_sh=" \ |
6f0da497 | 715 | ${LIST_sh2} \ |
c7144373 JCPV |
716 | ${LIST_sh3} \ |
717 | ${LIST_sh4} \ | |
718 | " | |
719 | ||
c2f02da2 DH |
720 | ######################################################################### |
721 | ## SPARC Systems | |
722 | ######################################################################### | |
723 | ||
9ec49f8f | 724 | LIST_sparc="$(boards_by_arch sparc)" |
7ebf7443 WD |
725 | |
726 | #----------------------------------------------------------------------- | |
727 | ||
728 | build_target() { | |
729 | target=$1 | |
730 | ||
731 | ${MAKE} distclean >/dev/null | |
d70d8ccc | 732 | ${MAKE} -s ${target}_config |
f9328639 MB |
733 | |
734 | ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \ | |
735 | | tee ${LOG_DIR}/$target.ERR | |
f2352877 PT |
736 | |
737 | # Check for 'make' errors | |
738 | if [ ${PIPESTATUS[0]} -ne 0 ] ; then | |
739 | RC=1 | |
740 | fi | |
741 | ||
40a28f08 PT |
742 | if [ -s ${LOG_DIR}/$target.ERR ] ; then |
743 | ERR_CNT=$((ERR_CNT + 1)) | |
744 | ERR_LIST="${ERR_LIST} $target" | |
745 | else | |
746 | rm ${LOG_DIR}/$target.ERR | |
747 | fi | |
748 | ||
749 | TOTAL_CNT=$((TOTAL_CNT + 1)) | |
f9328639 | 750 | |
208447f8 | 751 | ${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \ |
f9328639 | 752 | | tee -a ${LOG_DIR}/$target.MAKELOG |
7ebf7443 | 753 | } |
9ec49f8f MF |
754 | build_targets() { |
755 | for t in "$@" ; do | |
756 | # If a LIST_xxx var exists, use it. But avoid variable | |
757 | # expansion in the eval when a board name contains certain | |
758 | # characters that the shell interprets. | |
759 | case ${t} in | |
760 | *[-+=]*) list= ;; | |
761 | *) list=$(eval echo '${LIST_'$t'}') ;; | |
762 | esac | |
763 | if [ -n "${list}" ] ; then | |
764 | build_targets ${list} | |
765 | else | |
766 | build_target ${t} | |
767 | fi | |
768 | done | |
769 | } | |
7ebf7443 WD |
770 | |
771 | #----------------------------------------------------------------------- | |
772 | ||
40a28f08 PT |
773 | print_stats() { |
774 | echo "" | |
775 | echo "--------------------- SUMMARY ----------------------------" | |
776 | echo "Boards compiled: ${TOTAL_CNT}" | |
777 | if [ ${ERR_CNT} -gt 0 ] ; then | |
778 | echo "Boards with warnings or errors: ${ERR_CNT} (${ERR_LIST} )" | |
779 | fi | |
780 | echo "----------------------------------------------------------" | |
f2352877 PT |
781 | |
782 | exit $RC | |
40a28f08 | 783 | } |
7ebf7443 | 784 | |
40a28f08 | 785 | #----------------------------------------------------------------------- |
9ec49f8f MF |
786 | |
787 | #----- for now, just run PowerPC by default ----- | |
788 | [ $# = 0 ] && set -- powerpc | |
789 | ||
790 | build_targets "$@" |