SPARC/LEON3: added support for GR-XC3S-1500 board with GRLIB template design. See...
[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         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         pmdra                   \
494 "
495
496 #########################################################################
497 ## ARM10 Systems
498 #########################################################################
499 LIST_ARM10="            \
500         integratorcp    \
501         cp1026          \
502 "
503
504 #########################################################################
505 ## ARM11 Systems
506 #########################################################################
507 LIST_ARM11="            \
508         cp1136          \
509         omap2420h4      \
510         apollon         \
511         imx31_litekit   \
512         imx31_phycore   \
513         mx31ads         \
514 "
515
516 #########################################################################
517 ## Xscale Systems
518 #########################################################################
519
520 LIST_pxa="              \
521         adsvix          \
522         cerf250         \
523         cradle          \
524         csb226          \
525         delta           \
526         innokom         \
527         lubbock         \
528         pleb2           \
529         pxa255_idp      \
530         wepep250        \
531         xaeniax         \
532         xm250           \
533         xsengine        \
534         zylonite        \
535 "
536
537 LIST_ixp="              \
538         actux1          \
539         actux2          \
540         actux3          \
541         actux4          \
542         ixdp425         \
543         ixdpg425        \
544         pdnb3           \
545         scpu            \
546 "
547
548
549 LIST_arm="              \
550         ${LIST_SA}      \
551         ${LIST_ARM7}    \
552         ${LIST_ARM9}    \
553         ${LIST_ARM10}   \
554         ${LIST_ARM11}   \
555         ${LIST_pxa}     \
556         ${LIST_ixp}     \
557 "
558
559 #########################################################################
560 ## MIPS Systems         (default = big endian)
561 #########################################################################
562
563 LIST_mips4kc="          \
564         incaip          \
565         qemu_mips       \
566 "
567
568 LIST_mips5kc="          \
569         purple          \
570 "
571
572 LIST_au1xx0="           \
573         dbau1000        \
574         dbau1100        \
575         dbau1500        \
576         dbau1550        \
577         dbau1550_el     \
578         gth2            \
579 "
580
581 LIST_mips="             \
582         ${LIST_mips4kc} \
583         ${LIST_mips5kc} \
584         ${LIST_au1xx0}  \
585 "
586
587 #########################################################################
588 ## MIPS Systems         (little endian)
589 #########################################################################
590
591 LIST_mips4kc_el=""
592
593 LIST_mips5kc_el=""
594
595 LIST_au1xx0_el="        \
596         dbau1550_el     \
597         pb1000          \
598 "
599
600 LIST_mips_el="                  \
601         ${LIST_mips4kc_el}      \
602         ${LIST_mips5kc_el}      \
603         ${LIST_au1xx0_el}       \
604 "
605
606 #########################################################################
607 ## i386 Systems
608 #########################################################################
609
610 LIST_I486="             \
611         sc520_cdp       \
612         sc520_spunk     \
613         sc520_spunk_rel \
614 "
615
616 LIST_x86="              \
617         ${LIST_I486}    \
618 "
619
620 #########################################################################
621 ## NIOS Systems
622 #########################################################################
623
624 LIST_nios="                     \
625         ADNPESC1                \
626         ADNPESC1_base_32        \
627         ADNPESC1_DNPEVA2_base_32\
628         DK1C20                  \
629         DK1C20_standard_32      \
630         DK1S10                  \
631         DK1S10_standard_32      \
632         DK1S10_mtx_ldk_20       \
633 "
634
635 #########################################################################
636 ## Nios-II Systems
637 #########################################################################
638
639 LIST_nios2="            \
640         EP1C20          \
641         EP1S10          \
642         EP1S40          \
643         PCI5441         \
644         PK1C20          \
645 "
646
647 #########################################################################
648 ## MicroBlaze Systems
649 #########################################################################
650
651 LIST_microblaze="       \
652         suzaku          \
653         ml401           \
654         xupv2p          \
655 "
656
657 #########################################################################
658 ## ColdFire Systems
659 #########################################################################
660
661 LIST_coldfire="                 \
662         cobra5272               \
663         EB+MCF-EV123            \
664         EB+MCF-EV123_internal   \
665         idmr                    \
666         M52277EVB               \
667         M5235EVB                \
668         M5249EVB                \
669         M5253EVB                \
670         M5271EVB                \
671         M5272C3                 \
672         M5275EVB                \
673         M5282EVB                \
674         M5329AFEE               \
675         M5373EVB                \
676         M54455EVB               \
677         M5475AFE                \
678         M5485AFE                \
679         TASREG                  \
680 "
681
682 #########################################################################
683 ## AVR32 Systems
684 #########################################################################
685
686 LIST_avr32="            \
687         atstk1002       \
688         atstk1003       \
689         atstk1004       \
690         atngw100        \
691 "
692
693 #########################################################################
694 ## Blackfin Systems
695 #########################################################################
696
697 LIST_blackfin="         \
698         bf533-ezkit     \
699         bf533-stamp     \
700         bf537-stamp     \
701         bf561-ezkit     \
702 "
703
704 #########################################################################
705 ## SH Systems
706 #########################################################################
707
708 LIST_sh4="              \
709         ms7750se        \
710         ms7722se        \
711         Migo-R          \
712         r7780mp         \
713         r2dplus         \
714 "
715
716 LIST_sh3="              \
717         mpr2            \
718         ms7720se        \
719 "
720
721 LIST_sh="               \
722         ${LIST_sh3}     \
723         ${LIST_sh4}     \
724 "
725
726 #########################################################################
727 ## SPARC Systems
728 #########################################################################
729
730 LIST_sparc="gr_xc3s_1500"
731
732 #-----------------------------------------------------------------------
733
734 #----- for now, just run PPC by default -----
735 [ $# = 0 ] && set $LIST_ppc
736
737 #-----------------------------------------------------------------------
738
739 build_target() {
740         target=$1
741
742         ${MAKE} distclean >/dev/null
743         ${MAKE} ${target}_config
744
745         ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
746                                 | tee ${LOG_DIR}/$target.ERR
747
748         ${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
749                                 | tee -a ${LOG_DIR}/$target.MAKELOG
750 }
751
752 #-----------------------------------------------------------------------
753
754
755 for arg in $@
756 do
757         case "$arg" in
758         arm|SA|ARM7|ARM9|ARM10|ARM11|ixp|pxa| \
759         avr32| \
760         sparc| \
761         blackfin| \
762         coldfire| \
763         microblaze| \
764         mips|mips_el| \
765         nios|nios2| \
766         ppc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx| \
767         x86|I486|TSEC| \
768         sh|sh4|sh3 \
769         )
770                         for target in `eval echo '$LIST_'${arg}`
771                         do
772                                 build_target ${target}
773                         done
774                         ;;
775         *)              build_target ${arg}
776                         ;;
777         esac
778 done