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