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