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