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