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