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