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