]>
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=" \ | |
5e4b3361 SR |
28 | cpci5200 icecube_5100 icecube_5200 EVAL5200 \ |
29 | pf5200 PM520 Total5100 Total5200 \ | |
30 | Total5200_Rev2 TQM5200_auto o2dnt \ | |
945af8d7 WD |
31 | " |
32 | ||
7ebf7443 WD |
33 | ######################################################################### |
34 | ## MPC8xx Systems | |
35 | ######################################################################### | |
36 | ||
37 | LIST_8xx=" \ | |
da93ed81 WD |
38 | Adder87x GENIETV MBX860T R360MPI \ |
39 | AdderII GTH MHPC RBC823 \ | |
40 | ADS860 hermes MPC86xADS rmu \ | |
41 | AMX860 IAD210 MPC885ADS RPXClassic \ | |
42 | c2mon ICU862_100MHz MVS1 RPXlite \ | |
43 | CCM IP860 NETPHONE RPXlite_DW \ | |
44 | cogent_mpc8xx IVML24 NETTA RRvision \ | |
45 | ELPT860 IVML24_128 NETTA2 SM850 \ | |
46 | ESTEEM192E IVML24_256 NETTA_ISDN SPD823TS \ | |
47 | ETX094 IVMS8 NETVIA svm_sc8xx \ | |
48 | FADS823 IVMS8_128 NETVIA_V2 SXNI855T \ | |
49 | FADS850SAR IVMS8_256 NX823 TOP860 \ | |
50 | FADS860T KUP4K pcu_e TQM823L \ | |
51 | FLAGADM KUP4X QS823 TQM823L_LCD \ | |
52 | FPS850L LANTEC QS850 TQM850L \ | |
53 | GEN860T lwmon QS860T TQM855L \ | |
54 | GEN860T_SC MBX quantum TQM860L \ | |
ec0aee7b WD |
55 | uc100 \ |
56 | v37 \ | |
7ebf7443 WD |
57 | " |
58 | ||
59 | ######################################################################### | |
60 | ## PPC4xx Systems | |
61 | ######################################################################### | |
62 | ||
63 | LIST_4xx=" \ | |
3d078ce6 | 64 | ADCIOP AR405 ASH405 bubinga \ |
7644f16f SR |
65 | CANBT CPCI2DP CPCI405 CPCI4052 \ |
66 | CPCI405AB CPCI440 CPCIISER4 CRAYL1 \ | |
67 | csb272 csb472 DASA_SIM DP405 \ | |
68 | DU405 ebony ERIC EXBITGEN \ | |
69 | G2000 HUB405 JSE KAREF \ | |
70 | METROBOX MIP405 MIP405T ML2 \ | |
71 | ml300 ocotea OCRTC ORSG \ | |
72 | PCI405 PIP405 PLU405 PMC405 \ | |
73 | PPChameleonEVB sbc405 VOH405 W7OLMC \ | |
74 | W7OLMG walnut WUH405 XPEDITE1K \ | |
75 | yellowstone yosemite \ | |
7ebf7443 WD |
76 | " |
77 | ||
983fda83 WD |
78 | ######################################################################### |
79 | ## MPC8220 Systems | |
80 | ######################################################################### | |
81 | ||
82 | LIST_8220=" \ | |
83 | Alaska8220 Yukon8220 \ | |
84 | " | |
85 | ||
7ebf7443 WD |
86 | ######################################################################### |
87 | ## MPC824x Systems | |
88 | ######################################################################### | |
89 | ||
90 | LIST_824x=" \ | |
8e6f1a8e WD |
91 | A3000 barco BMW CPC45 \ |
92 | CU824 debris eXalion HIDDEN_DRAGON \ | |
93 | MOUSSE MUSENKI MVBLUE OXC \ | |
94 | PN62 Sandpoint8240 Sandpoint8245 sbc8240 \ | |
95 | SL8245 utx8245 \ | |
7ebf7443 | 96 | " |
592c5cab | 97 | |
7ebf7443 | 98 | ######################################################################### |
7aa78614 | 99 | ## MPC8260 Systems (includes 8250, 8255 etc.) |
7ebf7443 WD |
100 | ######################################################################### |
101 | ||
102 | LIST_8260=" \ | |
384cc687 | 103 | atc cogent_mpc8260 CPU86 CPU87 \ |
f901a83b WD |
104 | ep8248 ep8260 gw8260 hymod \ |
105 | IPHASE4539 ISPAN MPC8260ADS MPC8266ADS \ | |
106 | MPC8272ADS PM826 PM828 ppmc8260 \ | |
107 | Rattler8248 RPXsuper rsdproto sacsng \ | |
108 | sbc8260 SCM TQM8260_AC TQM8260_AD \ | |
109 | TQM8260_AE ZPC1900 \ | |
7ebf7443 WD |
110 | " |
111 | ||
f046ccd1 EL |
112 | ######################################################################### |
113 | ## MPC83xx Systems (includes 8349, etc.) | |
114 | ######################################################################### | |
115 | ||
116 | LIST_83xx=" \ | |
117 | MPC8349ADS \ | |
118 | " | |
119 | ||
120 | ||
42d1f039 WD |
121 | ######################################################################### |
122 | ## MPC85xx Systems (includes 8540, 8560 etc.) | |
123 | ######################################################################### | |
124 | ||
125 | LIST_85xx=" \ | |
b0e32949 | 126 | MPC8540ADS MPC8540EVAL MPC8541CDS MPC8548CDS \ |
b4f15fda WD |
127 | MPC8555CDS MPC8560ADS PM854 PM856 \ |
128 | sbc8540 sbc8560 stxgp3 TQM8540 \ | |
9d2a873b | 129 | TQM8560 \ |
42d1f039 WD |
130 | " |
131 | ||
7ebf7443 WD |
132 | ######################################################################### |
133 | ## 74xx/7xx Systems | |
134 | ######################################################################### | |
135 | ||
136 | LIST_74xx=" \ | |
3a473b2a WD |
137 | DB64360 DB64460 EVB64260 P3G4 \ |
138 | PCIPPC2 PCIPPC6 ZUMA \ | |
7ebf7443 WD |
139 | " |
140 | ||
141 | LIST_7xx=" \ | |
c419d1d6 | 142 | BAB7xx CPCI750 ELPPC \ |
7ebf7443 WD |
143 | " |
144 | ||
342717f7 WD |
145 | LIST_ppc="${LIST_5xx} ${LIST_5xxx} \ |
146 | ${LIST_8xx} \ | |
147 | ${LIST_8220} ${LIST_824x} ${LIST_8260} \ | |
f046ccd1 | 148 | ${LIST_83xx} \ |
342717f7 WD |
149 | ${LIST_85xx} \ |
150 | ${LIST_4xx} \ | |
0db5bca8 | 151 | ${LIST_74xx} ${LIST_7xx}" |
7ebf7443 WD |
152 | |
153 | ######################################################################### | |
154 | ## StrongARM Systems | |
155 | ######################################################################### | |
156 | ||
ea66bc88 | 157 | LIST_SA="assabet dnp1110 gcplus lart shannon" |
7ebf7443 WD |
158 | |
159 | ######################################################################### | |
160 | ## ARM7 Systems | |
161 | ######################################################################### | |
162 | ||
74f4304e | 163 | LIST_ARM7=" \ |
c570b2fd WD |
164 | armadillo B2 ep7312 evb4510 \ |
165 | impa7 integratorap_CM720T integratorap_CM7TDMI \ | |
74f4304e WD |
166 | modnet50 \ |
167 | " | |
7ebf7443 WD |
168 | |
169 | ######################################################################### | |
170 | ## ARM9 Systems | |
171 | ######################################################################### | |
172 | ||
6f21347d | 173 | LIST_ARM9=" \ |
645da510 | 174 | at91rm9200dk cmc_pu2 csb637 \ |
74f4304e WD |
175 | integratorap_CM920T integratorap_CM920T_ETM \ |
176 | integratorap_CM922T_XA10 integratorap_CM926EJ_S \ | |
177 | integratorap_CM940T integratorap_CM946E_S \ | |
178 | integratorap_CM966E_S integratorcp_CM920T \ | |
179 | integratorcp_CM920T_ETM integratorcp_CM922T_XA10 \ | |
180 | integratorcp_CM926EJ_S integratorcp_CM940T \ | |
181 | integratorcp_CM946E_S integratorcp_CM966E_S \ | |
99b0d285 WD |
182 | kb9202 lpd7a400 mp2usb mx1ads \ |
183 | mx1fs2 omap1510inn omap1610h2 omap1610inn \ | |
184 | omap730p2 scb9328 smdk2400 smdk2410 \ | |
185 | trab VCMA9 versatile voiceblue \ | |
6f21347d | 186 | " |
7ebf7443 | 187 | |
74f4304e WD |
188 | ######################################################################### |
189 | ## ARM10 Systems | |
190 | ######################################################################### | |
191 | LIST_ARM10=" \ | |
192 | integratorcp_CM10220E integratorcp_CM1026EJ_S \ | |
193 | " | |
194 | ||
8ed96046 WD |
195 | ######################################################################### |
196 | ## ARM11 Systems | |
197 | ######################################################################### | |
74f4304e WD |
198 | LIST_ARM11=" \ |
199 | integratorcp_CM1136JF_S omap2420h4 \ | |
200 | " | |
8ed96046 | 201 | |
7ebf7443 WD |
202 | ######################################################################### |
203 | ## Xscale Systems | |
204 | ######################################################################### | |
205 | ||
4ec3a7f0 | 206 | LIST_pxa=" \ |
20787e23 | 207 | adsvix cerf250 cradle csb226 \ |
2df741bf WD |
208 | innokom lubbock pxa255_idp wepep250 \ |
209 | xaeniax xm250 xsengine \ | |
4ec3a7f0 | 210 | " |
7ebf7443 | 211 | |
2d5b561e | 212 | LIST_ixp="ixdp425" |
7ebf7443 | 213 | |
2d5b561e | 214 | |
8ed96046 WD |
215 | LIST_arm=" \ |
216 | ${LIST_SA} \ | |
74f4304e | 217 | ${LIST_ARM7} ${LIST_ARM9} ${LIST_ARM10} ${LIST_ARM11} \ |
8ed96046 WD |
218 | ${LIST_pxa} ${LIST_ixp} \ |
219 | " | |
7ebf7443 | 220 | |
c021880a | 221 | ######################################################################### |
b62bdffb | 222 | ## MIPS Systems (default = big endian) |
c021880a WD |
223 | ######################################################################### |
224 | ||
225 | LIST_mips4kc="incaip" | |
226 | ||
3e38691e WD |
227 | LIST_mips5kc="purple" |
228 | ||
ff36fd85 | 229 | LIST_au1xx0="dbau1000 dbau1100 dbau1500 dbau1550 dbau1550_el" |
5da627a4 | 230 | |
ff36fd85 | 231 | LIST_mips="${LIST_mips4kc} ${LIST_mips5kc} ${LIST_au1xx0}" |
c021880a | 232 | |
b62bdffb WD |
233 | ######################################################################### |
234 | ## MIPS Systems (little endian) | |
235 | ######################################################################### | |
236 | ||
237 | LIST_mips4kc_el="" | |
238 | ||
239 | LIST_mips5kc_el="" | |
240 | ||
241 | LIST_au1xx0_el="dbau1550_el" | |
242 | ||
243 | LIST_mips_el="${LIST_mips4kc_el} ${LIST_mips5kc_el} ${LIST_au1xx0_el}" | |
244 | ||
7a8e9bed WD |
245 | ######################################################################### |
246 | ## i386 Systems | |
247 | ######################################################################### | |
248 | ||
249 | LIST_I486="sc520_cdp sc520_spunk sc520_spunk_rel" | |
250 | ||
251 | LIST_x86="${LIST_I486}" | |
252 | ||
c935d3bd WD |
253 | ######################################################################### |
254 | ## NIOS Systems | |
255 | ######################################################################### | |
256 | ||
257 | LIST_nios=" \ | |
aaf224ab WD |
258 | ADNPESC1 ADNPESC1_base_32 \ |
259 | ADNPESC1_DNPEVA2_base_32 \ | |
c935d3bd | 260 | DK1C20 DK1C20_standard_32 \ |
ec4c544b | 261 | DK1S10 DK1S10_standard_32 DK1S10_mtx_ldk_20 \ |
c935d3bd WD |
262 | " |
263 | ||
5c952cf0 WD |
264 | ######################################################################### |
265 | ## Nios-II Systems | |
266 | ######################################################################### | |
267 | ||
268 | LIST_nios2="PCI5441 PK1C20" | |
269 | ||
857cad37 WD |
270 | ######################################################################### |
271 | ## MicroBlaze Systems | |
272 | ######################################################################### | |
273 | ||
274 | LIST_microblaze="suzaku" | |
275 | ||
7a8e9bed | 276 | #----------------------------------------------------------------------- |
7ebf7443 WD |
277 | |
278 | #----- for now, just run PPC by default ----- | |
279 | [ $# = 0 ] && set $LIST_ppc | |
280 | ||
281 | #----------------------------------------------------------------------- | |
282 | ||
283 | build_target() { | |
284 | target=$1 | |
285 | ||
286 | ${MAKE} distclean >/dev/null | |
287 | ${MAKE} ${target}_config | |
a8c7c708 | 288 | ${MAKE} ${JOBS} all 2>&1 >LOG/$target.MAKELOG | tee LOG/$target.ERR |
7ebf7443 WD |
289 | ${CROSS_COMPILE:-ppc_8xx-}size u-boot | tee -a LOG/$target.MAKELOG |
290 | } | |
291 | ||
292 | #----------------------------------------------------------------------- | |
293 | ||
294 | ||
295 | for arg in $@ | |
296 | do | |
297 | case "$arg" in | |
f046ccd1 | 298 | ppc|5xx|5xxx|8xx|8220|824x|8260|83xx|85xx|4xx|7xx|74xx| \ |
74f4304e | 299 | arm|SA|ARM7|ARM9|ARM10|ARM11|pxa|ixp| \ |
857cad37 | 300 | microblaze| \ |
b62bdffb | 301 | mips|mips_el| \ |
5c952cf0 | 302 | nios|nios2| \ |
2d5b561e | 303 | x86|I486) |
7ebf7443 WD |
304 | for target in `eval echo '$LIST_'${arg}` |
305 | do | |
306 | build_target ${target} | |
307 | done | |
308 | ;; | |
309 | *) build_target ${arg} | |
310 | ;; | |
311 | esac | |
312 | done |