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