Nand boot: Add nand boot support for MPC8569mds board
[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         MPC8569MDS_ATM  \
407         MPC8569MDS_NAND \
408         MPC8572DS       \
409         MPC8572DS_36BIT \
410         P2020DS         \
411         P2020DS_36BIT   \
412         P1011RDB        \
413         P1011RDB_NAND   \
414         P1011RDB_SDCARD \
415         P1011RDB_SPIFLASH       \
416         P1020RDB        \
417         P1020RDB_NAND   \
418         P1020RDB_SDCARD \
419         P1020RDB_SPIFLASH       \
420         P2010RDB        \
421         P2010RDB_NAND   \
422         P2010RDB_SDCARD \
423         P2010RDB_SPIFLASH       \
424         P2020RDB        \
425         P2020RDB_NAND   \
426         P2020RDB_SDCARD \
427         P2020RDB_SPIFLASH       \
428         PM854           \
429         PM856           \
430         sbc8540         \
431         sbc8548         \
432         sbc8548_PCI_33  \
433         sbc8548_PCI_66  \
434         sbc8548_PCI_33_PCIE \
435         sbc8548_PCI_66_PCIE \
436         sbc8560         \
437         socrates        \
438         stxgp3          \
439         stxssa          \
440         TQM8540         \
441         TQM8541         \
442         TQM8548         \
443         TQM8548_AG      \
444         TQM8548_BE      \
445         TQM8555         \
446         TQM8560         \
447         XPEDITE5200     \
448         XPEDITE5370     \
449 "
450
451 #########################################################################
452 ## MPC86xx Systems
453 #########################################################################
454
455 LIST_86xx="             \
456         MPC8610HPCD     \
457         MPC8641HPCN     \
458         sbc8641d        \
459         XPEDITE5170     \
460 "
461
462 #########################################################################
463 ## 74xx/7xx Systems
464 #########################################################################
465
466 LIST_74xx="             \
467         DB64360         \
468         DB64460         \
469         EVB64260        \
470         mpc7448hpc2     \
471         P3G4            \
472         p3m7448         \
473         PCIPPC2         \
474         PCIPPC6         \
475         ZUMA            \
476 "
477
478 LIST_7xx="              \
479         BAB7xx          \
480         CPCI750         \
481         ELPPC           \
482         p3m750          \
483         ppmc7xx         \
484 "
485
486 #########################################################################
487 ## PowerPC groups
488 #########################################################################
489
490 LIST_TSEC="             \
491         ${LIST_83xx}    \
492         ${LIST_85xx}    \
493         ${LIST_86xx}    \
494 "
495
496 LIST_ppc="              \
497         ${LIST_5xx}     \
498         ${LIST_512x}    \
499         ${LIST_5xxx}    \
500         ${LIST_8xx}     \
501         ${LIST_8220}    \
502         ${LIST_824x}    \
503         ${LIST_8260}    \
504         ${LIST_83xx}    \
505         ${LIST_85xx}    \
506         ${LIST_86xx}    \
507         ${LIST_4xx}     \
508         ${LIST_74xx}    \
509         ${LIST_7xx}     \
510 "
511
512 #########################################################################
513 ## StrongARM Systems
514 #########################################################################
515
516 LIST_SA="               \
517         assabet         \
518         dnp1110         \
519         gcplus          \
520         lart            \
521         shannon         \
522 "
523
524 #########################################################################
525 ## ARM7 Systems
526 #########################################################################
527
528 LIST_ARM7="             \
529         ap7             \
530         ap720t          \
531         armadillo       \
532         B2              \
533         ep7312          \
534         evb4510         \
535         impa7           \
536         integratorap    \
537         lpc2292sodimm   \
538         modnet50        \
539         SMN42           \
540 "
541
542 #########################################################################
543 ## ARM9 Systems
544 #########################################################################
545
546 LIST_ARM9="                     \
547         a320evb                 \
548         ap920t                  \
549         ap922_XA10              \
550         ap926ejs                \
551         ap946es                 \
552         ap966                   \
553         cp920t                  \
554         cp922_XA10              \
555         cp926ejs                \
556         cp946es                 \
557         cp966                   \
558         da830evm                \
559         imx27lite               \
560         lpd7a400                \
561         mv88f6281gtw_ge         \
562         mx1ads                  \
563         mx1fs2                  \
564         netstar                 \
565         nhk8815                 \
566         nhk8815_onenand         \
567         omap1510inn             \
568         omap1610h2              \
569         omap1610inn             \
570         omap5912osk             \
571         omap730p2               \
572         openrd_base             \
573         rd6281a                 \
574         sbc2410x                \
575         scb9328                 \
576         sheevaplug              \
577         smdk2400                \
578         smdk2410                \
579         spear300                \
580         spear310                \
581         spear320                \
582         spear600                \
583         trab                    \
584         VCMA9                   \
585         versatile               \
586         versatileab             \
587         versatilepb             \
588         voiceblue               \
589         davinci_dvevm           \
590         davinci_schmoogie       \
591         davinci_sffsdr          \
592         davinci_sonata          \
593         davinci_dm355evm        \
594         davinci_dm355leopard    \
595         davinci_dm6467evm       \
596 "
597
598 #########################################################################
599 ## ARM10 Systems
600 #########################################################################
601 LIST_ARM10="            \
602         integratorcp    \
603         cp1026          \
604 "
605
606 #########################################################################
607 ## ARM11 Systems
608 #########################################################################
609 LIST_ARM11="                    \
610         cp1136                  \
611         omap2420h4              \
612         apollon                 \
613         imx31_litekit           \
614         imx31_phycore           \
615         imx31_phycore_eet       \
616         mx31ads                 \
617         mx31pdk                 \
618         mx31pdk_nand            \
619         qong                    \
620         smdk6400                \
621 "
622
623 #########################################################################
624 ## ARM Cortex-A8 Systems
625 #########################################################################
626 LIST_ARM_CORTEX_A8="            \
627         devkit8000              \
628         omap3_beagle            \
629         omap3_overo             \
630         omap3_evm               \
631         omap3_pandora           \
632         omap3_sdp3430           \
633         omap3_zoom1             \
634         omap3_zoom2             \
635         smdkc100                \
636 "
637
638 #########################################################################
639 ## AT91 Systems
640 #########################################################################
641
642 LIST_at91="                     \
643         afeb9260                \
644         at91cap9adk             \
645         at91rm9200dk            \
646         at91rm9200ek            \
647         at91sam9260ek           \
648         at91sam9261ek           \
649         at91sam9263ek           \
650         at91sam9g10ek           \
651         at91sam9g20ek           \
652         at91sam9m10g45ek        \
653         at91sam9rlek            \
654         cmc_pu2                 \
655         CPUAT91                 \
656         CPU9260                 \
657         CPU9G20                 \
658         csb637                  \
659         kb9202                  \
660         meesc                   \
661         mp2usb                  \
662         m501sk                  \
663         pm9261                  \
664         pm9263                  \
665         SBC35_A9G20             \
666         TNY_A9260               \
667         TNY_A9G20               \
668 "
669
670 #########################################################################
671 ## Xscale Systems
672 #########################################################################
673
674 LIST_pxa="              \
675         cerf250         \
676         cradle          \
677         csb226          \
678         delta           \
679         innokom         \
680         lubbock         \
681         pleb2           \
682         polaris         \
683         pxa255_idp      \
684         trizepsiv       \
685         wepep250        \
686         xaeniax         \
687         xm250           \
688         xsengine        \
689         zylonite        \
690 "
691
692 LIST_ixp="              \
693         actux1          \
694         actux2          \
695         actux3          \
696         actux4          \
697         ixdp425         \
698         ixdpg425        \
699         pdnb3           \
700         scpu            \
701 "
702
703 #########################################################################
704 ## ARM groups
705 #########################################################################
706
707 LIST_arm="                      \
708         ${LIST_SA}              \
709         ${LIST_ARM7}            \
710         ${LIST_ARM9}            \
711         ${LIST_ARM10}           \
712         ${LIST_ARM11}           \
713         ${LIST_ARM_CORTEX_A8}   \
714         ${LIST_at91}            \
715         ${LIST_pxa}             \
716         ${LIST_ixp}             \
717 "
718
719 #########################################################################
720 ## MIPS Systems         (default = big endian)
721 #########################################################################
722
723 LIST_mips4kc="          \
724         incaip          \
725         qemu_mips       \
726         vct_platinum    \
727         vct_platinum_small      \
728         vct_platinum_onenand    \
729         vct_platinum_onenand_small      \
730         vct_platinumavc \
731         vct_platinumavc_small   \
732         vct_platinumavc_onenand \
733         vct_platinumavc_onenand_small   \
734         vct_premium     \
735         vct_premium_small       \
736         vct_premium_onenand     \
737         vct_premium_onenand_small       \
738 "
739
740 LIST_mips5kc="          \
741         purple          \
742 "
743
744 LIST_au1xx0="           \
745         dbau1000        \
746         dbau1100        \
747         dbau1500        \
748         dbau1550        \
749         dbau1550_el     \
750         gth2            \
751 "
752
753 LIST_mips="             \
754         ${LIST_mips4kc} \
755         ${LIST_mips5kc} \
756         ${LIST_au1xx0}  \
757 "
758
759 #########################################################################
760 ## MIPS Systems         (little endian)
761 #########################################################################
762
763 LIST_mips4kc_el=""
764
765 LIST_mips5kc_el=""
766
767 LIST_au1xx0_el="        \
768         dbau1550_el     \
769         pb1000          \
770 "
771
772 LIST_mips_el="                  \
773         ${LIST_mips4kc_el}      \
774         ${LIST_mips5kc_el}      \
775         ${LIST_au1xx0_el}       \
776 "
777
778 #########################################################################
779 ## i386 Systems
780 #########################################################################
781
782 LIST_I486="             \
783         sc520_cdp       \
784         sc520_eNET      \
785         sc520_spunk     \
786         sc520_spunk_rel \
787 "
788
789 LIST_x86="              \
790         ${LIST_I486}    \
791 "
792
793 #########################################################################
794 ## NIOS Systems
795 #########################################################################
796
797 LIST_nios="                     \
798         ADNPESC1                \
799         ADNPESC1_base_32        \
800         ADNPESC1_DNPEVA2_base_32\
801         DK1C20                  \
802         DK1C20_standard_32      \
803         DK1S10                  \
804         DK1S10_standard_32      \
805         DK1S10_mtx_ldk_20       \
806 "
807
808 #########################################################################
809 ## Nios-II Systems
810 #########################################################################
811
812 LIST_nios2="            \
813         EP1C20          \
814         EP1S10          \
815         EP1S40          \
816         PCI5441         \
817         PK1C20          \
818 "
819
820 #########################################################################
821 ## MicroBlaze Systems
822 #########################################################################
823
824 LIST_microblaze="                       \
825         microblaze-generic              \
826 "
827
828 #########################################################################
829 ## ColdFire Systems
830 #########################################################################
831
832 LIST_coldfire="                 \
833         cobra5272               \
834         EB+MCF-EV123            \
835         EB+MCF-EV123_internal   \
836         idmr                    \
837         M5208EVBE               \
838         M52277EVB               \
839         M5235EVB                \
840         M5249EVB                \
841         M5253DEMO               \
842         M5253EVBE               \
843         M5271EVB                \
844         M5272C3                 \
845         M5275EVB                \
846         M5282EVB                \
847         M53017EVB               \
848         M5329AFEE               \
849         M5373EVB                \
850         M54451EVB               \
851         M54455EVB               \
852         M5475AFE                \
853         M5485AFE                \
854         TASREG                  \
855 "
856
857 #########################################################################
858 ## AVR32 Systems
859 #########################################################################
860
861 LIST_avr32="            \
862         atstk1002       \
863         atstk1003       \
864         atstk1004       \
865         atstk1006       \
866         atngw100        \
867         favr-32-ezkit   \
868         hammerhead      \
869         mimc200         \
870 "
871
872 #########################################################################
873 ## Blackfin Systems
874 #########################################################################
875
876 LIST_blackfin="         \
877         bf518f-ezbrd    \
878         bf526-ezbrd     \
879         bf527-ezkit     \
880         bf527-ezkit-v2  \
881         bf533-ezkit     \
882         bf533-stamp     \
883         bf537-minotaur  \
884         bf537-pnav      \
885         bf537-srv1      \
886         bf537-stamp     \
887         bf538f-ezkit    \
888         bf548-ezkit     \
889         bf561-acvilon   \
890         bf561-ezkit     \
891         blackstamp      \
892         cm-bf527        \
893         cm-bf533        \
894         cm-bf537e       \
895         cm-bf537u       \
896         cm-bf548        \
897         cm-bf561        \
898         ibf-dsp561      \
899         tcm-bf518       \
900         tcm-bf537       \
901 "
902
903 #########################################################################
904 ## SH Systems
905 #########################################################################
906
907 LIST_sh2="              \
908         rsk7203         \
909 "
910 LIST_sh3="              \
911         mpr2            \
912         ms7720se        \
913 "
914
915 LIST_sh4="              \
916         ms7750se        \
917         ms7722se        \
918         MigoR           \
919         r7780mp         \
920         r2dplus         \
921         sh7763rdp       \
922         sh7785lcr       \
923         ap325rxa        \
924         espt            \
925 "
926
927 LIST_sh="               \
928         ${LIST_sh2}     \
929         ${LIST_sh3}     \
930         ${LIST_sh4}     \
931 "
932
933 #########################################################################
934 ## SPARC Systems
935 #########################################################################
936
937 LIST_sparc="gr_xc3s_1500        gr_cpci_ax2000  gr_ep2s60       grsim   grsim_leon2"
938
939 #-----------------------------------------------------------------------
940
941 #----- for now, just run PPC by default -----
942 [ $# = 0 ] && set $LIST_ppc
943
944 #-----------------------------------------------------------------------
945
946 build_target() {
947         target=$1
948
949         ${MAKE} distclean >/dev/null
950         ${MAKE} ${target}_config
951
952         ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
953                                 | tee ${LOG_DIR}/$target.ERR
954
955         # Check for 'make' errors
956         if [ ${PIPESTATUS[0]} -ne 0 ] ; then
957                 RC=1
958         fi
959
960         if [ -s ${LOG_DIR}/$target.ERR ] ; then
961                 ERR_CNT=$((ERR_CNT + 1))
962                 ERR_LIST="${ERR_LIST} $target"
963         else
964                 rm ${LOG_DIR}/$target.ERR
965         fi
966
967         TOTAL_CNT=$((TOTAL_CNT + 1))
968
969         ${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
970                                 | tee -a ${LOG_DIR}/$target.MAKELOG
971 }
972
973 #-----------------------------------------------------------------------
974
975 print_stats() {
976         echo ""
977         echo "--------------------- SUMMARY ----------------------------"
978         echo "Boards compiled: ${TOTAL_CNT}"
979         if [ ${ERR_CNT} -gt 0 ] ; then
980                 echo "Boards with warnings or errors: ${ERR_CNT} (${ERR_LIST} )"
981         fi
982         echo "----------------------------------------------------------"
983
984         exit $RC
985 }
986
987 #-----------------------------------------------------------------------
988 for arg in $@
989 do
990         case "$arg" in
991         arm|SA|ARM7|ARM9|ARM10|ARM11|ARM_CORTEX_A8|at91|ixp|pxa \
992         |avr32 \
993         |blackfin \
994         |coldfire \
995         |microblaze \
996         |mips|mips_el \
997         |nios|nios2 \
998         |ppc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx|TSEC \
999         |sh|sh2|sh3|sh4 \
1000         |sparc \
1001         |x86|I486 \
1002         )
1003                         for target in `eval echo '$LIST_'${arg}`
1004                         do
1005                                 build_target ${target}
1006                         done
1007                         ;;
1008         *)              build_target ${arg}
1009                         ;;
1010         esac
1011 done