blob: 1b506d679fde3413922645d222fa9ba0afbb1afc [file] [log] [blame]
Peter Tyserf2352872009-12-06 23:58:28 -06001#!/bin/bash
wdenk7ebf7442002-11-02 23:17:16 +00002
Peter Tyser40a28f02009-09-21 12:04:32 -05003# Print statistics when we exit
4trap exit 1 2 3 15
5trap print_stats 0
6
Wolfgang Denk7fa6a2f2008-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 Tyser55f786d2009-09-21 12:04:33 -050012 JOBS="-j $((BUILD_NCPUS + 1))"
Wolfgang Denk7fa6a2f2008-12-09 00:39:08 +010013else
14 JOBS=""
15fi
16
wdenka8c7c702003-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 Balakowiczf9328632006-09-01 19:49:50 +020024if [ "${MAKEALL_LOGDIR}" ] ; then
25 LOG_DIR=${MAKEALL_LOGDIR}
26else
27 LOG_DIR="LOG"
28fi
Stefan Roese887e2ec2006-09-07 11:51:23 +020029
Marian Balakowiczf9328632006-09-01 19:49:50 +020030if [ ! "${BUILD_DIR}" ] ; then
31 BUILD_DIR="."
32fi
33
Marian Balakowicz4f0645e2006-09-07 12:05:53 +020034[ -d ${LOG_DIR} ] || mkdir ${LOG_DIR} || exit 1
wdenk7ebf7442002-11-02 23:17:16 +000035
36LIST=""
37
Peter Tyser40a28f02009-09-21 12:04:32 -050038# Keep track of the number of builds and errors
39ERR_CNT=0
40ERR_LIST=""
41TOTAL_CNT=0
Peter Tyserf2352872009-12-06 23:58:28 -060042RC=0
Peter Tyser40a28f02009-09-21 12:04:32 -050043
Mike Frysinger9ec49f82010-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#########################################################################
wdenk0db5bca2003-03-31 17:27:09 +000057## MPC5xx Systems
58#########################################################################
59
Mike Frysinger9ec49f82010-08-19 13:05:06 -040060LIST_5xx="$(boards_by_cpu mpc5xx)"
wdenk0db5bca2003-03-31 17:27:09 +000061
62#########################################################################
wdenk945af8d2003-07-16 21:53:01 +000063## MPC5xxx Systems
64#########################################################################
65
Mike Frysinger9ec49f82010-08-19 13:05:06 -040066LIST_5xxx="$(boards_by_cpu mpc5xxx)
Grzegorz Bernacki5c4fa9b2009-03-17 10:06:40 +010067 digsy_mtc \
Kim Phillipsfb565792007-08-10 15:34:48 -050068 EVAL5200 \
69 fo300 \
Eric Millbrandt5b53b292009-08-13 10:14:21 -050070 galaxy5200 \
Kim Phillipsfb565792007-08-10 15:34:48 -050071 icecube_5200 \
72 lite5200b \
73 mcc200 \
Andre Schwarz5e0de0e2008-07-09 18:30:44 +020074 MVBC_P \
Andre Schwarz1f2463d2010-04-01 21:26:55 +020075 MVSMR \
Jon Smirlc9969942009-06-14 18:21:28 -040076 pcm030 \
Kim Phillipsfb565792007-08-10 15:34:48 -050077 PM520 \
78 TB5200 \
Kim Phillipsfb565792007-08-10 15:34:48 -050079 Total5200 \
80 Total5200_Rev2 \
81 TQM5200 \
82 TQM5200_B \
83 TQM5200S \
wdenk945af8d2003-07-16 21:53:01 +000084"
85
86#########################################################################
Rafal Jaworowski8993e542007-07-27 14:43:59 +020087## MPC512x Systems
88#########################################################################
89
Mike Frysinger9ec49f82010-08-19 13:05:06 -040090LIST_512x="$(boards_by_cpu mpc512x)
Wolfgang Denk72601d02009-05-16 10:47:41 +020091 mpc5121ads \
wdenk7ebf7442002-11-02 23:17:16 +000092"
93
94#########################################################################
95## MPC8xx Systems
96#########################################################################
Mike Frysinger9ec49f82010-08-19 13:05:06 -040097
98LIST_8xx="$(boards_by_cpu mpc8xx)
Kim Phillipsfb565792007-08-10 15:34:48 -050099 Adder87x \
100 AdderII \
101 ADS860 \
Kim Phillipsfb565792007-08-10 15:34:48 -0500102 FADS823 \
103 FADS850SAR \
104 FADS860T \
Kim Phillipsfb565792007-08-10 15:34:48 -0500105 FPS850L \
106 GEN860T \
107 GEN860T_SC \
Kim Phillipsfb565792007-08-10 15:34:48 -0500108 ICU862_100MHz \
Kim Phillipsfb565792007-08-10 15:34:48 -0500109 IVML24 \
110 IVML24_128 \
111 IVML24_256 \
112 IVMS8 \
113 IVMS8_128 \
114 IVMS8_256 \
Kim Phillipsfb565792007-08-10 15:34:48 -0500115 MBX \
116 MBX860T \
Kim Phillipsfb565792007-08-10 15:34:48 -0500117 MPC86xADS \
118 MPC885ADS \
Kim Phillipsfb565792007-08-10 15:34:48 -0500119 NETPHONE \
120 NETTA \
121 NETTA2 \
122 NETTA_ISDN \
123 NETVIA \
124 NETVIA_V2 \
Kim Phillipsfb565792007-08-10 15:34:48 -0500125 RPXlite_DW \
Kim Phillipsfb565792007-08-10 15:34:48 -0500126 SPD823TS \
Kim Phillipsfb565792007-08-10 15:34:48 -0500127 SXNI855T \
Guennadi Liakhovetskiefc6f442008-01-10 17:59:07 +0100128 TK885D \
Kim Phillipsfb565792007-08-10 15:34:48 -0500129 TQM823L \
130 TQM823L_LCD \
131 TQM850L \
132 TQM855L \
133 TQM860L \
134 TQM885D \
Kim Phillipsfb565792007-08-10 15:34:48 -0500135 v37 \
wdenk7ebf7442002-11-02 23:17:16 +0000136"
137
138#########################################################################
139## PPC4xx Systems
140#########################################################################
141
Mike Frysinger9ec49f82010-08-19 13:05:06 -0400142LIST_4xx="$(boards_by_cpu ppc4xx)
Kim Phillipsfb565792007-08-10 15:34:48 -0500143 acadia_nand \
Adam Grahamf09f09d2008-10-08 10:12:53 -0700144 arches \
Kim Phillipsfb565792007-08-10 15:34:48 -0500145 bamboo_nand \
Stefan Roesec813f1f2008-03-11 16:53:00 +0100146 canyonlands \
Stefan Roese71665eb2008-03-03 17:27:02 +0100147 canyonlands_nand \
Kim Phillipsfb565792007-08-10 15:34:48 -0500148 CPCI405 \
149 CPCI4052 \
150 CPCI405AB \
151 CPCI405DT \
Dirk Eibachab4c62c2009-07-27 08:49:48 +0200152 devconcenter \
Georg Schardt5deb8022008-10-24 13:51:52 +0200153 fx12mm \
Stefan Roese4c9e8552008-03-19 16:20:49 +0100154 glacier \
Stefan Roese353f2682007-10-23 10:10:08 +0200155 haleakala \
Stefan Roese3d6cb3b2007-11-03 12:08:28 +0100156 haleakala_nand \
Stefan Roese3b3bff42007-08-14 16:36:29 +0200157 hcu4 \
158 hcu5 \
Dirk Eibach4c188362009-09-09 12:36:07 +0200159 intip \
Stefan Roese566806c2007-10-05 17:11:30 +0200160 kilauea \
Stefan Roese3d6cb3b2007-11-03 12:08:28 +0100161 kilauea_nand \
Niklaus Gigerb05f3542008-02-25 18:46:41 +0100162 mcu25 \
Kim Phillipsfb565792007-08-10 15:34:48 -0500163 MIP405T \
Ricardo Ribalda Delgado086511f2008-07-17 12:47:09 +0200164 ml507 \
Ricardo Ribalda Delgado01a00432008-07-21 20:30:07 +0200165 ml507_flash \
Kim Phillipsfb565792007-08-10 15:34:48 -0500166 OCRTC \
167 ORSG \
Kim Phillipsfb565792007-08-10 15:34:48 -0500168 PPChameleonEVB \
Stefan Roese6da0c5b2007-08-16 09:54:51 +0200169 rainier \
Kim Phillipsfb565792007-08-10 15:34:48 -0500170 sequoia \
171 sequoia_nand \
Ricardo Ribalda Delgadoe07f4a82008-09-01 13:09:39 -0400172 v5fx30teval \
173 v5fx30teval_flash \
Kim Phillipsfb565792007-08-10 15:34:48 -0500174 W7OLMC \
175 W7OLMG \
176 walnut \
Ricardo Ribalda Delgadoe07f4a82008-09-01 13:09:39 -0400177 xilinx-ppc440-generic \
178 xilinx-ppc440-generic_flash \
Kim Phillipsfb565792007-08-10 15:34:48 -0500179 yellowstone \
180 yosemite \
wdenk7ebf7442002-11-02 23:17:16 +0000181"
182
183#########################################################################
wdenk983fda82004-10-28 00:09:35 +0000184## MPC8220 Systems
185#########################################################################
186
Mike Frysinger9ec49f82010-08-19 13:05:06 -0400187LIST_8220="$(boards_by_cpu mpc8220)"
wdenk983fda82004-10-28 00:09:35 +0000188
189#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000190## MPC824x Systems
191#########################################################################
192
Mike Frysinger9ec49f82010-08-19 13:05:06 -0400193LIST_824x="$(boards_by_cpu mpc824x)
Kim Phillipsfb565792007-08-10 15:34:48 -0500194 CPC45 \
Kim Phillipsfb565792007-08-10 15:34:48 -0500195 eXalion \
Heiko Schocher3c1d8952009-04-28 07:48:39 +0200196 IDS8247 \
Guennadi Liakhovetski61525f22008-03-31 01:32:15 +0200197 linkstation_HGLAN \
Kim Phillipsfb565792007-08-10 15:34:48 -0500198 Sandpoint8240 \
199 Sandpoint8245 \
wdenk7ebf7442002-11-02 23:17:16 +0000200"
wdenk592c5ca2003-06-21 00:17:24 +0000201
wdenk7ebf7442002-11-02 23:17:16 +0000202#########################################################################
wdenk7aa78612003-05-03 15:50:43 +0000203## MPC8260 Systems (includes 8250, 8255 etc.)
wdenk7ebf7442002-11-02 23:17:16 +0000204#########################################################################
205
Mike Frysinger9ec49f82010-08-19 13:05:06 -0400206LIST_8260="$(boards_by_cpu mpc8260)
Kim Phillipsfb565792007-08-10 15:34:48 -0500207 cogent_mpc8260 \
208 CPU86 \
209 CPU87 \
210 ep8248 \
Kim Phillipsfb565792007-08-10 15:34:48 -0500211 ISPAN \
212 MPC8260ADS \
Kim Phillipsfb565792007-08-10 15:34:48 -0500213 MPC8272ADS \
214 PM826 \
215 PM828 \
Kim Phillipsfb565792007-08-10 15:34:48 -0500216 Rattler8248 \
Kim Phillipsfb565792007-08-10 15:34:48 -0500217 TQM8260_AC \
218 TQM8260_AD \
219 TQM8260_AE \
wdenk7ebf7442002-11-02 23:17:16 +0000220"
221
222#########################################################################
Eran Libertyf046ccd2005-07-28 10:08:46 -0500223## MPC83xx Systems (includes 8349, etc.)
224#########################################################################
225
Mike Frysinger9ec49f82010-08-19 13:05:06 -0400226LIST_83xx="$(boards_by_cpu mpc83xx)
Reinhard Arlt1dee9be2009-12-08 09:13:08 +0100227 caddy2 \
Kim Phillipsfb565792007-08-10 15:34:48 -0500228 MPC8313ERDB_33 \
Nick Spence64ac1eb2008-09-02 15:21:16 -0500229 MPC8313ERDB_NAND_66 \
Dave Liu8bd522c2008-01-11 18:48:24 +0800230 MPC8315ERDB \
Anton Vorontsov2e950042009-11-24 20:12:12 +0300231 MPC8315ERDB_NAND \
Kim Phillipsfb565792007-08-10 15:34:48 -0500232 MPC832XEMDS \
Tony Li281df452007-10-18 17:47:19 +0800233 MPC832XEMDS_ATM \
Kim Phillipsfb565792007-08-10 15:34:48 -0500234 MPC8349ITX \
235 MPC8349ITXGP \
236 MPC8360EMDS \
Tony Li281df452007-10-18 17:47:19 +0800237 MPC8360EMDS_ATM \
Anton Vorontsovfab6f552008-01-09 20:57:47 +0300238 MPC8360ERDK_33 \
239 MPC8360ERDK_66 \
Dave Liub21add42007-09-18 12:40:21 +0800240 MPC837XEMDS \
Kim Phillipsfb565792007-08-10 15:34:48 -0500241 sbc8349 \
Ron Madrid5bb907a2009-01-22 15:05:24 -0800242 SIMPC8313_LP \
Reinhard Arltc2e49f72009-07-25 06:19:12 +0200243 vme8349 \
Eran Libertyf046ccd2005-07-28 10:08:46 -0500244"
245
246
247#########################################################################
wdenk42d1f032003-10-15 23:53:47 +0000248## MPC85xx Systems (includes 8540, 8560 etc.)
249#########################################################################
250
Mike Frysinger9ec49f82010-08-19 13:05:06 -0400251LIST_85xx="$(boards_by_cpu mpc85xx)
Kumar Gala9490a7f2008-07-25 13:31:05 -0500252 MPC8536DS \
Mingkai Hu9a1a0ae2009-09-23 15:20:37 +0800253 MPC8536DS_NAND \
Mingkai Hue40ac482009-09-23 15:20:38 +0800254 MPC8536DS_SDCARD \
255 MPC8536DS_SPIFLASH \
Becky Bruce7030d562010-06-17 11:37:27 -0500256 MPC8536DS_36BIT \
Kim Phillipsfb565792007-08-10 15:34:48 -0500257 MPC8540EVAL \
258 MPC8541CDS \
Kim Phillipsfb565792007-08-10 15:34:48 -0500259 MPC8548CDS \
260 MPC8555CDS \
Haiying Wang765547d2009-03-27 17:02:45 -0400261 MPC8569MDS \
Liu Yuc95d5412009-11-27 15:31:52 +0800262 MPC8569MDS_ATM \
Liu Yu674ef7b2010-01-18 19:03:28 +0800263 MPC8569MDS_NAND \
Kumar Gala129ba612008-08-12 11:13:08 -0500264 MPC8572DS \
Kumar Gala18af1c52009-01-23 14:22:14 -0600265 MPC8572DS_36BIT \
Srikanth Srinivasanfeb78382009-04-03 15:36:13 -0500266 P2020DS \
267 P2020DS_36BIT \
Poonam Aggrwalc17b79f2009-08-20 18:59:18 +0530268 P1011RDB \
Dipen Dudhatf7780ec2009-10-08 13:33:18 +0530269 P1011RDB_NAND \
Dipen Dudhatfad15092009-10-08 13:33:29 +0530270 P1011RDB_SDCARD \
271 P1011RDB_SPIFLASH \
Poonam Aggrwalbf488bc2009-08-20 18:57:02 +0530272 P1020RDB \
Dipen Dudhatf7780ec2009-10-08 13:33:18 +0530273 P1020RDB_NAND \
Dipen Dudhatfad15092009-10-08 13:33:29 +0530274 P1020RDB_SDCARD \
275 P1020RDB_SPIFLASH \
Poonam Aggrwalc17b79f2009-08-20 18:59:18 +0530276 P2010RDB \
Dipen Dudhatf7780ec2009-10-08 13:33:18 +0530277 P2010RDB_NAND \
Dipen Dudhatfad15092009-10-08 13:33:29 +0530278 P2010RDB_SDCARD \
279 P2010RDB_SPIFLASH \
Poonam Aggrwal728ece32009-08-05 13:29:24 +0530280 P2020RDB \
Dipen Dudhatf7780ec2009-10-08 13:33:18 +0530281 P2020RDB_NAND \
Dipen Dudhatfad15092009-10-08 13:33:29 +0530282 P2020RDB_SDCARD \
283 P2020RDB_SPIFLASH \
Kim Phillipsfb565792007-08-10 15:34:48 -0500284 sbc8540 \
Joe Hamman11c45eb2007-12-13 06:45:08 -0600285 sbc8548 \
Paul Gortmaker2738bc82009-09-20 20:36:06 -0400286 sbc8548_PCI_33 \
287 sbc8548_PCI_66 \
288 sbc8548_PCI_33_PCIE \
289 sbc8548_PCI_66_PCIE \
Kim Phillipsfb565792007-08-10 15:34:48 -0500290 sbc8560 \
Kim Phillipsfb565792007-08-10 15:34:48 -0500291 stxssa \
292 TQM8540 \
293 TQM8541 \
Wolfgang Grandegger1287e0c2008-06-05 13:12:07 +0200294 TQM8548 \
Wolfgang Grandeggera865bcd2009-02-11 18:38:22 +0100295 TQM8548_AG \
Wolfgang Grandeggerad7ee5d2009-02-11 18:38:21 +0100296 TQM8548_BE \
Kim Phillipsfb565792007-08-10 15:34:48 -0500297 TQM8555 \
298 TQM8560 \
wdenk42d1f032003-10-15 23:53:47 +0000299"
300
301#########################################################################
Jon Loeliger822d5532007-05-23 14:09:46 -0500302## MPC86xx Systems
303#########################################################################
304
Mike Frysinger9ec49f82010-08-19 13:05:06 -0400305LIST_86xx="$(boards_by_cpu mpc86xx)
Becky Bruce7030d562010-06-17 11:37:27 -0500306 MPC8641HPCN_36BIT \
Kim Phillipsfb565792007-08-10 15:34:48 -0500307 MPC8641HPCN \
Jon Loeliger822d5532007-05-23 14:09:46 -0500308"
309
310#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000311## 74xx/7xx Systems
312#########################################################################
313
Kim Phillipsfb565792007-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 Phillipsfb565792007-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 Denkd9a42c02008-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 Roesea47a12b2010-04-15 16:07:28 +0200344LIST_powerpc=" \
Kim Phillipsfb565792007-08-10 15:34:48 -0500345 ${LIST_5xx} \
Jean-Christophe PLAGNIOL-VILLARD3deca9d2007-11-25 22:39:25 +0100346 ${LIST_512x} \
Kim Phillipsfb565792007-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 Roesea47a12b2010-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 Frysinger9ec49f82010-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 Phillipsfb565792007-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 Denk74f43042005-09-25 01:48:28 +0200388"
wdenk7ebf7442002-11-02 23:17:16 +0000389
390#########################################################################
391## ARM9 Systems
392#########################################################################
393
Kim Phillipsfb565792007-08-10 15:34:48 -0500394LIST_ARM9=" \
Po-Yu Chuang43a5f0d2009-11-11 17:27:30 +0800395 a320evb \
Kim Phillipsfb565792007-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 Nori2819e132009-11-12 11:09:25 -0500406 da830evm \
Sudhakar Rajashekhara89b765c2010-06-10 15:18:15 +0530407 da850evm \
Matthias Kaehlckecf3c1422010-02-01 21:29:48 +0100408 edb9301 \
409 edb9302 \
410 edb9302a \
411 edb9307 \
412 edb9307a \
413 edb9312 \
414 edb9315 \
415 edb9315a \
Albert Aribaudce9c2272010-06-17 19:38:21 +0530416 edminiv2 \
Siddarth Gore16b76702010-03-18 20:25:40 +0530417 guruplug \
Ilya Yanok10bc2412009-08-11 02:32:09 +0400418 imx27lite \
Matthias Weisser18a056a2010-08-09 13:31:51 +0200419 jadecpu \
Kim Phillipsfb565792007-08-10 15:34:48 -0500420 lpd7a400 \
Heiko Schocherbbe31092010-03-05 07:36:33 +0100421 magnesium \
Prafulla Wadaskar4abc5bf2009-07-16 20:58:01 +0530422 mv88f6281gtw_ge \
Kim Phillipsfb565792007-08-10 15:34:48 -0500423 mx1ads \
424 mx1fs2 \
425 netstar \
Jean-Christophe PLAGNIOL-VILLARDceb70b42009-07-05 01:06:06 +0200426 nhk8815 \
427 nhk8815_onenand \
Kim Phillipsfb565792007-08-10 15:34:48 -0500428 omap1510inn \
429 omap1610h2 \
430 omap1610inn \
David Brownella3543d62008-01-18 12:45:45 -0800431 omap5912osk \
Kim Phillipsfb565792007-08-10 15:34:48 -0500432 omap730p2 \
Simon Kagstrome92daeb2009-09-22 04:01:01 +0530433 openrd_base \
Prafulla Wadaskarfbc83652009-07-16 21:02:24 +0530434 rd6281a \
Kim Phillipsfb565792007-08-10 15:34:48 -0500435 sbc2410x \
436 scb9328 \
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +0530437 sheevaplug \
Kim Phillipsfb565792007-08-10 15:34:48 -0500438 smdk2400 \
439 smdk2410 \
Vipin KUMAR7e074152010-01-15 19:15:50 +0530440 spear300 \
Vipin KUMAR080cfee2010-01-15 19:15:52 +0530441 spear310 \
Vipin KUMAR7da69232010-01-15 19:15:53 +0530442 spear320 \
Vipin KUMAR566c9c12010-01-15 19:15:48 +0530443 spear600 \
Heiko Schocher67fa8c22010-02-22 16:43:02 +0530444 suen3 \
Kim Phillipsfb565792007-08-10 15:34:48 -0500445 trab \
446 VCMA9 \
447 versatile \
448 versatileab \
449 versatilepb \
450 voiceblue \
451 davinci_dvevm \
452 davinci_schmoogie \
Hugo Villeneuvec7f879e2008-05-21 13:58:41 -0400453 davinci_sffsdr \
Kim Phillipsfb565792007-08-10 15:34:48 -0500454 davinci_sonata \
David Brownell28b00322009-05-15 23:48:37 +0200455 davinci_dm355evm \
Sandeep Paulraj5df65cf2009-10-10 13:37:10 -0400456 davinci_dm355leopard \
Sandeep Paulraj3fca2922010-02-17 21:09:21 -0500457 davinci_dm365evm \
Sandeep Paulraj6ab176d2009-10-10 12:00:47 -0400458 davinci_dm6467evm \
wdenk6f213472003-08-29 22:00:43 +0000459"
wdenk7ebf7442002-11-02 23:17:16 +0000460
461#########################################################################
Wolfgang Denk74f43042005-09-25 01:48:28 +0200462## ARM10 Systems
463#########################################################################
Kim Phillipsfb565792007-08-10 15:34:48 -0500464LIST_ARM10=" \
465 integratorcp \
466 cp1026 \
Wolfgang Denk74f43042005-09-25 01:48:28 +0200467"
468
469#########################################################################
wdenk8ed96042005-01-09 23:16:25 +0000470## ARM11 Systems
471#########################################################################
Guennadi Liakhovetski0c692672009-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 Lilja8449f282009-07-01 01:07:55 +0200480 mx31pdk \
Magnus Liljad08e5ca2009-07-04 10:31:24 +0200481 mx31pdk_nand \
Guennadi Liakhovetski0c692672009-03-25 11:36:50 +0100482 qong \
483 smdk6400 \
Cyril Chemparathy5cc48f72010-06-07 14:13:36 -0400484 tnetv107x_evm \
Wolfgang Denk74f43042005-09-25 01:48:28 +0200485"
wdenk8ed96042005-01-09 23:16:25 +0000486
487#########################################################################
Steve Sakomanf56348a2010-06-17 21:50:01 -0700488## ARMV7 Systems
Dirk Behmef904cdb2009-01-27 18:19:12 +0100489#########################################################################
Steve Sakomanf56348a2010-06-17 21:50:01 -0700490LIST_ARMV7=" \
Vaibhav Hiremathed01e452010-06-07 15:20:43 -0400491 am3517_evm \
Frederik Kriewitzc35d7cf2009-08-23 12:56:42 +0200492 devkit8000 \
Stefano Babicc5fb70c2010-02-05 15:13:58 +0100493 mx51evk \
Dirk Behmef904cdb2009-01-27 18:19:12 +0100494 omap3_beagle \
Dirk Behme9d0fc812009-01-28 21:39:57 +0100495 omap3_overo \
Dirk Behmead9bc8e2009-01-28 21:39:58 +0100496 omap3_evm \
Dirk Behme2be2c6c2009-01-28 21:39:58 +0100497 omap3_pandora \
Tom Rixe63e5902009-10-17 12:41:06 -0500498 omap3_sdp3430 \
Dirk Behme7379f452009-01-28 21:40:16 +0100499 omap3_zoom1 \
Tom Rix376aee72009-05-15 23:48:36 +0200500 omap3_zoom2 \
Steve Sakomanc57cca22010-06-11 20:35:26 -0700501 omap4_panda \
Steve Sakoman3e76d622010-06-08 13:07:46 -0700502 omap4_sdp4430 \
Minkyu Kangc474a8e2010-05-31 22:02:42 +0900503 s5p_goni \
Minkyu Kang8bc4ee92009-10-01 17:20:40 +0900504 smdkc100 \
Dirk Behmef904cdb2009-01-27 18:19:12 +0100505"
506
507#########################################################################
Jean-Christophe PLAGNIOL-VILLARD602cac12008-05-24 12:47:46 +0200508## AT91 Systems
509#########################################################################
510
Sedji Gaouaou22ee6472009-07-09 10:16:29 +0200511LIST_at91=" \
512 afeb9260 \
513 at91cap9adk \
514 at91rm9200dk \
515 at91rm9200ek \
516 at91sam9260ek \
517 at91sam9261ek \
518 at91sam9263ek \
Tom Rixd8380c92009-09-27 07:47:24 -0500519 at91sam9g10ek \
Sedji Gaouaou22ee6472009-07-09 10:16:29 +0200520 at91sam9g20ek \
Sedji Gaouaou5ccc2d92009-06-25 17:04:15 +0200521 at91sam9m10g45ek \
Sedji Gaouaou22ee6472009-07-09 10:16:29 +0200522 at91sam9rlek \
523 cmc_pu2 \
Tom Rixd8380c92009-09-27 07:47:24 -0500524 CPUAT91 \
Tom Rix23b80982009-09-27 11:10:09 -0500525 CPU9260 \
526 CPU9G20 \
Sedji Gaouaou22ee6472009-07-09 10:16:29 +0200527 csb637 \
Jens Scharsig77e72732010-02-03 22:48:09 +0100528 eb_cpux9k2 \
Sedji Gaouaou22ee6472009-07-09 10:16:29 +0200529 kb9202 \
530 meesc \
531 mp2usb \
532 m501sk \
Daniel Gorsulowski44d80252010-01-25 10:50:41 +0100533 otc570 \
Sedji Gaouaou22ee6472009-07-09 10:16:29 +0200534 pm9261 \
535 pm9263 \
Asen Dimovb5d289f2010-04-20 22:49:04 +0300536 pm9g45 \
Albin Tonnerre2dc851e2009-08-20 16:04:49 +0200537 SBC35_A9G20 \
538 TNY_A9260 \
539 TNY_A9G20 \
Jean-Christophe PLAGNIOL-VILLARD602cac12008-05-24 12:47:46 +0200540"
541
542#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000543## Xscale Systems
544#########################################################################
545
Mike Frysinger9ec49f82010-08-19 13:05:06 -0400546LIST_pxa="$(boards_by_cpu pxa)
Stefano Babic040f8f62009-07-01 20:40:41 +0200547 polaris \
Stefano Babic040f8f62009-07-01 20:40:41 +0200548 trizepsiv \
Marek Vasut18a00df2010-03-07 23:35:48 +0100549 vpac270_nor \
550 vpac270_onenand \
wdenk4ec3a7f2004-09-28 16:44:41 +0000551"
wdenk7ebf7442002-11-02 23:17:16 +0000552
Mike Frysinger9ec49f82010-08-19 13:05:06 -0400553LIST_ixp="$(boards_by_cpu ixp)
Kim Phillipsfb565792007-08-10 15:34:48 -0500554 pdnb3 \
555 scpu \
556"
wdenk7ebf7442002-11-02 23:17:16 +0000557
Wolfgang Denkd9a42c02008-04-20 15:35:52 -0700558#########################################################################
559## ARM groups
560#########################################################################
wdenk2d5b5612003-10-14 19:43:55 +0000561
Dirk Behmef904cdb2009-01-27 18:19:12 +0100562LIST_arm=" \
563 ${LIST_SA} \
564 ${LIST_ARM7} \
565 ${LIST_ARM9} \
566 ${LIST_ARM10} \
567 ${LIST_ARM11} \
Steve Sakomanf56348a2010-06-17 21:50:01 -0700568 ${LIST_ARMV7} \
Dirk Behmef904cdb2009-01-27 18:19:12 +0100569 ${LIST_at91} \
570 ${LIST_pxa} \
571 ${LIST_ixp} \
wdenk8ed96042005-01-09 23:16:25 +0000572"
wdenk7ebf7442002-11-02 23:17:16 +0000573
wdenkc0218802003-03-27 12:09:35 +0000574#########################################################################
Wolfgang Denkb62bdff2005-08-14 00:27:00 +0200575## MIPS Systems (default = big endian)
wdenkc0218802003-03-27 12:09:35 +0000576#########################################################################
577
Kim Phillipsfb565792007-08-10 15:34:48 -0500578LIST_mips4kc=" \
579 incaip \
Vlad Lungu0764c162008-01-16 19:27:51 +0200580 qemu_mips \
Stefan Roese2a61eff2009-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 Phillipsfb565792007-08-10 15:34:48 -0500593"
wdenkc0218802003-03-27 12:09:35 +0000594
Kim Phillipsfb565792007-08-10 15:34:48 -0500595LIST_mips5kc=" \
596 purple \
597"
wdenk3e386912003-04-05 00:53:31 +0000598
Kim Phillipsfb565792007-08-10 15:34:48 -0500599LIST_au1xx0=" \
600 dbau1000 \
601 dbau1100 \
602 dbau1500 \
603 dbau1550 \
604 dbau1550_el \
605 gth2 \
606"
wdenk5da627a2003-10-09 20:09:04 +0000607
Kim Phillipsfb565792007-08-10 15:34:48 -0500608LIST_mips=" \
609 ${LIST_mips4kc} \
610 ${LIST_mips5kc} \
611 ${LIST_au1xx0} \
612"
wdenkc0218802003-03-27 12:09:35 +0000613
wdenk7a8e9bed2003-05-31 18:35:21 +0000614#########################################################################
Wolfgang Denkb62bdff2005-08-14 00:27:00 +0200615## MIPS Systems (little endian)
616#########################################################################
617
618LIST_mips4kc_el=""
619
620LIST_mips5kc_el=""
621
Kim Phillipsfb565792007-08-10 15:34:48 -0500622LIST_au1xx0_el=" \
623 dbau1550_el \
Shinya Kuribayashib09258c2007-10-27 15:00:25 +0900624 pb1000 \
Kim Phillipsfb565792007-08-10 15:34:48 -0500625"
Wolfgang Denkb62bdff2005-08-14 00:27:00 +0200626
Kim Phillipsfb565792007-08-10 15:34:48 -0500627LIST_mips_el=" \
628 ${LIST_mips4kc_el} \
629 ${LIST_mips5kc_el} \
630 ${LIST_au1xx0_el} \
631"
Wolfgang Denkb62bdff2005-08-14 00:27:00 +0200632
633#########################################################################
wdenk7a8e9bed2003-05-31 18:35:21 +0000634## i386 Systems
635#########################################################################
636
Mike Frysinger9ec49f82010-08-19 13:05:06 -0400637LIST_x86="$(boards_by_arch i386)
Graeme Russc620c012008-12-07 10:28:57 +1100638 sc520_eNET \
Kim Phillipsfb565792007-08-10 15:34:48 -0500639"
wdenk7a8e9bed2003-05-31 18:35:21 +0000640
wdenkc935d3b2004-01-03 19:43:48 +0000641#########################################################################
wdenk5c952cf2004-10-10 21:27:30 +0000642## Nios-II Systems
643#########################################################################
644
Mike Frysinger9ec49f82010-08-19 13:05:06 -0400645LIST_nios2="$(boards_by_arch nios2)
Thomas Chou8cbb0dd2010-04-21 08:40:59 +0800646 nios2-generic \
Wolfgang Denk4176c792006-06-10 19:27:47 +0200647"
wdenk5c952cf2004-10-10 21:27:30 +0000648
649#########################################################################
wdenk857cad32004-07-10 23:48:41 +0000650## MicroBlaze Systems
651#########################################################################
652
Mike Frysinger9ec49f82010-08-19 13:05:06 -0400653LIST_microblaze="$(boards_by_arch microblaze)"
wdenk857cad32004-07-10 23:48:41 +0000654
Zachary P. Landauf8c3b4f2006-01-26 17:38:46 -0500655#########################################################################
656## ColdFire Systems
657#########################################################################
658
Mike Frysinger9ec49f82010-08-19 13:05:06 -0400659LIST_coldfire="$(boards_by_arch m68k)
Wolfgang Wegner9d79e572010-01-25 11:27:44 +0100660 astro_mcf5373l \
Kim Phillipsfb565792007-08-10 15:34:48 -0500661 cobra5272 \
662 EB+MCF-EV123 \
663 EB+MCF-EV123_internal \
TsiChungLiew1552af72008-01-14 17:43:33 -0600664 M52277EVB \
TsiChungLiew4a442d32007-08-16 19:23:50 -0500665 M5235EVB \
TsiChungLiewaa5f1f92008-01-14 17:23:08 -0600666 M5329AFEE \
667 M5373EVB \
TsiChung Liew05316f82008-08-11 13:41:49 +0000668 M54451EVB \
TsiChungLiew8ae158c2007-08-16 15:05:11 -0500669 M54455EVB \
TsiChungLiew57a12722008-01-15 14:15:46 -0600670 M5475AFE \
671 M5485AFE \
Heiko Schocher9acb6262006-04-20 08:42:42 +0200672"
Zachary P. Landauf8c3b4f2006-01-26 17:38:46 -0500673
Wolfgang Denk6ccec442006-10-24 14:42:37 +0200674#########################################################################
675## AVR32 Systems
676#########################################################################
677
Mike Frysinger9ec49f82010-08-19 13:05:06 -0400678LIST_avr32="$(boards_by_arch avr32)"
Wolfgang Denk6ccec442006-10-24 14:42:37 +0200679
Aubrey.Lief26a082007-03-09 13:40:56 +0800680#########################################################################
681## Blackfin Systems
682#########################################################################
683
Mike Frysinger9ec49f82010-08-19 13:05:06 -0400684LIST_blackfin="$(boards_by_arch blackfin)
685 bf527-ezkit-v2
Aubrey.Lief26a082007-03-09 13:40:56 +0800686"
687
Jean-Christophe PLAGNIOL-VILLARDc7144372007-11-27 09:44:53 +0100688#########################################################################
689## SH Systems
690#########################################################################
691
Nobuhiro Iwamatsuc655fad2008-08-31 23:02:04 +0900692LIST_sh2=" \
693 rsk7203 \
694"
Wolfgang Denkd9a42c02008-04-20 15:35:52 -0700695LIST_sh3=" \
696 mpr2 \
697 ms7720se \
698"
699
Jean-Christophe PLAGNIOL-VILLARDc7144372007-11-27 09:44:53 +0100700LIST_sh4=" \
Nobuhiro Iwamatsuaa9c4f12007-11-29 00:13:04 +0900701 ms7750se \
Jean-Christophe PLAGNIOL-VILLARDc7144372007-11-27 09:44:53 +0100702 ms7722se \
Nobuhiro Iwamatsu9e23fe02008-07-08 12:03:24 +0900703 MigoR \
Yusuke Godac133c1f2008-03-11 12:55:12 +0900704 r7780mp \
Nobuhiro Iwamatsuf5e24662008-03-25 17:11:24 +0900705 r2dplus \
Nobuhiro Iwamatsu7faddae2008-06-09 13:39:57 +0900706 sh7763rdp \
Nobuhiro Iwamatsu0d53a472008-08-31 22:45:08 +0900707 sh7785lcr \
Nobuhiro Iwamatsu6f0da492008-08-22 17:39:09 +0900708 ap325rxa \
Nobuhiro Iwamatsu74d9c162009-06-25 16:31:26 +0900709 espt \
Jean-Christophe PLAGNIOL-VILLARDc7144372007-11-27 09:44:53 +0100710"
711
Jean-Christophe PLAGNIOL-VILLARDc7144372007-11-27 09:44:53 +0100712LIST_sh=" \
Nobuhiro Iwamatsu6f0da492008-08-22 17:39:09 +0900713 ${LIST_sh2} \
Jean-Christophe PLAGNIOL-VILLARDc7144372007-11-27 09:44:53 +0100714 ${LIST_sh3} \
715 ${LIST_sh4} \
716"
717
Daniel Hellstromc2f02da2008-03-28 09:47:00 +0100718#########################################################################
719## SPARC Systems
720#########################################################################
721
Mike Frysinger9ec49f82010-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
Kim Phillipsd70d8cc2010-09-14 14:48:16 -0500730 ${MAKE} -s ${target}_config
Marian Balakowiczf9328632006-09-01 19:49:50 +0200731
732 ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
733 | tee ${LOG_DIR}/$target.ERR
Peter Tyserf2352872009-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 Tyser40a28f02009-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 Balakowiczf9328632006-09-01 19:49:50 +0200748
Mike Frysinger208447f2008-01-28 05:56:19 -0500749 ${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
Marian Balakowiczf9328632006-09-01 19:49:50 +0200750 | tee -a ${LOG_DIR}/$target.MAKELOG
wdenk7ebf7442002-11-02 23:17:16 +0000751}
Mike Frysinger9ec49f82010-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 Tyser40a28f02009-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 Tyserf2352872009-12-06 23:58:28 -0600779
780 exit $RC
Peter Tyser40a28f02009-09-21 12:04:32 -0500781}
wdenk7ebf7442002-11-02 23:17:16 +0000782
Peter Tyser40a28f02009-09-21 12:04:32 -0500783#-----------------------------------------------------------------------
Mike Frysinger9ec49f82010-08-19 13:05:06 -0400784
785#----- for now, just run PowerPC by default -----
786[ $# = 0 ] && set -- powerpc
787
788build_targets "$@"