Merge branch 'master' of git://www.denx.de/git/u-boot-ppc4xx
[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         at91rm9200dk            \
450         cmc_pu2                 \
451         ap920t                  \
452         ap922_XA10              \
453         ap926ejs                \
454         ap946es                 \
455         ap966                   \
456         cp920t                  \
457         cp922_XA10              \
458         cp926ejs                \
459         cp946es                 \
460         cp966                   \
461         lpd7a400                \
462         mp2usb                  \
463         mx1ads                  \
464         mx1fs2                  \
465         netstar                 \
466         omap1510inn             \
467         omap1610h2              \
468         omap1610inn             \
469         omap730p2               \
470         sbc2410x                \
471         scb9328                 \
472         smdk2400                \
473         smdk2410                \
474         trab                    \
475         VCMA9                   \
476         versatile               \
477         versatileab             \
478         versatilepb             \
479         voiceblue               \
480         davinci_dvevm           \
481         davinci_schmoogie       \
482         davinci_sonata          \
483 "
484
485 #########################################################################
486 ## ARM10 Systems
487 #########################################################################
488 LIST_ARM10="            \
489         integratorcp    \
490         cp1026          \
491 "
492
493 #########################################################################
494 ## ARM11 Systems
495 #########################################################################
496 LIST_ARM11="            \
497         cp1136          \
498         omap2420h4      \
499         apollon         \
500 "
501
502 #########################################################################
503 ## Xscale Systems
504 #########################################################################
505
506 LIST_pxa="              \
507         adsvix          \
508         cerf250         \
509         cradle          \
510         csb226          \
511         delta           \
512         innokom         \
513         lubbock         \
514         pleb2           \
515         pxa255_idp      \
516         wepep250        \
517         xaeniax         \
518         xm250           \
519         xsengine        \
520         zylonite        \
521 "
522
523 LIST_ixp="              \
524         ixdp425         \
525         ixdpg425        \
526         pdnb3           \
527         scpu            \
528 "
529
530
531 LIST_arm="              \
532         ${LIST_SA}      \
533         ${LIST_ARM7}    \
534         ${LIST_ARM9}    \
535         ${LIST_ARM10}   \
536         ${LIST_ARM11}   \
537         ${LIST_pxa}     \
538         ${LIST_ixp}     \
539 "
540
541 #########################################################################
542 ## MIPS Systems         (default = big endian)
543 #########################################################################
544
545 LIST_mips4kc="          \
546         incaip          \
547 "
548
549 LIST_mips5kc="          \
550         purple          \
551 "
552
553 LIST_au1xx0="           \
554         dbau1000        \
555         dbau1100        \
556         dbau1500        \
557         dbau1550        \
558         dbau1550_el     \
559         gth2            \
560 "
561
562 LIST_mips="             \
563         ${LIST_mips4kc} \
564         ${LIST_mips5kc} \
565         ${LIST_au1xx0}  \
566 "
567
568 #########################################################################
569 ## MIPS Systems         (little endian)
570 #########################################################################
571
572 LIST_mips4kc_el=""
573
574 LIST_mips5kc_el=""
575
576 LIST_au1xx0_el="        \
577         dbau1550_el     \
578         pb1000          \
579 "
580
581 LIST_mips_el="                  \
582         ${LIST_mips4kc_el}      \
583         ${LIST_mips5kc_el}      \
584         ${LIST_au1xx0_el}       \
585 "
586
587 #########################################################################
588 ## i386 Systems
589 #########################################################################
590
591 LIST_I486="             \
592         sc520_cdp       \
593         sc520_spunk     \
594         sc520_spunk_rel \
595 "
596
597 LIST_x86="              \
598         ${LIST_I486}    \
599 "
600
601 #########################################################################
602 ## NIOS Systems
603 #########################################################################
604
605 LIST_nios="                     \
606         ADNPESC1                \
607         ADNPESC1_base_32        \
608         ADNPESC1_DNPEVA2_base_32\
609         DK1C20                  \
610         DK1C20_standard_32      \
611         DK1S10                  \
612         DK1S10_standard_32      \
613         DK1S10_mtx_ldk_20       \
614 "
615
616 #########################################################################
617 ## Nios-II Systems
618 #########################################################################
619
620 LIST_nios2="            \
621         EP1C20          \
622         EP1S10          \
623         EP1S40          \
624         PCI5441         \
625         PK1C20          \
626 "
627
628 #########################################################################
629 ## MicroBlaze Systems
630 #########################################################################
631
632 LIST_microblaze="       \
633         suzaku          \
634         ml401           \
635         xupv2p          \
636 "
637
638 #########################################################################
639 ## ColdFire Systems
640 #########################################################################
641
642 LIST_coldfire="                 \
643         cobra5272               \
644         EB+MCF-EV123            \
645         EB+MCF-EV123_internal   \
646         idmr                    \
647         M5235EVB                \
648         M5249EVB                \
649         M5253EVB                \
650         M5271EVB                \
651         M5272C3                 \
652         M5282EVB                \
653         M5329EVB                \
654         M54455EVB               \
655         r5200                   \
656         TASREG                  \
657 "
658
659 #########################################################################
660 ## AVR32 Systems
661 #########################################################################
662
663 LIST_avr32="            \
664         atstk1002       \
665         atstk1003       \
666         atstk1004       \
667 "
668
669 #########################################################################
670 ## Blackfin Systems
671 #########################################################################
672
673 LIST_blackfin="         \
674         bf533-ezkit     \
675         bf533-stamp     \
676         bf537-stamp     \
677         bf561-ezkit     \
678 "
679
680 #########################################################################
681 ## SH Systems
682 #########################################################################
683
684 LIST_sh4="              \
685         ms7750se        \
686         ms7722se        \
687 "
688
689 LIST_sh3="              \
690         ms7720se        \
691 "
692
693 LIST_sh="               \
694         ${LIST_sh3}     \
695         ${LIST_sh4}     \
696 "
697
698 #-----------------------------------------------------------------------
699
700 #----- for now, just run PPC by default -----
701 [ $# = 0 ] && set $LIST_ppc
702
703 #-----------------------------------------------------------------------
704
705 build_target() {
706         target=$1
707
708         ${MAKE} distclean >/dev/null
709         ${MAKE} ${target}_config
710
711         ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
712                                 | tee ${LOG_DIR}/$target.ERR
713
714         ${CROSS_COMPILE:-ppc_8xx-}size ${BUILD_DIR}/u-boot \
715                                 | tee -a ${LOG_DIR}/$target.MAKELOG
716 }
717
718 #-----------------------------------------------------------------------
719
720
721 for arg in $@
722 do
723         case "$arg" in
724         arm|SA|ARM7|ARM9|ARM10|ARM11|ixp|pxa| \
725         avr32| \
726         blackfin| \
727         coldfire| \
728         microblaze| \
729         mips|mips_el| \
730         nios|nios2| \
731         ppc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx| \
732         x86|I486|TSEC| \
733         sh|sh4|sh3 \
734         )
735                         for target in `eval echo '$LIST_'${arg}`
736                         do
737                                 build_target ${target}
738                         done
739                         ;;
740         *)              build_target ${arg}
741                         ;;
742         esac
743 done