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