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