blob: c15efd9c8a4958a2264037cc5ad3dee61f86da99 [file] [log] [blame]
wdenk7ebf7442002-11-02 23:17:16 +00001#
wdenk5e5f9ed2005-04-13 23:15:10 +00002# (C) Copyright 2000-2005
wdenk7ebf7442002-11-02 23:17:16 +00003# 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
Wolfgang Denkf9d77ed2005-08-12 23:23:46 +020032HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
wdenk7ebf7442002-11-02 23:17:16 +000033 sed -e 's/\(cygwin\).*/cygwin/')
34
Wolfgang Denkf9d77ed2005-08-12 23:23:46 +020035export HOSTARCH HOSTOS
wdenk7ebf7442002-11-02 23:17:16 +000036
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
wdenk1d9f4102004-10-09 22:21:29 +000048export ARCH CPU BOARD VENDOR SOC
wdenk7ebf7442002-11-02 23:17:16 +000049# 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)
Eran Libertyf046ccd2005-07-28 10:08:46 -050057CROSS_COMPILE = powerpc-linux-
wdenk7ebf7442002-11-02 23:17:16 +000058endif
59ifeq ($(ARCH),arm)
wdenkdc7c9a12003-03-26 06:55:25 +000060CROSS_COMPILE = arm-linux-
wdenk7ebf7442002-11-02 23:17:16 +000061endif
wdenk2262cfe2002-11-18 00:14:45 +000062ifeq ($(ARCH),i386)
wdenk7a8e9bed2003-05-31 18:35:21 +000063ifeq ($(HOSTARCH),i386)
64CROSS_COMPILE =
65else
66CROSS_COMPILE = i386-linux-
67endif
wdenk2262cfe2002-11-18 00:14:45 +000068endif
wdenk43d96162003-03-06 00:02:04 +000069ifeq ($(ARCH),mips)
70CROSS_COMPILE = mips_4KC-
71endif
wdenk4a551702003-10-08 23:26:14 +000072ifeq ($(ARCH),nios)
73CROSS_COMPILE = nios-elf-
74endif
wdenk5c952cf2004-10-10 21:27:30 +000075ifeq ($(ARCH),nios2)
76CROSS_COMPILE = nios2-elf-
77endif
wdenk4e5ca3e2003-12-08 01:34:36 +000078ifeq ($(ARCH),m68k)
79CROSS_COMPILE = m68k-elf-
80endif
wdenk507bbe32004-04-18 21:13:41 +000081ifeq ($(ARCH),microblaze)
82CROSS_COMPILE = mb-
83endif
wdenk7ebf7442002-11-02 23:17:16 +000084endif
85endif
86
87export CROSS_COMPILE
88
wdenk7ebf7442002-11-02 23:17:16 +000089#########################################################################
90# U-Boot objects....order is important (i.e. start must be first)
91
wdenk9fd5e312003-12-07 23:55:12 +000092OBJS = cpu/$(CPU)/start.o
wdenk2262cfe2002-11-18 00:14:45 +000093ifeq ($(CPU),i386)
wdenk9fd5e312003-12-07 23:55:12 +000094OBJS += cpu/$(CPU)/start16.o
95OBJS += cpu/$(CPU)/reset.o
wdenk2262cfe2002-11-18 00:14:45 +000096endif
wdenk7ebf7442002-11-02 23:17:16 +000097ifeq ($(CPU),ppc4xx)
wdenk9fd5e312003-12-07 23:55:12 +000098OBJS += cpu/$(CPU)/resetvec.o
wdenk7ebf7442002-11-02 23:17:16 +000099endif
Eran Libertyf046ccd2005-07-28 10:08:46 -0500100ifeq ($(CPU),mpc83xx)
101OBJS += cpu/$(CPU)/resetvec.o
102endif
wdenk42d1f032003-10-15 23:53:47 +0000103ifeq ($(CPU),mpc85xx)
104OBJS += cpu/$(CPU)/resetvec.o
105endif
wdenk7ebf7442002-11-02 23:17:16 +0000106
wdenk9fd5e312003-12-07 23:55:12 +0000107LIBS = lib_generic/libgeneric.a
108LIBS += board/$(BOARDDIR)/lib$(BOARD).a
wdenk7ebf7442002-11-02 23:17:16 +0000109LIBS += cpu/$(CPU)/lib$(CPU).a
wdenk1d9f4102004-10-09 22:21:29 +0000110ifdef SOC
111LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
112endif
wdenk7ebf7442002-11-02 23:17:16 +0000113LIBS += lib_$(ARCH)/lib$(ARCH).a
wdenk518e2e12004-03-25 14:59:05 +0000114LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
stroesec419d1d2004-12-16 18:44:40 +0000115 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
wdenk7ebf7442002-11-02 23:17:16 +0000116LIBS += net/libnet.a
117LIBS += disk/libdisk.a
118LIBS += rtc/librtc.a
119LIBS += dtt/libdtt.a
120LIBS += drivers/libdrivers.a
Wolfgang Denkac7eb8a2005-09-14 23:53:32 +0200121LIBS += drivers/nand/libnand.a
wdenk7152b1d2003-09-05 23:19:14 +0000122LIBS += drivers/sk98lin/libsk98lin.a
wdenk7ebf7442002-11-02 23:17:16 +0000123LIBS += post/libpost.a post/cpu/libcpu.a
124LIBS += common/libcommon.a
wdenk9fd5e312003-12-07 23:55:12 +0000125.PHONY : $(LIBS)
wdenka8c7c702003-12-06 19:49:23 +0000126
wdenk4f7cb082003-09-11 23:06:34 +0000127# Add GCC lib
wdenk1a344f22005-02-03 23:00:49 +0000128PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
wdenk3d3befa2004-03-14 15:06:13 +0000129
wdenk7ebf7442002-11-02 23:17:16 +0000130
wdenka8c7c702003-12-06 19:49:23 +0000131# The "tools" are needed early, so put this first
132# Don't include stuff already done in $(LIBS)
133SUBDIRS = tools \
134 examples \
135 post \
136 post/cpu
wdenkb028f712003-12-07 21:39:28 +0000137.PHONY : $(SUBDIRS)
wdenka8c7c702003-12-06 19:49:23 +0000138
wdenk7ebf7442002-11-02 23:17:16 +0000139#########################################################################
wdenkbdccc4f2003-08-05 17:43:17 +0000140#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000141
wdenkbdccc4f2003-08-05 17:43:17 +0000142ALL = u-boot.srec u-boot.bin System.map
wdenk7ebf7442002-11-02 23:17:16 +0000143
wdenkbdccc4f2003-08-05 17:43:17 +0000144all: $(ALL)
wdenk7ebf7442002-11-02 23:17:16 +0000145
wdenk6310eb92005-01-09 21:28:15 +0000146u-boot.hex: u-boot
147 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
148
wdenk7ebf7442002-11-02 23:17:16 +0000149u-boot.srec: u-boot
150 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
151
152u-boot.bin: u-boot
153 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
154
wdenkbdccc4f2003-08-05 17:43:17 +0000155u-boot.img: u-boot.bin
156 ./tools/mkimage -A $(ARCH) -T firmware -C none \
157 -a $(TEXT_BASE) -e 0 \
158 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \
159 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
160 -d $< $@
161
wdenk7ebf7442002-11-02 23:17:16 +0000162u-boot.dis: u-boot
163 $(OBJDUMP) -d $< > $@
164
wdenka8c7c702003-12-06 19:49:23 +0000165u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
wdenk8bde7f72003-06-27 21:31:46 +0000166 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
167 $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
wdenk1a344f22005-02-03 23:00:49 +0000168 --start-group $(LIBS) --end-group $(PLATFORM_LIBS) \
wdenkb2184c32002-11-19 23:01:07 +0000169 -Map u-boot.map -o u-boot
wdenk7ebf7442002-11-02 23:17:16 +0000170
wdenka8c7c702003-12-06 19:49:23 +0000171$(LIBS):
172 $(MAKE) -C `dirname $@`
173
174$(SUBDIRS):
wdenkb028f712003-12-07 21:39:28 +0000175 $(MAKE) -C $@ all
wdenk7ebf7442002-11-02 23:17:16 +0000176
dzu8f713fd2003-08-07 14:20:31 +0000177gdbtools:
178 $(MAKE) -C tools/gdb || exit 1
179
wdenk7ebf7442002-11-02 23:17:16 +0000180depend dep:
181 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
182
183tags:
184 ctags -w `find $(SUBDIRS) include \
wdenkbda6c8a2004-04-15 21:58:11 +0000185 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
186 fs/cramfs fs/fat fs/fdos fs/jffs2 \
187 net disk rtc dtt drivers drivers/sk98lin common \
wdenk7ebf7442002-11-02 23:17:16 +0000188 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
189
190etags:
191 etags -a `find $(SUBDIRS) include \
wdenkeedcd072004-09-08 22:03:11 +0000192 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
193 fs/cramfs fs/fat fs/fdos fs/jffs2 \
194 net disk rtc dtt drivers drivers/sk98lin common \
wdenk7ebf7442002-11-02 23:17:16 +0000195 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
196
197System.map: u-boot
198 @$(NM) $< | \
199 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
200 sort > System.map
201
202#########################################################################
203else
204all install u-boot u-boot.srec depend dep:
205 @echo "System not configured - see README" >&2
206 @ exit 1
207endif
208
209#########################################################################
210
211unconfig:
wdenk17d704e2004-04-10 20:43:50 +0000212 @rm -f include/config.h include/config.mk board/*/config.tmp
wdenk7ebf7442002-11-02 23:17:16 +0000213
214#========================================================================
215# PowerPC
216#========================================================================
wdenk0db5bca2003-03-31 17:27:09 +0000217
218#########################################################################
219## MPC5xx Systems
220#########################################################################
221
wdenk5e5f9ed2005-04-13 23:15:10 +0000222canmb_config: unconfig
223 @./mkconfig -a canmb ppc mpc5xxx canmb
224
wdenk0db5bca2003-03-31 17:27:09 +0000225cmi_mpc5xx_config: unconfig
226 @./mkconfig $(@:_config=) ppc mpc5xx cmi
227
wdenkdb01a2e2004-04-15 23:14:49 +0000228PATI_config: unconfig
wdenkb6e4c402004-01-02 16:05:07 +0000229 @./mkconfig $(@:_config=) ppc mpc5xx pati mpl
230
wdenk7ebf7442002-11-02 23:17:16 +0000231#########################################################################
wdenk945af8d2003-07-16 21:53:01 +0000232## MPC5xxx Systems
233#########################################################################
wdenka87589d2005-06-10 10:00:19 +0000234
Wolfgang Denkdafba162005-08-12 00:22:49 +0200235aev_config: unconfig
236 @./mkconfig -a aev ppc mpc5xxx tqm5200
237
wdenka87589d2005-06-10 10:00:19 +0000238hmi1001_config: unconfig
239 @./mkconfig hmi1001 ppc mpc5xxx hmi1001
240
wdenke35745b2004-04-18 23:32:11 +0000241Lite5200_config \
242Lite5200_LOWBOOT_config \
243Lite5200_LOWBOOT08_config \
244icecube_5200_config \
245icecube_5200_LOWBOOT_config \
246icecube_5200_LOWBOOT08_config \
247icecube_5200_DDR_config \
248icecube_5200_DDR_LOWBOOT_config \
249icecube_5200_DDR_LOWBOOT08_config \
250icecube_5100_config: unconfig
wdenk945af8d2003-07-16 21:53:01 +0000251 @ >include/config.h
wdenk17d704e2004-04-10 20:43:50 +0000252 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
253 { if [ "$(findstring DDR,$@)" ] ; \
254 then echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
255 else echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \
256 fi ; \
wdenk5cf9da42003-11-07 13:42:26 +0000257 echo "... with LOWBOOT configuration" ; \
258 }
259 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
260 { echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
261 echo "... with 8 MB flash only" ; \
wdenk17d704e2004-04-10 20:43:50 +0000262 echo "... with LOWBOOT configuration" ; \
wdenk5cf9da42003-11-07 13:42:26 +0000263 }
wdenkb2001f22003-12-20 22:45:10 +0000264 @[ -z "$(findstring DDR,$@)" ] || \
265 { echo "#define CONFIG_MPC5200_DDR" >>include/config.h ; \
266 echo "... DDR memory revision" ; \
267 }
wdenkd4ca31c2004-01-02 14:00:00 +0000268 @[ -z "$(findstring 5200,$@)" ] || \
269 { echo "#define CONFIG_MPC5200" >>include/config.h ; \
270 echo "... with MPC5200 processor" ; \
271 }
wdenka0f2fe52003-10-28 09:14:21 +0000272 @[ -z "$(findstring 5100,$@)" ] || \
wdenk945af8d2003-07-16 21:53:01 +0000273 { echo "#define CONFIG_MGT5100" >>include/config.h ; \
274 echo "... with MGT5100 processor" ; \
275 }
276 @./mkconfig -a IceCube ppc mpc5xxx icecube
277
wdenk138ff602004-12-16 15:52:40 +0000278inka4x0_config: unconfig
279 @./mkconfig inka4x0 ppc mpc5xxx inka4x0
280
wdenk89394042004-08-04 21:56:49 +0000281PM520_config \
282PM520_DDR_config \
283PM520_ROMBOOT_config \
284PM520_ROMBOOT_DDR_config: unconfig
285 @ >include/config.h
286 @[ -z "$(findstring DDR,$@)" ] || \
287 { echo "#define CONFIG_MPC5200_DDR" >>include/config.h ; \
288 echo "... DDR memory revision" ; \
289 }
290 @[ -z "$(findstring ROMBOOT,$@)" ] || \
291 { echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
292 echo "... booting from 8-bit flash" ; \
293 }
294 @./mkconfig -a PM520 ppc mpc5xxx pm520
295
wdenkd4ca31c2004-01-02 14:00:00 +0000296MINI5200_config \
297EVAL5200_config \
298TOP5200_config: unconfig
299 @ echo "#define CONFIG_$(@:_config=) 1" >include/config.h
300 @./mkconfig -a TOP5200 ppc mpc5xxx top5200 emk
301
wdenk6c7a1402004-07-11 19:17:20 +0000302Total5100_config \
303Total5200_config \
304Total5200_lowboot_config \
305Total5200_Rev2_config \
306Total5200_Rev2_lowboot_config: unconfig
307 @ >include/config.h
308 @[ -z "$(findstring 5100,$@)" ] || \
309 { echo "#define CONFIG_MGT5100" >>include/config.h ; \
310 echo "... with MGT5100 processor" ; \
311 }
312 @[ -z "$(findstring 5200,$@)" ] || \
313 { echo "#define CONFIG_MPC5200" >>include/config.h ; \
314 echo "... with MPC5200 processor" ; \
315 }
316 @[ -n "$(findstring Rev,$@)" ] || \
317 { echo "#define CONFIG_TOTAL5200_REV 1" >>include/config.h ; \
318 echo "... revision 1 board" ; \
319 }
320 @[ -z "$(findstring Rev2_,$@)" ] || \
321 { echo "#define CONFIG_TOTAL5200_REV 2" >>include/config.h ; \
322 echo "... revision 2 board" ; \
323 }
324 @[ -z "$(findstring lowboot_,$@)" ] || \
325 { echo "TEXT_BASE = 0xFE000000" >board/total5200/config.tmp ; \
326 echo "... with lowboot configuration" ; \
327 }
328 @./mkconfig -a Total5200 ppc mpc5xxx total5200
329
wdenk7e6bf352004-12-12 22:06:17 +0000330TQM5200_auto_config \
wdenk56523f12004-07-11 17:40:54 +0000331TQM5200_AA_config \
332TQM5200_AB_config \
333TQM5200_AC_config \
334MiniFAP_config: unconfig
335 @ >include/config.h
wdenk89394042004-08-04 21:56:49 +0000336 @[ -z "$(findstring MiniFAP,$@)" ] || \
wdenk56523f12004-07-11 17:40:54 +0000337 { echo "#define CONFIG_MINIFAP" >>include/config.h ; \
338 echo "#define CONFIG_TQM5200_AC" >>include/config.h ; \
wdenk89394042004-08-04 21:56:49 +0000339 echo "... TQM5200_AC on MiniFAP" ; \
wdenk56523f12004-07-11 17:40:54 +0000340 }
341 @[ -z "$(findstring AA,$@)" ] || \
342 { echo "#define CONFIG_TQM5200_AA" >>include/config.h ; \
343 echo "... with 4 MB Flash, 16 MB SDRAM, 32 kB EEPROM" ; \
344 }
345 @[ -z "$(findstring AB,$@)" ] || \
346 { echo "#define CONFIG_TQM5200_AB" >>include/config.h ; \
347 echo "... with 64 MB Flash, 64 MB SDRAM, 32 kB EEPROM, 512 kB SRAM" ; \
wdenk31a64922004-08-28 21:09:14 +0000348 echo "... with Graphics Controller"; \
wdenk56523f12004-07-11 17:40:54 +0000349 }
350 @[ -z "$(findstring AC,$@)" ] || \
351 { echo "#define CONFIG_TQM5200_AC" >>include/config.h ; \
352 echo "... with 4 MB Flash, 128 MB SDRAM" ; \
wdenk31a64922004-08-28 21:09:14 +0000353 echo "... with Graphics Controller"; \
wdenk56523f12004-07-11 17:40:54 +0000354 }
wdenk7e6bf352004-12-12 22:06:17 +0000355 @[ -z "$(findstring auto,$@)" ] || \
356 { echo "#define CONFIG_CS_AUTOCONF" >>include/config.h ; \
357 echo "... with automatic CS configuration" ; \
358 }
wdenk56523f12004-07-11 17:40:54 +0000359 @./mkconfig -a TQM5200 ppc mpc5xxx tqm5200
360
Wolfgang Denkeece1592005-08-10 11:03:05 +0200361spieval_config: unconfig
362 echo "#define CONFIG_CS_AUTOCONF">>include/config.h
363 echo "... with automatic CS configuration"
364 @./mkconfig -a spieval ppc mpc5xxx tqm5200
365
wdenk945af8d2003-07-16 21:53:01 +0000366#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000367## MPC8xx Systems
368#########################################################################
369
wdenk2d24a3a2004-06-09 21:50:45 +0000370Adder_config \
371Adder87x_config \
wdenk26238132004-07-09 22:51:01 +0000372AdderII_config \
wdenk2d24a3a2004-06-09 21:50:45 +0000373 : unconfig
wdenk26238132004-07-09 22:51:01 +0000374 $(if $(findstring AdderII,$@), \
wdenk2d24a3a2004-06-09 21:50:45 +0000375 @echo "#define CONFIG_MPC852T" > include/config.h)
376 @./mkconfig -a Adder ppc mpc8xx adder
377
wdenk180d3f72004-01-04 16:28:35 +0000378ADS860_config \
wdenk180d3f72004-01-04 16:28:35 +0000379FADS823_config \
380FADS850SAR_config \
381MPC86xADS_config \
wdenk11142572004-06-06 21:35:06 +0000382MPC885ADS_config \
wdenk180d3f72004-01-04 16:28:35 +0000383FADS860T_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000384 @./mkconfig $(@:_config=) ppc mpc8xx fads
385
386AMX860_config : unconfig
387 @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
388
389c2mon_config: unconfig
390 @./mkconfig $(@:_config=) ppc mpc8xx c2mon
391
392CCM_config: unconfig
393 @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
394
395cogent_mpc8xx_config: unconfig
396 @./mkconfig $(@:_config=) ppc mpc8xx cogent
397
wdenk3bac3512003-03-12 10:41:04 +0000398ELPT860_config: unconfig
399 @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
400
wdenk7ebf7442002-11-02 23:17:16 +0000401ESTEEM192E_config: unconfig
402 @./mkconfig $(@:_config=) ppc mpc8xx esteem192e
403
404ETX094_config : unconfig
405 @./mkconfig $(@:_config=) ppc mpc8xx etx094
406
wdenk7ebf7442002-11-02 23:17:16 +0000407FLAGADM_config: unconfig
408 @./mkconfig $(@:_config=) ppc mpc8xx flagadm
409
wdenk7aa78612003-05-03 15:50:43 +0000410xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
411
412GEN860T_SC_config \
wdenk7ebf7442002-11-02 23:17:16 +0000413GEN860T_config: unconfig
wdenk7aa78612003-05-03 15:50:43 +0000414 @ >include/config.h
415 @[ -z "$(findstring _SC,$@)" ] || \
416 { echo "#define CONFIG_SC" >>include/config.h ; \
417 echo "With reduced H/W feature set (SC)..." ; \
418 }
419 @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
wdenk7ebf7442002-11-02 23:17:16 +0000420
421GENIETV_config: unconfig
422 @./mkconfig $(@:_config=) ppc mpc8xx genietv
423
424GTH_config: unconfig
425 @./mkconfig $(@:_config=) ppc mpc8xx gth
426
427hermes_config : unconfig
428 @./mkconfig $(@:_config=) ppc mpc8xx hermes
429
wdenkc40b2952004-03-13 23:29:43 +0000430HMI10_config : unconfig
431 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
432
wdenk7ebf7442002-11-02 23:17:16 +0000433IAD210_config: unconfig
434 @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
435
436xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
437
438ICU862_100MHz_config \
439ICU862_config: unconfig
440 @ >include/config.h
441 @[ -z "$(findstring _100MHz,$@)" ] || \
442 { echo "#define CONFIG_100MHz" >>include/config.h ; \
443 echo "... with 100MHz system clock" ; \
444 }
445 @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
446
447IP860_config : unconfig
448 @./mkconfig $(@:_config=) ppc mpc8xx ip860
449
450IVML24_256_config \
451IVML24_128_config \
452IVML24_config: unconfig
453 @ >include/config.h
454 @[ -z "$(findstring IVML24_config,$@)" ] || \
455 { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \
456 }
457 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
458 { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \
459 }
460 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
461 { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \
462 }
463 @./mkconfig -a IVML24 ppc mpc8xx ivm
464
465IVMS8_256_config \
466IVMS8_128_config \
467IVMS8_config: unconfig
468 @ >include/config.h
469 @[ -z "$(findstring IVMS8_config,$@)" ] || \
470 { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \
471 }
472 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
473 { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \
474 }
475 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
476 { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \
477 }
478 @./mkconfig -a IVMS8 ppc mpc8xx ivm
479
wdenk56f94be2002-11-05 16:35:14 +0000480KUP4K_config : unconfig
wdenk0608e042004-03-25 19:29:38 +0000481 @./mkconfig $(@:_config=) ppc mpc8xx kup4k kup
482
483KUP4X_config : unconfig
484 @./mkconfig $(@:_config=) ppc mpc8xx kup4x kup
wdenk56f94be2002-11-05 16:35:14 +0000485
wdenk7ebf7442002-11-02 23:17:16 +0000486LANTEC_config : unconfig
487 @./mkconfig $(@:_config=) ppc mpc8xx lantec
488
489lwmon_config: unconfig
490 @./mkconfig $(@:_config=) ppc mpc8xx lwmon
491
492MBX_config \
493MBX860T_config: unconfig
494 @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
495
496MHPC_config: unconfig
497 @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
498
499MVS1_config : unconfig
500 @./mkconfig $(@:_config=) ppc mpc8xx mvs1
501
wdenk993cad92003-06-26 22:04:09 +0000502xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
503
504NETVIA_V2_config \
wdenk7ebf7442002-11-02 23:17:16 +0000505NETVIA_config: unconfig
wdenk993cad92003-06-26 22:04:09 +0000506 @ >include/config.h
507 @[ -z "$(findstring NETVIA_config,$@)" ] || \
508 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
509 echo "... Version 1" ; \
510 }
511 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
512 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
513 echo "... Version 2" ; \
514 }
515 @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
wdenk7ebf7442002-11-02 23:17:16 +0000516
wdenkc26e4542004-04-18 10:13:26 +0000517xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
518
519NETPHONE_V2_config \
wdenk04a85b32004-04-15 18:22:41 +0000520NETPHONE_config: unconfig
wdenkc26e4542004-04-18 10:13:26 +0000521 @ >include/config.h
522 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
523 { echo "#define CONFIG_NETPHONE_VERSION 1" >>include/config.h ; \
524 }
525 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
526 { echo "#define CONFIG_NETPHONE_VERSION 2" >>include/config.h ; \
527 }
528 @./mkconfig -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
wdenk04a85b32004-04-15 18:22:41 +0000529
wdenk79fa88f2004-06-07 23:46:25 +0000530xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
wdenk04a85b32004-04-15 18:22:41 +0000531
wdenk79fa88f2004-06-07 23:46:25 +0000532NETTA_ISDN_6412_SWAPHOOK_config \
533NETTA_ISDN_SWAPHOOK_config \
534NETTA_6412_SWAPHOOK_config \
535NETTA_SWAPHOOK_config \
536NETTA_ISDN_6412_config \
wdenk04a85b32004-04-15 18:22:41 +0000537NETTA_ISDN_config \
wdenk79fa88f2004-06-07 23:46:25 +0000538NETTA_6412_config \
wdenk04a85b32004-04-15 18:22:41 +0000539NETTA_config: unconfig
540 @ >include/config.h
wdenk79fa88f2004-06-07 23:46:25 +0000541 @[ -z "$(findstring ISDN_,$@)" ] || \
wdenk04a85b32004-04-15 18:22:41 +0000542 { echo "#define CONFIG_NETTA_ISDN 1" >>include/config.h ; \
543 }
wdenk79fa88f2004-06-07 23:46:25 +0000544 @[ -n "$(findstring ISDN_,$@)" ] || \
545 { echo "#undef CONFIG_NETTA_ISDN" >>include/config.h ; \
546 }
547 @[ -z "$(findstring 6412_,$@)" ] || \
548 { echo "#define CONFIG_NETTA_6412 1" >>include/config.h ; \
549 }
550 @[ -n "$(findstring 6412_,$@)" ] || \
551 { echo "#undef CONFIG_NETTA_6412" >>include/config.h ; \
552 }
553 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
554 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>include/config.h ; \
555 }
556 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
557 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>include/config.h ; \
558 }
wdenk04a85b32004-04-15 18:22:41 +0000559 @./mkconfig -a $(call xtract_NETTA,$@) ppc mpc8xx netta
560
wdenk79fa88f2004-06-07 23:46:25 +0000561xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
562
563NETTA2_V2_config \
564NETTA2_config: unconfig
565 @ >include/config.h
566 @[ -z "$(findstring NETTA2_config,$@)" ] || \
567 { echo "#define CONFIG_NETTA2_VERSION 1" >>include/config.h ; \
568 }
569 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
570 { echo "#define CONFIG_NETTA2_VERSION 2" >>include/config.h ; \
571 }
572 @./mkconfig -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
573
wdenk7ca202f2004-08-28 22:45:57 +0000574NC650_config: unconfig
575 @./mkconfig $(@:_config=) ppc mpc8xx nc650
576
wdenk7ebf7442002-11-02 23:17:16 +0000577NX823_config: unconfig
578 @./mkconfig $(@:_config=) ppc mpc8xx nx823
579
580pcu_e_config: unconfig
581 @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
582
wdenk3bbc8992003-12-07 22:27:15 +0000583QS850_config: unconfig
584 @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
585
586QS823_config: unconfig
587 @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
588
589QS860T_config: unconfig
590 @./mkconfig $(@:_config=) ppc mpc8xx qs860t snmc
591
wdenkda93ed82004-09-29 11:02:56 +0000592quantum_config: unconfig
593 @./mkconfig $(@:_config=) ppc mpc8xx quantum
594
wdenk7ebf7442002-11-02 23:17:16 +0000595R360MPI_config: unconfig
596 @./mkconfig $(@:_config=) ppc mpc8xx r360mpi
597
wdenk682011f2003-06-03 23:54:09 +0000598RBC823_config: unconfig
599 @./mkconfig $(@:_config=) ppc mpc8xx rbc823
600
wdenk7ebf7442002-11-02 23:17:16 +0000601RPXClassic_config: unconfig
602 @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
603
604RPXlite_config: unconfig
605 @./mkconfig $(@:_config=) ppc mpc8xx RPXlite
606
wdenke63c8ee2004-06-09 21:04:48 +0000607RPXlite_DW_64_config \
608RPXlite_DW_LCD_config \
609RPXlite_DW_64_LCD_config \
610RPXlite_DW_NVRAM_config \
611RPXlite_DW_NVRAM_64_config \
612RPXlite_DW_NVRAM_LCD_config \
613RPXlite_DW_NVRAM_64_LCD_config \
614RPXlite_DW_config: unconfig
615 @ >include/config.h
616 @[ -z "$(findstring _64,$@)" ] || \
617 { echo "#define RPXlite_64MHz" >>include/config.h ; \
618 echo "... with 64MHz system clock ..."; \
619 }
620 @[ -z "$(findstring _LCD,$@)" ] || \
621 { echo "#define CONFIG_LCD" >>include/config.h ; \
622 echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \
623 echo "... with LCD display ..."; \
624 }
625 @[ -z "$(findstring _NVRAM,$@)" ] || \
626 { echo "#define CFG_ENV_IS_IN_NVRAM" >>include/config.h ; \
627 echo "... with ENV in NVRAM ..."; \
628 }
629 @./mkconfig -a RPXlite_DW ppc mpc8xx RPXlite_dw
630
wdenk73a8b272003-06-05 19:27:42 +0000631rmu_config: unconfig
632 @./mkconfig $(@:_config=) ppc mpc8xx rmu
633
wdenk7ebf7442002-11-02 23:17:16 +0000634RRvision_config: unconfig
635 @./mkconfig $(@:_config=) ppc mpc8xx RRvision
636
637RRvision_LCD_config: unconfig
638 @echo "#define CONFIG_LCD" >include/config.h
639 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
640 @./mkconfig -a RRvision ppc mpc8xx RRvision
641
642SM850_config : unconfig
643 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
644
645SPD823TS_config: unconfig
646 @./mkconfig $(@:_config=) ppc mpc8xx spd8xx
647
Wolfgang Denk6bdf4302005-08-15 15:55:00 +0200648stxxtc_config: unconfig
649 @./mkconfig $(@:_config=) ppc mpc8xx stxxtc
650
wdenkdc7c9a12003-03-26 06:55:25 +0000651svm_sc8xx_config: unconfig
652 @ >include/config.h
653 @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
654
wdenk7ebf7442002-11-02 23:17:16 +0000655SXNI855T_config: unconfig
656 @./mkconfig $(@:_config=) ppc mpc8xx sixnet
657
wdenkdb2f721f2003-03-06 00:58:30 +0000658# EMK MPC8xx based modules
659TOP860_config: unconfig
660 @./mkconfig $(@:_config=) ppc mpc8xx top860 emk
661
wdenk7ebf7442002-11-02 23:17:16 +0000662# Play some tricks for configuration selection
wdenke9132ea2004-04-24 23:23:30 +0000663# Only 855 and 860 boards may come with FEC
664# and only 823 boards may have LCD support
665xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
wdenk7ebf7442002-11-02 23:17:16 +0000666
667FPS850L_config \
wdenk384ae022002-11-05 00:17:55 +0000668FPS860L_config \
wdenkf12e5682003-07-07 20:07:54 +0000669NSCU_config \
wdenk7ebf7442002-11-02 23:17:16 +0000670TQM823L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000671TQM823L_LCD_config \
wdenk7ebf7442002-11-02 23:17:16 +0000672TQM850L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000673TQM855L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000674TQM860L_config \
wdenkd126bfb2003-04-10 11:18:18 +0000675TQM862L_config \
wdenkae3af052003-08-07 22:18:11 +0000676TQM823M_config \
wdenkae3af052003-08-07 22:18:11 +0000677TQM850M_config \
wdenkf12e5682003-07-07 20:07:54 +0000678TQM855M_config \
wdenkf12e5682003-07-07 20:07:54 +0000679TQM860M_config \
wdenkf12e5682003-07-07 20:07:54 +0000680TQM862M_config \
wdenkc178d3d2004-01-24 20:25:54 +0000681TQM866M_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000682 @ >include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000683 @[ -z "$(findstring _LCD,$@)" ] || \
684 { echo "#define CONFIG_LCD" >>include/config.h ; \
wdenkfd3103b2003-11-25 16:55:19 +0000685 echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +0000686 echo "... with LCD display" ; \
687 }
688 @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
689
690TTTech_config: unconfig
691 @echo "#define CONFIG_LCD" >include/config.h
692 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
693 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
694
wdenkec0aee72004-12-19 09:58:11 +0000695uc100_config : unconfig
wdenkf7d15722004-12-18 22:35:43 +0000696 @./mkconfig $(@:_config=) ppc mpc8xx uc100
697
wdenk608c9142003-01-13 23:54:46 +0000698v37_config: unconfig
699 @echo "#define CONFIG_LCD" >include/config.h
700 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
701 @./mkconfig $(@:_config=) ppc mpc8xx v37
702
dzu91e940d2003-09-25 22:32:40 +0000703wtk_config: unconfig
704 @echo "#define CONFIG_LCD" >include/config.h
705 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
706 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
707
wdenk7ebf7442002-11-02 23:17:16 +0000708#########################################################################
709## PPC4xx Systems
710#########################################################################
wdenke55ca7e2004-07-01 21:40:08 +0000711xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
wdenk7ebf7442002-11-02 23:17:16 +0000712
713ADCIOP_config: unconfig
714 @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
715
stroesec419d1d2004-12-16 18:44:40 +0000716APC405_config: unconfig
717 @./mkconfig $(@:_config=) ppc ppc4xx apc405 esd
718
wdenk7ebf7442002-11-02 23:17:16 +0000719AR405_config: unconfig
720 @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
721
stroese549826e2003-05-23 11:41:44 +0000722ASH405_config: unconfig
723 @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
724
Stefan Roese8a316c92005-08-01 16:49:12 +0200725bamboo_config: unconfig
726 @./mkconfig $(@:_config=) ppc ppc4xx bamboo amcc
727
728bubinga_config: unconfig
729 @./mkconfig $(@:_config=) ppc ppc4xx bubinga amcc
stroese549826e2003-05-23 11:41:44 +0000730
wdenk7ebf7442002-11-02 23:17:16 +0000731CANBT_config: unconfig
732 @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
733
wdenk1d6f9722004-09-09 17:44:35 +0000734CATcenter_config \
735CATcenter_25_config \
736CATcenter_33_config: unconfig
wdenk10767cc2004-05-13 13:23:58 +0000737 @ echo "/* CATcenter uses PPChameleon Model ME */" > include/config.h
738 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> include/config.h
wdenk1d6f9722004-09-09 17:44:35 +0000739 @[ -z "$(findstring _25,$@)" ] || \
740 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
741 echo "SysClk = 25MHz" ; \
742 }
743 @[ -z "$(findstring _33,$@)" ] || \
744 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
745 echo "SysClk = 33MHz" ; \
746 }
wdenk10767cc2004-05-13 13:23:58 +0000747 @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
748
stroese549826e2003-05-23 11:41:44 +0000749CPCI405_config \
750CPCI4052_config \
stroesec419d1d2004-12-16 18:44:40 +0000751CPCI405DT_config \
stroese549826e2003-05-23 11:41:44 +0000752CPCI405AB_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000753 @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
754 @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
755
756CPCI440_config: unconfig
757 @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
758
759CPCIISER4_config: unconfig
760 @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
761
wdenkdb01a2e2004-04-15 23:14:49 +0000762CRAYL1_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000763 @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
764
wdenkcd0a9de2004-02-23 20:48:38 +0000765csb272_config: unconfig
766 @./mkconfig $(@:_config=) ppc ppc4xx csb272
767
wdenkaa245092004-06-09 12:47:02 +0000768csb472_config: unconfig
769 @./mkconfig $(@:_config=) ppc ppc4xx csb472
770
wdenk7ebf7442002-11-02 23:17:16 +0000771DASA_SIM_config: unconfig
772 @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
773
stroese72cd5aa2003-09-12 08:57:15 +0000774DP405_config: unconfig
775 @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
776
wdenk7ebf7442002-11-02 23:17:16 +0000777DU405_config: unconfig
778 @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
779
Stefan Roese8a316c92005-08-01 16:49:12 +0200780ebony_config: unconfig
781 @./mkconfig $(@:_config=) ppc ppc4xx ebony amcc
wdenk7ebf7442002-11-02 23:17:16 +0000782
wdenkdb01a2e2004-04-15 23:14:49 +0000783ERIC_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000784 @./mkconfig $(@:_config=) ppc ppc4xx eric
785
wdenkdb01a2e2004-04-15 23:14:49 +0000786EXBITGEN_config: unconfig
wdenkd1cbe852003-06-28 17:24:46 +0000787 @./mkconfig $(@:_config=) ppc ppc4xx exbitgen
788
stroesec419d1d2004-12-16 18:44:40 +0000789G2000_config: unconfig
790 @./mkconfig $(@:_config=) ppc ppc4xx g2000
791
792HH405_config: unconfig
793 @./mkconfig $(@:_config=) ppc ppc4xx hh405 esd
794
stroese72cd5aa2003-09-12 08:57:15 +0000795HUB405_config: unconfig
796 @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
797
wdenkdb01a2e2004-04-15 23:14:49 +0000798JSE_config: unconfig
799 @./mkconfig $(@:_config=) ppc ppc4xx jse
800
Stefan Roeseb79316f2005-08-15 12:31:23 +0200801KAREF_config: unconfig
802 @./mkconfig $(@:_config=) ppc ppc4xx karef sandburst
803
804METROBOX_config: unconfig
805 @./mkconfig $(@:_config=) ppc ppc4xx metrobox sandburst
806
wdenkdb01a2e2004-04-15 23:14:49 +0000807MIP405_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000808 @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
809
wdenkdb01a2e2004-04-15 23:14:49 +0000810MIP405T_config: unconfig
wdenkf3e0de62003-06-04 15:05:30 +0000811 @echo "#define CONFIG_MIP405T" >include/config.h
812 @echo "Enable subset config for MIP405T"
813 @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
814
wdenkdb01a2e2004-04-15 23:14:49 +0000815ML2_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000816 @./mkconfig $(@:_config=) ppc ppc4xx ml2
817
wdenkdb01a2e2004-04-15 23:14:49 +0000818ml300_config: unconfig
wdenk028ab6b2004-02-23 23:54:43 +0000819 @./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx
820
Stefan Roese8a316c92005-08-01 16:49:12 +0200821ocotea_config: unconfig
822 @./mkconfig $(@:_config=) ppc ppc4xx ocotea amcc
wdenk0e6d7982004-03-14 00:07:33 +0000823
wdenk7ebf7442002-11-02 23:17:16 +0000824OCRTC_config \
825ORSG_config: unconfig
826 @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
827
828PCI405_config: unconfig
829 @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
830
wdenkdb01a2e2004-04-15 23:14:49 +0000831PIP405_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000832 @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
833
stroese72cd5aa2003-09-12 08:57:15 +0000834PLU405_config: unconfig
835 @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
836
stroese549826e2003-05-23 11:41:44 +0000837PMC405_config: unconfig
838 @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
839
wdenk281e00a2004-08-01 22:48:16 +0000840PPChameleonEVB_config \
wdenke55ca7e2004-07-01 21:40:08 +0000841PPChameleonEVB_BA_25_config \
842PPChameleonEVB_ME_25_config \
843PPChameleonEVB_HI_25_config \
844PPChameleonEVB_BA_33_config \
845PPChameleonEVB_ME_33_config \
846PPChameleonEVB_HI_33_config: unconfig
wdenkfbe4b5c2003-10-06 21:55:32 +0000847 @ >include/config.h
wdenk1d6f9722004-09-09 17:44:35 +0000848 @[ -z "$(findstring EVB_BA,$@)" ] || \
wdenkfbe4b5c2003-10-06 21:55:32 +0000849 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
850 echo "... BASIC model" ; \
851 }
wdenk1d6f9722004-09-09 17:44:35 +0000852 @[ -z "$(findstring EVB_ME,$@)" ] || \
wdenkfbe4b5c2003-10-06 21:55:32 +0000853 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
854 echo "... MEDIUM model" ; \
855 }
wdenk1d6f9722004-09-09 17:44:35 +0000856 @[ -z "$(findstring EVB_HI,$@)" ] || \
wdenkfbe4b5c2003-10-06 21:55:32 +0000857 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
858 echo "... HIGH-END model" ; \
859 }
wdenke55ca7e2004-07-01 21:40:08 +0000860 @[ -z "$(findstring _25,$@)" ] || \
861 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
wdenk1d6f9722004-09-09 17:44:35 +0000862 echo "SysClk = 25MHz" ; \
wdenke55ca7e2004-07-01 21:40:08 +0000863 }
864 @[ -z "$(findstring _33,$@)" ] || \
865 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
wdenk1d6f9722004-09-09 17:44:35 +0000866 echo "SysClk = 33MHz" ; \
wdenke55ca7e2004-07-01 21:40:08 +0000867 }
wdenkfbe4b5c2003-10-06 21:55:32 +0000868 @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
wdenk12f34242003-09-02 22:48:03 +0000869
wdenk652a10c2005-01-09 23:48:14 +0000870sbc405_config: unconfig
871 @./mkconfig $(@:_config=) ppc ppc4xx sbc405
872
Stefan Roese8a316c92005-08-01 16:49:12 +0200873sycamore_config: unconfig
874 @echo "Configuring for sycamore board as subset of walnut..."
875 @./mkconfig -a walnut ppc ppc4xx walnut amcc
876
stroese72cd5aa2003-09-12 08:57:15 +0000877VOH405_config: unconfig
878 @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
879
stroesec419d1d2004-12-16 18:44:40 +0000880VOM405_config: unconfig
881 @./mkconfig $(@:_config=) ppc ppc4xx vom405 esd
882
wdenk7ebf7442002-11-02 23:17:16 +0000883W7OLMC_config \
884W7OLMG_config: unconfig
885 @./mkconfig $(@:_config=) ppc ppc4xx w7o
886
Stefan Roese8a316c92005-08-01 16:49:12 +0200887walnut_config: unconfig
888 @./mkconfig $(@:_config=) ppc ppc4xx walnut amcc
wdenk7ebf7442002-11-02 23:17:16 +0000889
stroesec419d1d2004-12-16 18:44:40 +0000890WUH405_config: unconfig
891 @./mkconfig $(@:_config=) ppc ppc4xx wuh405 esd
892
wdenkdb01a2e2004-04-15 23:14:49 +0000893XPEDITE1K_config: unconfig
wdenkba56f622004-02-06 23:19:44 +0000894 @./mkconfig $(@:_config=) ppc ppc4xx xpedite1k
895
Stefan Roese8a316c92005-08-01 16:49:12 +0200896yosemite_config: unconfig
897 @./mkconfig $(@:_config=) ppc ppc4xx yosemite amcc
898
899yellowstone_config: unconfig
900 @./mkconfig $(@:_config=) ppc ppc4xx yellowstone amcc
901
wdenk7ebf7442002-11-02 23:17:16 +0000902#########################################################################
wdenk983fda82004-10-28 00:09:35 +0000903## MPC8220 Systems
904#########################################################################
Wolfgang Denkdc17fb62005-08-03 22:32:02 +0200905
906Alaska8220_config \
907Yukon8220_config: unconfig
wdenk983fda82004-10-28 00:09:35 +0000908 @./mkconfig $(@:_config=) ppc mpc8220 alaska
909
wdenk12b43d52005-04-05 21:57:18 +0000910sorcery_config: unconfig
911 @./mkconfig $(@:_config=) ppc mpc8220 sorcery
912
wdenk983fda82004-10-28 00:09:35 +0000913#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000914## MPC824x Systems
915#########################################################################
wdenkefa329c2004-03-23 20:18:25 +0000916xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
wdenk3bac3512003-03-12 10:41:04 +0000917
wdenk03329902003-06-20 22:36:30 +0000918A3000_config: unconfig
919 @./mkconfig $(@:_config=) ppc mpc824x a3000
920
wdenk7ebf7442002-11-02 23:17:16 +0000921BMW_config: unconfig
922 @./mkconfig $(@:_config=) ppc mpc824x bmw
923
wdenk3bac3512003-03-12 10:41:04 +0000924CPC45_config \
925CPC45_ROMBOOT_config: unconfig
926 @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
927 @cd ./include ; \
928 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
929 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
930 echo "... booting from 8-bit flash" ; \
931 else \
932 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
933 echo "... booting from 64-bit flash" ; \
934 fi; \
935 echo "export CONFIG_BOOT_ROM" >> config.mk;
936
wdenk7ebf7442002-11-02 23:17:16 +0000937CU824_config: unconfig
938 @./mkconfig $(@:_config=) ppc mpc824x cu824
939
wdenk7abf0c52004-04-18 21:45:42 +0000940debris_config: unconfig
941 @./mkconfig $(@:_config=) ppc mpc824x debris etin
942
wdenk80885a92004-02-26 23:46:20 +0000943eXalion_config: unconfig
944 @./mkconfig $(@:_config=) ppc mpc824x eXalion
945
wdenk756f5862005-04-03 15:51:42 +0000946HIDDEN_DRAGON_config: unconfig
947 @./mkconfig $(@:_config=) ppc mpc824x hidden_dragon
948
wdenk7ebf7442002-11-02 23:17:16 +0000949MOUSSE_config: unconfig
950 @./mkconfig $(@:_config=) ppc mpc824x mousse
951
952MUSENKI_config: unconfig
953 @./mkconfig $(@:_config=) ppc mpc824x musenki
954
wdenkb4676a22003-12-07 19:24:00 +0000955MVBLUE_config: unconfig
956 @./mkconfig $(@:_config=) ppc mpc824x mvblue
957
wdenk7ebf7442002-11-02 23:17:16 +0000958OXC_config: unconfig
959 @./mkconfig $(@:_config=) ppc mpc824x oxc
960
961PN62_config: unconfig
962 @./mkconfig $(@:_config=) ppc mpc824x pn62
963
964Sandpoint8240_config: unconfig
965 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
966
967Sandpoint8245_config: unconfig
968 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
969
wdenk466b7412004-07-10 22:35:59 +0000970sbc8240_config: unconfig
971 @./mkconfig $(@:_config=) ppc mpc824x sbc8240
972
wdenkd1cbe852003-06-28 17:24:46 +0000973SL8245_config: unconfig
974 @./mkconfig $(@:_config=) ppc mpc824x sl8245
975
wdenk7ebf7442002-11-02 23:17:16 +0000976utx8245_config: unconfig
977 @./mkconfig $(@:_config=) ppc mpc824x utx8245
978
wdenka562e1b2005-01-09 18:21:42 +0000979cobra5272_config : unconfig
980 @./mkconfig $(@:_config=) m68k mcf52x2 cobra5272
981
wdenk7ebf7442002-11-02 23:17:16 +0000982#########################################################################
983## MPC8260 Systems
984#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000985
wdenk54387ac2003-10-08 22:45:44 +0000986atc_config: unconfig
987 @./mkconfig $(@:_config=) ppc mpc8260 atc
988
wdenk7ebf7442002-11-02 23:17:16 +0000989cogent_mpc8260_config: unconfig
990 @./mkconfig $(@:_config=) ppc mpc8260 cogent
991
992CPU86_config \
993CPU86_ROMBOOT_config: unconfig
994 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
995 @cd ./include ; \
996 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
997 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
998 echo "... booting from 8-bit flash" ; \
999 else \
1000 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1001 echo "... booting from 64-bit flash" ; \
1002 fi; \
1003 echo "export CONFIG_BOOT_ROM" >> config.mk;
1004
wdenk384cc682005-04-03 22:35:21 +00001005CPU87_config \
1006CPU87_ROMBOOT_config: unconfig
1007 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu87
1008 @cd ./include ; \
1009 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1010 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1011 echo "... booting from 8-bit flash" ; \
1012 else \
1013 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1014 echo "... booting from 64-bit flash" ; \
1015 fi; \
1016 echo "export CONFIG_BOOT_ROM" >> config.mk;
1017
Wolfgang Denkf901a832005-08-06 01:42:58 +02001018ep8248_config \
1019ep8248E_config : unconfig
1020 @./mkconfig ep8248 ppc mpc8260 ep8248
1021
wdenk7ebf7442002-11-02 23:17:16 +00001022ep8260_config: unconfig
1023 @./mkconfig $(@:_config=) ppc mpc8260 ep8260
1024
1025gw8260_config: unconfig
1026 @./mkconfig $(@:_config=) ppc mpc8260 gw8260
1027
1028hymod_config: unconfig
1029 @./mkconfig $(@:_config=) ppc mpc8260 hymod
1030
wdenk9dd41a72005-05-12 22:48:09 +00001031IDS8247_config: unconfig
1032 @./mkconfig $(@:_config=) ppc mpc8260 ids8247
1033
wdenk7ebf7442002-11-02 23:17:16 +00001034IPHASE4539_config: unconfig
1035 @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
1036
wdenkc3c7f862004-06-09 14:47:54 +00001037ISPAN_config \
1038ISPAN_REVB_config: unconfig
1039 @if [ "$(findstring _REVB_,$@)" ] ; then \
1040 echo "#define CFG_REV_B" > include/config.h ; \
1041 fi
1042 @./mkconfig -a ISPAN ppc mpc8260 ispan
1043
wdenk04a85b32004-04-15 18:22:41 +00001044MPC8260ADS_config \
wdenk901787d2005-04-03 23:22:21 +00001045MPC8260ADS_lowboot_config \
wdenk04a85b32004-04-15 18:22:41 +00001046MPC8260ADS_33MHz_config \
wdenk901787d2005-04-03 23:22:21 +00001047MPC8260ADS_33MHz_lowboot_config \
wdenk04a85b32004-04-15 18:22:41 +00001048MPC8260ADS_40MHz_config \
wdenk901787d2005-04-03 23:22:21 +00001049MPC8260ADS_40MHz_lowboot_config \
wdenk04a85b32004-04-15 18:22:41 +00001050MPC8272ADS_config \
wdenk901787d2005-04-03 23:22:21 +00001051MPC8272ADS_lowboot_config \
wdenk04a85b32004-04-15 18:22:41 +00001052PQ2FADS_config \
wdenk901787d2005-04-03 23:22:21 +00001053PQ2FADS_lowboot_config \
wdenk04a85b32004-04-15 18:22:41 +00001054PQ2FADS-VR_config \
wdenk901787d2005-04-03 23:22:21 +00001055PQ2FADS-VR_lowboot_config \
wdenk04a85b32004-04-15 18:22:41 +00001056PQ2FADS-ZU_config \
wdenk901787d2005-04-03 23:22:21 +00001057PQ2FADS-ZU_lowboot_config \
wdenk04a85b32004-04-15 18:22:41 +00001058PQ2FADS-ZU_66MHz_config \
wdenk901787d2005-04-03 23:22:21 +00001059PQ2FADS-ZU_66MHz_lowboot_config \
wdenk04a85b32004-04-15 18:22:41 +00001060 : unconfig
1061 $(if $(findstring PQ2FADS,$@), \
1062 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > include/config.h, \
1063 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > include/config.h)
1064 $(if $(findstring MHz,$@), \
1065 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> include/config.h, \
1066 $(if $(findstring VR,$@), \
1067 @echo "#define CONFIG_8260_CLKIN 66000000" >> include/config.h))
wdenk901787d2005-04-03 23:22:21 +00001068 @[ -z "$(findstring lowboot_,$@)" ] || \
1069 { echo "TEXT_BASE = 0xFF800000" >board/mpc8260ads/config.tmp ; \
1070 echo "... with lowboot configuration" ; \
1071 }
wdenk04a85b32004-04-15 18:22:41 +00001072 @./mkconfig -a MPC8260ADS ppc mpc8260 mpc8260ads
wdenk7ebf7442002-11-02 23:17:16 +00001073
wdenkdb2f721f2003-03-06 00:58:30 +00001074MPC8266ADS_config: unconfig
1075 @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
1076
wdenkefa329c2004-03-23 20:18:25 +00001077# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
wdenk10f67012003-03-25 18:06:06 +00001078PM825_config \
wdenkefa329c2004-03-23 20:18:25 +00001079PM825_ROMBOOT_config \
1080PM825_BIGFLASH_config \
1081PM825_ROMBOOT_BIGFLASH_config \
wdenk7ebf7442002-11-02 23:17:16 +00001082PM826_config \
wdenkefa329c2004-03-23 20:18:25 +00001083PM826_ROMBOOT_config \
1084PM826_BIGFLASH_config \
1085PM826_ROMBOOT_BIGFLASH_config: unconfig
1086 @if [ "$(findstring PM825_,$@)" ] ; then \
1087 echo "#define CONFIG_PCI" >include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +00001088 else \
wdenkefa329c2004-03-23 20:18:25 +00001089 >include/config.h ; \
1090 fi
1091 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1092 echo "... booting from 8-bit flash" ; \
1093 echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
1094 echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
1095 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1096 echo "... with 32 MB Flash" ; \
1097 echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
1098 fi; \
1099 else \
wdenk7ebf7442002-11-02 23:17:16 +00001100 echo "... booting from 64-bit flash" ; \
wdenkefa329c2004-03-23 20:18:25 +00001101 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1102 echo "... with 32 MB Flash" ; \
1103 echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
1104 echo "TEXT_BASE = 0x40000000" >board/pm826/config.tmp ; \
1105 else \
1106 echo "TEXT_BASE = 0xFF000000" >board/pm826/config.tmp ; \
1107 fi; \
1108 fi
1109 @./mkconfig -a PM826 ppc mpc8260 pm826
1110
1111PM828_config \
1112PM828_PCI_config \
1113PM828_ROMBOOT_config \
1114PM828_ROMBOOT_PCI_config: unconfig
1115 @if [ -z "$(findstring _PCI_,$@)" ] ; then \
1116 echo "#define CONFIG_PCI" >>include/config.h ; \
1117 echo "... with PCI enabled" ; \
1118 else \
1119 >include/config.h ; \
1120 fi
1121 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1122 echo "... booting from 8-bit flash" ; \
1123 echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
1124 echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
1125 fi
1126 @./mkconfig -a PM828 ppc mpc8260 pm828
wdenk7ebf7442002-11-02 23:17:16 +00001127
1128ppmc8260_config: unconfig
1129 @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
1130
wdenk8b0bfc62005-04-03 23:11:38 +00001131Rattler8248_config \
1132Rattler_config: unconfig
1133 $(if $(findstring 8248,$@), \
1134 @echo "#define CONFIG_MPC8248" > include/config.h)
1135 @./mkconfig -a Rattler ppc mpc8260 rattler
1136
wdenk7ebf7442002-11-02 23:17:16 +00001137RPXsuper_config: unconfig
1138 @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
1139
1140rsdproto_config: unconfig
1141 @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
1142
1143sacsng_config: unconfig
1144 @./mkconfig $(@:_config=) ppc mpc8260 sacsng
1145
1146sbc8260_config: unconfig
1147 @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
1148
1149SCM_config: unconfig
1150 @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
1151
wdenk27b207f2003-07-24 23:38:38 +00001152TQM8255_AA_config \
1153TQM8260_AA_config \
1154TQM8260_AB_config \
1155TQM8260_AC_config \
1156TQM8260_AD_config \
1157TQM8260_AE_config \
1158TQM8260_AF_config \
1159TQM8260_AG_config \
1160TQM8260_AH_config \
1161TQM8265_AA_config: unconfig
1162 @case "$@" in \
1163 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1164 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1165 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1166 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1167 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1168 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1169 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1170 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1171 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1172 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1173 esac; \
1174 >include/config.h ; \
1175 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1176 echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \
1177 fi; \
1178 echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \
1179 echo "... with $${CFREQ}MHz system clock" ; \
1180 if [ "$${CACHE}" == "yes" ] ; then \
wdenk7ebf7442002-11-02 23:17:16 +00001181 echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
wdenk27b207f2003-07-24 23:38:38 +00001182 echo "... with L2 Cache support" ; \
wdenk7ebf7442002-11-02 23:17:16 +00001183 else \
1184 echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
1185 echo "... without L2 Cache support" ; \
wdenk27b207f2003-07-24 23:38:38 +00001186 fi; \
1187 if [ "$${BMODE}" == "60x" ] ; then \
1188 echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
1189 echo "... with 60x Bus Mode" ; \
1190 else \
1191 echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \
1192 echo "... without 60x Bus Mode" ; \
wdenk7ebf7442002-11-02 23:17:16 +00001193 fi
wdenk4532cb62003-04-27 22:52:51 +00001194 @./mkconfig -a TQM8260 ppc mpc8260 tqm8260
wdenk7ebf7442002-11-02 23:17:16 +00001195
wdenkba91e262005-05-30 23:55:42 +00001196VoVPN-GW_66MHz_config \
1197VoVPN-GW_100MHz_config: unconfig
1198 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > include/config.h
1199 @./mkconfig -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1200
wdenk54387ac2003-10-08 22:45:44 +00001201ZPC1900_config: unconfig
1202 @./mkconfig $(@:_config=) ppc mpc8260 zpc1900
wdenk7aa78612003-05-03 15:50:43 +00001203
wdenk4e5ca3e2003-12-08 01:34:36 +00001204#========================================================================
1205# M68K
1206#========================================================================
1207#########################################################################
1208## Coldfire
1209#########################################################################
1210
1211M5272C3_config : unconfig
wdenkbf9e3b32004-02-12 00:47:09 +00001212 @./mkconfig $(@:_config=) m68k mcf52x2 m5272c3
wdenk4e5ca3e2003-12-08 01:34:36 +00001213
1214M5282EVB_config : unconfig
wdenkbf9e3b32004-02-12 00:47:09 +00001215 @./mkconfig $(@:_config=) m68k mcf52x2 m5282evb
wdenk4e5ca3e2003-12-08 01:34:36 +00001216
stroesec419d1d2004-12-16 18:44:40 +00001217TASREG_config : unconfig
1218 @./mkconfig $(@:_config=) m68k mcf52x2 tasreg esd
1219
wdenk7ebf7442002-11-02 23:17:16 +00001220#########################################################################
Eran Libertyf046ccd2005-07-28 10:08:46 -05001221## MPC83xx Systems
1222#########################################################################
1223
1224MPC8349ADS_config: unconfig
1225 @./mkconfig $(@:_config=) ppc mpc83xx mpc8349ads
1226
1227#########################################################################
wdenk42d1f032003-10-15 23:53:47 +00001228## MPC85xx Systems
1229#########################################################################
1230
wdenk0ac6f8b2004-07-09 23:27:13 +00001231MPC8540ADS_config: unconfig
wdenk42d1f032003-10-15 23:53:47 +00001232 @./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
1233
Lunsheng Wangb0e32942005-07-29 10:20:29 -05001234MPC8540EVAL_config \
1235MPC8540EVAL_33_config \
1236MPC8540EVAL_66_config \
1237MPC8540EVAL_33_slave_config \
1238MPC8540EVAL_66_slave_config: unconfig
1239 @echo "" >include/config.h ; \
1240 if [ "$(findstring _33_,$@)" ] ; then \
1241 echo -n "... 33 MHz PCI" ; \
1242 else \
1243 echo "#define CONFIG_SYSCLK_66M" >>include/config.h ; \
1244 echo -n "... 66 MHz PCI" ; \
1245 fi ; \
1246 if [ "$(findstring _slave_,$@)" ] ; then \
1247 echo "#define CONFIG_PCI_SLAVE" >>include/config.h ; \
1248 echo " slave" ; \
1249 else \
1250 echo " host" ; \
1251 fi
1252 @./mkconfig -a MPC8540EVAL ppc mpc85xx mpc8540eval
1253
wdenk0ac6f8b2004-07-09 23:27:13 +00001254MPC8560ADS_config: unconfig
wdenk42d1f032003-10-15 23:53:47 +00001255 @./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
1256
wdenk03f5c552004-10-10 21:21:55 +00001257MPC8541CDS_config: unconfig
1258 @./mkconfig $(@:_config=) ppc mpc85xx mpc8541cds cds
1259
Jon Loeligerd9b94f22005-07-25 14:05:07 -05001260MPC8548CDS_config: unconfig
1261 @./mkconfig $(@:_config=) ppc mpc85xx mpc8548cds cds
1262
wdenk03f5c552004-10-10 21:21:55 +00001263MPC8555CDS_config: unconfig
1264 @./mkconfig $(@:_config=) ppc mpc85xx mpc8555cds cds
wdenk7abf0c52004-04-18 21:45:42 +00001265
wdenk384cc682005-04-03 22:35:21 +00001266PM854_config: unconfig
1267 @./mkconfig $(@:_config=) ppc mpc85xx pm854
1268
Wolfgang Denkb20d0032005-08-05 12:19:30 +02001269PM856_config: unconfig
1270 @./mkconfig $(@:_config=) ppc mpc85xx pm856
1271
wdenkc15f3122004-10-10 22:44:24 +00001272sbc8540_config \
1273sbc8540_33_config \
1274sbc8540_66_config: unconfig
1275 @if [ "$(findstring _66_,$@)" ] ; then \
1276 echo "#define CONFIG_PCI_66" >>include/config.h ; \
1277 echo "... 66 MHz PCI" ; \
1278 else \
1279 >include/config.h ; \
1280 echo "... 33 MHz PCI" ; \
1281 fi
1282 @./mkconfig -a SBC8540 ppc mpc85xx sbc8560
1283
wdenk466b7412004-07-10 22:35:59 +00001284sbc8560_config \
1285sbc8560_33_config \
1286sbc8560_66_config: unconfig
wdenk8b07a112004-07-10 21:45:47 +00001287 @if [ "$(findstring _66_,$@)" ] ; then \
wdenkc15f3122004-10-10 22:44:24 +00001288 echo "#define CONFIG_PCI_66" >>include/config.h ; \
wdenk8b07a112004-07-10 21:45:47 +00001289 echo "... 66 MHz PCI" ; \
1290 else \
1291 >include/config.h ; \
1292 echo "... 33 MHz PCI" ; \
1293 fi
wdenk466b7412004-07-10 22:35:59 +00001294 @./mkconfig -a sbc8560 ppc mpc85xx sbc8560
wdenk8b07a112004-07-10 21:45:47 +00001295
wdenk03f5c552004-10-10 21:21:55 +00001296stxgp3_config: unconfig
1297 @./mkconfig $(@:_config=) ppc mpc85xx stxgp3
1298
wdenk9d46ea42005-03-14 23:56:42 +00001299TQM8540_config: unconfig
1300 @./mkconfig $(@:_config=) ppc mpc85xx tqm8540
1301
wdenkf5c5ef42005-04-05 16:26:47 +00001302TQM8560_config: unconfig
1303 @./mkconfig $(@:_config=) ppc mpc85xx tqm8560
1304
wdenk42d1f032003-10-15 23:53:47 +00001305#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001306## 74xx/7xx Systems
1307#########################################################################
1308
wdenkc7de8292002-11-19 11:04:11 +00001309AmigaOneG3SE_config: unconfig
1310 @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1311
wdenk15647dc2003-10-09 19:00:25 +00001312BAB7xx_config: unconfig
1313 @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
1314
stroesec419d1d2004-12-16 18:44:40 +00001315CPCI750_config: unconfig
1316 @./mkconfig CPCI750 ppc 74xx_7xx cpci750 esd
1317
wdenk3a473b22004-01-03 00:43:19 +00001318DB64360_config: unconfig
1319 @./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell
1320
1321DB64460_config: unconfig
1322 @./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell
1323
wdenk15647dc2003-10-09 19:00:25 +00001324ELPPC_config: unconfig
1325 @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
1326
wdenk7ebf7442002-11-02 23:17:16 +00001327EVB64260_config \
1328EVB64260_750CX_config: unconfig
1329 @./mkconfig EVB64260 ppc 74xx_7xx evb64260
1330
wdenk15647dc2003-10-09 19:00:25 +00001331P3G4_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +00001332 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
1333
1334PCIPPC2_config \
1335PCIPPC6_config: unconfig
1336 @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
1337
wdenk15647dc2003-10-09 19:00:25 +00001338ZUMA_config: unconfig
wdenk12f34242003-09-02 22:48:03 +00001339 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
1340
wdenk7ebf7442002-11-02 23:17:16 +00001341#========================================================================
1342# ARM
1343#========================================================================
1344#########################################################################
1345## StrongARM Systems
1346#########################################################################
1347
wdenkea66bc82004-04-15 23:23:39 +00001348assabet_config : unconfig
1349 @./mkconfig $(@:_config=) arm sa1100 assabet
1350
wdenk7ebf7442002-11-02 23:17:16 +00001351dnp1110_config : unconfig
1352 @./mkconfig $(@:_config=) arm sa1100 dnp1110
1353
wdenk855a4962004-03-14 18:23:55 +00001354gcplus_config : unconfig
1355 @./mkconfig $(@:_config=) arm sa1100 gcplus
1356
1357lart_config : unconfig
1358 @./mkconfig $(@:_config=) arm sa1100 lart
1359
wdenk7ebf7442002-11-02 23:17:16 +00001360shannon_config : unconfig
1361 @./mkconfig $(@:_config=) arm sa1100 shannon
1362
1363#########################################################################
wdenk2e5983d2003-07-15 20:04:06 +00001364## ARM92xT Systems
wdenk7ebf7442002-11-02 23:17:16 +00001365#########################################################################
1366
wdenkb0639ca2003-09-17 22:48:07 +00001367xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
wdenk43d96162003-03-06 00:02:04 +00001368
wdenk3ff02c22004-06-09 15:25:53 +00001369xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
wdenk63e73c92004-02-23 22:22:28 +00001370
wdenka56bd922004-06-06 23:13:55 +00001371xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1372
wdenka85f9f22005-04-06 13:52:31 +00001373at91rm9200dk_config : unconfig
1374 @./mkconfig $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1375
1376cmc_pu2_config : unconfig
1377 @./mkconfig $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1378
wdenk3d3befa2004-03-14 15:06:13 +00001379integratorap_config : unconfig
1380 @./mkconfig $(@:_config=) arm arm926ejs integratorap
1381
wdenk25d67122004-12-10 11:40:40 +00001382integratorcp_config : unconfig
1383 @./mkconfig $(@:_config=) arm arm926ejs integratorcp
1384
wdenkf832d8a2004-06-10 21:55:33 +00001385lpd7a400_config \
1386lpd7a404_config: unconfig
wdenk2d24a3a2004-06-09 21:50:45 +00001387 @./mkconfig $(@:_config=) arm lh7a40x lpd7a40x
wdenk3d3befa2004-03-14 15:06:13 +00001388
wdenk281e00a2004-08-01 22:48:16 +00001389mx1ads_config : unconfig
wdenk1d9f4102004-10-09 22:21:29 +00001390 @./mkconfig $(@:_config=) arm arm920t mx1ads NULL imx
wdenk281e00a2004-08-01 22:48:16 +00001391
1392mx1fs2_config : unconfig
wdenk1d9f4102004-10-09 22:21:29 +00001393 @./mkconfig $(@:_config=) arm arm920t mx1fs2 NULL imx
wdenk281e00a2004-08-01 22:48:16 +00001394
Wolfgang Denkac7eb8a2005-09-14 23:53:32 +02001395netstar_32_config \
1396netstar_config: unconfig
1397 @if [ "$(findstring _32_,$@)" ] ; then \
1398 echo "... 32MB SDRAM" ; \
1399 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>include/config.h ; \
1400 else \
1401 echo "... 64MB SDRAM" ; \
1402 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>include/config.h ; \
1403 fi
1404 @./mkconfig -a netstar arm arm925t netstar
1405
wdenk2e5983d2003-07-15 20:04:06 +00001406omap1510inn_config : unconfig
1407 @./mkconfig $(@:_config=) arm arm925t omap1510inn
1408
wdenk1eaeb582004-06-08 00:22:43 +00001409omap5912osk_config : unconfig
1410 @./mkconfig $(@:_config=) arm arm926ejs omap5912osk
1411
wdenk63e73c92004-02-23 22:22:28 +00001412omap1610inn_config \
1413omap1610inn_cs0boot_config \
1414omap1610inn_cs3boot_config \
wdenk3ff02c22004-06-09 15:25:53 +00001415omap1610inn_cs_autoboot_config \
wdenk63e73c92004-02-23 22:22:28 +00001416omap1610h2_config \
1417omap1610h2_cs0boot_config \
wdenk3ff02c22004-06-09 15:25:53 +00001418omap1610h2_cs3boot_config \
1419omap1610h2_cs_autoboot_config: unconfig
wdenk63e73c92004-02-23 22:22:28 +00001420 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
1421 echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
wdenkb79a11c2004-03-25 15:14:43 +00001422 echo "... configured for CS0 boot"; \
wdenk3ff02c22004-06-09 15:25:53 +00001423 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
1424 echo "#define CONFIG_CS_AUTOBOOT" >> ./include/config.h ; \
1425 echo "... configured for CS_AUTO boot"; \
wdenk63e73c92004-02-23 22:22:28 +00001426 else \
1427 echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
wdenkb79a11c2004-03-25 15:14:43 +00001428 echo "... configured for CS3 boot"; \
wdenk63e73c92004-02-23 22:22:28 +00001429 fi;
1430 @./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn
wdenk6f213472003-08-29 22:00:43 +00001431
wdenka56bd922004-06-06 23:13:55 +00001432omap730p2_config \
1433omap730p2_cs0boot_config \
1434omap730p2_cs3boot_config : unconfig
1435 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
1436 echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
1437 echo "... configured for CS0 boot"; \
1438 else \
1439 echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
1440 echo "... configured for CS3 boot"; \
1441 fi;
1442 @./mkconfig -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2
1443
wdenk281e00a2004-08-01 22:48:16 +00001444scb9328_config : unconfig
wdenk1d9f4102004-10-09 22:21:29 +00001445 @./mkconfig $(@:_config=) arm arm920t scb9328 NULL imx
wdenk281e00a2004-08-01 22:48:16 +00001446
wdenk7ebf7442002-11-02 23:17:16 +00001447smdk2400_config : unconfig
wdenk1d9f4102004-10-09 22:21:29 +00001448 @./mkconfig $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
wdenk7ebf7442002-11-02 23:17:16 +00001449
1450smdk2410_config : unconfig
wdenk1d9f4102004-10-09 22:21:29 +00001451 @./mkconfig $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
wdenk7ebf7442002-11-02 23:17:16 +00001452
wdenk2d24a3a2004-06-09 21:50:45 +00001453SX1_config : unconfig
1454 @./mkconfig $(@:_config=) arm arm925t sx1
1455
wdenkb2001f22003-12-20 22:45:10 +00001456# TRAB default configuration: 8 MB Flash, 32 MB RAM
wdenk43d96162003-03-06 00:02:04 +00001457trab_config \
wdenkb0639ca2003-09-17 22:48:07 +00001458trab_bigram_config \
1459trab_bigflash_config \
wdenkf54ebdf2003-09-17 15:10:32 +00001460trab_old_config: unconfig
wdenk43d96162003-03-06 00:02:04 +00001461 @ >include/config.h
wdenkb0639ca2003-09-17 22:48:07 +00001462 @[ -z "$(findstring _bigram,$@)" ] || \
wdenkb2001f22003-12-20 22:45:10 +00001463 { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
1464 echo "#define CONFIG_RAM_32MB" >>include/config.h ; \
wdenkb0639ca2003-09-17 22:48:07 +00001465 echo "... with 8 MB Flash, 32 MB RAM" ; \
1466 }
1467 @[ -z "$(findstring _bigflash,$@)" ] || \
wdenkb2001f22003-12-20 22:45:10 +00001468 { echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \
1469 echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
wdenkb0639ca2003-09-17 22:48:07 +00001470 echo "... with 16 MB Flash, 16 MB RAM" ; \
wdenka8c7c702003-12-06 19:49:23 +00001471 echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
wdenkb0639ca2003-09-17 22:48:07 +00001472 }
wdenkf54ebdf2003-09-17 15:10:32 +00001473 @[ -z "$(findstring _old,$@)" ] || \
wdenkb2001f22003-12-20 22:45:10 +00001474 { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
1475 echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
1476 echo "... with 8 MB Flash, 16 MB RAM" ; \
wdenka8c7c702003-12-06 19:49:23 +00001477 echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
wdenk43d96162003-03-06 00:02:04 +00001478 }
wdenk1d9f4102004-10-09 22:21:29 +00001479 @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
wdenk7ebf7442002-11-02 23:17:16 +00001480
wdenk1cb8e982003-03-06 21:55:29 +00001481VCMA9_config : unconfig
wdenk1d9f4102004-10-09 22:21:29 +00001482 @./mkconfig $(@:_config=) arm arm920t vcma9 mpl s3c24x0
wdenk1cb8e982003-03-06 21:55:29 +00001483
wdenk2d24a3a2004-06-09 21:50:45 +00001484versatile_config : unconfig
1485 @./mkconfig $(@:_config=) arm arm926ejs versatile
wdenk074cff02004-02-24 00:16:43 +00001486
wdenk3c2b3d42005-04-05 23:32:21 +00001487voiceblue_smallflash_config \
1488voiceblue_config: unconfig
1489 @if [ "$(findstring _smallflash_,$@)" ] ; then \
1490 echo "... boot from lower flash bank" ; \
1491 echo "#define VOICEBLUE_SMALL_FLASH" >>include/config.h ; \
1492 echo "VOICEBLUE_SMALL_FLASH=y" >board/voiceblue/config.tmp ; \
1493 else \
1494 echo "... boot from upper flash bank" ; \
1495 >include/config.h ; \
1496 echo "VOICEBLUE_SMALL_FLASH=n" >board/voiceblue/config.tmp ; \
1497 fi
1498 @./mkconfig -a voiceblue arm arm925t voiceblue
1499
wdenk16b013e2005-05-19 22:46:33 +00001500cm4008_config : unconfig
1501 @./mkconfig $(@:_config=) arm arm920t cm4008 NULL ks8695
1502
1503cm41xx_config : unconfig
1504 @./mkconfig $(@:_config=) arm arm920t cm41xx NULL ks8695
1505
wdenk074cff02004-02-24 00:16:43 +00001506#########################################################################
1507## S3C44B0 Systems
1508#########################################################################
1509
1510B2_config : unconfig
1511 @./mkconfig $(@:_config=) arm s3c44b0 B2 dave
1512
wdenk7ebf7442002-11-02 23:17:16 +00001513#########################################################################
1514## ARM720T Systems
1515#########################################################################
1516
wdenk7ebf7442002-11-02 23:17:16 +00001517ep7312_config : unconfig
1518 @./mkconfig $(@:_config=) arm arm720t ep7312
1519
wdenk2d24a3a2004-06-09 21:50:45 +00001520impa7_config : unconfig
1521 @./mkconfig $(@:_config=) arm arm720t impa7
1522
wdenk2d1a5372004-02-23 19:30:57 +00001523modnet50_config : unconfig
1524 @./mkconfig $(@:_config=) arm arm720t modnet50
1525
wdenk39539882004-07-01 16:30:44 +00001526evb4510_config : unconfig
1527 @./mkconfig $(@:_config=) arm arm720t evb4510
1528
wdenk7ebf7442002-11-02 23:17:16 +00001529#########################################################################
wdenk43d96162003-03-06 00:02:04 +00001530## XScale Systems
wdenk7ebf7442002-11-02 23:17:16 +00001531#########################################################################
1532
wdenk20787e22005-04-06 00:04:16 +00001533adsvix_config : unconfig
1534 @./mkconfig $(@:_config=) arm pxa adsvix
1535
wdenkfabd46a2004-07-10 23:11:10 +00001536cerf250_config : unconfig
1537 @./mkconfig $(@:_config=) arm pxa cerf250
1538
wdenk7ebf7442002-11-02 23:17:16 +00001539cradle_config : unconfig
wdenk8bde7f72003-06-27 21:31:46 +00001540 @./mkconfig $(@:_config=) arm pxa cradle
wdenk7ebf7442002-11-02 23:17:16 +00001541
1542csb226_config : unconfig
wdenk4c3b21a2003-05-23 12:36:20 +00001543 @./mkconfig $(@:_config=) arm pxa csb226
wdenk7ebf7442002-11-02 23:17:16 +00001544
wdenk43d96162003-03-06 00:02:04 +00001545innokom_config : unconfig
wdenk4c3b21a2003-05-23 12:36:20 +00001546 @./mkconfig $(@:_config=) arm pxa innokom
wdenk43d96162003-03-06 00:02:04 +00001547
wdenk2d5b5612003-10-14 19:43:55 +00001548ixdp425_config : unconfig
1549 @./mkconfig $(@:_config=) arm ixp ixdp425
1550
wdenk43d96162003-03-06 00:02:04 +00001551lubbock_config : unconfig
wdenk4c3b21a2003-05-23 12:36:20 +00001552 @./mkconfig $(@:_config=) arm pxa lubbock
wdenk43d96162003-03-06 00:02:04 +00001553
wdenk52f52c12003-06-19 23:04:19 +00001554logodl_config : unconfig
1555 @./mkconfig $(@:_config=) arm pxa logodl
1556
wdenk3e386912003-04-05 00:53:31 +00001557wepep250_config : unconfig
wdenk4c3b21a2003-05-23 12:36:20 +00001558 @./mkconfig $(@:_config=) arm pxa wepep250
wdenk3e386912003-04-05 00:53:31 +00001559
wdenk4ec3a7f2004-09-28 16:44:41 +00001560xaeniax_config : unconfig
1561 @./mkconfig $(@:_config=) arm pxa xaeniax
1562
wdenkefa329c2004-03-23 20:18:25 +00001563xm250_config : unconfig
1564 @./mkconfig $(@:_config=) arm pxa xm250
1565
wdenkca0e7742004-06-09 15:37:23 +00001566xsengine_config : unconfig
1567 @./mkconfig $(@:_config=) arm pxa xsengine
1568
wdenk8ed96042005-01-09 23:16:25 +00001569#########################################################################
1570## ARM1136 Systems
1571#########################################################################
1572omap2420h4_config : unconfig
1573 @./mkconfig $(@:_config=) arm arm1136 omap2420h4
1574
wdenk2262cfe2002-11-18 00:14:45 +00001575#========================================================================
1576# i386
1577#========================================================================
1578#########################################################################
wdenk1cb8e982003-03-06 21:55:29 +00001579## AMD SC520 CDP
wdenk2262cfe2002-11-18 00:14:45 +00001580#########################################################################
1581sc520_cdp_config : unconfig
1582 @./mkconfig $(@:_config=) i386 i386 sc520_cdp
1583
wdenk7a8e9bed2003-05-31 18:35:21 +00001584sc520_spunk_config : unconfig
1585 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
1586
1587sc520_spunk_rel_config : unconfig
1588 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
1589
wdenk43d96162003-03-06 00:02:04 +00001590#========================================================================
1591# MIPS
1592#========================================================================
wdenk7ebf7442002-11-02 23:17:16 +00001593#########################################################################
wdenk43d96162003-03-06 00:02:04 +00001594## MIPS32 4Kc
1595#########################################################################
1596
wdenke0ac62d2003-08-17 18:55:18 +00001597xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
1598
1599incaip_100MHz_config \
1600incaip_133MHz_config \
1601incaip_150MHz_config \
1602incaip_config: unconfig
1603 @ >include/config.h
1604 @[ -z "$(findstring _100MHz,$@)" ] || \
1605 { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
1606 echo "... with 100MHz system clock" ; \
1607 }
1608 @[ -z "$(findstring _133MHz,$@)" ] || \
1609 { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
1610 echo "... with 133MHz system clock" ; \
1611 }
1612 @[ -z "$(findstring _150MHz,$@)" ] || \
1613 { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
1614 echo "... with 150MHz system clock" ; \
1615 }
1616 @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
1617
wdenkf4863a72004-02-07 01:27:10 +00001618tb0229_config: unconfig
1619 @./mkconfig $(@:_config=) mips mips tb0229
1620
wdenke0ac62d2003-08-17 18:55:18 +00001621#########################################################################
wdenk69459792004-05-29 16:53:29 +00001622## MIPS32 AU1X00
1623#########################################################################
1624dbau1000_config : unconfig
1625 @ >include/config.h
1626 @echo "#define CONFIG_DBAU1000 1" >>include/config.h
1627 @./mkconfig -a dbau1x00 mips mips dbau1x00
1628
1629dbau1100_config : unconfig
1630 @ >include/config.h
1631 @echo "#define CONFIG_DBAU1100 1" >>include/config.h
1632 @./mkconfig -a dbau1x00 mips mips dbau1x00
1633
1634dbau1500_config : unconfig
1635 @ >include/config.h
1636 @echo "#define CONFIG_DBAU1500 1" >>include/config.h
1637 @./mkconfig -a dbau1x00 mips mips dbau1x00
1638
wdenkff36fd82005-01-09 22:28:56 +00001639dbau1550_config : unconfig
1640 @ >include/config.h
1641 @echo "#define CONFIG_DBAU1550 1" >>include/config.h
1642 @./mkconfig -a dbau1x00 mips mips dbau1x00
1643
1644dbau1550_el_config : unconfig
1645 @ >include/config.h
1646 @echo "#define CONFIG_DBAU1550 1" >>include/config.h
Wolfgang Denk21919232005-08-08 23:06:32 +02001647 @./mkconfig -a dbau1x00 mips mips dbau1x00
wdenkff36fd82005-01-09 22:28:56 +00001648
wdenk69459792004-05-29 16:53:29 +00001649#########################################################################
wdenke0ac62d2003-08-17 18:55:18 +00001650## MIPS64 5Kc
1651#########################################################################
wdenk43d96162003-03-06 00:02:04 +00001652
wdenk3e386912003-04-05 00:53:31 +00001653purple_config : unconfig
1654 @./mkconfig $(@:_config=) mips mips purple
wdenk43d96162003-03-06 00:02:04 +00001655
wdenk4a551702003-10-08 23:26:14 +00001656#========================================================================
1657# Nios
1658#========================================================================
1659#########################################################################
1660## Nios32
1661#########################################################################
1662
wdenkc935d3b2004-01-03 19:43:48 +00001663DK1C20_safe_32_config \
1664DK1C20_standard_32_config \
wdenk4a551702003-10-08 23:26:14 +00001665DK1C20_config: unconfig
wdenkc935d3b2004-01-03 19:43:48 +00001666 @ >include/config.h
1667 @[ -z "$(findstring _safe_32,$@)" ] || \
1668 { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1669 echo "... NIOS 'safe_32' configuration" ; \
1670 }
1671 @[ -z "$(findstring _standard_32,$@)" ] || \
1672 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1673 echo "... NIOS 'standard_32' configuration" ; \
1674 }
1675 @[ -z "$(findstring DK1C20_config,$@)" ] || \
1676 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1677 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1678 }
1679 @./mkconfig -a DK1C20 nios nios dk1c20 altera
1680
1681DK1S10_safe_32_config \
1682DK1S10_standard_32_config \
wdenkec4c5442004-02-09 23:12:24 +00001683DK1S10_mtx_ldk_20_config \
wdenkc935d3b2004-01-03 19:43:48 +00001684DK1S10_config: unconfig
1685 @ >include/config.h
1686 @[ -z "$(findstring _safe_32,$@)" ] || \
1687 { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1688 echo "... NIOS 'safe_32' configuration" ; \
1689 }
1690 @[ -z "$(findstring _standard_32,$@)" ] || \
1691 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1692 echo "... NIOS 'standard_32' configuration" ; \
1693 }
wdenkec4c5442004-02-09 23:12:24 +00001694 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
1695 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \
1696 echo "... NIOS 'mtx_ldk_20' configuration" ; \
1697 }
wdenkc935d3b2004-01-03 19:43:48 +00001698 @[ -z "$(findstring DK1S10_config,$@)" ] || \
1699 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1700 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1701 }
1702 @./mkconfig -a DK1S10 nios nios dk1s10 altera
wdenk4a551702003-10-08 23:26:14 +00001703
wdenkaaf224a2004-03-14 15:20:55 +00001704ADNPESC1_DNPEVA2_base_32_config \
1705ADNPESC1_base_32_config \
1706ADNPESC1_config: unconfig
1707 @ >include/config.h
1708 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
wdenk42dfe7a2004-03-14 22:25:36 +00001709 { echo "#define CONFIG_DNPEVA2 1" >>include/config.h ; \
1710 echo "... DNP/EVA2 configuration" ; \
1711 }
wdenkaaf224a2004-03-14 15:20:55 +00001712 @[ -z "$(findstring _base_32,$@)" ] || \
wdenk42dfe7a2004-03-14 22:25:36 +00001713 { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1714 echo "... NIOS 'base_32' configuration" ; \
1715 }
wdenkaaf224a2004-03-14 15:20:55 +00001716 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
wdenk42dfe7a2004-03-14 22:25:36 +00001717 { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1718 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
1719 }
wdenkaaf224a2004-03-14 15:20:55 +00001720 @./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv
1721
wdenk5c952cf2004-10-10 21:27:30 +00001722#########################################################################
1723## Nios-II
1724#########################################################################
1725
1726PK1C20_config : unconfig
1727 @./mkconfig PK1C20 nios2 nios2 pk1c20 psyent
1728
1729PCI5441_config : unconfig
1730 @./mkconfig PCI5441 nios2 nios2 pci5441 psyent
wdenk4a551702003-10-08 23:26:14 +00001731
wdenk507bbe32004-04-18 21:13:41 +00001732#========================================================================
1733# MicroBlaze
1734#========================================================================
1735#########################################################################
1736## Microblaze
1737#########################################################################
1738suzaku_config: unconfig
1739 @ >include/config.h
1740 @echo "#define CONFIG_SUZAKU 1" >> include/config.h
1741 @./mkconfig -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
1742
wdenk3e386912003-04-05 00:53:31 +00001743#########################################################################
1744#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001745
1746clean:
1747 find . -type f \
1748 \( -name 'core' -o -name '*.bak' -o -name '*~' \
1749 -o -name '*.o' -o -name '*.a' \) -print \
1750 | xargs rm -f
wdenk85ec0bc2003-03-31 16:34:49 +00001751 rm -f examples/hello_world examples/timer \
wdenk3e386912003-04-05 00:53:31 +00001752 examples/eepro100_eeprom examples/sched \
wdenked16fef2005-05-09 10:17:32 +00001753 examples/mem_to_mem_idma2intr examples/82559_eeprom \
1754 examples/test_burst
wdenk7ebf7442002-11-02 23:17:16 +00001755 rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
wdenkeedcd072004-09-08 22:03:11 +00001756 rm -f tools/mpc86x_clk tools/ncb
wdenk7ebf7442002-11-02 23:17:16 +00001757 rm -f tools/easylogo/easylogo tools/bmp_logo
1758 rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
wdenk228f29a2002-12-08 09:53:23 +00001759 rm -f tools/env/fw_printenv tools/env/fw_setenv
wdenk7f70e852003-05-20 14:25:27 +00001760 rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
Wolfgang Denk0e1fb5e2005-08-13 18:36:17 +02001761 rm -f board/trab/trab_fkt board/voiceblue/eeprom
wdenk7ebf7442002-11-02 23:17:16 +00001762
1763clobber: clean
wdenk4c0d4c32004-06-09 17:34:58 +00001764 find . -type f \( -name .depend \
1765 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
1766 -print0 \
1767 | xargs -0 rm -f
wdenk7ebf7442002-11-02 23:17:16 +00001768 rm -f $(OBJS) *.bak tags TAGS
1769 rm -fr *.*~
wdenk6310eb92005-01-09 21:28:15 +00001770 rm -f u-boot u-boot.map u-boot.hex $(ALL)
wdenk228f29a2002-12-08 09:53:23 +00001771 rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
wdenk3e386912003-04-05 00:53:31 +00001772 rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
wdenkb783eda2003-06-25 22:26:29 +00001773 rm -f include/asm/proc include/asm/arch include/asm
wdenk7ebf7442002-11-02 23:17:16 +00001774
1775mrproper \
1776distclean: clobber unconfig
1777
1778backup:
1779 F=`basename $(TOPDIR)` ; cd .. ; \
1780 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
1781
1782#########################################################################