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