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