]>
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 | ||
f9328639 MB |
11 | if [ "${MAKEALL_LOGDIR}" ] ; then |
12 | LOG_DIR=${MAKEALL_LOGDIR} | |
13 | else | |
14 | LOG_DIR="LOG" | |
15 | fi | |
887e2ec9 | 16 | |
f9328639 MB |
17 | if [ ! "${BUILD_DIR}" ] ; then |
18 | BUILD_DIR="." | |
19 | fi | |
20 | ||
4f0645eb | 21 | [ -d ${LOG_DIR} ] || mkdir ${LOG_DIR} || exit 1 |
7ebf7443 WD |
22 | |
23 | LIST="" | |
24 | ||
0db5bca8 WD |
25 | ######################################################################### |
26 | ## MPC5xx Systems | |
27 | ######################################################################### | |
28 | ||
29 | LIST_5xx=" \ | |
30 | cmi_mpc5xx \ | |
31 | " | |
32 | ||
945af8d7 WD |
33 | ######################################################################### |
34 | ## MPC5xxx Systems | |
35 | ######################################################################### | |
36 | ||
37 | LIST_5xxx=" \ | |
fa1df308 BS |
38 | BC3450 cm1_qp1 cpci5200 EVAL5200 \ |
39 | fo300 icecube_5100 icecube_5200 lite5200b \ | |
40 | mcc200 mecp5200 motionpro o2dnt \ | |
41 | pf5200 PM520 TB5200 Total5100 \ | |
42 | Total5200 Total5200_Rev2 TQM5200 TQM5200_B \ | |
43 | TQM5200S v38b \ | |
945af8d7 WD |
44 | " |
45 | ||
7ebf7443 WD |
46 | ######################################################################### |
47 | ## MPC8xx Systems | |
48 | ######################################################################### | |
7ebf7443 | 49 | LIST_8xx=" \ |
da93ed81 WD |
50 | Adder87x GENIETV MBX860T R360MPI \ |
51 | AdderII GTH MHPC RBC823 \ | |
52 | ADS860 hermes MPC86xADS rmu \ | |
53 | AMX860 IAD210 MPC885ADS RPXClassic \ | |
54 | c2mon ICU862_100MHz MVS1 RPXlite \ | |
55 | CCM IP860 NETPHONE RPXlite_DW \ | |
56 | cogent_mpc8xx IVML24 NETTA RRvision \ | |
57 | ELPT860 IVML24_128 NETTA2 SM850 \ | |
b02d0177 MK |
58 | EP88x IVML24_256 NETTA_ISDN spc1920 \ |
59 | ESTEEM192E IVMS8 NETVIA SPD823TS \ | |
60 | ETX094 IVMS8_128 NETVIA_V2 svm_sc8xx \ | |
61 | FADS823 IVMS8_256 NX823 SXNI855T \ | |
62 | FADS850SAR KUP4K pcu_e TOP860 \ | |
63 | FADS860T KUP4X QS823 TQM823L \ | |
64 | FLAGADM LANTEC QS850 TQM823L_LCD \ | |
65 | FPS850L lwmon QS860T TQM850L \ | |
66 | GEN860T MBX quantum TQM855L \ | |
67 | GEN860T_SC TQM860L \ | |
090eb735 | 68 | TQM885D \ |
b02d0177 | 69 | uc100 \ |
ec0aee7b | 70 | v37 \ |
7ebf7443 WD |
71 | " |
72 | ||
73 | ######################################################################### | |
74 | ## PPC4xx Systems | |
75 | ######################################################################### | |
76 | ||
77 | LIST_4xx=" \ | |
c440bfe6 SR |
78 | acadia acadia_nand ADCIOP alpr \ |
79 | AP1000 AR405 ASH405 bamboo \ | |
80 | bamboo_nand bubinga CANBT CMS700 \ | |
81 | CPCI2DP CPCI405 CPCI4052 CPCI405AB \ | |
82 | CPCI405DT CPCI440 CPCIISER4 CRAYL1 \ | |
83 | csb272 csb472 DASA_SIM DP405 \ | |
84 | DU405 ebony ERIC EXBITGEN \ | |
85 | G2000 HH405 HUB405 JSE \ | |
b765ffb7 SR |
86 | KAREF katmai luan lwmon5 \ |
87 | METROBOX MIP405 MIP405T ML2 \ | |
88 | ml300 ocotea OCRTC ORSG \ | |
89 | p3p440 PCI405 pcs440ep PIP405 \ | |
90 | PLU405 PMC405 PPChameleonEVB sbc405 \ | |
d4024bb7 JO |
91 | sc3 sequoia sequoia_nand taihu \ |
92 | taishan VOH405 VOM405 W7OLMC \ | |
93 | W7OLMG walnut WUH405 XPEDITE1K \ | |
779e9751 | 94 | yellowstone yosemite yucca zeus \ |
7ebf7443 WD |
95 | " |
96 | ||
983fda83 WD |
97 | ######################################################################### |
98 | ## MPC8220 Systems | |
99 | ######################################################################### | |
100 | ||
101 | LIST_8220=" \ | |
102 | Alaska8220 Yukon8220 \ | |
103 | " | |
104 | ||
7ebf7443 WD |
105 | ######################################################################### |
106 | ## MPC824x Systems | |
107 | ######################################################################### | |
108 | ||
109 | LIST_824x=" \ | |
8e6f1a8e WD |
110 | A3000 barco BMW CPC45 \ |
111 | CU824 debris eXalion HIDDEN_DRAGON \ | |
144f7795 | 112 | MOUSSE MUSENKI MVBLUE \ |
53dd6ce4 WD |
113 | OXC PN62 Sandpoint8240 Sandpoint8245 \ |
114 | sbc8240 SL8245 utx8245 \ | |
7ebf7443 | 115 | " |
592c5cab | 116 | |
7ebf7443 | 117 | ######################################################################### |
7aa78614 | 118 | ## MPC8260 Systems (includes 8250, 8255 etc.) |
7ebf7443 WD |
119 | ######################################################################### |
120 | ||
121 | LIST_8260=" \ | |
384cc687 | 122 | atc cogent_mpc8260 CPU86 CPU87 \ |
8d4ac794 WD |
123 | ep8248 ep8260 ep82xxm gw8260 \ |
124 | hymod IPHASE4539 ISPAN MPC8260ADS \ | |
125 | MPC8266ADS MPC8272ADS PM826 PM828 \ | |
126 | ppmc8260 Rattler8248 RPXsuper rsdproto \ | |
127 | sacsng sbc8260 SCM TQM8260_AC \ | |
128 | TQM8260_AD TQM8260_AE ZPC1900 \ | |
7ebf7443 WD |
129 | " |
130 | ||
f046ccd1 EL |
131 | ######################################################################### |
132 | ## MPC83xx Systems (includes 8349, etc.) | |
133 | ######################################################################### | |
134 | ||
135 | LIST_83xx=" \ | |
068aab66 KP |
136 | MPC8313ERDB MPC832XEMDS MPC8349EMDS MPC8349ITX \ |
137 | MPC8349ITXGP MPC8360EMDS sbc8349 TQM834x \ | |
f046ccd1 EL |
138 | " |
139 | ||
140 | ||
42d1f039 WD |
141 | ######################################################################### |
142 | ## MPC85xx Systems (includes 8540, 8560 etc.) | |
143 | ######################################################################### | |
144 | ||
145 | LIST_85xx=" \ | |
81f481ca AF |
146 | MPC8540ADS MPC8540EVAL MPC8541CDS MPC8544DS \ |
147 | MPC8548CDS MPC8555CDS MPC8560ADS PM854 \ | |
148 | PM856 sbc8540 sbc8560 stxgp3 \ | |
885ec89b WD |
149 | stxssa TQM8540 TQM8541 TQM8555 \ |
150 | TQM8560 \ | |
42d1f039 WD |
151 | " |
152 | ||
822d5536 JL |
153 | ######################################################################### |
154 | ## MPC86xx Systems | |
155 | ######################################################################### | |
156 | ||
157 | LIST_86xx=" \ | |
158 | MPC8641HPCN \ | |
159 | " | |
160 | ||
7ebf7443 WD |
161 | ######################################################################### |
162 | ## 74xx/7xx Systems | |
163 | ######################################################################### | |
164 | ||
165 | LIST_74xx=" \ | |
3a473b2a | 166 | DB64360 DB64460 EVB64260 P3G4 \ |
1eac2a71 | 167 | p3m7448 PCIPPC2 PCIPPC6 ZUMA \ |
e0b369e4 | 168 | mpc7448hpc2 |
7ebf7443 WD |
169 | " |
170 | ||
171 | LIST_7xx=" \ | |
1eac2a71 SR |
172 | BAB7xx CPCI750 ELPPC p3m750 \ |
173 | ppmc7xx \ | |
7ebf7443 WD |
174 | " |
175 | ||
342717f7 WD |
176 | LIST_ppc="${LIST_5xx} ${LIST_5xxx} \ |
177 | ${LIST_8xx} \ | |
178 | ${LIST_8220} ${LIST_824x} ${LIST_8260} \ | |
f046ccd1 | 179 | ${LIST_83xx} \ |
342717f7 | 180 | ${LIST_85xx} \ |
822d5536 | 181 | ${LIST_86xx} \ |
342717f7 | 182 | ${LIST_4xx} \ |
0db5bca8 | 183 | ${LIST_74xx} ${LIST_7xx}" |
7ebf7443 WD |
184 | |
185 | ######################################################################### | |
186 | ## StrongARM Systems | |
187 | ######################################################################### | |
188 | ||
ea66bc88 | 189 | LIST_SA="assabet dnp1110 gcplus lart shannon" |
7ebf7443 WD |
190 | |
191 | ######################################################################### | |
192 | ## ARM7 Systems | |
193 | ######################################################################### | |
194 | ||
74f4304e | 195 | LIST_ARM7=" \ |
c570b2fd | 196 | armadillo B2 ep7312 evb4510 \ |
87cb6862 | 197 | impa7 integratorap ap7 ap720t \ |
b0d8f5bf | 198 | lpc2292sodimm modnet50 SMN42 \ |
74f4304e | 199 | " |
7ebf7443 WD |
200 | |
201 | ######################################################################### | |
202 | ## ARM9 Systems | |
203 | ######################################################################### | |
204 | ||
6f21347d | 205 | LIST_ARM9=" \ |
87cb6862 WD |
206 | at91rm9200dk cmc_pu2 \ |
207 | ap920t ap922_XA10 ap926ejs ap946es \ | |
208 | ap966 cp920t cp922_XA10 cp926ejs \ | |
209 | cp946es cp966 lpd7a400 mp2usb \ | |
addb2e16 | 210 | mx1ads mx1fs2 netstar omap1510inn \ |
32cb2c70 WD |
211 | omap1610h2 omap1610inn omap730p2 sbc2410x \ |
212 | scb9328 smdk2400 smdk2410 trab \ | |
213 | VCMA9 versatile versatileab versatilepb \ | |
214 | voiceblue \ | |
6f21347d | 215 | " |
7ebf7443 | 216 | |
74f4304e WD |
217 | ######################################################################### |
218 | ## ARM10 Systems | |
219 | ######################################################################### | |
220 | LIST_ARM10=" \ | |
87cb6862 | 221 | integratorcp cp1026 \ |
74f4304e WD |
222 | " |
223 | ||
8ed96046 WD |
224 | ######################################################################### |
225 | ## ARM11 Systems | |
226 | ######################################################################### | |
74f4304e | 227 | LIST_ARM11=" \ |
87cb6862 | 228 | cp1136 omap2420h4 \ |
74f4304e | 229 | " |
8ed96046 | 230 | |
7ebf7443 WD |
231 | ######################################################################### |
232 | ## Xscale Systems | |
233 | ######################################################################### | |
234 | ||
4ec3a7f0 | 235 | LIST_pxa=" \ |
20787e23 | 236 | adsvix cerf250 cradle csb226 \ |
5720df78 HS |
237 | delta innokom lubbock pleb2 \ |
238 | pxa255_idp wepep250 xaeniax xm250 \ | |
239 | xsengine zylonite \ | |
4ec3a7f0 | 240 | " |
7ebf7443 | 241 | |
9d8d5a5b | 242 | LIST_ixp="ixdp425 ixdpg425 pdnb3 scpu" |
7ebf7443 | 243 | |
2d5b561e | 244 | |
8ed96046 WD |
245 | LIST_arm=" \ |
246 | ${LIST_SA} \ | |
74f4304e | 247 | ${LIST_ARM7} ${LIST_ARM9} ${LIST_ARM10} ${LIST_ARM11} \ |
8ed96046 WD |
248 | ${LIST_pxa} ${LIST_ixp} \ |
249 | " | |
7ebf7443 | 250 | |
c021880a | 251 | ######################################################################### |
b62bdffb | 252 | ## MIPS Systems (default = big endian) |
c021880a WD |
253 | ######################################################################### |
254 | ||
255 | LIST_mips4kc="incaip" | |
256 | ||
3e38691e WD |
257 | LIST_mips5kc="purple" |
258 | ||
0c32d96d | 259 | LIST_au1xx0="dbau1000 dbau1100 dbau1500 dbau1550 dbau1550_el gth2" |
5da627a4 | 260 | |
ff36fd85 | 261 | LIST_mips="${LIST_mips4kc} ${LIST_mips5kc} ${LIST_au1xx0}" |
c021880a | 262 | |
b62bdffb WD |
263 | ######################################################################### |
264 | ## MIPS Systems (little endian) | |
265 | ######################################################################### | |
266 | ||
267 | LIST_mips4kc_el="" | |
268 | ||
269 | LIST_mips5kc_el="" | |
270 | ||
271 | LIST_au1xx0_el="dbau1550_el" | |
272 | ||
273 | LIST_mips_el="${LIST_mips4kc_el} ${LIST_mips5kc_el} ${LIST_au1xx0_el}" | |
274 | ||
7a8e9bed WD |
275 | ######################################################################### |
276 | ## i386 Systems | |
277 | ######################################################################### | |
278 | ||
279 | LIST_I486="sc520_cdp sc520_spunk sc520_spunk_rel" | |
280 | ||
281 | LIST_x86="${LIST_I486}" | |
282 | ||
c935d3bd WD |
283 | ######################################################################### |
284 | ## NIOS Systems | |
285 | ######################################################################### | |
286 | ||
287 | LIST_nios=" \ | |
4176c799 | 288 | ADNPESC1 ADNPESC1_base_32 \ |
aaf224ab | 289 | ADNPESC1_DNPEVA2_base_32 \ |
4176c799 WD |
290 | DK1C20 DK1C20_standard_32 \ |
291 | DK1S10 DK1S10_standard_32 DK1S10_mtx_ldk_20 \ | |
c935d3bd WD |
292 | " |
293 | ||
5c952cf0 WD |
294 | ######################################################################### |
295 | ## Nios-II Systems | |
296 | ######################################################################### | |
297 | ||
4176c799 WD |
298 | LIST_nios2=" \ |
299 | EP1C20 EP1S10 EP1S40 \ | |
300 | PCI5441 PK1C20 \ | |
301 | " | |
5c952cf0 | 302 | |
857cad37 WD |
303 | ######################################################################### |
304 | ## MicroBlaze Systems | |
305 | ######################################################################### | |
306 | ||
4176c799 | 307 | LIST_microblaze=" \ |
17980495 | 308 | suzaku ml401 xupv2p |
4176c799 | 309 | " |
857cad37 | 310 | |
f8c3b4f3 ZL |
311 | ######################################################################### |
312 | ## ColdFire Systems | |
313 | ######################################################################### | |
314 | ||
4176c799 WD |
315 | LIST_coldfire=" \ |
316 | cobra5272 EB+MCF-EV123 EB+MCF-EV123_internal \ | |
82e5236a | 317 | idmr M5271EVB M5272C3 M5282EVB \ |
daa6e418 | 318 | TASREG r5200 M5271EVB \ |
9acb626f | 319 | " |
f8c3b4f3 | 320 | |
6ccec449 WD |
321 | ######################################################################### |
322 | ## AVR32 Systems | |
323 | ######################################################################### | |
324 | ||
325 | LIST_avr32="atstk1002" | |
326 | ||
ef26a08f AL |
327 | ######################################################################### |
328 | ## Blackfin Systems | |
329 | ######################################################################### | |
330 | ||
331 | LIST_blackfin=" \ | |
65458987 | 332 | bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit \ |
ef26a08f AL |
333 | " |
334 | ||
7a8e9bed | 335 | #----------------------------------------------------------------------- |
7ebf7443 WD |
336 | |
337 | #----- for now, just run PPC by default ----- | |
338 | [ $# = 0 ] && set $LIST_ppc | |
339 | ||
340 | #----------------------------------------------------------------------- | |
341 | ||
342 | build_target() { | |
343 | target=$1 | |
344 | ||
345 | ${MAKE} distclean >/dev/null | |
346 | ${MAKE} ${target}_config | |
f9328639 MB |
347 | |
348 | ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \ | |
349 | | tee ${LOG_DIR}/$target.ERR | |
350 | ||
351 | ${CROSS_COMPILE:-ppc_8xx-}size ${BUILD_DIR}/u-boot \ | |
352 | | tee -a ${LOG_DIR}/$target.MAKELOG | |
7ebf7443 WD |
353 | } |
354 | ||
355 | #----------------------------------------------------------------------- | |
356 | ||
357 | ||
358 | for arg in $@ | |
359 | do | |
360 | case "$arg" in | |
44ba464b WD |
361 | arm|SA|ARM7|ARM9|ARM10|ARM11|ixp|pxa| \ |
362 | avr32| \ | |
363 | blackfin| \ | |
364 | coldfire| \ | |
857cad37 | 365 | microblaze| \ |
b62bdffb | 366 | mips|mips_el| \ |
5c952cf0 | 367 | nios|nios2| \ |
822d5536 | 368 | ppc|5xx|5xxx|8xx|8220|824x|8260|83xx|85xx|86xx|4xx|7xx|74xx| \ |
44ba464b | 369 | x86|I486) |
7ebf7443 WD |
370 | for target in `eval echo '$LIST_'${arg}` |
371 | do | |
372 | build_target ${target} | |
373 | done | |
374 | ;; | |
375 | *) build_target ${arg} | |
376 | ;; | |
377 | esac | |
378 | done |