Merge branch 'master' of git://git.denx.de/u-boot-net
[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         fx12mm          \
217         G2000           \
218         gdppc440etx     \
219         glacier         \
220         haleakala       \
221         haleakala_nand  \
222         hcu4            \
223         hcu5            \
224         HH405           \
225         HUB405          \
226         intip           \
227         JSE             \
228         KAREF           \
229         katmai          \
230         kilauea         \
231         kilauea_nand    \
232         korat           \
233         luan            \
234         lwmon5          \
235         makalu          \
236         mcu25           \
237         METROBOX        \
238         MIP405          \
239         MIP405T         \
240         ML2             \
241         ml300           \
242         ml507           \
243         ml507_flash     \
244         neo             \
245         ocotea          \
246         OCRTC           \
247         ORSG            \
248         p3p440          \
249         PCI405          \
250         pcs440ep        \
251         PIP405          \
252         PLU405          \
253         PMC405          \
254         PMC405DE        \
255         PMC440          \
256         PPChameleonEVB  \
257         quad100hd       \
258         rainier         \
259         redwood         \
260         sbc405          \
261         sc3             \
262         sequoia         \
263         sequoia_nand    \
264         taihu           \
265         taishan         \
266         v5fx30teval     \
267         v5fx30teval_flash \
268         VOH405          \
269         VOM405          \
270         W7OLMC          \
271         W7OLMG          \
272         walnut          \
273         WUH405          \
274         xilinx-ppc440-generic \
275         xilinx-ppc440-generic_flash \
276         XPEDITE1000     \
277         yellowstone     \
278         yosemite        \
279         yucca           \
280         zeus            \
281 "
282
283 #########################################################################
284 ## MPC8220 Systems
285 #########################################################################
286
287 LIST_8220="             \
288         Alaska8220      \
289         Yukon8220       \
290 "
291
292 #########################################################################
293 ## MPC824x Systems
294 #########################################################################
295
296 LIST_824x="             \
297         A3000           \
298         barco           \
299         BMW             \
300         CPC45           \
301         CU824           \
302         debris          \
303         eXalion         \
304         HIDDEN_DRAGON   \
305         IDS8247         \
306         linkstation_HGLAN       \
307         MOUSSE          \
308         MUSENKI         \
309         MVBLUE          \
310         OXC             \
311         PN62            \
312         Sandpoint8240   \
313         Sandpoint8245   \
314         sbc8240         \
315         SL8245          \
316         utx8245         \
317 "
318
319 #########################################################################
320 ## MPC8260 Systems (includes 8250, 8255 etc.)
321 #########################################################################
322
323 LIST_8260="             \
324         atc             \
325         cogent_mpc8260  \
326         CPU86           \
327         CPU87           \
328         ep8248          \
329         ep8260          \
330         ep82xxm         \
331         gw8260          \
332         hymod           \
333         IPHASE4539      \
334         ISPAN           \
335         mgcoge          \
336         MPC8260ADS      \
337         MPC8266ADS      \
338         MPC8272ADS      \
339         PM826           \
340         PM828           \
341         ppmc8260        \
342         Rattler8248     \
343         RPXsuper        \
344         rsdproto        \
345         sacsng          \
346         sbc8260         \
347         SCM             \
348         TQM8260_AC      \
349         TQM8260_AD      \
350         TQM8260_AE      \
351         TQM8272         \
352         ZPC1900         \
353 "
354
355 #########################################################################
356 ## MPC83xx Systems (includes 8349, etc.)
357 #########################################################################
358
359 LIST_83xx="             \
360         caddy2          \
361         kmeter1         \
362         MPC8313ERDB_33  \
363         MPC8313ERDB_NAND_66     \
364         MPC8315ERDB     \
365         MPC8315ERDB_NAND        \
366         MPC8323ERDB     \
367         MPC832XEMDS     \
368         MPC832XEMDS_ATM \
369         MPC8349EMDS     \
370         MPC8349ITX      \
371         MPC8349ITXGP    \
372         MPC8360EMDS     \
373         MPC8360EMDS_ATM \
374         MPC8360ERDK_33  \
375         MPC8360ERDK_66  \
376         MPC837XEMDS     \
377         MPC837XERDB     \
378         MVBLM7          \
379         sbc8349         \
380         SIMPC8313_LP    \
381         TQM834x         \
382         vme8349         \
383 "
384
385
386 #########################################################################
387 ## MPC85xx Systems (includes 8540, 8560 etc.)
388 #########################################################################
389
390 LIST_85xx="             \
391         ATUM8548        \
392         MPC8536DS       \
393         MPC8536DS_NAND  \
394         MPC8536DS_SDCARD        \
395         MPC8536DS_SPIFLASH      \
396         MPC8540ADS      \
397         MPC8540EVAL     \
398         MPC8541CDS      \
399         MPC8544DS       \
400         MPC8548CDS      \
401         MPC8555CDS      \
402         MPC8560ADS      \
403         MPC8568MDS      \
404         MPC8569MDS      \
405         MPC8569MDS_ATM  \
406         MPC8569MDS_NAND \
407         MPC8572DS       \
408         MPC8572DS_36BIT \
409         P2020DS         \
410         P2020DS_36BIT   \
411         P1011RDB        \
412         P1011RDB_NAND   \
413         P1011RDB_SDCARD \
414         P1011RDB_SPIFLASH       \
415         P1020RDB        \
416         P1020RDB_NAND   \
417         P1020RDB_SDCARD \
418         P1020RDB_SPIFLASH       \
419         P2010RDB        \
420         P2010RDB_NAND   \
421         P2010RDB_SDCARD \
422         P2010RDB_SPIFLASH       \
423         P2020RDB        \
424         P2020RDB_NAND   \
425         P2020RDB_SDCARD \
426         P2020RDB_SPIFLASH       \
427         PM854           \
428         PM856           \
429         sbc8540         \
430         sbc8548         \
431         sbc8548_PCI_33  \
432         sbc8548_PCI_66  \
433         sbc8548_PCI_33_PCIE \
434         sbc8548_PCI_66_PCIE \
435         sbc8560         \
436         socrates        \
437         stxgp3          \
438         stxssa          \
439         TQM8540         \
440         TQM8541         \
441         TQM8548         \
442         TQM8548_AG      \
443         TQM8548_BE      \
444         TQM8555         \
445         TQM8560         \
446         XPEDITE5200     \
447         XPEDITE5370     \
448 "
449
450 #########################################################################
451 ## MPC86xx Systems
452 #########################################################################
453
454 LIST_86xx="             \
455         MPC8610HPCD     \
456         MPC8641HPCN     \
457         sbc8641d        \
458         XPEDITE5170     \
459 "
460
461 #########################################################################
462 ## 74xx/7xx Systems
463 #########################################################################
464
465 LIST_74xx="             \
466         DB64360         \
467         DB64460         \
468         EVB64260        \
469         mpc7448hpc2     \
470         P3G4            \
471         p3m7448         \
472         PCIPPC2         \
473         PCIPPC6         \
474         ZUMA            \
475 "
476
477 LIST_7xx="              \
478         BAB7xx          \
479         CPCI750         \
480         ELPPC           \
481         p3m750          \
482         ppmc7xx         \
483 "
484
485 #########################################################################
486 ## PowerPC groups
487 #########################################################################
488
489 LIST_TSEC="             \
490         ${LIST_83xx}    \
491         ${LIST_85xx}    \
492         ${LIST_86xx}    \
493 "
494
495 LIST_ppc="              \
496         ${LIST_5xx}     \
497         ${LIST_512x}    \
498         ${LIST_5xxx}    \
499         ${LIST_8xx}     \
500         ${LIST_8220}    \
501         ${LIST_824x}    \
502         ${LIST_8260}    \
503         ${LIST_83xx}    \
504         ${LIST_85xx}    \
505         ${LIST_86xx}    \
506         ${LIST_4xx}     \
507         ${LIST_74xx}    \
508         ${LIST_7xx}     \
509 "
510
511 #########################################################################
512 ## StrongARM Systems
513 #########################################################################
514
515 LIST_SA="               \
516         assabet         \
517         dnp1110         \
518         gcplus          \
519         lart            \
520         shannon         \
521 "
522
523 #########################################################################
524 ## ARM7 Systems
525 #########################################################################
526
527 LIST_ARM7="             \
528         ap7             \
529         ap720t          \
530         armadillo       \
531         B2              \
532         ep7312          \
533         evb4510         \
534         impa7           \
535         integratorap    \
536         lpc2292sodimm   \
537         modnet50        \
538         SMN42           \
539 "
540
541 #########################################################################
542 ## ARM9 Systems
543 #########################################################################
544
545 LIST_ARM9="                     \
546         a320evb                 \
547         ap920t                  \
548         ap922_XA10              \
549         ap926ejs                \
550         ap946es                 \
551         ap966                   \
552         cp920t                  \
553         cp922_XA10              \
554         cp926ejs                \
555         cp946es                 \
556         cp966                   \
557         da830evm                \
558         imx27lite               \
559         lpd7a400                \
560         mv88f6281gtw_ge         \
561         mx1ads                  \
562         mx1fs2                  \
563         netstar                 \
564         nhk8815                 \
565         nhk8815_onenand         \
566         omap1510inn             \
567         omap1610h2              \
568         omap1610inn             \
569         omap5912osk             \
570         omap730p2               \
571         openrd_base             \
572         rd6281a                 \
573         sbc2410x                \
574         scb9328                 \
575         sheevaplug              \
576         smdk2400                \
577         smdk2410                \
578         spear300                \
579         spear310                \
580         spear320                \
581         spear600                \
582         trab                    \
583         VCMA9                   \
584         versatile               \
585         versatileab             \
586         versatilepb             \
587         voiceblue               \
588         davinci_dvevm           \
589         davinci_schmoogie       \
590         davinci_sffsdr          \
591         davinci_sonata          \
592         davinci_dm355evm        \
593         davinci_dm355leopard    \
594         davinci_dm6467evm       \
595 "
596
597 #########################################################################
598 ## ARM10 Systems
599 #########################################################################
600 LIST_ARM10="            \
601         integratorcp    \
602         cp1026          \
603 "
604
605 #########################################################################
606 ## ARM11 Systems
607 #########################################################################
608 LIST_ARM11="                    \
609         cp1136                  \
610         omap2420h4              \
611         apollon                 \
612         imx31_litekit           \
613         imx31_phycore           \
614         imx31_phycore_eet       \
615         mx31ads                 \
616         mx31pdk                 \
617         mx31pdk_nand            \
618         qong                    \
619         smdk6400                \
620 "
621
622 #########################################################################
623 ## ARM Cortex-A8 Systems
624 #########################################################################
625 LIST_ARM_CORTEX_A8="            \
626         devkit8000              \
627         omap3_beagle            \
628         omap3_overo             \
629         omap3_evm               \
630         omap3_pandora           \
631         omap3_sdp3430           \
632         omap3_zoom1             \
633         omap3_zoom2             \
634         smdkc100                \
635 "
636
637 #########################################################################
638 ## AT91 Systems
639 #########################################################################
640
641 LIST_at91="                     \
642         afeb9260                \
643         at91cap9adk             \
644         at91rm9200dk            \
645         at91rm9200ek            \
646         at91sam9260ek           \
647         at91sam9261ek           \
648         at91sam9263ek           \
649         at91sam9g10ek           \
650         at91sam9g20ek           \
651         at91sam9m10g45ek        \
652         at91sam9rlek            \
653         cmc_pu2                 \
654         CPUAT91                 \
655         CPU9260                 \
656         CPU9G20                 \
657         csb637                  \
658         kb9202                  \
659         meesc                   \
660         mp2usb                  \
661         m501sk                  \
662         pm9261                  \
663         pm9263                  \
664         SBC35_A9G20             \
665         TNY_A9260               \
666         TNY_A9G20               \
667 "
668
669 #########################################################################
670 ## Xscale Systems
671 #########################################################################
672
673 LIST_pxa="              \
674         cerf250         \
675         cradle          \
676         csb226          \
677         delta           \
678         innokom         \
679         lubbock         \
680         pleb2           \
681         polaris         \
682         pxa255_idp      \
683         trizepsiv       \
684         wepep250        \
685         xaeniax         \
686         xm250           \
687         xsengine        \
688         zylonite        \
689 "
690
691 LIST_ixp="              \
692         actux1          \
693         actux2          \
694         actux3          \
695         actux4          \
696         ixdp425         \
697         ixdpg425        \
698         pdnb3           \
699         scpu            \
700 "
701
702 #########################################################################
703 ## ARM groups
704 #########################################################################
705
706 LIST_arm="                      \
707         ${LIST_SA}              \
708         ${LIST_ARM7}            \
709         ${LIST_ARM9}            \
710         ${LIST_ARM10}           \
711         ${LIST_ARM11}           \
712         ${LIST_ARM_CORTEX_A8}   \
713         ${LIST_at91}            \
714         ${LIST_pxa}             \
715         ${LIST_ixp}             \
716 "
717
718 #########################################################################
719 ## MIPS Systems         (default = big endian)
720 #########################################################################
721
722 LIST_mips4kc="          \
723         incaip          \
724         qemu_mips       \
725         vct_platinum    \
726         vct_platinum_small      \
727         vct_platinum_onenand    \
728         vct_platinum_onenand_small      \
729         vct_platinumavc \
730         vct_platinumavc_small   \
731         vct_platinumavc_onenand \
732         vct_platinumavc_onenand_small   \
733         vct_premium     \
734         vct_premium_small       \
735         vct_premium_onenand     \
736         vct_premium_onenand_small       \
737 "
738
739 LIST_mips5kc="          \
740         purple          \
741 "
742
743 LIST_au1xx0="           \
744         dbau1000        \
745         dbau1100        \
746         dbau1500        \
747         dbau1550        \
748         dbau1550_el     \
749         gth2            \
750 "
751
752 LIST_mips="             \
753         ${LIST_mips4kc} \
754         ${LIST_mips5kc} \
755         ${LIST_au1xx0}  \
756 "
757
758 #########################################################################
759 ## MIPS Systems         (little endian)
760 #########################################################################
761
762 LIST_mips4kc_el=""
763
764 LIST_mips5kc_el=""
765
766 LIST_au1xx0_el="        \
767         dbau1550_el     \
768         pb1000          \
769 "
770
771 LIST_mips_el="                  \
772         ${LIST_mips4kc_el}      \
773         ${LIST_mips5kc_el}      \
774         ${LIST_au1xx0_el}       \
775 "
776
777 #########################################################################
778 ## i386 Systems
779 #########################################################################
780
781 LIST_I486="             \
782         sc520_cdp       \
783         sc520_eNET      \
784         sc520_spunk     \
785         sc520_spunk_rel \
786 "
787
788 LIST_x86="              \
789         ${LIST_I486}    \
790 "
791
792 #########################################################################
793 ## NIOS Systems
794 #########################################################################
795
796 LIST_nios="                     \
797         ADNPESC1                \
798         ADNPESC1_base_32        \
799         ADNPESC1_DNPEVA2_base_32\
800         DK1C20                  \
801         DK1C20_standard_32      \
802         DK1S10                  \
803         DK1S10_standard_32      \
804         DK1S10_mtx_ldk_20       \
805 "
806
807 #########################################################################
808 ## Nios-II Systems
809 #########################################################################
810
811 LIST_nios2="            \
812         EP1C20          \
813         EP1S10          \
814         EP1S40          \
815         PCI5441         \
816         PK1C20          \
817 "
818
819 #########################################################################
820 ## MicroBlaze Systems
821 #########################################################################
822
823 LIST_microblaze="                       \
824         microblaze-generic              \
825 "
826
827 #########################################################################
828 ## ColdFire Systems
829 #########################################################################
830
831 LIST_coldfire="                 \
832         cobra5272               \
833         EB+MCF-EV123            \
834         EB+MCF-EV123_internal   \
835         idmr                    \
836         M5208EVBE               \
837         M52277EVB               \
838         M5235EVB                \
839         M5249EVB                \
840         M5253DEMO               \
841         M5253EVBE               \
842         M5271EVB                \
843         M5272C3                 \
844         M5275EVB                \
845         M5282EVB                \
846         M53017EVB               \
847         M5329AFEE               \
848         M5373EVB                \
849         M54451EVB               \
850         M54455EVB               \
851         M5475AFE                \
852         M5485AFE                \
853         TASREG                  \
854 "
855
856 #########################################################################
857 ## AVR32 Systems
858 #########################################################################
859
860 LIST_avr32="            \
861         atstk1002       \
862         atstk1003       \
863         atstk1004       \
864         atstk1006       \
865         atngw100        \
866         favr-32-ezkit   \
867         hammerhead      \
868         mimc200         \
869 "
870
871 #########################################################################
872 ## Blackfin Systems
873 #########################################################################
874
875 LIST_blackfin="         \
876         bf518f-ezbrd    \
877         bf526-ezbrd     \
878         bf527-ezkit     \
879         bf527-ezkit-v2  \
880         bf533-ezkit     \
881         bf533-stamp     \
882         bf537-minotaur  \
883         bf537-pnav      \
884         bf537-srv1      \
885         bf537-stamp     \
886         bf538f-ezkit    \
887         bf548-ezkit     \
888         bf561-acvilon   \
889         bf561-ezkit     \
890         blackstamp      \
891         cm-bf527        \
892         cm-bf533        \
893         cm-bf537e       \
894         cm-bf537u       \
895         cm-bf548        \
896         cm-bf561        \
897         ibf-dsp561      \
898         tcm-bf518       \
899         tcm-bf537       \
900 "
901
902 #########################################################################
903 ## SH Systems
904 #########################################################################
905
906 LIST_sh2="              \
907         rsk7203         \
908 "
909 LIST_sh3="              \
910         mpr2            \
911         ms7720se        \
912 "
913
914 LIST_sh4="              \
915         ms7750se        \
916         ms7722se        \
917         MigoR           \
918         r7780mp         \
919         r2dplus         \
920         sh7763rdp       \
921         sh7785lcr       \
922         ap325rxa        \
923         espt            \
924 "
925
926 LIST_sh="               \
927         ${LIST_sh2}     \
928         ${LIST_sh3}     \
929         ${LIST_sh4}     \
930 "
931
932 #########################################################################
933 ## SPARC Systems
934 #########################################################################
935
936 LIST_sparc="gr_xc3s_1500        gr_cpci_ax2000  gr_ep2s60       grsim   grsim_leon2"
937
938 #-----------------------------------------------------------------------
939
940 #----- for now, just run PPC by default -----
941 [ $# = 0 ] && set $LIST_ppc
942
943 #-----------------------------------------------------------------------
944
945 build_target() {
946         target=$1
947
948         ${MAKE} distclean >/dev/null
949         ${MAKE} ${target}_config
950
951         ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
952                                 | tee ${LOG_DIR}/$target.ERR
953
954         # Check for 'make' errors
955         if [ ${PIPESTATUS[0]} -ne 0 ] ; then
956                 RC=1
957         fi
958
959         if [ -s ${LOG_DIR}/$target.ERR ] ; then
960                 ERR_CNT=$((ERR_CNT + 1))
961                 ERR_LIST="${ERR_LIST} $target"
962         else
963                 rm ${LOG_DIR}/$target.ERR
964         fi
965
966         TOTAL_CNT=$((TOTAL_CNT + 1))
967
968         ${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
969                                 | tee -a ${LOG_DIR}/$target.MAKELOG
970 }
971
972 #-----------------------------------------------------------------------
973
974 print_stats() {
975         echo ""
976         echo "--------------------- SUMMARY ----------------------------"
977         echo "Boards compiled: ${TOTAL_CNT}"
978         if [ ${ERR_CNT} -gt 0 ] ; then
979                 echo "Boards with warnings or errors: ${ERR_CNT} (${ERR_LIST} )"
980         fi
981         echo "----------------------------------------------------------"
982
983         exit $RC
984 }
985
986 #-----------------------------------------------------------------------
987 for arg in $@
988 do
989         case "$arg" in
990         arm|SA|ARM7|ARM9|ARM10|ARM11|ARM_CORTEX_A8|at91|ixp|pxa \
991         |avr32 \
992         |blackfin \
993         |coldfire \
994         |microblaze \
995         |mips|mips_el \
996         |nios|nios2 \
997         |ppc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx|TSEC \
998         |sh|sh2|sh3|sh4 \
999         |sparc \
1000         |x86|I486 \
1001         )
1002                         for target in `eval echo '$LIST_'${arg}`
1003                         do
1004                                 build_target ${target}
1005                         done
1006                         ;;
1007         *)              build_target ${arg}
1008                         ;;
1009         esac
1010 done