]>
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 \ |
6c7a1408 | 29 | Total5100 Total5200 Total5200_Rev2 TQM5200_AA \ |
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 \ | |
f7d1572b | 54 | UC100 v37 \ |
7ebf7443 WD |
55 | " |
56 | ||
57 | ######################################################################### | |
58 | ## PPC4xx Systems | |
59 | ######################################################################### | |
60 | ||
61 | LIST_4xx=" \ | |
cd0a9de6 WD |
62 | ADCIOP AR405 ASH405 BUBINGA405EP \ |
63 | CANBT CPCI405 CPCI4052 CPCI405AB \ | |
64 | CPCI440 CPCIISER4 CRAYL1 csb272 \ | |
aa245090 WD |
65 | csb472 DASA_SIM DP405 DU405 \ |
66 | EBONY ERIC EXBITGEN HUB405 \ | |
67 | JSE MIP405 MIP405T ML2 \ | |
68 | ml300 OCOTEA OCRTC ORSG \ | |
69 | PCI405 PIP405 PLU405 PMC405 \ | |
70 | PPChameleonEVB VOH405 W7OLMC W7OLMG \ | |
c419d1d6 | 71 | WALNUT405 WUH405 XPEDITE1K \ |
7ebf7443 WD |
72 | " |
73 | ||
983fda83 WD |
74 | ######################################################################### |
75 | ## MPC8220 Systems | |
76 | ######################################################################### | |
77 | ||
78 | LIST_8220=" \ | |
79 | Alaska8220 Yukon8220 \ | |
80 | " | |
81 | ||
7ebf7443 WD |
82 | ######################################################################### |
83 | ## MPC824x Systems | |
84 | ######################################################################### | |
85 | ||
86 | LIST_824x=" \ | |
cd0a9de6 | 87 | A3000 BMW CPC45 CU824 \ |
80885a9d WD |
88 | debris eXalion MOUSSE MUSENKI \ |
89 | MVBLUE OXC PN62 Sandpoint8240 \ | |
466b7410 | 90 | Sandpoint8245 SL8245 utx8245 sbc8240 \ |
7ebf7443 | 91 | " |
592c5cab | 92 | |
7ebf7443 | 93 | ######################################################################### |
7aa78614 | 94 | ## MPC8260 Systems (includes 8250, 8255 etc.) |
7ebf7443 WD |
95 | ######################################################################### |
96 | ||
97 | LIST_8260=" \ | |
45219c46 | 98 | atc cogent_mpc8260 CPU86 ep8260 \ |
c3c7f861 WD |
99 | gw8260 hymod IPHASE4539 ISPAN \ |
100 | MPC8260ADS MPC8266ADS MPC8272ADS PM826 \ | |
101 | PM828 ppmc8260 PQ2FADS RPXsuper \ | |
102 | rsdproto sacsng sbc8260 SCM \ | |
103 | TQM8260_AC TQM8260_AD TQM8260_AE ZPC1900 \ | |
7ebf7443 WD |
104 | " |
105 | ||
42d1f039 WD |
106 | ######################################################################### |
107 | ## MPC85xx Systems (includes 8540, 8560 etc.) | |
108 | ######################################################################### | |
109 | ||
110 | LIST_85xx=" \ | |
03f5c550 | 111 | MPC8540ADS MPC8541CDS MPC8555CDS MPC8560ADS \ |
c15f3120 | 112 | sbc8540 sbc8560 stxgp3 \ |
42d1f039 WD |
113 | " |
114 | ||
7ebf7443 WD |
115 | ######################################################################### |
116 | ## 74xx/7xx Systems | |
117 | ######################################################################### | |
118 | ||
119 | LIST_74xx=" \ | |
3a473b2a WD |
120 | DB64360 DB64460 EVB64260 P3G4 \ |
121 | PCIPPC2 PCIPPC6 ZUMA \ | |
7ebf7443 WD |
122 | " |
123 | ||
124 | LIST_7xx=" \ | |
c419d1d6 | 125 | BAB7xx CPCI750 ELPPC \ |
7ebf7443 WD |
126 | " |
127 | ||
945af8d7 WD |
128 | LIST_ppc="${LIST_5xx} ${LIST_5xxx} \ |
129 | ${LIST_8xx} \ | |
0db5bca8 | 130 | ${LIST_824x} ${LIST_8260} \ |
42d1f039 | 131 | ${LIST_85xx} \ |
0db5bca8 WD |
132 | ${LIST_4xx} \ |
133 | ${LIST_74xx} ${LIST_7xx}" | |
7ebf7443 WD |
134 | |
135 | ######################################################################### | |
136 | ## StrongARM Systems | |
137 | ######################################################################### | |
138 | ||
ea66bc88 | 139 | LIST_SA="assabet dnp1110 gcplus lart shannon" |
7ebf7443 WD |
140 | |
141 | ######################################################################### | |
142 | ## ARM7 Systems | |
143 | ######################################################################### | |
144 | ||
39539887 | 145 | LIST_ARM7="B2 ep7312 evb4510 impa7 modnet50" |
7ebf7443 WD |
146 | |
147 | ######################################################################### | |
148 | ## ARM9 Systems | |
149 | ######################################################################### | |
150 | ||
6f21347d | 151 | LIST_ARM9=" \ |
cf33678e WD |
152 | at91rm9200dk cmc_pu2 integratorcp integratorap \ |
153 | lpd7a400 mx1ads mx1fs2 omap1510inn \ | |
154 | omap1610h2 omap1610inn omap730p2 scb9328 \ | |
155 | smdk2400 smdk2410 trab VCMA9 \ | |
156 | versatile \ | |
6f21347d | 157 | " |
7ebf7443 WD |
158 | |
159 | ######################################################################### | |
160 | ## Xscale Systems | |
161 | ######################################################################### | |
162 | ||
4ec3a7f0 WD |
163 | LIST_pxa=" \ |
164 | cerf250 cradle csb226 innokom \ | |
165 | lubbock wepep250 xaeniax xm250 \ | |
166 | xsengine \ | |
167 | " | |
7ebf7443 | 168 | |
2d5b561e | 169 | LIST_ixp="ixdp425" |
7ebf7443 | 170 | |
2d5b561e WD |
171 | |
172 | LIST_arm="${LIST_SA} ${LIST_ARM7} ${LIST_ARM9} ${LIST_pxa} ${LIST_ixp}" | |
7ebf7443 | 173 | |
c021880a | 174 | ######################################################################### |
5da627a4 | 175 | ## MIPS Systems |
c021880a WD |
176 | ######################################################################### |
177 | ||
178 | LIST_mips4kc="incaip" | |
179 | ||
3e38691e WD |
180 | LIST_mips5kc="purple" |
181 | ||
a2663ea4 | 182 | LIST_au1x00="dbau1000 dbau1100 dbau1500" |
5da627a4 WD |
183 | |
184 | LIST_mips="${LIST_mips4kc} ${LIST_mips5kc} ${LIST_au1x00}" | |
c021880a | 185 | |
7a8e9bed WD |
186 | ######################################################################### |
187 | ## i386 Systems | |
188 | ######################################################################### | |
189 | ||
190 | LIST_I486="sc520_cdp sc520_spunk sc520_spunk_rel" | |
191 | ||
192 | LIST_x86="${LIST_I486}" | |
193 | ||
c935d3bd WD |
194 | ######################################################################### |
195 | ## NIOS Systems | |
196 | ######################################################################### | |
197 | ||
198 | LIST_nios=" \ | |
aaf224ab WD |
199 | ADNPESC1 ADNPESC1_base_32 \ |
200 | ADNPESC1_DNPEVA2_base_32 \ | |
c935d3bd | 201 | DK1C20 DK1C20_standard_32 \ |
ec4c544b | 202 | DK1S10 DK1S10_standard_32 DK1S10_mtx_ldk_20 \ |
c935d3bd WD |
203 | " |
204 | ||
5c952cf0 WD |
205 | ######################################################################### |
206 | ## Nios-II Systems | |
207 | ######################################################################### | |
208 | ||
209 | LIST_nios2="PCI5441 PK1C20" | |
210 | ||
857cad37 WD |
211 | ######################################################################### |
212 | ## MicroBlaze Systems | |
213 | ######################################################################### | |
214 | ||
215 | LIST_microblaze="suzaku" | |
216 | ||
7a8e9bed | 217 | #----------------------------------------------------------------------- |
7ebf7443 WD |
218 | |
219 | #----- for now, just run PPC by default ----- | |
220 | [ $# = 0 ] && set $LIST_ppc | |
221 | ||
222 | #----------------------------------------------------------------------- | |
223 | ||
224 | build_target() { | |
225 | target=$1 | |
226 | ||
227 | ${MAKE} distclean >/dev/null | |
228 | ${MAKE} ${target}_config | |
a8c7c708 | 229 | ${MAKE} ${JOBS} all 2>&1 >LOG/$target.MAKELOG | tee LOG/$target.ERR |
7ebf7443 WD |
230 | ${CROSS_COMPILE:-ppc_8xx-}size u-boot | tee -a LOG/$target.MAKELOG |
231 | } | |
232 | ||
233 | #----------------------------------------------------------------------- | |
234 | ||
235 | ||
236 | for arg in $@ | |
237 | do | |
238 | case "$arg" in | |
983fda83 | 239 | ppc|5xx|5xxx|8xx|8220|824x|8260|85xx|4xx|7xx|74xx| \ |
2d5b561e | 240 | arm|SA|ARM7|ARM9|pxa|ixp| \ |
857cad37 | 241 | microblaze| \ |
2d5b561e | 242 | mips| \ |
5c952cf0 | 243 | nios|nios2| \ |
2d5b561e | 244 | x86|I486) |
7ebf7443 WD |
245 | for target in `eval echo '$LIST_'${arg}` |
246 | do | |
247 | build_target ${target} | |
248 | done | |
249 | ;; | |
250 | *) build_target ${arg} | |
251 | ;; | |
252 | esac | |
253 | done |