83xx: nand support for MPC837XRDB boards
[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         munices         \
50         o2dnt           \
51         pf5200          \
52         PM520           \
53         TB5200          \
54         Total5100       \
55         Total5200       \
56         Total5200_Rev2  \
57         TQM5200         \
58         TQM5200_B       \
59         TQM5200S        \
60         v38b            \
61 "
62
63 #########################################################################
64 ## MPC512x Systems
65 #########################################################################
66
67 LIST_512x="             \
68         ads5121         \
69 "
70
71 #########################################################################
72 ## MPC8xx Systems
73 #########################################################################
74 LIST_8xx="              \
75         Adder87x        \
76         AdderII         \
77         ADS860          \
78         AMX860          \
79         c2mon           \
80         CCM             \
81         cogent_mpc8xx   \
82         ELPT860         \
83         EP88x           \
84         ESTEEM192E      \
85         ETX094          \
86         FADS823         \
87         FADS850SAR      \
88         FADS860T        \
89         FLAGADM         \
90         FPS850L         \
91         GEN860T         \
92         GEN860T_SC      \
93         GENIETV         \
94         GTH             \
95         hermes          \
96         IAD210          \
97         ICU862_100MHz   \
98         IP860           \
99         IVML24          \
100         IVML24_128      \
101         IVML24_256      \
102         IVMS8           \
103         IVMS8_128       \
104         IVMS8_256       \
105         KUP4K           \
106         KUP4X           \
107         LANTEC          \
108         lwmon           \
109         MBX             \
110         MBX860T         \
111         mgsuvd          \
112         MHPC            \
113         MPC86xADS       \
114         MPC885ADS       \
115         MVS1            \
116         NETPHONE        \
117         NETTA           \
118         NETTA2          \
119         NETTA_ISDN      \
120         NETVIA          \
121         NETVIA_V2       \
122         NX823           \
123         pcu_e           \
124         QS823           \
125         QS850           \
126         QS860T          \
127         quantum         \
128         R360MPI         \
129         RBC823          \
130         rmu             \
131         RPXClassic      \
132         RPXlite         \
133         RPXlite_DW      \
134         RRvision        \
135         SM850           \
136         spc1920         \
137         SPD823TS        \
138         svm_sc8xx       \
139         SXNI855T        \
140         TK885D          \
141         TOP860          \
142         TQM823L         \
143         TQM823L_LCD     \
144         TQM850L         \
145         TQM855L         \
146         TQM860L         \
147         TQM885D         \
148         uc100           \
149         v37             \
150 "
151
152 #########################################################################
153 ## PPC4xx Systems
154 #########################################################################
155
156 LIST_4xx="              \
157         acadia          \
158         acadia_nand     \
159         ADCIOP          \
160         alpr            \
161         AP1000          \
162         AR405           \
163         ASH405          \
164         bamboo          \
165         bamboo_nand     \
166         bubinga         \
167         CANBT           \
168         canyonlands     \
169         canyonlands_nand \
170         CMS700          \
171         CPCI2DP         \
172         CPCI405         \
173         CPCI4052        \
174         CPCI405AB       \
175         CPCI405DT       \
176         CPCIISER4       \
177         CRAYL1          \
178         csb272          \
179         csb472          \
180         DASA_SIM        \
181         DP405           \
182         DU405           \
183         DU440           \
184         ebony           \
185         ERIC            \
186         EXBITGEN        \
187         G2000           \
188         haleakala       \
189         haleakala_nand  \
190         hcu4            \
191         hcu5            \
192         HH405           \
193         HUB405          \
194         JSE             \
195         KAREF           \
196         katmai          \
197         kilauea         \
198         kilauea_nand    \
199         korat           \
200         luan            \
201         lwmon5          \
202         makalu          \
203         mcu25           \
204         METROBOX        \
205         MIP405          \
206         MIP405T         \
207         ML2             \
208         ml300           \
209         ocotea          \
210         OCRTC           \
211         ORSG            \
212         p3p440          \
213         PCI405          \
214         pcs440ep        \
215         PIP405          \
216         PLU405          \
217         PMC405          \
218         PMC440          \
219         PPChameleonEVB  \
220         rainier         \
221         sbc405          \
222         sc3             \
223         sequoia         \
224         sequoia_nand    \
225         taihu           \
226         taishan         \
227         VOH405          \
228         VOM405          \
229         W7OLMC          \
230         W7OLMG          \
231         walnut          \
232         WUH405          \
233         XPEDITE1K       \
234         yellowstone     \
235         yosemite        \
236         yucca           \
237         zeus            \
238 "
239
240 #########################################################################
241 ## MPC8220 Systems
242 #########################################################################
243
244 LIST_8220="             \
245         Alaska8220      \
246         Yukon8220       \
247 "
248
249 #########################################################################
250 ## MPC824x Systems
251 #########################################################################
252
253 LIST_824x="             \
254         A3000           \
255         barco           \
256         BMW             \
257         CPC45           \
258         CU824           \
259         debris          \
260         eXalion         \
261         HIDDEN_DRAGON   \
262         MOUSSE          \
263         MUSENKI         \
264         MVBLUE          \
265         OXC             \
266         PN62            \
267         Sandpoint8240   \
268         Sandpoint8245   \
269         sbc8240         \
270         SL8245          \
271         utx8245         \
272 "
273
274 #########################################################################
275 ## MPC8260 Systems (includes 8250, 8255 etc.)
276 #########################################################################
277
278 LIST_8260="             \
279         atc             \
280         cogent_mpc8260  \
281         CPU86           \
282         CPU87           \
283         ep8248          \
284         ep8260          \
285         ep82xxm         \
286         gw8260          \
287         hymod           \
288         IPHASE4539      \
289         ISPAN           \
290         mgcoge          \
291         MPC8260ADS      \
292         MPC8266ADS      \
293         MPC8272ADS      \
294         PM826           \
295         PM828           \
296         ppmc8260        \
297         Rattler8248     \
298         RPXsuper        \
299         rsdproto        \
300         sacsng          \
301         sbc8260         \
302         SCM             \
303         TQM8260_AC      \
304         TQM8260_AD      \
305         TQM8260_AE      \
306         ZPC1900         \
307 "
308
309 #########################################################################
310 ## MPC83xx Systems (includes 8349, etc.)
311 #########################################################################
312
313 LIST_83xx="             \
314         MPC8313ERDB_33  \
315         MPC8313ERDB_66  \
316         MPC8315ERDB     \
317         MPC8323ERDB     \
318         MPC832XEMDS     \
319         MPC832XEMDS_ATM \
320         MPC8349EMDS     \
321         MPC8349ITX      \
322         MPC8349ITXGP    \
323         MPC8360EMDS     \
324         MPC8360EMDS_ATM \
325         MPC8360ERDK_33  \
326         MPC8360ERDK_66  \
327         MPC837XEMDS     \
328         MPC837XERDB     \
329         sbc8349         \
330         TQM834x         \
331 "
332
333
334 #########################################################################
335 ## MPC85xx Systems (includes 8540, 8560 etc.)
336 #########################################################################
337
338 LIST_85xx="             \
339         ATUM8548        \
340         MPC8540ADS      \
341         MPC8540EVAL     \
342         MPC8541CDS      \
343         MPC8544DS       \
344         MPC8548CDS      \
345         MPC8555CDS      \
346         MPC8560ADS      \
347         MPC8568MDS      \
348         PM854           \
349         PM856           \
350         sbc8540         \
351         sbc8548         \
352         sbc8560         \
353         stxgp3          \
354         stxssa          \
355         TQM8540         \
356         TQM8541         \
357         TQM8555         \
358         TQM8560         \
359 "
360
361 #########################################################################
362 ## MPC86xx Systems
363 #########################################################################
364
365 LIST_86xx="             \
366         MPC8610HPCD     \
367         MPC8641HPCN     \
368         sbc8641d        \
369 "
370
371 #########################################################################
372 ## 74xx/7xx Systems
373 #########################################################################
374
375 LIST_74xx="             \
376         DB64360         \
377         DB64460         \
378         EVB64260        \
379         mpc7448hpc2     \
380         P3G4            \
381         p3m7448         \
382         PCIPPC2         \
383         PCIPPC6         \
384         ZUMA            \
385 "
386
387 LIST_TSEC="             \
388         ${LIST_85xx}    \
389         ${LIST_86xx}    \
390         ${LIST_83xx}    \
391 "
392
393 LIST_7xx="              \
394         BAB7xx          \
395         CPCI750         \
396         ELPPC           \
397         p3m750          \
398         ppmc7xx         \
399 "
400
401 LIST_ppc="              \
402         ${LIST_5xx}     \
403         ${LIST_512x}    \
404         ${LIST_5xxx}    \
405         ${LIST_8xx}     \
406         ${LIST_8220}    \
407         ${LIST_824x}    \
408         ${LIST_8260}    \
409         ${LIST_83xx}    \
410         ${LIST_85xx}    \
411         ${LIST_86xx}    \
412         ${LIST_4xx}     \
413         ${LIST_74xx}    \
414         ${LIST_7xx}     \
415 "
416
417 #########################################################################
418 ## StrongARM Systems
419 #########################################################################
420
421 LIST_SA="               \
422         assabet         \
423         dnp1110         \
424         gcplus          \
425         lart            \
426         shannon         \
427 "
428
429 #########################################################################
430 ## ARM7 Systems
431 #########################################################################
432
433 LIST_ARM7="             \
434         ap7             \
435         ap720t          \
436         armadillo       \
437         B2              \
438         ep7312          \
439         evb4510         \
440         impa7           \
441         integratorap    \
442         lpc2292sodimm   \
443         modnet50        \
444         SMN42           \
445 "
446
447 #########################################################################
448 ## ARM9 Systems
449 #########################################################################
450
451 LIST_ARM9="                     \
452         at91cap9adk             \
453         at91rm9200dk            \
454         cmc_pu2                 \
455         ap920t                  \
456         ap922_XA10              \
457         ap926ejs                \
458         ap946es                 \
459         ap966                   \
460         cp920t                  \
461         cp922_XA10              \
462         cp926ejs                \
463         cp946es                 \
464         cp966                   \
465         lpd7a400                \
466         m501sk                  \
467         mp2usb                  \
468         mx1ads                  \
469         mx1fs2                  \
470         netstar                 \
471         omap1510inn             \
472         omap1610h2              \
473         omap1610inn             \
474         omap730p2               \
475         sbc2410x                \
476         scb9328                 \
477         smdk2400                \
478         smdk2410                \
479         trab                    \
480         VCMA9                   \
481         versatile               \
482         versatileab             \
483         versatilepb             \
484         voiceblue               \
485         davinci_dvevm           \
486         davinci_schmoogie       \
487         davinci_sonata          \
488 "
489
490 #########################################################################
491 ## ARM10 Systems
492 #########################################################################
493 LIST_ARM10="            \
494         integratorcp    \
495         cp1026          \
496 "
497
498 #########################################################################
499 ## ARM11 Systems
500 #########################################################################
501 LIST_ARM11="            \
502         cp1136          \
503         omap2420h4      \
504         apollon         \
505 "
506
507 #########################################################################
508 ## Xscale Systems
509 #########################################################################
510
511 LIST_pxa="              \
512         adsvix          \
513         cerf250         \
514         cradle          \
515         csb226          \
516         delta           \
517         innokom         \
518         lubbock         \
519         pleb2           \
520         pxa255_idp      \
521         wepep250        \
522         xaeniax         \
523         xm250           \
524         xsengine        \
525         zylonite        \
526 "
527
528 LIST_ixp="              \
529         actux1          \
530         actux2          \
531         actux3          \
532         actux4          \
533         ixdp425         \
534         ixdpg425        \
535         pdnb3           \
536         scpu            \
537 "
538
539
540 LIST_arm="              \
541         ${LIST_SA}      \
542         ${LIST_ARM7}    \
543         ${LIST_ARM9}    \
544         ${LIST_ARM10}   \
545         ${LIST_ARM11}   \
546         ${LIST_pxa}     \
547         ${LIST_ixp}     \
548 "
549
550 #########################################################################
551 ## MIPS Systems         (default = big endian)
552 #########################################################################
553
554 LIST_mips4kc="          \
555         incaip          \
556         qemu_mips       \
557 "
558
559 LIST_mips5kc="          \
560         purple          \
561 "
562
563 LIST_au1xx0="           \
564         dbau1000        \
565         dbau1100        \
566         dbau1500        \
567         dbau1550        \
568         dbau1550_el     \
569         gth2            \
570 "
571
572 LIST_mips="             \
573         ${LIST_mips4kc} \
574         ${LIST_mips5kc} \
575         ${LIST_au1xx0}  \
576 "
577
578 #########################################################################
579 ## MIPS Systems         (little endian)
580 #########################################################################
581
582 LIST_mips4kc_el=""
583
584 LIST_mips5kc_el=""
585
586 LIST_au1xx0_el="        \
587         dbau1550_el     \
588         pb1000          \
589 "
590
591 LIST_mips_el="                  \
592         ${LIST_mips4kc_el}      \
593         ${LIST_mips5kc_el}      \
594         ${LIST_au1xx0_el}       \
595 "
596
597 #########################################################################
598 ## i386 Systems
599 #########################################################################
600
601 LIST_I486="             \
602         sc520_cdp       \
603         sc520_spunk     \
604         sc520_spunk_rel \
605 "
606
607 LIST_x86="              \
608         ${LIST_I486}    \
609 "
610
611 #########################################################################
612 ## NIOS Systems
613 #########################################################################
614
615 LIST_nios="                     \
616         ADNPESC1                \
617         ADNPESC1_base_32        \
618         ADNPESC1_DNPEVA2_base_32\
619         DK1C20                  \
620         DK1C20_standard_32      \
621         DK1S10                  \
622         DK1S10_standard_32      \
623         DK1S10_mtx_ldk_20       \
624 "
625
626 #########################################################################
627 ## Nios-II Systems
628 #########################################################################
629
630 LIST_nios2="            \
631         EP1C20          \
632         EP1S10          \
633         EP1S40          \
634         PCI5441         \
635         PK1C20          \
636 "
637
638 #########################################################################
639 ## MicroBlaze Systems
640 #########################################################################
641
642 LIST_microblaze="       \
643         suzaku          \
644         ml401           \
645         xupv2p          \
646 "
647
648 #########################################################################
649 ## ColdFire Systems
650 #########################################################################
651
652 LIST_coldfire="                 \
653         cobra5272               \
654         EB+MCF-EV123            \
655         EB+MCF-EV123_internal   \
656         idmr                    \
657         M52277EVB               \
658         M5235EVB                \
659         M5249EVB                \
660         M5253EVB                \
661         M5271EVB                \
662         M5272C3                 \
663         M5282EVB                \
664         M5329AFEE               \
665         M5373EVB                \
666         M54455EVB               \
667         M5475AFE                \
668         M5485AFE                \
669         r5200                   \
670         TASREG                  \
671 "
672
673 #########################################################################
674 ## AVR32 Systems
675 #########################################################################
676
677 LIST_avr32="            \
678         atstk1002       \
679         atstk1003       \
680         atstk1004       \
681         atngw100        \
682 "
683
684 #########################################################################
685 ## Blackfin Systems
686 #########################################################################
687
688 LIST_blackfin="         \
689         bf533-ezkit     \
690         bf533-stamp     \
691         bf537-stamp     \
692         bf561-ezkit     \
693 "
694
695 #########################################################################
696 ## SH Systems
697 #########################################################################
698
699 LIST_sh4="              \
700         ms7750se        \
701         ms7722se        \
702 "
703
704 LIST_sh3="              \
705         ms7720se        \
706 "
707
708 LIST_sh="               \
709         ${LIST_sh3}     \
710         ${LIST_sh4}     \
711 "
712
713 #-----------------------------------------------------------------------
714
715 #----- for now, just run PPC by default -----
716 [ $# = 0 ] && set $LIST_ppc
717
718 #-----------------------------------------------------------------------
719
720 build_target() {
721         target=$1
722
723         ${MAKE} distclean >/dev/null
724         ${MAKE} ${target}_config
725
726         ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
727                                 | tee ${LOG_DIR}/$target.ERR
728
729         ${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
730                                 | tee -a ${LOG_DIR}/$target.MAKELOG
731 }
732
733 #-----------------------------------------------------------------------
734
735
736 for arg in $@
737 do
738         case "$arg" in
739         arm|SA|ARM7|ARM9|ARM10|ARM11|ixp|pxa| \
740         avr32| \
741         blackfin| \
742         coldfire| \
743         microblaze| \
744         mips|mips_el| \
745         nios|nios2| \
746         ppc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx| \
747         x86|I486|TSEC| \
748         sh|sh4|sh3 \
749         )
750                         for target in `eval echo '$LIST_'${arg}`
751                         do
752                                 build_target ${target}
753                         done
754                         ;;
755         *)              build_target ${arg}
756                         ;;
757         esac
758 done