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