blob: 67ec5fb1a44caef048e4ce9c937b70c23d1292cf [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#########################################################################
206IceCube_5200_config \
207IceCube_5100_config: unconfig
208 @ >include/config.h
209 @[ -z "$(findstring _5200,$@)" ] || \
210 { echo "#define CONFIG_MPC5200" >>include/config.h ; \
211 echo "... with MPC5200 processor" ; \
212 }
213 @[ -z "$(findstring _5100,$@)" ] || \
214 { echo "#define CONFIG_MGT5100" >>include/config.h ; \
215 echo "... with MGT5100 processor" ; \
216 }
217 @./mkconfig -a IceCube ppc mpc5xxx icecube
218
219#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000220## MPC8xx Systems
221#########################################################################
222
wdenk0cb61d72003-08-30 00:05:50 +0000223AdderII_config: unconfig
224 @./mkconfig $(@:_config=) ppc mpc8xx adderII
225
wdenk7ebf7442002-11-02 23:17:16 +0000226ADS860_config: unconfig
227 @./mkconfig $(@:_config=) ppc mpc8xx fads
228
229AMX860_config : unconfig
230 @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
231
232c2mon_config: unconfig
233 @./mkconfig $(@:_config=) ppc mpc8xx c2mon
234
235CCM_config: unconfig
236 @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
237
238cogent_mpc8xx_config: unconfig
239 @./mkconfig $(@:_config=) ppc mpc8xx cogent
240
wdenk3bac3512003-03-12 10:41:04 +0000241ELPT860_config: unconfig
242 @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
243
wdenk7ebf7442002-11-02 23:17:16 +0000244ESTEEM192E_config: unconfig
245 @./mkconfig $(@:_config=) ppc mpc8xx esteem192e
246
247ETX094_config : unconfig
248 @./mkconfig $(@:_config=) ppc mpc8xx etx094
249
250FADS823_config \
251FADS850SAR_config \
wdenk2535d602003-07-17 23:16:40 +0000252MPC86xADS_config \
wdenk7ebf7442002-11-02 23:17:16 +0000253FADS860T_config: unconfig
254 @./mkconfig $(@:_config=) ppc mpc8xx fads
255
256FLAGADM_config: unconfig
257 @./mkconfig $(@:_config=) ppc mpc8xx flagadm
258
wdenk7aa78612003-05-03 15:50:43 +0000259xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
260
261GEN860T_SC_config \
wdenk7ebf7442002-11-02 23:17:16 +0000262GEN860T_config: unconfig
wdenk7aa78612003-05-03 15:50:43 +0000263 @ >include/config.h
264 @[ -z "$(findstring _SC,$@)" ] || \
265 { echo "#define CONFIG_SC" >>include/config.h ; \
266 echo "With reduced H/W feature set (SC)..." ; \
267 }
268 @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
wdenk7ebf7442002-11-02 23:17:16 +0000269
270GENIETV_config: unconfig
271 @./mkconfig $(@:_config=) ppc mpc8xx genietv
272
273GTH_config: unconfig
274 @./mkconfig $(@:_config=) ppc mpc8xx gth
275
276hermes_config : unconfig
277 @./mkconfig $(@:_config=) ppc mpc8xx hermes
278
279IAD210_config: unconfig
280 @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
281
282xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
283
284ICU862_100MHz_config \
285ICU862_config: unconfig
286 @ >include/config.h
287 @[ -z "$(findstring _100MHz,$@)" ] || \
288 { echo "#define CONFIG_100MHz" >>include/config.h ; \
289 echo "... with 100MHz system clock" ; \
290 }
291 @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
292
293IP860_config : unconfig
294 @./mkconfig $(@:_config=) ppc mpc8xx ip860
295
296IVML24_256_config \
297IVML24_128_config \
298IVML24_config: unconfig
299 @ >include/config.h
300 @[ -z "$(findstring IVML24_config,$@)" ] || \
301 { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \
302 }
303 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
304 { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \
305 }
306 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
307 { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \
308 }
309 @./mkconfig -a IVML24 ppc mpc8xx ivm
310
311IVMS8_256_config \
312IVMS8_128_config \
313IVMS8_config: unconfig
314 @ >include/config.h
315 @[ -z "$(findstring IVMS8_config,$@)" ] || \
316 { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \
317 }
318 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
319 { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \
320 }
321 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
322 { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \
323 }
324 @./mkconfig -a IVMS8 ppc mpc8xx ivm
325
wdenk56f94be2002-11-05 16:35:14 +0000326KUP4K_config : unconfig
327 @./mkconfig $(@:_config=) ppc mpc8xx kup4k
328
wdenk7ebf7442002-11-02 23:17:16 +0000329LANTEC_config : unconfig
330 @./mkconfig $(@:_config=) ppc mpc8xx lantec
331
332lwmon_config: unconfig
333 @./mkconfig $(@:_config=) ppc mpc8xx lwmon
334
335MBX_config \
336MBX860T_config: unconfig
337 @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
338
339MHPC_config: unconfig
340 @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
341
342MVS1_config : unconfig
343 @./mkconfig $(@:_config=) ppc mpc8xx mvs1
344
wdenk993cad92003-06-26 22:04:09 +0000345xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
346
347NETVIA_V2_config \
wdenk7ebf7442002-11-02 23:17:16 +0000348NETVIA_config: unconfig
wdenk993cad92003-06-26 22:04:09 +0000349 @ >include/config.h
350 @[ -z "$(findstring NETVIA_config,$@)" ] || \
351 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
352 echo "... Version 1" ; \
353 }
354 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
355 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
356 echo "... Version 2" ; \
357 }
358 @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
wdenk7ebf7442002-11-02 23:17:16 +0000359
360NX823_config: unconfig
361 @./mkconfig $(@:_config=) ppc mpc8xx nx823
362
363pcu_e_config: unconfig
364 @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
365
366R360MPI_config: unconfig
367 @./mkconfig $(@:_config=) ppc mpc8xx r360mpi
368
wdenk682011f2003-06-03 23:54:09 +0000369RBC823_config: unconfig
370 @./mkconfig $(@:_config=) ppc mpc8xx rbc823
371
wdenk7ebf7442002-11-02 23:17:16 +0000372RPXClassic_config: unconfig
373 @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
374
375RPXlite_config: unconfig
376 @./mkconfig $(@:_config=) ppc mpc8xx RPXlite
377
wdenk73a8b272003-06-05 19:27:42 +0000378rmu_config: unconfig
379 @./mkconfig $(@:_config=) ppc mpc8xx rmu
380
wdenk7ebf7442002-11-02 23:17:16 +0000381RRvision_config: unconfig
382 @./mkconfig $(@:_config=) ppc mpc8xx RRvision
383
384RRvision_LCD_config: unconfig
385 @echo "#define CONFIG_LCD" >include/config.h
386 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
387 @./mkconfig -a RRvision ppc mpc8xx RRvision
388
389SM850_config : unconfig
390 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
391
392SPD823TS_config: unconfig
393 @./mkconfig $(@:_config=) ppc mpc8xx spd8xx
394
wdenkdc7c9a12003-03-26 06:55:25 +0000395svm_sc8xx_config: unconfig
396 @ >include/config.h
397 @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
398
wdenk7ebf7442002-11-02 23:17:16 +0000399SXNI855T_config: unconfig
400 @./mkconfig $(@:_config=) ppc mpc8xx sixnet
401
wdenkdb2f721f2003-03-06 00:58:30 +0000402# EMK MPC8xx based modules
403TOP860_config: unconfig
404 @./mkconfig $(@:_config=) ppc mpc8xx top860 emk
405
wdenk7ebf7442002-11-02 23:17:16 +0000406# Play some tricks for configuration selection
wdenk73a8b272003-06-05 19:27:42 +0000407# All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock,
wdenk7ebf7442002-11-02 23:17:16 +0000408# but only 855 and 860 boards may come with FEC
409# and 823 boards may have LCD support
wdenk73a8b272003-06-05 19:27:42 +0000410xtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _LCD,,$(subst _config,,$1)))))
wdenk7ebf7442002-11-02 23:17:16 +0000411
412FPS850L_config \
wdenk384ae022002-11-05 00:17:55 +0000413FPS860L_config \
wdenkf12e5682003-07-07 20:07:54 +0000414NSCU_config \
wdenk7ebf7442002-11-02 23:17:16 +0000415TQM823L_config \
416TQM823L_66MHz_config \
417TQM823L_80MHz_config \
418TQM823L_LCD_config \
419TQM823L_LCD_66MHz_config \
420TQM823L_LCD_80MHz_config \
421TQM850L_config \
422TQM850L_66MHz_config \
423TQM850L_80MHz_config \
424TQM855L_config \
425TQM855L_66MHz_config \
426TQM855L_80MHz_config \
wdenk7ebf7442002-11-02 23:17:16 +0000427TQM860L_config \
428TQM860L_66MHz_config \
429TQM860L_80MHz_config \
wdenkd126bfb2003-04-10 11:18:18 +0000430TQM862L_config \
431TQM862L_66MHz_config \
wdenk73a8b272003-06-05 19:27:42 +0000432TQM862L_80MHz_config \
wdenkae3af052003-08-07 22:18:11 +0000433TQM823M_config \
434TQM823M_66MHz_config \
435TQM823M_80MHz_config \
436TQM850M_config \
437TQM850M_66MHz_config \
438TQM850M_80MHz_config \
wdenkf12e5682003-07-07 20:07:54 +0000439TQM855M_config \
440TQM855M_66MHz_config \
441TQM855M_80MHz_config \
442TQM860M_config \
443TQM860M_66MHz_config \
444TQM860M_80MHz_config \
445TQM862M_config \
446TQM862M_66MHz_config \
447TQM862M_80MHz_config \
wdenk71f95112003-06-15 22:40:42 +0000448TQM862M_100MHz_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000449 @ >include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000450 @[ -z "$(findstring _66MHz,$@)" ] || \
451 { echo "#define CONFIG_66MHz" >>include/config.h ; \
452 echo "... with 66MHz system clock" ; \
453 }
454 @[ -z "$(findstring _80MHz,$@)" ] || \
455 { echo "#define CONFIG_80MHz" >>include/config.h ; \
456 echo "... with 80MHz system clock" ; \
457 }
wdenk73a8b272003-06-05 19:27:42 +0000458 @[ -z "$(findstring _100MHz,$@)" ] || \
459 { echo "#define CONFIG_100MHz" >>include/config.h ; \
460 echo "... with 100MHz system clock" ; \
461 }
wdenk7ebf7442002-11-02 23:17:16 +0000462 @[ -z "$(findstring _LCD,$@)" ] || \
463 { echo "#define CONFIG_LCD" >>include/config.h ; \
464 echo "#define CONFIG_NEC_NL6648BC20" >>include/config.h ; \
465 echo "... with LCD display" ; \
466 }
467 @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
468
469TTTech_config: unconfig
470 @echo "#define CONFIG_LCD" >include/config.h
471 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
472 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
473
wdenk608c9142003-01-13 23:54:46 +0000474v37_config: unconfig
475 @echo "#define CONFIG_LCD" >include/config.h
476 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
477 @./mkconfig $(@:_config=) ppc mpc8xx v37
478
dzu91e940d2003-09-25 22:32:40 +0000479wtk_config: unconfig
480 @echo "#define CONFIG_LCD" >include/config.h
481 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
482 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
483
wdenk7ebf7442002-11-02 23:17:16 +0000484#########################################################################
485## PPC4xx Systems
486#########################################################################
wdenkfbe4b5c2003-10-06 21:55:32 +0000487xtract_4xx = $(subst _MODEL_BA,,$(subst _MODEL_ME,,$(subst _MODEL_HI,,$(subst _config,,$1))))
wdenk7ebf7442002-11-02 23:17:16 +0000488
489ADCIOP_config: unconfig
490 @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
491
492AR405_config: unconfig
493 @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
494
stroese549826e2003-05-23 11:41:44 +0000495ASH405_config: unconfig
496 @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
497
498BUBINGA405EP_config:unconfig
499 @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
500
wdenk7ebf7442002-11-02 23:17:16 +0000501CANBT_config: unconfig
502 @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
503
stroese549826e2003-05-23 11:41:44 +0000504CPCI405_config \
505CPCI4052_config \
506CPCI405AB_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000507 @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
508 @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
509
510CPCI440_config: unconfig
511 @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
512
513CPCIISER4_config: unconfig
514 @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
515
516CRAYL1_config:unconfig
517 @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
518
519DASA_SIM_config: unconfig
520 @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
521
stroese72cd5aa2003-09-12 08:57:15 +0000522DP405_config: unconfig
523 @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
524
wdenk7ebf7442002-11-02 23:17:16 +0000525DU405_config: unconfig
526 @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
527
528EBONY_config:unconfig
529 @./mkconfig $(@:_config=) ppc ppc4xx ebony
530
531ERIC_config:unconfig
532 @./mkconfig $(@:_config=) ppc ppc4xx eric
533
wdenkd1cbe852003-06-28 17:24:46 +0000534EXBITGEN_config:unconfig
535 @./mkconfig $(@:_config=) ppc ppc4xx exbitgen
536
stroese72cd5aa2003-09-12 08:57:15 +0000537HUB405_config: unconfig
538 @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
539
wdenk7ebf7442002-11-02 23:17:16 +0000540MIP405_config:unconfig
541 @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
542
wdenkf3e0de62003-06-04 15:05:30 +0000543MIP405T_config:unconfig
544 @echo "#define CONFIG_MIP405T" >include/config.h
545 @echo "Enable subset config for MIP405T"
546 @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
547
wdenk7ebf7442002-11-02 23:17:16 +0000548ML2_config:unconfig
549 @./mkconfig $(@:_config=) ppc ppc4xx ml2
550
551OCRTC_config \
552ORSG_config: unconfig
553 @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
554
555PCI405_config: unconfig
556 @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
557
558PIP405_config:unconfig
559 @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
560
stroese72cd5aa2003-09-12 08:57:15 +0000561PLU405_config: unconfig
562 @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
563
stroese549826e2003-05-23 11:41:44 +0000564PMC405_config: unconfig
565 @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
566
wdenkfbe4b5c2003-10-06 21:55:32 +0000567PPChameleonEVB_MODEL_BA_config \
568PPChameleonEVB_MODEL_ME_config \
569PPChameleonEVB_MODEL_HI_config \
wdenk12f34242003-09-02 22:48:03 +0000570PPChameleonEVB_config: unconfig
wdenkfbe4b5c2003-10-06 21:55:32 +0000571 @ >include/config.h
572 @[ -z "$(findstring _MODEL_BA,$@)" ] || \
573 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
574 echo "... BASIC model" ; \
575 }
576 @[ -z "$(findstring _MODEL_ME,$@)" ] || \
577 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
578 echo "... MEDIUM model" ; \
579 }
580 @[ -z "$(findstring _MODEL_HI,$@)" ] || \
581 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
582 echo "... HIGH-END model" ; \
583 }
584 @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
wdenk12f34242003-09-02 22:48:03 +0000585
stroese72cd5aa2003-09-12 08:57:15 +0000586VOH405_config: unconfig
587 @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
588
wdenk7ebf7442002-11-02 23:17:16 +0000589W7OLMC_config \
590W7OLMG_config: unconfig
591 @./mkconfig $(@:_config=) ppc ppc4xx w7o
592
593WALNUT405_config:unconfig
594 @./mkconfig $(@:_config=) ppc ppc4xx walnut405
595
596#########################################################################
597## MPC824x Systems
598#########################################################################
wdenk3bac3512003-03-12 10:41:04 +0000599xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))
600
wdenk03329902003-06-20 22:36:30 +0000601A3000_config: unconfig
602 @./mkconfig $(@:_config=) ppc mpc824x a3000
603
wdenk7ebf7442002-11-02 23:17:16 +0000604BMW_config: unconfig
605 @./mkconfig $(@:_config=) ppc mpc824x bmw
606
wdenk3bac3512003-03-12 10:41:04 +0000607CPC45_config \
608CPC45_ROMBOOT_config: unconfig
609 @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
610 @cd ./include ; \
611 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
612 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
613 echo "... booting from 8-bit flash" ; \
614 else \
615 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
616 echo "... booting from 64-bit flash" ; \
617 fi; \
618 echo "export CONFIG_BOOT_ROM" >> config.mk;
619
wdenk7ebf7442002-11-02 23:17:16 +0000620CU824_config: unconfig
621 @./mkconfig $(@:_config=) ppc mpc824x cu824
622
623MOUSSE_config: unconfig
624 @./mkconfig $(@:_config=) ppc mpc824x mousse
625
626MUSENKI_config: unconfig
627 @./mkconfig $(@:_config=) ppc mpc824x musenki
628
629OXC_config: unconfig
630 @./mkconfig $(@:_config=) ppc mpc824x oxc
631
632PN62_config: unconfig
633 @./mkconfig $(@:_config=) ppc mpc824x pn62
634
635Sandpoint8240_config: unconfig
636 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
637
638Sandpoint8245_config: unconfig
639 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
640
wdenkd1cbe852003-06-28 17:24:46 +0000641SL8245_config: unconfig
642 @./mkconfig $(@:_config=) ppc mpc824x sl8245
643
wdenk7ebf7442002-11-02 23:17:16 +0000644utx8245_config: unconfig
645 @./mkconfig $(@:_config=) ppc mpc824x utx8245
646
647#########################################################################
648## MPC8260 Systems
649#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000650
wdenk54387ac2003-10-08 22:45:44 +0000651atc_config: unconfig
652 @./mkconfig $(@:_config=) ppc mpc8260 atc
653
wdenk7ebf7442002-11-02 23:17:16 +0000654cogent_mpc8260_config: unconfig
655 @./mkconfig $(@:_config=) ppc mpc8260 cogent
656
657CPU86_config \
658CPU86_ROMBOOT_config: unconfig
659 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
660 @cd ./include ; \
661 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
662 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
663 echo "... booting from 8-bit flash" ; \
664 else \
665 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
666 echo "... booting from 64-bit flash" ; \
667 fi; \
668 echo "export CONFIG_BOOT_ROM" >> config.mk;
669
670ep8260_config: unconfig
671 @./mkconfig $(@:_config=) ppc mpc8260 ep8260
672
673gw8260_config: unconfig
674 @./mkconfig $(@:_config=) ppc mpc8260 gw8260
675
676hymod_config: unconfig
677 @./mkconfig $(@:_config=) ppc mpc8260 hymod
678
679IPHASE4539_config: unconfig
680 @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
681
682MPC8260ADS_config: unconfig
683 @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads
684
wdenkdb2f721f2003-03-06 00:58:30 +0000685MPC8266ADS_config: unconfig
686 @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
687
wdenk10f67012003-03-25 18:06:06 +0000688PM825_config \
689PM825_ROMBOOT_config: unconfig
690 @echo "#define CONFIG_PCI" >include/config.h
691 @./mkconfig -a PM826 ppc mpc8260 pm826
692 @cd ./include ; \
693 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
694 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
695 echo "... booting from 8-bit flash" ; \
696 else \
697 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
698 echo "... booting from 64-bit flash" ; \
699 fi; \
700 echo "export CONFIG_BOOT_ROM" >> config.mk; \
701
wdenk7ebf7442002-11-02 23:17:16 +0000702PM826_config \
703PM826_ROMBOOT_config: unconfig
704 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826
705 @cd ./include ; \
706 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
707 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
708 echo "... booting from 8-bit flash" ; \
709 else \
710 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
711 echo "... booting from 64-bit flash" ; \
712 fi; \
713 echo "export CONFIG_BOOT_ROM" >> config.mk; \
714
715ppmc8260_config: unconfig
716 @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
717
718RPXsuper_config: unconfig
719 @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
720
721rsdproto_config: unconfig
722 @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
723
724sacsng_config: unconfig
725 @./mkconfig $(@:_config=) ppc mpc8260 sacsng
726
727sbc8260_config: unconfig
728 @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
729
730SCM_config: unconfig
731 @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
732
wdenk27b207f2003-07-24 23:38:38 +0000733TQM8255_AA_config \
734TQM8260_AA_config \
735TQM8260_AB_config \
736TQM8260_AC_config \
737TQM8260_AD_config \
738TQM8260_AE_config \
739TQM8260_AF_config \
740TQM8260_AG_config \
741TQM8260_AH_config \
742TQM8265_AA_config: unconfig
743 @case "$@" in \
744 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
745 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
746 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
747 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
748 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
749 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
750 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
751 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
752 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
753 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
754 esac; \
755 >include/config.h ; \
756 if [ "$${CTYPE}" != "MPC8260" ] ; then \
757 echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \
758 fi; \
759 echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \
760 echo "... with $${CFREQ}MHz system clock" ; \
761 if [ "$${CACHE}" == "yes" ] ; then \
wdenk7ebf7442002-11-02 23:17:16 +0000762 echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
wdenk27b207f2003-07-24 23:38:38 +0000763 echo "... with L2 Cache support" ; \
wdenk7ebf7442002-11-02 23:17:16 +0000764 else \
765 echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
766 echo "... without L2 Cache support" ; \
wdenk27b207f2003-07-24 23:38:38 +0000767 fi; \
768 if [ "$${BMODE}" == "60x" ] ; then \
769 echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
770 echo "... with 60x Bus Mode" ; \
771 else \
772 echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \
773 echo "... without 60x Bus Mode" ; \
wdenk7ebf7442002-11-02 23:17:16 +0000774 fi
wdenk4532cb62003-04-27 22:52:51 +0000775 @./mkconfig -a TQM8260 ppc mpc8260 tqm8260
wdenk7ebf7442002-11-02 23:17:16 +0000776
wdenk54387ac2003-10-08 22:45:44 +0000777ZPC1900_config: unconfig
778 @./mkconfig $(@:_config=) ppc mpc8260 zpc1900
wdenk7aa78612003-05-03 15:50:43 +0000779
wdenk7ebf7442002-11-02 23:17:16 +0000780#########################################################################
wdenk42d1f032003-10-15 23:53:47 +0000781## MPC85xx Systems
782#########################################################################
783
784MPC8540ADS_config: unconfig
785 @./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
786
787MPC8560ADS_config: unconfig
788 @./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
789
790#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000791## 74xx/7xx Systems
792#########################################################################
793
wdenkc7de8292002-11-19 11:04:11 +0000794AmigaOneG3SE_config: unconfig
795 @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
796
wdenk15647dc2003-10-09 19:00:25 +0000797BAB7xx_config: unconfig
798 @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
799
800debris_config: unconfig
801 @./mkconfig $(@:_config=) ppc mpc824x debris etin
802
803ELPPC_config: unconfig
804 @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
805
wdenk7ebf7442002-11-02 23:17:16 +0000806EVB64260_config \
807EVB64260_750CX_config: unconfig
808 @./mkconfig EVB64260 ppc 74xx_7xx evb64260
809
wdenk15647dc2003-10-09 19:00:25 +0000810P3G4_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000811 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
812
813PCIPPC2_config \
814PCIPPC6_config: unconfig
815 @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
816
wdenk15647dc2003-10-09 19:00:25 +0000817ZUMA_config: unconfig
wdenk12f34242003-09-02 22:48:03 +0000818 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
819
wdenk7ebf7442002-11-02 23:17:16 +0000820#========================================================================
821# ARM
822#========================================================================
823#########################################################################
824## StrongARM Systems
825#########################################################################
826
wdenkdc7c9a12003-03-26 06:55:25 +0000827at91rm9200dk_config : unconfig
828 @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk
829
wdenk7ebf7442002-11-02 23:17:16 +0000830lart_config : unconfig
831 @./mkconfig $(@:_config=) arm sa1100 lart
832
833dnp1110_config : unconfig
834 @./mkconfig $(@:_config=) arm sa1100 dnp1110
835
836shannon_config : unconfig
837 @./mkconfig $(@:_config=) arm sa1100 shannon
838
839#########################################################################
wdenk2e5983d2003-07-15 20:04:06 +0000840## ARM92xT Systems
wdenk7ebf7442002-11-02 23:17:16 +0000841#########################################################################
842
wdenkb0639ca2003-09-17 22:48:07 +0000843xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
wdenk43d96162003-03-06 00:02:04 +0000844
wdenk2e5983d2003-07-15 20:04:06 +0000845omap1510inn_config : unconfig
846 @./mkconfig $(@:_config=) arm arm925t omap1510inn
847
wdenk6f213472003-08-29 22:00:43 +0000848omap1610inn_config : unconfig
849 @./mkconfig $(@:_config=) arm arm926ejs omap1610inn
850
wdenk7ebf7442002-11-02 23:17:16 +0000851smdk2400_config : unconfig
852 @./mkconfig $(@:_config=) arm arm920t smdk2400
853
854smdk2410_config : unconfig
855 @./mkconfig $(@:_config=) arm arm920t smdk2410
856
wdenk43d96162003-03-06 00:02:04 +0000857trab_config \
wdenkb0639ca2003-09-17 22:48:07 +0000858trab_bigram_config \
859trab_bigflash_config \
wdenkf54ebdf2003-09-17 15:10:32 +0000860trab_old_config: unconfig
wdenk43d96162003-03-06 00:02:04 +0000861 @ >include/config.h
wdenkb0639ca2003-09-17 22:48:07 +0000862 @[ -z "$(findstring _bigram,$@)" ] || \
863 { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
864 echo "... with 8 MB Flash, 32 MB RAM" ; \
865 }
866 @[ -z "$(findstring _bigflash,$@)" ] || \
867 { echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
868 echo "... with 16 MB Flash, 16 MB RAM" ; \
869 echo "TEXT_BASE = 0x0CF00000" >board/trab/config.tmp ; \
870 }
wdenkf54ebdf2003-09-17 15:10:32 +0000871 @[ -z "$(findstring _old,$@)" ] || \
872 { echo "#define CONFIG_OLD_VERSION" >>include/config.h ; \
873 echo "... with small memory configuration" ; \
wdenkb0639ca2003-09-17 22:48:07 +0000874 echo "TEXT_BASE = 0x0CF00000" >board/trab/config.tmp ; \
wdenk43d96162003-03-06 00:02:04 +0000875 }
876 @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab
wdenk7ebf7442002-11-02 23:17:16 +0000877
wdenk1cb8e982003-03-06 21:55:29 +0000878VCMA9_config : unconfig
879 @./mkconfig $(@:_config=) arm arm920t vcma9 mpl
880
wdenk7ebf7442002-11-02 23:17:16 +0000881#########################################################################
882## ARM720T Systems
883#########################################################################
884
885impa7_config : unconfig
886 @./mkconfig $(@:_config=) arm arm720t impa7
887
888ep7312_config : unconfig
889 @./mkconfig $(@:_config=) arm arm720t ep7312
890
891#########################################################################
wdenk43d96162003-03-06 00:02:04 +0000892## XScale Systems
wdenk7ebf7442002-11-02 23:17:16 +0000893#########################################################################
894
wdenk7ebf7442002-11-02 23:17:16 +0000895cradle_config : unconfig
wdenk8bde7f72003-06-27 21:31:46 +0000896 @./mkconfig $(@:_config=) arm pxa cradle
wdenk7ebf7442002-11-02 23:17:16 +0000897
898csb226_config : unconfig
wdenk4c3b21a2003-05-23 12:36:20 +0000899 @./mkconfig $(@:_config=) arm pxa csb226
wdenk7ebf7442002-11-02 23:17:16 +0000900
wdenk43d96162003-03-06 00:02:04 +0000901innokom_config : unconfig
wdenk4c3b21a2003-05-23 12:36:20 +0000902 @./mkconfig $(@:_config=) arm pxa innokom
wdenk43d96162003-03-06 00:02:04 +0000903
wdenk2d5b5612003-10-14 19:43:55 +0000904ixdp425_config : unconfig
905 @./mkconfig $(@:_config=) arm ixp ixdp425
906
wdenk43d96162003-03-06 00:02:04 +0000907lubbock_config : unconfig
wdenk4c3b21a2003-05-23 12:36:20 +0000908 @./mkconfig $(@:_config=) arm pxa lubbock
wdenk43d96162003-03-06 00:02:04 +0000909
wdenk52f52c12003-06-19 23:04:19 +0000910logodl_config : unconfig
911 @./mkconfig $(@:_config=) arm pxa logodl
912
wdenk3e386912003-04-05 00:53:31 +0000913wepep250_config : unconfig
wdenk4c3b21a2003-05-23 12:36:20 +0000914 @./mkconfig $(@:_config=) arm pxa wepep250
wdenk3e386912003-04-05 00:53:31 +0000915
wdenk2262cfe2002-11-18 00:14:45 +0000916#========================================================================
917# i386
918#========================================================================
919#########################################################################
wdenk1cb8e982003-03-06 21:55:29 +0000920## AMD SC520 CDP
wdenk2262cfe2002-11-18 00:14:45 +0000921#########################################################################
922sc520_cdp_config : unconfig
923 @./mkconfig $(@:_config=) i386 i386 sc520_cdp
924
wdenk7a8e9bed2003-05-31 18:35:21 +0000925sc520_spunk_config : unconfig
926 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
927
928sc520_spunk_rel_config : unconfig
929 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
930
wdenk43d96162003-03-06 00:02:04 +0000931#========================================================================
932# MIPS
933#========================================================================
wdenk7ebf7442002-11-02 23:17:16 +0000934#########################################################################
wdenk43d96162003-03-06 00:02:04 +0000935## MIPS32 4Kc
936#########################################################################
937
wdenke0ac62d2003-08-17 18:55:18 +0000938xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
939
940incaip_100MHz_config \
941incaip_133MHz_config \
942incaip_150MHz_config \
943incaip_config: unconfig
944 @ >include/config.h
945 @[ -z "$(findstring _100MHz,$@)" ] || \
946 { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
947 echo "... with 100MHz system clock" ; \
948 }
949 @[ -z "$(findstring _133MHz,$@)" ] || \
950 { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
951 echo "... with 133MHz system clock" ; \
952 }
953 @[ -z "$(findstring _150MHz,$@)" ] || \
954 { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
955 echo "... with 150MHz system clock" ; \
956 }
957 @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
958
959#########################################################################
960## MIPS64 5Kc
961#########################################################################
wdenk43d96162003-03-06 00:02:04 +0000962
wdenk3e386912003-04-05 00:53:31 +0000963purple_config : unconfig
964 @./mkconfig $(@:_config=) mips mips purple
wdenk43d96162003-03-06 00:02:04 +0000965
wdenk4a551702003-10-08 23:26:14 +0000966#========================================================================
967# Nios
968#========================================================================
969#########################################################################
970## Nios32
971#########################################################################
972
973DK1C20_config: unconfig
974 @./mkconfig $(@:_config=) nios nios dk1c20
975
976
wdenk3e386912003-04-05 00:53:31 +0000977#########################################################################
wdenk5da627a2003-10-09 20:09:04 +0000978## MIPS32 AU1000
979#########################################################################
980dbau1x00_config : unconfig
981 @./mkconfig $(@:_config=) mips mips dbau1x00
982
983#########################################################################
wdenk3e386912003-04-05 00:53:31 +0000984#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000985
986clean:
987 find . -type f \
988 \( -name 'core' -o -name '*.bak' -o -name '*~' \
989 -o -name '*.o' -o -name '*.a' \) -print \
990 | xargs rm -f
wdenk85ec0bc2003-03-31 16:34:49 +0000991 rm -f examples/hello_world examples/timer \
wdenk3e386912003-04-05 00:53:31 +0000992 examples/eepro100_eeprom examples/sched \
wdenk7a8e9bed2003-05-31 18:35:21 +0000993 examples/mem_to_mem_idma2intr examples/82559_eeprom
994
wdenk7ebf7442002-11-02 23:17:16 +0000995 rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
996 rm -f tools/easylogo/easylogo tools/bmp_logo
997 rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
wdenk228f29a2002-12-08 09:53:23 +0000998 rm -f tools/env/fw_printenv tools/env/fw_setenv
wdenk7f70e852003-05-20 14:25:27 +0000999 rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
wdenkb0639ca2003-09-17 22:48:07 +00001000 rm -f board/trab/trab_fkt board/trab/config.tmp
wdenk7ebf7442002-11-02 23:17:16 +00001001
1002clobber: clean
1003 find . -type f \
1004 \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \
1005 -print \
1006 | xargs rm -f
1007 rm -f $(OBJS) *.bak tags TAGS
1008 rm -fr *.*~
wdenkbdccc4f2003-08-05 17:43:17 +00001009 rm -f u-boot u-boot.map $(ALL)
wdenk228f29a2002-12-08 09:53:23 +00001010 rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
wdenk3e386912003-04-05 00:53:31 +00001011 rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
wdenkb783eda2003-06-25 22:26:29 +00001012 rm -f include/asm/proc include/asm/arch include/asm
wdenk7ebf7442002-11-02 23:17:16 +00001013
1014mrproper \
1015distclean: clobber unconfig
1016
1017backup:
1018 F=`basename $(TOPDIR)` ; cd .. ; \
1019 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
1020
1021#########################################################################