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