blob: 5e0df98c98d6f4a0bbf7ba947189981112db1813 [file] [log] [blame]
wdenk7ebf7442002-11-02 23:17:16 +00001#
wdenkf1d0ff42005-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 Denkaf03f732005-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 Denkaf03f732005-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
wdenkf8e9a232004-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 Liberty9095d4a2005-07-28 10:08:46 -050057CROSS_COMPILE = powerpc-linux-
wdenk7ebf7442002-11-02 23:17:16 +000058endif
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
wdenkef3386f2004-10-10 21:27:30 +000075ifeq ($(ARCH),nios2)
76CROSS_COMPILE = nios2-elf-
77endif
wdenkabf7a7c2003-12-08 01:34:36 +000078ifeq ($(ARCH),m68k)
79CROSS_COMPILE = m68k-elf-
wdenk4a5c8a72003-03-06 00:02:04 +000080endif
wdenk12490652004-04-18 21:13:41 +000081ifeq ($(ARCH),microblaze)
82CROSS_COMPILE = mb-
wdenk60164a82003-10-08 23:26:14 +000083endif
wdenkabf7a7c2003-12-08 01:34:36 +000084endif
wdenk12490652004-04-18 21:13:41 +000085endif
wdenk7ebf7442002-11-02 23:17:16 +000086
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
wdenk7f00b942003-12-07 23:55:12 +000092OBJS = cpu/$(CPU)/start.o
wdenk591dda52002-11-18 00:14:45 +000093ifeq ($(CPU),i386)
wdenk7f00b942003-12-07 23:55:12 +000094OBJS += cpu/$(CPU)/start16.o
95OBJS += cpu/$(CPU)/reset.o
wdenk591dda52002-11-18 00:14:45 +000096endif
wdenk7ebf7442002-11-02 23:17:16 +000097ifeq ($(CPU),ppc4xx)
wdenk7f00b942003-12-07 23:55:12 +000098OBJS += cpu/$(CPU)/resetvec.o
wdenk7ebf7442002-11-02 23:17:16 +000099endif
Eran Liberty9095d4a2005-07-28 10:08:46 -0500100ifeq ($(CPU),mpc83xx)
101OBJS += cpu/$(CPU)/resetvec.o
102endif
wdenk9c53f402003-10-15 23:53:47 +0000103ifeq ($(CPU),mpc85xx)
104OBJS += cpu/$(CPU)/resetvec.o
105endif
wdenk7ebf7442002-11-02 23:17:16 +0000106
wdenk7f00b942003-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
wdenkf8e9a232004-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
wdenk4d01d9e2004-03-25 14:59:05 +0000114LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
stroese05b88912004-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
wdenkeb20ad32003-09-05 23:19:14 +0000121LIBS += drivers/sk98lin/libsk98lin.a
wdenk7ebf7442002-11-02 23:17:16 +0000122LIBS += post/libpost.a post/cpu/libcpu.a
123LIBS += common/libcommon.a
Bartlomiej Sieka6eed2ab2006-02-24 09:37:22 +0100124LIBS += $(BOARDLIBS)
wdenk7f00b942003-12-07 23:55:12 +0000125.PHONY : $(LIBS)
wdenkc0aa5c52003-12-06 19:49:23 +0000126
wdenk4cc02a82003-09-11 23:06:34 +0000127# Add GCC lib
wdenkf1276d42005-02-03 23:00:49 +0000128PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
wdenk4989f872004-03-14 15:06:13 +0000129
wdenk7ebf7442002-11-02 23:17:16 +0000130
wdenkc0aa5c52003-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
wdenk444f22b2003-12-07 21:39:28 +0000137.PHONY : $(SUBDIRS)
wdenkc0aa5c52003-12-06 19:49:23 +0000138
wdenk7ebf7442002-11-02 23:17:16 +0000139#########################################################################
wdenk0a658552003-08-05 17:43:17 +0000140#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000141
wdenk0a658552003-08-05 17:43:17 +0000142ALL = u-boot.srec u-boot.bin System.map
wdenk7ebf7442002-11-02 23:17:16 +0000143
wdenk0a658552003-08-05 17:43:17 +0000144all: $(ALL)
wdenk7ebf7442002-11-02 23:17:16 +0000145
wdenk68005192005-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
wdenk0a658552003-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
wdenkc0aa5c52003-12-06 19:49:23 +0000165u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
wdenk57b2d802003-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) \
wdenkf1276d42005-02-03 23:00:49 +0000168 --start-group $(LIBS) --end-group $(PLATFORM_LIBS) \
wdenk67ff36c2002-11-19 23:01:07 +0000169 -Map u-boot.map -o u-boot
wdenk7ebf7442002-11-02 23:17:16 +0000170
wdenkc0aa5c52003-12-06 19:49:23 +0000171$(LIBS):
172 $(MAKE) -C `dirname $@`
173
174$(SUBDIRS):
wdenk444f22b2003-12-07 21:39:28 +0000175 $(MAKE) -C $@ all
wdenk7ebf7442002-11-02 23:17:16 +0000176
dzu9b10ef982003-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 \
wdenk270a8bd2004-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 \
wdenka0ebde52004-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:
wdenk9c07bf62004-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#========================================================================
wdenk359733b2003-03-31 17:27:09 +0000217
218#########################################################################
219## MPC5xx Systems
220#########################################################################
221
wdenkf1d0ff42005-04-13 23:15:10 +0000222canmb_config: unconfig
223 @./mkconfig -a canmb ppc mpc5xxx canmb
224
wdenk359733b2003-03-31 17:27:09 +0000225cmi_mpc5xx_config: unconfig
226 @./mkconfig $(@:_config=) ppc mpc5xx cmi
227
wdenk634d2f72004-04-15 23:14:49 +0000228PATI_config: unconfig
wdenkbc01dd52004-01-02 16:05:07 +0000229 @./mkconfig $(@:_config=) ppc mpc5xx pati mpl
230
wdenk7ebf7442002-11-02 23:17:16 +0000231#########################################################################
wdenk21136db2003-07-16 21:53:01 +0000232## MPC5xxx Systems
233#########################################################################
wdenk8d414a72005-06-10 10:00:19 +0000234
Wolfgang Denk3863d6b2005-08-12 00:22:49 +0200235aev_config: unconfig
236 @./mkconfig -a aev ppc mpc5xxx tqm5200
237
Stefan Roese99200d22005-08-22 17:51:53 +0200238cpci5200_config: unconfig
239 @./mkconfig -a cpci5200 ppc mpc5xxx cpci5200 esd
240
wdenk8d414a72005-06-10 10:00:19 +0000241hmi1001_config: unconfig
242 @./mkconfig hmi1001 ppc mpc5xxx hmi1001
243
wdenke44b9112004-04-18 23:32:11 +0000244Lite5200_config \
245Lite5200_LOWBOOT_config \
246Lite5200_LOWBOOT08_config \
247icecube_5200_config \
248icecube_5200_LOWBOOT_config \
249icecube_5200_LOWBOOT08_config \
250icecube_5200_DDR_config \
251icecube_5200_DDR_LOWBOOT_config \
252icecube_5200_DDR_LOWBOOT08_config \
253icecube_5100_config: unconfig
wdenk21136db2003-07-16 21:53:01 +0000254 @ >include/config.h
wdenk9c07bf62004-04-10 20:43:50 +0000255 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
256 { if [ "$(findstring DDR,$@)" ] ; \
257 then echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
258 else echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \
259 fi ; \
wdenk4b16c2e2003-11-07 13:42:26 +0000260 echo "... with LOWBOOT configuration" ; \
261 }
262 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
263 { echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
264 echo "... with 8 MB flash only" ; \
wdenk9c07bf62004-04-10 20:43:50 +0000265 echo "... with LOWBOOT configuration" ; \
wdenk4b16c2e2003-11-07 13:42:26 +0000266 }
wdenk236d3fc2003-12-20 22:45:10 +0000267 @[ -z "$(findstring DDR,$@)" ] || \
268 { echo "#define CONFIG_MPC5200_DDR" >>include/config.h ; \
269 echo "... DDR memory revision" ; \
270 }
wdenk1ebf41e2004-01-02 14:00:00 +0000271 @[ -z "$(findstring 5200,$@)" ] || \
272 { echo "#define CONFIG_MPC5200" >>include/config.h ; \
273 echo "... with MPC5200 processor" ; \
274 }
wdenk55618472003-10-28 09:14:21 +0000275 @[ -z "$(findstring 5100,$@)" ] || \
wdenk21136db2003-07-16 21:53:01 +0000276 { echo "#define CONFIG_MGT5100" >>include/config.h ; \
277 echo "... with MGT5100 processor" ; \
278 }
279 @./mkconfig -a IceCube ppc mpc5xxx icecube
280
wdenk4ca32362004-12-16 15:52:40 +0000281inka4x0_config: unconfig
282 @./mkconfig inka4x0 ppc mpc5xxx inka4x0
283
Wolfgang Denk672f2e82005-08-18 01:22:22 +0200284o2dnt_config:
285 @./mkconfig -a o2dnt ppc mpc5xxx o2dnt
286
Stefan Roese99200d22005-08-22 17:51:53 +0200287pf5200_config: unconfig
288 @./mkconfig -a pf5200 ppc mpc5xxx pf5200 esd
289
wdenkda54bc92004-08-04 21:56:49 +0000290PM520_config \
291PM520_DDR_config \
292PM520_ROMBOOT_config \
293PM520_ROMBOOT_DDR_config: unconfig
294 @ >include/config.h
295 @[ -z "$(findstring DDR,$@)" ] || \
296 { echo "#define CONFIG_MPC5200_DDR" >>include/config.h ; \
297 echo "... DDR memory revision" ; \
298 }
299 @[ -z "$(findstring ROMBOOT,$@)" ] || \
300 { echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
301 echo "... booting from 8-bit flash" ; \
302 }
303 @./mkconfig -a PM520 ppc mpc5xxx pm520
304
wdenk1ebf41e2004-01-02 14:00:00 +0000305MINI5200_config \
306EVAL5200_config \
307TOP5200_config: unconfig
308 @ echo "#define CONFIG_$(@:_config=) 1" >include/config.h
309 @./mkconfig -a TOP5200 ppc mpc5xxx top5200 emk
310
wdenkcc3f8a92004-07-11 19:17:20 +0000311Total5100_config \
312Total5200_config \
313Total5200_lowboot_config \
314Total5200_Rev2_config \
315Total5200_Rev2_lowboot_config: unconfig
316 @ >include/config.h
317 @[ -z "$(findstring 5100,$@)" ] || \
318 { echo "#define CONFIG_MGT5100" >>include/config.h ; \
319 echo "... with MGT5100 processor" ; \
320 }
321 @[ -z "$(findstring 5200,$@)" ] || \
322 { echo "#define CONFIG_MPC5200" >>include/config.h ; \
323 echo "... with MPC5200 processor" ; \
324 }
325 @[ -n "$(findstring Rev,$@)" ] || \
326 { echo "#define CONFIG_TOTAL5200_REV 1" >>include/config.h ; \
327 echo "... revision 1 board" ; \
328 }
329 @[ -z "$(findstring Rev2_,$@)" ] || \
330 { echo "#define CONFIG_TOTAL5200_REV 2" >>include/config.h ; \
331 echo "... revision 2 board" ; \
332 }
333 @[ -z "$(findstring lowboot_,$@)" ] || \
334 { echo "TEXT_BASE = 0xFE000000" >board/total5200/config.tmp ; \
335 echo "... with lowboot configuration" ; \
336 }
337 @./mkconfig -a Total5200 ppc mpc5xxx total5200
338
Wolfgang Denk4361d522005-08-18 00:06:50 +0200339TQM5200_auto_config \
wdenk64519362004-07-11 17:40:54 +0000340TQM5200_AA_config \
341TQM5200_AB_config \
342TQM5200_AC_config \
343MiniFAP_config: unconfig
344 @ >include/config.h
wdenkda54bc92004-08-04 21:56:49 +0000345 @[ -z "$(findstring MiniFAP,$@)" ] || \
wdenk64519362004-07-11 17:40:54 +0000346 { echo "#define CONFIG_MINIFAP" >>include/config.h ; \
347 echo "#define CONFIG_TQM5200_AC" >>include/config.h ; \
wdenkda54bc92004-08-04 21:56:49 +0000348 echo "... TQM5200_AC on MiniFAP" ; \
wdenk64519362004-07-11 17:40:54 +0000349 }
350 @[ -z "$(findstring AA,$@)" ] || \
351 { echo "#define CONFIG_TQM5200_AA" >>include/config.h ; \
352 echo "... with 4 MB Flash, 16 MB SDRAM, 32 kB EEPROM" ; \
353 }
354 @[ -z "$(findstring AB,$@)" ] || \
355 { echo "#define CONFIG_TQM5200_AB" >>include/config.h ; \
356 echo "... with 64 MB Flash, 64 MB SDRAM, 32 kB EEPROM, 512 kB SRAM" ; \
wdenk79cf7572004-08-28 21:09:14 +0000357 echo "... with Graphics Controller"; \
wdenk64519362004-07-11 17:40:54 +0000358 }
359 @[ -z "$(findstring AC,$@)" ] || \
360 { echo "#define CONFIG_TQM5200_AC" >>include/config.h ; \
361 echo "... with 4 MB Flash, 128 MB SDRAM" ; \
wdenk79cf7572004-08-28 21:09:14 +0000362 echo "... with Graphics Controller"; \
wdenk64519362004-07-11 17:40:54 +0000363 }
wdenkdc130442004-12-12 22:06:17 +0000364 @[ -z "$(findstring auto,$@)" ] || \
365 { echo "#define CONFIG_CS_AUTOCONF" >>include/config.h ; \
366 echo "... with automatic CS configuration" ; \
367 }
wdenk64519362004-07-11 17:40:54 +0000368 @./mkconfig -a TQM5200 ppc mpc5xxx tqm5200
369
Wolfgang Denk53ab5bd2005-08-10 11:03:05 +0200370spieval_config: unconfig
371 echo "#define CONFIG_CS_AUTOCONF">>include/config.h
372 echo "... with automatic CS configuration"
373 @./mkconfig -a spieval ppc mpc5xxx tqm5200
374
wdenk21136db2003-07-16 21:53:01 +0000375#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000376## MPC8xx Systems
377#########################################################################
378
wdenk9f664dd2004-06-09 21:50:45 +0000379Adder_config \
380Adder87x_config \
wdenkec5dc0d2004-07-09 22:51:01 +0000381AdderII_config \
wdenk9f664dd2004-06-09 21:50:45 +0000382 : unconfig
wdenkec5dc0d2004-07-09 22:51:01 +0000383 $(if $(findstring AdderII,$@), \
wdenk9f664dd2004-06-09 21:50:45 +0000384 @echo "#define CONFIG_MPC852T" > include/config.h)
385 @./mkconfig -a Adder ppc mpc8xx adder
386
wdenkad276f22004-01-04 16:28:35 +0000387ADS860_config \
wdenkad276f22004-01-04 16:28:35 +0000388FADS823_config \
389FADS850SAR_config \
390MPC86xADS_config \
wdenka7556b22004-06-06 21:35:06 +0000391MPC885ADS_config \
wdenkad276f22004-01-04 16:28:35 +0000392FADS860T_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000393 @./mkconfig $(@:_config=) ppc mpc8xx fads
394
395AMX860_config : unconfig
396 @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
397
398c2mon_config: unconfig
399 @./mkconfig $(@:_config=) ppc mpc8xx c2mon
400
401CCM_config: unconfig
402 @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
403
404cogent_mpc8xx_config: unconfig
405 @./mkconfig $(@:_config=) ppc mpc8xx cogent
406
wdenkef5fe752003-03-12 10:41:04 +0000407ELPT860_config: unconfig
408 @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
409
wdenk7ebf7442002-11-02 23:17:16 +0000410ESTEEM192E_config: unconfig
411 @./mkconfig $(@:_config=) ppc mpc8xx esteem192e
412
413ETX094_config : unconfig
414 @./mkconfig $(@:_config=) ppc mpc8xx etx094
415
wdenk7ebf7442002-11-02 23:17:16 +0000416FLAGADM_config: unconfig
417 @./mkconfig $(@:_config=) ppc mpc8xx flagadm
418
wdenk541a76d2003-05-03 15:50:43 +0000419xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
420
421GEN860T_SC_config \
wdenk7ebf7442002-11-02 23:17:16 +0000422GEN860T_config: unconfig
wdenk541a76d2003-05-03 15:50:43 +0000423 @ >include/config.h
424 @[ -z "$(findstring _SC,$@)" ] || \
425 { echo "#define CONFIG_SC" >>include/config.h ; \
426 echo "With reduced H/W feature set (SC)..." ; \
427 }
428 @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
wdenk7ebf7442002-11-02 23:17:16 +0000429
430GENIETV_config: unconfig
431 @./mkconfig $(@:_config=) ppc mpc8xx genietv
432
433GTH_config: unconfig
434 @./mkconfig $(@:_config=) ppc mpc8xx gth
435
436hermes_config : unconfig
437 @./mkconfig $(@:_config=) ppc mpc8xx hermes
438
wdenkf602aa02004-03-13 23:29:43 +0000439HMI10_config : unconfig
440 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
441
wdenk7ebf7442002-11-02 23:17:16 +0000442IAD210_config: unconfig
443 @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
444
445xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
446
447ICU862_100MHz_config \
448ICU862_config: unconfig
449 @ >include/config.h
450 @[ -z "$(findstring _100MHz,$@)" ] || \
451 { echo "#define CONFIG_100MHz" >>include/config.h ; \
452 echo "... with 100MHz system clock" ; \
453 }
454 @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
455
456IP860_config : unconfig
457 @./mkconfig $(@:_config=) ppc mpc8xx ip860
458
459IVML24_256_config \
460IVML24_128_config \
461IVML24_config: unconfig
462 @ >include/config.h
463 @[ -z "$(findstring IVML24_config,$@)" ] || \
464 { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \
465 }
466 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
467 { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \
468 }
469 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
470 { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \
471 }
472 @./mkconfig -a IVML24 ppc mpc8xx ivm
473
474IVMS8_256_config \
475IVMS8_128_config \
476IVMS8_config: unconfig
477 @ >include/config.h
478 @[ -z "$(findstring IVMS8_config,$@)" ] || \
479 { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \
480 }
481 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
482 { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \
483 }
484 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
485 { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \
486 }
487 @./mkconfig -a IVMS8 ppc mpc8xx ivm
488
wdenk56f94be2002-11-05 16:35:14 +0000489KUP4K_config : unconfig
wdenk65faef92004-03-25 19:29:38 +0000490 @./mkconfig $(@:_config=) ppc mpc8xx kup4k kup
491
492KUP4X_config : unconfig
493 @./mkconfig $(@:_config=) ppc mpc8xx kup4x kup
wdenk56f94be2002-11-05 16:35:14 +0000494
wdenk7ebf7442002-11-02 23:17:16 +0000495LANTEC_config : unconfig
496 @./mkconfig $(@:_config=) ppc mpc8xx lantec
497
498lwmon_config: unconfig
499 @./mkconfig $(@:_config=) ppc mpc8xx lwmon
500
501MBX_config \
502MBX860T_config: unconfig
503 @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
504
505MHPC_config: unconfig
506 @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
507
508MVS1_config : unconfig
509 @./mkconfig $(@:_config=) ppc mpc8xx mvs1
510
wdenk70764a32003-06-26 22:04:09 +0000511xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
512
513NETVIA_V2_config \
wdenk7ebf7442002-11-02 23:17:16 +0000514NETVIA_config: unconfig
wdenk70764a32003-06-26 22:04:09 +0000515 @ >include/config.h
516 @[ -z "$(findstring NETVIA_config,$@)" ] || \
517 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
518 echo "... Version 1" ; \
519 }
520 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
521 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
522 echo "... Version 2" ; \
523 }
524 @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
wdenk7ebf7442002-11-02 23:17:16 +0000525
wdenk6203e402004-04-18 10:13:26 +0000526xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
527
528NETPHONE_V2_config \
wdenk3902d702004-04-15 18:22:41 +0000529NETPHONE_config: unconfig
wdenk6203e402004-04-18 10:13:26 +0000530 @ >include/config.h
531 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
532 { echo "#define CONFIG_NETPHONE_VERSION 1" >>include/config.h ; \
533 }
534 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
535 { echo "#define CONFIG_NETPHONE_VERSION 2" >>include/config.h ; \
536 }
537 @./mkconfig -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
wdenk3902d702004-04-15 18:22:41 +0000538
wdenkc4e854f2004-06-07 23:46:25 +0000539xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
wdenk3902d702004-04-15 18:22:41 +0000540
wdenkc4e854f2004-06-07 23:46:25 +0000541NETTA_ISDN_6412_SWAPHOOK_config \
542NETTA_ISDN_SWAPHOOK_config \
543NETTA_6412_SWAPHOOK_config \
544NETTA_SWAPHOOK_config \
545NETTA_ISDN_6412_config \
wdenk3902d702004-04-15 18:22:41 +0000546NETTA_ISDN_config \
wdenkc4e854f2004-06-07 23:46:25 +0000547NETTA_6412_config \
wdenk3902d702004-04-15 18:22:41 +0000548NETTA_config: unconfig
549 @ >include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000550 @[ -z "$(findstring ISDN_,$@)" ] || \
551 { echo "#define CONFIG_NETTA_ISDN 1" >>include/config.h ; \
552 }
553 @[ -n "$(findstring ISDN_,$@)" ] || \
wdenk3902d702004-04-15 18:22:41 +0000554 { echo "#undef CONFIG_NETTA_ISDN" >>include/config.h ; \
555 }
wdenkc4e854f2004-06-07 23:46:25 +0000556 @[ -z "$(findstring 6412_,$@)" ] || \
557 { echo "#define CONFIG_NETTA_6412 1" >>include/config.h ; \
558 }
559 @[ -n "$(findstring 6412_,$@)" ] || \
560 { echo "#undef CONFIG_NETTA_6412" >>include/config.h ; \
561 }
562 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
563 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>include/config.h ; \
564 }
565 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
566 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>include/config.h ; \
wdenk3902d702004-04-15 18:22:41 +0000567 }
568 @./mkconfig -a $(call xtract_NETTA,$@) ppc mpc8xx netta
569
wdenkc4e854f2004-06-07 23:46:25 +0000570xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
571
572NETTA2_V2_config \
573NETTA2_config: unconfig
574 @ >include/config.h
575 @[ -z "$(findstring NETTA2_config,$@)" ] || \
576 { echo "#define CONFIG_NETTA2_VERSION 1" >>include/config.h ; \
577 }
578 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
579 { echo "#define CONFIG_NETTA2_VERSION 2" >>include/config.h ; \
580 }
581 @./mkconfig -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
582
wdenk0bbcbd22004-08-28 22:45:57 +0000583NC650_config: unconfig
584 @./mkconfig $(@:_config=) ppc mpc8xx nc650
585
wdenk7ebf7442002-11-02 23:17:16 +0000586NX823_config: unconfig
587 @./mkconfig $(@:_config=) ppc mpc8xx nx823
588
589pcu_e_config: unconfig
590 @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
591
wdenk174e0e52003-12-07 22:27:15 +0000592QS850_config: unconfig
593 @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
594
595QS823_config: unconfig
596 @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
597
598QS860T_config: unconfig
599 @./mkconfig $(@:_config=) ppc mpc8xx qs860t snmc
600
wdenk7d1eb822004-09-29 11:02:56 +0000601quantum_config: unconfig
602 @./mkconfig $(@:_config=) ppc mpc8xx quantum
603
wdenk7ebf7442002-11-02 23:17:16 +0000604R360MPI_config: unconfig
605 @./mkconfig $(@:_config=) ppc mpc8xx r360mpi
606
wdenk4e112c12003-06-03 23:54:09 +0000607RBC823_config: unconfig
608 @./mkconfig $(@:_config=) ppc mpc8xx rbc823
609
wdenk7ebf7442002-11-02 23:17:16 +0000610RPXClassic_config: unconfig
611 @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
612
613RPXlite_config: unconfig
614 @./mkconfig $(@:_config=) ppc mpc8xx RPXlite
615
wdenkec432742004-06-09 21:04:48 +0000616RPXlite_DW_64_config \
617RPXlite_DW_LCD_config \
618RPXlite_DW_64_LCD_config \
619RPXlite_DW_NVRAM_config \
620RPXlite_DW_NVRAM_64_config \
621RPXlite_DW_NVRAM_LCD_config \
622RPXlite_DW_NVRAM_64_LCD_config \
623RPXlite_DW_config: unconfig
624 @ >include/config.h
625 @[ -z "$(findstring _64,$@)" ] || \
626 { echo "#define RPXlite_64MHz" >>include/config.h ; \
627 echo "... with 64MHz system clock ..."; \
628 }
629 @[ -z "$(findstring _LCD,$@)" ] || \
630 { echo "#define CONFIG_LCD" >>include/config.h ; \
631 echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \
632 echo "... with LCD display ..."; \
633 }
634 @[ -z "$(findstring _NVRAM,$@)" ] || \
635 { echo "#define CFG_ENV_IS_IN_NVRAM" >>include/config.h ; \
636 echo "... with ENV in NVRAM ..."; \
637 }
638 @./mkconfig -a RPXlite_DW ppc mpc8xx RPXlite_dw
639
wdenke6466f62003-06-05 19:27:42 +0000640rmu_config: unconfig
641 @./mkconfig $(@:_config=) ppc mpc8xx rmu
642
wdenk7ebf7442002-11-02 23:17:16 +0000643RRvision_config: unconfig
644 @./mkconfig $(@:_config=) ppc mpc8xx RRvision
645
646RRvision_LCD_config: unconfig
647 @echo "#define CONFIG_LCD" >include/config.h
648 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
649 @./mkconfig -a RRvision ppc mpc8xx RRvision
650
651SM850_config : unconfig
652 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
653
654SPD823TS_config: unconfig
655 @./mkconfig $(@:_config=) ppc mpc8xx spd8xx
656
Wolfgang Denk72fdb6c2005-08-15 15:55:00 +0200657stxxtc_config: unconfig
658 @./mkconfig $(@:_config=) ppc mpc8xx stxxtc
659
wdenkc8434db2003-03-26 06:55:25 +0000660svm_sc8xx_config: unconfig
661 @ >include/config.h
662 @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
663
wdenk7ebf7442002-11-02 23:17:16 +0000664SXNI855T_config: unconfig
665 @./mkconfig $(@:_config=) ppc mpc8xx sixnet
666
wdenkb666c8f2003-03-06 00:58:30 +0000667# EMK MPC8xx based modules
668TOP860_config: unconfig
669 @./mkconfig $(@:_config=) ppc mpc8xx top860 emk
670
wdenk7ebf7442002-11-02 23:17:16 +0000671# Play some tricks for configuration selection
wdenkc78bf132004-04-24 23:23:30 +0000672# Only 855 and 860 boards may come with FEC
673# and only 823 boards may have LCD support
674xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
wdenk7ebf7442002-11-02 23:17:16 +0000675
676FPS850L_config \
wdenk384ae022002-11-05 00:17:55 +0000677FPS860L_config \
wdenk69141282003-07-07 20:07:54 +0000678NSCU_config \
wdenk7ebf7442002-11-02 23:17:16 +0000679TQM823L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000680TQM823L_LCD_config \
wdenk7ebf7442002-11-02 23:17:16 +0000681TQM850L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000682TQM855L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000683TQM860L_config \
wdenk6bd14892003-04-10 11:18:18 +0000684TQM862L_config \
wdenkfb229ae2003-08-07 22:18:11 +0000685TQM823M_config \
wdenkfb229ae2003-08-07 22:18:11 +0000686TQM850M_config \
wdenk69141282003-07-07 20:07:54 +0000687TQM855M_config \
wdenk69141282003-07-07 20:07:54 +0000688TQM860M_config \
wdenk69141282003-07-07 20:07:54 +0000689TQM862M_config \
wdenkb50cde52004-01-24 20:25:54 +0000690TQM866M_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000691 @ >include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000692 @[ -z "$(findstring _LCD,$@)" ] || \
693 { echo "#define CONFIG_LCD" >>include/config.h ; \
wdenkc0d54ae2003-11-25 16:55:19 +0000694 echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +0000695 echo "... with LCD display" ; \
696 }
697 @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
698
699TTTech_config: unconfig
700 @echo "#define CONFIG_LCD" >include/config.h
701 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
702 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
703
wdenk11392db2004-12-19 09:58:11 +0000704uc100_config : unconfig
wdenk51242782004-12-18 22:35:43 +0000705 @./mkconfig $(@:_config=) ppc mpc8xx uc100
706
wdenk2dad91b2003-01-13 23:54:46 +0000707v37_config: unconfig
708 @echo "#define CONFIG_LCD" >include/config.h
709 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
710 @./mkconfig $(@:_config=) ppc mpc8xx v37
711
dzu69438f62003-09-25 22:32:40 +0000712wtk_config: unconfig
713 @echo "#define CONFIG_LCD" >include/config.h
714 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
715 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
716
wdenk7ebf7442002-11-02 23:17:16 +0000717#########################################################################
718## PPC4xx Systems
719#########################################################################
wdenk99874b42004-07-01 21:40:08 +0000720xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
wdenk7ebf7442002-11-02 23:17:16 +0000721
722ADCIOP_config: unconfig
723 @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
724
Wolfgang Denk56811f62005-10-09 01:04:33 +0200725AP1000_config:unconfig
726 @./mkconfig $(@:_config=) ppc ppc4xx ap1000 amirix
727
stroese05b88912004-12-16 18:44:40 +0000728APC405_config: unconfig
729 @./mkconfig $(@:_config=) ppc ppc4xx apc405 esd
730
wdenk7ebf7442002-11-02 23:17:16 +0000731AR405_config: unconfig
732 @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
733
stroesebfcc82b2003-05-23 11:41:44 +0000734ASH405_config: unconfig
735 @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
736
Stefan Roese3e1f1b32005-08-01 16:49:12 +0200737bamboo_config: unconfig
738 @./mkconfig $(@:_config=) ppc ppc4xx bamboo amcc
739
740bubinga_config: unconfig
741 @./mkconfig $(@:_config=) ppc ppc4xx bubinga amcc
stroesebfcc82b2003-05-23 11:41:44 +0000742
wdenk7ebf7442002-11-02 23:17:16 +0000743CANBT_config: unconfig
744 @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
745
wdenk9e7130b2004-09-09 17:44:35 +0000746CATcenter_config \
747CATcenter_25_config \
748CATcenter_33_config: unconfig
wdenkbb33bab2004-05-13 13:23:58 +0000749 @ echo "/* CATcenter uses PPChameleon Model ME */" > include/config.h
750 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> include/config.h
wdenk9e7130b2004-09-09 17:44:35 +0000751 @[ -z "$(findstring _25,$@)" ] || \
752 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
753 echo "SysClk = 25MHz" ; \
754 }
755 @[ -z "$(findstring _33,$@)" ] || \
756 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
757 echo "SysClk = 33MHz" ; \
758 }
wdenkbb33bab2004-05-13 13:23:58 +0000759 @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
760
Stefan Roesea34997d2005-09-22 09:16:57 +0200761CPCI2DP_config: unconfig
762 @./mkconfig $(@:_config=) ppc ppc4xx cpci2dp esd
763
stroesebfcc82b2003-05-23 11:41:44 +0000764CPCI405_config \
765CPCI4052_config \
stroese05b88912004-12-16 18:44:40 +0000766CPCI405DT_config \
stroesebfcc82b2003-05-23 11:41:44 +0000767CPCI405AB_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000768 @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
769 @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
770
771CPCI440_config: unconfig
772 @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
773
774CPCIISER4_config: unconfig
775 @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
776
wdenk634d2f72004-04-15 23:14:49 +0000777CRAYL1_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000778 @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
779
wdenkf70cbb22004-02-23 20:48:38 +0000780csb272_config: unconfig
781 @./mkconfig $(@:_config=) ppc ppc4xx csb272
782
wdenk7e920de2004-06-09 12:47:02 +0000783csb472_config: unconfig
784 @./mkconfig $(@:_config=) ppc ppc4xx csb472
785
wdenk7ebf7442002-11-02 23:17:16 +0000786DASA_SIM_config: unconfig
787 @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
788
stroese3361eb72003-09-12 08:57:15 +0000789DP405_config: unconfig
790 @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
791
wdenk7ebf7442002-11-02 23:17:16 +0000792DU405_config: unconfig
793 @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
794
Stefan Roese3e1f1b32005-08-01 16:49:12 +0200795ebony_config: unconfig
796 @./mkconfig $(@:_config=) ppc ppc4xx ebony amcc
wdenk7ebf7442002-11-02 23:17:16 +0000797
wdenk634d2f72004-04-15 23:14:49 +0000798ERIC_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000799 @./mkconfig $(@:_config=) ppc ppc4xx eric
800
wdenk634d2f72004-04-15 23:14:49 +0000801EXBITGEN_config: unconfig
wdenkd9fce812003-06-28 17:24:46 +0000802 @./mkconfig $(@:_config=) ppc ppc4xx exbitgen
803
stroese05b88912004-12-16 18:44:40 +0000804G2000_config: unconfig
805 @./mkconfig $(@:_config=) ppc ppc4xx g2000
806
807HH405_config: unconfig
808 @./mkconfig $(@:_config=) ppc ppc4xx hh405 esd
809
stroese3361eb72003-09-12 08:57:15 +0000810HUB405_config: unconfig
811 @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
812
wdenk634d2f72004-04-15 23:14:49 +0000813JSE_config: unconfig
814 @./mkconfig $(@:_config=) ppc ppc4xx jse
815
Stefan Roese5ff4c3f2005-08-15 12:31:23 +0200816KAREF_config: unconfig
817 @./mkconfig $(@:_config=) ppc ppc4xx karef sandburst
818
Stefan Roese99644742005-11-29 18:18:21 +0100819luan_config: unconfig
820 @./mkconfig $(@:_config=) ppc ppc4xx luan amcc
821
Stefan Roese5ff4c3f2005-08-15 12:31:23 +0200822METROBOX_config: unconfig
823 @./mkconfig $(@:_config=) ppc ppc4xx metrobox sandburst
824
wdenk634d2f72004-04-15 23:14:49 +0000825MIP405_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000826 @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
827
wdenk634d2f72004-04-15 23:14:49 +0000828MIP405T_config: unconfig
wdenke39c2842003-06-04 15:05:30 +0000829 @echo "#define CONFIG_MIP405T" >include/config.h
830 @echo "Enable subset config for MIP405T"
831 @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
832
wdenk634d2f72004-04-15 23:14:49 +0000833ML2_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000834 @./mkconfig $(@:_config=) ppc ppc4xx ml2
835
wdenk634d2f72004-04-15 23:14:49 +0000836ml300_config: unconfig
wdenke537b3b2004-02-23 23:54:43 +0000837 @./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx
838
Stefan Roese3e1f1b32005-08-01 16:49:12 +0200839ocotea_config: unconfig
840 @./mkconfig $(@:_config=) ppc ppc4xx ocotea amcc
wdenk00fe1612004-03-14 00:07:33 +0000841
wdenk7ebf7442002-11-02 23:17:16 +0000842OCRTC_config \
843ORSG_config: unconfig
844 @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
845
Stefan Roesec443fe92005-11-22 13:20:42 +0100846p3p440_config: unconfig
847 @./mkconfig $(@:_config=) ppc ppc4xx p3p440 prodrive
848
wdenk7ebf7442002-11-02 23:17:16 +0000849PCI405_config: unconfig
850 @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
851
wdenk634d2f72004-04-15 23:14:49 +0000852PIP405_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000853 @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
854
stroese3361eb72003-09-12 08:57:15 +0000855PLU405_config: unconfig
856 @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
857
stroesebfcc82b2003-05-23 11:41:44 +0000858PMC405_config: unconfig
859 @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
860
wdenk7ac16102004-08-01 22:48:16 +0000861PPChameleonEVB_config \
wdenk99874b42004-07-01 21:40:08 +0000862PPChameleonEVB_BA_25_config \
863PPChameleonEVB_ME_25_config \
864PPChameleonEVB_HI_25_config \
865PPChameleonEVB_BA_33_config \
866PPChameleonEVB_ME_33_config \
867PPChameleonEVB_HI_33_config: unconfig
wdenk7182b0f2003-10-06 21:55:32 +0000868 @ >include/config.h
wdenk9e7130b2004-09-09 17:44:35 +0000869 @[ -z "$(findstring EVB_BA,$@)" ] || \
wdenk7182b0f2003-10-06 21:55:32 +0000870 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
871 echo "... BASIC model" ; \
872 }
wdenk9e7130b2004-09-09 17:44:35 +0000873 @[ -z "$(findstring EVB_ME,$@)" ] || \
wdenk7182b0f2003-10-06 21:55:32 +0000874 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
875 echo "... MEDIUM model" ; \
876 }
wdenk9e7130b2004-09-09 17:44:35 +0000877 @[ -z "$(findstring EVB_HI,$@)" ] || \
wdenk7182b0f2003-10-06 21:55:32 +0000878 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
879 echo "... HIGH-END model" ; \
880 }
wdenk99874b42004-07-01 21:40:08 +0000881 @[ -z "$(findstring _25,$@)" ] || \
882 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
wdenk9e7130b2004-09-09 17:44:35 +0000883 echo "SysClk = 25MHz" ; \
wdenk99874b42004-07-01 21:40:08 +0000884 }
885 @[ -z "$(findstring _33,$@)" ] || \
886 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
wdenk9e7130b2004-09-09 17:44:35 +0000887 echo "SysClk = 33MHz" ; \
wdenk99874b42004-07-01 21:40:08 +0000888 }
wdenk7182b0f2003-10-06 21:55:32 +0000889 @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
wdenk232fe0b2003-09-02 22:48:03 +0000890
wdenkd3341052005-01-09 23:48:14 +0000891sbc405_config: unconfig
892 @./mkconfig $(@:_config=) ppc ppc4xx sbc405
893
Stefan Roese3e1f1b32005-08-01 16:49:12 +0200894sycamore_config: unconfig
895 @echo "Configuring for sycamore board as subset of walnut..."
896 @./mkconfig -a walnut ppc ppc4xx walnut amcc
897
stroese3361eb72003-09-12 08:57:15 +0000898VOH405_config: unconfig
899 @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
900
stroese05b88912004-12-16 18:44:40 +0000901VOM405_config: unconfig
902 @./mkconfig $(@:_config=) ppc ppc4xx vom405 esd
903
Stefan Roesef2303272005-11-15 10:35:59 +0100904CMS700_config: unconfig
905 @./mkconfig $(@:_config=) ppc ppc4xx cms700 esd
906
wdenk7ebf7442002-11-02 23:17:16 +0000907W7OLMC_config \
908W7OLMG_config: unconfig
909 @./mkconfig $(@:_config=) ppc ppc4xx w7o
910
Stefan Roese3e1f1b32005-08-01 16:49:12 +0200911walnut_config: unconfig
912 @./mkconfig $(@:_config=) ppc ppc4xx walnut amcc
wdenk7ebf7442002-11-02 23:17:16 +0000913
stroese05b88912004-12-16 18:44:40 +0000914WUH405_config: unconfig
915 @./mkconfig $(@:_config=) ppc ppc4xx wuh405 esd
916
wdenk634d2f72004-04-15 23:14:49 +0000917XPEDITE1K_config: unconfig
wdenk544e9732004-02-06 23:19:44 +0000918 @./mkconfig $(@:_config=) ppc ppc4xx xpedite1k
919
Stefan Roese3e1f1b32005-08-01 16:49:12 +0200920yosemite_config: unconfig
921 @./mkconfig $(@:_config=) ppc ppc4xx yosemite amcc
922
923yellowstone_config: unconfig
924 @./mkconfig $(@:_config=) ppc ppc4xx yellowstone amcc
925
wdenk7ebf7442002-11-02 23:17:16 +0000926#########################################################################
wdenk337f5652004-10-28 00:09:35 +0000927## MPC8220 Systems
928#########################################################################
Wolfgang Denkdb5f3862005-08-03 22:32:02 +0200929
930Alaska8220_config \
931Yukon8220_config: unconfig
wdenk337f5652004-10-28 00:09:35 +0000932 @./mkconfig $(@:_config=) ppc mpc8220 alaska
933
wdenkccfe25d2005-04-05 21:57:18 +0000934sorcery_config: unconfig
935 @./mkconfig $(@:_config=) ppc mpc8220 sorcery
936
wdenk337f5652004-10-28 00:09:35 +0000937#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000938## MPC824x Systems
939#########################################################################
wdenkc12081a2004-03-23 20:18:25 +0000940xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
wdenkef5fe752003-03-12 10:41:04 +0000941
wdenk8aeb24e2003-06-20 22:36:30 +0000942A3000_config: unconfig
943 @./mkconfig $(@:_config=) ppc mpc824x a3000
944
Wolfgang Denka48c7252005-09-25 18:59:36 +0200945barco_config: unconfig
946 @./mkconfig $(@:_config=) ppc mpc824x barco
947
wdenk7ebf7442002-11-02 23:17:16 +0000948BMW_config: unconfig
949 @./mkconfig $(@:_config=) ppc mpc824x bmw
950
wdenkef5fe752003-03-12 10:41:04 +0000951CPC45_config \
952CPC45_ROMBOOT_config: unconfig
953 @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
954 @cd ./include ; \
955 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
956 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
957 echo "... booting from 8-bit flash" ; \
958 else \
959 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
960 echo "... booting from 64-bit flash" ; \
961 fi; \
962 echo "export CONFIG_BOOT_ROM" >> config.mk;
963
wdenk7ebf7442002-11-02 23:17:16 +0000964CU824_config: unconfig
965 @./mkconfig $(@:_config=) ppc mpc824x cu824
966
wdenk78924a72004-04-18 21:45:42 +0000967debris_config: unconfig
968 @./mkconfig $(@:_config=) ppc mpc824x debris etin
969
wdenk5f495752004-02-26 23:46:20 +0000970eXalion_config: unconfig
971 @./mkconfig $(@:_config=) ppc mpc824x eXalion
972
wdenke0c812a2005-04-03 15:51:42 +0000973HIDDEN_DRAGON_config: unconfig
974 @./mkconfig $(@:_config=) ppc mpc824x hidden_dragon
975
wdenk7ebf7442002-11-02 23:17:16 +0000976MOUSSE_config: unconfig
977 @./mkconfig $(@:_config=) ppc mpc824x mousse
978
979MUSENKI_config: unconfig
980 @./mkconfig $(@:_config=) ppc mpc824x musenki
981
wdenk4e7a58a2003-12-07 19:24:00 +0000982MVBLUE_config: unconfig
983 @./mkconfig $(@:_config=) ppc mpc824x mvblue
984
wdenk7ebf7442002-11-02 23:17:16 +0000985OXC_config: unconfig
986 @./mkconfig $(@:_config=) ppc mpc824x oxc
987
988PN62_config: unconfig
989 @./mkconfig $(@:_config=) ppc mpc824x pn62
990
991Sandpoint8240_config: unconfig
992 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
993
994Sandpoint8245_config: unconfig
995 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
996
wdenk265d2172004-07-10 22:35:59 +0000997sbc8240_config: unconfig
998 @./mkconfig $(@:_config=) ppc mpc824x sbc8240
999
wdenkd9fce812003-06-28 17:24:46 +00001000SL8245_config: unconfig
1001 @./mkconfig $(@:_config=) ppc mpc824x sl8245
1002
wdenk7ebf7442002-11-02 23:17:16 +00001003utx8245_config: unconfig
1004 @./mkconfig $(@:_config=) ppc mpc824x utx8245
1005
1006#########################################################################
1007## MPC8260 Systems
1008#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001009
wdenk2f0812d2003-10-08 22:45:44 +00001010atc_config: unconfig
1011 @./mkconfig $(@:_config=) ppc mpc8260 atc
1012
wdenk7ebf7442002-11-02 23:17:16 +00001013cogent_mpc8260_config: unconfig
1014 @./mkconfig $(@:_config=) ppc mpc8260 cogent
1015
1016CPU86_config \
1017CPU86_ROMBOOT_config: unconfig
1018 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
1019 @cd ./include ; \
1020 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1021 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1022 echo "... booting from 8-bit flash" ; \
1023 else \
1024 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1025 echo "... booting from 64-bit flash" ; \
1026 fi; \
1027 echo "export CONFIG_BOOT_ROM" >> config.mk;
1028
wdenk6d3c6d12005-04-03 22:35:21 +00001029CPU87_config \
1030CPU87_ROMBOOT_config: unconfig
1031 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu87
1032 @cd ./include ; \
1033 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1034 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1035 echo "... booting from 8-bit flash" ; \
1036 else \
1037 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1038 echo "... booting from 64-bit flash" ; \
1039 fi; \
1040 echo "export CONFIG_BOOT_ROM" >> config.mk;
1041
Wolfgang Denk8dd4d332005-08-06 01:42:58 +02001042ep8248_config \
1043ep8248E_config : unconfig
1044 @./mkconfig ep8248 ppc mpc8260 ep8248
1045
wdenk7ebf7442002-11-02 23:17:16 +00001046ep8260_config: unconfig
1047 @./mkconfig $(@:_config=) ppc mpc8260 ep8260
1048
1049gw8260_config: unconfig
1050 @./mkconfig $(@:_config=) ppc mpc8260 gw8260
1051
1052hymod_config: unconfig
1053 @./mkconfig $(@:_config=) ppc mpc8260 hymod
1054
wdenka7316b02005-05-12 22:48:09 +00001055IDS8247_config: unconfig
1056 @./mkconfig $(@:_config=) ppc mpc8260 ids8247
1057
wdenk7ebf7442002-11-02 23:17:16 +00001058IPHASE4539_config: unconfig
1059 @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
1060
wdenk76dd6c72004-06-09 14:47:54 +00001061ISPAN_config \
1062ISPAN_REVB_config: unconfig
1063 @if [ "$(findstring _REVB_,$@)" ] ; then \
1064 echo "#define CFG_REV_B" > include/config.h ; \
1065 fi
1066 @./mkconfig -a ISPAN ppc mpc8260 ispan
1067
wdenk3902d702004-04-15 18:22:41 +00001068MPC8260ADS_config \
wdenk874c6752005-04-03 23:22:21 +00001069MPC8260ADS_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001070MPC8260ADS_33MHz_config \
wdenk874c6752005-04-03 23:22:21 +00001071MPC8260ADS_33MHz_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001072MPC8260ADS_40MHz_config \
wdenk874c6752005-04-03 23:22:21 +00001073MPC8260ADS_40MHz_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001074MPC8272ADS_config \
wdenk874c6752005-04-03 23:22:21 +00001075MPC8272ADS_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001076PQ2FADS_config \
wdenk874c6752005-04-03 23:22:21 +00001077PQ2FADS_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001078PQ2FADS-VR_config \
wdenk874c6752005-04-03 23:22:21 +00001079PQ2FADS-VR_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001080PQ2FADS-ZU_config \
wdenk874c6752005-04-03 23:22:21 +00001081PQ2FADS-ZU_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001082PQ2FADS-ZU_66MHz_config \
wdenk874c6752005-04-03 23:22:21 +00001083PQ2FADS-ZU_66MHz_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001084 : unconfig
1085 $(if $(findstring PQ2FADS,$@), \
1086 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > include/config.h, \
1087 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > include/config.h)
1088 $(if $(findstring MHz,$@), \
1089 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> include/config.h, \
1090 $(if $(findstring VR,$@), \
1091 @echo "#define CONFIG_8260_CLKIN 66000000" >> include/config.h))
wdenk874c6752005-04-03 23:22:21 +00001092 @[ -z "$(findstring lowboot_,$@)" ] || \
1093 { echo "TEXT_BASE = 0xFF800000" >board/mpc8260ads/config.tmp ; \
1094 echo "... with lowboot configuration" ; \
1095 }
wdenk3902d702004-04-15 18:22:41 +00001096 @./mkconfig -a MPC8260ADS ppc mpc8260 mpc8260ads
wdenk7ebf7442002-11-02 23:17:16 +00001097
wdenkb666c8f2003-03-06 00:58:30 +00001098MPC8266ADS_config: unconfig
1099 @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
1100
wdenkc12081a2004-03-23 20:18:25 +00001101# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
wdenk4b57dcc2003-03-25 18:06:06 +00001102PM825_config \
wdenkc12081a2004-03-23 20:18:25 +00001103PM825_ROMBOOT_config \
1104PM825_BIGFLASH_config \
1105PM825_ROMBOOT_BIGFLASH_config \
1106PM826_config \
1107PM826_ROMBOOT_config \
1108PM826_BIGFLASH_config \
1109PM826_ROMBOOT_BIGFLASH_config: unconfig
1110 @if [ "$(findstring PM825_,$@)" ] ; then \
1111 echo "#define CONFIG_PCI" >include/config.h ; \
1112 else \
1113 >include/config.h ; \
1114 fi
1115 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
wdenk4b57dcc2003-03-25 18:06:06 +00001116 echo "... booting from 8-bit flash" ; \
wdenkc12081a2004-03-23 20:18:25 +00001117 echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
1118 echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
1119 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1120 echo "... with 32 MB Flash" ; \
1121 echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
1122 fi; \
wdenk4b57dcc2003-03-25 18:06:06 +00001123 else \
wdenk4b57dcc2003-03-25 18:06:06 +00001124 echo "... booting from 64-bit flash" ; \
wdenkc12081a2004-03-23 20:18:25 +00001125 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1126 echo "... with 32 MB Flash" ; \
1127 echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
1128 echo "TEXT_BASE = 0x40000000" >board/pm826/config.tmp ; \
1129 else \
1130 echo "TEXT_BASE = 0xFF000000" >board/pm826/config.tmp ; \
1131 fi; \
1132 fi
1133 @./mkconfig -a PM826 ppc mpc8260 pm826
wdenk4b57dcc2003-03-25 18:06:06 +00001134
wdenkc12081a2004-03-23 20:18:25 +00001135PM828_config \
1136PM828_PCI_config \
1137PM828_ROMBOOT_config \
1138PM828_ROMBOOT_PCI_config: unconfig
1139 @if [ -z "$(findstring _PCI_,$@)" ] ; then \
1140 echo "#define CONFIG_PCI" >>include/config.h ; \
1141 echo "... with PCI enabled" ; \
wdenk7ebf7442002-11-02 23:17:16 +00001142 else \
wdenkc12081a2004-03-23 20:18:25 +00001143 >include/config.h ; \
1144 fi
1145 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1146 echo "... booting from 8-bit flash" ; \
1147 echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
1148 echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
1149 fi
1150 @./mkconfig -a PM828 ppc mpc8260 pm828
wdenk7ebf7442002-11-02 23:17:16 +00001151
1152ppmc8260_config: unconfig
1153 @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
1154
wdenkbc3202a2005-04-03 23:11:38 +00001155Rattler8248_config \
1156Rattler_config: unconfig
1157 $(if $(findstring 8248,$@), \
1158 @echo "#define CONFIG_MPC8248" > include/config.h)
1159 @./mkconfig -a Rattler ppc mpc8260 rattler
1160
wdenk7ebf7442002-11-02 23:17:16 +00001161RPXsuper_config: unconfig
1162 @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
1163
1164rsdproto_config: unconfig
1165 @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
1166
1167sacsng_config: unconfig
1168 @./mkconfig $(@:_config=) ppc mpc8260 sacsng
1169
1170sbc8260_config: unconfig
1171 @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
1172
1173SCM_config: unconfig
1174 @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
1175
wdenk874ac262003-07-24 23:38:38 +00001176TQM8255_AA_config \
1177TQM8260_AA_config \
1178TQM8260_AB_config \
1179TQM8260_AC_config \
1180TQM8260_AD_config \
1181TQM8260_AE_config \
1182TQM8260_AF_config \
1183TQM8260_AG_config \
1184TQM8260_AH_config \
1185TQM8265_AA_config: unconfig
1186 @case "$@" in \
1187 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1188 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1189 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1190 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1191 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1192 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1193 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1194 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1195 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1196 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1197 esac; \
1198 >include/config.h ; \
1199 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1200 echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \
1201 fi; \
1202 echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \
1203 echo "... with $${CFREQ}MHz system clock" ; \
1204 if [ "$${CACHE}" == "yes" ] ; then \
wdenk7ebf7442002-11-02 23:17:16 +00001205 echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
wdenk874ac262003-07-24 23:38:38 +00001206 echo "... with L2 Cache support" ; \
wdenk7ebf7442002-11-02 23:17:16 +00001207 else \
1208 echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
1209 echo "... without L2 Cache support" ; \
wdenk874ac262003-07-24 23:38:38 +00001210 fi; \
1211 if [ "$${BMODE}" == "60x" ] ; then \
1212 echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
1213 echo "... with 60x Bus Mode" ; \
1214 else \
1215 echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \
1216 echo "... without 60x Bus Mode" ; \
wdenk7ebf7442002-11-02 23:17:16 +00001217 fi
wdenkc08f1582003-04-27 22:52:51 +00001218 @./mkconfig -a TQM8260 ppc mpc8260 tqm8260
wdenk7ebf7442002-11-02 23:17:16 +00001219
wdenkc28149c2005-05-30 23:55:42 +00001220VoVPN-GW_66MHz_config \
1221VoVPN-GW_100MHz_config: unconfig
1222 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > include/config.h
1223 @./mkconfig -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1224
wdenk2f0812d2003-10-08 22:45:44 +00001225ZPC1900_config: unconfig
1226 @./mkconfig $(@:_config=) ppc mpc8260 zpc1900
wdenk541a76d2003-05-03 15:50:43 +00001227
wdenkabf7a7c2003-12-08 01:34:36 +00001228#========================================================================
1229# M68K
1230#========================================================================
1231#########################################################################
1232## Coldfire
1233#########################################################################
1234
Wolfgang Denkaaa7c002005-12-12 16:06:05 +01001235cobra5272_config : unconfig
1236 @./mkconfig $(@:_config=) m68k mcf52x2 cobra5272
1237
wdenkabf7a7c2003-12-08 01:34:36 +00001238M5272C3_config : unconfig
wdenke65527f2004-02-12 00:47:09 +00001239 @./mkconfig $(@:_config=) m68k mcf52x2 m5272c3
wdenkabf7a7c2003-12-08 01:34:36 +00001240
1241M5282EVB_config : unconfig
wdenke65527f2004-02-12 00:47:09 +00001242 @./mkconfig $(@:_config=) m68k mcf52x2 m5282evb
wdenkabf7a7c2003-12-08 01:34:36 +00001243
stroese05b88912004-12-16 18:44:40 +00001244TASREG_config : unconfig
1245 @./mkconfig $(@:_config=) m68k mcf52x2 tasreg esd
1246
wdenk7ebf7442002-11-02 23:17:16 +00001247#########################################################################
Eran Liberty9095d4a2005-07-28 10:08:46 -05001248## MPC83xx Systems
1249#########################################################################
1250
1251MPC8349ADS_config: unconfig
1252 @./mkconfig $(@:_config=) ppc mpc83xx mpc8349ads
1253
Marian Balakowicz513b4a12005-10-11 19:09:42 +02001254TQM834x_config: unconfig
1255 @./mkconfig $(@:_config=) ppc mpc83xx tqm834x
1256
Eran Liberty9095d4a2005-07-28 10:08:46 -05001257#########################################################################
wdenk9c53f402003-10-15 23:53:47 +00001258## MPC85xx Systems
1259#########################################################################
1260
wdenk13eb2212004-07-09 23:27:13 +00001261MPC8540ADS_config: unconfig
wdenk9c53f402003-10-15 23:53:47 +00001262 @./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
1263
Lunsheng Wang61e61952005-07-29 10:20:29 -05001264MPC8540EVAL_config \
1265MPC8540EVAL_33_config \
1266MPC8540EVAL_66_config \
1267MPC8540EVAL_33_slave_config \
1268MPC8540EVAL_66_slave_config: unconfig
1269 @echo "" >include/config.h ; \
1270 if [ "$(findstring _33_,$@)" ] ; then \
1271 echo -n "... 33 MHz PCI" ; \
1272 else \
1273 echo "#define CONFIG_SYSCLK_66M" >>include/config.h ; \
1274 echo -n "... 66 MHz PCI" ; \
1275 fi ; \
1276 if [ "$(findstring _slave_,$@)" ] ; then \
1277 echo "#define CONFIG_PCI_SLAVE" >>include/config.h ; \
1278 echo " slave" ; \
1279 else \
1280 echo " host" ; \
1281 fi
1282 @./mkconfig -a MPC8540EVAL ppc mpc85xx mpc8540eval
1283
wdenk13eb2212004-07-09 23:27:13 +00001284MPC8560ADS_config: unconfig
wdenk9c53f402003-10-15 23:53:47 +00001285 @./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
1286
wdenk0aeb8532004-10-10 21:21:55 +00001287MPC8541CDS_config: unconfig
1288 @./mkconfig $(@:_config=) ppc mpc85xx mpc8541cds cds
1289
Jon Loeliger77a4f6e2005-07-25 14:05:07 -05001290MPC8548CDS_config: unconfig
1291 @./mkconfig $(@:_config=) ppc mpc85xx mpc8548cds cds
1292
wdenk0aeb8532004-10-10 21:21:55 +00001293MPC8555CDS_config: unconfig
1294 @./mkconfig $(@:_config=) ppc mpc85xx mpc8555cds cds
wdenk78924a72004-04-18 21:45:42 +00001295
wdenk6d3c6d12005-04-03 22:35:21 +00001296PM854_config: unconfig
1297 @./mkconfig $(@:_config=) ppc mpc85xx pm854
1298
Wolfgang Denk9733b3c2005-08-05 12:19:30 +02001299PM856_config: unconfig
1300 @./mkconfig $(@:_config=) ppc mpc85xx pm856
1301
wdenkadf849c2004-10-10 22:44:24 +00001302sbc8540_config \
1303sbc8540_33_config \
1304sbc8540_66_config: unconfig
1305 @if [ "$(findstring _66_,$@)" ] ; then \
1306 echo "#define CONFIG_PCI_66" >>include/config.h ; \
1307 echo "... 66 MHz PCI" ; \
1308 else \
1309 >include/config.h ; \
1310 echo "... 33 MHz PCI" ; \
1311 fi
1312 @./mkconfig -a SBC8540 ppc mpc85xx sbc8560
1313
wdenk265d2172004-07-10 22:35:59 +00001314sbc8560_config \
1315sbc8560_33_config \
1316sbc8560_66_config: unconfig
wdenk3203c8f2004-07-10 21:45:47 +00001317 @if [ "$(findstring _66_,$@)" ] ; then \
wdenkadf849c2004-10-10 22:44:24 +00001318 echo "#define CONFIG_PCI_66" >>include/config.h ; \
wdenk3203c8f2004-07-10 21:45:47 +00001319 echo "... 66 MHz PCI" ; \
1320 else \
1321 >include/config.h ; \
1322 echo "... 33 MHz PCI" ; \
1323 fi
wdenk265d2172004-07-10 22:35:59 +00001324 @./mkconfig -a sbc8560 ppc mpc85xx sbc8560
wdenk3203c8f2004-07-10 21:45:47 +00001325
wdenk0aeb8532004-10-10 21:21:55 +00001326stxgp3_config: unconfig
1327 @./mkconfig $(@:_config=) ppc mpc85xx stxgp3
1328
Stefan Roese09554022005-11-30 13:06:40 +01001329TQM8540_config \
1330TQM8541_config \
1331TQM8555_config \
1332TQM8560_config: unconfig
Wolfgang Denk3bd697b2005-12-06 15:02:31 +01001333 @CTYPE=$(subst TQM,,$(@:_config=)); \
Stefan Roese09554022005-11-30 13:06:40 +01001334 >include/config.h ; \
1335 echo "... TQM"$${CTYPE}; \
1336 echo "#define CONFIG_MPC$${CTYPE}">>include/config.h; \
1337 echo "#define CONFIG_TQM$${CTYPE}">>include/config.h; \
1338 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>include/config.h; \
1339 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>include/config.h; \
1340 echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>include/config.h
1341 @./mkconfig -a TQM85xx ppc mpc85xx tqm85xx
wdenk8e5263c2005-04-05 16:26:47 +00001342
wdenk9c53f402003-10-15 23:53:47 +00001343#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001344## 74xx/7xx Systems
1345#########################################################################
1346
wdenk452cfd62002-11-19 11:04:11 +00001347AmigaOneG3SE_config: unconfig
1348 @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1349
wdenk9f837932003-10-09 19:00:25 +00001350BAB7xx_config: unconfig
1351 @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
1352
stroese05b88912004-12-16 18:44:40 +00001353CPCI750_config: unconfig
1354 @./mkconfig CPCI750 ppc 74xx_7xx cpci750 esd
1355
wdenk5da7f2f2004-01-03 00:43:19 +00001356DB64360_config: unconfig
1357 @./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell
1358
1359DB64460_config: unconfig
1360 @./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell
1361
wdenk9f837932003-10-09 19:00:25 +00001362ELPPC_config: unconfig
1363 @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
1364
wdenk7ebf7442002-11-02 23:17:16 +00001365EVB64260_config \
1366EVB64260_750CX_config: unconfig
1367 @./mkconfig EVB64260 ppc 74xx_7xx evb64260
1368
wdenk9f837932003-10-09 19:00:25 +00001369P3G4_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +00001370 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
1371
1372PCIPPC2_config \
1373PCIPPC6_config: unconfig
1374 @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
1375
wdenk9f837932003-10-09 19:00:25 +00001376ZUMA_config: unconfig
wdenk232fe0b2003-09-02 22:48:03 +00001377 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
1378
wdenk7ebf7442002-11-02 23:17:16 +00001379#========================================================================
1380# ARM
1381#========================================================================
1382#########################################################################
1383## StrongARM Systems
1384#########################################################################
1385
wdenke5cda752004-04-15 23:23:39 +00001386assabet_config : unconfig
1387 @./mkconfig $(@:_config=) arm sa1100 assabet
1388
wdenk7ebf7442002-11-02 23:17:16 +00001389dnp1110_config : unconfig
1390 @./mkconfig $(@:_config=) arm sa1100 dnp1110
1391
wdenked2ac4b2004-03-14 18:23:55 +00001392gcplus_config : unconfig
1393 @./mkconfig $(@:_config=) arm sa1100 gcplus
1394
1395lart_config : unconfig
1396 @./mkconfig $(@:_config=) arm sa1100 lart
1397
wdenk7ebf7442002-11-02 23:17:16 +00001398shannon_config : unconfig
1399 @./mkconfig $(@:_config=) arm sa1100 shannon
1400
1401#########################################################################
wdenkf6f96f72003-07-15 20:04:06 +00001402## ARM92xT Systems
wdenk7ebf7442002-11-02 23:17:16 +00001403#########################################################################
1404
wdenkb6b2f0e2003-09-17 22:48:07 +00001405xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
wdenk4a5c8a72003-03-06 00:02:04 +00001406
wdenk920e91b2004-06-09 15:25:53 +00001407xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
wdenke97d3d92004-02-23 22:22:28 +00001408
wdenke3a06802004-06-06 23:13:55 +00001409xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1410
wdenk91fcc952005-04-06 13:52:31 +00001411at91rm9200dk_config : unconfig
1412 @./mkconfig $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1413
1414cmc_pu2_config : unconfig
1415 @./mkconfig $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1416
Wolfgang Denke35470b2005-10-05 02:00:09 +02001417csb637_config : unconfig
1418 @./mkconfig $(@:_config=) arm arm920t csb637 NULL at91rm9200
1419
Wolfgang Denk756bfd72005-09-26 01:14:38 +02001420mp2usb_config : unconfig
1421 @./mkconfig $(@:_config=) arm arm920t mp2usb NULL at91rm9200
1422
Wolfgang Denkadf20a12005-09-25 01:48:28 +02001423
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02001424########################################################################
1425## ARM Integrator boards - see doc/README-integrator for more info.
1426integratorap_config \
1427ap_config \
1428ap966_config \
1429ap922_config \
1430ap922_XA10_config \
1431ap7_config \
1432ap720t_config \
1433ap920t_config \
1434ap926ejs_config \
1435ap946es_config: unconfig
Wolfgang Denk88bd7432005-10-09 00:22:48 +02001436 @board/integratorap/split_by_variant.sh $@
wdenk4989f872004-03-14 15:06:13 +00001437
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02001438integratorcp_config \
1439cp_config \
1440cp920t_config \
1441cp926ejs_config \
1442cp946es_config \
1443cp1136_config \
1444cp966_config \
1445cp922_config \
1446cp922_XA10_config \
1447cp1026_config: unconfig
Wolfgang Denk88bd7432005-10-09 00:22:48 +02001448 @board/integratorcp/split_by_variant.sh $@
wdenkb3a4a702004-12-10 11:40:40 +00001449
Wolfgang Denk9da240c2005-10-05 00:19:34 +02001450kb9202_config : unconfig
1451 @./mkconfig $(@:_config=) arm arm920t kb9202 NULL at91rm9200
1452
wdenk37bdfdf2004-06-10 21:55:33 +00001453lpd7a400_config \
1454lpd7a404_config: unconfig
wdenk9f664dd2004-06-09 21:50:45 +00001455 @./mkconfig $(@:_config=) arm lh7a40x lpd7a40x
wdenk4989f872004-03-14 15:06:13 +00001456
wdenk7ac16102004-08-01 22:48:16 +00001457mx1ads_config : unconfig
wdenkf8e9a232004-10-09 22:21:29 +00001458 @./mkconfig $(@:_config=) arm arm920t mx1ads NULL imx
wdenk7ac16102004-08-01 22:48:16 +00001459
1460mx1fs2_config : unconfig
wdenkf8e9a232004-10-09 22:21:29 +00001461 @./mkconfig $(@:_config=) arm arm920t mx1fs2 NULL imx
wdenk7ac16102004-08-01 22:48:16 +00001462
Wolfgang Denk7b9bc3a2005-09-14 23:53:32 +02001463netstar_32_config \
1464netstar_config: unconfig
1465 @if [ "$(findstring _32_,$@)" ] ; then \
1466 echo "... 32MB SDRAM" ; \
1467 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>include/config.h ; \
1468 else \
1469 echo "... 64MB SDRAM" ; \
1470 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>include/config.h ; \
1471 fi
1472 @./mkconfig -a netstar arm arm925t netstar
1473
wdenkf6f96f72003-07-15 20:04:06 +00001474omap1510inn_config : unconfig
1475 @./mkconfig $(@:_config=) arm arm925t omap1510inn
1476
wdenk914be132004-06-08 00:22:43 +00001477omap5912osk_config : unconfig
1478 @./mkconfig $(@:_config=) arm arm926ejs omap5912osk
1479
wdenke97d3d92004-02-23 22:22:28 +00001480omap1610inn_config \
1481omap1610inn_cs0boot_config \
1482omap1610inn_cs3boot_config \
wdenk920e91b2004-06-09 15:25:53 +00001483omap1610inn_cs_autoboot_config \
wdenke97d3d92004-02-23 22:22:28 +00001484omap1610h2_config \
1485omap1610h2_cs0boot_config \
wdenk920e91b2004-06-09 15:25:53 +00001486omap1610h2_cs3boot_config \
1487omap1610h2_cs_autoboot_config: unconfig
wdenke97d3d92004-02-23 22:22:28 +00001488 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
1489 echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
wdenkd3602132004-03-25 15:14:43 +00001490 echo "... configured for CS0 boot"; \
wdenk920e91b2004-06-09 15:25:53 +00001491 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
1492 echo "#define CONFIG_CS_AUTOBOOT" >> ./include/config.h ; \
1493 echo "... configured for CS_AUTO boot"; \
wdenke97d3d92004-02-23 22:22:28 +00001494 else \
1495 echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
wdenkd3602132004-03-25 15:14:43 +00001496 echo "... configured for CS3 boot"; \
wdenke97d3d92004-02-23 22:22:28 +00001497 fi;
1498 @./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn
wdenk7eaacc52003-08-29 22:00:43 +00001499
wdenke3a06802004-06-06 23:13:55 +00001500omap730p2_config \
1501omap730p2_cs0boot_config \
1502omap730p2_cs3boot_config : unconfig
1503 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
1504 echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
1505 echo "... configured for CS0 boot"; \
1506 else \
1507 echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
1508 echo "... configured for CS3 boot"; \
1509 fi;
1510 @./mkconfig -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2
1511
wdenk7ac16102004-08-01 22:48:16 +00001512scb9328_config : unconfig
wdenkf8e9a232004-10-09 22:21:29 +00001513 @./mkconfig $(@:_config=) arm arm920t scb9328 NULL imx
wdenk7ac16102004-08-01 22:48:16 +00001514
wdenk7ebf7442002-11-02 23:17:16 +00001515smdk2400_config : unconfig
wdenkf8e9a232004-10-09 22:21:29 +00001516 @./mkconfig $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
wdenk7ebf7442002-11-02 23:17:16 +00001517
1518smdk2410_config : unconfig
wdenkf8e9a232004-10-09 22:21:29 +00001519 @./mkconfig $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
wdenk7ebf7442002-11-02 23:17:16 +00001520
wdenk9f664dd2004-06-09 21:50:45 +00001521SX1_config : unconfig
1522 @./mkconfig $(@:_config=) arm arm925t sx1
1523
wdenk236d3fc2003-12-20 22:45:10 +00001524# TRAB default configuration: 8 MB Flash, 32 MB RAM
wdenk4a5c8a72003-03-06 00:02:04 +00001525trab_config \
wdenkb6b2f0e2003-09-17 22:48:07 +00001526trab_bigram_config \
1527trab_bigflash_config \
wdenkf6a6ac12003-09-17 15:10:32 +00001528trab_old_config: unconfig
wdenk4a5c8a72003-03-06 00:02:04 +00001529 @ >include/config.h
wdenkb6b2f0e2003-09-17 22:48:07 +00001530 @[ -z "$(findstring _bigram,$@)" ] || \
wdenk236d3fc2003-12-20 22:45:10 +00001531 { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
1532 echo "#define CONFIG_RAM_32MB" >>include/config.h ; \
wdenkb6b2f0e2003-09-17 22:48:07 +00001533 echo "... with 8 MB Flash, 32 MB RAM" ; \
1534 }
1535 @[ -z "$(findstring _bigflash,$@)" ] || \
wdenk236d3fc2003-12-20 22:45:10 +00001536 { echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \
1537 echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
wdenkb6b2f0e2003-09-17 22:48:07 +00001538 echo "... with 16 MB Flash, 16 MB RAM" ; \
wdenkc0aa5c52003-12-06 19:49:23 +00001539 echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
wdenkb6b2f0e2003-09-17 22:48:07 +00001540 }
wdenkf6a6ac12003-09-17 15:10:32 +00001541 @[ -z "$(findstring _old,$@)" ] || \
wdenk236d3fc2003-12-20 22:45:10 +00001542 { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
1543 echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
1544 echo "... with 8 MB Flash, 16 MB RAM" ; \
wdenkc0aa5c52003-12-06 19:49:23 +00001545 echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
wdenk4a5c8a72003-03-06 00:02:04 +00001546 }
wdenkf8e9a232004-10-09 22:21:29 +00001547 @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
wdenk7ebf7442002-11-02 23:17:16 +00001548
wdenk1fe2c702003-03-06 21:55:29 +00001549VCMA9_config : unconfig
wdenkf8e9a232004-10-09 22:21:29 +00001550 @./mkconfig $(@:_config=) arm arm920t vcma9 mpl s3c24x0
wdenk1fe2c702003-03-06 21:55:29 +00001551
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02001552#========================================================================
1553# ARM supplied Versatile development boards
1554#========================================================================
1555versatile_config \
1556versatileab_config \
1557versatilepb_config : unconfig
Wolfgang Denk88bd7432005-10-09 00:22:48 +02001558 @board/versatile/split_by_variant.sh $@
wdenkb98ac282004-02-24 00:16:43 +00001559
wdenke085e5b2005-04-05 23:32:21 +00001560voiceblue_smallflash_config \
1561voiceblue_config: unconfig
1562 @if [ "$(findstring _smallflash_,$@)" ] ; then \
1563 echo "... boot from lower flash bank" ; \
1564 echo "#define VOICEBLUE_SMALL_FLASH" >>include/config.h ; \
1565 echo "VOICEBLUE_SMALL_FLASH=y" >board/voiceblue/config.tmp ; \
1566 else \
1567 echo "... boot from upper flash bank" ; \
1568 >include/config.h ; \
1569 echo "VOICEBLUE_SMALL_FLASH=n" >board/voiceblue/config.tmp ; \
1570 fi
1571 @./mkconfig -a voiceblue arm arm925t voiceblue
1572
wdenk62cb5cf2005-05-19 22:46:33 +00001573cm4008_config : unconfig
1574 @./mkconfig $(@:_config=) arm arm920t cm4008 NULL ks8695
1575
1576cm41xx_config : unconfig
1577 @./mkconfig $(@:_config=) arm arm920t cm41xx NULL ks8695
1578
wdenkb98ac282004-02-24 00:16:43 +00001579#########################################################################
1580## S3C44B0 Systems
1581#########################################################################
1582
1583B2_config : unconfig
1584 @./mkconfig $(@:_config=) arm s3c44b0 B2 dave
1585
wdenk7ebf7442002-11-02 23:17:16 +00001586#########################################################################
wdenk9f664dd2004-06-09 21:50:45 +00001587## ARM720T Systems
1588#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001589
Wolfgang Denk4dc11462005-09-26 01:06:33 +02001590armadillo_config: unconfig
1591 @./mkconfig $(@:_config=) arm arm720t armadillo
1592
wdenk7ebf7442002-11-02 23:17:16 +00001593ep7312_config : unconfig
1594 @./mkconfig $(@:_config=) arm arm720t ep7312
1595
wdenk9f664dd2004-06-09 21:50:45 +00001596impa7_config : unconfig
1597 @./mkconfig $(@:_config=) arm arm720t impa7
1598
wdenk2ebee312004-02-23 19:30:57 +00001599modnet50_config : unconfig
1600 @./mkconfig $(@:_config=) arm arm720t modnet50
1601
wdenkf2140d52004-07-01 16:30:44 +00001602evb4510_config : unconfig
1603 @./mkconfig $(@:_config=) arm arm720t evb4510
1604
wdenk7ebf7442002-11-02 23:17:16 +00001605#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +00001606## XScale Systems
wdenk7ebf7442002-11-02 23:17:16 +00001607#########################################################################
1608
wdenk2a831612005-04-06 00:04:16 +00001609adsvix_config : unconfig
1610 @./mkconfig $(@:_config=) arm pxa adsvix
1611
wdenkb5bb1392004-07-10 23:11:10 +00001612cerf250_config : unconfig
1613 @./mkconfig $(@:_config=) arm pxa cerf250
1614
wdenk7ebf7442002-11-02 23:17:16 +00001615cradle_config : unconfig
wdenk57b2d802003-06-27 21:31:46 +00001616 @./mkconfig $(@:_config=) arm pxa cradle
wdenk7ebf7442002-11-02 23:17:16 +00001617
1618csb226_config : unconfig
wdenk0463e042003-05-23 12:36:20 +00001619 @./mkconfig $(@:_config=) arm pxa csb226
wdenk7ebf7442002-11-02 23:17:16 +00001620
wdenk4a5c8a72003-03-06 00:02:04 +00001621innokom_config : unconfig
wdenk0463e042003-05-23 12:36:20 +00001622 @./mkconfig $(@:_config=) arm pxa innokom
wdenk4a5c8a72003-03-06 00:02:04 +00001623
wdenkbd1575f2003-10-14 19:43:55 +00001624ixdp425_config : unconfig
1625 @./mkconfig $(@:_config=) arm ixp ixdp425
1626
wdenk4a5c8a72003-03-06 00:02:04 +00001627lubbock_config : unconfig
wdenk0463e042003-05-23 12:36:20 +00001628 @./mkconfig $(@:_config=) arm pxa lubbock
wdenk4a5c8a72003-03-06 00:02:04 +00001629
wdenk88e72a32003-06-19 23:04:19 +00001630logodl_config : unconfig
1631 @./mkconfig $(@:_config=) arm pxa logodl
1632
Wolfgang Denk27a5b0b2005-10-13 01:45:54 +02001633pxa255_idp_config: unconfig
1634 @./mkconfig $(@:_config=) arm pxa pxa255_idp
1635
wdenkb02744a2003-04-05 00:53:31 +00001636wepep250_config : unconfig
wdenk0463e042003-05-23 12:36:20 +00001637 @./mkconfig $(@:_config=) arm pxa wepep250
wdenkb02744a2003-04-05 00:53:31 +00001638
wdenkfa89d7c2004-09-28 16:44:41 +00001639xaeniax_config : unconfig
1640 @./mkconfig $(@:_config=) arm pxa xaeniax
1641
wdenkc12081a2004-03-23 20:18:25 +00001642xm250_config : unconfig
1643 @./mkconfig $(@:_config=) arm pxa xm250
1644
wdenk51108172004-06-09 15:37:23 +00001645xsengine_config : unconfig
1646 @./mkconfig $(@:_config=) arm pxa xsengine
1647
wdenkf8062712005-01-09 23:16:25 +00001648#########################################################################
1649## ARM1136 Systems
1650#########################################################################
1651omap2420h4_config : unconfig
1652 @./mkconfig $(@:_config=) arm arm1136 omap2420h4
1653
wdenk591dda52002-11-18 00:14:45 +00001654#========================================================================
1655# i386
1656#========================================================================
1657#########################################################################
wdenk1fe2c702003-03-06 21:55:29 +00001658## AMD SC520 CDP
wdenk591dda52002-11-18 00:14:45 +00001659#########################################################################
1660sc520_cdp_config : unconfig
1661 @./mkconfig $(@:_config=) i386 i386 sc520_cdp
1662
wdenkabda5ca2003-05-31 18:35:21 +00001663sc520_spunk_config : unconfig
1664 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
1665
1666sc520_spunk_rel_config : unconfig
1667 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
1668
wdenk4a5c8a72003-03-06 00:02:04 +00001669#========================================================================
1670# MIPS
1671#========================================================================
wdenk7ebf7442002-11-02 23:17:16 +00001672#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +00001673## MIPS32 4Kc
1674#########################################################################
1675
wdenk5d841732003-08-17 18:55:18 +00001676xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
1677
1678incaip_100MHz_config \
1679incaip_133MHz_config \
1680incaip_150MHz_config \
1681incaip_config: unconfig
1682 @ >include/config.h
1683 @[ -z "$(findstring _100MHz,$@)" ] || \
1684 { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
1685 echo "... with 100MHz system clock" ; \
1686 }
1687 @[ -z "$(findstring _133MHz,$@)" ] || \
1688 { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
1689 echo "... with 133MHz system clock" ; \
1690 }
1691 @[ -z "$(findstring _150MHz,$@)" ] || \
1692 { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
1693 echo "... with 150MHz system clock" ; \
1694 }
1695 @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
1696
wdenk5401de42004-02-07 01:27:10 +00001697tb0229_config: unconfig
1698 @./mkconfig $(@:_config=) mips mips tb0229
1699
wdenk5d841732003-08-17 18:55:18 +00001700#########################################################################
wdenkcd914452004-05-29 16:53:29 +00001701## MIPS32 AU1X00
1702#########################################################################
1703dbau1000_config : unconfig
1704 @ >include/config.h
1705 @echo "#define CONFIG_DBAU1000 1" >>include/config.h
1706 @./mkconfig -a dbau1x00 mips mips dbau1x00
1707
1708dbau1100_config : unconfig
1709 @ >include/config.h
1710 @echo "#define CONFIG_DBAU1100 1" >>include/config.h
1711 @./mkconfig -a dbau1x00 mips mips dbau1x00
1712
1713dbau1500_config : unconfig
1714 @ >include/config.h
1715 @echo "#define CONFIG_DBAU1500 1" >>include/config.h
1716 @./mkconfig -a dbau1x00 mips mips dbau1x00
1717
wdenk96c7a8c2005-01-09 22:28:56 +00001718dbau1550_config : unconfig
1719 @ >include/config.h
1720 @echo "#define CONFIG_DBAU1550 1" >>include/config.h
1721 @./mkconfig -a dbau1x00 mips mips dbau1x00
1722
1723dbau1550_el_config : unconfig
1724 @ >include/config.h
1725 @echo "#define CONFIG_DBAU1550 1" >>include/config.h
Wolfgang Denk09a4ebb2005-08-08 23:06:32 +02001726 @./mkconfig -a dbau1x00 mips mips dbau1x00
wdenk96c7a8c2005-01-09 22:28:56 +00001727
Wolfgang Denk0cbaf642005-09-25 00:53:22 +02001728pb1000_config : unconfig
1729 @ >include/config.h
1730 @echo "#define CONFIG_PB1000 1" >>include/config.h
1731 @./mkconfig -a pb1x00 mips mips pb1x00
1732
wdenkcd914452004-05-29 16:53:29 +00001733#########################################################################
wdenk5d841732003-08-17 18:55:18 +00001734## MIPS64 5Kc
1735#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +00001736
wdenkb02744a2003-04-05 00:53:31 +00001737purple_config : unconfig
1738 @./mkconfig $(@:_config=) mips mips purple
wdenk4a5c8a72003-03-06 00:02:04 +00001739
wdenk60164a82003-10-08 23:26:14 +00001740#========================================================================
1741# Nios
1742#========================================================================
1743#########################################################################
1744## Nios32
1745#########################################################################
1746
wdenk3be717f2004-01-03 19:43:48 +00001747DK1C20_safe_32_config \
1748DK1C20_standard_32_config \
wdenk60164a82003-10-08 23:26:14 +00001749DK1C20_config: unconfig
wdenk3be717f2004-01-03 19:43:48 +00001750 @ >include/config.h
1751 @[ -z "$(findstring _safe_32,$@)" ] || \
1752 { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1753 echo "... NIOS 'safe_32' configuration" ; \
1754 }
1755 @[ -z "$(findstring _standard_32,$@)" ] || \
1756 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1757 echo "... NIOS 'standard_32' configuration" ; \
1758 }
1759 @[ -z "$(findstring DK1C20_config,$@)" ] || \
1760 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1761 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1762 }
1763 @./mkconfig -a DK1C20 nios nios dk1c20 altera
1764
1765DK1S10_safe_32_config \
1766DK1S10_standard_32_config \
wdenkc0bc2e12004-02-09 23:12:24 +00001767DK1S10_mtx_ldk_20_config \
wdenk3be717f2004-01-03 19:43:48 +00001768DK1S10_config: unconfig
1769 @ >include/config.h
1770 @[ -z "$(findstring _safe_32,$@)" ] || \
1771 { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1772 echo "... NIOS 'safe_32' configuration" ; \
1773 }
1774 @[ -z "$(findstring _standard_32,$@)" ] || \
1775 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1776 echo "... NIOS 'standard_32' configuration" ; \
1777 }
wdenkc0bc2e12004-02-09 23:12:24 +00001778 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
1779 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \
1780 echo "... NIOS 'mtx_ldk_20' configuration" ; \
1781 }
wdenk3be717f2004-01-03 19:43:48 +00001782 @[ -z "$(findstring DK1S10_config,$@)" ] || \
1783 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1784 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1785 }
1786 @./mkconfig -a DK1S10 nios nios dk1s10 altera
wdenk60164a82003-10-08 23:26:14 +00001787
wdenke28cf632004-03-14 15:20:55 +00001788ADNPESC1_DNPEVA2_base_32_config \
1789ADNPESC1_base_32_config \
1790ADNPESC1_config: unconfig
1791 @ >include/config.h
1792 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
wdenkc35ba4e2004-03-14 22:25:36 +00001793 { echo "#define CONFIG_DNPEVA2 1" >>include/config.h ; \
1794 echo "... DNP/EVA2 configuration" ; \
1795 }
wdenke28cf632004-03-14 15:20:55 +00001796 @[ -z "$(findstring _base_32,$@)" ] || \
wdenkc35ba4e2004-03-14 22:25:36 +00001797 { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1798 echo "... NIOS 'base_32' configuration" ; \
1799 }
wdenke28cf632004-03-14 15:20:55 +00001800 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
wdenkc35ba4e2004-03-14 22:25:36 +00001801 { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1802 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
1803 }
wdenke28cf632004-03-14 15:20:55 +00001804 @./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv
1805
wdenkef3386f2004-10-10 21:27:30 +00001806#########################################################################
1807## Nios-II
1808#########################################################################
1809
1810PK1C20_config : unconfig
1811 @./mkconfig PK1C20 nios2 nios2 pk1c20 psyent
1812
1813PCI5441_config : unconfig
1814 @./mkconfig PCI5441 nios2 nios2 pci5441 psyent
wdenk12490652004-04-18 21:13:41 +00001815
1816#========================================================================
1817# MicroBlaze
1818#========================================================================
1819#########################################################################
1820## Microblaze
1821#########################################################################
1822suzaku_config: unconfig
1823 @ >include/config.h
1824 @echo "#define CONFIG_SUZAKU 1" >> include/config.h
1825 @./mkconfig -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
wdenk60164a82003-10-08 23:26:14 +00001826
wdenkb02744a2003-04-05 00:53:31 +00001827#########################################################################
1828#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001829
1830clean:
1831 find . -type f \
1832 \( -name 'core' -o -name '*.bak' -o -name '*~' \
1833 -o -name '*.o' -o -name '*.a' \) -print \
1834 | xargs rm -f
wdenk8dba0502003-03-31 16:34:49 +00001835 rm -f examples/hello_world examples/timer \
wdenkb02744a2003-04-05 00:53:31 +00001836 examples/eepro100_eeprom examples/sched \
wdenkeb8f2fb2005-05-09 10:17:32 +00001837 examples/mem_to_mem_idma2intr examples/82559_eeprom \
1838 examples/test_burst
wdenk7ebf7442002-11-02 23:17:16 +00001839 rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
wdenka0ebde52004-09-08 22:03:11 +00001840 rm -f tools/mpc86x_clk tools/ncb
wdenk7ebf7442002-11-02 23:17:16 +00001841 rm -f tools/easylogo/easylogo tools/bmp_logo
1842 rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
wdenk9dfa8d12002-12-08 09:53:23 +00001843 rm -f tools/env/fw_printenv tools/env/fw_setenv
wdenk0893c472003-05-20 14:25:27 +00001844 rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
Wolfgang Denkfc27b5b2005-08-13 18:36:17 +02001845 rm -f board/trab/trab_fkt board/voiceblue/eeprom
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02001846 rm -f board/integratorap/u-boot.lds board/integratorcp/u-boot.lds
wdenk7ebf7442002-11-02 23:17:16 +00001847
1848clobber: clean
wdenkaeba06f2004-06-09 17:34:58 +00001849 find . -type f \( -name .depend \
1850 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
1851 -print0 \
1852 | xargs -0 rm -f
wdenk7ebf7442002-11-02 23:17:16 +00001853 rm -f $(OBJS) *.bak tags TAGS
1854 rm -fr *.*~
wdenk68005192005-01-09 21:28:15 +00001855 rm -f u-boot u-boot.map u-boot.hex $(ALL)
wdenk9dfa8d12002-12-08 09:53:23 +00001856 rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
wdenkb02744a2003-04-05 00:53:31 +00001857 rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
wdenkbb2d9272003-06-25 22:26:29 +00001858 rm -f include/asm/proc include/asm/arch include/asm
wdenk7ebf7442002-11-02 23:17:16 +00001859
1860mrproper \
1861distclean: clobber unconfig
1862
1863backup:
1864 F=`basename $(TOPDIR)` ; cd .. ; \
1865 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
1866
1867#########################################################################