blob: df2dfad5327ae89e38c8ff84d76b732d47d5f42a [file] [log] [blame]
wdenk7ebf7442002-11-02 23:17:16 +00001#
2# (C) Copyright 2000, 2001, 2002
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
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
24HOSTARCH := $(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
32HOSTOS := $(shell uname -s | tr A-Z a-z | \
33 sed -e 's/\(cygwin\).*/cygwin/')
34
35export HOSTARCH
36
37# Deal with colliding definitions from tcsh etc.
38VENDOR=
39
40#########################################################################
41
42TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
43export TOPDIR
44
45ifeq (include/config.mk,$(wildcard include/config.mk))
46# load ARCH, BOARD, and CPU configuration
47include include/config.mk
48export ARCH CPU BOARD VENDOR
49# load other configuration
50include $(TOPDIR)/config.mk
51
52ifndef CROSS_COMPILE
53ifeq ($(HOSTARCH),ppc)
54CROSS_COMPILE =
55else
wdenk7ebf7442002-11-02 23:17:16 +000056ifeq ($(ARCH),ppc)
57CROSS_COMPILE = ppc_8xx-
58endif
59ifeq ($(ARCH),arm)
wdenkdc7c9a12003-03-26 06:55:25 +000060CROSS_COMPILE = arm-linux-
wdenk7ebf7442002-11-02 23:17:16 +000061endif
wdenk2262cfe2002-11-18 00:14:45 +000062ifeq ($(ARCH),i386)
wdenk7a8e9bed2003-05-31 18:35:21 +000063ifeq ($(HOSTARCH),i386)
64CROSS_COMPILE =
65else
66CROSS_COMPILE = i386-linux-
67endif
wdenk2262cfe2002-11-18 00:14:45 +000068endif
wdenk43d96162003-03-06 00:02:04 +000069ifeq ($(ARCH),mips)
70CROSS_COMPILE = mips_4KC-
71endif
wdenk4a551702003-10-08 23:26:14 +000072ifeq ($(ARCH),nios)
73CROSS_COMPILE = nios-elf-
74endif
wdenk7ebf7442002-11-02 23:17:16 +000075endif
76endif
77
78export CROSS_COMPILE
79
80# The "tools" are needed early, so put this first
81SUBDIRS = tools \
wdenkf5300ab2003-09-12 15:35:15 +000082 examples \
wdenk7ebf7442002-11-02 23:17:16 +000083 lib_generic \
84 lib_$(ARCH) \
85 cpu/$(CPU) \
86 board/$(BOARDDIR) \
87 common \
88 disk \
89 fs \
90 net \
91 rtc \
92 dtt \
93 drivers \
wdenk7152b1d2003-09-05 23:19:14 +000094 drivers/sk98lin \
wdenk7ebf7442002-11-02 23:17:16 +000095 post \
wdenkf5300ab2003-09-12 15:35:15 +000096 post/cpu
wdenk7ebf7442002-11-02 23:17:16 +000097
98#########################################################################
99# U-Boot objects....order is important (i.e. start must be first)
100
101OBJS = cpu/$(CPU)/start.o
wdenk2262cfe2002-11-18 00:14:45 +0000102ifeq ($(CPU),i386)
103OBJS += cpu/$(CPU)/start16.o
104OBJS += cpu/$(CPU)/reset.o
105endif
wdenk7ebf7442002-11-02 23:17:16 +0000106ifeq ($(CPU),ppc4xx)
107OBJS += cpu/$(CPU)/resetvec.o
108endif
wdenk42d1f032003-10-15 23:53:47 +0000109ifeq ($(CPU),mpc85xx)
110OBJS += cpu/$(CPU)/resetvec.o
111endif
wdenk7ebf7442002-11-02 23:17:16 +0000112
113LIBS = board/$(BOARDDIR)/lib$(BOARD).a
114LIBS += cpu/$(CPU)/lib$(CPU).a
115LIBS += lib_$(ARCH)/lib$(ARCH).a
wdenk71f95112003-06-15 22:40:42 +0000116LIBS += fs/jffs2/libjffs2.a fs/fdos/libfdos.a fs/fat/libfat.a
wdenk7ebf7442002-11-02 23:17:16 +0000117LIBS += net/libnet.a
118LIBS += disk/libdisk.a
119LIBS += rtc/librtc.a
120LIBS += dtt/libdtt.a
121LIBS += drivers/libdrivers.a
wdenk7152b1d2003-09-05 23:19:14 +0000122LIBS += drivers/sk98lin/libsk98lin.a
wdenk7ebf7442002-11-02 23:17:16 +0000123LIBS += post/libpost.a post/cpu/libcpu.a
124LIBS += common/libcommon.a
125LIBS += lib_generic/libgeneric.a
wdenk4f7cb082003-09-11 23:06:34 +0000126# Add GCC lib
wdenkfc3e2162003-10-08 22:33:00 +0000127PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
wdenk7ebf7442002-11-02 23:17:16 +0000128
129#########################################################################
wdenkbdccc4f2003-08-05 17:43:17 +0000130#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000131
wdenkbdccc4f2003-08-05 17:43:17 +0000132ALL = u-boot.srec u-boot.bin System.map
wdenk7ebf7442002-11-02 23:17:16 +0000133
wdenkbdccc4f2003-08-05 17:43:17 +0000134all: $(ALL)
wdenk7ebf7442002-11-02 23:17:16 +0000135
136u-boot.srec: u-boot
137 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
138
139u-boot.bin: u-boot
140 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
141
wdenkbdccc4f2003-08-05 17:43:17 +0000142u-boot.img: u-boot.bin
143 ./tools/mkimage -A $(ARCH) -T firmware -C none \
144 -a $(TEXT_BASE) -e 0 \
145 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \
146 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
147 -d $< $@
148
wdenk7ebf7442002-11-02 23:17:16 +0000149u-boot.dis: u-boot
150 $(OBJDUMP) -d $< > $@
151
152u-boot: depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT)
wdenk8bde7f72003-06-27 21:31:46 +0000153 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
154 $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
wdenk7152b1d2003-09-05 23:19:14 +0000155 --start-group $(LIBS) $(PLATFORM_LIBS) --end-group \
wdenkb2184c32002-11-19 23:01:07 +0000156 -Map u-boot.map -o u-boot
wdenk7ebf7442002-11-02 23:17:16 +0000157
158subdirs:
159 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir || exit 1 ; done
160
dzu8f713fd2003-08-07 14:20:31 +0000161gdbtools:
162 $(MAKE) -C tools/gdb || exit 1
163
wdenk7ebf7442002-11-02 23:17:16 +0000164depend dep:
165 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
166
167tags:
168 ctags -w `find $(SUBDIRS) include \
169 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
170
171etags:
172 etags -a `find $(SUBDIRS) include \
173 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
174
175System.map: u-boot
176 @$(NM) $< | \
177 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
178 sort > System.map
179
180#########################################################################
181else
182all install u-boot u-boot.srec depend dep:
183 @echo "System not configured - see README" >&2
184 @ exit 1
185endif
186
187#########################################################################
188
189unconfig:
190 rm -f include/config.h include/config.mk
191
192#========================================================================
193# PowerPC
194#========================================================================
wdenk0db5bca2003-03-31 17:27:09 +0000195
196#########################################################################
197## MPC5xx Systems
198#########################################################################
199
200cmi_mpc5xx_config: unconfig
201 @./mkconfig $(@:_config=) ppc mpc5xx cmi
202
wdenk7ebf7442002-11-02 23:17:16 +0000203#########################################################################
wdenk945af8d2003-07-16 21:53:01 +0000204## MPC5xxx Systems
205#########################################################################
wdenka0f2fe52003-10-28 09:14:21 +0000206MPC5200LITE \
207icecube_5200_config \
wdenk945af8d2003-07-16 21:53:01 +0000208IceCube_5200_config \
209IceCube_5100_config: unconfig
210 @ >include/config.h
wdenka0f2fe52003-10-28 09:14:21 +0000211 @[ -z "$(findstring 5200,$@)" ] || \
wdenk945af8d2003-07-16 21:53:01 +0000212 { echo "#define CONFIG_MPC5200" >>include/config.h ; \
213 echo "... with MPC5200 processor" ; \
214 }
wdenka0f2fe52003-10-28 09:14:21 +0000215 @[ -z "$(findstring 5100,$@)" ] || \
wdenk945af8d2003-07-16 21:53:01 +0000216 { echo "#define CONFIG_MGT5100" >>include/config.h ; \
217 echo "... with MGT5100 processor" ; \
218 }
219 @./mkconfig -a IceCube ppc mpc5xxx icecube
220
221#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000222## MPC8xx Systems
223#########################################################################
224
wdenk0cb61d72003-08-30 00:05:50 +0000225AdderII_config: unconfig
226 @./mkconfig $(@:_config=) ppc mpc8xx adderII
227
wdenk7ebf7442002-11-02 23:17:16 +0000228ADS860_config: unconfig
229 @./mkconfig $(@:_config=) ppc mpc8xx fads
230
231AMX860_config : unconfig
232 @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
233
234c2mon_config: unconfig
235 @./mkconfig $(@:_config=) ppc mpc8xx c2mon
236
237CCM_config: unconfig
238 @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
239
240cogent_mpc8xx_config: unconfig
241 @./mkconfig $(@:_config=) ppc mpc8xx cogent
242
wdenk3bac3512003-03-12 10:41:04 +0000243ELPT860_config: unconfig
244 @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
245
wdenk7ebf7442002-11-02 23:17:16 +0000246ESTEEM192E_config: unconfig
247 @./mkconfig $(@:_config=) ppc mpc8xx esteem192e
248
249ETX094_config : unconfig
250 @./mkconfig $(@:_config=) ppc mpc8xx etx094
251
252FADS823_config \
253FADS850SAR_config \
wdenk2535d602003-07-17 23:16:40 +0000254MPC86xADS_config \
wdenk7ebf7442002-11-02 23:17:16 +0000255FADS860T_config: unconfig
256 @./mkconfig $(@:_config=) ppc mpc8xx fads
257
258FLAGADM_config: unconfig
259 @./mkconfig $(@:_config=) ppc mpc8xx flagadm
260
wdenk7aa78612003-05-03 15:50:43 +0000261xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
262
263GEN860T_SC_config \
wdenk7ebf7442002-11-02 23:17:16 +0000264GEN860T_config: unconfig
wdenk7aa78612003-05-03 15:50:43 +0000265 @ >include/config.h
266 @[ -z "$(findstring _SC,$@)" ] || \
267 { echo "#define CONFIG_SC" >>include/config.h ; \
268 echo "With reduced H/W feature set (SC)..." ; \
269 }
270 @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
wdenk7ebf7442002-11-02 23:17:16 +0000271
272GENIETV_config: unconfig
273 @./mkconfig $(@:_config=) ppc mpc8xx genietv
274
275GTH_config: unconfig
276 @./mkconfig $(@:_config=) ppc mpc8xx gth
277
278hermes_config : unconfig
279 @./mkconfig $(@:_config=) ppc mpc8xx hermes
280
281IAD210_config: unconfig
282 @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
283
284xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
285
286ICU862_100MHz_config \
287ICU862_config: unconfig
288 @ >include/config.h
289 @[ -z "$(findstring _100MHz,$@)" ] || \
290 { echo "#define CONFIG_100MHz" >>include/config.h ; \
291 echo "... with 100MHz system clock" ; \
292 }
293 @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
294
295IP860_config : unconfig
296 @./mkconfig $(@:_config=) ppc mpc8xx ip860
297
298IVML24_256_config \
299IVML24_128_config \
300IVML24_config: unconfig
301 @ >include/config.h
302 @[ -z "$(findstring IVML24_config,$@)" ] || \
303 { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \
304 }
305 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
306 { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \
307 }
308 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
309 { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \
310 }
311 @./mkconfig -a IVML24 ppc mpc8xx ivm
312
313IVMS8_256_config \
314IVMS8_128_config \
315IVMS8_config: unconfig
316 @ >include/config.h
317 @[ -z "$(findstring IVMS8_config,$@)" ] || \
318 { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \
319 }
320 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
321 { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \
322 }
323 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
324 { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \
325 }
326 @./mkconfig -a IVMS8 ppc mpc8xx ivm
327
wdenk56f94be2002-11-05 16:35:14 +0000328KUP4K_config : unconfig
329 @./mkconfig $(@:_config=) ppc mpc8xx kup4k
330
wdenk7ebf7442002-11-02 23:17:16 +0000331LANTEC_config : unconfig
332 @./mkconfig $(@:_config=) ppc mpc8xx lantec
333
334lwmon_config: unconfig
335 @./mkconfig $(@:_config=) ppc mpc8xx lwmon
336
337MBX_config \
338MBX860T_config: unconfig
339 @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
340
341MHPC_config: unconfig
342 @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
343
344MVS1_config : unconfig
345 @./mkconfig $(@:_config=) ppc mpc8xx mvs1
346
wdenk993cad92003-06-26 22:04:09 +0000347xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
348
349NETVIA_V2_config \
wdenk7ebf7442002-11-02 23:17:16 +0000350NETVIA_config: unconfig
wdenk993cad92003-06-26 22:04:09 +0000351 @ >include/config.h
352 @[ -z "$(findstring NETVIA_config,$@)" ] || \
353 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
354 echo "... Version 1" ; \
355 }
356 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
357 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
358 echo "... Version 2" ; \
359 }
360 @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
wdenk7ebf7442002-11-02 23:17:16 +0000361
362NX823_config: unconfig
363 @./mkconfig $(@:_config=) ppc mpc8xx nx823
364
365pcu_e_config: unconfig
366 @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
367
368R360MPI_config: unconfig
369 @./mkconfig $(@:_config=) ppc mpc8xx r360mpi
370
wdenk682011f2003-06-03 23:54:09 +0000371RBC823_config: unconfig
372 @./mkconfig $(@:_config=) ppc mpc8xx rbc823
373
wdenk7ebf7442002-11-02 23:17:16 +0000374RPXClassic_config: unconfig
375 @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
376
377RPXlite_config: unconfig
378 @./mkconfig $(@:_config=) ppc mpc8xx RPXlite
379
wdenk73a8b272003-06-05 19:27:42 +0000380rmu_config: unconfig
381 @./mkconfig $(@:_config=) ppc mpc8xx rmu
382
wdenk7ebf7442002-11-02 23:17:16 +0000383RRvision_config: unconfig
384 @./mkconfig $(@:_config=) ppc mpc8xx RRvision
385
386RRvision_LCD_config: unconfig
387 @echo "#define CONFIG_LCD" >include/config.h
388 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
389 @./mkconfig -a RRvision ppc mpc8xx RRvision
390
391SM850_config : unconfig
392 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
393
394SPD823TS_config: unconfig
395 @./mkconfig $(@:_config=) ppc mpc8xx spd8xx
396
wdenkdc7c9a12003-03-26 06:55:25 +0000397svm_sc8xx_config: unconfig
398 @ >include/config.h
399 @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
400
wdenk7ebf7442002-11-02 23:17:16 +0000401SXNI855T_config: unconfig
402 @./mkconfig $(@:_config=) ppc mpc8xx sixnet
403
wdenkdb2f721f2003-03-06 00:58:30 +0000404# EMK MPC8xx based modules
405TOP860_config: unconfig
406 @./mkconfig $(@:_config=) ppc mpc8xx top860 emk
407
wdenk7ebf7442002-11-02 23:17:16 +0000408# Play some tricks for configuration selection
wdenk73a8b272003-06-05 19:27:42 +0000409# All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock,
wdenk7ebf7442002-11-02 23:17:16 +0000410# but only 855 and 860 boards may come with FEC
411# and 823 boards may have LCD support
wdenk73a8b272003-06-05 19:27:42 +0000412xtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _LCD,,$(subst _config,,$1)))))
wdenk7ebf7442002-11-02 23:17:16 +0000413
414FPS850L_config \
wdenk384ae022002-11-05 00:17:55 +0000415FPS860L_config \
wdenkf12e5682003-07-07 20:07:54 +0000416NSCU_config \
wdenk7ebf7442002-11-02 23:17:16 +0000417TQM823L_config \
418TQM823L_66MHz_config \
419TQM823L_80MHz_config \
420TQM823L_LCD_config \
421TQM823L_LCD_66MHz_config \
422TQM823L_LCD_80MHz_config \
423TQM850L_config \
424TQM850L_66MHz_config \
425TQM850L_80MHz_config \
426TQM855L_config \
427TQM855L_66MHz_config \
428TQM855L_80MHz_config \
wdenk7ebf7442002-11-02 23:17:16 +0000429TQM860L_config \
430TQM860L_66MHz_config \
431TQM860L_80MHz_config \
wdenkd126bfb2003-04-10 11:18:18 +0000432TQM862L_config \
433TQM862L_66MHz_config \
wdenk73a8b272003-06-05 19:27:42 +0000434TQM862L_80MHz_config \
wdenkae3af052003-08-07 22:18:11 +0000435TQM823M_config \
436TQM823M_66MHz_config \
437TQM823M_80MHz_config \
438TQM850M_config \
439TQM850M_66MHz_config \
440TQM850M_80MHz_config \
wdenkf12e5682003-07-07 20:07:54 +0000441TQM855M_config \
442TQM855M_66MHz_config \
443TQM855M_80MHz_config \
444TQM860M_config \
445TQM860M_66MHz_config \
446TQM860M_80MHz_config \
447TQM862M_config \
448TQM862M_66MHz_config \
449TQM862M_80MHz_config \
wdenk71f95112003-06-15 22:40:42 +0000450TQM862M_100MHz_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000451 @ >include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000452 @[ -z "$(findstring _66MHz,$@)" ] || \
453 { echo "#define CONFIG_66MHz" >>include/config.h ; \
454 echo "... with 66MHz system clock" ; \
455 }
456 @[ -z "$(findstring _80MHz,$@)" ] || \
457 { echo "#define CONFIG_80MHz" >>include/config.h ; \
458 echo "... with 80MHz system clock" ; \
459 }
wdenk73a8b272003-06-05 19:27:42 +0000460 @[ -z "$(findstring _100MHz,$@)" ] || \
461 { echo "#define CONFIG_100MHz" >>include/config.h ; \
462 echo "... with 100MHz system clock" ; \
463 }
wdenk7ebf7442002-11-02 23:17:16 +0000464 @[ -z "$(findstring _LCD,$@)" ] || \
465 { echo "#define CONFIG_LCD" >>include/config.h ; \
466 echo "#define CONFIG_NEC_NL6648BC20" >>include/config.h ; \
467 echo "... with LCD display" ; \
468 }
469 @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
470
471TTTech_config: unconfig
472 @echo "#define CONFIG_LCD" >include/config.h
473 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
474 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
475
wdenk608c9142003-01-13 23:54:46 +0000476v37_config: unconfig
477 @echo "#define CONFIG_LCD" >include/config.h
478 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
479 @./mkconfig $(@:_config=) ppc mpc8xx v37
480
dzu91e940d2003-09-25 22:32:40 +0000481wtk_config: unconfig
482 @echo "#define CONFIG_LCD" >include/config.h
483 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
484 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
485
wdenk7ebf7442002-11-02 23:17:16 +0000486#########################################################################
487## PPC4xx Systems
488#########################################################################
wdenkfbe4b5c2003-10-06 21:55:32 +0000489xtract_4xx = $(subst _MODEL_BA,,$(subst _MODEL_ME,,$(subst _MODEL_HI,,$(subst _config,,$1))))
wdenk7ebf7442002-11-02 23:17:16 +0000490
491ADCIOP_config: unconfig
492 @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
493
494AR405_config: unconfig
495 @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
496
stroese549826e2003-05-23 11:41:44 +0000497ASH405_config: unconfig
498 @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
499
500BUBINGA405EP_config:unconfig
501 @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
502
wdenk7ebf7442002-11-02 23:17:16 +0000503CANBT_config: unconfig
504 @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
505
stroese549826e2003-05-23 11:41:44 +0000506CPCI405_config \
507CPCI4052_config \
508CPCI405AB_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000509 @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
510 @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
511
512CPCI440_config: unconfig
513 @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
514
515CPCIISER4_config: unconfig
516 @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
517
518CRAYL1_config:unconfig
519 @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
520
521DASA_SIM_config: unconfig
522 @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
523
stroese72cd5aa2003-09-12 08:57:15 +0000524DP405_config: unconfig
525 @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
526
wdenk7ebf7442002-11-02 23:17:16 +0000527DU405_config: unconfig
528 @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
529
530EBONY_config:unconfig
531 @./mkconfig $(@:_config=) ppc ppc4xx ebony
532
533ERIC_config:unconfig
534 @./mkconfig $(@:_config=) ppc ppc4xx eric
535
wdenkd1cbe852003-06-28 17:24:46 +0000536EXBITGEN_config:unconfig
537 @./mkconfig $(@:_config=) ppc ppc4xx exbitgen
538
stroese72cd5aa2003-09-12 08:57:15 +0000539HUB405_config: unconfig
540 @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
541
wdenk7ebf7442002-11-02 23:17:16 +0000542MIP405_config:unconfig
543 @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
544
wdenkf3e0de62003-06-04 15:05:30 +0000545MIP405T_config:unconfig
546 @echo "#define CONFIG_MIP405T" >include/config.h
547 @echo "Enable subset config for MIP405T"
548 @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
549
wdenk7ebf7442002-11-02 23:17:16 +0000550ML2_config:unconfig
551 @./mkconfig $(@:_config=) ppc ppc4xx ml2
552
553OCRTC_config \
554ORSG_config: unconfig
555 @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
556
557PCI405_config: unconfig
558 @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
559
560PIP405_config:unconfig
561 @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
562
stroese72cd5aa2003-09-12 08:57:15 +0000563PLU405_config: unconfig
564 @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
565
stroese549826e2003-05-23 11:41:44 +0000566PMC405_config: unconfig
567 @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
568
wdenkfbe4b5c2003-10-06 21:55:32 +0000569PPChameleonEVB_MODEL_BA_config \
570PPChameleonEVB_MODEL_ME_config \
571PPChameleonEVB_MODEL_HI_config \
wdenk12f34242003-09-02 22:48:03 +0000572PPChameleonEVB_config: unconfig
wdenkfbe4b5c2003-10-06 21:55:32 +0000573 @ >include/config.h
574 @[ -z "$(findstring _MODEL_BA,$@)" ] || \
575 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
576 echo "... BASIC model" ; \
577 }
578 @[ -z "$(findstring _MODEL_ME,$@)" ] || \
579 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
580 echo "... MEDIUM model" ; \
581 }
582 @[ -z "$(findstring _MODEL_HI,$@)" ] || \
583 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
584 echo "... HIGH-END model" ; \
585 }
586 @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
wdenk12f34242003-09-02 22:48:03 +0000587
stroese72cd5aa2003-09-12 08:57:15 +0000588VOH405_config: unconfig
589 @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
590
wdenk7ebf7442002-11-02 23:17:16 +0000591W7OLMC_config \
592W7OLMG_config: unconfig
593 @./mkconfig $(@:_config=) ppc ppc4xx w7o
594
595WALNUT405_config:unconfig
596 @./mkconfig $(@:_config=) ppc ppc4xx walnut405
597
598#########################################################################
599## MPC824x Systems
600#########################################################################
wdenk3bac3512003-03-12 10:41:04 +0000601xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))
602
wdenk03329902003-06-20 22:36:30 +0000603A3000_config: unconfig
604 @./mkconfig $(@:_config=) ppc mpc824x a3000
605
wdenk7ebf7442002-11-02 23:17:16 +0000606BMW_config: unconfig
607 @./mkconfig $(@:_config=) ppc mpc824x bmw
608
wdenk3bac3512003-03-12 10:41:04 +0000609CPC45_config \
610CPC45_ROMBOOT_config: unconfig
611 @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
612 @cd ./include ; \
613 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
614 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
615 echo "... booting from 8-bit flash" ; \
616 else \
617 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
618 echo "... booting from 64-bit flash" ; \
619 fi; \
620 echo "export CONFIG_BOOT_ROM" >> config.mk;
621
wdenk7ebf7442002-11-02 23:17:16 +0000622CU824_config: unconfig
623 @./mkconfig $(@:_config=) ppc mpc824x cu824
624
625MOUSSE_config: unconfig
626 @./mkconfig $(@:_config=) ppc mpc824x mousse
627
628MUSENKI_config: unconfig
629 @./mkconfig $(@:_config=) ppc mpc824x musenki
630
631OXC_config: unconfig
632 @./mkconfig $(@:_config=) ppc mpc824x oxc
633
634PN62_config: unconfig
635 @./mkconfig $(@:_config=) ppc mpc824x pn62
636
637Sandpoint8240_config: unconfig
638 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
639
640Sandpoint8245_config: unconfig
641 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
642
wdenkd1cbe852003-06-28 17:24:46 +0000643SL8245_config: unconfig
644 @./mkconfig $(@:_config=) ppc mpc824x sl8245
645
wdenk7ebf7442002-11-02 23:17:16 +0000646utx8245_config: unconfig
647 @./mkconfig $(@:_config=) ppc mpc824x utx8245
648
649#########################################################################
650## MPC8260 Systems
651#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000652
wdenk54387ac2003-10-08 22:45:44 +0000653atc_config: unconfig
654 @./mkconfig $(@:_config=) ppc mpc8260 atc
655
wdenk7ebf7442002-11-02 23:17:16 +0000656cogent_mpc8260_config: unconfig
657 @./mkconfig $(@:_config=) ppc mpc8260 cogent
658
659CPU86_config \
660CPU86_ROMBOOT_config: unconfig
661 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
662 @cd ./include ; \
663 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
664 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
665 echo "... booting from 8-bit flash" ; \
666 else \
667 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
668 echo "... booting from 64-bit flash" ; \
669 fi; \
670 echo "export CONFIG_BOOT_ROM" >> config.mk;
671
672ep8260_config: unconfig
673 @./mkconfig $(@:_config=) ppc mpc8260 ep8260
674
675gw8260_config: unconfig
676 @./mkconfig $(@:_config=) ppc mpc8260 gw8260
677
678hymod_config: unconfig
679 @./mkconfig $(@:_config=) ppc mpc8260 hymod
680
681IPHASE4539_config: unconfig
682 @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
683
684MPC8260ADS_config: unconfig
685 @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads
686
wdenkdb2f721f2003-03-06 00:58:30 +0000687MPC8266ADS_config: unconfig
688 @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
689
wdenk10f67012003-03-25 18:06:06 +0000690PM825_config \
691PM825_ROMBOOT_config: unconfig
692 @echo "#define CONFIG_PCI" >include/config.h
693 @./mkconfig -a PM826 ppc mpc8260 pm826
694 @cd ./include ; \
695 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
696 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
697 echo "... booting from 8-bit flash" ; \
698 else \
699 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
700 echo "... booting from 64-bit flash" ; \
701 fi; \
702 echo "export CONFIG_BOOT_ROM" >> config.mk; \
703
wdenk7ebf7442002-11-02 23:17:16 +0000704PM826_config \
705PM826_ROMBOOT_config: unconfig
706 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826
707 @cd ./include ; \
708 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
709 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
710 echo "... booting from 8-bit flash" ; \
711 else \
712 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
713 echo "... booting from 64-bit flash" ; \
714 fi; \
715 echo "export CONFIG_BOOT_ROM" >> config.mk; \
716
717ppmc8260_config: unconfig
718 @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
719
720RPXsuper_config: unconfig
721 @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
722
723rsdproto_config: unconfig
724 @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
725
726sacsng_config: unconfig
727 @./mkconfig $(@:_config=) ppc mpc8260 sacsng
728
729sbc8260_config: unconfig
730 @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
731
732SCM_config: unconfig
733 @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
734
wdenk27b207f2003-07-24 23:38:38 +0000735TQM8255_AA_config \
736TQM8260_AA_config \
737TQM8260_AB_config \
738TQM8260_AC_config \
739TQM8260_AD_config \
740TQM8260_AE_config \
741TQM8260_AF_config \
742TQM8260_AG_config \
743TQM8260_AH_config \
744TQM8265_AA_config: unconfig
745 @case "$@" in \
746 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
747 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
748 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
749 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
750 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
751 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
752 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
753 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
754 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
755 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
756 esac; \
757 >include/config.h ; \
758 if [ "$${CTYPE}" != "MPC8260" ] ; then \
759 echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \
760 fi; \
761 echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \
762 echo "... with $${CFREQ}MHz system clock" ; \
763 if [ "$${CACHE}" == "yes" ] ; then \
wdenk7ebf7442002-11-02 23:17:16 +0000764 echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
wdenk27b207f2003-07-24 23:38:38 +0000765 echo "... with L2 Cache support" ; \
wdenk7ebf7442002-11-02 23:17:16 +0000766 else \
767 echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
768 echo "... without L2 Cache support" ; \
wdenk27b207f2003-07-24 23:38:38 +0000769 fi; \
770 if [ "$${BMODE}" == "60x" ] ; then \
771 echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
772 echo "... with 60x Bus Mode" ; \
773 else \
774 echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \
775 echo "... without 60x Bus Mode" ; \
wdenk7ebf7442002-11-02 23:17:16 +0000776 fi
wdenk4532cb62003-04-27 22:52:51 +0000777 @./mkconfig -a TQM8260 ppc mpc8260 tqm8260
wdenk7ebf7442002-11-02 23:17:16 +0000778
wdenk54387ac2003-10-08 22:45:44 +0000779ZPC1900_config: unconfig
780 @./mkconfig $(@:_config=) ppc mpc8260 zpc1900
wdenk7aa78612003-05-03 15:50:43 +0000781
wdenk7ebf7442002-11-02 23:17:16 +0000782#########################################################################
wdenk42d1f032003-10-15 23:53:47 +0000783## MPC85xx Systems
784#########################################################################
785
786MPC8540ADS_config: unconfig
787 @./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
788
789MPC8560ADS_config: unconfig
790 @./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
791
792#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000793## 74xx/7xx Systems
794#########################################################################
795
wdenkc7de8292002-11-19 11:04:11 +0000796AmigaOneG3SE_config: unconfig
797 @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
798
wdenk15647dc2003-10-09 19:00:25 +0000799BAB7xx_config: unconfig
800 @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
801
802debris_config: unconfig
803 @./mkconfig $(@:_config=) ppc mpc824x debris etin
804
805ELPPC_config: unconfig
806 @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
807
wdenk7ebf7442002-11-02 23:17:16 +0000808EVB64260_config \
809EVB64260_750CX_config: unconfig
810 @./mkconfig EVB64260 ppc 74xx_7xx evb64260
811
wdenk15647dc2003-10-09 19:00:25 +0000812P3G4_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000813 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
814
815PCIPPC2_config \
816PCIPPC6_config: unconfig
817 @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
818
wdenk15647dc2003-10-09 19:00:25 +0000819ZUMA_config: unconfig
wdenk12f34242003-09-02 22:48:03 +0000820 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
821
wdenk7ebf7442002-11-02 23:17:16 +0000822#========================================================================
823# ARM
824#========================================================================
825#########################################################################
826## StrongARM Systems
827#########################################################################
828
wdenkdc7c9a12003-03-26 06:55:25 +0000829at91rm9200dk_config : unconfig
830 @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk
831
wdenk7ebf7442002-11-02 23:17:16 +0000832lart_config : unconfig
833 @./mkconfig $(@:_config=) arm sa1100 lart
834
835dnp1110_config : unconfig
836 @./mkconfig $(@:_config=) arm sa1100 dnp1110
837
838shannon_config : unconfig
839 @./mkconfig $(@:_config=) arm sa1100 shannon
840
841#########################################################################
wdenk2e5983d2003-07-15 20:04:06 +0000842## ARM92xT Systems
wdenk7ebf7442002-11-02 23:17:16 +0000843#########################################################################
844
wdenkb0639ca2003-09-17 22:48:07 +0000845xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
wdenk43d96162003-03-06 00:02:04 +0000846
wdenk2e5983d2003-07-15 20:04:06 +0000847omap1510inn_config : unconfig
848 @./mkconfig $(@:_config=) arm arm925t omap1510inn
849
wdenk6f213472003-08-29 22:00:43 +0000850omap1610inn_config : unconfig
851 @./mkconfig $(@:_config=) arm arm926ejs omap1610inn
852
wdenk7ebf7442002-11-02 23:17:16 +0000853smdk2400_config : unconfig
854 @./mkconfig $(@:_config=) arm arm920t smdk2400
855
856smdk2410_config : unconfig
857 @./mkconfig $(@:_config=) arm arm920t smdk2410
858
wdenk43d96162003-03-06 00:02:04 +0000859trab_config \
wdenkb0639ca2003-09-17 22:48:07 +0000860trab_bigram_config \
861trab_bigflash_config \
wdenkf54ebdf2003-09-17 15:10:32 +0000862trab_old_config: unconfig
wdenk43d96162003-03-06 00:02:04 +0000863 @ >include/config.h
wdenkb0639ca2003-09-17 22:48:07 +0000864 @[ -z "$(findstring _bigram,$@)" ] || \
865 { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
866 echo "... with 8 MB Flash, 32 MB RAM" ; \
867 }
868 @[ -z "$(findstring _bigflash,$@)" ] || \
869 { echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
870 echo "... with 16 MB Flash, 16 MB RAM" ; \
871 echo "TEXT_BASE = 0x0CF00000" >board/trab/config.tmp ; \
872 }
wdenkf54ebdf2003-09-17 15:10:32 +0000873 @[ -z "$(findstring _old,$@)" ] || \
874 { echo "#define CONFIG_OLD_VERSION" >>include/config.h ; \
875 echo "... with small memory configuration" ; \
wdenkb0639ca2003-09-17 22:48:07 +0000876 echo "TEXT_BASE = 0x0CF00000" >board/trab/config.tmp ; \
wdenk43d96162003-03-06 00:02:04 +0000877 }
878 @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab
wdenk7ebf7442002-11-02 23:17:16 +0000879
wdenk1cb8e982003-03-06 21:55:29 +0000880VCMA9_config : unconfig
881 @./mkconfig $(@:_config=) arm arm920t vcma9 mpl
882
wdenk7ebf7442002-11-02 23:17:16 +0000883#########################################################################
884## ARM720T Systems
885#########################################################################
886
887impa7_config : unconfig
888 @./mkconfig $(@:_config=) arm arm720t impa7
889
890ep7312_config : unconfig
891 @./mkconfig $(@:_config=) arm arm720t ep7312
892
893#########################################################################
wdenk43d96162003-03-06 00:02:04 +0000894## XScale Systems
wdenk7ebf7442002-11-02 23:17:16 +0000895#########################################################################
896
wdenk7ebf7442002-11-02 23:17:16 +0000897cradle_config : unconfig
wdenk8bde7f72003-06-27 21:31:46 +0000898 @./mkconfig $(@:_config=) arm pxa cradle
wdenk7ebf7442002-11-02 23:17:16 +0000899
900csb226_config : unconfig
wdenk4c3b21a2003-05-23 12:36:20 +0000901 @./mkconfig $(@:_config=) arm pxa csb226
wdenk7ebf7442002-11-02 23:17:16 +0000902
wdenk43d96162003-03-06 00:02:04 +0000903innokom_config : unconfig
wdenk4c3b21a2003-05-23 12:36:20 +0000904 @./mkconfig $(@:_config=) arm pxa innokom
wdenk43d96162003-03-06 00:02:04 +0000905
wdenk2d5b5612003-10-14 19:43:55 +0000906ixdp425_config : unconfig
907 @./mkconfig $(@:_config=) arm ixp ixdp425
908
wdenk43d96162003-03-06 00:02:04 +0000909lubbock_config : unconfig
wdenk4c3b21a2003-05-23 12:36:20 +0000910 @./mkconfig $(@:_config=) arm pxa lubbock
wdenk43d96162003-03-06 00:02:04 +0000911
wdenk52f52c12003-06-19 23:04:19 +0000912logodl_config : unconfig
913 @./mkconfig $(@:_config=) arm pxa logodl
914
wdenk3e386912003-04-05 00:53:31 +0000915wepep250_config : unconfig
wdenk4c3b21a2003-05-23 12:36:20 +0000916 @./mkconfig $(@:_config=) arm pxa wepep250
wdenk3e386912003-04-05 00:53:31 +0000917
wdenk2262cfe2002-11-18 00:14:45 +0000918#========================================================================
919# i386
920#========================================================================
921#########################################################################
wdenk1cb8e982003-03-06 21:55:29 +0000922## AMD SC520 CDP
wdenk2262cfe2002-11-18 00:14:45 +0000923#########################################################################
924sc520_cdp_config : unconfig
925 @./mkconfig $(@:_config=) i386 i386 sc520_cdp
926
wdenk7a8e9bed2003-05-31 18:35:21 +0000927sc520_spunk_config : unconfig
928 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
929
930sc520_spunk_rel_config : unconfig
931 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
932
wdenk43d96162003-03-06 00:02:04 +0000933#========================================================================
934# MIPS
935#========================================================================
wdenk7ebf7442002-11-02 23:17:16 +0000936#########################################################################
wdenk43d96162003-03-06 00:02:04 +0000937## MIPS32 4Kc
938#########################################################################
939
wdenke0ac62d2003-08-17 18:55:18 +0000940xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
941
942incaip_100MHz_config \
943incaip_133MHz_config \
944incaip_150MHz_config \
945incaip_config: unconfig
946 @ >include/config.h
947 @[ -z "$(findstring _100MHz,$@)" ] || \
948 { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
949 echo "... with 100MHz system clock" ; \
950 }
951 @[ -z "$(findstring _133MHz,$@)" ] || \
952 { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
953 echo "... with 133MHz system clock" ; \
954 }
955 @[ -z "$(findstring _150MHz,$@)" ] || \
956 { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
957 echo "... with 150MHz system clock" ; \
958 }
959 @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
960
961#########################################################################
962## MIPS64 5Kc
963#########################################################################
wdenk43d96162003-03-06 00:02:04 +0000964
wdenk3e386912003-04-05 00:53:31 +0000965purple_config : unconfig
966 @./mkconfig $(@:_config=) mips mips purple
wdenk43d96162003-03-06 00:02:04 +0000967
wdenk4a551702003-10-08 23:26:14 +0000968#========================================================================
969# Nios
970#========================================================================
971#########################################################################
972## Nios32
973#########################################################################
974
975DK1C20_config: unconfig
976 @./mkconfig $(@:_config=) nios nios dk1c20
977
978
wdenk3e386912003-04-05 00:53:31 +0000979#########################################################################
wdenk5da627a2003-10-09 20:09:04 +0000980## MIPS32 AU1000
981#########################################################################
982dbau1x00_config : unconfig
983 @./mkconfig $(@:_config=) mips mips dbau1x00
984
985#########################################################################
wdenk3e386912003-04-05 00:53:31 +0000986#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000987
988clean:
989 find . -type f \
990 \( -name 'core' -o -name '*.bak' -o -name '*~' \
991 -o -name '*.o' -o -name '*.a' \) -print \
992 | xargs rm -f
wdenk85ec0bc2003-03-31 16:34:49 +0000993 rm -f examples/hello_world examples/timer \
wdenk3e386912003-04-05 00:53:31 +0000994 examples/eepro100_eeprom examples/sched \
wdenk7a8e9bed2003-05-31 18:35:21 +0000995 examples/mem_to_mem_idma2intr examples/82559_eeprom
996
wdenk7ebf7442002-11-02 23:17:16 +0000997 rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
998 rm -f tools/easylogo/easylogo tools/bmp_logo
999 rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
wdenk228f29a2002-12-08 09:53:23 +00001000 rm -f tools/env/fw_printenv tools/env/fw_setenv
wdenk7f70e852003-05-20 14:25:27 +00001001 rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
wdenkb0639ca2003-09-17 22:48:07 +00001002 rm -f board/trab/trab_fkt board/trab/config.tmp
wdenk7ebf7442002-11-02 23:17:16 +00001003
1004clobber: clean
1005 find . -type f \
1006 \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \
1007 -print \
1008 | xargs rm -f
1009 rm -f $(OBJS) *.bak tags TAGS
1010 rm -fr *.*~
wdenkbdccc4f2003-08-05 17:43:17 +00001011 rm -f u-boot u-boot.map $(ALL)
wdenk228f29a2002-12-08 09:53:23 +00001012 rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
wdenk3e386912003-04-05 00:53:31 +00001013 rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
wdenkb783eda2003-06-25 22:26:29 +00001014 rm -f include/asm/proc include/asm/arch include/asm
wdenk7ebf7442002-11-02 23:17:16 +00001015
1016mrproper \
1017distclean: clobber unconfig
1018
1019backup:
1020 F=`basename $(TOPDIR)` ; cd .. ; \
1021 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
1022
1023#########################################################################