]>
Commit | Line | Data |
---|---|---|
7ebf7443 WD |
1 | # |
2 | # (C) Copyright 2000, 2001, 2002 | |
3 | # Wolfgang Denk, DENX Software Engineering, [email protected]. | |
4 | # | |
5 | # See file CREDITS for list of people who contributed to this | |
6 | # project. | |
7 | # | |
8 | # This program is free software; you can redistribute it and/or | |
9 | # modify it under the terms of the GNU General Public License as | |
10 | # published by the Free Software Foundation; either version 2 of | |
11 | # the License, or (at your option) any later version. | |
12 | # | |
13 | # This program is distributed in the hope that it will be useful, | |
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | # GNU General Public License for more details. | |
17 | # | |
18 | # You should have received a copy of the GNU General Public License | |
19 | # along with this program; if not, write to the Free Software | |
20 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, | |
21 | # MA 02111-1307 USA | |
22 | # | |
23 | ||
24 | HOSTARCH := $(shell uname -m | \ | |
25 | sed -e s/i.86/i386/ \ | |
26 | -e s/sun4u/sparc64/ \ | |
27 | -e s/arm.*/arm/ \ | |
28 | -e s/sa110/arm/ \ | |
29 | -e s/powerpc/ppc/ \ | |
30 | -e s/macppc/ppc/) | |
31 | ||
32 | HOSTOS := $(shell uname -s | tr A-Z a-z | \ | |
33 | sed -e 's/\(cygwin\).*/cygwin/') | |
34 | ||
35 | export HOSTARCH | |
36 | ||
37 | # Deal with colliding definitions from tcsh etc. | |
38 | VENDOR= | |
39 | ||
40 | ######################################################################### | |
41 | ||
42 | TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi) | |
43 | export TOPDIR | |
44 | ||
45 | ifeq (include/config.mk,$(wildcard include/config.mk)) | |
46 | # load ARCH, BOARD, and CPU configuration | |
47 | include include/config.mk | |
48 | export ARCH CPU BOARD VENDOR | |
49 | # load other configuration | |
50 | include $(TOPDIR)/config.mk | |
51 | ||
52 | ifndef CROSS_COMPILE | |
53 | ifeq ($(HOSTARCH),ppc) | |
54 | CROSS_COMPILE = | |
55 | else | |
7ebf7443 WD |
56 | ifeq ($(ARCH),ppc) |
57 | CROSS_COMPILE = ppc_8xx- | |
58 | endif | |
59 | ifeq ($(ARCH),arm) | |
dc7c9a1a | 60 | CROSS_COMPILE = arm-linux- |
7ebf7443 | 61 | endif |
2262cfee | 62 | ifeq ($(ARCH),i386) |
7a8e9bed WD |
63 | ifeq ($(HOSTARCH),i386) |
64 | CROSS_COMPILE = | |
65 | else | |
66 | CROSS_COMPILE = i386-linux- | |
67 | endif | |
2262cfee | 68 | endif |
43d9616c WD |
69 | ifeq ($(ARCH),mips) |
70 | CROSS_COMPILE = mips_4KC- | |
71 | endif | |
7ebf7443 WD |
72 | endif |
73 | endif | |
74 | ||
75 | export CROSS_COMPILE | |
76 | ||
77 | # The "tools" are needed early, so put this first | |
78 | SUBDIRS = tools \ | |
79 | lib_generic \ | |
80 | lib_$(ARCH) \ | |
81 | cpu/$(CPU) \ | |
82 | board/$(BOARDDIR) \ | |
83 | common \ | |
84 | disk \ | |
85 | fs \ | |
86 | net \ | |
87 | rtc \ | |
88 | dtt \ | |
89 | drivers \ | |
90 | post \ | |
91 | post/cpu \ | |
92 | examples | |
93 | ||
94 | ######################################################################### | |
95 | # U-Boot objects....order is important (i.e. start must be first) | |
96 | ||
97 | OBJS = cpu/$(CPU)/start.o | |
2262cfee WD |
98 | ifeq ($(CPU),i386) |
99 | OBJS += cpu/$(CPU)/start16.o | |
100 | OBJS += cpu/$(CPU)/reset.o | |
101 | endif | |
7ebf7443 WD |
102 | ifeq ($(CPU),ppc4xx) |
103 | OBJS += cpu/$(CPU)/resetvec.o | |
104 | endif | |
105 | ||
106 | LIBS = board/$(BOARDDIR)/lib$(BOARD).a | |
107 | LIBS += cpu/$(CPU)/lib$(CPU).a | |
108 | LIBS += lib_$(ARCH)/lib$(ARCH).a | |
71f95118 | 109 | LIBS += fs/jffs2/libjffs2.a fs/fdos/libfdos.a fs/fat/libfat.a |
7ebf7443 WD |
110 | LIBS += net/libnet.a |
111 | LIBS += disk/libdisk.a | |
112 | LIBS += rtc/librtc.a | |
113 | LIBS += dtt/libdtt.a | |
114 | LIBS += drivers/libdrivers.a | |
115 | LIBS += post/libpost.a post/cpu/libcpu.a | |
116 | LIBS += common/libcommon.a | |
117 | LIBS += lib_generic/libgeneric.a | |
118 | ||
bdccc4fe | 119 | ######################################################################### |
7ebf7443 WD |
120 | ######################################################################### |
121 | ||
bdccc4fe | 122 | ALL = u-boot.srec u-boot.bin System.map |
7ebf7443 | 123 | |
bdccc4fe | 124 | all: $(ALL) |
7ebf7443 WD |
125 | |
126 | u-boot.srec: u-boot | |
127 | $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ | |
128 | ||
129 | u-boot.bin: u-boot | |
130 | $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@ | |
131 | ||
bdccc4fe WD |
132 | u-boot.img: u-boot.bin |
133 | ./tools/mkimage -A $(ARCH) -T firmware -C none \ | |
134 | -a $(TEXT_BASE) -e 0 \ | |
135 | -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \ | |
136 | sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \ | |
137 | -d $< $@ | |
138 | ||
7ebf7443 WD |
139 | u-boot.dis: u-boot |
140 | $(OBJDUMP) -d $< > $@ | |
141 | ||
142 | u-boot: depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT) | |
8bde7f77 WD |
143 | UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ |
144 | $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \ | |
b2184c31 WD |
145 | --start-group $(LIBS) --end-group \ |
146 | -Map u-boot.map -o u-boot | |
7ebf7443 WD |
147 | |
148 | subdirs: | |
149 | @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir || exit 1 ; done | |
150 | ||
8f713fdf | 151 | gdbtools: |
152 | $(MAKE) -C tools/gdb || exit 1 | |
153 | ||
7ebf7443 WD |
154 | depend dep: |
155 | @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done | |
156 | ||
157 | tags: | |
158 | ctags -w `find $(SUBDIRS) include \ | |
159 | \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` | |
160 | ||
161 | etags: | |
162 | etags -a `find $(SUBDIRS) include \ | |
163 | \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)` | |
164 | ||
165 | System.map: u-boot | |
166 | @$(NM) $< | \ | |
167 | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \ | |
168 | sort > System.map | |
169 | ||
170 | ######################################################################### | |
171 | else | |
172 | all install u-boot u-boot.srec depend dep: | |
173 | @echo "System not configured - see README" >&2 | |
174 | @ exit 1 | |
175 | endif | |
176 | ||
177 | ######################################################################### | |
178 | ||
179 | unconfig: | |
180 | rm -f include/config.h include/config.mk | |
181 | ||
182 | #======================================================================== | |
183 | # PowerPC | |
184 | #======================================================================== | |
0db5bca8 WD |
185 | |
186 | ######################################################################### | |
187 | ## MPC5xx Systems | |
188 | ######################################################################### | |
189 | ||
190 | cmi_mpc5xx_config: unconfig | |
191 | @./mkconfig $(@:_config=) ppc mpc5xx cmi | |
192 | ||
945af8d7 WD |
193 | ######################################################################### |
194 | ## MPC5xxx Systems | |
195 | ######################################################################### | |
196 | IceCube_5200_config \ | |
197 | IceCube_5100_config: unconfig | |
198 | @ >include/config.h | |
199 | @[ -z "$(findstring _5200,$@)" ] || \ | |
200 | { echo "#define CONFIG_MPC5200" >>include/config.h ; \ | |
201 | echo "... with MPC5200 processor" ; \ | |
202 | } | |
203 | @[ -z "$(findstring _5100,$@)" ] || \ | |
204 | { echo "#define CONFIG_MGT5100" >>include/config.h ; \ | |
205 | echo "... with MGT5100 processor" ; \ | |
206 | } | |
207 | @./mkconfig -a IceCube ppc mpc5xxx icecube | |
208 | ||
7ebf7443 WD |
209 | ######################################################################### |
210 | ## MPC8xx Systems | |
211 | ######################################################################### | |
212 | ||
213 | ADS860_config: unconfig | |
214 | @./mkconfig $(@:_config=) ppc mpc8xx fads | |
215 | ||
216 | AMX860_config : unconfig | |
217 | @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel | |
218 | ||
219 | c2mon_config: unconfig | |
220 | @./mkconfig $(@:_config=) ppc mpc8xx c2mon | |
221 | ||
222 | CCM_config: unconfig | |
223 | @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens | |
224 | ||
225 | cogent_mpc8xx_config: unconfig | |
226 | @./mkconfig $(@:_config=) ppc mpc8xx cogent | |
227 | ||
3bac3513 WD |
228 | ELPT860_config: unconfig |
229 | @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX | |
230 | ||
7ebf7443 WD |
231 | ESTEEM192E_config: unconfig |
232 | @./mkconfig $(@:_config=) ppc mpc8xx esteem192e | |
233 | ||
234 | ETX094_config : unconfig | |
235 | @./mkconfig $(@:_config=) ppc mpc8xx etx094 | |
236 | ||
237 | FADS823_config \ | |
238 | FADS850SAR_config \ | |
2535d602 | 239 | MPC86xADS_config \ |
7ebf7443 WD |
240 | FADS860T_config: unconfig |
241 | @./mkconfig $(@:_config=) ppc mpc8xx fads | |
242 | ||
243 | FLAGADM_config: unconfig | |
244 | @./mkconfig $(@:_config=) ppc mpc8xx flagadm | |
245 | ||
7aa78614 WD |
246 | xtract_GEN860T = $(subst _SC,,$(subst _config,,$1)) |
247 | ||
248 | GEN860T_SC_config \ | |
7ebf7443 | 249 | GEN860T_config: unconfig |
7aa78614 WD |
250 | @ >include/config.h |
251 | @[ -z "$(findstring _SC,$@)" ] || \ | |
252 | { echo "#define CONFIG_SC" >>include/config.h ; \ | |
253 | echo "With reduced H/W feature set (SC)..." ; \ | |
254 | } | |
255 | @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t | |
7ebf7443 WD |
256 | |
257 | GENIETV_config: unconfig | |
258 | @./mkconfig $(@:_config=) ppc mpc8xx genietv | |
259 | ||
260 | GTH_config: unconfig | |
261 | @./mkconfig $(@:_config=) ppc mpc8xx gth | |
262 | ||
263 | hermes_config : unconfig | |
264 | @./mkconfig $(@:_config=) ppc mpc8xx hermes | |
265 | ||
266 | IAD210_config: unconfig | |
267 | @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens | |
268 | ||
269 | xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1)) | |
270 | ||
271 | ICU862_100MHz_config \ | |
272 | ICU862_config: unconfig | |
273 | @ >include/config.h | |
274 | @[ -z "$(findstring _100MHz,$@)" ] || \ | |
275 | { echo "#define CONFIG_100MHz" >>include/config.h ; \ | |
276 | echo "... with 100MHz system clock" ; \ | |
277 | } | |
278 | @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862 | |
279 | ||
280 | IP860_config : unconfig | |
281 | @./mkconfig $(@:_config=) ppc mpc8xx ip860 | |
282 | ||
283 | IVML24_256_config \ | |
284 | IVML24_128_config \ | |
285 | IVML24_config: unconfig | |
286 | @ >include/config.h | |
287 | @[ -z "$(findstring IVML24_config,$@)" ] || \ | |
288 | { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \ | |
289 | } | |
290 | @[ -z "$(findstring IVML24_128_config,$@)" ] || \ | |
291 | { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \ | |
292 | } | |
293 | @[ -z "$(findstring IVML24_256_config,$@)" ] || \ | |
294 | { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \ | |
295 | } | |
296 | @./mkconfig -a IVML24 ppc mpc8xx ivm | |
297 | ||
298 | IVMS8_256_config \ | |
299 | IVMS8_128_config \ | |
300 | IVMS8_config: unconfig | |
301 | @ >include/config.h | |
302 | @[ -z "$(findstring IVMS8_config,$@)" ] || \ | |
303 | { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \ | |
304 | } | |
305 | @[ -z "$(findstring IVMS8_128_config,$@)" ] || \ | |
306 | { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \ | |
307 | } | |
308 | @[ -z "$(findstring IVMS8_256_config,$@)" ] || \ | |
309 | { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \ | |
310 | } | |
311 | @./mkconfig -a IVMS8 ppc mpc8xx ivm | |
312 | ||
56f94be3 WD |
313 | KUP4K_config : unconfig |
314 | @./mkconfig $(@:_config=) ppc mpc8xx kup4k | |
315 | ||
7ebf7443 WD |
316 | LANTEC_config : unconfig |
317 | @./mkconfig $(@:_config=) ppc mpc8xx lantec | |
318 | ||
319 | lwmon_config: unconfig | |
320 | @./mkconfig $(@:_config=) ppc mpc8xx lwmon | |
321 | ||
322 | MBX_config \ | |
323 | MBX860T_config: unconfig | |
324 | @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx | |
325 | ||
326 | MHPC_config: unconfig | |
327 | @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec | |
328 | ||
329 | MVS1_config : unconfig | |
330 | @./mkconfig $(@:_config=) ppc mpc8xx mvs1 | |
331 | ||
993cad93 WD |
332 | xtract_NETVIA = $(subst _V2,,$(subst _config,,$1)) |
333 | ||
334 | NETVIA_V2_config \ | |
7ebf7443 | 335 | NETVIA_config: unconfig |
993cad93 WD |
336 | @ >include/config.h |
337 | @[ -z "$(findstring NETVIA_config,$@)" ] || \ | |
338 | { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \ | |
339 | echo "... Version 1" ; \ | |
340 | } | |
341 | @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \ | |
342 | { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \ | |
343 | echo "... Version 2" ; \ | |
344 | } | |
345 | @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia | |
7ebf7443 WD |
346 | |
347 | NX823_config: unconfig | |
348 | @./mkconfig $(@:_config=) ppc mpc8xx nx823 | |
349 | ||
350 | pcu_e_config: unconfig | |
351 | @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens | |
352 | ||
353 | R360MPI_config: unconfig | |
354 | @./mkconfig $(@:_config=) ppc mpc8xx r360mpi | |
355 | ||
682011ff WD |
356 | RBC823_config: unconfig |
357 | @./mkconfig $(@:_config=) ppc mpc8xx rbc823 | |
358 | ||
7ebf7443 WD |
359 | RPXClassic_config: unconfig |
360 | @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic | |
361 | ||
362 | RPXlite_config: unconfig | |
363 | @./mkconfig $(@:_config=) ppc mpc8xx RPXlite | |
364 | ||
73a8b27c WD |
365 | rmu_config: unconfig |
366 | @./mkconfig $(@:_config=) ppc mpc8xx rmu | |
367 | ||
7ebf7443 WD |
368 | RRvision_config: unconfig |
369 | @./mkconfig $(@:_config=) ppc mpc8xx RRvision | |
370 | ||
371 | RRvision_LCD_config: unconfig | |
372 | @echo "#define CONFIG_LCD" >include/config.h | |
373 | @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h | |
374 | @./mkconfig -a RRvision ppc mpc8xx RRvision | |
375 | ||
376 | SM850_config : unconfig | |
377 | @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx | |
378 | ||
379 | SPD823TS_config: unconfig | |
380 | @./mkconfig $(@:_config=) ppc mpc8xx spd8xx | |
381 | ||
dc7c9a1a WD |
382 | svm_sc8xx_config: unconfig |
383 | @ >include/config.h | |
384 | @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx | |
385 | ||
7ebf7443 WD |
386 | SXNI855T_config: unconfig |
387 | @./mkconfig $(@:_config=) ppc mpc8xx sixnet | |
388 | ||
db2f721f WD |
389 | # EMK MPC8xx based modules |
390 | TOP860_config: unconfig | |
391 | @./mkconfig $(@:_config=) ppc mpc8xx top860 emk | |
392 | ||
7ebf7443 | 393 | # Play some tricks for configuration selection |
73a8b27c | 394 | # All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock, |
7ebf7443 WD |
395 | # but only 855 and 860 boards may come with FEC |
396 | # and 823 boards may have LCD support | |
73a8b27c | 397 | xtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _LCD,,$(subst _config,,$1))))) |
7ebf7443 WD |
398 | |
399 | FPS850L_config \ | |
384ae025 | 400 | FPS860L_config \ |
f12e568c | 401 | NSCU_config \ |
7ebf7443 WD |
402 | TQM823L_config \ |
403 | TQM823L_66MHz_config \ | |
404 | TQM823L_80MHz_config \ | |
405 | TQM823L_LCD_config \ | |
406 | TQM823L_LCD_66MHz_config \ | |
407 | TQM823L_LCD_80MHz_config \ | |
408 | TQM850L_config \ | |
409 | TQM850L_66MHz_config \ | |
410 | TQM850L_80MHz_config \ | |
411 | TQM855L_config \ | |
412 | TQM855L_66MHz_config \ | |
413 | TQM855L_80MHz_config \ | |
7ebf7443 WD |
414 | TQM860L_config \ |
415 | TQM860L_66MHz_config \ | |
416 | TQM860L_80MHz_config \ | |
d126bfbd WD |
417 | TQM862L_config \ |
418 | TQM862L_66MHz_config \ | |
73a8b27c | 419 | TQM862L_80MHz_config \ |
f12e568c WD |
420 | TQM855M_config \ |
421 | TQM855M_66MHz_config \ | |
422 | TQM855M_80MHz_config \ | |
423 | TQM860M_config \ | |
424 | TQM860M_66MHz_config \ | |
425 | TQM860M_80MHz_config \ | |
426 | TQM862M_config \ | |
427 | TQM862M_66MHz_config \ | |
428 | TQM862M_80MHz_config \ | |
71f95118 | 429 | TQM862M_100MHz_config: unconfig |
7ebf7443 | 430 | @ >include/config.h |
7ebf7443 WD |
431 | @[ -z "$(findstring _66MHz,$@)" ] || \ |
432 | { echo "#define CONFIG_66MHz" >>include/config.h ; \ | |
433 | echo "... with 66MHz system clock" ; \ | |
434 | } | |
435 | @[ -z "$(findstring _80MHz,$@)" ] || \ | |
436 | { echo "#define CONFIG_80MHz" >>include/config.h ; \ | |
437 | echo "... with 80MHz system clock" ; \ | |
438 | } | |
73a8b27c WD |
439 | @[ -z "$(findstring _100MHz,$@)" ] || \ |
440 | { echo "#define CONFIG_100MHz" >>include/config.h ; \ | |
441 | echo "... with 100MHz system clock" ; \ | |
442 | } | |
7ebf7443 WD |
443 | @[ -z "$(findstring _LCD,$@)" ] || \ |
444 | { echo "#define CONFIG_LCD" >>include/config.h ; \ | |
445 | echo "#define CONFIG_NEC_NL6648BC20" >>include/config.h ; \ | |
446 | echo "... with LCD display" ; \ | |
447 | } | |
448 | @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx | |
449 | ||
450 | TTTech_config: unconfig | |
451 | @echo "#define CONFIG_LCD" >include/config.h | |
452 | @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h | |
453 | @./mkconfig -a TQM823L ppc mpc8xx tqm8xx | |
454 | ||
608c9146 WD |
455 | v37_config: unconfig |
456 | @echo "#define CONFIG_LCD" >include/config.h | |
457 | @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h | |
458 | @./mkconfig $(@:_config=) ppc mpc8xx v37 | |
459 | ||
7ebf7443 WD |
460 | ######################################################################### |
461 | ## PPC4xx Systems | |
462 | ######################################################################### | |
463 | ||
464 | ADCIOP_config: unconfig | |
465 | @./mkconfig $(@:_config=) ppc ppc4xx adciop esd | |
466 | ||
467 | AR405_config: unconfig | |
468 | @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd | |
469 | ||
549826ea SR |
470 | ASH405_config: unconfig |
471 | @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd | |
472 | ||
473 | BUBINGA405EP_config:unconfig | |
474 | @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep | |
475 | ||
7ebf7443 WD |
476 | CANBT_config: unconfig |
477 | @./mkconfig $(@:_config=) ppc ppc4xx canbt esd | |
478 | ||
549826ea SR |
479 | CPCI405_config \ |
480 | CPCI4052_config \ | |
481 | CPCI405AB_config: unconfig | |
7ebf7443 WD |
482 | @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd |
483 | @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk | |
484 | ||
485 | CPCI440_config: unconfig | |
486 | @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd | |
487 | ||
488 | CPCIISER4_config: unconfig | |
489 | @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd | |
490 | ||
491 | CRAYL1_config:unconfig | |
492 | @./mkconfig $(@:_config=) ppc ppc4xx L1 cray | |
493 | ||
494 | DASA_SIM_config: unconfig | |
495 | @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd | |
496 | ||
497 | DU405_config: unconfig | |
498 | @./mkconfig $(@:_config=) ppc ppc4xx du405 esd | |
499 | ||
500 | EBONY_config:unconfig | |
501 | @./mkconfig $(@:_config=) ppc ppc4xx ebony | |
502 | ||
503 | ERIC_config:unconfig | |
504 | @./mkconfig $(@:_config=) ppc ppc4xx eric | |
505 | ||
d1cbe85b WD |
506 | EXBITGEN_config:unconfig |
507 | @./mkconfig $(@:_config=) ppc ppc4xx exbitgen | |
508 | ||
7ebf7443 WD |
509 | MIP405_config:unconfig |
510 | @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl | |
511 | ||
f3e0de60 WD |
512 | MIP405T_config:unconfig |
513 | @echo "#define CONFIG_MIP405T" >include/config.h | |
514 | @echo "Enable subset config for MIP405T" | |
515 | @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl | |
516 | ||
7ebf7443 WD |
517 | ML2_config:unconfig |
518 | @./mkconfig $(@:_config=) ppc ppc4xx ml2 | |
519 | ||
520 | OCRTC_config \ | |
521 | ORSG_config: unconfig | |
522 | @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd | |
523 | ||
524 | PCI405_config: unconfig | |
525 | @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd | |
526 | ||
527 | PIP405_config:unconfig | |
528 | @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl | |
529 | ||
549826ea SR |
530 | PMC405_config: unconfig |
531 | @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd | |
532 | ||
7ebf7443 WD |
533 | W7OLMC_config \ |
534 | W7OLMG_config: unconfig | |
535 | @./mkconfig $(@:_config=) ppc ppc4xx w7o | |
536 | ||
537 | WALNUT405_config:unconfig | |
538 | @./mkconfig $(@:_config=) ppc ppc4xx walnut405 | |
539 | ||
540 | ######################################################################### | |
541 | ## MPC824x Systems | |
542 | ######################################################################### | |
3bac3513 WD |
543 | xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))) |
544 | ||
0332990b WD |
545 | A3000_config: unconfig |
546 | @./mkconfig $(@:_config=) ppc mpc824x a3000 | |
547 | ||
7ebf7443 WD |
548 | BMW_config: unconfig |
549 | @./mkconfig $(@:_config=) ppc mpc824x bmw | |
550 | ||
3bac3513 WD |
551 | CPC45_config \ |
552 | CPC45_ROMBOOT_config: unconfig | |
553 | @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45 | |
554 | @cd ./include ; \ | |
555 | if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ | |
556 | echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ | |
557 | echo "... booting from 8-bit flash" ; \ | |
558 | else \ | |
559 | echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ | |
560 | echo "... booting from 64-bit flash" ; \ | |
561 | fi; \ | |
562 | echo "export CONFIG_BOOT_ROM" >> config.mk; | |
563 | ||
7ebf7443 WD |
564 | CU824_config: unconfig |
565 | @./mkconfig $(@:_config=) ppc mpc824x cu824 | |
566 | ||
567 | MOUSSE_config: unconfig | |
568 | @./mkconfig $(@:_config=) ppc mpc824x mousse | |
569 | ||
570 | MUSENKI_config: unconfig | |
571 | @./mkconfig $(@:_config=) ppc mpc824x musenki | |
572 | ||
573 | OXC_config: unconfig | |
574 | @./mkconfig $(@:_config=) ppc mpc824x oxc | |
575 | ||
576 | PN62_config: unconfig | |
577 | @./mkconfig $(@:_config=) ppc mpc824x pn62 | |
578 | ||
579 | Sandpoint8240_config: unconfig | |
580 | @./mkconfig $(@:_config=) ppc mpc824x sandpoint | |
581 | ||
582 | Sandpoint8245_config: unconfig | |
583 | @./mkconfig $(@:_config=) ppc mpc824x sandpoint | |
584 | ||
d1cbe85b WD |
585 | SL8245_config: unconfig |
586 | @./mkconfig $(@:_config=) ppc mpc824x sl8245 | |
587 | ||
7ebf7443 WD |
588 | utx8245_config: unconfig |
589 | @./mkconfig $(@:_config=) ppc mpc824x utx8245 | |
590 | ||
591 | ######################################################################### | |
592 | ## MPC8260 Systems | |
593 | ######################################################################### | |
7ebf7443 WD |
594 | |
595 | cogent_mpc8260_config: unconfig | |
596 | @./mkconfig $(@:_config=) ppc mpc8260 cogent | |
597 | ||
598 | CPU86_config \ | |
599 | CPU86_ROMBOOT_config: unconfig | |
600 | @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86 | |
601 | @cd ./include ; \ | |
602 | if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ | |
603 | echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ | |
604 | echo "... booting from 8-bit flash" ; \ | |
605 | else \ | |
606 | echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ | |
607 | echo "... booting from 64-bit flash" ; \ | |
608 | fi; \ | |
609 | echo "export CONFIG_BOOT_ROM" >> config.mk; | |
610 | ||
611 | ep8260_config: unconfig | |
612 | @./mkconfig $(@:_config=) ppc mpc8260 ep8260 | |
613 | ||
614 | gw8260_config: unconfig | |
615 | @./mkconfig $(@:_config=) ppc mpc8260 gw8260 | |
616 | ||
617 | hymod_config: unconfig | |
618 | @./mkconfig $(@:_config=) ppc mpc8260 hymod | |
619 | ||
620 | IPHASE4539_config: unconfig | |
621 | @./mkconfig $(@:_config=) ppc mpc8260 iphase4539 | |
622 | ||
623 | MPC8260ADS_config: unconfig | |
624 | @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads | |
625 | ||
db2f721f WD |
626 | MPC8266ADS_config: unconfig |
627 | @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads | |
628 | ||
10f67017 WD |
629 | PM825_config \ |
630 | PM825_ROMBOOT_config: unconfig | |
631 | @echo "#define CONFIG_PCI" >include/config.h | |
632 | @./mkconfig -a PM826 ppc mpc8260 pm826 | |
633 | @cd ./include ; \ | |
634 | if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ | |
635 | echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ | |
636 | echo "... booting from 8-bit flash" ; \ | |
637 | else \ | |
638 | echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ | |
639 | echo "... booting from 64-bit flash" ; \ | |
640 | fi; \ | |
641 | echo "export CONFIG_BOOT_ROM" >> config.mk; \ | |
642 | ||
7ebf7443 WD |
643 | PM826_config \ |
644 | PM826_ROMBOOT_config: unconfig | |
645 | @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826 | |
646 | @cd ./include ; \ | |
647 | if [ "$(findstring _ROMBOOT_,$@)" ] ; then \ | |
648 | echo "CONFIG_BOOT_ROM = y" >> config.mk ; \ | |
649 | echo "... booting from 8-bit flash" ; \ | |
650 | else \ | |
651 | echo "CONFIG_BOOT_ROM = n" >> config.mk ; \ | |
652 | echo "... booting from 64-bit flash" ; \ | |
653 | fi; \ | |
654 | echo "export CONFIG_BOOT_ROM" >> config.mk; \ | |
655 | ||
656 | ppmc8260_config: unconfig | |
657 | @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260 | |
658 | ||
659 | RPXsuper_config: unconfig | |
660 | @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper | |
661 | ||
662 | rsdproto_config: unconfig | |
663 | @./mkconfig $(@:_config=) ppc mpc8260 rsdproto | |
664 | ||
665 | sacsng_config: unconfig | |
666 | @./mkconfig $(@:_config=) ppc mpc8260 sacsng | |
667 | ||
668 | sbc8260_config: unconfig | |
669 | @./mkconfig $(@:_config=) ppc mpc8260 sbc8260 | |
670 | ||
671 | SCM_config: unconfig | |
672 | @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens | |
673 | ||
27b207fd WD |
674 | TQM8255_AA_config \ |
675 | TQM8260_AA_config \ | |
676 | TQM8260_AB_config \ | |
677 | TQM8260_AC_config \ | |
678 | TQM8260_AD_config \ | |
679 | TQM8260_AE_config \ | |
680 | TQM8260_AF_config \ | |
681 | TQM8260_AG_config \ | |
682 | TQM8260_AH_config \ | |
683 | TQM8265_AA_config: unconfig | |
684 | @case "$@" in \ | |
685 | TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \ | |
686 | TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \ | |
687 | TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ | |
688 | TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \ | |
689 | TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ | |
690 | TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \ | |
691 | TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \ | |
692 | TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \ | |
693 | TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \ | |
694 | TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \ | |
695 | esac; \ | |
696 | >include/config.h ; \ | |
697 | if [ "$${CTYPE}" != "MPC8260" ] ; then \ | |
698 | echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \ | |
699 | fi; \ | |
700 | echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \ | |
701 | echo "... with $${CFREQ}MHz system clock" ; \ | |
702 | if [ "$${CACHE}" == "yes" ] ; then \ | |
7ebf7443 | 703 | echo "#define CONFIG_L2_CACHE" >>include/config.h ; \ |
27b207fd | 704 | echo "... with L2 Cache support" ; \ |
7ebf7443 WD |
705 | else \ |
706 | echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \ | |
707 | echo "... without L2 Cache support" ; \ | |
27b207fd WD |
708 | fi; \ |
709 | if [ "$${BMODE}" == "60x" ] ; then \ | |
710 | echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \ | |
711 | echo "... with 60x Bus Mode" ; \ | |
712 | else \ | |
713 | echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \ | |
714 | echo "... without 60x Bus Mode" ; \ | |
7ebf7443 | 715 | fi |
4532cb69 | 716 | @./mkconfig -a TQM8260 ppc mpc8260 tqm8260 |
7ebf7443 | 717 | |
7aa78614 WD |
718 | atc_config: unconfig |
719 | @./mkconfig $(@:_config=) ppc mpc8260 atc | |
720 | ||
7ebf7443 WD |
721 | ######################################################################### |
722 | ## 74xx/7xx Systems | |
723 | ######################################################################### | |
724 | ||
c7de829c WD |
725 | AmigaOneG3SE_config: unconfig |
726 | @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI | |
727 | ||
7ebf7443 WD |
728 | EVB64260_config \ |
729 | EVB64260_750CX_config: unconfig | |
730 | @./mkconfig EVB64260 ppc 74xx_7xx evb64260 | |
731 | ||
732 | ZUMA_config: unconfig | |
733 | @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260 | |
734 | ||
735 | PCIPPC2_config \ | |
736 | PCIPPC6_config: unconfig | |
737 | @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2 | |
738 | ||
739 | BAB7xx_config: unconfig | |
740 | @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec | |
741 | ||
742 | ELPPC_config: unconfig | |
743 | @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec | |
744 | ||
745 | #======================================================================== | |
746 | # ARM | |
747 | #======================================================================== | |
748 | ######################################################################### | |
749 | ## StrongARM Systems | |
750 | ######################################################################### | |
751 | ||
dc7c9a1a WD |
752 | at91rm9200dk_config : unconfig |
753 | @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk | |
754 | ||
7ebf7443 WD |
755 | lart_config : unconfig |
756 | @./mkconfig $(@:_config=) arm sa1100 lart | |
757 | ||
758 | dnp1110_config : unconfig | |
759 | @./mkconfig $(@:_config=) arm sa1100 dnp1110 | |
760 | ||
761 | shannon_config : unconfig | |
762 | @./mkconfig $(@:_config=) arm sa1100 shannon | |
763 | ||
764 | ######################################################################### | |
2e5983d2 | 765 | ## ARM92xT Systems |
7ebf7443 WD |
766 | ######################################################################### |
767 | ||
43d9616c WD |
768 | xtract_trab = $(subst _big_flash,,$(subst _config,,$1)) |
769 | ||
2e5983d2 WD |
770 | omap1510inn_config : unconfig |
771 | @./mkconfig $(@:_config=) arm arm925t omap1510inn | |
772 | ||
7ebf7443 WD |
773 | smdk2400_config : unconfig |
774 | @./mkconfig $(@:_config=) arm arm920t smdk2400 | |
775 | ||
776 | smdk2410_config : unconfig | |
777 | @./mkconfig $(@:_config=) arm arm920t smdk2410 | |
778 | ||
43d9616c WD |
779 | trab_config \ |
780 | trab_big_flash_config: unconfig | |
781 | @ >include/config.h | |
782 | @[ -z "$(findstring _big_flash,$@)" ] || \ | |
783 | { echo "#define CONFIG_BIG_FLASH" >>include/config.h ; \ | |
784 | echo "... with big flash support" ; \ | |
785 | } | |
786 | @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab | |
7ebf7443 | 787 | |
1cb8e980 WD |
788 | VCMA9_config : unconfig |
789 | @./mkconfig $(@:_config=) arm arm920t vcma9 mpl | |
790 | ||
7ebf7443 WD |
791 | ######################################################################### |
792 | ## ARM720T Systems | |
793 | ######################################################################### | |
794 | ||
795 | impa7_config : unconfig | |
796 | @./mkconfig $(@:_config=) arm arm720t impa7 | |
797 | ||
798 | ep7312_config : unconfig | |
799 | @./mkconfig $(@:_config=) arm arm720t ep7312 | |
800 | ||
801 | ######################################################################### | |
43d9616c | 802 | ## XScale Systems |
7ebf7443 WD |
803 | ######################################################################### |
804 | ||
7ebf7443 | 805 | cradle_config : unconfig |
8bde7f77 | 806 | @./mkconfig $(@:_config=) arm pxa cradle |
7ebf7443 WD |
807 | |
808 | csb226_config : unconfig | |
4c3b21a5 | 809 | @./mkconfig $(@:_config=) arm pxa csb226 |
7ebf7443 | 810 | |
43d9616c | 811 | innokom_config : unconfig |
4c3b21a5 | 812 | @./mkconfig $(@:_config=) arm pxa innokom |
43d9616c WD |
813 | |
814 | lubbock_config : unconfig | |
4c3b21a5 | 815 | @./mkconfig $(@:_config=) arm pxa lubbock |
43d9616c | 816 | |
52f52c14 WD |
817 | logodl_config : unconfig |
818 | @./mkconfig $(@:_config=) arm pxa logodl | |
819 | ||
3e38691e | 820 | wepep250_config : unconfig |
4c3b21a5 | 821 | @./mkconfig $(@:_config=) arm pxa wepep250 |
3e38691e | 822 | |
2262cfee WD |
823 | #======================================================================== |
824 | # i386 | |
825 | #======================================================================== | |
826 | ######################################################################### | |
1cb8e980 | 827 | ## AMD SC520 CDP |
2262cfee WD |
828 | ######################################################################### |
829 | sc520_cdp_config : unconfig | |
830 | @./mkconfig $(@:_config=) i386 i386 sc520_cdp | |
831 | ||
7a8e9bed WD |
832 | sc520_spunk_config : unconfig |
833 | @./mkconfig $(@:_config=) i386 i386 sc520_spunk | |
834 | ||
835 | sc520_spunk_rel_config : unconfig | |
836 | @./mkconfig $(@:_config=) i386 i386 sc520_spunk | |
837 | ||
43d9616c WD |
838 | #======================================================================== |
839 | # MIPS | |
840 | #======================================================================== | |
7ebf7443 | 841 | ######################################################################### |
43d9616c WD |
842 | ## MIPS32 4Kc |
843 | ######################################################################### | |
844 | ||
845 | incaip_config : unconfig | |
846 | @./mkconfig $(@:_config=) mips mips incaip | |
847 | ||
3e38691e WD |
848 | purple_config : unconfig |
849 | @./mkconfig $(@:_config=) mips mips purple | |
43d9616c | 850 | |
3e38691e WD |
851 | ######################################################################### |
852 | ######################################################################### | |
7ebf7443 WD |
853 | |
854 | clean: | |
855 | find . -type f \ | |
856 | \( -name 'core' -o -name '*.bak' -o -name '*~' \ | |
857 | -o -name '*.o' -o -name '*.a' \) -print \ | |
858 | | xargs rm -f | |
85ec0bcc | 859 | rm -f examples/hello_world examples/timer \ |
3e38691e | 860 | examples/eepro100_eeprom examples/sched \ |
7a8e9bed WD |
861 | examples/mem_to_mem_idma2intr examples/82559_eeprom |
862 | ||
7ebf7443 WD |
863 | rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr |
864 | rm -f tools/easylogo/easylogo tools/bmp_logo | |
865 | rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend | |
228f29ac | 866 | rm -f tools/env/fw_printenv tools/env/fw_setenv |
7f70e853 | 867 | rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image |
7ebf7443 WD |
868 | |
869 | clobber: clean | |
870 | find . -type f \ | |
871 | \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \ | |
872 | -print \ | |
873 | | xargs rm -f | |
874 | rm -f $(OBJS) *.bak tags TAGS | |
875 | rm -fr *.*~ | |
bdccc4fe | 876 | rm -f u-boot u-boot.map $(ALL) |
228f29ac | 877 | rm -f tools/crc32.c tools/environment.c tools/env/crc32.c |
3e38691e | 878 | rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c |
b783edae | 879 | rm -f include/asm/proc include/asm/arch include/asm |
7ebf7443 WD |
880 | |
881 | mrproper \ | |
882 | distclean: clobber unconfig | |
883 | ||
884 | backup: | |
885 | F=`basename $(TOPDIR)` ; cd .. ; \ | |
886 | gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F | |
887 | ||
888 | ######################################################################### |