CFI: Add geometry reversal for STMicro M29W320ET
[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         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         glacier         \
201         haleakala       \
202         haleakala_nand  \
203         hcu4            \
204         hcu5            \
205         HH405           \
206         HUB405          \
207         JSE             \
208         KAREF           \
209         katmai          \
210         kilauea         \
211         kilauea_nand    \
212         korat           \
213         luan            \
214         lwmon5          \
215         makalu          \
216         mcu25           \
217         METROBOX        \
218         MIP405          \
219         MIP405T         \
220         ML2             \
221         ml300           \
222         ml507           \
223         ml507_flash     \
224         neo             \
225         ocotea          \
226         OCRTC           \
227         ORSG            \
228         p3p440          \
229         PCI405          \
230         pcs440ep        \
231         PIP405          \
232         PLU405          \
233         PMC405          \
234         PMC440          \
235         PPChameleonEVB  \
236         quad100hd       \
237         rainier         \
238         redwood         \
239         sbc405          \
240         sc3             \
241         sequoia         \
242         sequoia_nand    \
243         taihu           \
244         taishan         \
245         v5fx30teval     \
246         v5fx30teval_flash \
247         VOH405          \
248         VOM405          \
249         W7OLMC          \
250         W7OLMG          \
251         walnut          \
252         WUH405          \
253         xilinx-ppc440-generic \
254         xilinx-ppc440-generic_flash \
255         XPEDITE1K       \
256         yellowstone     \
257         yosemite        \
258         yucca           \
259         zeus            \
260 "
261
262 #########################################################################
263 ## MPC8220 Systems
264 #########################################################################
265
266 LIST_8220="             \
267         Alaska8220      \
268         Yukon8220       \
269 "
270
271 #########################################################################
272 ## MPC824x Systems
273 #########################################################################
274
275 LIST_824x="             \
276         A3000           \
277         barco           \
278         BMW             \
279         CPC45           \
280         CU824           \
281         debris          \
282         eXalion         \
283         HIDDEN_DRAGON   \
284         linkstation_HGLAN       \
285         MOUSSE          \
286         MUSENKI         \
287         MVBLUE          \
288         OXC             \
289         PN62            \
290         Sandpoint8240   \
291         Sandpoint8245   \
292         sbc8240         \
293         SL8245          \
294         utx8245         \
295 "
296
297 #########################################################################
298 ## MPC8260 Systems (includes 8250, 8255 etc.)
299 #########################################################################
300
301 LIST_8260="             \
302         atc             \
303         cogent_mpc8260  \
304         CPU86           \
305         CPU87           \
306         ep8248          \
307         ep8260          \
308         ep82xxm         \
309         gw8260          \
310         hymod           \
311         IPHASE4539      \
312         ISPAN           \
313         mgcoge          \
314         MPC8260ADS      \
315         MPC8266ADS      \
316         MPC8272ADS      \
317         PM826           \
318         PM828           \
319         ppmc8260        \
320         Rattler8248     \
321         RPXsuper        \
322         rsdproto        \
323         sacsng          \
324         sbc8260         \
325         SCM             \
326         TQM8260_AC      \
327         TQM8260_AD      \
328         TQM8260_AE      \
329         TQM8272         \
330         ZPC1900         \
331 "
332
333 #########################################################################
334 ## MPC83xx Systems (includes 8349, etc.)
335 #########################################################################
336
337 LIST_83xx="             \
338         kmeter1         \
339         MPC8313ERDB_33  \
340         MPC8313ERDB_NAND_66     \
341         MPC8315ERDB     \
342         MPC8323ERDB     \
343         MPC832XEMDS     \
344         MPC832XEMDS_ATM \
345         MPC8349EMDS     \
346         MPC8349ITX      \
347         MPC8349ITXGP    \
348         MPC8360EMDS     \
349         MPC8360EMDS_ATM \
350         MPC8360ERDK_33  \
351         MPC8360ERDK_66  \
352         MPC837XEMDS     \
353         MPC837XERDB     \
354         MVBLM7          \
355         sbc8349         \
356         SIMPC8313_LP    \
357         TQM834x         \
358 "
359
360
361 #########################################################################
362 ## MPC85xx Systems (includes 8540, 8560 etc.)
363 #########################################################################
364
365 LIST_85xx="             \
366         ATUM8548        \
367         MPC8536DS       \
368         MPC8540ADS      \
369         MPC8540EVAL     \
370         MPC8541CDS      \
371         MPC8544DS       \
372         MPC8548CDS      \
373         MPC8555CDS      \
374         MPC8560ADS      \
375         MPC8568MDS      \
376         MPC8572DS       \
377         MPC8572DS_36BIT \
378         PM854           \
379         PM856           \
380         sbc8540         \
381         sbc8548         \
382         sbc8560         \
383         socrates        \
384         stxgp3          \
385         stxssa          \
386         TQM8540         \
387         TQM8541         \
388         TQM8548         \
389         TQM8555         \
390         TQM8560         \
391         XPEDITE5200     \
392         XPEDITE5370     \
393 "
394
395 #########################################################################
396 ## MPC86xx Systems
397 #########################################################################
398
399 LIST_86xx="             \
400         MPC8610HPCD     \
401         MPC8641HPCN     \
402         sbc8641d        \
403 "
404
405 #########################################################################
406 ## 74xx/7xx Systems
407 #########################################################################
408
409 LIST_74xx="             \
410         DB64360         \
411         DB64460         \
412         EVB64260        \
413         mpc7448hpc2     \
414         P3G4            \
415         p3m7448         \
416         PCIPPC2         \
417         PCIPPC6         \
418         ZUMA            \
419 "
420
421 LIST_7xx="              \
422         BAB7xx          \
423         CPCI750         \
424         ELPPC           \
425         p3m750          \
426         ppmc7xx         \
427 "
428
429 #########################################################################
430 ## PowerPC groups
431 #########################################################################
432
433 LIST_TSEC="             \
434         ${LIST_83xx}    \
435         ${LIST_85xx}    \
436         ${LIST_86xx}    \
437 "
438
439 LIST_ppc="              \
440         ${LIST_5xx}     \
441         ${LIST_512x}    \
442         ${LIST_5xxx}    \
443         ${LIST_8xx}     \
444         ${LIST_8220}    \
445         ${LIST_824x}    \
446         ${LIST_8260}    \
447         ${LIST_83xx}    \
448         ${LIST_85xx}    \
449         ${LIST_86xx}    \
450         ${LIST_4xx}     \
451         ${LIST_74xx}    \
452         ${LIST_7xx}     \
453 "
454
455 #########################################################################
456 ## StrongARM Systems
457 #########################################################################
458
459 LIST_SA="               \
460         assabet         \
461         dnp1110         \
462         gcplus          \
463         lart            \
464         shannon         \
465 "
466
467 #########################################################################
468 ## ARM7 Systems
469 #########################################################################
470
471 LIST_ARM7="             \
472         ap7             \
473         ap720t          \
474         armadillo       \
475         B2              \
476         ep7312          \
477         evb4510         \
478         impa7           \
479         integratorap    \
480         lpc2292sodimm   \
481         modnet50        \
482         SMN42           \
483 "
484
485 #########################################################################
486 ## ARM9 Systems
487 #########################################################################
488
489 LIST_ARM9="                     \
490         ap920t                  \
491         ap922_XA10              \
492         ap926ejs                \
493         ap946es                 \
494         ap966                   \
495         cp920t                  \
496         cp922_XA10              \
497         cp926ejs                \
498         cp946es                 \
499         cp966                   \
500         lpd7a400                \
501         mx1ads                  \
502         mx1fs2                  \
503         netstar                 \
504         omap1510inn             \
505         omap1610h2              \
506         omap1610inn             \
507         omap5912osk             \
508         omap730p2               \
509         sbc2410x                \
510         scb9328                 \
511         smdk2400                \
512         smdk2410                \
513         trab                    \
514         VCMA9                   \
515         versatile               \
516         versatileab             \
517         versatilepb             \
518         voiceblue               \
519         davinci_dvevm           \
520         davinci_schmoogie       \
521         davinci_sffsdr          \
522         davinci_sonata          \
523 "
524
525 #########################################################################
526 ## ARM10 Systems
527 #########################################################################
528 LIST_ARM10="            \
529         integratorcp    \
530         cp1026          \
531 "
532
533 #########################################################################
534 ## ARM11 Systems
535 #########################################################################
536 LIST_ARM11="            \
537         cp1136          \
538         omap2420h4      \
539         apollon         \
540         imx31_litekit   \
541         imx31_phycore   \
542         mx31ads         \
543         smdk6400        \
544 "
545
546 #########################################################################
547 ## AT91 Systems
548 #########################################################################
549
550 LIST_at91="             \
551         afeb9260        \
552         at91cap9adk     \
553         at91rm9200dk    \
554         at91sam9260ek   \
555         at91sam9261ek   \
556         at91sam9263ek   \
557         at91sam9rlek    \
558         cmc_pu2         \
559         csb637          \
560         kb9202          \
561         mp2usb          \
562         m501sk          \
563 "
564
565 #########################################################################
566 ## Xscale Systems
567 #########################################################################
568
569 LIST_pxa="              \
570         cerf250         \
571         cradle          \
572         csb226          \
573         delta           \
574         innokom         \
575         lubbock         \
576         pleb2           \
577         pxa255_idp      \
578         wepep250        \
579         xaeniax         \
580         xm250           \
581         xsengine        \
582         zylonite        \
583 "
584
585 LIST_ixp="              \
586         actux1          \
587         actux2          \
588         actux3          \
589         actux4          \
590         ixdp425         \
591         ixdpg425        \
592         pdnb3           \
593         scpu            \
594 "
595
596 #########################################################################
597 ## ARM groups
598 #########################################################################
599
600 LIST_arm="              \
601         ${LIST_SA}      \
602         ${LIST_ARM7}    \
603         ${LIST_ARM9}    \
604         ${LIST_ARM10}   \
605         ${LIST_ARM11}   \
606         ${LIST_at91}    \
607         ${LIST_pxa}     \
608         ${LIST_ixp}     \
609 "
610
611 #########################################################################
612 ## MIPS Systems         (default = big endian)
613 #########################################################################
614
615 LIST_mips4kc="          \
616         incaip          \
617         qemu_mips       \
618 "
619
620 LIST_mips5kc="          \
621         purple          \
622 "
623
624 LIST_au1xx0="           \
625         dbau1000        \
626         dbau1100        \
627         dbau1500        \
628         dbau1550        \
629         dbau1550_el     \
630         gth2            \
631 "
632
633 LIST_mips="             \
634         ${LIST_mips4kc} \
635         ${LIST_mips5kc} \
636         ${LIST_au1xx0}  \
637 "
638
639 #########################################################################
640 ## MIPS Systems         (little endian)
641 #########################################################################
642
643 LIST_mips4kc_el=""
644
645 LIST_mips5kc_el=""
646
647 LIST_au1xx0_el="        \
648         dbau1550_el     \
649         pb1000          \
650 "
651
652 LIST_mips_el="                  \
653         ${LIST_mips4kc_el}      \
654         ${LIST_mips5kc_el}      \
655         ${LIST_au1xx0_el}       \
656 "
657
658 #########################################################################
659 ## i386 Systems
660 #########################################################################
661
662 LIST_I486="             \
663         sc520_cdp       \
664         sc520_eNET      \
665         sc520_spunk     \
666         sc520_spunk_rel \
667 "
668
669 LIST_x86="              \
670         ${LIST_I486}    \
671 "
672
673 #########################################################################
674 ## NIOS Systems
675 #########################################################################
676
677 LIST_nios="                     \
678         ADNPESC1                \
679         ADNPESC1_base_32        \
680         ADNPESC1_DNPEVA2_base_32\
681         DK1C20                  \
682         DK1C20_standard_32      \
683         DK1S10                  \
684         DK1S10_standard_32      \
685         DK1S10_mtx_ldk_20       \
686 "
687
688 #########################################################################
689 ## Nios-II Systems
690 #########################################################################
691
692 LIST_nios2="            \
693         EP1C20          \
694         EP1S10          \
695         EP1S40          \
696         PCI5441         \
697         PK1C20          \
698 "
699
700 #########################################################################
701 ## MicroBlaze Systems
702 #########################################################################
703
704 LIST_microblaze="                       \
705         microblaze-generic              \
706         suzaku                          \
707 "
708
709 #########################################################################
710 ## ColdFire Systems
711 #########################################################################
712
713 LIST_coldfire="                 \
714         cobra5272               \
715         EB+MCF-EV123            \
716         EB+MCF-EV123_internal   \
717         idmr                    \
718         M52277EVB               \
719         M5235EVB                \
720         M5249EVB                \
721         M5253DEMO               \
722         M5253EVBE               \
723         M5271EVB                \
724         M5272C3                 \
725         M5275EVB                \
726         M5282EVB                \
727         M53017EVB               \
728         M5329AFEE               \
729         M5373EVB                \
730         M54451EVB               \
731         M54455EVB               \
732         M5475AFE                \
733         M5485AFE                \
734         TASREG                  \
735 "
736
737 #########################################################################
738 ## AVR32 Systems
739 #########################################################################
740
741 LIST_avr32="            \
742         atstk1002       \
743         atstk1003       \
744         atstk1004       \
745         atstk1006       \
746         atngw100        \
747         favr-32-ezkit   \
748         hammerhead      \
749         mimc200         \
750 "
751
752 #########################################################################
753 ## Blackfin Systems
754 #########################################################################
755
756 LIST_blackfin="         \
757         bf533-ezkit     \
758         bf533-stamp     \
759         bf537-stamp     \
760         bf561-ezkit     \
761 "
762
763 #########################################################################
764 ## SH Systems
765 #########################################################################
766
767 LIST_sh2="              \
768         rsk7203         \
769 "
770 LIST_sh3="              \
771         mpr2            \
772         ms7720se        \
773 "
774
775 LIST_sh4="              \
776         ms7750se        \
777         ms7722se        \
778         MigoR           \
779         r7780mp         \
780         r2dplus         \
781         sh7763rdp       \
782         sh7785lcr       \
783         ap325rxa        \
784 "
785
786 LIST_sh="               \
787         ${LIST_sh2}     \
788         ${LIST_sh3}     \
789         ${LIST_sh4}     \
790 "
791
792 #########################################################################
793 ## SPARC Systems
794 #########################################################################
795
796 LIST_sparc="gr_xc3s_1500        gr_cpci_ax2000  gr_ep2s60       grsim   grsim_leon2"
797
798 #-----------------------------------------------------------------------
799
800 #----- for now, just run PPC by default -----
801 [ $# = 0 ] && set $LIST_ppc
802
803 #-----------------------------------------------------------------------
804
805 build_target() {
806         target=$1
807
808         ${MAKE} distclean >/dev/null
809         ${MAKE} ${target}_config
810
811         ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
812                                 | tee ${LOG_DIR}/$target.ERR
813
814         ${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
815                                 | tee -a ${LOG_DIR}/$target.MAKELOG
816 }
817
818 #-----------------------------------------------------------------------
819
820
821 for arg in $@
822 do
823         case "$arg" in
824         arm|SA|ARM7|ARM9|ARM10|ARM11|at91|ixp|pxa \
825         |avr32 \
826         |blackfin \
827         |coldfire \
828         |microblaze \
829         |mips|mips_el \
830         |nios|nios2 \
831         |ppc|5xx|5xxx|512x|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx|TSEC \
832         |sh|sh2|sh3|sh4 \
833         |sparc \
834         |x86|I486 \
835         )
836                         for target in `eval echo '$LIST_'${arg}`
837                         do
838                                 build_target ${target}
839                         done
840                         ;;
841         *)              build_target ${arg}
842                         ;;
843         esac
844 done