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