]> git.ipfire.org Git - people/ms/u-boot.git/blob - MAKEALL
5xxx: write MAC address to mac-address and local-mac-address
[people/ms/u-boot.git] / MAKEALL
1 #!/bin/sh
2
3 : ${JOBS:=}
4
5 if [ "${CROSS_COMPILE}" ] ; then
6 MAKE="make CROSS_COMPILE=${CROSS_COMPILE}"
7 else
8 MAKE=make
9 fi
10
11 if [ "${MAKEALL_LOGDIR}" ] ; then
12 LOG_DIR=${MAKEALL_LOGDIR}
13 else
14 LOG_DIR="LOG"
15 fi
16
17 if [ ! "${BUILD_DIR}" ] ; then
18 BUILD_DIR="."
19 fi
20
21 [ -d ${LOG_DIR} ] || mkdir ${LOG_DIR} || exit 1
22
23 LIST=""
24
25 #########################################################################
26 ## MPC5xx Systems
27 #########################################################################
28
29 LIST_5xx=" \
30 cmi_mpc5xx \
31 "
32
33 #########################################################################
34 ## MPC5xxx Systems
35 #########################################################################
36
37 LIST_5xxx=" \
38 BC3450 cpci5200 EVAL5200 fo300 \
39 icecube_5100 icecube_5200 lite5200b mcc200 \
40 mecp5200 motionpro o2dnt pf5200 \
41 PM520 TB5200 Total5100 Total5200 \
42 Total5200_Rev2 TQM5200 TQM5200_B TQM5200S \
43 v38b \
44 "
45
46 #########################################################################
47 ## MPC8xx Systems
48 #########################################################################
49 LIST_8xx=" \
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 \
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 \
68 TQM885D \
69 uc100 \
70 v37 \
71 "
72
73 #########################################################################
74 ## PPC4xx Systems
75 #########################################################################
76
77 LIST_4xx=" \
78 acadia ADCIOP alpr AP1000 \
79 AR405 ASH405 bamboo bubinga \
80 CANBT CMS700 CPCI2DP CPCI405 \
81 CPCI4052 CPCI405AB CPCI405DT CPCI440 \
82 CPCIISER4 CRAYL1 csb272 csb472 \
83 DASA_SIM DP405 DU405 ebony \
84 ERIC EXBITGEN G2000 HH405 \
85 HUB405 JSE KAREF katmai \
86 luan METROBOX MIP405 MIP405T \
87 ML2 ml300 ocotea OCRTC \
88 ORSG p3p440 PCI405 pcs440ep \
89 PIP405 PLU405 PMC405 PPChameleonEVB \
90 sbc405 sc3 sequoia sequoia_nand \
91 taishan VOH405 VOM405 W7OLMC \
92 W7OLMG walnut WUH405 XPEDITE1K \
93 yellowstone yosemite yucca \
94 "
95
96 #########################################################################
97 ## MPC8220 Systems
98 #########################################################################
99
100 LIST_8220=" \
101 Alaska8220 Yukon8220 \
102 "
103
104 #########################################################################
105 ## MPC824x Systems
106 #########################################################################
107
108 LIST_824x=" \
109 A3000 barco BMW CPC45 \
110 CU824 debris eXalion HIDDEN_DRAGON \
111 MOUSSE MUSENKI MVBLUE \
112 OXC PN62 Sandpoint8240 Sandpoint8245 \
113 sbc8240 SL8245 utx8245 \
114 "
115
116 #########################################################################
117 ## MPC8260 Systems (includes 8250, 8255 etc.)
118 #########################################################################
119
120 LIST_8260=" \
121 atc cogent_mpc8260 CPU86 CPU87 \
122 ep8248 ep8260 ep82xxm gw8260 \
123 hymod IPHASE4539 ISPAN MPC8260ADS \
124 MPC8266ADS MPC8272ADS PM826 PM828 \
125 ppmc8260 Rattler8248 RPXsuper rsdproto \
126 sacsng sbc8260 SCM TQM8260_AC \
127 TQM8260_AD TQM8260_AE ZPC1900 \
128 "
129
130 #########################################################################
131 ## MPC83xx Systems (includes 8349, etc.)
132 #########################################################################
133
134 LIST_83xx=" \
135 MPC832XEMDS MPC8349EMDS MPC8349ITX MPC8349ITXGP \
136 MPC8360EMDS sbc8349 TQM834x \
137 "
138
139
140 #########################################################################
141 ## MPC85xx Systems (includes 8540, 8560 etc.)
142 #########################################################################
143
144 LIST_85xx=" \
145 MPC8540ADS MPC8540EVAL MPC8541CDS MPC8544DS \
146 MPC8548CDS MPC8555CDS MPC8560ADS PM854 \
147 PM856 sbc8540 sbc8560 stxgp3 \
148 stxssa TQM8540 TQM8541 TQM8555 \
149 TQM8560 \
150 "
151
152 #########################################################################
153 ## 74xx/7xx Systems
154 #########################################################################
155
156 LIST_74xx=" \
157 DB64360 DB64460 EVB64260 P3G4 \
158 p3m7448 PCIPPC2 PCIPPC6 ZUMA \
159 mpc7448hpc2
160 "
161
162 LIST_7xx=" \
163 BAB7xx CPCI750 ELPPC p3m750 \
164 ppmc7xx \
165 "
166
167 LIST_ppc="${LIST_5xx} ${LIST_5xxx} \
168 ${LIST_8xx} \
169 ${LIST_8220} ${LIST_824x} ${LIST_8260} \
170 ${LIST_83xx} \
171 ${LIST_85xx} \
172 ${LIST_4xx} \
173 ${LIST_74xx} ${LIST_7xx}"
174
175 #########################################################################
176 ## StrongARM Systems
177 #########################################################################
178
179 LIST_SA="assabet dnp1110 gcplus lart shannon"
180
181 #########################################################################
182 ## ARM7 Systems
183 #########################################################################
184
185 LIST_ARM7=" \
186 armadillo B2 ep7312 evb4510 \
187 impa7 integratorap ap7 ap720t \
188 lpc2292sodimm modnet50 \
189 "
190
191 #########################################################################
192 ## ARM9 Systems
193 #########################################################################
194
195 LIST_ARM9=" \
196 at91rm9200dk cmc_pu2 \
197 ap920t ap922_XA10 ap926ejs ap946es \
198 ap966 cp920t cp922_XA10 cp926ejs \
199 cp946es cp966 lpd7a400 mp2usb \
200 mx1ads mx1fs2 netstar omap1510inn \
201 omap1610h2 omap1610inn omap730p2 sbc2410x \
202 scb9328 smdk2400 smdk2410 trab \
203 VCMA9 versatile versatileab versatilepb \
204 voiceblue \
205 "
206
207 #########################################################################
208 ## ARM10 Systems
209 #########################################################################
210 LIST_ARM10=" \
211 integratorcp cp1026 \
212 "
213
214 #########################################################################
215 ## ARM11 Systems
216 #########################################################################
217 LIST_ARM11=" \
218 cp1136 omap2420h4 \
219 "
220
221 #########################################################################
222 ## Xscale Systems
223 #########################################################################
224
225 LIST_pxa=" \
226 adsvix cerf250 cradle csb226 \
227 delta innokom lubbock pleb2 \
228 pxa255_idp wepep250 xaeniax xm250 \
229 xsengine zylonite \
230 "
231
232 LIST_ixp="ixdp425 ixdpg425 pdnb3 scpu"
233
234
235 LIST_arm=" \
236 ${LIST_SA} \
237 ${LIST_ARM7} ${LIST_ARM9} ${LIST_ARM10} ${LIST_ARM11} \
238 ${LIST_pxa} ${LIST_ixp} \
239 "
240
241 #########################################################################
242 ## MIPS Systems (default = big endian)
243 #########################################################################
244
245 LIST_mips4kc="incaip"
246
247 LIST_mips5kc="purple"
248
249 LIST_au1xx0="dbau1000 dbau1100 dbau1500 dbau1550 dbau1550_el gth2"
250
251 LIST_mips="${LIST_mips4kc} ${LIST_mips5kc} ${LIST_au1xx0}"
252
253 #########################################################################
254 ## MIPS Systems (little endian)
255 #########################################################################
256
257 LIST_mips4kc_el=""
258
259 LIST_mips5kc_el=""
260
261 LIST_au1xx0_el="dbau1550_el"
262
263 LIST_mips_el="${LIST_mips4kc_el} ${LIST_mips5kc_el} ${LIST_au1xx0_el}"
264
265 #########################################################################
266 ## i386 Systems
267 #########################################################################
268
269 LIST_I486="sc520_cdp sc520_spunk sc520_spunk_rel"
270
271 LIST_x86="${LIST_I486}"
272
273 #########################################################################
274 ## NIOS Systems
275 #########################################################################
276
277 LIST_nios=" \
278 ADNPESC1 ADNPESC1_base_32 \
279 ADNPESC1_DNPEVA2_base_32 \
280 DK1C20 DK1C20_standard_32 \
281 DK1S10 DK1S10_standard_32 DK1S10_mtx_ldk_20 \
282 "
283
284 #########################################################################
285 ## Nios-II Systems
286 #########################################################################
287
288 LIST_nios2=" \
289 EP1C20 EP1S10 EP1S40 \
290 PCI5441 PK1C20 \
291 "
292
293 #########################################################################
294 ## MicroBlaze Systems
295 #########################################################################
296
297 LIST_microblaze=" \
298 suzaku ml401 xupv2p
299 "
300
301 #########################################################################
302 ## ColdFire Systems
303 #########################################################################
304
305 LIST_coldfire=" \
306 cobra5272 EB+MCF-EV123 EB+MCF-EV123_internal \
307 idmr M5271EVB M5272C3 M5282EVB \
308 TASREG r5200 M5271EVB \
309 "
310
311 #########################################################################
312 ## AVR32 Systems
313 #########################################################################
314
315 LIST_avr32="atstk1002"
316
317 #########################################################################
318 ## Blackfin Systems
319 #########################################################################
320
321 LIST_blackfin=" \
322 bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit \
323 "
324
325 #-----------------------------------------------------------------------
326
327 #----- for now, just run PPC by default -----
328 [ $# = 0 ] && set $LIST_ppc
329
330 #-----------------------------------------------------------------------
331
332 build_target() {
333 target=$1
334
335 ${MAKE} distclean >/dev/null
336 ${MAKE} ${target}_config
337
338 ${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
339 | tee ${LOG_DIR}/$target.ERR
340
341 ${CROSS_COMPILE:-ppc_8xx-}size ${BUILD_DIR}/u-boot \
342 | tee -a ${LOG_DIR}/$target.MAKELOG
343 }
344
345 #-----------------------------------------------------------------------
346
347
348 for arg in $@
349 do
350 case "$arg" in
351 arm|SA|ARM7|ARM9|ARM10|ARM11|ixp|pxa| \
352 avr32| \
353 blackfin| \
354 coldfire| \
355 microblaze| \
356 mips|mips_el| \
357 nios|nios2| \
358 ppc|5xx|5xxx|8xx|8220|824x|8260|83xx|85xx|4xx|7xx|74xx| \
359 x86|I486)
360 for target in `eval echo '$LIST_'${arg}`
361 do
362 build_target ${target}
363 done
364 ;;
365 *) build_target ${arg}
366 ;;
367 esac
368 done