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