blob: 761038e514ed7f9671b50897c1eb00660369013b [file] [log] [blame]
Peter Tysera5a27b92009-12-06 23:58:28 -06001#!/bin/bash
wdenk7ebf7442002-11-02 23:17:16 +00002
Peter Tyser23240d22009-09-21 12:04:32 -05003# Print statistics when we exit
4trap exit 1 2 3 15
5trap print_stats 0
6
Wolfgang Denkde5d6602008-12-09 00:39:08 +01007# Determine number of CPU cores if no default was set
8: ${BUILD_NCPUS:="`getconf _NPROCESSORS_ONLN`"}
9
10if [ "$BUILD_NCPUS" -gt 1 ]
11then
Peter Tyser8a07f9a2009-09-21 12:04:33 -050012 JOBS="-j $((BUILD_NCPUS + 1))"
Wolfgang Denkde5d6602008-12-09 00:39:08 +010013else
14 JOBS=""
15fi
16
wdenkc0aa5c52003-12-06 19:49:23 +000017
wdenk7ebf7442002-11-02 23:17:16 +000018if [ "${CROSS_COMPILE}" ] ; then
19 MAKE="make CROSS_COMPILE=${CROSS_COMPILE}"
20else
21 MAKE=make
22fi
23
Marian Balakowiczd62379d2006-09-01 19:49:50 +020024if [ "${MAKEALL_LOGDIR}" ] ; then
25 LOG_DIR=${MAKEALL_LOGDIR}
26else
27 LOG_DIR="LOG"
28fi
Stefan Roese42fbddd2006-09-07 11:51:23 +020029
Marian Balakowiczd62379d2006-09-01 19:49:50 +020030if [ ! "${BUILD_DIR}" ] ; then
31 BUILD_DIR="."
32fi
33
Marian Balakowicz7f783cb2006-09-07 12:05:53 +020034[ -d ${LOG_DIR} ] || mkdir ${LOG_DIR} || exit 1
wdenk7ebf7442002-11-02 23:17:16 +000035
36LIST=""
37
Peter Tyser23240d22009-09-21 12:04:32 -050038# Keep track of the number of builds and errors
39ERR_CNT=0
40ERR_LIST=""
41TOTAL_CNT=0
Peter Tysera5a27b92009-12-06 23:58:28 -060042RC=0
Peter Tyser23240d22009-09-21 12:04:32 -050043
Mike Frysingerb374bdb2010-08-19 13:05:06 -040044# Helper funcs for parsing boards.cfg
45boards_by_field()
46{
47 awk \
48 -v field="$1" \
49 -v select="$2" \
50 '($1 !~ /^#/ && $field == select) { print $1 }' \
51 boards.cfg
52}
53boards_by_arch() { boards_by_field 2 "$@" ; }
54boards_by_cpu() { boards_by_field 3 "$@" ; }
55
wdenk7ebf7442002-11-02 23:17:16 +000056#########################################################################
wdenk359733b2003-03-31 17:27:09 +000057## MPC5xx Systems
58#########################################################################
59
Mike Frysingerb374bdb2010-08-19 13:05:06 -040060LIST_5xx="$(boards_by_cpu mpc5xx)"
wdenk359733b2003-03-31 17:27:09 +000061
62#########################################################################
wdenk21136db2003-07-16 21:53:01 +000063## MPC5xxx Systems
64#########################################################################
65
Mike Frysingerb374bdb2010-08-19 13:05:06 -040066LIST_5xxx="$(boards_by_cpu mpc5xxx)
Grzegorz Bernackiafc9d6d2009-03-17 10:06:40 +010067 digsy_mtc \
Kim Phillips8c0c8932007-08-10 15:34:48 -050068 EVAL5200 \
69 fo300 \
Eric Millbrandt9fc91f02009-08-13 10:14:21 -050070 galaxy5200 \
Kim Phillips8c0c8932007-08-10 15:34:48 -050071 icecube_5200 \
72 lite5200b \
73 mcc200 \
Andre Schwarz2a293292008-07-09 18:30:44 +020074 MVBC_P \
Andre Schwarz3f4bd652010-04-01 21:26:55 +020075 MVSMR \
Jon Smirlbc03df92009-06-14 18:21:28 -040076 pcm030 \
Kim Phillips8c0c8932007-08-10 15:34:48 -050077 PM520 \
78 TB5200 \
Kim Phillips8c0c8932007-08-10 15:34:48 -050079 Total5200 \
80 Total5200_Rev2 \
81 TQM5200 \
82 TQM5200_B \
83 TQM5200S \
wdenk21136db2003-07-16 21:53:01 +000084"
85
86#########################################################################
Rafal Jaworowskid3a02c32007-07-27 14:43:59 +020087## MPC512x Systems
88#########################################################################
89
Mike Frysingerb374bdb2010-08-19 13:05:06 -040090LIST_512x="$(boards_by_cpu mpc512x)
Wolfgang Denkbbcbb322009-05-16 10:47:41 +020091 mpc5121ads \
Rafal Jaworowskid3a02c32007-07-27 14:43:59 +020092"
93
94#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +000095## MPC8xx Systems
96#########################################################################
Mike Frysingerb374bdb2010-08-19 13:05:06 -040097
98LIST_8xx="$(boards_by_cpu mpc8xx)
Kim Phillips8c0c8932007-08-10 15:34:48 -050099 Adder87x \
100 AdderII \
101 ADS860 \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500102 FADS823 \
103 FADS850SAR \
104 FADS860T \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500105 FPS850L \
106 GEN860T \
107 GEN860T_SC \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500108 ICU862_100MHz \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500109 IVML24 \
110 IVML24_128 \
111 IVML24_256 \
112 IVMS8 \
113 IVMS8_128 \
114 IVMS8_256 \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500115 MBX \
116 MBX860T \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500117 MPC86xADS \
118 MPC885ADS \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500119 NETPHONE \
120 NETTA \
121 NETTA2 \
122 NETTA_ISDN \
123 NETVIA \
124 NETVIA_V2 \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500125 RPXlite_DW \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500126 SPD823TS \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500127 SXNI855T \
Guennadi Liakhovetski7a90bb92008-01-10 17:59:07 +0100128 TK885D \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500129 TQM823L \
130 TQM823L_LCD \
131 TQM850L \
132 TQM855L \
133 TQM860L \
134 TQM885D \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500135 v37 \
wdenk7ebf7442002-11-02 23:17:16 +0000136"
137
138#########################################################################
139## PPC4xx Systems
140#########################################################################
141
Mike Frysingerb374bdb2010-08-19 13:05:06 -0400142LIST_4xx="$(boards_by_cpu ppc4xx)
Kim Phillips8c0c8932007-08-10 15:34:48 -0500143 acadia_nand \
Adam Graham4900ed22008-10-08 10:12:53 -0700144 arches \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500145 bamboo_nand \
Stefan Roese075f7a22008-03-11 16:53:00 +0100146 canyonlands \
Stefan Roese0b86db72008-03-03 17:27:02 +0100147 canyonlands_nand \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500148 CPCI405 \
149 CPCI4052 \
150 CPCI405AB \
151 CPCI405DT \
Dirk Eibachac44ffb2009-07-27 08:49:48 +0200152 devconcenter \
Georg Schardt3ce59a12008-10-24 13:51:52 +0200153 fx12mm \
Stefan Roese52df4192008-03-19 16:20:49 +0100154 glacier \
Stefan Roese15668052007-10-23 10:10:08 +0200155 haleakala \
Stefan Roese720c5852007-11-03 12:08:28 +0100156 haleakala_nand \
Stefan Roese75a3d5d2007-08-14 16:36:29 +0200157 hcu4 \
158 hcu5 \
Dirk Eibach62dbcba2009-09-09 12:36:07 +0200159 intip \
Stefan Roese7de9fc72007-10-05 17:11:30 +0200160 kilauea \
Stefan Roese720c5852007-11-03 12:08:28 +0100161 kilauea_nand \
Niklaus Giger3fdbc1c2008-02-25 18:46:41 +0100162 mcu25 \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500163 MIP405T \
Ricardo Ribalda Delgadoa8822a72008-07-17 12:47:09 +0200164 ml507 \
Ricardo Ribalda Delgado2a019eb2008-07-21 20:30:07 +0200165 ml507_flash \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500166 OCRTC \
167 ORSG \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500168 PPChameleonEVB \
Stefan Roese8ad6cda2007-08-16 09:54:51 +0200169 rainier \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500170 sequoia \
171 sequoia_nand \
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -0400172 v5fx30teval \
173 v5fx30teval_flash \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500174 W7OLMC \
175 W7OLMG \
176 walnut \
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -0400177 xilinx-ppc440-generic \
178 xilinx-ppc440-generic_flash \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500179 yellowstone \
180 yosemite \
wdenk7ebf7442002-11-02 23:17:16 +0000181"
182
183#########################################################################
wdenk337f5652004-10-28 00:09:35 +0000184## MPC8220 Systems
185#########################################################################
186
Mike Frysingerb374bdb2010-08-19 13:05:06 -0400187LIST_8220="$(boards_by_cpu mpc8220)"
wdenk337f5652004-10-28 00:09:35 +0000188
189#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000190## MPC824x Systems
191#########################################################################
192
Mike Frysingerb374bdb2010-08-19 13:05:06 -0400193LIST_824x="$(boards_by_cpu mpc824x)
Kim Phillips8c0c8932007-08-10 15:34:48 -0500194 CPC45 \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500195 eXalion \
Heiko Schocher04de9512009-04-28 07:48:39 +0200196 IDS8247 \
Guennadi Liakhovetski40c26b22008-03-31 01:32:15 +0200197 linkstation_HGLAN \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500198 Sandpoint8240 \
199 Sandpoint8245 \
wdenk7ebf7442002-11-02 23:17:16 +0000200"
wdenkdbae5042003-06-21 00:17:24 +0000201
wdenk7ebf7442002-11-02 23:17:16 +0000202#########################################################################
wdenk541a76d2003-05-03 15:50:43 +0000203## MPC8260 Systems (includes 8250, 8255 etc.)
wdenk7ebf7442002-11-02 23:17:16 +0000204#########################################################################
205
Mike Frysingerb374bdb2010-08-19 13:05:06 -0400206LIST_8260="$(boards_by_cpu mpc8260)
Kim Phillips8c0c8932007-08-10 15:34:48 -0500207 cogent_mpc8260 \
208 CPU86 \
209 CPU87 \
210 ep8248 \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500211 ISPAN \
212 MPC8260ADS \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500213 MPC8272ADS \
214 PM826 \
215 PM828 \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500216 Rattler8248 \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500217 TQM8260_AC \
218 TQM8260_AD \
219 TQM8260_AE \
wdenk7ebf7442002-11-02 23:17:16 +0000220"
221
222#########################################################################
Eran Liberty9095d4a2005-07-28 10:08:46 -0500223## MPC83xx Systems (includes 8349, etc.)
224#########################################################################
225
Mike Frysingerb374bdb2010-08-19 13:05:06 -0400226LIST_83xx="$(boards_by_cpu mpc83xx)
Reinhard Arlt63881352009-12-08 09:13:08 +0100227 caddy2 \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500228 MPC8313ERDB_33 \
Nick Spence120097e2008-09-02 15:21:16 -0500229 MPC8313ERDB_NAND_66 \
Dave Liu19b247e2008-01-11 18:48:24 +0800230 MPC8315ERDB \
Anton Vorontsovec821752009-11-24 20:12:12 +0300231 MPC8315ERDB_NAND \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500232 MPC832XEMDS \
Tony Lic5c40d82007-10-18 17:47:19 +0800233 MPC832XEMDS_ATM \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500234 MPC8349ITX \
235 MPC8349ITXGP \
236 MPC8360EMDS \
Tony Lic5c40d82007-10-18 17:47:19 +0800237 MPC8360EMDS_ATM \
Anton Vorontsovb6678de2008-01-09 20:57:47 +0300238 MPC8360ERDK_33 \
239 MPC8360ERDK_66 \
Dave Liudc9e4bb2007-09-18 12:40:21 +0800240 MPC837XEMDS \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500241 sbc8349 \
Ron Madrid9ff89b72009-01-22 15:05:24 -0800242 SIMPC8313_LP \
Reinhard Arlt46911792009-07-25 06:19:12 +0200243 vme8349 \
Eran Liberty9095d4a2005-07-28 10:08:46 -0500244"
245
246
247#########################################################################
wdenk9c53f402003-10-15 23:53:47 +0000248## MPC85xx Systems (includes 8540, 8560 etc.)
249#########################################################################
250
Mike Frysingerb374bdb2010-08-19 13:05:06 -0400251LIST_85xx="$(boards_by_cpu mpc85xx)
Kumar Galafd83aa82008-07-25 13:31:05 -0500252 MPC8536DS \
Mingkai Huc2a6dca2009-09-23 15:20:37 +0800253 MPC8536DS_NAND \
Mingkai Hua74e3952009-09-23 15:20:38 +0800254 MPC8536DS_SDCARD \
255 MPC8536DS_SPIFLASH \
Becky Bruce491c8c72010-06-17 11:37:27 -0500256 MPC8536DS_36BIT \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500257 MPC8540EVAL \
258 MPC8541CDS \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500259 MPC8548CDS \
260 MPC8555CDS \
Haiying Wangbd255372009-03-27 17:02:45 -0400261 MPC8569MDS \
Liu Yu06f0ebe2009-11-27 15:31:52 +0800262 MPC8569MDS_ATM \
Liu Yu2639e512010-01-18 19:03:28 +0800263 MPC8569MDS_NAND \
Kumar Gala3ab0b2d2008-08-12 11:13:08 -0500264 MPC8572DS \
Kumar Galae0f97412009-01-23 14:22:14 -0600265 MPC8572DS_36BIT \
Srikanth Srinivasan949a2d52009-04-03 15:36:13 -0500266 P2020DS \
267 P2020DS_36BIT \
Poonam Aggrwal319bc872009-08-20 18:59:18 +0530268 P1011RDB \
Dipen Dudhate98a3fc2009-10-08 13:33:18 +0530269 P1011RDB_NAND \
Dipen Dudhat529e5fd2009-10-08 13:33:29 +0530270 P1011RDB_SDCARD \
271 P1011RDB_SPIFLASH \
Poonam Aggrwaled5c70b2009-08-20 18:57:02 +0530272 P1020RDB \
Dipen Dudhate98a3fc2009-10-08 13:33:18 +0530273 P1020RDB_NAND \
Dipen Dudhat529e5fd2009-10-08 13:33:29 +0530274 P1020RDB_SDCARD \
275 P1020RDB_SPIFLASH \
Poonam Aggrwal319bc872009-08-20 18:59:18 +0530276 P2010RDB \
Dipen Dudhate98a3fc2009-10-08 13:33:18 +0530277 P2010RDB_NAND \
Dipen Dudhat529e5fd2009-10-08 13:33:29 +0530278 P2010RDB_SDCARD \
279 P2010RDB_SPIFLASH \
Poonam Aggrwal987862c2009-08-05 13:29:24 +0530280 P2020RDB \
Dipen Dudhate98a3fc2009-10-08 13:33:18 +0530281 P2020RDB_NAND \
Dipen Dudhat529e5fd2009-10-08 13:33:29 +0530282 P2020RDB_SDCARD \
283 P2020RDB_SPIFLASH \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500284 sbc8540 \
Joe Hammanccefae42007-12-13 06:45:08 -0600285 sbc8548 \
Paul Gortmakerf5c69a52009-09-20 20:36:06 -0400286 sbc8548_PCI_33 \
287 sbc8548_PCI_66 \
288 sbc8548_PCI_33_PCIE \
289 sbc8548_PCI_66_PCIE \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500290 sbc8560 \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500291 stxssa \
292 TQM8540 \
293 TQM8541 \
Wolfgang Grandegger328c6ec2008-06-05 13:12:07 +0200294 TQM8548 \
Wolfgang Grandegger7ebcfec2009-02-11 18:38:22 +0100295 TQM8548_AG \
Wolfgang Grandeggere85bbc62009-02-11 18:38:21 +0100296 TQM8548_BE \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500297 TQM8555 \
298 TQM8560 \
wdenk9c53f402003-10-15 23:53:47 +0000299"
300
301#########################################################################
Jon Loeliger5fe34492007-05-23 14:09:46 -0500302## MPC86xx Systems
303#########################################################################
304
Mike Frysingerb374bdb2010-08-19 13:05:06 -0400305LIST_86xx="$(boards_by_cpu mpc86xx)
Becky Bruce491c8c72010-06-17 11:37:27 -0500306 MPC8641HPCN_36BIT \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500307 MPC8641HPCN \
Jon Loeliger5fe34492007-05-23 14:09:46 -0500308"
309
310#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000311## 74xx/7xx Systems
312#########################################################################
313
Kim Phillips8c0c8932007-08-10 15:34:48 -0500314LIST_74xx=" \
315 DB64360 \
316 DB64460 \
317 EVB64260 \
318 mpc7448hpc2 \
319 P3G4 \
320 p3m7448 \
321 PCIPPC2 \
322 PCIPPC6 \
323 ZUMA \
wdenk7ebf7442002-11-02 23:17:16 +0000324"
325
Kim Phillips8c0c8932007-08-10 15:34:48 -0500326LIST_7xx=" \
327 BAB7xx \
328 CPCI750 \
329 ELPPC \
330 p3m750 \
331 ppmc7xx \
wdenk7ebf7442002-11-02 23:17:16 +0000332"
333
Wolfgang Denk66549bd2008-04-20 15:35:52 -0700334#########################################################################
335## PowerPC groups
336#########################################################################
337
338LIST_TSEC=" \
339 ${LIST_83xx} \
340 ${LIST_85xx} \
341 ${LIST_86xx} \
342"
343
Stefan Roese88fbf932010-04-15 16:07:28 +0200344LIST_powerpc=" \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500345 ${LIST_5xx} \
Jean-Christophe PLAGNIOL-VILLARD0912d312007-11-25 22:39:25 +0100346 ${LIST_512x} \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500347 ${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"
wdenk7ebf7442002-11-02 23:17:16 +0000359
Stefan Roese88fbf932010-04-15 16:07:28 +0200360# Alias "ppc" -> "powerpc" to not break compatibility with older scripts
361# still using "ppc" instead of "powerpc"
362LIST_ppc=" \
363 ${LIST_powerpc} \
364"
365
wdenk7ebf7442002-11-02 23:17:16 +0000366#########################################################################
367## StrongARM Systems
368#########################################################################
369
Mike Frysingerb374bdb2010-08-19 13:05:06 -0400370LIST_SA="$(boards_by_cpu sa1100)"
wdenk7ebf7442002-11-02 23:17:16 +0000371
372#########################################################################
373## ARM7 Systems
374#########################################################################
375
Kim Phillips8c0c8932007-08-10 15:34:48 -0500376LIST_ARM7=" \
377 ap7 \
378 ap720t \
379 armadillo \
380 B2 \
381 ep7312 \
382 evb4510 \
383 impa7 \
384 integratorap \
385 lpc2292sodimm \
386 modnet50 \
387 SMN42 \
Wolfgang Denkadf20a12005-09-25 01:48:28 +0200388"
wdenk7ebf7442002-11-02 23:17:16 +0000389
390#########################################################################
391## ARM9 Systems
392#########################################################################
393
Kim Phillips8c0c8932007-08-10 15:34:48 -0500394LIST_ARM9=" \
Po-Yu Chuang5614a4d2009-11-11 17:27:30 +0800395 a320evb \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500396 ap920t \
397 ap922_XA10 \
398 ap926ejs \
399 ap946es \
400 ap966 \
401 cp920t \
402 cp922_XA10 \
403 cp926ejs \
404 cp946es \
405 cp966 \
Sekhar Nori5ffad632009-11-12 11:09:25 -0500406 da830evm \
Sudhakar Rajashekhara68921812010-06-10 15:18:15 +0530407 da850evm \
Matthias Kaehlcke279437d2010-02-01 21:29:48 +0100408 edb9301 \
409 edb9302 \
410 edb9302a \
411 edb9307 \
412 edb9307a \
413 edb9312 \
414 edb9315 \
415 edb9315a \
Albert Aribaudacc41ff2010-06-17 19:38:21 +0530416 edminiv2 \
Siddarth Gore11b10b02010-03-18 20:25:40 +0530417 guruplug \
Ilya Yanok016b7022009-08-11 02:32:09 +0400418 imx27lite \
Matthias Weisserdcf0dca2010-08-09 13:31:51 +0200419 jadecpu \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500420 lpd7a400 \
Heiko Schocherc8f51122010-03-05 07:36:33 +0100421 magnesium \
Prafulla Wadaskar60a04f92009-07-16 20:58:01 +0530422 mv88f6281gtw_ge \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500423 mx1ads \
424 mx1fs2 \
425 netstar \
Jean-Christophe PLAGNIOL-VILLARD871e4812009-07-05 01:06:06 +0200426 nhk8815 \
427 nhk8815_onenand \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500428 omap1510inn \
429 omap1610h2 \
430 omap1610inn \
David Brownell161f4112008-01-18 12:45:45 -0800431 omap5912osk \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500432 omap730p2 \
Simon Kagstrom258c3302009-09-22 04:01:01 +0530433 openrd_base \
Prafulla Wadaskar4aab4ae2009-07-16 21:02:24 +0530434 rd6281a \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500435 sbc2410x \
436 scb9328 \
Prafulla Wadaskar62634642009-07-16 20:58:00 +0530437 sheevaplug \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500438 smdk2400 \
439 smdk2410 \
Vipin KUMARb0ea0892010-01-15 19:15:50 +0530440 spear300 \
Vipin KUMAR6e2998f2010-01-15 19:15:52 +0530441 spear310 \
Vipin KUMARcc0da712010-01-15 19:15:53 +0530442 spear320 \
Vipin KUMAR7cc4c462010-01-15 19:15:48 +0530443 spear600 \
Heiko Schocher60301192010-02-22 16:43:02 +0530444 suen3 \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500445 trab \
446 VCMA9 \
447 versatile \
448 versatileab \
449 versatilepb \
450 voiceblue \
451 davinci_dvevm \
452 davinci_schmoogie \
Hugo Villeneuve4f3f6712008-05-21 13:58:41 -0400453 davinci_sffsdr \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500454 davinci_sonata \
David Brownell7a846182009-05-15 23:48:37 +0200455 davinci_dm355evm \
Sandeep Paulraj2e584ec2009-10-10 13:37:10 -0400456 davinci_dm355leopard \
Sandeep Paulraj7c82bdc2010-02-17 21:09:21 -0500457 davinci_dm365evm \
Sandeep Paulraj1830bba2009-10-10 12:00:47 -0400458 davinci_dm6467evm \
wdenk7eaacc52003-08-29 22:00:43 +0000459"
wdenk7ebf7442002-11-02 23:17:16 +0000460
461#########################################################################
Wolfgang Denkadf20a12005-09-25 01:48:28 +0200462## ARM10 Systems
463#########################################################################
Kim Phillips8c0c8932007-08-10 15:34:48 -0500464LIST_ARM10=" \
465 integratorcp \
466 cp1026 \
Wolfgang Denkadf20a12005-09-25 01:48:28 +0200467"
468
469#########################################################################
wdenkf8062712005-01-09 23:16:25 +0000470## ARM11 Systems
471#########################################################################
Guennadi Liakhovetskib093d8d2009-03-25 11:36:50 +0100472LIST_ARM11=" \
473 cp1136 \
474 omap2420h4 \
475 apollon \
476 imx31_litekit \
477 imx31_phycore \
478 imx31_phycore_eet \
479 mx31ads \
Magnus Lilja6eeb6f72009-07-01 01:07:55 +0200480 mx31pdk \
Magnus Lilja24f8b412009-07-04 10:31:24 +0200481 mx31pdk_nand \
Guennadi Liakhovetskib093d8d2009-03-25 11:36:50 +0100482 qong \
483 smdk6400 \
Cyril Chemparathy3d138062010-06-07 14:13:36 -0400484 tnetv107x_evm \
Wolfgang Denkadf20a12005-09-25 01:48:28 +0200485"
wdenkf8062712005-01-09 23:16:25 +0000486
487#########################################################################
Steve Sakoman6329a8f2010-06-17 21:50:01 -0700488## ARMV7 Systems
Dirk Behme2781f802009-01-27 18:19:12 +0100489#########################################################################
Steve Sakoman6329a8f2010-06-17 21:50:01 -0700490LIST_ARMV7=" \
Vaibhav Hiremathdb5c5582010-06-07 15:20:43 -0400491 am3517_evm \
Frederik Kriewitz99396502009-08-23 12:56:42 +0200492 devkit8000 \
Stefano Babic421834e2010-02-05 15:13:58 +0100493 mx51evk \
Dirk Behme2781f802009-01-27 18:19:12 +0100494 omap3_beagle \
Dirk Behme220faba2009-01-28 21:39:57 +0100495 omap3_overo \
Dirk Behmebb732be2009-01-28 21:39:58 +0100496 omap3_evm \
Dirk Behme7b84a7b2009-01-28 21:39:58 +0100497 omap3_pandora \
Tom Rixc5a51352009-10-17 12:41:06 -0500498 omap3_sdp3430 \
Dirk Behmebab104e2009-01-28 21:40:16 +0100499 omap3_zoom1 \
Tom Rix0419d912009-05-15 23:48:36 +0200500 omap3_zoom2 \
Steve Sakoman6b810ff2010-06-11 20:35:26 -0700501 omap4_panda \
Steve Sakoman1b3dd5d2010-06-08 13:07:46 -0700502 omap4_sdp4430 \
Minkyu Kang1ecdd832010-05-31 22:02:42 +0900503 s5p_goni \
Minkyu Kang29325572009-10-01 17:20:40 +0900504 smdkc100 \
Dirk Behme2781f802009-01-27 18:19:12 +0100505"
506
507#########################################################################
Jean-Christophe PLAGNIOL-VILLARD9a88fd12008-05-24 12:47:46 +0200508## AT91 Systems
509#########################################################################
510
Sedji Gaouaou538566d2009-07-09 10:16:29 +0200511LIST_at91=" \
512 afeb9260 \
513 at91cap9adk \
514 at91rm9200dk \
515 at91rm9200ek \
516 at91sam9260ek \
517 at91sam9261ek \
518 at91sam9263ek \
Tom Rix3db7af72009-09-27 07:47:24 -0500519 at91sam9g10ek \
Sedji Gaouaou538566d2009-07-09 10:16:29 +0200520 at91sam9g20ek \
Sedji Gaouaou97a031b2009-06-25 17:04:15 +0200521 at91sam9m10g45ek \
Sedji Gaouaou538566d2009-07-09 10:16:29 +0200522 at91sam9rlek \
523 cmc_pu2 \
Tom Rix3db7af72009-09-27 07:47:24 -0500524 CPUAT91 \
Tom Rix799a05b2009-09-27 11:10:09 -0500525 CPU9260 \
526 CPU9G20 \
Sedji Gaouaou538566d2009-07-09 10:16:29 +0200527 csb637 \
Jens Scharsigaeceb502010-02-03 22:48:09 +0100528 eb_cpux9k2 \
Sedji Gaouaou538566d2009-07-09 10:16:29 +0200529 kb9202 \
530 meesc \
531 mp2usb \
532 m501sk \
Daniel Gorsulowski6e02da52010-01-25 10:50:41 +0100533 otc570 \
Sedji Gaouaou538566d2009-07-09 10:16:29 +0200534 pm9261 \
535 pm9263 \
Asen Dimovddd0bda2010-04-20 22:49:04 +0300536 pm9g45 \
Albin Tonnerre20615462009-08-20 16:04:49 +0200537 SBC35_A9G20 \
538 TNY_A9260 \
539 TNY_A9G20 \
Jean-Christophe PLAGNIOL-VILLARD9a88fd12008-05-24 12:47:46 +0200540"
541
542#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000543## Xscale Systems
544#########################################################################
545
Mike Frysingerb374bdb2010-08-19 13:05:06 -0400546LIST_pxa="$(boards_by_cpu pxa)
Stefano Babice33f8042009-07-01 20:40:41 +0200547 polaris \
Stefano Babice33f8042009-07-01 20:40:41 +0200548 trizepsiv \
Marek Vasut1e847582010-03-07 23:35:48 +0100549 vpac270_nor \
550 vpac270_onenand \
wdenkfa89d7c2004-09-28 16:44:41 +0000551"
wdenk7ebf7442002-11-02 23:17:16 +0000552
Mike Frysingerb374bdb2010-08-19 13:05:06 -0400553LIST_ixp="$(boards_by_cpu ixp)
Kim Phillips8c0c8932007-08-10 15:34:48 -0500554 pdnb3 \
555 scpu \
556"
wdenk7ebf7442002-11-02 23:17:16 +0000557
Wolfgang Denk66549bd2008-04-20 15:35:52 -0700558#########################################################################
559## ARM groups
560#########################################################################
wdenkbd1575f2003-10-14 19:43:55 +0000561
Dirk Behme2781f802009-01-27 18:19:12 +0100562LIST_arm=" \
563 ${LIST_SA} \
564 ${LIST_ARM7} \
565 ${LIST_ARM9} \
566 ${LIST_ARM10} \
567 ${LIST_ARM11} \
Steve Sakoman6329a8f2010-06-17 21:50:01 -0700568 ${LIST_ARMV7} \
Dirk Behme2781f802009-01-27 18:19:12 +0100569 ${LIST_at91} \
570 ${LIST_pxa} \
571 ${LIST_ixp} \
wdenkf8062712005-01-09 23:16:25 +0000572"
wdenk7ebf7442002-11-02 23:17:16 +0000573
wdenkbb1b8262003-03-27 12:09:35 +0000574#########################################################################
Wolfgang Denkbc8c5002005-08-14 00:27:00 +0200575## MIPS Systems (default = big endian)
wdenkbb1b8262003-03-27 12:09:35 +0000576#########################################################################
577
Kim Phillips8c0c8932007-08-10 15:34:48 -0500578LIST_mips4kc=" \
579 incaip \
Vlad Lungu635e76c2008-01-16 19:27:51 +0200580 qemu_mips \
Stefan Roeseee7a6ba2009-01-21 17:25:01 +0100581 vct_platinum \
582 vct_platinum_small \
583 vct_platinum_onenand \
584 vct_platinum_onenand_small \
585 vct_platinumavc \
586 vct_platinumavc_small \
587 vct_platinumavc_onenand \
588 vct_platinumavc_onenand_small \
589 vct_premium \
590 vct_premium_small \
591 vct_premium_onenand \
592 vct_premium_onenand_small \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500593"
wdenkbb1b8262003-03-27 12:09:35 +0000594
Kim Phillips8c0c8932007-08-10 15:34:48 -0500595LIST_mips5kc=" \
596 purple \
597"
wdenkb02744a2003-04-05 00:53:31 +0000598
Kim Phillips8c0c8932007-08-10 15:34:48 -0500599LIST_au1xx0=" \
600 dbau1000 \
601 dbau1100 \
602 dbau1500 \
603 dbau1550 \
604 dbau1550_el \
605 gth2 \
606"
wdenk9b7f3842003-10-09 20:09:04 +0000607
Kim Phillips8c0c8932007-08-10 15:34:48 -0500608LIST_mips=" \
609 ${LIST_mips4kc} \
610 ${LIST_mips5kc} \
611 ${LIST_au1xx0} \
612"
wdenkbb1b8262003-03-27 12:09:35 +0000613
wdenkabda5ca2003-05-31 18:35:21 +0000614#########################################################################
Wolfgang Denkbc8c5002005-08-14 00:27:00 +0200615## MIPS Systems (little endian)
616#########################################################################
617
618LIST_mips4kc_el=""
619
620LIST_mips5kc_el=""
621
Kim Phillips8c0c8932007-08-10 15:34:48 -0500622LIST_au1xx0_el=" \
623 dbau1550_el \
Shinya Kuribayashi2437cfb2007-10-27 15:00:25 +0900624 pb1000 \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500625"
Wolfgang Denkbc8c5002005-08-14 00:27:00 +0200626
Kim Phillips8c0c8932007-08-10 15:34:48 -0500627LIST_mips_el=" \
628 ${LIST_mips4kc_el} \
629 ${LIST_mips5kc_el} \
630 ${LIST_au1xx0_el} \
631"
Wolfgang Denkbc8c5002005-08-14 00:27:00 +0200632
633#########################################################################
wdenkabda5ca2003-05-31 18:35:21 +0000634## i386 Systems
635#########################################################################
636
Mike Frysingerb374bdb2010-08-19 13:05:06 -0400637LIST_x86="$(boards_by_arch i386)
Graeme Russe56d3972008-12-07 10:28:57 +1100638 sc520_eNET \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500639"
wdenkabda5ca2003-05-31 18:35:21 +0000640
wdenk3be717f2004-01-03 19:43:48 +0000641#########################################################################
wdenkef3386f2004-10-10 21:27:30 +0000642## Nios-II Systems
643#########################################################################
644
Mike Frysingerb374bdb2010-08-19 13:05:06 -0400645LIST_nios2="$(boards_by_arch nios2)
Thomas Chou7ffbbf52010-04-21 08:40:59 +0800646 nios2-generic \
Wolfgang Denkb4b1c462006-06-10 19:27:47 +0200647"
wdenkef3386f2004-10-10 21:27:30 +0000648
649#########################################################################
wdenk20a61222004-07-10 23:48:41 +0000650## MicroBlaze Systems
651#########################################################################
652
Mike Frysingerb374bdb2010-08-19 13:05:06 -0400653LIST_microblaze="$(boards_by_arch microblaze)"
wdenk20a61222004-07-10 23:48:41 +0000654
Zachary P. Landau1c3c0962006-01-26 17:38:46 -0500655#########################################################################
656## ColdFire Systems
657#########################################################################
658
Mike Frysingerb374bdb2010-08-19 13:05:06 -0400659LIST_coldfire="$(boards_by_arch m68k)
Wolfgang Wegner406471c2010-01-25 11:27:44 +0100660 astro_mcf5373l \
Kim Phillips8c0c8932007-08-10 15:34:48 -0500661 cobra5272 \
662 EB+MCF-EV123 \
663 EB+MCF-EV123_internal \
TsiChungLiew99b037a2008-01-14 17:43:33 -0600664 M52277EVB \
TsiChungLiewb859ef12007-08-16 19:23:50 -0500665 M5235EVB \
TsiChungLiew6f8a0a32008-01-14 17:23:08 -0600666 M5329AFEE \
667 M5373EVB \
TsiChung Liew3cdc00a2008-08-11 13:41:49 +0000668 M54451EVB \
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500669 M54455EVB \
TsiChungLiew8cb946d2008-01-15 14:15:46 -0600670 M5475AFE \
671 M5485AFE \
Heiko Schocherac1956e2006-04-20 08:42:42 +0200672"
Zachary P. Landau1c3c0962006-01-26 17:38:46 -0500673
Wolfgang Denk994ad962006-10-24 14:42:37 +0200674#########################################################################
675## AVR32 Systems
676#########################################################################
677
Mike Frysingerb374bdb2010-08-19 13:05:06 -0400678LIST_avr32="$(boards_by_arch avr32)"
Wolfgang Denk994ad962006-10-24 14:42:37 +0200679
Aubrey.Li450c23e2007-03-09 13:40:56 +0800680#########################################################################
681## Blackfin Systems
682#########################################################################
683
Mike Frysingerb374bdb2010-08-19 13:05:06 -0400684LIST_blackfin="$(boards_by_arch blackfin)
685 bf527-ezkit-v2
Aubrey.Li450c23e2007-03-09 13:40:56 +0800686"
687
Jean-Christophe PLAGNIOL-VILLARDceee3382007-11-27 09:44:53 +0100688#########################################################################
689## SH Systems
690#########################################################################
691
Nobuhiro Iwamatsu6f7d4362008-08-31 23:02:04 +0900692LIST_sh2=" \
693 rsk7203 \
694"
Wolfgang Denk66549bd2008-04-20 15:35:52 -0700695LIST_sh3=" \
696 mpr2 \
697 ms7720se \
698"
699
Jean-Christophe PLAGNIOL-VILLARDceee3382007-11-27 09:44:53 +0100700LIST_sh4=" \
Nobuhiro Iwamatsua2943f02007-11-29 00:13:04 +0900701 ms7750se \
Jean-Christophe PLAGNIOL-VILLARDceee3382007-11-27 09:44:53 +0100702 ms7722se \
Nobuhiro Iwamatsu01213252008-07-08 12:03:24 +0900703 MigoR \
Yusuke Godacf236022008-03-11 12:55:12 +0900704 r7780mp \
Nobuhiro Iwamatsu868b52b2008-03-25 17:11:24 +0900705 r2dplus \
Nobuhiro Iwamatsu113a37e2008-06-09 13:39:57 +0900706 sh7763rdp \
Nobuhiro Iwamatsu52f73c02008-08-31 22:45:08 +0900707 sh7785lcr \
Nobuhiro Iwamatsu3e590432008-08-22 17:39:09 +0900708 ap325rxa \
Nobuhiro Iwamatsud1f2a0c2009-06-25 16:31:26 +0900709 espt \
Jean-Christophe PLAGNIOL-VILLARDceee3382007-11-27 09:44:53 +0100710"
711
Jean-Christophe PLAGNIOL-VILLARDceee3382007-11-27 09:44:53 +0100712LIST_sh=" \
Nobuhiro Iwamatsu3e590432008-08-22 17:39:09 +0900713 ${LIST_sh2} \
Jean-Christophe PLAGNIOL-VILLARDceee3382007-11-27 09:44:53 +0100714 ${LIST_sh3} \
715 ${LIST_sh4} \
716"
717
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +0100718#########################################################################
719## SPARC Systems
720#########################################################################
721
Mike Frysingerb374bdb2010-08-19 13:05:06 -0400722LIST_sparc="$(boards_by_arch sparc)"
wdenk7ebf7442002-11-02 23:17:16 +0000723
724#-----------------------------------------------------------------------
725
726build_target() {
727 target=$1
728
729 ${MAKE} distclean >/dev/null
730 ${MAKE} ${target}_config
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200731
732 ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
733 | tee ${LOG_DIR}/$target.ERR
Peter Tysera5a27b92009-12-06 23:58:28 -0600734
735 # Check for 'make' errors
736 if [ ${PIPESTATUS[0]} -ne 0 ] ; then
737 RC=1
738 fi
739
Peter Tyser23240d22009-09-21 12:04:32 -0500740 if [ -s ${LOG_DIR}/$target.ERR ] ; then
741 ERR_CNT=$((ERR_CNT + 1))
742 ERR_LIST="${ERR_LIST} $target"
743 else
744 rm ${LOG_DIR}/$target.ERR
745 fi
746
747 TOTAL_CNT=$((TOTAL_CNT + 1))
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200748
Mike Frysinger119432a2008-01-28 05:56:19 -0500749 ${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200750 | tee -a ${LOG_DIR}/$target.MAKELOG
wdenk7ebf7442002-11-02 23:17:16 +0000751}
Mike Frysingerb374bdb2010-08-19 13:05:06 -0400752build_targets() {
753 for t in "$@" ; do
754 # If a LIST_xxx var exists, use it. But avoid variable
755 # expansion in the eval when a board name contains certain
756 # characters that the shell interprets.
757 case ${t} in
758 *[-+=]*) list= ;;
759 *) list=$(eval echo '${LIST_'$t'}') ;;
760 esac
761 if [ -n "${list}" ] ; then
762 build_targets ${list}
763 else
764 build_target ${t}
765 fi
766 done
767}
wdenk7ebf7442002-11-02 23:17:16 +0000768
769#-----------------------------------------------------------------------
770
Peter Tyser23240d22009-09-21 12:04:32 -0500771print_stats() {
772 echo ""
773 echo "--------------------- SUMMARY ----------------------------"
774 echo "Boards compiled: ${TOTAL_CNT}"
775 if [ ${ERR_CNT} -gt 0 ] ; then
776 echo "Boards with warnings or errors: ${ERR_CNT} (${ERR_LIST} )"
777 fi
778 echo "----------------------------------------------------------"
Peter Tysera5a27b92009-12-06 23:58:28 -0600779
780 exit $RC
Peter Tyser23240d22009-09-21 12:04:32 -0500781}
wdenk7ebf7442002-11-02 23:17:16 +0000782
Peter Tyser23240d22009-09-21 12:04:32 -0500783#-----------------------------------------------------------------------
Mike Frysingerb374bdb2010-08-19 13:05:06 -0400784
785#----- for now, just run PowerPC by default -----
786[ $# = 0 ] && set -- powerpc
787
788build_targets "$@"