a02412b80da425ea291ba4ba385a191084875e99
[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         MPC832XEMDS_ATM \
305         MPC8349EMDS     \
306         MPC8349ITX      \
307         MPC8349ITXGP    \
308         MPC8360EMDS     \
309         MPC8360EMDS_ATM \
310         sbc8349         \
311         TQM834x         \
312 "
313
314
315 #########################################################################
316 ## MPC85xx Systems (includes 8540, 8560 etc.)
317 #########################################################################
318
319 LIST_85xx="             \
320         MPC8540ADS      \
321         MPC8540EVAL     \
322         MPC8541CDS      \
323         MPC8544DS       \
324         MPC8548CDS      \
325         MPC8555CDS      \
326         MPC8560ADS      \
327         MPC8568MDS      \
328         PM854           \
329         PM856           \
330         sbc8540         \
331         sbc8560         \
332         stxgp3          \
333         stxssa          \
334         TQM8540         \
335         TQM8541         \
336         TQM8555         \
337         TQM8560         \
338 "
339
340 #########################################################################
341 ## MPC86xx Systems
342 #########################################################################
343
344 LIST_86xx="             \
345         MPC8641HPCN     \
346         sbc8641d        \
347 "
348
349 #########################################################################
350 ## 74xx/7xx Systems
351 #########################################################################
352
353 LIST_74xx="             \
354         DB64360         \
355         DB64460         \
356         EVB64260        \
357         mpc7448hpc2     \
358         P3G4            \
359         p3m7448         \
360         PCIPPC2         \
361         PCIPPC6         \
362         ZUMA            \
363 "
364
365 LIST_TSEC="             \
366         ${LIST_85xx}    \
367         ${LIST_86xx}    \
368         ${LIST_83xx}    \
369 "
370
371 LIST_7xx="              \
372         BAB7xx          \
373         CPCI750         \
374         ELPPC           \
375         p3m750          \
376         ppmc7xx         \
377 "
378
379 LIST_ppc="              \
380         ${LIST_5xx}     \
381         ${LIST_512x}    \
382         ${LIST_5xxx}    \
383         ${LIST_8xx}     \
384         ${LIST_8220}    \
385         ${LIST_824x}    \
386         ${LIST_8260}    \
387         ${LIST_83xx}    \
388         ${LIST_85xx}    \
389         ${LIST_86xx}    \
390         ${LIST_4xx}     \
391         ${LIST_74xx}    \
392         ${LIST_7xx}     \
393 "
394
395 #########################################################################
396 ## StrongARM Systems
397 #########################################################################
398
399 LIST_SA="               \
400         assabet         \
401         dnp1110         \
402         gcplus          \
403         lart            \
404         shannon         \
405 "
406
407 #########################################################################
408 ## ARM7 Systems
409 #########################################################################
410
411 LIST_ARM7="             \
412         ap7             \
413         ap720t          \
414         armadillo       \
415         B2              \
416         ep7312          \
417         evb4510         \
418         impa7           \
419         integratorap    \
420         lpc2292sodimm   \
421         modnet50        \
422         SMN42           \
423 "
424
425 #########################################################################
426 ## ARM9 Systems
427 #########################################################################
428
429 LIST_ARM9="                     \
430         at91rm9200dk            \
431         cmc_pu2                 \
432         ap920t                  \
433         ap922_XA10              \
434         ap926ejs                \
435         ap946es                 \
436         ap966                   \
437         cp920t                  \
438         cp922_XA10              \
439         cp926ejs                \
440         cp946es                 \
441         cp966                   \
442         lpd7a400                \
443         mp2usb                  \
444         mx1ads                  \
445         mx1fs2                  \
446         netstar                 \
447         omap1510inn             \
448         omap1610h2              \
449         omap1610inn             \
450         omap730p2               \
451         sbc2410x                \
452         scb9328                 \
453         smdk2400                \
454         smdk2410                \
455         trab                    \
456         VCMA9                   \
457         versatile               \
458         versatileab             \
459         versatilepb             \
460         voiceblue               \
461         davinci_dvevm           \
462         davinci_schmoogie       \
463         davinci_sonata          \
464 "
465
466 #########################################################################
467 ## ARM10 Systems
468 #########################################################################
469 LIST_ARM10="            \
470         integratorcp    \
471         cp1026          \
472 "
473
474 #########################################################################
475 ## ARM11 Systems
476 #########################################################################
477 LIST_ARM11="            \
478         cp1136          \
479         omap2420h4      \
480 "
481
482 #########################################################################
483 ## Xscale Systems
484 #########################################################################
485
486 LIST_pxa="              \
487         adsvix          \
488         cerf250         \
489         cradle          \
490         csb226          \
491         delta           \
492         innokom         \
493         lubbock         \
494         pleb2           \
495         pxa255_idp      \
496         wepep250        \
497         xaeniax         \
498         xm250           \
499         xsengine        \
500         zylonite        \
501 "
502
503 LIST_ixp="              \
504         ixdp425         \
505         ixdpg425        \
506         pdnb3           \
507         scpu            \
508 "
509
510
511 LIST_arm="              \
512         ${LIST_SA}      \
513         ${LIST_ARM7}    \
514         ${LIST_ARM9}    \
515         ${LIST_ARM10}   \
516         ${LIST_ARM11}   \
517         ${LIST_pxa}     \
518         ${LIST_ixp}     \
519 "
520
521 #########################################################################
522 ## MIPS Systems         (default = big endian)
523 #########################################################################
524
525 LIST_mips4kc="          \
526         incaip          \
527 "
528
529 LIST_mips5kc="          \
530         purple          \
531 "
532
533 LIST_au1xx0="           \
534         dbau1000        \
535         dbau1100        \
536         dbau1500        \
537         dbau1550        \
538         dbau1550_el     \
539         gth2            \
540 "
541
542 LIST_mips="             \
543         ${LIST_mips4kc} \
544         ${LIST_mips5kc} \
545         ${LIST_au1xx0}  \
546 "
547
548 #########################################################################
549 ## MIPS Systems         (little endian)
550 #########################################################################
551
552 LIST_mips4kc_el=""
553
554 LIST_mips5kc_el=""
555
556 LIST_au1xx0_el="        \
557         dbau1550_el     \
558         pb1000          \
559 "
560
561 LIST_mips_el="                  \
562         ${LIST_mips4kc_el}      \
563         ${LIST_mips5kc_el}      \
564         ${LIST_au1xx0_el}       \
565 "
566
567 #########################################################################
568 ## i386 Systems
569 #########################################################################
570
571 LIST_I486="             \
572         sc520_cdp       \
573         sc520_spunk     \
574         sc520_spunk_rel \
575 "
576
577 LIST_x86="              \
578         ${LIST_I486}    \
579 "
580
581 #########################################################################
582 ## NIOS Systems
583 #########################################################################
584
585 LIST_nios="                     \
586         ADNPESC1                \
587         ADNPESC1_base_32        \
588         ADNPESC1_DNPEVA2_base_32\
589         DK1C20                  \
590         DK1C20_standard_32      \
591         DK1S10                  \
592         DK1S10_standard_32      \
593         DK1S10_mtx_ldk_20       \
594 "
595
596 #########################################################################
597 ## Nios-II Systems
598 #########################################################################
599
600 LIST_nios2="            \
601         EP1C20          \
602         EP1S10          \
603         EP1S40          \
604         PCI5441         \
605         PK1C20          \
606 "
607
608 #########################################################################
609 ## MicroBlaze Systems
610 #########################################################################
611
612 LIST_microblaze="       \
613         suzaku          \
614         ml401           \
615         xupv2p          \
616 "
617
618 #########################################################################
619 ## ColdFire Systems
620 #########################################################################
621
622 LIST_coldfire="                 \
623         cobra5272               \
624         EB+MCF-EV123            \
625         EB+MCF-EV123_internal   \
626         idmr                    \
627         M5235EVB                \
628         M5249EVB                \
629         M5253EVB                \
630         M5271EVB                \
631         M5272C3                 \
632         M5282EVB                \
633         M5329EVB                \
634         M54455EVB               \
635         r5200                   \
636         TASREG                  \
637 "
638
639 #########################################################################
640 ## AVR32 Systems
641 #########################################################################
642
643 LIST_avr32="            \
644         atstk1002       \
645 "
646
647 #########################################################################
648 ## Blackfin Systems
649 #########################################################################
650
651 LIST_blackfin="         \
652         bf533-ezkit     \
653         bf533-stamp     \
654         bf537-stamp     \
655         bf561-ezkit     \
656 "
657
658 #-----------------------------------------------------------------------
659
660 #----- for now, just run PPC by default -----
661 [ $# = 0 ] && set $LIST_ppc
662
663 #-----------------------------------------------------------------------
664
665 build_target() {
666         target=$1
667
668         ${MAKE} distclean >/dev/null
669         ${MAKE} ${target}_config
670
671         ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
672                                 | tee ${LOG_DIR}/$target.ERR
673
674         ${CROSS_COMPILE:-ppc_8xx-}size ${BUILD_DIR}/u-boot \
675                                 | tee -a ${LOG_DIR}/$target.MAKELOG
676 }
677
678 #-----------------------------------------------------------------------
679
680
681 for arg in $@
682 do
683         case "$arg" in
684         arm|SA|ARM7|ARM9|ARM10|ARM11|ixp|pxa| \
685         avr32| \
686         blackfin| \
687         coldfire| \
688         microblaze| \
689         mips|mips_el| \
690         nios|nios2| \
691         ppc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx| \
692         x86|I486|TSEC)
693                         for target in `eval echo '$LIST_'${arg}`
694                         do
695                                 build_target ${target}
696                         done
697                         ;;
698         *)              build_target ${arg}
699                         ;;
700         esac
701 done