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