blob: 6d006bffaf74baad1921a28aa7a9986d2d19b585 [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)
wdenkc8434db2003-03-26 06:55:25 +000060CROSS_COMPILE = arm-linux-
wdenk7ebf7442002-11-02 23:17:16 +000061endif
wdenk591dda52002-11-18 00:14:45 +000062ifeq ($(ARCH),i386)
wdenkabda5ca2003-05-31 18:35:21 +000063ifeq ($(HOSTARCH),i386)
64CROSS_COMPILE =
65else
66CROSS_COMPILE = i386-linux-
67endif
wdenk7ebf7442002-11-02 23:17:16 +000068endif
wdenk4a5c8a72003-03-06 00:02:04 +000069ifeq ($(ARCH),mips)
70CROSS_COMPILE = mips_4KC-
wdenk7ebf7442002-11-02 23:17:16 +000071endif
wdenk591dda52002-11-18 00:14:45 +000072endif
wdenk4a5c8a72003-03-06 00:02:04 +000073endif
wdenk7ebf7442002-11-02 23:17:16 +000074
75export CROSS_COMPILE
76
77# The "tools" are needed early, so put this first
78SUBDIRS = tools \
wdenk708521a2003-09-12 15:35:15 +000079 examples \
wdenk7ebf7442002-11-02 23:17:16 +000080 lib_generic \
81 lib_$(ARCH) \
82 cpu/$(CPU) \
83 board/$(BOARDDIR) \
84 common \
85 disk \
86 fs \
87 net \
88 rtc \
89 dtt \
90 drivers \
wdenkeb20ad32003-09-05 23:19:14 +000091 drivers/sk98lin \
wdenk7ebf7442002-11-02 23:17:16 +000092 post \
wdenk708521a2003-09-12 15:35:15 +000093 post/cpu
wdenk7ebf7442002-11-02 23:17:16 +000094
95#########################################################################
96# U-Boot objects....order is important (i.e. start must be first)
97
98OBJS = cpu/$(CPU)/start.o
wdenk591dda52002-11-18 00:14:45 +000099ifeq ($(CPU),i386)
100OBJS += cpu/$(CPU)/start16.o
101OBJS += cpu/$(CPU)/reset.o
102endif
wdenk7ebf7442002-11-02 23:17:16 +0000103ifeq ($(CPU),ppc4xx)
104OBJS += cpu/$(CPU)/resetvec.o
105endif
106
107LIBS = board/$(BOARDDIR)/lib$(BOARD).a
108LIBS += cpu/$(CPU)/lib$(CPU).a
109LIBS += lib_$(ARCH)/lib$(ARCH).a
wdenk7a428cc2003-06-15 22:40:42 +0000110LIBS += fs/jffs2/libjffs2.a fs/fdos/libfdos.a fs/fat/libfat.a
wdenk7ebf7442002-11-02 23:17:16 +0000111LIBS += net/libnet.a
112LIBS += disk/libdisk.a
113LIBS += rtc/librtc.a
114LIBS += dtt/libdtt.a
115LIBS += drivers/libdrivers.a
wdenkeb20ad32003-09-05 23:19:14 +0000116LIBS += drivers/sk98lin/libsk98lin.a
wdenk7ebf7442002-11-02 23:17:16 +0000117LIBS += post/libpost.a post/cpu/libcpu.a
118LIBS += common/libcommon.a
119LIBS += lib_generic/libgeneric.a
wdenk4cc02a82003-09-11 23:06:34 +0000120# Add GCC lib
wdenk49c3f672003-10-08 22:33:00 +0000121PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
wdenk7ebf7442002-11-02 23:17:16 +0000122
123#########################################################################
wdenk0a658552003-08-05 17:43:17 +0000124#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000125
wdenk0a658552003-08-05 17:43:17 +0000126ALL = u-boot.srec u-boot.bin System.map
wdenk7ebf7442002-11-02 23:17:16 +0000127
wdenk0a658552003-08-05 17:43:17 +0000128all: $(ALL)
wdenk7ebf7442002-11-02 23:17:16 +0000129
130u-boot.srec: u-boot
131 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
132
133u-boot.bin: u-boot
134 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
135
wdenk0a658552003-08-05 17:43:17 +0000136u-boot.img: u-boot.bin
137 ./tools/mkimage -A $(ARCH) -T firmware -C none \
138 -a $(TEXT_BASE) -e 0 \
139 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \
140 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
141 -d $< $@
142
wdenk7ebf7442002-11-02 23:17:16 +0000143u-boot.dis: u-boot
144 $(OBJDUMP) -d $< > $@
145
146u-boot: depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT)
wdenk57b2d802003-06-27 21:31:46 +0000147 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
148 $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
wdenkeb20ad32003-09-05 23:19:14 +0000149 --start-group $(LIBS) $(PLATFORM_LIBS) --end-group \
wdenk67ff36c2002-11-19 23:01:07 +0000150 -Map u-boot.map -o u-boot
wdenk7ebf7442002-11-02 23:17:16 +0000151
152subdirs:
153 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir || exit 1 ; done
154
dzu9b10ef982003-08-07 14:20:31 +0000155gdbtools:
156 $(MAKE) -C tools/gdb || exit 1
157
wdenk7ebf7442002-11-02 23:17:16 +0000158depend dep:
159 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
160
161tags:
162 ctags -w `find $(SUBDIRS) include \
163 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
164
165etags:
166 etags -a `find $(SUBDIRS) include \
167 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
168
169System.map: u-boot
170 @$(NM) $< | \
171 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
172 sort > System.map
173
174#########################################################################
175else
176all install u-boot u-boot.srec depend dep:
177 @echo "System not configured - see README" >&2
178 @ exit 1
179endif
180
181#########################################################################
182
183unconfig:
184 rm -f include/config.h include/config.mk
185
186#========================================================================
187# PowerPC
188#========================================================================
wdenk359733b2003-03-31 17:27:09 +0000189
190#########################################################################
191## MPC5xx Systems
192#########################################################################
193
194cmi_mpc5xx_config: unconfig
195 @./mkconfig $(@:_config=) ppc mpc5xx cmi
196
wdenk7ebf7442002-11-02 23:17:16 +0000197#########################################################################
wdenk21136db2003-07-16 21:53:01 +0000198## MPC5xxx Systems
199#########################################################################
200IceCube_5200_config \
201IceCube_5100_config: unconfig
202 @ >include/config.h
203 @[ -z "$(findstring _5200,$@)" ] || \
204 { echo "#define CONFIG_MPC5200" >>include/config.h ; \
205 echo "... with MPC5200 processor" ; \
206 }
207 @[ -z "$(findstring _5100,$@)" ] || \
208 { echo "#define CONFIG_MGT5100" >>include/config.h ; \
209 echo "... with MGT5100 processor" ; \
210 }
211 @./mkconfig -a IceCube ppc mpc5xxx icecube
212
213#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000214## MPC8xx Systems
215#########################################################################
216
wdenk84650f52003-08-30 00:05:50 +0000217AdderII_config: unconfig
218 @./mkconfig $(@:_config=) ppc mpc8xx adderII
219
wdenk7ebf7442002-11-02 23:17:16 +0000220ADS860_config: unconfig
221 @./mkconfig $(@:_config=) ppc mpc8xx fads
222
223AMX860_config : unconfig
224 @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
225
226c2mon_config: unconfig
227 @./mkconfig $(@:_config=) ppc mpc8xx c2mon
228
229CCM_config: unconfig
230 @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
231
232cogent_mpc8xx_config: unconfig
233 @./mkconfig $(@:_config=) ppc mpc8xx cogent
234
wdenkef5fe752003-03-12 10:41:04 +0000235ELPT860_config: unconfig
236 @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
237
wdenk7ebf7442002-11-02 23:17:16 +0000238ESTEEM192E_config: unconfig
239 @./mkconfig $(@:_config=) ppc mpc8xx esteem192e
240
241ETX094_config : unconfig
242 @./mkconfig $(@:_config=) ppc mpc8xx etx094
243
244FADS823_config \
245FADS850SAR_config \
wdenk2bb11052003-07-17 23:16:40 +0000246MPC86xADS_config \
wdenk7ebf7442002-11-02 23:17:16 +0000247FADS860T_config: unconfig
248 @./mkconfig $(@:_config=) ppc mpc8xx fads
249
250FLAGADM_config: unconfig
251 @./mkconfig $(@:_config=) ppc mpc8xx flagadm
252
wdenk541a76d2003-05-03 15:50:43 +0000253xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
254
255GEN860T_SC_config \
wdenk7ebf7442002-11-02 23:17:16 +0000256GEN860T_config: unconfig
wdenk541a76d2003-05-03 15:50:43 +0000257 @ >include/config.h
258 @[ -z "$(findstring _SC,$@)" ] || \
259 { echo "#define CONFIG_SC" >>include/config.h ; \
260 echo "With reduced H/W feature set (SC)..." ; \
261 }
262 @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
wdenk7ebf7442002-11-02 23:17:16 +0000263
264GENIETV_config: unconfig
265 @./mkconfig $(@:_config=) ppc mpc8xx genietv
266
267GTH_config: unconfig
268 @./mkconfig $(@:_config=) ppc mpc8xx gth
269
270hermes_config : unconfig
271 @./mkconfig $(@:_config=) ppc mpc8xx hermes
272
273IAD210_config: unconfig
274 @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
275
276xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
277
278ICU862_100MHz_config \
279ICU862_config: unconfig
280 @ >include/config.h
281 @[ -z "$(findstring _100MHz,$@)" ] || \
282 { echo "#define CONFIG_100MHz" >>include/config.h ; \
283 echo "... with 100MHz system clock" ; \
284 }
285 @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
286
287IP860_config : unconfig
288 @./mkconfig $(@:_config=) ppc mpc8xx ip860
289
290IVML24_256_config \
291IVML24_128_config \
292IVML24_config: unconfig
293 @ >include/config.h
294 @[ -z "$(findstring IVML24_config,$@)" ] || \
295 { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \
296 }
297 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
298 { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \
299 }
300 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
301 { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \
302 }
303 @./mkconfig -a IVML24 ppc mpc8xx ivm
304
305IVMS8_256_config \
306IVMS8_128_config \
307IVMS8_config: unconfig
308 @ >include/config.h
309 @[ -z "$(findstring IVMS8_config,$@)" ] || \
310 { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \
311 }
312 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
313 { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \
314 }
315 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
316 { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \
317 }
318 @./mkconfig -a IVMS8 ppc mpc8xx ivm
319
wdenk56f94be2002-11-05 16:35:14 +0000320KUP4K_config : unconfig
321 @./mkconfig $(@:_config=) ppc mpc8xx kup4k
322
wdenk7ebf7442002-11-02 23:17:16 +0000323LANTEC_config : unconfig
324 @./mkconfig $(@:_config=) ppc mpc8xx lantec
325
326lwmon_config: unconfig
327 @./mkconfig $(@:_config=) ppc mpc8xx lwmon
328
329MBX_config \
330MBX860T_config: unconfig
331 @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
332
333MHPC_config: unconfig
334 @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
335
336MVS1_config : unconfig
337 @./mkconfig $(@:_config=) ppc mpc8xx mvs1
338
wdenk70764a32003-06-26 22:04:09 +0000339xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
340
341NETVIA_V2_config \
wdenk7ebf7442002-11-02 23:17:16 +0000342NETVIA_config: unconfig
wdenk70764a32003-06-26 22:04:09 +0000343 @ >include/config.h
344 @[ -z "$(findstring NETVIA_config,$@)" ] || \
345 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
346 echo "... Version 1" ; \
347 }
348 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
349 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
350 echo "... Version 2" ; \
351 }
352 @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
wdenk7ebf7442002-11-02 23:17:16 +0000353
354NX823_config: unconfig
355 @./mkconfig $(@:_config=) ppc mpc8xx nx823
356
357pcu_e_config: unconfig
358 @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
359
360R360MPI_config: unconfig
361 @./mkconfig $(@:_config=) ppc mpc8xx r360mpi
362
wdenk4e112c12003-06-03 23:54:09 +0000363RBC823_config: unconfig
364 @./mkconfig $(@:_config=) ppc mpc8xx rbc823
365
wdenk7ebf7442002-11-02 23:17:16 +0000366RPXClassic_config: unconfig
367 @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
368
369RPXlite_config: unconfig
370 @./mkconfig $(@:_config=) ppc mpc8xx RPXlite
371
wdenke6466f62003-06-05 19:27:42 +0000372rmu_config: unconfig
373 @./mkconfig $(@:_config=) ppc mpc8xx rmu
374
wdenk7ebf7442002-11-02 23:17:16 +0000375RRvision_config: unconfig
376 @./mkconfig $(@:_config=) ppc mpc8xx RRvision
377
378RRvision_LCD_config: unconfig
379 @echo "#define CONFIG_LCD" >include/config.h
380 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
381 @./mkconfig -a RRvision ppc mpc8xx RRvision
382
383SM850_config : unconfig
384 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
385
386SPD823TS_config: unconfig
387 @./mkconfig $(@:_config=) ppc mpc8xx spd8xx
388
wdenkc8434db2003-03-26 06:55:25 +0000389svm_sc8xx_config: unconfig
390 @ >include/config.h
391 @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
392
wdenk7ebf7442002-11-02 23:17:16 +0000393SXNI855T_config: unconfig
394 @./mkconfig $(@:_config=) ppc mpc8xx sixnet
395
wdenkb666c8f2003-03-06 00:58:30 +0000396# EMK MPC8xx based modules
397TOP860_config: unconfig
398 @./mkconfig $(@:_config=) ppc mpc8xx top860 emk
399
wdenk7ebf7442002-11-02 23:17:16 +0000400# Play some tricks for configuration selection
wdenke6466f62003-06-05 19:27:42 +0000401# All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock,
wdenk7ebf7442002-11-02 23:17:16 +0000402# but only 855 and 860 boards may come with FEC
403# and 823 boards may have LCD support
wdenke6466f62003-06-05 19:27:42 +0000404xtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _LCD,,$(subst _config,,$1)))))
wdenk7ebf7442002-11-02 23:17:16 +0000405
406FPS850L_config \
wdenk384ae022002-11-05 00:17:55 +0000407FPS860L_config \
wdenk69141282003-07-07 20:07:54 +0000408NSCU_config \
wdenk7ebf7442002-11-02 23:17:16 +0000409TQM823L_config \
410TQM823L_66MHz_config \
411TQM823L_80MHz_config \
412TQM823L_LCD_config \
413TQM823L_LCD_66MHz_config \
414TQM823L_LCD_80MHz_config \
415TQM850L_config \
416TQM850L_66MHz_config \
417TQM850L_80MHz_config \
418TQM855L_config \
419TQM855L_66MHz_config \
420TQM855L_80MHz_config \
wdenk7ebf7442002-11-02 23:17:16 +0000421TQM860L_config \
422TQM860L_66MHz_config \
423TQM860L_80MHz_config \
wdenk6bd14892003-04-10 11:18:18 +0000424TQM862L_config \
425TQM862L_66MHz_config \
wdenke6466f62003-06-05 19:27:42 +0000426TQM862L_80MHz_config \
wdenkfb229ae2003-08-07 22:18:11 +0000427TQM823M_config \
428TQM823M_66MHz_config \
429TQM823M_80MHz_config \
430TQM850M_config \
431TQM850M_66MHz_config \
432TQM850M_80MHz_config \
wdenk69141282003-07-07 20:07:54 +0000433TQM855M_config \
434TQM855M_66MHz_config \
435TQM855M_80MHz_config \
436TQM860M_config \
437TQM860M_66MHz_config \
438TQM860M_80MHz_config \
439TQM862M_config \
440TQM862M_66MHz_config \
441TQM862M_80MHz_config \
wdenk7a428cc2003-06-15 22:40:42 +0000442TQM862M_100MHz_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000443 @ >include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000444 @[ -z "$(findstring _66MHz,$@)" ] || \
445 { echo "#define CONFIG_66MHz" >>include/config.h ; \
446 echo "... with 66MHz system clock" ; \
447 }
448 @[ -z "$(findstring _80MHz,$@)" ] || \
449 { echo "#define CONFIG_80MHz" >>include/config.h ; \
450 echo "... with 80MHz system clock" ; \
451 }
wdenke6466f62003-06-05 19:27:42 +0000452 @[ -z "$(findstring _100MHz,$@)" ] || \
453 { echo "#define CONFIG_100MHz" >>include/config.h ; \
454 echo "... with 100MHz system clock" ; \
455 }
wdenk7ebf7442002-11-02 23:17:16 +0000456 @[ -z "$(findstring _LCD,$@)" ] || \
457 { echo "#define CONFIG_LCD" >>include/config.h ; \
458 echo "#define CONFIG_NEC_NL6648BC20" >>include/config.h ; \
459 echo "... with LCD display" ; \
460 }
461 @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
462
463TTTech_config: unconfig
464 @echo "#define CONFIG_LCD" >include/config.h
465 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
466 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
467
wdenk2dad91b2003-01-13 23:54:46 +0000468v37_config: unconfig
469 @echo "#define CONFIG_LCD" >include/config.h
470 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
471 @./mkconfig $(@:_config=) ppc mpc8xx v37
472
dzu69438f62003-09-25 22:32:40 +0000473wtk_config: unconfig
474 @echo "#define CONFIG_LCD" >include/config.h
475 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
476 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
477
wdenk7ebf7442002-11-02 23:17:16 +0000478#########################################################################
479## PPC4xx Systems
480#########################################################################
wdenk7182b0f2003-10-06 21:55:32 +0000481xtract_4xx = $(subst _MODEL_BA,,$(subst _MODEL_ME,,$(subst _MODEL_HI,,$(subst _config,,$1))))
wdenk7ebf7442002-11-02 23:17:16 +0000482
483ADCIOP_config: unconfig
484 @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
485
486AR405_config: unconfig
487 @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
488
stroesebfcc82b2003-05-23 11:41:44 +0000489ASH405_config: unconfig
490 @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
491
492BUBINGA405EP_config:unconfig
493 @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
494
wdenk7ebf7442002-11-02 23:17:16 +0000495CANBT_config: unconfig
496 @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
497
stroesebfcc82b2003-05-23 11:41:44 +0000498CPCI405_config \
499CPCI4052_config \
500CPCI405AB_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000501 @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
502 @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
503
504CPCI440_config: unconfig
505 @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
506
507CPCIISER4_config: unconfig
508 @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
509
510CRAYL1_config:unconfig
511 @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
512
513DASA_SIM_config: unconfig
514 @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
515
stroese3361eb72003-09-12 08:57:15 +0000516DP405_config: unconfig
517 @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
518
wdenk7ebf7442002-11-02 23:17:16 +0000519DU405_config: unconfig
520 @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
521
522EBONY_config:unconfig
523 @./mkconfig $(@:_config=) ppc ppc4xx ebony
524
525ERIC_config:unconfig
526 @./mkconfig $(@:_config=) ppc ppc4xx eric
527
wdenkd9fce812003-06-28 17:24:46 +0000528EXBITGEN_config:unconfig
529 @./mkconfig $(@:_config=) ppc ppc4xx exbitgen
530
stroese3361eb72003-09-12 08:57:15 +0000531HUB405_config: unconfig
532 @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
533
wdenk7ebf7442002-11-02 23:17:16 +0000534MIP405_config:unconfig
535 @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
536
wdenke39c2842003-06-04 15:05:30 +0000537MIP405T_config:unconfig
538 @echo "#define CONFIG_MIP405T" >include/config.h
539 @echo "Enable subset config for MIP405T"
540 @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
541
wdenk7ebf7442002-11-02 23:17:16 +0000542ML2_config:unconfig
543 @./mkconfig $(@:_config=) ppc ppc4xx ml2
544
545OCRTC_config \
546ORSG_config: unconfig
547 @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
548
549PCI405_config: unconfig
550 @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
551
552PIP405_config:unconfig
553 @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
554
stroese3361eb72003-09-12 08:57:15 +0000555PLU405_config: unconfig
556 @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
557
stroesebfcc82b2003-05-23 11:41:44 +0000558PMC405_config: unconfig
559 @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
560
wdenk7182b0f2003-10-06 21:55:32 +0000561PPChameleonEVB_MODEL_BA_config \
562PPChameleonEVB_MODEL_ME_config \
563PPChameleonEVB_MODEL_HI_config \
wdenk232fe0b2003-09-02 22:48:03 +0000564PPChameleonEVB_config: unconfig
wdenk7182b0f2003-10-06 21:55:32 +0000565 @ >include/config.h
566 @[ -z "$(findstring _MODEL_BA,$@)" ] || \
567 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
568 echo "... BASIC model" ; \
569 }
570 @[ -z "$(findstring _MODEL_ME,$@)" ] || \
571 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
572 echo "... MEDIUM model" ; \
573 }
574 @[ -z "$(findstring _MODEL_HI,$@)" ] || \
575 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
576 echo "... HIGH-END model" ; \
577 }
578 @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
wdenk232fe0b2003-09-02 22:48:03 +0000579
stroese3361eb72003-09-12 08:57:15 +0000580VOH405_config: unconfig
581 @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
582
wdenk7ebf7442002-11-02 23:17:16 +0000583W7OLMC_config \
584W7OLMG_config: unconfig
585 @./mkconfig $(@:_config=) ppc ppc4xx w7o
586
587WALNUT405_config:unconfig
588 @./mkconfig $(@:_config=) ppc ppc4xx walnut405
589
590#########################################################################
591## MPC824x Systems
592#########################################################################
wdenkef5fe752003-03-12 10:41:04 +0000593xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))
594
wdenk8aeb24e2003-06-20 22:36:30 +0000595A3000_config: unconfig
596 @./mkconfig $(@:_config=) ppc mpc824x a3000
597
wdenk7ebf7442002-11-02 23:17:16 +0000598BMW_config: unconfig
599 @./mkconfig $(@:_config=) ppc mpc824x bmw
600
wdenkef5fe752003-03-12 10:41:04 +0000601CPC45_config \
602CPC45_ROMBOOT_config: unconfig
603 @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
604 @cd ./include ; \
605 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
606 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
607 echo "... booting from 8-bit flash" ; \
608 else \
609 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
610 echo "... booting from 64-bit flash" ; \
611 fi; \
612 echo "export CONFIG_BOOT_ROM" >> config.mk;
613
wdenk7ebf7442002-11-02 23:17:16 +0000614CU824_config: unconfig
615 @./mkconfig $(@:_config=) ppc mpc824x cu824
616
617MOUSSE_config: unconfig
618 @./mkconfig $(@:_config=) ppc mpc824x mousse
619
620MUSENKI_config: unconfig
621 @./mkconfig $(@:_config=) ppc mpc824x musenki
622
623OXC_config: unconfig
624 @./mkconfig $(@:_config=) ppc mpc824x oxc
625
626PN62_config: unconfig
627 @./mkconfig $(@:_config=) ppc mpc824x pn62
628
629Sandpoint8240_config: unconfig
630 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
631
632Sandpoint8245_config: unconfig
633 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
634
wdenkd9fce812003-06-28 17:24:46 +0000635SL8245_config: unconfig
636 @./mkconfig $(@:_config=) ppc mpc824x sl8245
637
wdenk7ebf7442002-11-02 23:17:16 +0000638utx8245_config: unconfig
639 @./mkconfig $(@:_config=) ppc mpc824x utx8245
640
641#########################################################################
642## MPC8260 Systems
643#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000644
645cogent_mpc8260_config: unconfig
646 @./mkconfig $(@:_config=) ppc mpc8260 cogent
647
648CPU86_config \
649CPU86_ROMBOOT_config: unconfig
650 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
651 @cd ./include ; \
652 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
653 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
654 echo "... booting from 8-bit flash" ; \
655 else \
656 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
657 echo "... booting from 64-bit flash" ; \
658 fi; \
659 echo "export CONFIG_BOOT_ROM" >> config.mk;
660
661ep8260_config: unconfig
662 @./mkconfig $(@:_config=) ppc mpc8260 ep8260
663
664gw8260_config: unconfig
665 @./mkconfig $(@:_config=) ppc mpc8260 gw8260
666
667hymod_config: unconfig
668 @./mkconfig $(@:_config=) ppc mpc8260 hymod
669
670IPHASE4539_config: unconfig
671 @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
672
673MPC8260ADS_config: unconfig
674 @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads
675
wdenkb666c8f2003-03-06 00:58:30 +0000676MPC8266ADS_config: unconfig
677 @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
678
wdenk4b57dcc2003-03-25 18:06:06 +0000679PM825_config \
680PM825_ROMBOOT_config: unconfig
681 @echo "#define CONFIG_PCI" >include/config.h
682 @./mkconfig -a PM826 ppc mpc8260 pm826
683 @cd ./include ; \
684 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
685 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
686 echo "... booting from 8-bit flash" ; \
687 else \
688 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
689 echo "... booting from 64-bit flash" ; \
690 fi; \
691 echo "export CONFIG_BOOT_ROM" >> config.mk; \
692
wdenk7ebf7442002-11-02 23:17:16 +0000693PM826_config \
694PM826_ROMBOOT_config: unconfig
695 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826
696 @cd ./include ; \
697 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
698 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
699 echo "... booting from 8-bit flash" ; \
700 else \
701 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
702 echo "... booting from 64-bit flash" ; \
703 fi; \
704 echo "export CONFIG_BOOT_ROM" >> config.mk; \
705
706ppmc8260_config: unconfig
707 @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
708
709RPXsuper_config: unconfig
710 @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
711
712rsdproto_config: unconfig
713 @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
714
715sacsng_config: unconfig
716 @./mkconfig $(@:_config=) ppc mpc8260 sacsng
717
718sbc8260_config: unconfig
719 @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
720
721SCM_config: unconfig
722 @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
723
wdenk874ac262003-07-24 23:38:38 +0000724TQM8255_AA_config \
725TQM8260_AA_config \
726TQM8260_AB_config \
727TQM8260_AC_config \
728TQM8260_AD_config \
729TQM8260_AE_config \
730TQM8260_AF_config \
731TQM8260_AG_config \
732TQM8260_AH_config \
733TQM8265_AA_config: unconfig
734 @case "$@" in \
735 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
736 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
737 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
738 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
739 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
740 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
741 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
742 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
743 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
744 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
745 esac; \
746 >include/config.h ; \
747 if [ "$${CTYPE}" != "MPC8260" ] ; then \
748 echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \
749 fi; \
750 echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \
751 echo "... with $${CFREQ}MHz system clock" ; \
752 if [ "$${CACHE}" == "yes" ] ; then \
wdenk7ebf7442002-11-02 23:17:16 +0000753 echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
wdenk874ac262003-07-24 23:38:38 +0000754 echo "... with L2 Cache support" ; \
wdenk7ebf7442002-11-02 23:17:16 +0000755 else \
756 echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
757 echo "... without L2 Cache support" ; \
wdenk874ac262003-07-24 23:38:38 +0000758 fi; \
759 if [ "$${BMODE}" == "60x" ] ; then \
760 echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
761 echo "... with 60x Bus Mode" ; \
762 else \
763 echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \
764 echo "... without 60x Bus Mode" ; \
wdenk7ebf7442002-11-02 23:17:16 +0000765 fi
wdenkc08f1582003-04-27 22:52:51 +0000766 @./mkconfig -a TQM8260 ppc mpc8260 tqm8260
wdenk7ebf7442002-11-02 23:17:16 +0000767
wdenk541a76d2003-05-03 15:50:43 +0000768atc_config: unconfig
769 @./mkconfig $(@:_config=) ppc mpc8260 atc
770
wdenk7ebf7442002-11-02 23:17:16 +0000771#########################################################################
772## 74xx/7xx Systems
773#########################################################################
774
wdenk452cfd62002-11-19 11:04:11 +0000775AmigaOneG3SE_config: unconfig
776 @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
777
wdenk7ebf7442002-11-02 23:17:16 +0000778EVB64260_config \
779EVB64260_750CX_config: unconfig
780 @./mkconfig EVB64260 ppc 74xx_7xx evb64260
781
782ZUMA_config: unconfig
783 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
784
785PCIPPC2_config \
786PCIPPC6_config: unconfig
787 @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
788
789BAB7xx_config: unconfig
790 @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
791
792ELPPC_config: unconfig
793 @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
794
wdenk232fe0b2003-09-02 22:48:03 +0000795P3G4_config: unconfig
796 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
797
wdenk7ebf7442002-11-02 23:17:16 +0000798#========================================================================
799# ARM
800#========================================================================
801#########################################################################
802## StrongARM Systems
803#########################################################################
804
wdenkc8434db2003-03-26 06:55:25 +0000805at91rm9200dk_config : unconfig
806 @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk
807
wdenk7ebf7442002-11-02 23:17:16 +0000808lart_config : unconfig
809 @./mkconfig $(@:_config=) arm sa1100 lart
810
811dnp1110_config : unconfig
812 @./mkconfig $(@:_config=) arm sa1100 dnp1110
813
814shannon_config : unconfig
815 @./mkconfig $(@:_config=) arm sa1100 shannon
816
817#########################################################################
wdenkf6f96f72003-07-15 20:04:06 +0000818## ARM92xT Systems
wdenk7ebf7442002-11-02 23:17:16 +0000819#########################################################################
820
wdenkb6b2f0e2003-09-17 22:48:07 +0000821xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
wdenk4a5c8a72003-03-06 00:02:04 +0000822
wdenkf6f96f72003-07-15 20:04:06 +0000823omap1510inn_config : unconfig
824 @./mkconfig $(@:_config=) arm arm925t omap1510inn
825
wdenk7eaacc52003-08-29 22:00:43 +0000826omap1610inn_config : unconfig
827 @./mkconfig $(@:_config=) arm arm926ejs omap1610inn
828
wdenk7ebf7442002-11-02 23:17:16 +0000829smdk2400_config : unconfig
830 @./mkconfig $(@:_config=) arm arm920t smdk2400
831
832smdk2410_config : unconfig
833 @./mkconfig $(@:_config=) arm arm920t smdk2410
834
wdenk4a5c8a72003-03-06 00:02:04 +0000835trab_config \
wdenkb6b2f0e2003-09-17 22:48:07 +0000836trab_bigram_config \
837trab_bigflash_config \
wdenkf6a6ac12003-09-17 15:10:32 +0000838trab_old_config: unconfig
wdenk4a5c8a72003-03-06 00:02:04 +0000839 @ >include/config.h
wdenkb6b2f0e2003-09-17 22:48:07 +0000840 @[ -z "$(findstring _bigram,$@)" ] || \
841 { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
842 echo "... with 8 MB Flash, 32 MB RAM" ; \
843 }
844 @[ -z "$(findstring _bigflash,$@)" ] || \
845 { echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
846 echo "... with 16 MB Flash, 16 MB RAM" ; \
847 echo "TEXT_BASE = 0x0CF00000" >board/trab/config.tmp ; \
848 }
wdenkf6a6ac12003-09-17 15:10:32 +0000849 @[ -z "$(findstring _old,$@)" ] || \
850 { echo "#define CONFIG_OLD_VERSION" >>include/config.h ; \
851 echo "... with small memory configuration" ; \
wdenkb6b2f0e2003-09-17 22:48:07 +0000852 echo "TEXT_BASE = 0x0CF00000" >board/trab/config.tmp ; \
wdenk4a5c8a72003-03-06 00:02:04 +0000853 }
854 @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab
wdenk7ebf7442002-11-02 23:17:16 +0000855
wdenk1fe2c702003-03-06 21:55:29 +0000856VCMA9_config : unconfig
857 @./mkconfig $(@:_config=) arm arm920t vcma9 mpl
858
wdenk7ebf7442002-11-02 23:17:16 +0000859#########################################################################
860## ARM720T Systems
861#########################################################################
862
863impa7_config : unconfig
864 @./mkconfig $(@:_config=) arm arm720t impa7
865
866ep7312_config : unconfig
867 @./mkconfig $(@:_config=) arm arm720t ep7312
868
869#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +0000870## XScale Systems
wdenk7ebf7442002-11-02 23:17:16 +0000871#########################################################################
872
wdenk7ebf7442002-11-02 23:17:16 +0000873cradle_config : unconfig
wdenk57b2d802003-06-27 21:31:46 +0000874 @./mkconfig $(@:_config=) arm pxa cradle
wdenk7ebf7442002-11-02 23:17:16 +0000875
876csb226_config : unconfig
wdenk0463e042003-05-23 12:36:20 +0000877 @./mkconfig $(@:_config=) arm pxa csb226
wdenk7ebf7442002-11-02 23:17:16 +0000878
wdenk4a5c8a72003-03-06 00:02:04 +0000879innokom_config : unconfig
wdenk0463e042003-05-23 12:36:20 +0000880 @./mkconfig $(@:_config=) arm pxa innokom
wdenk4a5c8a72003-03-06 00:02:04 +0000881
882lubbock_config : unconfig
wdenk0463e042003-05-23 12:36:20 +0000883 @./mkconfig $(@:_config=) arm pxa lubbock
wdenk4a5c8a72003-03-06 00:02:04 +0000884
wdenk88e72a32003-06-19 23:04:19 +0000885logodl_config : unconfig
886 @./mkconfig $(@:_config=) arm pxa logodl
887
wdenkb02744a2003-04-05 00:53:31 +0000888wepep250_config : unconfig
wdenk0463e042003-05-23 12:36:20 +0000889 @./mkconfig $(@:_config=) arm pxa wepep250
wdenkb02744a2003-04-05 00:53:31 +0000890
wdenk591dda52002-11-18 00:14:45 +0000891#========================================================================
892# i386
893#========================================================================
894#########################################################################
wdenk1fe2c702003-03-06 21:55:29 +0000895## AMD SC520 CDP
wdenk591dda52002-11-18 00:14:45 +0000896#########################################################################
897sc520_cdp_config : unconfig
898 @./mkconfig $(@:_config=) i386 i386 sc520_cdp
899
wdenkabda5ca2003-05-31 18:35:21 +0000900sc520_spunk_config : unconfig
901 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
902
903sc520_spunk_rel_config : unconfig
904 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
905
wdenk4a5c8a72003-03-06 00:02:04 +0000906#========================================================================
907# MIPS
908#========================================================================
wdenk7ebf7442002-11-02 23:17:16 +0000909#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +0000910## MIPS32 4Kc
911#########################################################################
912
wdenk5d841732003-08-17 18:55:18 +0000913xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
914
915incaip_100MHz_config \
916incaip_133MHz_config \
917incaip_150MHz_config \
918incaip_config: unconfig
919 @ >include/config.h
920 @[ -z "$(findstring _100MHz,$@)" ] || \
921 { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
922 echo "... with 100MHz system clock" ; \
923 }
924 @[ -z "$(findstring _133MHz,$@)" ] || \
925 { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
926 echo "... with 133MHz system clock" ; \
927 }
928 @[ -z "$(findstring _150MHz,$@)" ] || \
929 { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
930 echo "... with 150MHz system clock" ; \
931 }
932 @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
933
934#########################################################################
935## MIPS64 5Kc
936#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +0000937
wdenkb02744a2003-04-05 00:53:31 +0000938purple_config : unconfig
939 @./mkconfig $(@:_config=) mips mips purple
wdenk4a5c8a72003-03-06 00:02:04 +0000940
wdenkb02744a2003-04-05 00:53:31 +0000941#########################################################################
942#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000943
944clean:
945 find . -type f \
946 \( -name 'core' -o -name '*.bak' -o -name '*~' \
947 -o -name '*.o' -o -name '*.a' \) -print \
948 | xargs rm -f
wdenk8dba0502003-03-31 16:34:49 +0000949 rm -f examples/hello_world examples/timer \
wdenkb02744a2003-04-05 00:53:31 +0000950 examples/eepro100_eeprom examples/sched \
wdenkabda5ca2003-05-31 18:35:21 +0000951 examples/mem_to_mem_idma2intr examples/82559_eeprom
952
wdenk7ebf7442002-11-02 23:17:16 +0000953 rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
954 rm -f tools/easylogo/easylogo tools/bmp_logo
955 rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
wdenk9dfa8d12002-12-08 09:53:23 +0000956 rm -f tools/env/fw_printenv tools/env/fw_setenv
wdenk0893c472003-05-20 14:25:27 +0000957 rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
wdenkb6b2f0e2003-09-17 22:48:07 +0000958 rm -f board/trab/trab_fkt board/trab/config.tmp
wdenk7ebf7442002-11-02 23:17:16 +0000959
960clobber: clean
961 find . -type f \
962 \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \
963 -print \
964 | xargs rm -f
965 rm -f $(OBJS) *.bak tags TAGS
966 rm -fr *.*~
wdenk0a658552003-08-05 17:43:17 +0000967 rm -f u-boot u-boot.map $(ALL)
wdenk9dfa8d12002-12-08 09:53:23 +0000968 rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
wdenkb02744a2003-04-05 00:53:31 +0000969 rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
wdenkbb2d9272003-06-25 22:26:29 +0000970 rm -f include/asm/proc include/asm/arch include/asm
wdenk7ebf7442002-11-02 23:17:16 +0000971
972mrproper \
973distclean: clobber unconfig
974
975backup:
976 F=`basename $(TOPDIR)` ; cd .. ; \
977 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
978
979#########################################################################