blob: 474683785825527ed6dfbd3c405aa6ed3dfc4957 [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
wdenk9c53f402003-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
wdenk7a428cc2003-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
wdenkeb20ad32003-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
wdenk4cc02a82003-09-11 23:06:34 +0000126# Add GCC lib
wdenk49c3f672003-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#########################################################################
wdenk0a658552003-08-05 17:43:17 +0000130#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000131
wdenk0a658552003-08-05 17:43:17 +0000132ALL = u-boot.srec u-boot.bin System.map
wdenk7ebf7442002-11-02 23:17:16 +0000133
wdenk0a658552003-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
wdenk0a658552003-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)
wdenk57b2d802003-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) \
wdenkeb20ad32003-09-05 23:19:14 +0000155 --start-group $(LIBS) $(PLATFORM_LIBS) --end-group \
wdenk67ff36c2002-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
dzu9b10ef982003-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#========================================================================
wdenk359733b2003-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#########################################################################
wdenk21136db2003-07-16 21:53:01 +0000204## MPC5xxx Systems
205#########################################################################
wdenk4b16c2e2003-11-07 13:42:26 +0000206MPC5200LITE_config \
207MPC5200LITE_LOWBOOT_config \
208MPC5200LITE_LOWBOOT08_config \
209icecube_5200_config \
210IceCube_5200_config \
wdenk21136db2003-07-16 21:53:01 +0000211IceCube_5100_config: unconfig
212 @ >include/config.h
wdenk4b16c2e2003-11-07 13:42:26 +0000213 @[ -z "$(findstring LOWBOOT,$@)" ] || \
214 { echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \
215 echo "... with LOWBOOT configuration" ; \
216 }
217 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
218 { echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
219 echo "... with 8 MB flash only" ; \
220 }
wdenk55618472003-10-28 09:14:21 +0000221 @[ -z "$(findstring 5200,$@)" ] || \
wdenk21136db2003-07-16 21:53:01 +0000222 { echo "#define CONFIG_MPC5200" >>include/config.h ; \
223 echo "... with MPC5200 processor" ; \
224 }
wdenk55618472003-10-28 09:14:21 +0000225 @[ -z "$(findstring 5100,$@)" ] || \
wdenk21136db2003-07-16 21:53:01 +0000226 { echo "#define CONFIG_MGT5100" >>include/config.h ; \
227 echo "... with MGT5100 processor" ; \
228 }
229 @./mkconfig -a IceCube ppc mpc5xxx icecube
230
231#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000232## MPC8xx Systems
233#########################################################################
234
wdenk84650f52003-08-30 00:05:50 +0000235AdderII_config: unconfig
236 @./mkconfig $(@:_config=) ppc mpc8xx adderII
237
wdenk7ebf7442002-11-02 23:17:16 +0000238ADS860_config: unconfig
239 @./mkconfig $(@:_config=) ppc mpc8xx fads
240
241AMX860_config : unconfig
242 @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
243
wdenkc0d54ae2003-11-25 16:55:19 +0000244bms2003_config : unconfig
245 @echo "#define CONFIG_BMS2003" >include/config.h
246 @echo "#define CONFIG_LCD" >>include/config.h
247 @echo "#define CONFIG_NEC_NL6448BC33_54" >>include/config.h
248 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
249
wdenk7ebf7442002-11-02 23:17:16 +0000250c2mon_config: unconfig
251 @./mkconfig $(@:_config=) ppc mpc8xx c2mon
252
253CCM_config: unconfig
254 @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
255
256cogent_mpc8xx_config: unconfig
257 @./mkconfig $(@:_config=) ppc mpc8xx cogent
258
wdenkef5fe752003-03-12 10:41:04 +0000259ELPT860_config: unconfig
260 @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
261
wdenk7ebf7442002-11-02 23:17:16 +0000262ESTEEM192E_config: unconfig
263 @./mkconfig $(@:_config=) ppc mpc8xx esteem192e
264
265ETX094_config : unconfig
266 @./mkconfig $(@:_config=) ppc mpc8xx etx094
267
268FADS823_config \
269FADS850SAR_config \
wdenk2bb11052003-07-17 23:16:40 +0000270MPC86xADS_config \
wdenk7ebf7442002-11-02 23:17:16 +0000271FADS860T_config: unconfig
272 @./mkconfig $(@:_config=) ppc mpc8xx fads
273
274FLAGADM_config: unconfig
275 @./mkconfig $(@:_config=) ppc mpc8xx flagadm
276
wdenk541a76d2003-05-03 15:50:43 +0000277xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
278
279GEN860T_SC_config \
wdenk7ebf7442002-11-02 23:17:16 +0000280GEN860T_config: unconfig
wdenk541a76d2003-05-03 15:50:43 +0000281 @ >include/config.h
282 @[ -z "$(findstring _SC,$@)" ] || \
283 { echo "#define CONFIG_SC" >>include/config.h ; \
284 echo "With reduced H/W feature set (SC)..." ; \
285 }
286 @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
wdenk7ebf7442002-11-02 23:17:16 +0000287
288GENIETV_config: unconfig
289 @./mkconfig $(@:_config=) ppc mpc8xx genietv
290
291GTH_config: unconfig
292 @./mkconfig $(@:_config=) ppc mpc8xx gth
293
294hermes_config : unconfig
295 @./mkconfig $(@:_config=) ppc mpc8xx hermes
296
297IAD210_config: unconfig
298 @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
299
300xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
301
302ICU862_100MHz_config \
303ICU862_config: unconfig
304 @ >include/config.h
305 @[ -z "$(findstring _100MHz,$@)" ] || \
306 { echo "#define CONFIG_100MHz" >>include/config.h ; \
307 echo "... with 100MHz system clock" ; \
308 }
309 @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
310
311IP860_config : unconfig
312 @./mkconfig $(@:_config=) ppc mpc8xx ip860
313
314IVML24_256_config \
315IVML24_128_config \
316IVML24_config: unconfig
317 @ >include/config.h
318 @[ -z "$(findstring IVML24_config,$@)" ] || \
319 { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \
320 }
321 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
322 { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \
323 }
324 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
325 { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \
326 }
327 @./mkconfig -a IVML24 ppc mpc8xx ivm
328
329IVMS8_256_config \
330IVMS8_128_config \
331IVMS8_config: unconfig
332 @ >include/config.h
333 @[ -z "$(findstring IVMS8_config,$@)" ] || \
334 { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \
335 }
336 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
337 { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \
338 }
339 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
340 { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \
341 }
342 @./mkconfig -a IVMS8 ppc mpc8xx ivm
343
wdenk56f94be2002-11-05 16:35:14 +0000344KUP4K_config : unconfig
345 @./mkconfig $(@:_config=) ppc mpc8xx kup4k
346
wdenk7ebf7442002-11-02 23:17:16 +0000347LANTEC_config : unconfig
348 @./mkconfig $(@:_config=) ppc mpc8xx lantec
349
350lwmon_config: unconfig
351 @./mkconfig $(@:_config=) ppc mpc8xx lwmon
352
353MBX_config \
354MBX860T_config: unconfig
355 @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
356
357MHPC_config: unconfig
358 @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
359
360MVS1_config : unconfig
361 @./mkconfig $(@:_config=) ppc mpc8xx mvs1
362
wdenk70764a32003-06-26 22:04:09 +0000363xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
364
365NETVIA_V2_config \
wdenk7ebf7442002-11-02 23:17:16 +0000366NETVIA_config: unconfig
wdenk70764a32003-06-26 22:04:09 +0000367 @ >include/config.h
368 @[ -z "$(findstring NETVIA_config,$@)" ] || \
369 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
370 echo "... Version 1" ; \
371 }
372 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
373 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
374 echo "... Version 2" ; \
375 }
376 @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
wdenk7ebf7442002-11-02 23:17:16 +0000377
378NX823_config: unconfig
379 @./mkconfig $(@:_config=) ppc mpc8xx nx823
380
381pcu_e_config: unconfig
382 @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
383
384R360MPI_config: unconfig
385 @./mkconfig $(@:_config=) ppc mpc8xx r360mpi
386
wdenk4e112c12003-06-03 23:54:09 +0000387RBC823_config: unconfig
388 @./mkconfig $(@:_config=) ppc mpc8xx rbc823
389
wdenk7ebf7442002-11-02 23:17:16 +0000390RPXClassic_config: unconfig
391 @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
392
393RPXlite_config: unconfig
394 @./mkconfig $(@:_config=) ppc mpc8xx RPXlite
395
wdenke6466f62003-06-05 19:27:42 +0000396rmu_config: unconfig
397 @./mkconfig $(@:_config=) ppc mpc8xx rmu
398
wdenk7ebf7442002-11-02 23:17:16 +0000399RRvision_config: unconfig
400 @./mkconfig $(@:_config=) ppc mpc8xx RRvision
401
402RRvision_LCD_config: unconfig
403 @echo "#define CONFIG_LCD" >include/config.h
404 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
405 @./mkconfig -a RRvision ppc mpc8xx RRvision
406
407SM850_config : unconfig
408 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
409
410SPD823TS_config: unconfig
411 @./mkconfig $(@:_config=) ppc mpc8xx spd8xx
412
wdenkc8434db2003-03-26 06:55:25 +0000413svm_sc8xx_config: unconfig
414 @ >include/config.h
415 @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
416
wdenk7ebf7442002-11-02 23:17:16 +0000417SXNI855T_config: unconfig
418 @./mkconfig $(@:_config=) ppc mpc8xx sixnet
419
wdenkb666c8f2003-03-06 00:58:30 +0000420# EMK MPC8xx based modules
421TOP860_config: unconfig
422 @./mkconfig $(@:_config=) ppc mpc8xx top860 emk
423
wdenk7ebf7442002-11-02 23:17:16 +0000424# Play some tricks for configuration selection
wdenke6466f62003-06-05 19:27:42 +0000425# All boards can come with 50 MHz (default), 66MHz, 80MHz or 100 MHz clock,
wdenk7ebf7442002-11-02 23:17:16 +0000426# but only 855 and 860 boards may come with FEC
427# and 823 boards may have LCD support
wdenke6466f62003-06-05 19:27:42 +0000428xtract_8xx = $(subst _66MHz,,$(subst _80MHz,,$(subst _100MHz,,$(subst _LCD,,$(subst _config,,$1)))))
wdenk7ebf7442002-11-02 23:17:16 +0000429
430FPS850L_config \
wdenk384ae022002-11-05 00:17:55 +0000431FPS860L_config \
wdenk69141282003-07-07 20:07:54 +0000432NSCU_config \
wdenk7ebf7442002-11-02 23:17:16 +0000433TQM823L_config \
434TQM823L_66MHz_config \
435TQM823L_80MHz_config \
436TQM823L_LCD_config \
437TQM823L_LCD_66MHz_config \
438TQM823L_LCD_80MHz_config \
439TQM850L_config \
440TQM850L_66MHz_config \
441TQM850L_80MHz_config \
442TQM855L_config \
443TQM855L_66MHz_config \
444TQM855L_80MHz_config \
wdenk7ebf7442002-11-02 23:17:16 +0000445TQM860L_config \
446TQM860L_66MHz_config \
447TQM860L_80MHz_config \
wdenk6bd14892003-04-10 11:18:18 +0000448TQM862L_config \
449TQM862L_66MHz_config \
wdenke6466f62003-06-05 19:27:42 +0000450TQM862L_80MHz_config \
wdenkfb229ae2003-08-07 22:18:11 +0000451TQM823M_config \
452TQM823M_66MHz_config \
453TQM823M_80MHz_config \
454TQM850M_config \
455TQM850M_66MHz_config \
456TQM850M_80MHz_config \
wdenk69141282003-07-07 20:07:54 +0000457TQM855M_config \
458TQM855M_66MHz_config \
459TQM855M_80MHz_config \
460TQM860M_config \
461TQM860M_66MHz_config \
462TQM860M_80MHz_config \
463TQM862M_config \
464TQM862M_66MHz_config \
465TQM862M_80MHz_config \
wdenk7a428cc2003-06-15 22:40:42 +0000466TQM862M_100MHz_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000467 @ >include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000468 @[ -z "$(findstring _66MHz,$@)" ] || \
469 { echo "#define CONFIG_66MHz" >>include/config.h ; \
470 echo "... with 66MHz system clock" ; \
471 }
472 @[ -z "$(findstring _80MHz,$@)" ] || \
473 { echo "#define CONFIG_80MHz" >>include/config.h ; \
474 echo "... with 80MHz system clock" ; \
475 }
wdenke6466f62003-06-05 19:27:42 +0000476 @[ -z "$(findstring _100MHz,$@)" ] || \
477 { echo "#define CONFIG_100MHz" >>include/config.h ; \
478 echo "... with 100MHz system clock" ; \
479 }
wdenk7ebf7442002-11-02 23:17:16 +0000480 @[ -z "$(findstring _LCD,$@)" ] || \
481 { echo "#define CONFIG_LCD" >>include/config.h ; \
wdenkc0d54ae2003-11-25 16:55:19 +0000482 echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +0000483 echo "... with LCD display" ; \
484 }
485 @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
486
487TTTech_config: unconfig
488 @echo "#define CONFIG_LCD" >include/config.h
489 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
490 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
491
wdenk2dad91b2003-01-13 23:54:46 +0000492v37_config: unconfig
493 @echo "#define CONFIG_LCD" >include/config.h
494 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
495 @./mkconfig $(@:_config=) ppc mpc8xx v37
496
dzu69438f62003-09-25 22:32:40 +0000497wtk_config: unconfig
498 @echo "#define CONFIG_LCD" >include/config.h
499 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
500 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
501
wdenk7ebf7442002-11-02 23:17:16 +0000502#########################################################################
503## PPC4xx Systems
504#########################################################################
wdenk7182b0f2003-10-06 21:55:32 +0000505xtract_4xx = $(subst _MODEL_BA,,$(subst _MODEL_ME,,$(subst _MODEL_HI,,$(subst _config,,$1))))
wdenk7ebf7442002-11-02 23:17:16 +0000506
507ADCIOP_config: unconfig
508 @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
509
510AR405_config: unconfig
511 @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
512
stroesebfcc82b2003-05-23 11:41:44 +0000513ASH405_config: unconfig
514 @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
515
516BUBINGA405EP_config:unconfig
517 @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
518
wdenk7ebf7442002-11-02 23:17:16 +0000519CANBT_config: unconfig
520 @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
521
stroesebfcc82b2003-05-23 11:41:44 +0000522CPCI405_config \
523CPCI4052_config \
524CPCI405AB_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000525 @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
526 @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
527
528CPCI440_config: unconfig
529 @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
530
531CPCIISER4_config: unconfig
532 @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
533
534CRAYL1_config:unconfig
535 @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
536
537DASA_SIM_config: unconfig
538 @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
539
stroese3361eb72003-09-12 08:57:15 +0000540DP405_config: unconfig
541 @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
542
wdenk7ebf7442002-11-02 23:17:16 +0000543DU405_config: unconfig
544 @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
545
546EBONY_config:unconfig
547 @./mkconfig $(@:_config=) ppc ppc4xx ebony
548
549ERIC_config:unconfig
550 @./mkconfig $(@:_config=) ppc ppc4xx eric
551
wdenkd9fce812003-06-28 17:24:46 +0000552EXBITGEN_config:unconfig
553 @./mkconfig $(@:_config=) ppc ppc4xx exbitgen
554
stroese3361eb72003-09-12 08:57:15 +0000555HUB405_config: unconfig
556 @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
557
wdenk7ebf7442002-11-02 23:17:16 +0000558MIP405_config:unconfig
559 @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
560
wdenke39c2842003-06-04 15:05:30 +0000561MIP405T_config:unconfig
562 @echo "#define CONFIG_MIP405T" >include/config.h
563 @echo "Enable subset config for MIP405T"
564 @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
565
wdenk7ebf7442002-11-02 23:17:16 +0000566ML2_config:unconfig
567 @./mkconfig $(@:_config=) ppc ppc4xx ml2
568
569OCRTC_config \
570ORSG_config: unconfig
571 @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
572
573PCI405_config: unconfig
574 @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
575
576PIP405_config:unconfig
577 @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
578
stroese3361eb72003-09-12 08:57:15 +0000579PLU405_config: unconfig
580 @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
581
stroesebfcc82b2003-05-23 11:41:44 +0000582PMC405_config: unconfig
583 @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
584
wdenk7182b0f2003-10-06 21:55:32 +0000585PPChameleonEVB_MODEL_BA_config \
586PPChameleonEVB_MODEL_ME_config \
587PPChameleonEVB_MODEL_HI_config \
wdenk232fe0b2003-09-02 22:48:03 +0000588PPChameleonEVB_config: unconfig
wdenk7182b0f2003-10-06 21:55:32 +0000589 @ >include/config.h
590 @[ -z "$(findstring _MODEL_BA,$@)" ] || \
591 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
592 echo "... BASIC model" ; \
593 }
594 @[ -z "$(findstring _MODEL_ME,$@)" ] || \
595 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
596 echo "... MEDIUM model" ; \
597 }
598 @[ -z "$(findstring _MODEL_HI,$@)" ] || \
599 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
600 echo "... HIGH-END model" ; \
601 }
602 @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
wdenk232fe0b2003-09-02 22:48:03 +0000603
stroese3361eb72003-09-12 08:57:15 +0000604VOH405_config: unconfig
605 @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
606
wdenk7ebf7442002-11-02 23:17:16 +0000607W7OLMC_config \
608W7OLMG_config: unconfig
609 @./mkconfig $(@:_config=) ppc ppc4xx w7o
610
611WALNUT405_config:unconfig
612 @./mkconfig $(@:_config=) ppc ppc4xx walnut405
613
614#########################################################################
615## MPC824x Systems
616#########################################################################
wdenkef5fe752003-03-12 10:41:04 +0000617xtract_82xx = $(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1)))))
618
wdenk8aeb24e2003-06-20 22:36:30 +0000619A3000_config: unconfig
620 @./mkconfig $(@:_config=) ppc mpc824x a3000
621
wdenk7ebf7442002-11-02 23:17:16 +0000622BMW_config: unconfig
623 @./mkconfig $(@:_config=) ppc mpc824x bmw
624
wdenkef5fe752003-03-12 10:41:04 +0000625CPC45_config \
626CPC45_ROMBOOT_config: unconfig
627 @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
628 @cd ./include ; \
629 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
630 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
631 echo "... booting from 8-bit flash" ; \
632 else \
633 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
634 echo "... booting from 64-bit flash" ; \
635 fi; \
636 echo "export CONFIG_BOOT_ROM" >> config.mk;
637
wdenk7ebf7442002-11-02 23:17:16 +0000638CU824_config: unconfig
639 @./mkconfig $(@:_config=) ppc mpc824x cu824
640
641MOUSSE_config: unconfig
642 @./mkconfig $(@:_config=) ppc mpc824x mousse
643
644MUSENKI_config: unconfig
645 @./mkconfig $(@:_config=) ppc mpc824x musenki
646
647OXC_config: unconfig
648 @./mkconfig $(@:_config=) ppc mpc824x oxc
649
650PN62_config: unconfig
651 @./mkconfig $(@:_config=) ppc mpc824x pn62
652
653Sandpoint8240_config: unconfig
654 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
655
656Sandpoint8245_config: unconfig
657 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
658
wdenkd9fce812003-06-28 17:24:46 +0000659SL8245_config: unconfig
660 @./mkconfig $(@:_config=) ppc mpc824x sl8245
661
wdenk7ebf7442002-11-02 23:17:16 +0000662utx8245_config: unconfig
663 @./mkconfig $(@:_config=) ppc mpc824x utx8245
664
665#########################################################################
666## MPC8260 Systems
667#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000668
wdenk2f0812d2003-10-08 22:45:44 +0000669atc_config: unconfig
670 @./mkconfig $(@:_config=) ppc mpc8260 atc
671
wdenk7ebf7442002-11-02 23:17:16 +0000672cogent_mpc8260_config: unconfig
673 @./mkconfig $(@:_config=) ppc mpc8260 cogent
674
675CPU86_config \
676CPU86_ROMBOOT_config: unconfig
677 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
678 @cd ./include ; \
679 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
680 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
681 echo "... booting from 8-bit flash" ; \
682 else \
683 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
684 echo "... booting from 64-bit flash" ; \
685 fi; \
686 echo "export CONFIG_BOOT_ROM" >> config.mk;
687
688ep8260_config: unconfig
689 @./mkconfig $(@:_config=) ppc mpc8260 ep8260
690
691gw8260_config: unconfig
692 @./mkconfig $(@:_config=) ppc mpc8260 gw8260
693
694hymod_config: unconfig
695 @./mkconfig $(@:_config=) ppc mpc8260 hymod
696
697IPHASE4539_config: unconfig
698 @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
699
700MPC8260ADS_config: unconfig
701 @./mkconfig $(@:_config=) ppc mpc8260 mpc8260ads
702
wdenkb666c8f2003-03-06 00:58:30 +0000703MPC8266ADS_config: unconfig
704 @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
705
wdenk4b57dcc2003-03-25 18:06:06 +0000706PM825_config \
707PM825_ROMBOOT_config: unconfig
708 @echo "#define CONFIG_PCI" >include/config.h
709 @./mkconfig -a PM826 ppc mpc8260 pm826
710 @cd ./include ; \
711 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
712 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
713 echo "... booting from 8-bit flash" ; \
714 else \
715 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
716 echo "... booting from 64-bit flash" ; \
717 fi; \
718 echo "export CONFIG_BOOT_ROM" >> config.mk; \
719
wdenk7ebf7442002-11-02 23:17:16 +0000720PM826_config \
721PM826_ROMBOOT_config: unconfig
722 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 pm826
723 @cd ./include ; \
724 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
725 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
726 echo "... booting from 8-bit flash" ; \
727 else \
728 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
729 echo "... booting from 64-bit flash" ; \
730 fi; \
731 echo "export CONFIG_BOOT_ROM" >> config.mk; \
732
733ppmc8260_config: unconfig
734 @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
735
736RPXsuper_config: unconfig
737 @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
738
739rsdproto_config: unconfig
740 @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
741
742sacsng_config: unconfig
743 @./mkconfig $(@:_config=) ppc mpc8260 sacsng
744
745sbc8260_config: unconfig
746 @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
747
748SCM_config: unconfig
749 @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
750
wdenk874ac262003-07-24 23:38:38 +0000751TQM8255_AA_config \
752TQM8260_AA_config \
753TQM8260_AB_config \
754TQM8260_AC_config \
755TQM8260_AD_config \
756TQM8260_AE_config \
757TQM8260_AF_config \
758TQM8260_AG_config \
759TQM8260_AH_config \
760TQM8265_AA_config: unconfig
761 @case "$@" in \
762 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
763 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
764 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
765 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
766 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
767 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
768 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
769 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
770 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
771 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
772 esac; \
773 >include/config.h ; \
774 if [ "$${CTYPE}" != "MPC8260" ] ; then \
775 echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \
776 fi; \
777 echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \
778 echo "... with $${CFREQ}MHz system clock" ; \
779 if [ "$${CACHE}" == "yes" ] ; then \
wdenk7ebf7442002-11-02 23:17:16 +0000780 echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
wdenk874ac262003-07-24 23:38:38 +0000781 echo "... with L2 Cache support" ; \
wdenk7ebf7442002-11-02 23:17:16 +0000782 else \
783 echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
784 echo "... without L2 Cache support" ; \
wdenk874ac262003-07-24 23:38:38 +0000785 fi; \
786 if [ "$${BMODE}" == "60x" ] ; then \
787 echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
788 echo "... with 60x Bus Mode" ; \
789 else \
790 echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \
791 echo "... without 60x Bus Mode" ; \
wdenk7ebf7442002-11-02 23:17:16 +0000792 fi
wdenkc08f1582003-04-27 22:52:51 +0000793 @./mkconfig -a TQM8260 ppc mpc8260 tqm8260
wdenk7ebf7442002-11-02 23:17:16 +0000794
wdenk2f0812d2003-10-08 22:45:44 +0000795ZPC1900_config: unconfig
796 @./mkconfig $(@:_config=) ppc mpc8260 zpc1900
wdenk541a76d2003-05-03 15:50:43 +0000797
wdenk7ebf7442002-11-02 23:17:16 +0000798#########################################################################
wdenk9c53f402003-10-15 23:53:47 +0000799## MPC85xx Systems
800#########################################################################
801
802MPC8540ADS_config: unconfig
803 @./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
804
805MPC8560ADS_config: unconfig
806 @./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
807
808#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000809## 74xx/7xx Systems
810#########################################################################
811
wdenk452cfd62002-11-19 11:04:11 +0000812AmigaOneG3SE_config: unconfig
813 @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
814
wdenk9f837932003-10-09 19:00:25 +0000815BAB7xx_config: unconfig
816 @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
817
818debris_config: unconfig
819 @./mkconfig $(@:_config=) ppc mpc824x debris etin
820
821ELPPC_config: unconfig
822 @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
823
wdenk7ebf7442002-11-02 23:17:16 +0000824EVB64260_config \
825EVB64260_750CX_config: unconfig
826 @./mkconfig EVB64260 ppc 74xx_7xx evb64260
827
wdenk9f837932003-10-09 19:00:25 +0000828P3G4_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000829 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
830
831PCIPPC2_config \
832PCIPPC6_config: unconfig
833 @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
834
wdenk9f837932003-10-09 19:00:25 +0000835ZUMA_config: unconfig
wdenk232fe0b2003-09-02 22:48:03 +0000836 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
837
wdenk7ebf7442002-11-02 23:17:16 +0000838#========================================================================
839# ARM
840#========================================================================
841#########################################################################
842## StrongARM Systems
843#########################################################################
844
wdenkc8434db2003-03-26 06:55:25 +0000845at91rm9200dk_config : unconfig
846 @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk
847
wdenk7ebf7442002-11-02 23:17:16 +0000848lart_config : unconfig
849 @./mkconfig $(@:_config=) arm sa1100 lart
850
851dnp1110_config : unconfig
852 @./mkconfig $(@:_config=) arm sa1100 dnp1110
853
854shannon_config : unconfig
855 @./mkconfig $(@:_config=) arm sa1100 shannon
856
857#########################################################################
wdenkf6f96f72003-07-15 20:04:06 +0000858## ARM92xT Systems
wdenk7ebf7442002-11-02 23:17:16 +0000859#########################################################################
860
wdenkb6b2f0e2003-09-17 22:48:07 +0000861xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
wdenk4a5c8a72003-03-06 00:02:04 +0000862
wdenkf6f96f72003-07-15 20:04:06 +0000863omap1510inn_config : unconfig
864 @./mkconfig $(@:_config=) arm arm925t omap1510inn
865
wdenk7eaacc52003-08-29 22:00:43 +0000866omap1610inn_config : unconfig
867 @./mkconfig $(@:_config=) arm arm926ejs omap1610inn
868
wdenk7ebf7442002-11-02 23:17:16 +0000869smdk2400_config : unconfig
870 @./mkconfig $(@:_config=) arm arm920t smdk2400
871
872smdk2410_config : unconfig
873 @./mkconfig $(@:_config=) arm arm920t smdk2410
874
wdenk4a5c8a72003-03-06 00:02:04 +0000875trab_config \
wdenkb6b2f0e2003-09-17 22:48:07 +0000876trab_bigram_config \
877trab_bigflash_config \
wdenkf6a6ac12003-09-17 15:10:32 +0000878trab_old_config: unconfig
wdenk4a5c8a72003-03-06 00:02:04 +0000879 @ >include/config.h
wdenkb6b2f0e2003-09-17 22:48:07 +0000880 @[ -z "$(findstring _bigram,$@)" ] || \
881 { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
882 echo "... with 8 MB Flash, 32 MB RAM" ; \
883 }
884 @[ -z "$(findstring _bigflash,$@)" ] || \
885 { echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
886 echo "... with 16 MB Flash, 16 MB RAM" ; \
887 echo "TEXT_BASE = 0x0CF00000" >board/trab/config.tmp ; \
888 }
wdenkf6a6ac12003-09-17 15:10:32 +0000889 @[ -z "$(findstring _old,$@)" ] || \
890 { echo "#define CONFIG_OLD_VERSION" >>include/config.h ; \
891 echo "... with small memory configuration" ; \
wdenkb6b2f0e2003-09-17 22:48:07 +0000892 echo "TEXT_BASE = 0x0CF00000" >board/trab/config.tmp ; \
wdenk4a5c8a72003-03-06 00:02:04 +0000893 }
894 @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab
wdenk7ebf7442002-11-02 23:17:16 +0000895
wdenk1fe2c702003-03-06 21:55:29 +0000896VCMA9_config : unconfig
897 @./mkconfig $(@:_config=) arm arm920t vcma9 mpl
898
wdenk7ebf7442002-11-02 23:17:16 +0000899#########################################################################
900## ARM720T Systems
901#########################################################################
902
903impa7_config : unconfig
904 @./mkconfig $(@:_config=) arm arm720t impa7
905
906ep7312_config : unconfig
907 @./mkconfig $(@:_config=) arm arm720t ep7312
908
909#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +0000910## XScale Systems
wdenk7ebf7442002-11-02 23:17:16 +0000911#########################################################################
912
wdenk7ebf7442002-11-02 23:17:16 +0000913cradle_config : unconfig
wdenk57b2d802003-06-27 21:31:46 +0000914 @./mkconfig $(@:_config=) arm pxa cradle
wdenk7ebf7442002-11-02 23:17:16 +0000915
916csb226_config : unconfig
wdenk0463e042003-05-23 12:36:20 +0000917 @./mkconfig $(@:_config=) arm pxa csb226
wdenk7ebf7442002-11-02 23:17:16 +0000918
wdenk4a5c8a72003-03-06 00:02:04 +0000919innokom_config : unconfig
wdenk0463e042003-05-23 12:36:20 +0000920 @./mkconfig $(@:_config=) arm pxa innokom
wdenk4a5c8a72003-03-06 00:02:04 +0000921
wdenkbd1575f2003-10-14 19:43:55 +0000922ixdp425_config : unconfig
923 @./mkconfig $(@:_config=) arm ixp ixdp425
924
wdenk4a5c8a72003-03-06 00:02:04 +0000925lubbock_config : unconfig
wdenk0463e042003-05-23 12:36:20 +0000926 @./mkconfig $(@:_config=) arm pxa lubbock
wdenk4a5c8a72003-03-06 00:02:04 +0000927
wdenk88e72a32003-06-19 23:04:19 +0000928logodl_config : unconfig
929 @./mkconfig $(@:_config=) arm pxa logodl
930
wdenkb02744a2003-04-05 00:53:31 +0000931wepep250_config : unconfig
wdenk0463e042003-05-23 12:36:20 +0000932 @./mkconfig $(@:_config=) arm pxa wepep250
wdenkb02744a2003-04-05 00:53:31 +0000933
wdenk591dda52002-11-18 00:14:45 +0000934#========================================================================
935# i386
936#========================================================================
937#########################################################################
wdenk1fe2c702003-03-06 21:55:29 +0000938## AMD SC520 CDP
wdenk591dda52002-11-18 00:14:45 +0000939#########################################################################
940sc520_cdp_config : unconfig
941 @./mkconfig $(@:_config=) i386 i386 sc520_cdp
942
wdenkabda5ca2003-05-31 18:35:21 +0000943sc520_spunk_config : unconfig
944 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
945
946sc520_spunk_rel_config : unconfig
947 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
948
wdenk4a5c8a72003-03-06 00:02:04 +0000949#========================================================================
950# MIPS
951#========================================================================
wdenk7ebf7442002-11-02 23:17:16 +0000952#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +0000953## MIPS32 4Kc
954#########################################################################
955
wdenk5d841732003-08-17 18:55:18 +0000956xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
957
958incaip_100MHz_config \
959incaip_133MHz_config \
960incaip_150MHz_config \
961incaip_config: unconfig
962 @ >include/config.h
963 @[ -z "$(findstring _100MHz,$@)" ] || \
964 { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
965 echo "... with 100MHz system clock" ; \
966 }
967 @[ -z "$(findstring _133MHz,$@)" ] || \
968 { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
969 echo "... with 133MHz system clock" ; \
970 }
971 @[ -z "$(findstring _150MHz,$@)" ] || \
972 { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
973 echo "... with 150MHz system clock" ; \
974 }
975 @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
976
977#########################################################################
978## MIPS64 5Kc
979#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +0000980
wdenkb02744a2003-04-05 00:53:31 +0000981purple_config : unconfig
982 @./mkconfig $(@:_config=) mips mips purple
wdenk4a5c8a72003-03-06 00:02:04 +0000983
wdenk60164a82003-10-08 23:26:14 +0000984#========================================================================
985# Nios
986#========================================================================
987#########################################################################
988## Nios32
989#########################################################################
990
991DK1C20_config: unconfig
992 @./mkconfig $(@:_config=) nios nios dk1c20
993
994
wdenkb02744a2003-04-05 00:53:31 +0000995#########################################################################
wdenk9b7f3842003-10-09 20:09:04 +0000996## MIPS32 AU1000
997#########################################################################
998dbau1x00_config : unconfig
999 @./mkconfig $(@:_config=) mips mips dbau1x00
1000
1001#########################################################################
wdenkb02744a2003-04-05 00:53:31 +00001002#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001003
1004clean:
1005 find . -type f \
1006 \( -name 'core' -o -name '*.bak' -o -name '*~' \
1007 -o -name '*.o' -o -name '*.a' \) -print \
1008 | xargs rm -f
wdenk8dba0502003-03-31 16:34:49 +00001009 rm -f examples/hello_world examples/timer \
wdenkb02744a2003-04-05 00:53:31 +00001010 examples/eepro100_eeprom examples/sched \
wdenkabda5ca2003-05-31 18:35:21 +00001011 examples/mem_to_mem_idma2intr examples/82559_eeprom
1012
wdenk7ebf7442002-11-02 23:17:16 +00001013 rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
1014 rm -f tools/easylogo/easylogo tools/bmp_logo
1015 rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
wdenk9dfa8d12002-12-08 09:53:23 +00001016 rm -f tools/env/fw_printenv tools/env/fw_setenv
wdenk0893c472003-05-20 14:25:27 +00001017 rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
wdenk4b16c2e2003-11-07 13:42:26 +00001018 rm -f board/trab/trab_fkt board/*/config.tmp
wdenk7ebf7442002-11-02 23:17:16 +00001019
1020clobber: clean
1021 find . -type f \
1022 \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \
1023 -print \
1024 | xargs rm -f
1025 rm -f $(OBJS) *.bak tags TAGS
1026 rm -fr *.*~
wdenk0a658552003-08-05 17:43:17 +00001027 rm -f u-boot u-boot.map $(ALL)
wdenk9dfa8d12002-12-08 09:53:23 +00001028 rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
wdenkb02744a2003-04-05 00:53:31 +00001029 rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
wdenkbb2d9272003-06-25 22:26:29 +00001030 rm -f include/asm/proc include/asm/arch include/asm
wdenk7ebf7442002-11-02 23:17:16 +00001031
1032mrproper \
1033distclean: clobber unconfig
1034
1035backup:
1036 F=`basename $(TOPDIR)` ; cd .. ; \
1037 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
1038
1039#########################################################################