]>
Commit | Line | Data |
---|---|---|
7ebf7443 WD |
1 | #!/bin/sh |
2 | ||
a8c7c708 WD |
3 | : ${JOBS:=} |
4 | ||
7ebf7443 WD |
5 | if [ "${CROSS_COMPILE}" ] ; then |
6 | MAKE="make CROSS_COMPILE=${CROSS_COMPILE}" | |
7 | else | |
8 | MAKE=make | |
9 | fi | |
10 | ||
11 | [ -d LOG ] || mkdir LOG || exit 1 | |
12 | ||
13 | LIST="" | |
14 | ||
0db5bca8 WD |
15 | ######################################################################### |
16 | ## MPC5xx Systems | |
17 | ######################################################################### | |
18 | ||
19 | LIST_5xx=" \ | |
20 | cmi_mpc5xx \ | |
21 | " | |
22 | ||
945af8d7 WD |
23 | ######################################################################### |
24 | ## MPC5xxx Systems | |
25 | ######################################################################### | |
26 | ||
27 | LIST_5xxx=" \ | |
d4ca31c4 | 28 | IceCube_5100 IceCube_5200 EVAL5200 \ |
945af8d7 WD |
29 | " |
30 | ||
7ebf7443 WD |
31 | ######################################################################### |
32 | ## MPC8xx Systems | |
33 | ######################################################################### | |
34 | ||
35 | LIST_8xx=" \ | |
0cb61d7d WD |
36 | AdderII ADS860 AMX860 c2mon \ |
37 | CCM cogent_mpc8xx ESTEEM192E ETX094 \ | |
38 | ELPT860 FADS823 FADS850SAR FADS860T \ | |
39 | FLAGADM FPS850L GEN860T GEN860T_SC \ | |
40 | GENIETV GTH hermes IAD210 \ | |
41 | ICU862_100MHz IP860 IVML24 IVML24_128 \ | |
42 | IVML24_256 IVMS8 IVMS8_128 IVMS8_256 \ | |
43 | KUP4K LANTEC lwmon MBX \ | |
44 | MBX860T MHPC MPC86xADS MVS1 \ | |
45 | NETVIA NETVIA_V2 NX823 pcu_e \ | |
3bbc899f WD |
46 | QS823 QS850 QS860T R360MPI \ |
47 | RBC823 rmu RPXClassic RPXlite \ | |
48 | RRvision SM850 SPD823TS svm_sc8xx \ | |
49 | SXNI855T TOP860 TQM823L TQM823L_LCD \ | |
50 | TQM850L TQM855L TQM860L v37 \ | |
7ebf7443 WD |
51 | " |
52 | ||
53 | ######################################################################### | |
54 | ## PPC4xx Systems | |
55 | ######################################################################### | |
56 | ||
57 | LIST_4xx=" \ | |
549826ea | 58 | ADCIOP AR405 ASH405 BUBINGA405EP \ |
945af8d7 | 59 | CANBT CPCI405 CPCI4052 CPCI405AB \ |
8bde7f77 | 60 | CPCI440 CPCIISER4 CRAYL1 DASA_SIM \ |
72cd5aa7 SR |
61 | DP405 DU405 EBONY ERIC \ |
62 | EXBITGEN HUB405 MIP405 MIP405T \ | |
63 | ML2 OCRTC ORSG PCI405 \ | |
64 | PIP405 PLU405 PMC405 PPChameleonEVB \ | |
65 | VOH405 W7OLMC W7OLMG WALNUT405 \ | |
7ebf7443 WD |
66 | " |
67 | ||
68 | ######################################################################### | |
69 | ## MPC824x Systems | |
70 | ######################################################################### | |
71 | ||
72 | LIST_824x=" \ | |
8bde7f77 | 73 | A3000 BMW CPC45 CU824 \ |
b4676a25 WD |
74 | debris MOUSSE MUSENKI MVBLUE \ |
75 | OXC PN62 Sandpoint8240 Sandpoint8245 \ | |
76 | SL8245 utx8245 \ | |
7ebf7443 | 77 | " |
592c5cab | 78 | |
7ebf7443 | 79 | ######################################################################### |
7aa78614 | 80 | ## MPC8260 Systems (includes 8250, 8255 etc.) |
7ebf7443 WD |
81 | ######################################################################### |
82 | ||
83 | LIST_8260=" \ | |
45219c46 | 84 | atc cogent_mpc8260 CPU86 ep8260 \ |
7aa78614 WD |
85 | gw8260 hymod IPHASE4539 MPC8260ADS \ |
86 | MPC8266ADS PM826 ppmc8260 RPXsuper \ | |
87 | rsdproto sacsng sbc8260 SCM \ | |
54387ac9 | 88 | TQM8260_AC TQM8260_AD TQM8260_AE ZPC1900 \ |
7ebf7443 WD |
89 | " |
90 | ||
42d1f039 WD |
91 | ######################################################################### |
92 | ## MPC85xx Systems (includes 8540, 8560 etc.) | |
93 | ######################################################################### | |
94 | ||
95 | LIST_85xx=" \ | |
96 | MPC8540ADS MPC8560ADS \ | |
97 | " | |
98 | ||
7ebf7443 WD |
99 | ######################################################################### |
100 | ## 74xx/7xx Systems | |
101 | ######################################################################### | |
102 | ||
103 | LIST_74xx=" \ | |
12f34241 WD |
104 | EVB64260 P3G4 PCIPPC2 PCIPPC6 \ |
105 | ZUMA \ | |
7ebf7443 WD |
106 | " |
107 | ||
108 | LIST_7xx=" \ | |
109 | BAB7xx ELPPC \ | |
110 | " | |
111 | ||
945af8d7 WD |
112 | LIST_ppc="${LIST_5xx} ${LIST_5xxx} \ |
113 | ${LIST_8xx} \ | |
0db5bca8 | 114 | ${LIST_824x} ${LIST_8260} \ |
42d1f039 | 115 | ${LIST_85xx} \ |
0db5bca8 WD |
116 | ${LIST_4xx} \ |
117 | ${LIST_74xx} ${LIST_7xx}" | |
7ebf7443 WD |
118 | |
119 | ######################################################################### | |
120 | ## StrongARM Systems | |
121 | ######################################################################### | |
122 | ||
85ec0bcc | 123 | LIST_SA="dnp1110 lart shannon" |
7ebf7443 WD |
124 | |
125 | ######################################################################### | |
126 | ## ARM7 Systems | |
127 | ######################################################################### | |
128 | ||
dc7c9a1a | 129 | LIST_ARM7="ep7312 impa7" |
7ebf7443 WD |
130 | |
131 | ######################################################################### | |
132 | ## ARM9 Systems | |
133 | ######################################################################### | |
134 | ||
6f21347d WD |
135 | LIST_ARM9=" \ |
136 | at91rm9200dk omap1510inn omap1610inn \ | |
137 | smdk2400 smdk2410 trab \ | |
138 | VCMA9 \ | |
139 | " | |
7ebf7443 WD |
140 | |
141 | ######################################################################### | |
142 | ## Xscale Systems | |
143 | ######################################################################### | |
144 | ||
4c3b21a5 | 145 | LIST_pxa="cradle csb226 innokom lubbock wepep250" |
7ebf7443 | 146 | |
2d5b561e | 147 | LIST_ixp="ixdp425" |
7ebf7443 | 148 | |
2d5b561e WD |
149 | |
150 | LIST_arm="${LIST_SA} ${LIST_ARM7} ${LIST_ARM9} ${LIST_pxa} ${LIST_ixp}" | |
7ebf7443 | 151 | |
c021880a | 152 | ######################################################################### |
5da627a4 | 153 | ## MIPS Systems |
c021880a WD |
154 | ######################################################################### |
155 | ||
156 | LIST_mips4kc="incaip" | |
157 | ||
3e38691e WD |
158 | LIST_mips5kc="purple" |
159 | ||
a2663ea4 | 160 | LIST_au1x00="dbau1000 dbau1100 dbau1500" |
5da627a4 WD |
161 | |
162 | LIST_mips="${LIST_mips4kc} ${LIST_mips5kc} ${LIST_au1x00}" | |
c021880a | 163 | |
7a8e9bed WD |
164 | ######################################################################### |
165 | ## i386 Systems | |
166 | ######################################################################### | |
167 | ||
168 | LIST_I486="sc520_cdp sc520_spunk sc520_spunk_rel" | |
169 | ||
170 | LIST_x86="${LIST_I486}" | |
171 | ||
172 | #----------------------------------------------------------------------- | |
7ebf7443 WD |
173 | |
174 | #----- for now, just run PPC by default ----- | |
175 | [ $# = 0 ] && set $LIST_ppc | |
176 | ||
177 | #----------------------------------------------------------------------- | |
178 | ||
179 | build_target() { | |
180 | target=$1 | |
181 | ||
182 | ${MAKE} distclean >/dev/null | |
183 | ${MAKE} ${target}_config | |
a8c7c708 | 184 | ${MAKE} ${JOBS} all 2>&1 >LOG/$target.MAKELOG | tee LOG/$target.ERR |
7ebf7443 WD |
185 | ${CROSS_COMPILE:-ppc_8xx-}size u-boot | tee -a LOG/$target.MAKELOG |
186 | } | |
187 | ||
188 | #----------------------------------------------------------------------- | |
189 | ||
190 | ||
191 | for arg in $@ | |
192 | do | |
193 | case "$arg" in | |
42d1f039 | 194 | ppc|5xx|5xxx|8xx|824x|8260|85xx|4xx|7xx|74xx| \ |
2d5b561e WD |
195 | arm|SA|ARM7|ARM9|pxa|ixp| \ |
196 | mips| \ | |
197 | x86|I486) | |
7ebf7443 WD |
198 | for target in `eval echo '$LIST_'${arg}` |
199 | do | |
200 | build_target ${target} | |
201 | done | |
202 | ;; | |
203 | *) build_target ${arg} | |
204 | ;; | |
205 | esac | |
206 | done |