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