]> git.sur5r.net Git - u-boot/blob - MAKEALL
Phytec Phycore-i.MX31 support
[u-boot] / 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         haleakala       \
189         haleakala_nand  \
190         hcu4            \
191         hcu5            \
192         HH405           \
193         HUB405          \
194         JSE             \
195         KAREF           \
196         katmai          \
197         kilauea         \
198         kilauea_nand    \
199         korat           \
200         luan            \
201         lwmon5          \
202         makalu          \
203         mcu25           \
204         METROBOX        \
205         MIP405          \
206         MIP405T         \
207         ML2             \
208         ml300           \
209         ocotea          \
210         OCRTC           \
211         ORSG            \
212         p3p440          \
213         PCI405          \
214         pcs440ep        \
215         PIP405          \
216         PLU405          \
217         PMC405          \
218         PMC440          \
219         PPChameleonEVB  \
220         rainier         \
221         sbc405          \
222         sc3             \
223         sequoia         \
224         sequoia_nand    \
225         taihu           \
226         taishan         \
227         VOH405          \
228         VOM405          \
229         W7OLMC          \
230         W7OLMG          \
231         walnut          \
232         WUH405          \
233         XPEDITE1K       \
234         yellowstone     \
235         yosemite        \
236         yucca           \
237         zeus            \
238 "
239
240 #########################################################################
241 ## MPC8220 Systems
242 #########################################################################
243
244 LIST_8220="             \
245         Alaska8220      \
246         Yukon8220       \
247 "
248
249 #########################################################################
250 ## MPC824x Systems
251 #########################################################################
252
253 LIST_824x="             \
254         A3000           \
255         barco           \
256         BMW             \
257         CPC45           \
258         CU824           \
259         debris          \
260         eXalion         \
261         HIDDEN_DRAGON   \
262         MOUSSE          \
263         MUSENKI         \
264         MVBLUE          \
265         OXC             \
266         PN62            \
267         Sandpoint8240   \
268         Sandpoint8245   \
269         sbc8240         \
270         SL8245          \
271         utx8245         \
272 "
273
274 #########################################################################
275 ## MPC8260 Systems (includes 8250, 8255 etc.)
276 #########################################################################
277
278 LIST_8260="             \
279         atc             \
280         cogent_mpc8260  \
281         CPU86           \
282         CPU87           \
283         ep8248          \
284         ep8260          \
285         ep82xxm         \
286         gw8260          \
287         hymod           \
288         IPHASE4539      \
289         ISPAN           \
290         mgcoge          \
291         MPC8260ADS      \
292         MPC8266ADS      \
293         MPC8272ADS      \
294         PM826           \
295         PM828           \
296         ppmc8260        \
297         Rattler8248     \
298         RPXsuper        \
299         rsdproto        \
300         sacsng          \
301         sbc8260         \
302         SCM             \
303         TQM8260_AC      \
304         TQM8260_AD      \
305         TQM8260_AE      \
306         ZPC1900         \
307 "
308
309 #########################################################################
310 ## MPC83xx Systems (includes 8349, etc.)
311 #########################################################################
312
313 LIST_83xx="             \
314         MPC8313ERDB_33  \
315         MPC8313ERDB_66  \
316         MPC8315ERDB     \
317         MPC8323ERDB     \
318         MPC832XEMDS     \
319         MPC832XEMDS_ATM \
320         MPC8349EMDS     \
321         MPC8349ITX      \
322         MPC8349ITXGP    \
323         MPC8360EMDS     \
324         MPC8360EMDS_ATM \
325         MPC8360ERDK_33  \
326         MPC8360ERDK_66  \
327         MPC837XEMDS     \
328         MPC837XERDB     \
329         sbc8349         \
330         TQM834x         \
331 "
332
333
334 #########################################################################
335 ## MPC85xx Systems (includes 8540, 8560 etc.)
336 #########################################################################
337
338 LIST_85xx="             \
339         ATUM8548        \
340         MPC8540ADS      \
341         MPC8540EVAL     \
342         MPC8541CDS      \
343         MPC8544DS       \
344         MPC8548CDS      \
345         MPC8555CDS      \
346         MPC8560ADS      \
347         MPC8568MDS      \
348         PM854           \
349         PM856           \
350         sbc8540         \
351         sbc8548         \
352         sbc8560         \
353         stxgp3          \
354         stxssa          \
355         TQM8540         \
356         TQM8541         \
357         TQM8555         \
358         TQM8560         \
359 "
360
361 #########################################################################
362 ## MPC86xx Systems
363 #########################################################################
364
365 LIST_86xx="             \
366         MPC8610HPCD     \
367         MPC8641HPCN     \
368         sbc8641d        \
369 "
370
371 #########################################################################
372 ## 74xx/7xx Systems
373 #########################################################################
374
375 LIST_74xx="             \
376         DB64360         \
377         DB64460         \
378         EVB64260        \
379         mpc7448hpc2     \
380         P3G4            \
381         p3m7448         \
382         PCIPPC2         \
383         PCIPPC6         \
384         ZUMA            \
385 "
386
387 LIST_TSEC="             \
388         ${LIST_85xx}    \
389         ${LIST_86xx}    \
390         ${LIST_83xx}    \
391 "
392
393 LIST_7xx="              \
394         BAB7xx          \
395         CPCI750         \
396         ELPPC           \
397         p3m750          \
398         ppmc7xx         \
399 "
400
401 LIST_ppc="              \
402         ${LIST_5xx}     \
403         ${LIST_512x}    \
404         ${LIST_5xxx}    \
405         ${LIST_8xx}     \
406         ${LIST_8220}    \
407         ${LIST_824x}    \
408         ${LIST_8260}    \
409         ${LIST_83xx}    \
410         ${LIST_85xx}    \
411         ${LIST_86xx}    \
412         ${LIST_4xx}     \
413         ${LIST_74xx}    \
414         ${LIST_7xx}     \
415 "
416
417 #########################################################################
418 ## StrongARM Systems
419 #########################################################################
420
421 LIST_SA="               \
422         assabet         \
423         dnp1110         \
424         gcplus          \
425         lart            \
426         shannon         \
427 "
428
429 #########################################################################
430 ## ARM7 Systems
431 #########################################################################
432
433 LIST_ARM7="             \
434         ap7             \
435         ap720t          \
436         armadillo       \
437         B2              \
438         ep7312          \
439         evb4510         \
440         impa7           \
441         integratorap    \
442         lpc2292sodimm   \
443         modnet50        \
444         SMN42           \
445 "
446
447 #########################################################################
448 ## ARM9 Systems
449 #########################################################################
450
451 LIST_ARM9="                     \
452         at91cap9adk             \
453         at91rm9200dk            \
454         cmc_pu2                 \
455         ap920t                  \
456         ap922_XA10              \
457         ap926ejs                \
458         ap946es                 \
459         ap966                   \
460         cp920t                  \
461         cp922_XA10              \
462         cp926ejs                \
463         cp946es                 \
464         cp966                   \
465         lpd7a400                \
466         m501sk                  \
467         mp2usb                  \
468         mx1ads                  \
469         mx1fs2                  \
470         netstar                 \
471         omap1510inn             \
472         omap1610h2              \
473         omap1610inn             \
474         omap730p2               \
475         sbc2410x                \
476         scb9328                 \
477         smdk2400                \
478         smdk2410                \
479         trab                    \
480         VCMA9                   \
481         versatile               \
482         versatileab             \
483         versatilepb             \
484         voiceblue               \
485         davinci_dvevm           \
486         davinci_schmoogie       \
487         davinci_sonata          \
488 "
489
490 #########################################################################
491 ## ARM10 Systems
492 #########################################################################
493 LIST_ARM10="            \
494         integratorcp    \
495         cp1026          \
496 "
497
498 #########################################################################
499 ## ARM11 Systems
500 #########################################################################
501 LIST_ARM11="            \
502         cp1136          \
503         omap2420h4      \
504         apollon         \
505         imx31_litekit   \
506         imx31_phycore   \
507 "
508
509 #########################################################################
510 ## Xscale Systems
511 #########################################################################
512
513 LIST_pxa="              \
514         adsvix          \
515         cerf250         \
516         cradle          \
517         csb226          \
518         delta           \
519         innokom         \
520         lubbock         \
521         pleb2           \
522         pxa255_idp      \
523         wepep250        \
524         xaeniax         \
525         xm250           \
526         xsengine        \
527         zylonite        \
528 "
529
530 LIST_ixp="              \
531         actux1          \
532         actux2          \
533         actux3          \
534         actux4          \
535         ixdp425         \
536         ixdpg425        \
537         pdnb3           \
538         scpu            \
539 "
540
541
542 LIST_arm="              \
543         ${LIST_SA}      \
544         ${LIST_ARM7}    \
545         ${LIST_ARM9}    \
546         ${LIST_ARM10}   \
547         ${LIST_ARM11}   \
548         ${LIST_pxa}     \
549         ${LIST_ixp}     \
550 "
551
552 #########################################################################
553 ## MIPS Systems         (default = big endian)
554 #########################################################################
555
556 LIST_mips4kc="          \
557         incaip          \
558         qemu_mips       \
559 "
560
561 LIST_mips5kc="          \
562         purple          \
563 "
564
565 LIST_au1xx0="           \
566         dbau1000        \
567         dbau1100        \
568         dbau1500        \
569         dbau1550        \
570         dbau1550_el     \
571         gth2            \
572 "
573
574 LIST_mips="             \
575         ${LIST_mips4kc} \
576         ${LIST_mips5kc} \
577         ${LIST_au1xx0}  \
578 "
579
580 #########################################################################
581 ## MIPS Systems         (little endian)
582 #########################################################################
583
584 LIST_mips4kc_el=""
585
586 LIST_mips5kc_el=""
587
588 LIST_au1xx0_el="        \
589         dbau1550_el     \
590         pb1000          \
591 "
592
593 LIST_mips_el="                  \
594         ${LIST_mips4kc_el}      \
595         ${LIST_mips5kc_el}      \
596         ${LIST_au1xx0_el}       \
597 "
598
599 #########################################################################
600 ## i386 Systems
601 #########################################################################
602
603 LIST_I486="             \
604         sc520_cdp       \
605         sc520_spunk     \
606         sc520_spunk_rel \
607 "
608
609 LIST_x86="              \
610         ${LIST_I486}    \
611 "
612
613 #########################################################################
614 ## NIOS Systems
615 #########################################################################
616
617 LIST_nios="                     \
618         ADNPESC1                \
619         ADNPESC1_base_32        \
620         ADNPESC1_DNPEVA2_base_32\
621         DK1C20                  \
622         DK1C20_standard_32      \
623         DK1S10                  \
624         DK1S10_standard_32      \
625         DK1S10_mtx_ldk_20       \
626 "
627
628 #########################################################################
629 ## Nios-II Systems
630 #########################################################################
631
632 LIST_nios2="            \
633         EP1C20          \
634         EP1S10          \
635         EP1S40          \
636         PCI5441         \
637         PK1C20          \
638 "
639
640 #########################################################################
641 ## MicroBlaze Systems
642 #########################################################################
643
644 LIST_microblaze="       \
645         suzaku          \
646         ml401           \
647         xupv2p          \
648 "
649
650 #########################################################################
651 ## ColdFire Systems
652 #########################################################################
653
654 LIST_coldfire="                 \
655         cobra5272               \
656         EB+MCF-EV123            \
657         EB+MCF-EV123_internal   \
658         idmr                    \
659         M52277EVB               \
660         M5235EVB                \
661         M5249EVB                \
662         M5253EVB                \
663         M5271EVB                \
664         M5272C3                 \
665         M5282EVB                \
666         M5329AFEE               \
667         M5373EVB                \
668         M54455EVB               \
669         M5475AFE                \
670         M5485AFE                \
671         r5200                   \
672         TASREG                  \
673 "
674
675 #########################################################################
676 ## AVR32 Systems
677 #########################################################################
678
679 LIST_avr32="            \
680         atstk1002       \
681         atstk1003       \
682         atstk1004       \
683         atngw100        \
684 "
685
686 #########################################################################
687 ## Blackfin Systems
688 #########################################################################
689
690 LIST_blackfin="         \
691         bf533-ezkit     \
692         bf533-stamp     \
693         bf537-stamp     \
694         bf561-ezkit     \
695 "
696
697 #########################################################################
698 ## SH Systems
699 #########################################################################
700
701 LIST_sh4="              \
702         ms7750se        \
703         ms7722se        \
704 "
705
706 LIST_sh3="              \
707         ms7720se        \
708 "
709
710 LIST_sh="               \
711         ${LIST_sh3}     \
712         ${LIST_sh4}     \
713 "
714
715 #-----------------------------------------------------------------------
716
717 #----- for now, just run PPC by default -----
718 [ $# = 0 ] && set $LIST_ppc
719
720 #-----------------------------------------------------------------------
721
722 build_target() {
723         target=$1
724
725         ${MAKE} distclean >/dev/null
726         ${MAKE} ${target}_config
727
728         ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
729                                 | tee ${LOG_DIR}/$target.ERR
730
731         ${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
732                                 | tee -a ${LOG_DIR}/$target.MAKELOG
733 }
734
735 #-----------------------------------------------------------------------
736
737
738 for arg in $@
739 do
740         case "$arg" in
741         arm|SA|ARM7|ARM9|ARM10|ARM11|ixp|pxa| \
742         avr32| \
743         blackfin| \
744         coldfire| \
745         microblaze| \
746         mips|mips_el| \
747         nios|nios2| \
748         ppc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx| \
749         x86|I486|TSEC| \
750         sh|sh4|sh3 \
751         )
752                         for target in `eval echo '$LIST_'${arg}`
753                         do
754                                 build_target ${target}
755                         done
756                         ;;
757         *)              build_target ${arg}
758                         ;;
759         esac
760 done