blob: 463aeee3382a6f286de46771ea9bc65fa86252c3 [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
wdenk60164a82003-10-08 23:26:14 +000072ifeq ($(ARCH),nios)
73CROSS_COMPILE = nios-elf-
wdenk591dda52002-11-18 00:14:45 +000074endif
wdenk4a5c8a72003-03-06 00:02:04 +000075endif
wdenk60164a82003-10-08 23:26:14 +000076endif
wdenk7ebf7442002-11-02 23:17:16 +000077
78export CROSS_COMPILE
79
80# The "tools" are needed early, so put this first
81SUBDIRS = tools \
wdenk708521a2003-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 \
wdenkeb20ad32003-09-05 23:19:14 +000094 drivers/sk98lin \
wdenk7ebf7442002-11-02 23:17:16 +000095 post \
wdenk708521a2003-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
wdenk591dda52002-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
109
110LIBS = board/$(BOARDDIR)/lib$(BOARD).a
111LIBS += cpu/$(CPU)/lib$(CPU).a
112LIBS += lib_$(ARCH)/lib$(ARCH).a
wdenk7a428cc2003-06-15 22:40:42 +0000113LIBS += fs/jffs2/libjffs2.a fs/fdos/libfdos.a fs/fat/libfat.a
wdenk7ebf7442002-11-02 23:17:16 +0000114LIBS += net/libnet.a
115LIBS += disk/libdisk.a
116LIBS += rtc/librtc.a
117LIBS += dtt/libdtt.a
118LIBS += drivers/libdrivers.a
wdenkeb20ad32003-09-05 23:19:14 +0000119LIBS += drivers/sk98lin/libsk98lin.a
wdenk7ebf7442002-11-02 23:17:16 +0000120LIBS += post/libpost.a post/cpu/libcpu.a
121LIBS += common/libcommon.a
122LIBS += lib_generic/libgeneric.a
wdenk4cc02a82003-09-11 23:06:34 +0000123# Add GCC lib
wdenk49c3f672003-10-08 22:33:00 +0000124PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
wdenk7ebf7442002-11-02 23:17:16 +0000125
126#########################################################################
wdenk0a658552003-08-05 17:43:17 +0000127#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000128
wdenk0a658552003-08-05 17:43:17 +0000129ALL = u-boot.srec u-boot.bin System.map
wdenk7ebf7442002-11-02 23:17:16 +0000130
wdenk0a658552003-08-05 17:43:17 +0000131all: $(ALL)
wdenk7ebf7442002-11-02 23:17:16 +0000132
133u-boot.srec: u-boot
134 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
135
136u-boot.bin: u-boot
137 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
138
wdenk0a658552003-08-05 17:43:17 +0000139u-boot.img: u-boot.bin
140 ./tools/mkimage -A $(ARCH) -T firmware -C none \
141 -a $(TEXT_BASE) -e 0 \
142 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \
143 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
144 -d $< $@
145
wdenk7ebf7442002-11-02 23:17:16 +0000146u-boot.dis: u-boot
147 $(OBJDUMP) -d $< > $@
148
149u-boot: depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT)
wdenk57b2d802003-06-27 21:31:46 +0000150 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
151 $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
wdenkeb20ad32003-09-05 23:19:14 +0000152 --start-group $(LIBS) $(PLATFORM_LIBS) --end-group \
wdenk67ff36c2002-11-19 23:01:07 +0000153 -Map u-boot.map -o u-boot
wdenk7ebf7442002-11-02 23:17:16 +0000154
155subdirs:
156 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir || exit 1 ; done
157
dzu9b10ef982003-08-07 14:20:31 +0000158gdbtools:
159 $(MAKE) -C tools/gdb || exit 1
160
wdenk7ebf7442002-11-02 23:17:16 +0000161depend dep:
162 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
163
164tags:
165 ctags -w `find $(SUBDIRS) include \
166 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
167
168etags:
169 etags -a `find $(SUBDIRS) include \
170 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
171
172System.map: u-boot
173 @$(NM) $< | \
174 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
175 sort > System.map
176
177#########################################################################
178else
179all install u-boot u-boot.srec depend dep:
180 @echo "System not configured - see README" >&2
181 @ exit 1
182endif
183
184#########################################################################
185
186unconfig:
187 rm -f include/config.h include/config.mk
188
189#========================================================================
190# PowerPC
191#========================================================================
wdenk359733b2003-03-31 17:27:09 +0000192
193#########################################################################
194## MPC5xx Systems
195#########################################################################
196
197cmi_mpc5xx_config: unconfig
198 @./mkconfig $(@:_config=) ppc mpc5xx cmi
199
wdenk7ebf7442002-11-02 23:17:16 +0000200#########################################################################
wdenk21136db2003-07-16 21:53:01 +0000201## MPC5xxx Systems
202#########################################################################
203IceCube_5200_config \
204IceCube_5100_config: unconfig
205 @ >include/config.h
206 @[ -z "$(findstring _5200,$@)" ] || \
207 { echo "#define CONFIG_MPC5200" >>include/config.h ; \
208 echo "... with MPC5200 processor" ; \
209 }
210 @[ -z "$(findstring _5100,$@)" ] || \
211 { echo "#define CONFIG_MGT5100" >>include/config.h ; \
212 echo "... with MGT5100 processor" ; \
213 }
214 @./mkconfig -a IceCube ppc mpc5xxx icecube
215
216#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000217## MPC8xx Systems
218#########################################################################
219
wdenk84650f52003-08-30 00:05:50 +0000220AdderII_config: unconfig
221 @./mkconfig $(@:_config=) ppc mpc8xx adderII
222
wdenk7ebf7442002-11-02 23:17:16 +0000223ADS860_config: unconfig
224 @./mkconfig $(@:_config=) ppc mpc8xx fads
225
226AMX860_config : unconfig
227 @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
228
229c2mon_config: unconfig
230 @./mkconfig $(@:_config=) ppc mpc8xx c2mon
231
232CCM_config: unconfig
233 @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
234
235cogent_mpc8xx_config: unconfig
236 @./mkconfig $(@:_config=) ppc mpc8xx cogent
237
wdenkef5fe752003-03-12 10:41:04 +0000238ELPT860_config: unconfig
239 @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
240
wdenk7ebf7442002-11-02 23:17:16 +0000241ESTEEM192E_config: unconfig
242 @./mkconfig $(@:_config=) ppc mpc8xx esteem192e
243
244ETX094_config : unconfig
245 @./mkconfig $(@:_config=) ppc mpc8xx etx094
246
247FADS823_config \
248FADS850SAR_config \
wdenk2bb11052003-07-17 23:16:40 +0000249MPC86xADS_config \
wdenk7ebf7442002-11-02 23:17:16 +0000250FADS860T_config: unconfig
251 @./mkconfig $(@:_config=) ppc mpc8xx fads
252
253FLAGADM_config: unconfig
254 @./mkconfig $(@:_config=) ppc mpc8xx flagadm
255
wdenk541a76d2003-05-03 15:50:43 +0000256xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
257
258GEN860T_SC_config \
wdenk7ebf7442002-11-02 23:17:16 +0000259GEN860T_config: unconfig
wdenk541a76d2003-05-03 15:50:43 +0000260 @ >include/config.h
261 @[ -z "$(findstring _SC,$@)" ] || \
262 { echo "#define CONFIG_SC" >>include/config.h ; \
263 echo "With reduced H/W feature set (SC)..." ; \
264 }
265 @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
wdenk7ebf7442002-11-02 23:17:16 +0000266
267GENIETV_config: unconfig
268 @./mkconfig $(@:_config=) ppc mpc8xx genietv
269
270GTH_config: unconfig
271 @./mkconfig $(@:_config=) ppc mpc8xx gth
272
273hermes_config : unconfig
274 @./mkconfig $(@:_config=) ppc mpc8xx hermes
275
276IAD210_config: unconfig
277 @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
278
279xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
280
281ICU862_100MHz_config \
282ICU862_config: unconfig
283 @ >include/config.h
284 @[ -z "$(findstring _100MHz,$@)" ] || \
285 { echo "#define CONFIG_100MHz" >>include/config.h ; \
286 echo "... with 100MHz system clock" ; \
287 }
288 @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
289
290IP860_config : unconfig
291 @./mkconfig $(@:_config=) ppc mpc8xx ip860
292
293IVML24_256_config \
294IVML24_128_config \
295IVML24_config: unconfig
296 @ >include/config.h
297 @[ -z "$(findstring IVML24_config,$@)" ] || \
298 { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \
299 }
300 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
301 { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \
302 }
303 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
304 { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \
305 }
306 @./mkconfig -a IVML24 ppc mpc8xx ivm
307
308IVMS8_256_config \
309IVMS8_128_config \
310IVMS8_config: unconfig
311 @ >include/config.h
312 @[ -z "$(findstring IVMS8_config,$@)" ] || \
313 { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \
314 }
315 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
316 { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \
317 }
318 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
319 { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \
320 }
321 @./mkconfig -a IVMS8 ppc mpc8xx ivm
322
wdenk56f94be2002-11-05 16:35:14 +0000323KUP4K_config : unconfig
324 @./mkconfig $(@:_config=) ppc mpc8xx kup4k
325
wdenk7ebf7442002-11-02 23:17:16 +0000326LANTEC_config : unconfig
327 @./mkconfig $(@:_config=) ppc mpc8xx lantec
328
329lwmon_config: unconfig
330 @./mkconfig $(@:_config=) ppc mpc8xx lwmon
331
332MBX_config \
333MBX860T_config: unconfig
334 @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
335
336MHPC_config: unconfig
337 @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
338
339MVS1_config : unconfig
340 @./mkconfig $(@:_config=) ppc mpc8xx mvs1
341
wdenk70764a32003-06-26 22:04:09 +0000342xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
343
344NETVIA_V2_config \
wdenk7ebf7442002-11-02 23:17:16 +0000345NETVIA_config: unconfig
wdenk70764a32003-06-26 22:04:09 +0000346 @ >include/config.h
347 @[ -z "$(findstring NETVIA_config,$@)" ] || \
348 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
349 echo "... Version 1" ; \
350 }
351 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
352 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
353 echo "... Version 2" ; \
354 }
355 @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
wdenk7ebf7442002-11-02 23:17:16 +0000356
357NX823_config: unconfig
358 @./mkconfig $(@:_config=) ppc mpc8xx nx823
359
360pcu_e_config: unconfig
361 @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
362
363R360MPI_config: unconfig
364 @./mkconfig $(@:_config=) ppc mpc8xx r360mpi
365
wdenk4e112c12003-06-03 23:54:09 +0000366RBC823_config: unconfig
367 @./mkconfig $(@:_config=) ppc mpc8xx rbc823
368
wdenk7ebf7442002-11-02 23:17:16 +0000369RPXClassic_config: unconfig
370 @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
371
372RPXlite_config: unconfig
373 @./mkconfig $(@:_config=) ppc mpc8xx RPXlite
374
wdenke6466f62003-06-05 19:27:42 +0000375rmu_config: unconfig
376 @./mkconfig $(@:_config=) ppc mpc8xx rmu
377
wdenk7ebf7442002-11-02 23:17:16 +0000378RRvision_config: unconfig
379 @./mkconfig $(@:_config=) ppc mpc8xx RRvision
380
381RRvision_LCD_config: unconfig
382 @echo "#define CONFIG_LCD" >include/config.h
383 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
384 @./mkconfig -a RRvision ppc mpc8xx RRvision
385
386SM850_config : unconfig
387 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
388
389SPD823TS_config: unconfig
390 @./mkconfig $(@:_config=) ppc mpc8xx spd8xx
391
wdenkc8434db2003-03-26 06:55:25 +0000392svm_sc8xx_config: unconfig
393 @ >include/config.h
394 @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
395
wdenk7ebf7442002-11-02 23:17:16 +0000396SXNI855T_config: unconfig
397 @./mkconfig $(@:_config=) ppc mpc8xx sixnet
398
wdenkb666c8f2003-03-06 00:58:30 +0000399# EMK MPC8xx based modules
400TOP860_config: unconfig
401 @./mkconfig $(@:_config=) ppc mpc8xx top860 emk
402
wdenk7ebf7442002-11-02 23:17:16 +0000403# Play some tricks for configuration selection
wdenke6466f62003-06-05 19:27:42 +0000404# All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock,
wdenk7ebf7442002-11-02 23:17:16 +0000405# but only 855 and 860 boards may come with FEC
406# and 823 boards may have LCD support
wdenke6466f62003-06-05 19:27:42 +0000407xtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _LCD,,$(subst _config,,$1)))))
wdenk7ebf7442002-11-02 23:17:16 +0000408
409FPS850L_config \
wdenk384ae022002-11-05 00:17:55 +0000410FPS860L_config \
wdenk69141282003-07-07 20:07:54 +0000411NSCU_config \
wdenk7ebf7442002-11-02 23:17:16 +0000412TQM823L_config \
413TQM823L_66MHz_config \
414TQM823L_80MHz_config \
415TQM823L_LCD_config \
416TQM823L_LCD_66MHz_config \
417TQM823L_LCD_80MHz_config \
418TQM850L_config \
419TQM850L_66MHz_config \
420TQM850L_80MHz_config \
421TQM855L_config \
422TQM855L_66MHz_config \
423TQM855L_80MHz_config \
wdenk7ebf7442002-11-02 23:17:16 +0000424TQM860L_config \
425TQM860L_66MHz_config \
426TQM860L_80MHz_config \
wdenk6bd14892003-04-10 11:18:18 +0000427TQM862L_config \
428TQM862L_66MHz_config \
wdenke6466f62003-06-05 19:27:42 +0000429TQM862L_80MHz_config \
wdenkfb229ae2003-08-07 22:18:11 +0000430TQM823M_config \
431TQM823M_66MHz_config \
432TQM823M_80MHz_config \
433TQM850M_config \
434TQM850M_66MHz_config \
435TQM850M_80MHz_config \
wdenk69141282003-07-07 20:07:54 +0000436TQM855M_config \
437TQM855M_66MHz_config \
438TQM855M_80MHz_config \
439TQM860M_config \
440TQM860M_66MHz_config \
441TQM860M_80MHz_config \
442TQM862M_config \
443TQM862M_66MHz_config \
444TQM862M_80MHz_config \
wdenk7a428cc2003-06-15 22:40:42 +0000445TQM862M_100MHz_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000446 @ >include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000447 @[ -z "$(findstring _66MHz,$@)" ] || \
448 { echo "#define CONFIG_66MHz" >>include/config.h ; \
449 echo "... with 66MHz system clock" ; \
450 }
451 @[ -z "$(findstring _80MHz,$@)" ] || \
452 { echo "#define CONFIG_80MHz" >>include/config.h ; \
453 echo "... with 80MHz system clock" ; \
454 }
wdenke6466f62003-06-05 19:27:42 +0000455 @[ -z "$(findstring _100MHz,$@)" ] || \
456 { echo "#define CONFIG_100MHz" >>include/config.h ; \
457 echo "... with 100MHz system clock" ; \
458 }
wdenk7ebf7442002-11-02 23:17:16 +0000459 @[ -z "$(findstring _LCD,$@)" ] || \
460 { echo "#define CONFIG_LCD" >>include/config.h ; \
461 echo "#define CONFIG_NEC_NL6648BC20" >>include/config.h ; \
462 echo "... with LCD display" ; \
463 }
464 @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
465
466TTTech_config: unconfig
467 @echo "#define CONFIG_LCD" >include/config.h
468 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
469 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
470
wdenk2dad91b2003-01-13 23:54:46 +0000471v37_config: unconfig
472 @echo "#define CONFIG_LCD" >include/config.h
473 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
474 @./mkconfig $(@:_config=) ppc mpc8xx v37
475
dzu69438f62003-09-25 22:32:40 +0000476wtk_config: unconfig
477 @echo "#define CONFIG_LCD" >include/config.h
478 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
479 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
480
wdenk7ebf7442002-11-02 23:17:16 +0000481#########################################################################
482## PPC4xx Systems
483#########################################################################
wdenk7182b0f2003-10-06 21:55:32 +0000484xtract_4xx = $(subst _MODEL_BA,,$(subst _MODEL_ME,,$(subst _MODEL_HI,,$(subst _config,,$1))))
wdenk7ebf7442002-11-02 23:17:16 +0000485
486ADCIOP_config: unconfig
487 @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
488
489AR405_config: unconfig
490 @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
491
stroesebfcc82b2003-05-23 11:41:44 +0000492ASH405_config: unconfig
493 @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
494
495BUBINGA405EP_config:unconfig
496 @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
497
wdenk7ebf7442002-11-02 23:17:16 +0000498CANBT_config: unconfig
499 @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
500
stroesebfcc82b2003-05-23 11:41:44 +0000501CPCI405_config \
502CPCI4052_config \
503CPCI405AB_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000504 @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
505 @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
506
507CPCI440_config: unconfig
508 @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
509
510CPCIISER4_config: unconfig
511 @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
512
513CRAYL1_config:unconfig
514 @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
515
516DASA_SIM_config: unconfig
517 @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
518
stroese3361eb72003-09-12 08:57:15 +0000519DP405_config: unconfig
520 @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
521
wdenk7ebf7442002-11-02 23:17:16 +0000522DU405_config: unconfig
523 @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
524
525EBONY_config:unconfig
526 @./mkconfig $(@:_config=) ppc ppc4xx ebony
527
528ERIC_config:unconfig
529 @./mkconfig $(@:_config=) ppc ppc4xx eric
530
wdenkd9fce812003-06-28 17:24:46 +0000531EXBITGEN_config:unconfig
532 @./mkconfig $(@:_config=) ppc ppc4xx exbitgen
533
stroese3361eb72003-09-12 08:57:15 +0000534HUB405_config: unconfig
535 @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
536
wdenk7ebf7442002-11-02 23:17:16 +0000537MIP405_config:unconfig
538 @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
539
wdenke39c2842003-06-04 15:05:30 +0000540MIP405T_config:unconfig
541 @echo "#define CONFIG_MIP405T" >include/config.h
542 @echo "Enable subset config for MIP405T"
543 @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
544
wdenk7ebf7442002-11-02 23:17:16 +0000545ML2_config:unconfig
546 @./mkconfig $(@:_config=) ppc ppc4xx ml2
547
548OCRTC_config \
549ORSG_config: unconfig
550 @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
551
552PCI405_config: unconfig
553 @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
554
555PIP405_config:unconfig
556 @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
557
stroese3361eb72003-09-12 08:57:15 +0000558PLU405_config: unconfig
559 @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
560
stroesebfcc82b2003-05-23 11:41:44 +0000561PMC405_config: unconfig
562 @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
563
wdenk7182b0f2003-10-06 21:55:32 +0000564PPChameleonEVB_MODEL_BA_config \
565PPChameleonEVB_MODEL_ME_config \
566PPChameleonEVB_MODEL_HI_config \
wdenk232fe0b2003-09-02 22:48:03 +0000567PPChameleonEVB_config: unconfig
wdenk7182b0f2003-10-06 21:55:32 +0000568 @ >include/config.h
569 @[ -z "$(findstring _MODEL_BA,$@)" ] || \
570 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
571 echo "... BASIC model" ; \
572 }
573 @[ -z "$(findstring _MODEL_ME,$@)" ] || \
574 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
575 echo "... MEDIUM model" ; \
576 }
577 @[ -z "$(findstring _MODEL_HI,$@)" ] || \
578 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
579 echo "... HIGH-END model" ; \
580 }
581 @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
wdenk232fe0b2003-09-02 22:48:03 +0000582
stroese3361eb72003-09-12 08:57:15 +0000583VOH405_config: unconfig
584 @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
585
wdenk7ebf7442002-11-02 23:17:16 +0000586W7OLMC_config \
587W7OLMG_config: unconfig
588 @./mkconfig $(@:_config=) ppc ppc4xx w7o
589
590WALNUT405_config:unconfig
591 @./mkconfig $(@:_config=) ppc ppc4xx walnut405
592
593#########################################################################
594## MPC824x Systems
595#########################################################################
wdenkef5fe752003-03-12 10:41:04 +0000596xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))
597
wdenk8aeb24e2003-06-20 22:36:30 +0000598A3000_config: unconfig
599 @./mkconfig $(@:_config=) ppc mpc824x a3000
600
wdenk7ebf7442002-11-02 23:17:16 +0000601BMW_config: unconfig
602 @./mkconfig $(@:_config=) ppc mpc824x bmw
603
wdenkef5fe752003-03-12 10:41:04 +0000604CPC45_config \
605CPC45_ROMBOOT_config: unconfig
606 @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
607 @cd ./include ; \
608 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
609 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
610 echo "... booting from 8-bit flash" ; \
611 else \
612 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
613 echo "... booting from 64-bit flash" ; \
614 fi; \
615 echo "export CONFIG_BOOT_ROM" >> config.mk;
616
wdenk7ebf7442002-11-02 23:17:16 +0000617CU824_config: unconfig
618 @./mkconfig $(@:_config=) ppc mpc824x cu824
619
620MOUSSE_config: unconfig
621 @./mkconfig $(@:_config=) ppc mpc824x mousse
622
623MUSENKI_config: unconfig
624 @./mkconfig $(@:_config=) ppc mpc824x musenki
625
626OXC_config: unconfig
627 @./mkconfig $(@:_config=) ppc mpc824x oxc
628
629PN62_config: unconfig
630 @./mkconfig $(@:_config=) ppc mpc824x pn62
631
632Sandpoint8240_config: unconfig
633 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
634
635Sandpoint8245_config: unconfig
636 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
637
wdenkd9fce812003-06-28 17:24:46 +0000638SL8245_config: unconfig
639 @./mkconfig $(@:_config=) ppc mpc824x sl8245
640
wdenk7ebf7442002-11-02 23:17:16 +0000641utx8245_config: unconfig
642 @./mkconfig $(@:_config=) ppc mpc824x utx8245
643
644#########################################################################
645## MPC8260 Systems
646#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000647
wdenk2f0812d2003-10-08 22:45:44 +0000648atc_config: unconfig
649 @./mkconfig $(@:_config=) ppc mpc8260 atc
650
wdenk7ebf7442002-11-02 23:17:16 +0000651cogent_mpc8260_config: unconfig
652 @./mkconfig $(@:_config=) ppc mpc8260 cogent
653
654CPU86_config \
655CPU86_ROMBOOT_config: unconfig
656 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
657 @cd ./include ; \
658 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
659 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
660 echo "... booting from 8-bit flash" ; \
661 else \
662 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
663 echo "... booting from 64-bit flash" ; \
664 fi; \
665 echo "export CONFIG_BOOT_ROM" >> config.mk;
666
667ep8260_config: unconfig
668 @./mkconfig $(@:_config=) ppc mpc8260 ep8260
669
670gw8260_config: unconfig
671 @./mkconfig $(@:_config=) ppc mpc8260 gw8260
672
673hymod_config: unconfig
674 @./mkconfig $(@:_config=) ppc mpc8260 hymod
675
676IPHASE4539_config: unconfig
677 @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
678
679MPC8260ADS_config: unconfig
680 @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads
681
wdenkb666c8f2003-03-06 00:58:30 +0000682MPC8266ADS_config: unconfig
683 @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
684
wdenk4b57dcc2003-03-25 18:06:06 +0000685PM825_config \
686PM825_ROMBOOT_config: unconfig
687 @echo "#define CONFIG_PCI" >include/config.h
688 @./mkconfig -a PM826 ppc mpc8260 pm826
689 @cd ./include ; \
690 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
691 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
692 echo "... booting from 8-bit flash" ; \
693 else \
694 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
695 echo "... booting from 64-bit flash" ; \
696 fi; \
697 echo "export CONFIG_BOOT_ROM" >> config.mk; \
698
wdenk7ebf7442002-11-02 23:17:16 +0000699PM826_config \
700PM826_ROMBOOT_config: unconfig
701 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826
702 @cd ./include ; \
703 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
704 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
705 echo "... booting from 8-bit flash" ; \
706 else \
707 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
708 echo "... booting from 64-bit flash" ; \
709 fi; \
710 echo "export CONFIG_BOOT_ROM" >> config.mk; \
711
712ppmc8260_config: unconfig
713 @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
714
715RPXsuper_config: unconfig
716 @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
717
718rsdproto_config: unconfig
719 @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
720
721sacsng_config: unconfig
722 @./mkconfig $(@:_config=) ppc mpc8260 sacsng
723
724sbc8260_config: unconfig
725 @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
726
727SCM_config: unconfig
728 @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
729
wdenk874ac262003-07-24 23:38:38 +0000730TQM8255_AA_config \
731TQM8260_AA_config \
732TQM8260_AB_config \
733TQM8260_AC_config \
734TQM8260_AD_config \
735TQM8260_AE_config \
736TQM8260_AF_config \
737TQM8260_AG_config \
738TQM8260_AH_config \
739TQM8265_AA_config: unconfig
740 @case "$@" in \
741 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
742 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
743 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
744 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
745 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
746 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
747 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
748 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
749 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
750 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
751 esac; \
752 >include/config.h ; \
753 if [ "$${CTYPE}" != "MPC8260" ] ; then \
754 echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \
755 fi; \
756 echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \
757 echo "... with $${CFREQ}MHz system clock" ; \
758 if [ "$${CACHE}" == "yes" ] ; then \
wdenk7ebf7442002-11-02 23:17:16 +0000759 echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
wdenk874ac262003-07-24 23:38:38 +0000760 echo "... with L2 Cache support" ; \
wdenk7ebf7442002-11-02 23:17:16 +0000761 else \
762 echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
763 echo "... without L2 Cache support" ; \
wdenk874ac262003-07-24 23:38:38 +0000764 fi; \
765 if [ "$${BMODE}" == "60x" ] ; then \
766 echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
767 echo "... with 60x Bus Mode" ; \
768 else \
769 echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \
770 echo "... without 60x Bus Mode" ; \
wdenk7ebf7442002-11-02 23:17:16 +0000771 fi
wdenkc08f1582003-04-27 22:52:51 +0000772 @./mkconfig -a TQM8260 ppc mpc8260 tqm8260
wdenk7ebf7442002-11-02 23:17:16 +0000773
wdenk2f0812d2003-10-08 22:45:44 +0000774ZPC1900_config: unconfig
775 @./mkconfig $(@:_config=) ppc mpc8260 zpc1900
wdenk541a76d2003-05-03 15:50:43 +0000776
wdenk7ebf7442002-11-02 23:17:16 +0000777#########################################################################
778## 74xx/7xx Systems
779#########################################################################
780
wdenk452cfd62002-11-19 11:04:11 +0000781AmigaOneG3SE_config: unconfig
782 @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
783
wdenk9f837932003-10-09 19:00:25 +0000784BAB7xx_config: unconfig
785 @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
786
787debris_config: unconfig
788 @./mkconfig $(@:_config=) ppc mpc824x debris etin
789
790ELPPC_config: unconfig
791 @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
792
wdenk7ebf7442002-11-02 23:17:16 +0000793EVB64260_config \
794EVB64260_750CX_config: unconfig
795 @./mkconfig EVB64260 ppc 74xx_7xx evb64260
796
wdenk9f837932003-10-09 19:00:25 +0000797P3G4_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000798 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
799
800PCIPPC2_config \
801PCIPPC6_config: unconfig
802 @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
803
wdenk9f837932003-10-09 19:00:25 +0000804ZUMA_config: unconfig
wdenk232fe0b2003-09-02 22:48:03 +0000805 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
806
wdenk7ebf7442002-11-02 23:17:16 +0000807#========================================================================
808# ARM
809#========================================================================
810#########################################################################
811## StrongARM Systems
812#########################################################################
813
wdenkc8434db2003-03-26 06:55:25 +0000814at91rm9200dk_config : unconfig
815 @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk
816
wdenk7ebf7442002-11-02 23:17:16 +0000817lart_config : unconfig
818 @./mkconfig $(@:_config=) arm sa1100 lart
819
820dnp1110_config : unconfig
821 @./mkconfig $(@:_config=) arm sa1100 dnp1110
822
823shannon_config : unconfig
824 @./mkconfig $(@:_config=) arm sa1100 shannon
825
826#########################################################################
wdenkf6f96f72003-07-15 20:04:06 +0000827## ARM92xT Systems
wdenk7ebf7442002-11-02 23:17:16 +0000828#########################################################################
829
wdenkb6b2f0e2003-09-17 22:48:07 +0000830xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
wdenk4a5c8a72003-03-06 00:02:04 +0000831
wdenkf6f96f72003-07-15 20:04:06 +0000832omap1510inn_config : unconfig
833 @./mkconfig $(@:_config=) arm arm925t omap1510inn
834
wdenk7eaacc52003-08-29 22:00:43 +0000835omap1610inn_config : unconfig
836 @./mkconfig $(@:_config=) arm arm926ejs omap1610inn
837
wdenk7ebf7442002-11-02 23:17:16 +0000838smdk2400_config : unconfig
839 @./mkconfig $(@:_config=) arm arm920t smdk2400
840
841smdk2410_config : unconfig
842 @./mkconfig $(@:_config=) arm arm920t smdk2410
843
wdenk4a5c8a72003-03-06 00:02:04 +0000844trab_config \
wdenkb6b2f0e2003-09-17 22:48:07 +0000845trab_bigram_config \
846trab_bigflash_config \
wdenkf6a6ac12003-09-17 15:10:32 +0000847trab_old_config: unconfig
wdenk4a5c8a72003-03-06 00:02:04 +0000848 @ >include/config.h
wdenkb6b2f0e2003-09-17 22:48:07 +0000849 @[ -z "$(findstring _bigram,$@)" ] || \
850 { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
851 echo "... with 8 MB Flash, 32 MB RAM" ; \
852 }
853 @[ -z "$(findstring _bigflash,$@)" ] || \
854 { echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
855 echo "... with 16 MB Flash, 16 MB RAM" ; \
856 echo "TEXT_BASE = 0x0CF00000" >board/trab/config.tmp ; \
857 }
wdenkf6a6ac12003-09-17 15:10:32 +0000858 @[ -z "$(findstring _old,$@)" ] || \
859 { echo "#define CONFIG_OLD_VERSION" >>include/config.h ; \
860 echo "... with small memory configuration" ; \
wdenkb6b2f0e2003-09-17 22:48:07 +0000861 echo "TEXT_BASE = 0x0CF00000" >board/trab/config.tmp ; \
wdenk4a5c8a72003-03-06 00:02:04 +0000862 }
863 @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab
wdenk7ebf7442002-11-02 23:17:16 +0000864
wdenk1fe2c702003-03-06 21:55:29 +0000865VCMA9_config : unconfig
866 @./mkconfig $(@:_config=) arm arm920t vcma9 mpl
867
wdenk7ebf7442002-11-02 23:17:16 +0000868#########################################################################
869## ARM720T Systems
870#########################################################################
871
872impa7_config : unconfig
873 @./mkconfig $(@:_config=) arm arm720t impa7
874
875ep7312_config : unconfig
876 @./mkconfig $(@:_config=) arm arm720t ep7312
877
878#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +0000879## XScale Systems
wdenk7ebf7442002-11-02 23:17:16 +0000880#########################################################################
881
wdenk7ebf7442002-11-02 23:17:16 +0000882cradle_config : unconfig
wdenk57b2d802003-06-27 21:31:46 +0000883 @./mkconfig $(@:_config=) arm pxa cradle
wdenk7ebf7442002-11-02 23:17:16 +0000884
885csb226_config : unconfig
wdenk0463e042003-05-23 12:36:20 +0000886 @./mkconfig $(@:_config=) arm pxa csb226
wdenk7ebf7442002-11-02 23:17:16 +0000887
wdenk4a5c8a72003-03-06 00:02:04 +0000888innokom_config : unconfig
wdenk0463e042003-05-23 12:36:20 +0000889 @./mkconfig $(@:_config=) arm pxa innokom
wdenk4a5c8a72003-03-06 00:02:04 +0000890
891lubbock_config : unconfig
wdenk0463e042003-05-23 12:36:20 +0000892 @./mkconfig $(@:_config=) arm pxa lubbock
wdenk4a5c8a72003-03-06 00:02:04 +0000893
wdenk88e72a32003-06-19 23:04:19 +0000894logodl_config : unconfig
895 @./mkconfig $(@:_config=) arm pxa logodl
896
wdenkb02744a2003-04-05 00:53:31 +0000897wepep250_config : unconfig
wdenk0463e042003-05-23 12:36:20 +0000898 @./mkconfig $(@:_config=) arm pxa wepep250
wdenkb02744a2003-04-05 00:53:31 +0000899
wdenk591dda52002-11-18 00:14:45 +0000900#========================================================================
901# i386
902#========================================================================
903#########################################################################
wdenk1fe2c702003-03-06 21:55:29 +0000904## AMD SC520 CDP
wdenk591dda52002-11-18 00:14:45 +0000905#########################################################################
906sc520_cdp_config : unconfig
907 @./mkconfig $(@:_config=) i386 i386 sc520_cdp
908
wdenkabda5ca2003-05-31 18:35:21 +0000909sc520_spunk_config : unconfig
910 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
911
912sc520_spunk_rel_config : unconfig
913 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
914
wdenk4a5c8a72003-03-06 00:02:04 +0000915#========================================================================
916# MIPS
917#========================================================================
wdenk7ebf7442002-11-02 23:17:16 +0000918#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +0000919## MIPS32 4Kc
920#########################################################################
921
wdenk5d841732003-08-17 18:55:18 +0000922xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
923
924incaip_100MHz_config \
925incaip_133MHz_config \
926incaip_150MHz_config \
927incaip_config: unconfig
928 @ >include/config.h
929 @[ -z "$(findstring _100MHz,$@)" ] || \
930 { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
931 echo "... with 100MHz system clock" ; \
932 }
933 @[ -z "$(findstring _133MHz,$@)" ] || \
934 { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
935 echo "... with 133MHz system clock" ; \
936 }
937 @[ -z "$(findstring _150MHz,$@)" ] || \
938 { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
939 echo "... with 150MHz system clock" ; \
940 }
941 @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
942
943#########################################################################
944## MIPS64 5Kc
945#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +0000946
wdenkb02744a2003-04-05 00:53:31 +0000947purple_config : unconfig
948 @./mkconfig $(@:_config=) mips mips purple
wdenk4a5c8a72003-03-06 00:02:04 +0000949
wdenk60164a82003-10-08 23:26:14 +0000950#========================================================================
951# Nios
952#========================================================================
953#########################################################################
954## Nios32
955#########################################################################
956
957DK1C20_config: unconfig
958 @./mkconfig $(@:_config=) nios nios dk1c20
959
960
wdenkb02744a2003-04-05 00:53:31 +0000961#########################################################################
wdenk9b7f3842003-10-09 20:09:04 +0000962## MIPS32 AU1000
963#########################################################################
964dbau1x00_config : unconfig
965 @./mkconfig $(@:_config=) mips mips dbau1x00
966
967#########################################################################
wdenkb02744a2003-04-05 00:53:31 +0000968#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000969
970clean:
971 find . -type f \
972 \( -name 'core' -o -name '*.bak' -o -name '*~' \
973 -o -name '*.o' -o -name '*.a' \) -print \
974 | xargs rm -f
wdenk8dba0502003-03-31 16:34:49 +0000975 rm -f examples/hello_world examples/timer \
wdenkb02744a2003-04-05 00:53:31 +0000976 examples/eepro100_eeprom examples/sched \
wdenkabda5ca2003-05-31 18:35:21 +0000977 examples/mem_to_mem_idma2intr examples/82559_eeprom
978
wdenk7ebf7442002-11-02 23:17:16 +0000979 rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
980 rm -f tools/easylogo/easylogo tools/bmp_logo
981 rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
wdenk9dfa8d12002-12-08 09:53:23 +0000982 rm -f tools/env/fw_printenv tools/env/fw_setenv
wdenk0893c472003-05-20 14:25:27 +0000983 rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
wdenkb6b2f0e2003-09-17 22:48:07 +0000984 rm -f board/trab/trab_fkt board/trab/config.tmp
wdenk7ebf7442002-11-02 23:17:16 +0000985
986clobber: clean
987 find . -type f \
988 \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \
989 -print \
990 | xargs rm -f
991 rm -f $(OBJS) *.bak tags TAGS
992 rm -fr *.*~
wdenk0a658552003-08-05 17:43:17 +0000993 rm -f u-boot u-boot.map $(ALL)
wdenk9dfa8d12002-12-08 09:53:23 +0000994 rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
wdenkb02744a2003-04-05 00:53:31 +0000995 rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
wdenkbb2d9272003-06-25 22:26:29 +0000996 rm -f include/asm/proc include/asm/arch include/asm
wdenk7ebf7442002-11-02 23:17:16 +0000997
998mrproper \
999distclean: clobber unconfig
1000
1001backup:
1002 F=`basename $(TOPDIR)` ; cd .. ; \
1003 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
1004
1005#########################################################################