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