mpc85xx: Add support for SBC8548 (updated)
[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         MPC837XEMDS     \
317         sbc8349         \
318         TQM834x         \
319 "
320
321
322 #########################################################################
323 ## MPC85xx Systems (includes 8540, 8560 etc.)
324 #########################################################################
325
326 LIST_85xx="             \
327         MPC8540ADS      \
328         MPC8540EVAL     \
329         MPC8541CDS      \
330         MPC8544DS       \
331         MPC8548CDS      \
332         MPC8555CDS      \
333         MPC8560ADS      \
334         MPC8568MDS      \
335         PM854           \
336         PM856           \
337         sbc8540         \
338         sbc8548         \
339         sbc8560         \
340         stxgp3          \
341         stxssa          \
342         TQM8540         \
343         TQM8541         \
344         TQM8555         \
345         TQM8560         \
346 "
347
348 #########################################################################
349 ## MPC86xx Systems
350 #########################################################################
351
352 LIST_86xx="             \
353         MPC8610HPCD     \
354         MPC8641HPCN     \
355         sbc8641d        \
356 "
357
358 #########################################################################
359 ## 74xx/7xx Systems
360 #########################################################################
361
362 LIST_74xx="             \
363         DB64360         \
364         DB64460         \
365         EVB64260        \
366         mpc7448hpc2     \
367         P3G4            \
368         p3m7448         \
369         PCIPPC2         \
370         PCIPPC6         \
371         ZUMA            \
372 "
373
374 LIST_TSEC="             \
375         ${LIST_85xx}    \
376         ${LIST_86xx}    \
377         ${LIST_83xx}    \
378 "
379
380 LIST_7xx="              \
381         BAB7xx          \
382         CPCI750         \
383         ELPPC           \
384         p3m750          \
385         ppmc7xx         \
386 "
387
388 LIST_ppc="              \
389         ${LIST_5xx}     \
390         ${LIST_512x}    \
391         ${LIST_5xxx}    \
392         ${LIST_8xx}     \
393         ${LIST_8220}    \
394         ${LIST_824x}    \
395         ${LIST_8260}    \
396         ${LIST_83xx}    \
397         ${LIST_85xx}    \
398         ${LIST_86xx}    \
399         ${LIST_4xx}     \
400         ${LIST_74xx}    \
401         ${LIST_7xx}     \
402 "
403
404 #########################################################################
405 ## StrongARM Systems
406 #########################################################################
407
408 LIST_SA="               \
409         assabet         \
410         dnp1110         \
411         gcplus          \
412         lart            \
413         shannon         \
414 "
415
416 #########################################################################
417 ## ARM7 Systems
418 #########################################################################
419
420 LIST_ARM7="             \
421         ap7             \
422         ap720t          \
423         armadillo       \
424         B2              \
425         ep7312          \
426         evb4510         \
427         impa7           \
428         integratorap    \
429         lpc2292sodimm   \
430         modnet50        \
431         SMN42           \
432 "
433
434 #########################################################################
435 ## ARM9 Systems
436 #########################################################################
437
438 LIST_ARM9="                     \
439         at91rm9200dk            \
440         cmc_pu2                 \
441         ap920t                  \
442         ap922_XA10              \
443         ap926ejs                \
444         ap946es                 \
445         ap966                   \
446         cp920t                  \
447         cp922_XA10              \
448         cp926ejs                \
449         cp946es                 \
450         cp966                   \
451         lpd7a400                \
452         mp2usb                  \
453         mx1ads                  \
454         mx1fs2                  \
455         netstar                 \
456         omap1510inn             \
457         omap1610h2              \
458         omap1610inn             \
459         omap730p2               \
460         sbc2410x                \
461         scb9328                 \
462         smdk2400                \
463         smdk2410                \
464         trab                    \
465         VCMA9                   \
466         versatile               \
467         versatileab             \
468         versatilepb             \
469         voiceblue               \
470         davinci_dvevm           \
471         davinci_schmoogie       \
472         davinci_sonata          \
473 "
474
475 #########################################################################
476 ## ARM10 Systems
477 #########################################################################
478 LIST_ARM10="            \
479         integratorcp    \
480         cp1026          \
481 "
482
483 #########################################################################
484 ## ARM11 Systems
485 #########################################################################
486 LIST_ARM11="            \
487         cp1136          \
488         omap2420h4      \
489         apollon         \
490 "
491
492 #########################################################################
493 ## Xscale Systems
494 #########################################################################
495
496 LIST_pxa="              \
497         adsvix          \
498         cerf250         \
499         cradle          \
500         csb226          \
501         delta           \
502         innokom         \
503         lubbock         \
504         pleb2           \
505         pxa255_idp      \
506         wepep250        \
507         xaeniax         \
508         xm250           \
509         xsengine        \
510         zylonite        \
511 "
512
513 LIST_ixp="              \
514         ixdp425         \
515         ixdpg425        \
516         pdnb3           \
517         scpu            \
518 "
519
520
521 LIST_arm="              \
522         ${LIST_SA}      \
523         ${LIST_ARM7}    \
524         ${LIST_ARM9}    \
525         ${LIST_ARM10}   \
526         ${LIST_ARM11}   \
527         ${LIST_pxa}     \
528         ${LIST_ixp}     \
529 "
530
531 #########################################################################
532 ## MIPS Systems         (default = big endian)
533 #########################################################################
534
535 LIST_mips4kc="          \
536         incaip          \
537 "
538
539 LIST_mips5kc="          \
540         purple          \
541 "
542
543 LIST_au1xx0="           \
544         dbau1000        \
545         dbau1100        \
546         dbau1500        \
547         dbau1550        \
548         dbau1550_el     \
549         gth2            \
550 "
551
552 LIST_mips="             \
553         ${LIST_mips4kc} \
554         ${LIST_mips5kc} \
555         ${LIST_au1xx0}  \
556 "
557
558 #########################################################################
559 ## MIPS Systems         (little endian)
560 #########################################################################
561
562 LIST_mips4kc_el=""
563
564 LIST_mips5kc_el=""
565
566 LIST_au1xx0_el="        \
567         dbau1550_el     \
568         pb1000          \
569 "
570
571 LIST_mips_el="                  \
572         ${LIST_mips4kc_el}      \
573         ${LIST_mips5kc_el}      \
574         ${LIST_au1xx0_el}       \
575 "
576
577 #########################################################################
578 ## i386 Systems
579 #########################################################################
580
581 LIST_I486="             \
582         sc520_cdp       \
583         sc520_spunk     \
584         sc520_spunk_rel \
585 "
586
587 LIST_x86="              \
588         ${LIST_I486}    \
589 "
590
591 #########################################################################
592 ## NIOS Systems
593 #########################################################################
594
595 LIST_nios="                     \
596         ADNPESC1                \
597         ADNPESC1_base_32        \
598         ADNPESC1_DNPEVA2_base_32\
599         DK1C20                  \
600         DK1C20_standard_32      \
601         DK1S10                  \
602         DK1S10_standard_32      \
603         DK1S10_mtx_ldk_20       \
604 "
605
606 #########################################################################
607 ## Nios-II Systems
608 #########################################################################
609
610 LIST_nios2="            \
611         EP1C20          \
612         EP1S10          \
613         EP1S40          \
614         PCI5441         \
615         PK1C20          \
616 "
617
618 #########################################################################
619 ## MicroBlaze Systems
620 #########################################################################
621
622 LIST_microblaze="       \
623         suzaku          \
624         ml401           \
625         xupv2p          \
626 "
627
628 #########################################################################
629 ## ColdFire Systems
630 #########################################################################
631
632 LIST_coldfire="                 \
633         cobra5272               \
634         EB+MCF-EV123            \
635         EB+MCF-EV123_internal   \
636         idmr                    \
637         M5235EVB                \
638         M5249EVB                \
639         M5253EVB                \
640         M5271EVB                \
641         M5272C3                 \
642         M5282EVB                \
643         M5329EVB                \
644         M54455EVB               \
645         r5200                   \
646         TASREG                  \
647 "
648
649 #########################################################################
650 ## AVR32 Systems
651 #########################################################################
652
653 LIST_avr32="            \
654         atstk1002       \
655         atstk1003       \
656         atstk1004       \
657 "
658
659 #########################################################################
660 ## Blackfin Systems
661 #########################################################################
662
663 LIST_blackfin="         \
664         bf533-ezkit     \
665         bf533-stamp     \
666         bf537-stamp     \
667         bf561-ezkit     \
668 "
669
670 #########################################################################
671 ## SH Systems
672 #########################################################################
673
674 LIST_sh4="              \
675         ms7750se        \
676         ms7722se        \
677 "
678
679 LIST_sh3=""
680
681
682 LIST_sh="               \
683         ${LIST_sh3}     \
684         ${LIST_sh4}     \
685 "
686
687 #-----------------------------------------------------------------------
688
689 #----- for now, just run PPC by default -----
690 [ $# = 0 ] && set $LIST_ppc
691
692 #-----------------------------------------------------------------------
693
694 build_target() {
695         target=$1
696
697         ${MAKE} distclean >/dev/null
698         ${MAKE} ${target}_config
699
700         ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
701                                 | tee ${LOG_DIR}/$target.ERR
702
703         ${CROSS_COMPILE:-ppc_8xx-}size ${BUILD_DIR}/u-boot \
704                                 | tee -a ${LOG_DIR}/$target.MAKELOG
705 }
706
707 #-----------------------------------------------------------------------
708
709
710 for arg in $@
711 do
712         case "$arg" in
713         arm|SA|ARM7|ARM9|ARM10|ARM11|ixp|pxa| \
714         avr32| \
715         blackfin| \
716         coldfire| \
717         microblaze| \
718         mips|mips_el| \
719         nios|nios2| \
720         ppc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx| \
721         x86|I486|TSEC| \
722         sh|sh4|sh3 \
723         )
724                         for target in `eval echo '$LIST_'${arg}`
725                         do
726                                 build_target ${target}
727                         done
728                         ;;
729         *)              build_target ${arg}
730                         ;;
731         esac
732 done