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