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