SPEAr : Support added for SPEAr300 board
[platform/kernel/u-boot.git] / MAKEALL
1 #!/bin/bash
2
3 # Print statistics when we exit
4 trap exit 1 2 3 15
5 trap print_stats 0
6
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
12         JOBS="-j $((BUILD_NCPUS + 1))"
13 else
14         JOBS=""
15 fi
16
17
18 if [ "${CROSS_COMPILE}" ] ; then
19         MAKE="make CROSS_COMPILE=${CROSS_COMPILE}"
20 else
21         MAKE=make
22 fi
23
24 if [ "${MAKEALL_LOGDIR}" ] ; then
25         LOG_DIR=${MAKEALL_LOGDIR}
26 else
27         LOG_DIR="LOG"
28 fi
29
30 if [ ! "${BUILD_DIR}" ] ; then
31         BUILD_DIR="."
32 fi
33
34 [ -d ${LOG_DIR} ] || mkdir ${LOG_DIR} || exit 1
35
36 LIST=""
37
38 # Keep track of the number of builds and errors
39 ERR_CNT=0
40 ERR_LIST=""
41 TOTAL_CNT=0
42 RC=0
43
44 #########################################################################
45 ## MPC5xx Systems
46 #########################################################################
47
48 LIST_5xx="              \
49         cmi_mpc5xx      \
50 "
51
52 #########################################################################
53 ## MPC5xxx Systems
54 #########################################################################
55
56 LIST_5xxx="             \
57         BC3450          \
58         cm5200          \
59         cpci5200        \
60         digsy_mtc       \
61         EVAL5200        \
62         fo300           \
63         galaxy5200      \
64         icecube_5100    \
65         icecube_5200    \
66         inka4x0         \
67         ipek01          \
68         lite5200b       \
69         mcc200          \
70         mecp5200        \
71         motionpro       \
72         munices         \
73         MVBC_P          \
74         o2dnt           \
75         pcm030          \
76         pf5200          \
77         PM520           \
78         TB5200          \
79         Total5100       \
80         Total5200       \
81         Total5200_Rev2  \
82         TQM5200         \
83         TQM5200_B       \
84         TQM5200S        \
85         v38b            \
86 "
87
88 #########################################################################
89 ## MPC512x Systems
90 #########################################################################
91
92 LIST_512x="             \
93         aria            \
94         mecp5123        \
95         mpc5121ads      \
96 "
97
98 #########################################################################
99 ## MPC8xx Systems
100 #########################################################################
101 LIST_8xx="              \
102         Adder87x        \
103         AdderII         \
104         ADS860          \
105         AMX860          \
106         c2mon           \
107         CCM             \
108         cogent_mpc8xx   \
109         ELPT860         \
110         EP88x           \
111         ESTEEM192E      \
112         ETX094          \
113         FADS823         \
114         FADS850SAR      \
115         FADS860T        \
116         FLAGADM         \
117         FPS850L         \
118         GEN860T         \
119         GEN860T_SC      \
120         GENIETV         \
121         GTH             \
122         hermes          \
123         IAD210          \
124         ICU862_100MHz   \
125         IP860           \
126         IVML24          \
127         IVML24_128      \
128         IVML24_256      \
129         IVMS8           \
130         IVMS8_128       \
131         IVMS8_256       \
132         KUP4K           \
133         KUP4X           \
134         LANTEC          \
135         lwmon           \
136         kmsupx4         \
137         MBX             \
138         MBX860T         \
139         mgsuvd          \
140         MHPC            \
141         MPC86xADS       \
142         MPC885ADS       \
143         NETPHONE        \
144         NETTA           \
145         NETTA2          \
146         NETTA_ISDN      \
147         NETVIA          \
148         NETVIA_V2       \
149         NX823           \
150         pcu_e           \
151         QS823           \
152         QS850           \
153         QS860T          \
154         quantum         \
155         R360MPI         \
156         RBC823          \
157         rmu             \
158         RPXClassic      \
159         RPXlite         \
160         RPXlite_DW      \
161         RRvision        \
162         SM850           \
163         spc1920         \
164         SPD823TS        \
165         svm_sc8xx       \
166         SXNI855T        \
167         TK885D          \
168         TOP860          \
169         TQM823L         \
170         TQM823L_LCD     \
171         TQM850L         \
172         TQM855L         \
173         TQM860L         \
174         TQM885D         \
175         uc100           \
176         v37             \
177 "
178
179 #########################################################################
180 ## PPC4xx Systems
181 #########################################################################
182
183 LIST_4xx="              \
184         acadia          \
185         acadia_nand     \
186         ADCIOP          \
187         alpr            \
188         AP1000          \
189         AR405           \
190         arches          \
191         ASH405          \
192         bamboo          \
193         bamboo_nand     \
194         bubinga         \
195         CANBT           \
196         canyonlands     \
197         canyonlands_nand \
198         CMS700          \
199         CPCI2DP         \
200         CPCI405         \
201         CPCI4052        \
202         CPCI405AB       \
203         CPCI405DT       \
204         CPCIISER4       \
205         CRAYL1          \
206         csb272          \
207         csb472          \
208         DASA_SIM        \
209         devconcenter    \
210         dlvision        \
211         DP405           \
212         DU405           \
213         DU440           \
214         ebony           \
215         ERIC            \
216         EXBITGEN        \
217         fx12mm          \
218         G2000           \
219         gdppc440etx     \
220         glacier         \
221         haleakala       \
222         haleakala_nand  \
223         hcu4            \
224         hcu5            \
225         HH405           \
226         HUB405          \
227         intip           \
228         JSE             \
229         KAREF           \
230         katmai          \
231         kilauea         \
232         kilauea_nand    \
233         korat           \
234         luan            \
235         lwmon5          \
236         makalu          \
237         mcu25           \
238         METROBOX        \
239         MIP405          \
240         MIP405T         \
241         ML2             \
242         ml300           \
243         ml507           \
244         ml507_flash     \
245         neo             \
246         ocotea          \
247         OCRTC           \
248         ORSG            \
249         p3p440          \
250         PCI405          \
251         pcs440ep        \
252         PIP405          \
253         PLU405          \
254         PMC405          \
255         PMC405DE        \
256         PMC440          \
257         PPChameleonEVB  \
258         quad100hd       \
259         rainier         \
260         redwood         \
261         sbc405          \
262         sc3             \
263         sequoia         \
264         sequoia_nand    \
265         taihu           \
266         taishan         \
267         v5fx30teval     \
268         v5fx30teval_flash \
269         VOH405          \
270         VOM405          \
271         W7OLMC          \
272         W7OLMG          \
273         walnut          \
274         WUH405          \
275         xilinx-ppc440-generic \
276         xilinx-ppc440-generic_flash \
277         XPEDITE1000     \
278         yellowstone     \
279         yosemite        \
280         yucca           \
281         zeus            \
282 "
283
284 #########################################################################
285 ## MPC8220 Systems
286 #########################################################################
287
288 LIST_8220="             \
289         Alaska8220      \
290         Yukon8220       \
291 "
292
293 #########################################################################
294 ## MPC824x Systems
295 #########################################################################
296
297 LIST_824x="             \
298         A3000           \
299         barco           \
300         BMW             \
301         CPC45           \
302         CU824           \
303         debris          \
304         eXalion         \
305         HIDDEN_DRAGON   \
306         IDS8247         \
307         linkstation_HGLAN       \
308         MOUSSE          \
309         MUSENKI         \
310         MVBLUE          \
311         OXC             \
312         PN62            \
313         Sandpoint8240   \
314         Sandpoint8245   \
315         sbc8240         \
316         SL8245          \
317         utx8245         \
318 "
319
320 #########################################################################
321 ## MPC8260 Systems (includes 8250, 8255 etc.)
322 #########################################################################
323
324 LIST_8260="             \
325         atc             \
326         cogent_mpc8260  \
327         CPU86           \
328         CPU87           \
329         ep8248          \
330         ep8260          \
331         ep82xxm         \
332         gw8260          \
333         hymod           \
334         IPHASE4539      \
335         ISPAN           \
336         mgcoge          \
337         MPC8260ADS      \
338         MPC8266ADS      \
339         MPC8272ADS      \
340         PM826           \
341         PM828           \
342         ppmc8260        \
343         Rattler8248     \
344         RPXsuper        \
345         rsdproto        \
346         sacsng          \
347         sbc8260         \
348         SCM             \
349         TQM8260_AC      \
350         TQM8260_AD      \
351         TQM8260_AE      \
352         TQM8272         \
353         ZPC1900         \
354 "
355
356 #########################################################################
357 ## MPC83xx Systems (includes 8349, etc.)
358 #########################################################################
359
360 LIST_83xx="             \
361         caddy2          \
362         kmeter1         \
363         MPC8313ERDB_33  \
364         MPC8313ERDB_NAND_66     \
365         MPC8315ERDB     \
366         MPC8315ERDB_NAND        \
367         MPC8323ERDB     \
368         MPC832XEMDS     \
369         MPC832XEMDS_ATM \
370         MPC8349EMDS     \
371         MPC8349ITX      \
372         MPC8349ITXGP    \
373         MPC8360EMDS     \
374         MPC8360EMDS_ATM \
375         MPC8360ERDK_33  \
376         MPC8360ERDK_66  \
377         MPC837XEMDS     \
378         MPC837XERDB     \
379         MVBLM7          \
380         sbc8349         \
381         SIMPC8313_LP    \
382         TQM834x         \
383         vme8349         \
384 "
385
386
387 #########################################################################
388 ## MPC85xx Systems (includes 8540, 8560 etc.)
389 #########################################################################
390
391 LIST_85xx="             \
392         ATUM8548        \
393         MPC8536DS       \
394         MPC8536DS_NAND  \
395         MPC8536DS_SDCARD        \
396         MPC8536DS_SPIFLASH      \
397         MPC8540ADS      \
398         MPC8540EVAL     \
399         MPC8541CDS      \
400         MPC8544DS       \
401         MPC8548CDS      \
402         MPC8555CDS      \
403         MPC8560ADS      \
404         MPC8568MDS      \
405         MPC8569MDS      \
406         MPC8572DS       \
407         MPC8572DS_36BIT \
408         P2020DS         \
409         P2020DS_36BIT   \
410         P1011RDB        \
411         P1011RDB_NAND   \
412         P1011RDB_SDCARD \
413         P1011RDB_SPIFLASH       \
414         P1020RDB        \
415         P1020RDB_NAND   \
416         P1020RDB_SDCARD \
417         P1020RDB_SPIFLASH       \
418         P2010RDB        \
419         P2010RDB_NAND   \
420         P2010RDB_SDCARD \
421         P2010RDB_SPIFLASH       \
422         P2020RDB        \
423         P2020RDB_NAND   \
424         P2020RDB_SDCARD \
425         P2020RDB_SPIFLASH       \
426         PM854           \
427         PM856           \
428         sbc8540         \
429         sbc8548         \
430         sbc8548_PCI_33  \
431         sbc8548_PCI_66  \
432         sbc8548_PCI_33_PCIE \
433         sbc8548_PCI_66_PCIE \
434         sbc8560         \
435         socrates        \
436         stxgp3          \
437         stxssa          \
438         TQM8540         \
439         TQM8541         \
440         TQM8548         \
441         TQM8548_AG      \
442         TQM8548_BE      \
443         TQM8555         \
444         TQM8560         \
445         XPEDITE5200     \
446         XPEDITE5370     \
447 "
448
449 #########################################################################
450 ## MPC86xx Systems
451 #########################################################################
452
453 LIST_86xx="             \
454         MPC8610HPCD     \
455         MPC8641HPCN     \
456         sbc8641d        \
457         XPEDITE5170     \
458 "
459
460 #########################################################################
461 ## 74xx/7xx Systems
462 #########################################################################
463
464 LIST_74xx="             \
465         DB64360         \
466         DB64460         \
467         EVB64260        \
468         mpc7448hpc2     \
469         P3G4            \
470         p3m7448         \
471         PCIPPC2         \
472         PCIPPC6         \
473         ZUMA            \
474 "
475
476 LIST_7xx="              \
477         BAB7xx          \
478         CPCI750         \
479         ELPPC           \
480         p3m750          \
481         ppmc7xx         \
482 "
483
484 #########################################################################
485 ## PowerPC groups
486 #########################################################################
487
488 LIST_TSEC="             \
489         ${LIST_83xx}    \
490         ${LIST_85xx}    \
491         ${LIST_86xx}    \
492 "
493
494 LIST_ppc="              \
495         ${LIST_5xx}     \
496         ${LIST_512x}    \
497         ${LIST_5xxx}    \
498         ${LIST_8xx}     \
499         ${LIST_8220}    \
500         ${LIST_824x}    \
501         ${LIST_8260}    \
502         ${LIST_83xx}    \
503         ${LIST_85xx}    \
504         ${LIST_86xx}    \
505         ${LIST_4xx}     \
506         ${LIST_74xx}    \
507         ${LIST_7xx}     \
508 "
509
510 #########################################################################
511 ## StrongARM Systems
512 #########################################################################
513
514 LIST_SA="               \
515         assabet         \
516         dnp1110         \
517         gcplus          \
518         lart            \
519         shannon         \
520 "
521
522 #########################################################################
523 ## ARM7 Systems
524 #########################################################################
525
526 LIST_ARM7="             \
527         ap7             \
528         ap720t          \
529         armadillo       \
530         B2              \
531         ep7312          \
532         evb4510         \
533         impa7           \
534         integratorap    \
535         lpc2292sodimm   \
536         modnet50        \
537         SMN42           \
538 "
539
540 #########################################################################
541 ## ARM9 Systems
542 #########################################################################
543
544 LIST_ARM9="                     \
545         a320evb                 \
546         ap920t                  \
547         ap922_XA10              \
548         ap926ejs                \
549         ap946es                 \
550         ap966                   \
551         cp920t                  \
552         cp922_XA10              \
553         cp926ejs                \
554         cp946es                 \
555         cp966                   \
556         da830evm                \
557         imx27lite               \
558         lpd7a400                \
559         mv88f6281gtw_ge         \
560         mx1ads                  \
561         mx1fs2                  \
562         netstar                 \
563         nhk8815                 \
564         nhk8815_onenand         \
565         omap1510inn             \
566         omap1610h2              \
567         omap1610inn             \
568         omap5912osk             \
569         omap730p2               \
570         openrd_base             \
571         rd6281a                 \
572         sbc2410x                \
573         scb9328                 \
574         sheevaplug              \
575         smdk2400                \
576         smdk2410                \
577         spear300                \
578         spear600                \
579         trab                    \
580         VCMA9                   \
581         versatile               \
582         versatileab             \
583         versatilepb             \
584         voiceblue               \
585         davinci_dvevm           \
586         davinci_schmoogie       \
587         davinci_sffsdr          \
588         davinci_sonata          \
589         davinci_dm355evm        \
590         davinci_dm355leopard    \
591         davinci_dm6467evm       \
592 "
593
594 #########################################################################
595 ## ARM10 Systems
596 #########################################################################
597 LIST_ARM10="            \
598         integratorcp    \
599         cp1026          \
600 "
601
602 #########################################################################
603 ## ARM11 Systems
604 #########################################################################
605 LIST_ARM11="                    \
606         cp1136                  \
607         omap2420h4              \
608         apollon                 \
609         imx31_litekit           \
610         imx31_phycore           \
611         imx31_phycore_eet       \
612         mx31ads                 \
613         mx31pdk                 \
614         mx31pdk_nand            \
615         qong                    \
616         smdk6400                \
617 "
618
619 #########################################################################
620 ## ARM Cortex-A8 Systems
621 #########################################################################
622 LIST_ARM_CORTEX_A8="            \
623         devkit8000              \
624         omap3_beagle            \
625         omap3_overo             \
626         omap3_evm               \
627         omap3_pandora           \
628         omap3_sdp3430           \
629         omap3_zoom1             \
630         omap3_zoom2             \
631         smdkc100                \
632 "
633
634 #########################################################################
635 ## AT91 Systems
636 #########################################################################
637
638 LIST_at91="                     \
639         afeb9260                \
640         at91cap9adk             \
641         at91rm9200dk            \
642         at91rm9200ek            \
643         at91sam9260ek           \
644         at91sam9261ek           \
645         at91sam9263ek           \
646         at91sam9g10ek           \
647         at91sam9g20ek           \
648         at91sam9m10g45ek        \
649         at91sam9rlek            \
650         cmc_pu2                 \
651         CPUAT91                 \
652         CPU9260                 \
653         CPU9G20                 \
654         csb637                  \
655         kb9202                  \
656         meesc                   \
657         mp2usb                  \
658         m501sk                  \
659         pm9261                  \
660         pm9263                  \
661         SBC35_A9G20             \
662         TNY_A9260               \
663         TNY_A9G20               \
664 "
665
666 #########################################################################
667 ## Xscale Systems
668 #########################################################################
669
670 LIST_pxa="              \
671         cerf250         \
672         cradle          \
673         csb226          \
674         delta           \
675         innokom         \
676         lubbock         \
677         pleb2           \
678         polaris         \
679         pxa255_idp      \
680         trizepsiv       \
681         wepep250        \
682         xaeniax         \
683         xm250           \
684         xsengine        \
685         zylonite        \
686 "
687
688 LIST_ixp="              \
689         actux1          \
690         actux2          \
691         actux3          \
692         actux4          \
693         ixdp425         \
694         ixdpg425        \
695         pdnb3           \
696         scpu            \
697 "
698
699 #########################################################################
700 ## ARM groups
701 #########################################################################
702
703 LIST_arm="                      \
704         ${LIST_SA}              \
705         ${LIST_ARM7}            \
706         ${LIST_ARM9}            \
707         ${LIST_ARM10}           \
708         ${LIST_ARM11}           \
709         ${LIST_ARM_CORTEX_A8}   \
710         ${LIST_at91}            \
711         ${LIST_pxa}             \
712         ${LIST_ixp}             \
713 "
714
715 #########################################################################
716 ## MIPS Systems         (default = big endian)
717 #########################################################################
718
719 LIST_mips4kc="          \
720         incaip          \
721         qemu_mips       \
722         vct_platinum    \
723         vct_platinum_small      \
724         vct_platinum_onenand    \
725         vct_platinum_onenand_small      \
726         vct_platinumavc \
727         vct_platinumavc_small   \
728         vct_platinumavc_onenand \
729         vct_platinumavc_onenand_small   \
730         vct_premium     \
731         vct_premium_small       \
732         vct_premium_onenand     \
733         vct_premium_onenand_small       \
734 "
735
736 LIST_mips5kc="          \
737         purple          \
738 "
739
740 LIST_au1xx0="           \
741         dbau1000        \
742         dbau1100        \
743         dbau1500        \
744         dbau1550        \
745         dbau1550_el     \
746         gth2            \
747 "
748
749 LIST_mips="             \
750         ${LIST_mips4kc} \
751         ${LIST_mips5kc} \
752         ${LIST_au1xx0}  \
753 "
754
755 #########################################################################
756 ## MIPS Systems         (little endian)
757 #########################################################################
758
759 LIST_mips4kc_el=""
760
761 LIST_mips5kc_el=""
762
763 LIST_au1xx0_el="        \
764         dbau1550_el     \
765         pb1000          \
766 "
767
768 LIST_mips_el="                  \
769         ${LIST_mips4kc_el}      \
770         ${LIST_mips5kc_el}      \
771         ${LIST_au1xx0_el}       \
772 "
773
774 #########################################################################
775 ## i386 Systems
776 #########################################################################
777
778 LIST_I486="             \
779         sc520_cdp       \
780         sc520_eNET      \
781         sc520_spunk     \
782         sc520_spunk_rel \
783 "
784
785 LIST_x86="              \
786         ${LIST_I486}    \
787 "
788
789 #########################################################################
790 ## NIOS Systems
791 #########################################################################
792
793 LIST_nios="                     \
794         ADNPESC1                \
795         ADNPESC1_base_32        \
796         ADNPESC1_DNPEVA2_base_32\
797         DK1C20                  \
798         DK1C20_standard_32      \
799         DK1S10                  \
800         DK1S10_standard_32      \
801         DK1S10_mtx_ldk_20       \
802 "
803
804 #########################################################################
805 ## Nios-II Systems
806 #########################################################################
807
808 LIST_nios2="            \
809         EP1C20          \
810         EP1S10          \
811         EP1S40          \
812         PCI5441         \
813         PK1C20          \
814 "
815
816 #########################################################################
817 ## MicroBlaze Systems
818 #########################################################################
819
820 LIST_microblaze="                       \
821         microblaze-generic              \
822 "
823
824 #########################################################################
825 ## ColdFire Systems
826 #########################################################################
827
828 LIST_coldfire="                 \
829         cobra5272               \
830         EB+MCF-EV123            \
831         EB+MCF-EV123_internal   \
832         idmr                    \
833         M5208EVBE               \
834         M52277EVB               \
835         M5235EVB                \
836         M5249EVB                \
837         M5253DEMO               \
838         M5253EVBE               \
839         M5271EVB                \
840         M5272C3                 \
841         M5275EVB                \
842         M5282EVB                \
843         M53017EVB               \
844         M5329AFEE               \
845         M5373EVB                \
846         M54451EVB               \
847         M54455EVB               \
848         M5475AFE                \
849         M5485AFE                \
850         TASREG                  \
851 "
852
853 #########################################################################
854 ## AVR32 Systems
855 #########################################################################
856
857 LIST_avr32="            \
858         atstk1002       \
859         atstk1003       \
860         atstk1004       \
861         atstk1006       \
862         atngw100        \
863         favr-32-ezkit   \
864         hammerhead      \
865         mimc200         \
866 "
867
868 #########################################################################
869 ## Blackfin Systems
870 #########################################################################
871
872 LIST_blackfin="         \
873         bf518f-ezbrd    \
874         bf526-ezbrd     \
875         bf527-ezkit     \
876         bf527-ezkit-v2  \
877         bf533-ezkit     \
878         bf533-stamp     \
879         bf537-minotaur  \
880         bf537-pnav      \
881         bf537-srv1      \
882         bf537-stamp     \
883         bf538f-ezkit    \
884         bf548-ezkit     \
885         bf561-acvilon   \
886         bf561-ezkit     \
887         blackstamp      \
888         cm-bf527        \
889         cm-bf533        \
890         cm-bf537e       \
891         cm-bf537u       \
892         cm-bf548        \
893         cm-bf561        \
894         ibf-dsp561      \
895         tcm-bf518       \
896         tcm-bf537       \
897 "
898
899 #########################################################################
900 ## SH Systems
901 #########################################################################
902
903 LIST_sh2="              \
904         rsk7203         \
905 "
906 LIST_sh3="              \
907         mpr2            \
908         ms7720se        \
909 "
910
911 LIST_sh4="              \
912         ms7750se        \
913         ms7722se        \
914         MigoR           \
915         r7780mp         \
916         r2dplus         \
917         sh7763rdp       \
918         sh7785lcr       \
919         ap325rxa        \
920         espt            \
921 "
922
923 LIST_sh="               \
924         ${LIST_sh2}     \
925         ${LIST_sh3}     \
926         ${LIST_sh4}     \
927 "
928
929 #########################################################################
930 ## SPARC Systems
931 #########################################################################
932
933 LIST_sparc="gr_xc3s_1500        gr_cpci_ax2000  gr_ep2s60       grsim   grsim_leon2"
934
935 #-----------------------------------------------------------------------
936
937 #----- for now, just run PPC by default -----
938 [ $# = 0 ] && set $LIST_ppc
939
940 #-----------------------------------------------------------------------
941
942 build_target() {
943         target=$1
944
945         ${MAKE} distclean >/dev/null
946         ${MAKE} ${target}_config
947
948         ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
949                                 | tee ${LOG_DIR}/$target.ERR
950
951         # Check for 'make' errors
952         if [ ${PIPESTATUS[0]} -ne 0 ] ; then
953                 RC=1
954         fi
955
956         if [ -s ${LOG_DIR}/$target.ERR ] ; then
957                 ERR_CNT=$((ERR_CNT + 1))
958                 ERR_LIST="${ERR_LIST} $target"
959         else
960                 rm ${LOG_DIR}/$target.ERR
961         fi
962
963         TOTAL_CNT=$((TOTAL_CNT + 1))
964
965         ${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
966                                 | tee -a ${LOG_DIR}/$target.MAKELOG
967 }
968
969 #-----------------------------------------------------------------------
970
971 print_stats() {
972         echo ""
973         echo "--------------------- SUMMARY ----------------------------"
974         echo "Boards compiled: ${TOTAL_CNT}"
975         if [ ${ERR_CNT} -gt 0 ] ; then
976                 echo "Boards with warnings or errors: ${ERR_CNT} (${ERR_LIST} )"
977         fi
978         echo "----------------------------------------------------------"
979
980         exit $RC
981 }
982
983 #-----------------------------------------------------------------------
984 for arg in $@
985 do
986         case "$arg" in
987         arm|SA|ARM7|ARM9|ARM10|ARM11|ARM_CORTEX_A8|at91|ixp|pxa \
988         |avr32 \
989         |blackfin \
990         |coldfire \
991         |microblaze \
992         |mips|mips_el \
993         |nios|nios2 \
994         |ppc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx|TSEC \
995         |sh|sh2|sh3|sh4 \
996         |sparc \
997         |x86|I486 \
998         )
999                         for target in `eval echo '$LIST_'${arg}`
1000                         do
1001                                 build_target ${target}
1002                         done
1003                         ;;
1004         *)              build_target ${arg}
1005                         ;;
1006         esac
1007 done