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