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