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