]>
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 | 28 | cpci5200 icecube_5100 icecube_5200 EVAL5200 \ |
c81eb1f5 WD |
29 | mcc200 o2dnt pf5200 PM520 \ |
30 | Total5100 Total5200 Total5200_Rev2 TQM5200_auto \ | |
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=" \ | |
7521af1c | 64 | ADCIOP AP1000 AR405 ASH405 \ |
feaedfcf SR |
65 | bubinga CANBT CMS700 CPCI2DP \ |
66 | CPCI405 CPCI4052 CPCI405AB CPCI405DT \ | |
67 | CPCI440 CPCIISER4 CRAYL1 csb272 \ | |
68 | csb472 DASA_SIM DP405 DU405 \ | |
69 | ebony ERIC EXBITGEN G2000 \ | |
70 | HH405 HUB405 JSE KAREF \ | |
6e7fb6ea SR |
71 | luan METROBOX MIP405 MIP405T \ |
72 | ML2 ml300 ocotea OCRTC \ | |
73 | ORSG p3p440 PCI405 PIP405 \ | |
74 | PLU405 PMC405 PPChameleonEVB sbc405 \ | |
75 | VOH405 VOM405 W7OLMC W7OLMG \ | |
76 | walnut WUH405 XPEDITE1K yellowstone \ | |
77 | yosemite \ | |
7ebf7443 WD |
78 | " |
79 | ||
983fda83 WD |
80 | ######################################################################### |
81 | ## MPC8220 Systems | |
82 | ######################################################################### | |
83 | ||
84 | LIST_8220=" \ | |
85 | Alaska8220 Yukon8220 \ | |
86 | " | |
87 | ||
7ebf7443 WD |
88 | ######################################################################### |
89 | ## MPC824x Systems | |
90 | ######################################################################### | |
91 | ||
92 | LIST_824x=" \ | |
8e6f1a8e WD |
93 | A3000 barco BMW CPC45 \ |
94 | CU824 debris eXalion HIDDEN_DRAGON \ | |
95 | MOUSSE MUSENKI MVBLUE OXC \ | |
96 | PN62 Sandpoint8240 Sandpoint8245 sbc8240 \ | |
97 | SL8245 utx8245 \ | |
7ebf7443 | 98 | " |
592c5cab | 99 | |
7ebf7443 | 100 | ######################################################################### |
7aa78614 | 101 | ## MPC8260 Systems (includes 8250, 8255 etc.) |
7ebf7443 WD |
102 | ######################################################################### |
103 | ||
104 | LIST_8260=" \ | |
384cc687 | 105 | atc cogent_mpc8260 CPU86 CPU87 \ |
f901a83b WD |
106 | ep8248 ep8260 gw8260 hymod \ |
107 | IPHASE4539 ISPAN MPC8260ADS MPC8266ADS \ | |
108 | MPC8272ADS PM826 PM828 ppmc8260 \ | |
109 | Rattler8248 RPXsuper rsdproto sacsng \ | |
110 | sbc8260 SCM TQM8260_AC TQM8260_AD \ | |
111 | TQM8260_AE ZPC1900 \ | |
7ebf7443 WD |
112 | " |
113 | ||
f046ccd1 EL |
114 | ######################################################################### |
115 | ## MPC83xx Systems (includes 8349, etc.) | |
116 | ######################################################################### | |
117 | ||
118 | LIST_83xx=" \ | |
e6f2e902 | 119 | MPC8349ADS TQM834x\ |
f046ccd1 EL |
120 | " |
121 | ||
122 | ||
42d1f039 WD |
123 | ######################################################################### |
124 | ## MPC85xx Systems (includes 8540, 8560 etc.) | |
125 | ######################################################################### | |
126 | ||
127 | LIST_85xx=" \ | |
b0e32949 | 128 | MPC8540ADS MPC8540EVAL MPC8541CDS MPC8548CDS \ |
b4f15fda WD |
129 | MPC8555CDS MPC8560ADS PM854 PM856 \ |
130 | sbc8540 sbc8560 stxgp3 TQM8540 \ | |
d96f41e0 | 131 | TQM8541 TQM8555 TQM8560 \ |
42d1f039 WD |
132 | " |
133 | ||
7ebf7443 WD |
134 | ######################################################################### |
135 | ## 74xx/7xx Systems | |
136 | ######################################################################### | |
137 | ||
138 | LIST_74xx=" \ | |
3a473b2a WD |
139 | DB64360 DB64460 EVB64260 P3G4 \ |
140 | PCIPPC2 PCIPPC6 ZUMA \ | |
7ebf7443 WD |
141 | " |
142 | ||
143 | LIST_7xx=" \ | |
c419d1d6 | 144 | BAB7xx CPCI750 ELPPC \ |
7ebf7443 WD |
145 | " |
146 | ||
342717f7 WD |
147 | LIST_ppc="${LIST_5xx} ${LIST_5xxx} \ |
148 | ${LIST_8xx} \ | |
149 | ${LIST_8220} ${LIST_824x} ${LIST_8260} \ | |
f046ccd1 | 150 | ${LIST_83xx} \ |
342717f7 WD |
151 | ${LIST_85xx} \ |
152 | ${LIST_4xx} \ | |
0db5bca8 | 153 | ${LIST_74xx} ${LIST_7xx}" |
7ebf7443 WD |
154 | |
155 | ######################################################################### | |
156 | ## StrongARM Systems | |
157 | ######################################################################### | |
158 | ||
ea66bc88 | 159 | LIST_SA="assabet dnp1110 gcplus lart shannon" |
7ebf7443 WD |
160 | |
161 | ######################################################################### | |
162 | ## ARM7 Systems | |
163 | ######################################################################### | |
164 | ||
74f4304e | 165 | LIST_ARM7=" \ |
c570b2fd | 166 | armadillo B2 ep7312 evb4510 \ |
87cb6862 | 167 | impa7 integratorap ap7 ap720t \ |
74f4304e WD |
168 | modnet50 \ |
169 | " | |
7ebf7443 WD |
170 | |
171 | ######################################################################### | |
172 | ## ARM9 Systems | |
173 | ######################################################################### | |
174 | ||
6f21347d | 175 | LIST_ARM9=" \ |
87cb6862 WD |
176 | at91rm9200dk cmc_pu2 \ |
177 | ap920t ap922_XA10 ap926ejs ap946es \ | |
178 | ap966 cp920t cp922_XA10 cp926ejs \ | |
179 | cp946es cp966 lpd7a400 mp2usb \ | |
180 | mx1ads mx1fs2 omap1510inn omap1610h2 \ | |
181 | omap1610inn omap730p2 scb9328 smdk2400 \ | |
182 | smdk2410 trab VCMA9 versatile \ | |
183 | versatileab versatilepb voiceblue | |
6f21347d | 184 | " |
7ebf7443 | 185 | |
74f4304e WD |
186 | ######################################################################### |
187 | ## ARM10 Systems | |
188 | ######################################################################### | |
189 | LIST_ARM10=" \ | |
87cb6862 | 190 | integratorcp cp1026 \ |
74f4304e WD |
191 | " |
192 | ||
8ed96046 WD |
193 | ######################################################################### |
194 | ## ARM11 Systems | |
195 | ######################################################################### | |
74f4304e | 196 | LIST_ARM11=" \ |
87cb6862 | 197 | cp1136 omap2420h4 \ |
74f4304e | 198 | " |
8ed96046 | 199 | |
7ebf7443 WD |
200 | ######################################################################### |
201 | ## Xscale Systems | |
202 | ######################################################################### | |
203 | ||
4ec3a7f0 | 204 | LIST_pxa=" \ |
20787e23 | 205 | adsvix cerf250 cradle csb226 \ |
2df741bf WD |
206 | innokom lubbock pxa255_idp wepep250 \ |
207 | xaeniax xm250 xsengine \ | |
4ec3a7f0 | 208 | " |
7ebf7443 | 209 | |
2d5b561e | 210 | LIST_ixp="ixdp425" |
7ebf7443 | 211 | |
2d5b561e | 212 | |
8ed96046 WD |
213 | LIST_arm=" \ |
214 | ${LIST_SA} \ | |
74f4304e | 215 | ${LIST_ARM7} ${LIST_ARM9} ${LIST_ARM10} ${LIST_ARM11} \ |
8ed96046 WD |
216 | ${LIST_pxa} ${LIST_ixp} \ |
217 | " | |
7ebf7443 | 218 | |
c021880a | 219 | ######################################################################### |
b62bdffb | 220 | ## MIPS Systems (default = big endian) |
c021880a WD |
221 | ######################################################################### |
222 | ||
223 | LIST_mips4kc="incaip" | |
224 | ||
3e38691e WD |
225 | LIST_mips5kc="purple" |
226 | ||
ff36fd85 | 227 | LIST_au1xx0="dbau1000 dbau1100 dbau1500 dbau1550 dbau1550_el" |
5da627a4 | 228 | |
ff36fd85 | 229 | LIST_mips="${LIST_mips4kc} ${LIST_mips5kc} ${LIST_au1xx0}" |
c021880a | 230 | |
b62bdffb WD |
231 | ######################################################################### |
232 | ## MIPS Systems (little endian) | |
233 | ######################################################################### | |
234 | ||
235 | LIST_mips4kc_el="" | |
236 | ||
237 | LIST_mips5kc_el="" | |
238 | ||
239 | LIST_au1xx0_el="dbau1550_el" | |
240 | ||
241 | LIST_mips_el="${LIST_mips4kc_el} ${LIST_mips5kc_el} ${LIST_au1xx0_el}" | |
242 | ||
7a8e9bed WD |
243 | ######################################################################### |
244 | ## i386 Systems | |
245 | ######################################################################### | |
246 | ||
247 | LIST_I486="sc520_cdp sc520_spunk sc520_spunk_rel" | |
248 | ||
249 | LIST_x86="${LIST_I486}" | |
250 | ||
c935d3bd WD |
251 | ######################################################################### |
252 | ## NIOS Systems | |
253 | ######################################################################### | |
254 | ||
255 | LIST_nios=" \ | |
aaf224ab WD |
256 | ADNPESC1 ADNPESC1_base_32 \ |
257 | ADNPESC1_DNPEVA2_base_32 \ | |
c935d3bd | 258 | DK1C20 DK1C20_standard_32 \ |
ec4c544b | 259 | DK1S10 DK1S10_standard_32 DK1S10_mtx_ldk_20 \ |
c935d3bd WD |
260 | " |
261 | ||
5c952cf0 WD |
262 | ######################################################################### |
263 | ## Nios-II Systems | |
264 | ######################################################################### | |
265 | ||
266 | LIST_nios2="PCI5441 PK1C20" | |
267 | ||
857cad37 WD |
268 | ######################################################################### |
269 | ## MicroBlaze Systems | |
270 | ######################################################################### | |
271 | ||
272 | LIST_microblaze="suzaku" | |
273 | ||
7a8e9bed | 274 | #----------------------------------------------------------------------- |
7ebf7443 WD |
275 | |
276 | #----- for now, just run PPC by default ----- | |
277 | [ $# = 0 ] && set $LIST_ppc | |
278 | ||
279 | #----------------------------------------------------------------------- | |
280 | ||
281 | build_target() { | |
282 | target=$1 | |
283 | ||
284 | ${MAKE} distclean >/dev/null | |
285 | ${MAKE} ${target}_config | |
a8c7c708 | 286 | ${MAKE} ${JOBS} all 2>&1 >LOG/$target.MAKELOG | tee LOG/$target.ERR |
7ebf7443 WD |
287 | ${CROSS_COMPILE:-ppc_8xx-}size u-boot | tee -a LOG/$target.MAKELOG |
288 | } | |
289 | ||
290 | #----------------------------------------------------------------------- | |
291 | ||
292 | ||
293 | for arg in $@ | |
294 | do | |
295 | case "$arg" in | |
f046ccd1 | 296 | ppc|5xx|5xxx|8xx|8220|824x|8260|83xx|85xx|4xx|7xx|74xx| \ |
74f4304e | 297 | arm|SA|ARM7|ARM9|ARM10|ARM11|pxa|ixp| \ |
857cad37 | 298 | microblaze| \ |
b62bdffb | 299 | mips|mips_el| \ |
5c952cf0 | 300 | nios|nios2| \ |
2d5b561e | 301 | x86|I486) |
7ebf7443 WD |
302 | for target in `eval echo '$LIST_'${arg}` |
303 | do | |
304 | build_target ${target} | |
305 | done | |
306 | ;; | |
307 | *) build_target ${arg} | |
308 | ;; | |
309 | esac | |
310 | done |