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