mpc82xx: Remove SL8245 board and the now orpahned sk98lin network driver.
[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         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         utx8245         \
316 "
317
318 #########################################################################
319 ## MPC8260 Systems (includes 8250, 8255 etc.)
320 #########################################################################
321
322 LIST_8260="             \
323         atc             \
324         cogent_mpc8260  \
325         CPU86           \
326         CPU87           \
327         ep8248          \
328         ep8260          \
329         ep82xxm         \
330         gw8260          \
331         hymod           \
332         IPHASE4539      \
333         ISPAN           \
334         mgcoge          \
335         MPC8260ADS      \
336         MPC8266ADS      \
337         MPC8272ADS      \
338         PM826           \
339         PM828           \
340         ppmc8260        \
341         Rattler8248     \
342         RPXsuper        \
343         rsdproto        \
344         sacsng          \
345         sbc8260         \
346         SCM             \
347         TQM8260_AC      \
348         TQM8260_AD      \
349         TQM8260_AE      \
350         TQM8272         \
351         ZPC1900         \
352 "
353
354 #########################################################################
355 ## MPC83xx Systems (includes 8349, etc.)
356 #########################################################################
357
358 LIST_83xx="             \
359         caddy2          \
360         kmeter1         \
361         MPC8313ERDB_33  \
362         MPC8313ERDB_NAND_66     \
363         MPC8315ERDB     \
364         MPC8315ERDB_NAND        \
365         MPC8323ERDB     \
366         MPC832XEMDS     \
367         MPC832XEMDS_ATM \
368         MPC8349EMDS     \
369         MPC8349ITX      \
370         MPC8349ITXGP    \
371         MPC8360EMDS     \
372         MPC8360EMDS_ATM \
373         MPC8360ERDK_33  \
374         MPC8360ERDK_66  \
375         MPC837XEMDS     \
376         MPC837XERDB     \
377         MVBLM7          \
378         sbc8349         \
379         SIMPC8313_LP    \
380         TQM834x         \
381         vme8349         \
382 "
383
384
385 #########################################################################
386 ## MPC85xx Systems (includes 8540, 8560 etc.)
387 #########################################################################
388
389 LIST_85xx="             \
390         ATUM8548        \
391         MPC8536DS       \
392         MPC8536DS_NAND  \
393         MPC8536DS_SDCARD        \
394         MPC8536DS_SPIFLASH      \
395         MPC8540ADS      \
396         MPC8540EVAL     \
397         MPC8541CDS      \
398         MPC8544DS       \
399         MPC8548CDS      \
400         MPC8555CDS      \
401         MPC8560ADS      \
402         MPC8568MDS      \
403         MPC8569MDS      \
404         MPC8569MDS_ATM  \
405         MPC8569MDS_NAND \
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         edb9301                 \
558         edb9302                 \
559         edb9302a                \
560         edb9307                 \
561         edb9307a                \
562         edb9312                 \
563         edb9315                 \
564         edb9315a                \
565         imx27lite               \
566         lpd7a400                \
567         mv88f6281gtw_ge         \
568         mx1ads                  \
569         mx1fs2                  \
570         netstar                 \
571         nhk8815                 \
572         nhk8815_onenand         \
573         omap1510inn             \
574         omap1610h2              \
575         omap1610inn             \
576         omap5912osk             \
577         omap730p2               \
578         openrd_base             \
579         rd6281a                 \
580         sbc2410x                \
581         scb9328                 \
582         sheevaplug              \
583         smdk2400                \
584         smdk2410                \
585         spear300                \
586         spear310                \
587         spear320                \
588         spear600                \
589         suen3                   \
590         trab                    \
591         VCMA9                   \
592         versatile               \
593         versatileab             \
594         versatilepb             \
595         voiceblue               \
596         davinci_dvevm           \
597         davinci_schmoogie       \
598         davinci_sffsdr          \
599         davinci_sonata          \
600         davinci_dm355evm        \
601         davinci_dm355leopard    \
602         davinci_dm365evm        \
603         davinci_dm6467evm       \
604 "
605
606 #########################################################################
607 ## ARM10 Systems
608 #########################################################################
609 LIST_ARM10="            \
610         integratorcp    \
611         cp1026          \
612 "
613
614 #########################################################################
615 ## ARM11 Systems
616 #########################################################################
617 LIST_ARM11="                    \
618         cp1136                  \
619         omap2420h4              \
620         apollon                 \
621         imx31_litekit           \
622         imx31_phycore           \
623         imx31_phycore_eet       \
624         mx31ads                 \
625         mx31pdk                 \
626         mx31pdk_nand            \
627         qong                    \
628         smdk6400                \
629 "
630
631 #########################################################################
632 ## ARM Cortex-A8 Systems
633 #########################################################################
634 LIST_ARM_CORTEX_A8="            \
635         devkit8000              \
636         mx51evk                 \
637         omap3_beagle            \
638         omap3_overo             \
639         omap3_evm               \
640         omap3_pandora           \
641         omap3_sdp3430           \
642         omap3_zoom1             \
643         omap3_zoom2             \
644         smdkc100                \
645 "
646
647 #########################################################################
648 ## AT91 Systems
649 #########################################################################
650
651 LIST_at91="                     \
652         afeb9260                \
653         at91cap9adk             \
654         at91rm9200dk            \
655         at91rm9200ek            \
656         at91sam9260ek           \
657         at91sam9261ek           \
658         at91sam9263ek           \
659         at91sam9g10ek           \
660         at91sam9g20ek           \
661         at91sam9m10g45ek        \
662         at91sam9rlek            \
663         cmc_pu2                 \
664         CPUAT91                 \
665         CPU9260                 \
666         CPU9G20                 \
667         csb637                  \
668         eb_cpux9k2              \
669         kb9202                  \
670         meesc                   \
671         mp2usb                  \
672         m501sk                  \
673         otc570                  \
674         pm9261                  \
675         pm9263                  \
676         SBC35_A9G20             \
677         TNY_A9260               \
678         TNY_A9G20               \
679 "
680
681 #########################################################################
682 ## Xscale Systems
683 #########################################################################
684
685 LIST_pxa="              \
686         cerf250         \
687         cradle          \
688         csb226          \
689         delta           \
690         innokom         \
691         lubbock         \
692         pleb2           \
693         polaris         \
694         pxa255_idp      \
695         trizepsiv       \
696         wepep250        \
697         xaeniax         \
698         xm250           \
699         xsengine        \
700         zylonite        \
701 "
702
703 LIST_ixp="              \
704         actux1          \
705         actux2          \
706         actux3          \
707         actux4          \
708         ixdp425         \
709         ixdpg425        \
710         pdnb3           \
711         scpu            \
712 "
713
714 #########################################################################
715 ## ARM groups
716 #########################################################################
717
718 LIST_arm="                      \
719         ${LIST_SA}              \
720         ${LIST_ARM7}            \
721         ${LIST_ARM9}            \
722         ${LIST_ARM10}           \
723         ${LIST_ARM11}           \
724         ${LIST_ARM_CORTEX_A8}   \
725         ${LIST_at91}            \
726         ${LIST_pxa}             \
727         ${LIST_ixp}             \
728 "
729
730 #########################################################################
731 ## MIPS Systems         (default = big endian)
732 #########################################################################
733
734 LIST_mips4kc="          \
735         incaip          \
736         qemu_mips       \
737         vct_platinum    \
738         vct_platinum_small      \
739         vct_platinum_onenand    \
740         vct_platinum_onenand_small      \
741         vct_platinumavc \
742         vct_platinumavc_small   \
743         vct_platinumavc_onenand \
744         vct_platinumavc_onenand_small   \
745         vct_premium     \
746         vct_premium_small       \
747         vct_premium_onenand     \
748         vct_premium_onenand_small       \
749 "
750
751 LIST_mips5kc="          \
752         purple          \
753 "
754
755 LIST_au1xx0="           \
756         dbau1000        \
757         dbau1100        \
758         dbau1500        \
759         dbau1550        \
760         dbau1550_el     \
761         gth2            \
762 "
763
764 LIST_mips="             \
765         ${LIST_mips4kc} \
766         ${LIST_mips5kc} \
767         ${LIST_au1xx0}  \
768 "
769
770 #########################################################################
771 ## MIPS Systems         (little endian)
772 #########################################################################
773
774 LIST_mips4kc_el=""
775
776 LIST_mips5kc_el=""
777
778 LIST_au1xx0_el="        \
779         dbau1550_el     \
780         pb1000          \
781 "
782
783 LIST_mips_el="                  \
784         ${LIST_mips4kc_el}      \
785         ${LIST_mips5kc_el}      \
786         ${LIST_au1xx0_el}       \
787 "
788
789 #########################################################################
790 ## i386 Systems
791 #########################################################################
792
793 LIST_I486="             \
794         sc520_cdp       \
795         sc520_eNET      \
796         sc520_spunk     \
797         sc520_spunk_rel \
798 "
799
800 LIST_x86="              \
801         ${LIST_I486}    \
802 "
803
804 #########################################################################
805 ## NIOS Systems
806 #########################################################################
807
808 LIST_nios="                     \
809         ADNPESC1                \
810         ADNPESC1_base_32        \
811         ADNPESC1_DNPEVA2_base_32\
812         DK1C20                  \
813         DK1C20_standard_32      \
814         DK1S10                  \
815         DK1S10_standard_32      \
816         DK1S10_mtx_ldk_20       \
817 "
818
819 #########################################################################
820 ## Nios-II Systems
821 #########################################################################
822
823 LIST_nios2="            \
824         EP1C20          \
825         EP1S10          \
826         EP1S40          \
827         PCI5441         \
828         PK1C20          \
829 "
830
831 #########################################################################
832 ## MicroBlaze Systems
833 #########################################################################
834
835 LIST_microblaze="                       \
836         microblaze-generic              \
837 "
838
839 #########################################################################
840 ## ColdFire Systems
841 #########################################################################
842
843 LIST_coldfire="                 \
844         cobra5272               \
845         EB+MCF-EV123            \
846         EB+MCF-EV123_internal   \
847         idmr                    \
848         M5208EVBE               \
849         M52277EVB               \
850         M5235EVB                \
851         M5249EVB                \
852         M5253DEMO               \
853         M5253EVBE               \
854         M5271EVB                \
855         M5272C3                 \
856         M5275EVB                \
857         M5282EVB                \
858         M53017EVB               \
859         M5329AFEE               \
860         M5373EVB                \
861         M54451EVB               \
862         M54455EVB               \
863         M5475AFE                \
864         M5485AFE                \
865         TASREG                  \
866 "
867
868 #########################################################################
869 ## AVR32 Systems
870 #########################################################################
871
872 LIST_avr32="            \
873         atstk1002       \
874         atstk1003       \
875         atstk1004       \
876         atstk1006       \
877         atngw100        \
878         favr-32-ezkit   \
879         hammerhead      \
880         mimc200         \
881 "
882
883 #########################################################################
884 ## Blackfin Systems
885 #########################################################################
886
887 LIST_blackfin="         \
888         bf518f-ezbrd    \
889         bf526-ezbrd     \
890         bf527-ezkit     \
891         bf527-ezkit-v2  \
892         bf533-ezkit     \
893         bf533-stamp     \
894         bf537-minotaur  \
895         bf537-pnav      \
896         bf537-srv1      \
897         bf537-stamp     \
898         bf538f-ezkit    \
899         bf548-ezkit     \
900         bf561-acvilon   \
901         bf561-ezkit     \
902         blackstamp      \
903         cm-bf527        \
904         cm-bf533        \
905         cm-bf537e       \
906         cm-bf537u       \
907         cm-bf548        \
908         cm-bf561        \
909         ibf-dsp561      \
910         tcm-bf518       \
911         tcm-bf537       \
912 "
913
914 #########################################################################
915 ## SH Systems
916 #########################################################################
917
918 LIST_sh2="              \
919         rsk7203         \
920 "
921 LIST_sh3="              \
922         mpr2            \
923         ms7720se        \
924 "
925
926 LIST_sh4="              \
927         ms7750se        \
928         ms7722se        \
929         MigoR           \
930         r7780mp         \
931         r2dplus         \
932         sh7763rdp       \
933         sh7785lcr       \
934         ap325rxa        \
935         espt            \
936 "
937
938 LIST_sh="               \
939         ${LIST_sh2}     \
940         ${LIST_sh3}     \
941         ${LIST_sh4}     \
942 "
943
944 #########################################################################
945 ## SPARC Systems
946 #########################################################################
947
948 LIST_sparc="gr_xc3s_1500        gr_cpci_ax2000  gr_ep2s60       grsim   grsim_leon2"
949
950 #-----------------------------------------------------------------------
951
952 #----- for now, just run PPC by default -----
953 [ $# = 0 ] && set $LIST_ppc
954
955 #-----------------------------------------------------------------------
956
957 build_target() {
958         target=$1
959
960         ${MAKE} distclean >/dev/null
961         ${MAKE} ${target}_config
962
963         ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
964                                 | tee ${LOG_DIR}/$target.ERR
965
966         # Check for 'make' errors
967         if [ ${PIPESTATUS[0]} -ne 0 ] ; then
968                 RC=1
969         fi
970
971         if [ -s ${LOG_DIR}/$target.ERR ] ; then
972                 ERR_CNT=$((ERR_CNT + 1))
973                 ERR_LIST="${ERR_LIST} $target"
974         else
975                 rm ${LOG_DIR}/$target.ERR
976         fi
977
978         TOTAL_CNT=$((TOTAL_CNT + 1))
979
980         ${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
981                                 | tee -a ${LOG_DIR}/$target.MAKELOG
982 }
983
984 #-----------------------------------------------------------------------
985
986 print_stats() {
987         echo ""
988         echo "--------------------- SUMMARY ----------------------------"
989         echo "Boards compiled: ${TOTAL_CNT}"
990         if [ ${ERR_CNT} -gt 0 ] ; then
991                 echo "Boards with warnings or errors: ${ERR_CNT} (${ERR_LIST} )"
992         fi
993         echo "----------------------------------------------------------"
994
995         exit $RC
996 }
997
998 #-----------------------------------------------------------------------
999 for arg in $@
1000 do
1001         case "$arg" in
1002         arm|SA|ARM7|ARM9|ARM10|ARM11|ARM_CORTEX_A8|at91|ixp|pxa \
1003         |avr32 \
1004         |blackfin \
1005         |coldfire \
1006         |microblaze \
1007         |mips|mips_el \
1008         |nios|nios2 \
1009         |ppc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx|TSEC \
1010         |sh|sh2|sh3|sh4 \
1011         |sparc \
1012         |x86|I486 \
1013         )
1014                         for target in `eval echo '$LIST_'${arg}`
1015                         do
1016                                 build_target ${target}
1017                         done
1018                         ;;
1019         *)              build_target ${arg}
1020                         ;;
1021         esac
1022 done