blob: ad3403ce8bf4a938c5920d47fc5eddccd0265d26 [file] [log] [blame]
wdenk7ebf7442002-11-02 23:17:16 +00001#
wdenk1ebf41e2004-01-02 14:00:00 +00002# (C) Copyright 2000-2004
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
32HOSTOS := $(shell uname -s | tr A-Z a-z | \
33 sed -e 's/\(cygwin\).*/cygwin/')
34
35export HOSTARCH
36
37# Deal with colliding definitions from tcsh etc.
38VENDOR=
39
40#########################################################################
41
42TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
43export TOPDIR
44
45ifeq (include/config.mk,$(wildcard include/config.mk))
46# load ARCH, BOARD, and CPU configuration
47include include/config.mk
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)
57CROSS_COMPILE = ppc_8xx-
58endif
59ifeq ($(ARCH),arm)
wdenkc8434db2003-03-26 06:55:25 +000060CROSS_COMPILE = arm-linux-
wdenk7ebf7442002-11-02 23:17:16 +000061endif
wdenk591dda52002-11-18 00:14:45 +000062ifeq ($(ARCH),i386)
wdenkabda5ca2003-05-31 18:35:21 +000063ifeq ($(HOSTARCH),i386)
64CROSS_COMPILE =
65else
66CROSS_COMPILE = i386-linux-
67endif
wdenk7ebf7442002-11-02 23:17:16 +000068endif
wdenk4a5c8a72003-03-06 00:02:04 +000069ifeq ($(ARCH),mips)
70CROSS_COMPILE = mips_4KC-
wdenk7ebf7442002-11-02 23:17:16 +000071endif
wdenk60164a82003-10-08 23:26:14 +000072ifeq ($(ARCH),nios)
73CROSS_COMPILE = nios-elf-
wdenk591dda52002-11-18 00:14:45 +000074endif
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
wdenk9c53f402003-10-15 23:53:47 +0000100ifeq ($(CPU),mpc85xx)
101OBJS += cpu/$(CPU)/resetvec.o
102endif
wdenk7ebf7442002-11-02 23:17:16 +0000103
wdenk7f00b942003-12-07 23:55:12 +0000104LIBS = lib_generic/libgeneric.a
105LIBS += board/$(BOARDDIR)/lib$(BOARD).a
wdenk7ebf7442002-11-02 23:17:16 +0000106LIBS += cpu/$(CPU)/lib$(CPU).a
wdenkf8e9a232004-10-09 22:21:29 +0000107ifdef SOC
108LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
109endif
wdenk7ebf7442002-11-02 23:17:16 +0000110LIBS += lib_$(ARCH)/lib$(ARCH).a
wdenk4d01d9e2004-03-25 14:59:05 +0000111LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
wdenkd3602132004-03-25 15:14:43 +0000112 fs/reiserfs/libreiserfs.a
wdenk7ebf7442002-11-02 23:17:16 +0000113LIBS += net/libnet.a
114LIBS += disk/libdisk.a
115LIBS += rtc/librtc.a
116LIBS += dtt/libdtt.a
117LIBS += drivers/libdrivers.a
wdenkeb20ad32003-09-05 23:19:14 +0000118LIBS += drivers/sk98lin/libsk98lin.a
wdenk7ebf7442002-11-02 23:17:16 +0000119LIBS += post/libpost.a post/cpu/libcpu.a
120LIBS += common/libcommon.a
wdenk7f00b942003-12-07 23:55:12 +0000121.PHONY : $(LIBS)
wdenkc0aa5c52003-12-06 19:49:23 +0000122
wdenk4cc02a82003-09-11 23:06:34 +0000123# Add GCC lib
wdenk4989f872004-03-14 15:06:13 +0000124PLATFORM_LIBS += --no-warn-mismatch -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
125
wdenk7ebf7442002-11-02 23:17:16 +0000126
wdenkc0aa5c52003-12-06 19:49:23 +0000127# The "tools" are needed early, so put this first
128# Don't include stuff already done in $(LIBS)
129SUBDIRS = tools \
130 examples \
131 post \
132 post/cpu
wdenk444f22b2003-12-07 21:39:28 +0000133.PHONY : $(SUBDIRS)
wdenkc0aa5c52003-12-06 19:49:23 +0000134
wdenk7ebf7442002-11-02 23:17:16 +0000135#########################################################################
wdenk0a658552003-08-05 17:43:17 +0000136#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000137
wdenk0a658552003-08-05 17:43:17 +0000138ALL = u-boot.srec u-boot.bin System.map
wdenk7ebf7442002-11-02 23:17:16 +0000139
wdenk0a658552003-08-05 17:43:17 +0000140all: $(ALL)
wdenk7ebf7442002-11-02 23:17:16 +0000141
142u-boot.srec: u-boot
143 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
144
145u-boot.bin: u-boot
146 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
147
wdenk0a658552003-08-05 17:43:17 +0000148u-boot.img: u-boot.bin
149 ./tools/mkimage -A $(ARCH) -T firmware -C none \
150 -a $(TEXT_BASE) -e 0 \
151 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' include/version.h | \
152 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
153 -d $< $@
154
wdenk7ebf7442002-11-02 23:17:16 +0000155u-boot.dis: u-boot
156 $(OBJDUMP) -d $< > $@
157
wdenkc0aa5c52003-12-06 19:49:23 +0000158u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
wdenk57b2d802003-06-27 21:31:46 +0000159 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
160 $(LD) $(LDFLAGS) $$UNDEF_SYM $(OBJS) \
wdenkeb20ad32003-09-05 23:19:14 +0000161 --start-group $(LIBS) $(PLATFORM_LIBS) --end-group \
wdenk67ff36c2002-11-19 23:01:07 +0000162 -Map u-boot.map -o u-boot
wdenk7ebf7442002-11-02 23:17:16 +0000163
wdenkc0aa5c52003-12-06 19:49:23 +0000164$(LIBS):
165 $(MAKE) -C `dirname $@`
166
167$(SUBDIRS):
wdenk444f22b2003-12-07 21:39:28 +0000168 $(MAKE) -C $@ all
wdenk7ebf7442002-11-02 23:17:16 +0000169
dzu9b10ef982003-08-07 14:20:31 +0000170gdbtools:
171 $(MAKE) -C tools/gdb || exit 1
172
wdenk7ebf7442002-11-02 23:17:16 +0000173depend dep:
174 @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir .depend ; done
175
176tags:
177 ctags -w `find $(SUBDIRS) include \
wdenk270a8bd2004-04-15 21:58:11 +0000178 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
179 fs/cramfs fs/fat fs/fdos fs/jffs2 \
180 net disk rtc dtt drivers drivers/sk98lin common \
wdenk7ebf7442002-11-02 23:17:16 +0000181 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
182
183etags:
184 etags -a `find $(SUBDIRS) include \
wdenka0ebde52004-09-08 22:03: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
190System.map: u-boot
191 @$(NM) $< | \
192 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
193 sort > System.map
194
195#########################################################################
196else
197all install u-boot u-boot.srec depend dep:
198 @echo "System not configured - see README" >&2
199 @ exit 1
200endif
201
202#########################################################################
203
204unconfig:
wdenk9c07bf62004-04-10 20:43:50 +0000205 @rm -f include/config.h include/config.mk board/*/config.tmp
wdenk7ebf7442002-11-02 23:17:16 +0000206
207#========================================================================
208# PowerPC
209#========================================================================
wdenk359733b2003-03-31 17:27:09 +0000210
211#########################################################################
212## MPC5xx Systems
213#########################################################################
214
215cmi_mpc5xx_config: unconfig
216 @./mkconfig $(@:_config=) ppc mpc5xx cmi
217
wdenk634d2f72004-04-15 23:14:49 +0000218PATI_config: unconfig
wdenkbc01dd52004-01-02 16:05:07 +0000219 @./mkconfig $(@:_config=) ppc mpc5xx pati mpl
220
wdenk7ebf7442002-11-02 23:17:16 +0000221#########################################################################
wdenk21136db2003-07-16 21:53:01 +0000222## MPC5xxx Systems
223#########################################################################
wdenke44b9112004-04-18 23:32:11 +0000224Lite5200_config \
225Lite5200_LOWBOOT_config \
226Lite5200_LOWBOOT08_config \
227icecube_5200_config \
228icecube_5200_LOWBOOT_config \
229icecube_5200_LOWBOOT08_config \
230icecube_5200_DDR_config \
231icecube_5200_DDR_LOWBOOT_config \
232icecube_5200_DDR_LOWBOOT08_config \
233icecube_5100_config: unconfig
wdenk21136db2003-07-16 21:53:01 +0000234 @ >include/config.h
wdenk9c07bf62004-04-10 20:43:50 +0000235 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
236 { if [ "$(findstring DDR,$@)" ] ; \
237 then echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
238 else echo "TEXT_BASE = 0xFF000000" >board/icecube/config.tmp ; \
239 fi ; \
wdenk4b16c2e2003-11-07 13:42:26 +0000240 echo "... with LOWBOOT configuration" ; \
241 }
242 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
243 { echo "TEXT_BASE = 0xFF800000" >board/icecube/config.tmp ; \
244 echo "... with 8 MB flash only" ; \
wdenk9c07bf62004-04-10 20:43:50 +0000245 echo "... with LOWBOOT configuration" ; \
wdenk4b16c2e2003-11-07 13:42:26 +0000246 }
wdenk236d3fc2003-12-20 22:45:10 +0000247 @[ -z "$(findstring DDR,$@)" ] || \
248 { echo "#define CONFIG_MPC5200_DDR" >>include/config.h ; \
249 echo "... DDR memory revision" ; \
250 }
wdenk1ebf41e2004-01-02 14:00:00 +0000251 @[ -z "$(findstring 5200,$@)" ] || \
252 { echo "#define CONFIG_MPC5200" >>include/config.h ; \
253 echo "... with MPC5200 processor" ; \
254 }
wdenk55618472003-10-28 09:14:21 +0000255 @[ -z "$(findstring 5100,$@)" ] || \
wdenk21136db2003-07-16 21:53:01 +0000256 { echo "#define CONFIG_MGT5100" >>include/config.h ; \
257 echo "... with MGT5100 processor" ; \
258 }
259 @./mkconfig -a IceCube ppc mpc5xxx icecube
260
wdenkda54bc92004-08-04 21:56:49 +0000261PM520_config \
262PM520_DDR_config \
263PM520_ROMBOOT_config \
264PM520_ROMBOOT_DDR_config: unconfig
265 @ >include/config.h
266 @[ -z "$(findstring DDR,$@)" ] || \
267 { echo "#define CONFIG_MPC5200_DDR" >>include/config.h ; \
268 echo "... DDR memory revision" ; \
269 }
270 @[ -z "$(findstring ROMBOOT,$@)" ] || \
271 { echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
272 echo "... booting from 8-bit flash" ; \
273 }
274 @./mkconfig -a PM520 ppc mpc5xxx pm520
275
wdenk1ebf41e2004-01-02 14:00:00 +0000276MINI5200_config \
277EVAL5200_config \
278TOP5200_config: unconfig
279 @ echo "#define CONFIG_$(@:_config=) 1" >include/config.h
280 @./mkconfig -a TOP5200 ppc mpc5xxx top5200 emk
281
wdenkcc3f8a92004-07-11 19:17:20 +0000282Total5100_config \
283Total5200_config \
284Total5200_lowboot_config \
285Total5200_Rev2_config \
286Total5200_Rev2_lowboot_config: unconfig
287 @ >include/config.h
288 @[ -z "$(findstring 5100,$@)" ] || \
289 { echo "#define CONFIG_MGT5100" >>include/config.h ; \
290 echo "... with MGT5100 processor" ; \
291 }
292 @[ -z "$(findstring 5200,$@)" ] || \
293 { echo "#define CONFIG_MPC5200" >>include/config.h ; \
294 echo "... with MPC5200 processor" ; \
295 }
296 @[ -n "$(findstring Rev,$@)" ] || \
297 { echo "#define CONFIG_TOTAL5200_REV 1" >>include/config.h ; \
298 echo "... revision 1 board" ; \
299 }
300 @[ -z "$(findstring Rev2_,$@)" ] || \
301 { echo "#define CONFIG_TOTAL5200_REV 2" >>include/config.h ; \
302 echo "... revision 2 board" ; \
303 }
304 @[ -z "$(findstring lowboot_,$@)" ] || \
305 { echo "TEXT_BASE = 0xFE000000" >board/total5200/config.tmp ; \
306 echo "... with lowboot configuration" ; \
307 }
308 @./mkconfig -a Total5200 ppc mpc5xxx total5200
309
wdenkdc130442004-12-12 22:06:17 +0000310TQM5200_auto_config \
wdenk64519362004-07-11 17:40:54 +0000311TQM5200_AA_config \
312TQM5200_AB_config \
313TQM5200_AC_config \
314MiniFAP_config: unconfig
315 @ >include/config.h
wdenkda54bc92004-08-04 21:56:49 +0000316 @[ -z "$(findstring MiniFAP,$@)" ] || \
wdenk64519362004-07-11 17:40:54 +0000317 { echo "#define CONFIG_MINIFAP" >>include/config.h ; \
318 echo "#define CONFIG_TQM5200_AC" >>include/config.h ; \
wdenkda54bc92004-08-04 21:56:49 +0000319 echo "... TQM5200_AC on MiniFAP" ; \
wdenk64519362004-07-11 17:40:54 +0000320 }
321 @[ -z "$(findstring AA,$@)" ] || \
322 { echo "#define CONFIG_TQM5200_AA" >>include/config.h ; \
323 echo "... with 4 MB Flash, 16 MB SDRAM, 32 kB EEPROM" ; \
324 }
325 @[ -z "$(findstring AB,$@)" ] || \
326 { echo "#define CONFIG_TQM5200_AB" >>include/config.h ; \
327 echo "... with 64 MB Flash, 64 MB SDRAM, 32 kB EEPROM, 512 kB SRAM" ; \
wdenk79cf7572004-08-28 21:09:14 +0000328 echo "... with Graphics Controller"; \
wdenk64519362004-07-11 17:40:54 +0000329 }
330 @[ -z "$(findstring AC,$@)" ] || \
331 { echo "#define CONFIG_TQM5200_AC" >>include/config.h ; \
332 echo "... with 4 MB Flash, 128 MB SDRAM" ; \
wdenk79cf7572004-08-28 21:09:14 +0000333 echo "... with Graphics Controller"; \
wdenk64519362004-07-11 17:40:54 +0000334 }
wdenkdc130442004-12-12 22:06:17 +0000335 @[ -z "$(findstring auto,$@)" ] || \
336 { echo "#define CONFIG_CS_AUTOCONF" >>include/config.h ; \
337 echo "... with automatic CS configuration" ; \
338 }
wdenk64519362004-07-11 17:40:54 +0000339 @./mkconfig -a TQM5200 ppc mpc5xxx tqm5200
340
wdenk21136db2003-07-16 21:53:01 +0000341#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000342## MPC8xx Systems
343#########################################################################
344
wdenk9f664dd2004-06-09 21:50:45 +0000345Adder_config \
346Adder87x_config \
wdenkec5dc0d2004-07-09 22:51:01 +0000347AdderII_config \
wdenk9f664dd2004-06-09 21:50:45 +0000348 : unconfig
wdenkec5dc0d2004-07-09 22:51:01 +0000349 $(if $(findstring AdderII,$@), \
wdenk9f664dd2004-06-09 21:50:45 +0000350 @echo "#define CONFIG_MPC852T" > include/config.h)
351 @./mkconfig -a Adder ppc mpc8xx adder
352
wdenkad276f22004-01-04 16:28:35 +0000353ADS860_config \
wdenkad276f22004-01-04 16:28:35 +0000354FADS823_config \
355FADS850SAR_config \
356MPC86xADS_config \
wdenka7556b22004-06-06 21:35:06 +0000357MPC885ADS_config \
wdenkad276f22004-01-04 16:28:35 +0000358FADS860T_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000359 @./mkconfig $(@:_config=) ppc mpc8xx fads
360
361AMX860_config : unconfig
362 @./mkconfig $(@:_config=) ppc mpc8xx amx860 westel
363
364c2mon_config: unconfig
365 @./mkconfig $(@:_config=) ppc mpc8xx c2mon
366
367CCM_config: unconfig
368 @./mkconfig $(@:_config=) ppc mpc8xx CCM siemens
369
370cogent_mpc8xx_config: unconfig
371 @./mkconfig $(@:_config=) ppc mpc8xx cogent
372
wdenkef5fe752003-03-12 10:41:04 +0000373ELPT860_config: unconfig
374 @./mkconfig $(@:_config=) ppc mpc8xx elpt860 LEOX
375
wdenk7ebf7442002-11-02 23:17:16 +0000376ESTEEM192E_config: unconfig
377 @./mkconfig $(@:_config=) ppc mpc8xx esteem192e
378
379ETX094_config : unconfig
380 @./mkconfig $(@:_config=) ppc mpc8xx etx094
381
wdenk7ebf7442002-11-02 23:17:16 +0000382FLAGADM_config: unconfig
383 @./mkconfig $(@:_config=) ppc mpc8xx flagadm
384
wdenk541a76d2003-05-03 15:50:43 +0000385xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
386
387GEN860T_SC_config \
wdenk7ebf7442002-11-02 23:17:16 +0000388GEN860T_config: unconfig
wdenk541a76d2003-05-03 15:50:43 +0000389 @ >include/config.h
390 @[ -z "$(findstring _SC,$@)" ] || \
391 { echo "#define CONFIG_SC" >>include/config.h ; \
392 echo "With reduced H/W feature set (SC)..." ; \
393 }
394 @./mkconfig -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
wdenk7ebf7442002-11-02 23:17:16 +0000395
396GENIETV_config: unconfig
397 @./mkconfig $(@:_config=) ppc mpc8xx genietv
398
399GTH_config: unconfig
400 @./mkconfig $(@:_config=) ppc mpc8xx gth
401
402hermes_config : unconfig
403 @./mkconfig $(@:_config=) ppc mpc8xx hermes
404
wdenkf602aa02004-03-13 23:29:43 +0000405HMI10_config : unconfig
406 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
407
wdenk7ebf7442002-11-02 23:17:16 +0000408IAD210_config: unconfig
409 @./mkconfig $(@:_config=) ppc mpc8xx IAD210 siemens
410
411xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
412
413ICU862_100MHz_config \
414ICU862_config: unconfig
415 @ >include/config.h
416 @[ -z "$(findstring _100MHz,$@)" ] || \
417 { echo "#define CONFIG_100MHz" >>include/config.h ; \
418 echo "... with 100MHz system clock" ; \
419 }
420 @./mkconfig -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
421
422IP860_config : unconfig
423 @./mkconfig $(@:_config=) ppc mpc8xx ip860
424
425IVML24_256_config \
426IVML24_128_config \
427IVML24_config: unconfig
428 @ >include/config.h
429 @[ -z "$(findstring IVML24_config,$@)" ] || \
430 { echo "#define CONFIG_IVML24_16M" >>include/config.h ; \
431 }
432 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
433 { echo "#define CONFIG_IVML24_32M" >>include/config.h ; \
434 }
435 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
436 { echo "#define CONFIG_IVML24_64M" >>include/config.h ; \
437 }
438 @./mkconfig -a IVML24 ppc mpc8xx ivm
439
440IVMS8_256_config \
441IVMS8_128_config \
442IVMS8_config: unconfig
443 @ >include/config.h
444 @[ -z "$(findstring IVMS8_config,$@)" ] || \
445 { echo "#define CONFIG_IVMS8_16M" >>include/config.h ; \
446 }
447 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
448 { echo "#define CONFIG_IVMS8_32M" >>include/config.h ; \
449 }
450 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
451 { echo "#define CONFIG_IVMS8_64M" >>include/config.h ; \
452 }
453 @./mkconfig -a IVMS8 ppc mpc8xx ivm
454
wdenk56f94be2002-11-05 16:35:14 +0000455KUP4K_config : unconfig
wdenk65faef92004-03-25 19:29:38 +0000456 @./mkconfig $(@:_config=) ppc mpc8xx kup4k kup
457
458KUP4X_config : unconfig
459 @./mkconfig $(@:_config=) ppc mpc8xx kup4x kup
wdenk56f94be2002-11-05 16:35:14 +0000460
wdenk7ebf7442002-11-02 23:17:16 +0000461LANTEC_config : unconfig
462 @./mkconfig $(@:_config=) ppc mpc8xx lantec
463
464lwmon_config: unconfig
465 @./mkconfig $(@:_config=) ppc mpc8xx lwmon
466
467MBX_config \
468MBX860T_config: unconfig
469 @./mkconfig $(@:_config=) ppc mpc8xx mbx8xx
470
471MHPC_config: unconfig
472 @./mkconfig $(@:_config=) ppc mpc8xx mhpc eltec
473
474MVS1_config : unconfig
475 @./mkconfig $(@:_config=) ppc mpc8xx mvs1
476
wdenk70764a32003-06-26 22:04:09 +0000477xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
478
479NETVIA_V2_config \
wdenk7ebf7442002-11-02 23:17:16 +0000480NETVIA_config: unconfig
wdenk70764a32003-06-26 22:04:09 +0000481 @ >include/config.h
482 @[ -z "$(findstring NETVIA_config,$@)" ] || \
483 { echo "#define CONFIG_NETVIA_VERSION 1" >>include/config.h ; \
484 echo "... Version 1" ; \
485 }
486 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
487 { echo "#define CONFIG_NETVIA_VERSION 2" >>include/config.h ; \
488 echo "... Version 2" ; \
489 }
490 @./mkconfig -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
wdenk7ebf7442002-11-02 23:17:16 +0000491
wdenk6203e402004-04-18 10:13:26 +0000492xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
493
494NETPHONE_V2_config \
wdenk3902d702004-04-15 18:22:41 +0000495NETPHONE_config: unconfig
wdenk6203e402004-04-18 10:13:26 +0000496 @ >include/config.h
497 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
498 { echo "#define CONFIG_NETPHONE_VERSION 1" >>include/config.h ; \
499 }
500 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
501 { echo "#define CONFIG_NETPHONE_VERSION 2" >>include/config.h ; \
502 }
503 @./mkconfig -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
wdenk3902d702004-04-15 18:22:41 +0000504
wdenkc4e854f2004-06-07 23:46:25 +0000505xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
wdenk3902d702004-04-15 18:22:41 +0000506
wdenkc4e854f2004-06-07 23:46:25 +0000507NETTA_ISDN_6412_SWAPHOOK_config \
508NETTA_ISDN_SWAPHOOK_config \
509NETTA_6412_SWAPHOOK_config \
510NETTA_SWAPHOOK_config \
511NETTA_ISDN_6412_config \
wdenk3902d702004-04-15 18:22:41 +0000512NETTA_ISDN_config \
wdenkc4e854f2004-06-07 23:46:25 +0000513NETTA_6412_config \
wdenk3902d702004-04-15 18:22:41 +0000514NETTA_config: unconfig
515 @ >include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000516 @[ -z "$(findstring ISDN_,$@)" ] || \
517 { echo "#define CONFIG_NETTA_ISDN 1" >>include/config.h ; \
518 }
519 @[ -n "$(findstring ISDN_,$@)" ] || \
wdenk3902d702004-04-15 18:22:41 +0000520 { echo "#undef CONFIG_NETTA_ISDN" >>include/config.h ; \
521 }
wdenkc4e854f2004-06-07 23:46:25 +0000522 @[ -z "$(findstring 6412_,$@)" ] || \
523 { echo "#define CONFIG_NETTA_6412 1" >>include/config.h ; \
524 }
525 @[ -n "$(findstring 6412_,$@)" ] || \
526 { echo "#undef CONFIG_NETTA_6412" >>include/config.h ; \
527 }
528 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
529 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>include/config.h ; \
530 }
531 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
532 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>include/config.h ; \
wdenk3902d702004-04-15 18:22:41 +0000533 }
534 @./mkconfig -a $(call xtract_NETTA,$@) ppc mpc8xx netta
535
wdenkc4e854f2004-06-07 23:46:25 +0000536xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
537
538NETTA2_V2_config \
539NETTA2_config: unconfig
540 @ >include/config.h
541 @[ -z "$(findstring NETTA2_config,$@)" ] || \
542 { echo "#define CONFIG_NETTA2_VERSION 1" >>include/config.h ; \
543 }
544 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
545 { echo "#define CONFIG_NETTA2_VERSION 2" >>include/config.h ; \
546 }
547 @./mkconfig -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
548
wdenk0bbcbd22004-08-28 22:45:57 +0000549NC650_config: unconfig
550 @./mkconfig $(@:_config=) ppc mpc8xx nc650
551
wdenk7ebf7442002-11-02 23:17:16 +0000552NX823_config: unconfig
553 @./mkconfig $(@:_config=) ppc mpc8xx nx823
554
555pcu_e_config: unconfig
556 @./mkconfig $(@:_config=) ppc mpc8xx pcu_e siemens
557
wdenk174e0e52003-12-07 22:27:15 +0000558QS850_config: unconfig
559 @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
560
561QS823_config: unconfig
562 @./mkconfig $(@:_config=) ppc mpc8xx qs850 snmc
563
564QS860T_config: unconfig
565 @./mkconfig $(@:_config=) ppc mpc8xx qs860t snmc
566
wdenk7d1eb822004-09-29 11:02:56 +0000567quantum_config: unconfig
568 @./mkconfig $(@:_config=) ppc mpc8xx quantum
569
wdenk7ebf7442002-11-02 23:17:16 +0000570R360MPI_config: unconfig
571 @./mkconfig $(@:_config=) ppc mpc8xx r360mpi
572
wdenk4e112c12003-06-03 23:54:09 +0000573RBC823_config: unconfig
574 @./mkconfig $(@:_config=) ppc mpc8xx rbc823
575
wdenk7ebf7442002-11-02 23:17:16 +0000576RPXClassic_config: unconfig
577 @./mkconfig $(@:_config=) ppc mpc8xx RPXClassic
578
579RPXlite_config: unconfig
580 @./mkconfig $(@:_config=) ppc mpc8xx RPXlite
581
wdenkec432742004-06-09 21:04:48 +0000582RPXlite_DW_64_config \
583RPXlite_DW_LCD_config \
584RPXlite_DW_64_LCD_config \
585RPXlite_DW_NVRAM_config \
586RPXlite_DW_NVRAM_64_config \
587RPXlite_DW_NVRAM_LCD_config \
588RPXlite_DW_NVRAM_64_LCD_config \
589RPXlite_DW_config: unconfig
590 @ >include/config.h
591 @[ -z "$(findstring _64,$@)" ] || \
592 { echo "#define RPXlite_64MHz" >>include/config.h ; \
593 echo "... with 64MHz system clock ..."; \
594 }
595 @[ -z "$(findstring _LCD,$@)" ] || \
596 { echo "#define CONFIG_LCD" >>include/config.h ; \
597 echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \
598 echo "... with LCD display ..."; \
599 }
600 @[ -z "$(findstring _NVRAM,$@)" ] || \
601 { echo "#define CFG_ENV_IS_IN_NVRAM" >>include/config.h ; \
602 echo "... with ENV in NVRAM ..."; \
603 }
604 @./mkconfig -a RPXlite_DW ppc mpc8xx RPXlite_dw
605
wdenke6466f62003-06-05 19:27:42 +0000606rmu_config: unconfig
607 @./mkconfig $(@:_config=) ppc mpc8xx rmu
608
wdenk7ebf7442002-11-02 23:17:16 +0000609RRvision_config: unconfig
610 @./mkconfig $(@:_config=) ppc mpc8xx RRvision
611
612RRvision_LCD_config: unconfig
613 @echo "#define CONFIG_LCD" >include/config.h
614 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
615 @./mkconfig -a RRvision ppc mpc8xx RRvision
616
617SM850_config : unconfig
618 @./mkconfig $(@:_config=) ppc mpc8xx tqm8xx
619
620SPD823TS_config: unconfig
621 @./mkconfig $(@:_config=) ppc mpc8xx spd8xx
622
wdenkc8434db2003-03-26 06:55:25 +0000623svm_sc8xx_config: unconfig
624 @ >include/config.h
625 @./mkconfig $(@:_config=) ppc mpc8xx svm_sc8xx
626
wdenk7ebf7442002-11-02 23:17:16 +0000627SXNI855T_config: unconfig
628 @./mkconfig $(@:_config=) ppc mpc8xx sixnet
629
wdenkb666c8f2003-03-06 00:58:30 +0000630# EMK MPC8xx based modules
631TOP860_config: unconfig
632 @./mkconfig $(@:_config=) ppc mpc8xx top860 emk
633
wdenk7ebf7442002-11-02 23:17:16 +0000634# Play some tricks for configuration selection
wdenkc78bf132004-04-24 23:23:30 +0000635# Only 855 and 860 boards may come with FEC
636# and only 823 boards may have LCD support
637xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
wdenk7ebf7442002-11-02 23:17:16 +0000638
639FPS850L_config \
wdenk384ae022002-11-05 00:17:55 +0000640FPS860L_config \
wdenk69141282003-07-07 20:07:54 +0000641NSCU_config \
wdenk7ebf7442002-11-02 23:17:16 +0000642TQM823L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000643TQM823L_LCD_config \
wdenk7ebf7442002-11-02 23:17:16 +0000644TQM850L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000645TQM855L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000646TQM860L_config \
wdenk6bd14892003-04-10 11:18:18 +0000647TQM862L_config \
wdenkfb229ae2003-08-07 22:18:11 +0000648TQM823M_config \
wdenkfb229ae2003-08-07 22:18:11 +0000649TQM850M_config \
wdenk69141282003-07-07 20:07:54 +0000650TQM855M_config \
wdenk69141282003-07-07 20:07:54 +0000651TQM860M_config \
wdenk69141282003-07-07 20:07:54 +0000652TQM862M_config \
wdenkb50cde52004-01-24 20:25:54 +0000653TQM866M_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000654 @ >include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000655 @[ -z "$(findstring _LCD,$@)" ] || \
656 { echo "#define CONFIG_LCD" >>include/config.h ; \
wdenkc0d54ae2003-11-25 16:55:19 +0000657 echo "#define CONFIG_NEC_NL6448BC20" >>include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +0000658 echo "... with LCD display" ; \
659 }
660 @./mkconfig -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
661
662TTTech_config: unconfig
663 @echo "#define CONFIG_LCD" >include/config.h
664 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>include/config.h
665 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
666
wdenk2dad91b2003-01-13 23:54:46 +0000667v37_config: unconfig
668 @echo "#define CONFIG_LCD" >include/config.h
669 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>include/config.h
670 @./mkconfig $(@:_config=) ppc mpc8xx v37
671
dzu69438f62003-09-25 22:32:40 +0000672wtk_config: unconfig
673 @echo "#define CONFIG_LCD" >include/config.h
674 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>include/config.h
675 @./mkconfig -a TQM823L ppc mpc8xx tqm8xx
676
wdenk7ebf7442002-11-02 23:17:16 +0000677#########################################################################
678## PPC4xx Systems
679#########################################################################
wdenk99874b42004-07-01 21:40:08 +0000680xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
wdenk7ebf7442002-11-02 23:17:16 +0000681
682ADCIOP_config: unconfig
683 @./mkconfig $(@:_config=) ppc ppc4xx adciop esd
684
685AR405_config: unconfig
686 @./mkconfig $(@:_config=) ppc ppc4xx ar405 esd
687
stroesebfcc82b2003-05-23 11:41:44 +0000688ASH405_config: unconfig
689 @./mkconfig $(@:_config=) ppc ppc4xx ash405 esd
690
wdenk634d2f72004-04-15 23:14:49 +0000691BUBINGA405EP_config: unconfig
stroesebfcc82b2003-05-23 11:41:44 +0000692 @./mkconfig $(@:_config=) ppc ppc4xx bubinga405ep
693
wdenk7ebf7442002-11-02 23:17:16 +0000694CANBT_config: unconfig
695 @./mkconfig $(@:_config=) ppc ppc4xx canbt esd
696
wdenk9e7130b2004-09-09 17:44:35 +0000697CATcenter_config \
698CATcenter_25_config \
699CATcenter_33_config: unconfig
wdenkbb33bab2004-05-13 13:23:58 +0000700 @ echo "/* CATcenter uses PPChameleon Model ME */" > include/config.h
701 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> include/config.h
wdenk9e7130b2004-09-09 17:44:35 +0000702 @[ -z "$(findstring _25,$@)" ] || \
703 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
704 echo "SysClk = 25MHz" ; \
705 }
706 @[ -z "$(findstring _33,$@)" ] || \
707 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
708 echo "SysClk = 33MHz" ; \
709 }
wdenkbb33bab2004-05-13 13:23:58 +0000710 @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
711
stroesebfcc82b2003-05-23 11:41:44 +0000712CPCI405_config \
713CPCI4052_config \
714CPCI405AB_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000715 @./mkconfig $(@:_config=) ppc ppc4xx cpci405 esd
716 @echo "BOARD_REVISION = $(@:_config=)" >>include/config.mk
717
718CPCI440_config: unconfig
719 @./mkconfig $(@:_config=) ppc ppc4xx cpci440 esd
720
721CPCIISER4_config: unconfig
722 @./mkconfig $(@:_config=) ppc ppc4xx cpciiser4 esd
723
wdenk634d2f72004-04-15 23:14:49 +0000724CRAYL1_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000725 @./mkconfig $(@:_config=) ppc ppc4xx L1 cray
726
wdenkf70cbb22004-02-23 20:48:38 +0000727csb272_config: unconfig
728 @./mkconfig $(@:_config=) ppc ppc4xx csb272
729
wdenk7e920de2004-06-09 12:47:02 +0000730csb472_config: unconfig
731 @./mkconfig $(@:_config=) ppc ppc4xx csb472
732
wdenk7ebf7442002-11-02 23:17:16 +0000733DASA_SIM_config: unconfig
734 @./mkconfig $(@:_config=) ppc ppc4xx dasa_sim esd
735
stroese3361eb72003-09-12 08:57:15 +0000736DP405_config: unconfig
737 @./mkconfig $(@:_config=) ppc ppc4xx dp405 esd
738
wdenk7ebf7442002-11-02 23:17:16 +0000739DU405_config: unconfig
740 @./mkconfig $(@:_config=) ppc ppc4xx du405 esd
741
wdenk634d2f72004-04-15 23:14:49 +0000742EBONY_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000743 @./mkconfig $(@:_config=) ppc ppc4xx ebony
744
wdenk634d2f72004-04-15 23:14:49 +0000745ERIC_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000746 @./mkconfig $(@:_config=) ppc ppc4xx eric
747
wdenk634d2f72004-04-15 23:14:49 +0000748EXBITGEN_config: unconfig
wdenkd9fce812003-06-28 17:24:46 +0000749 @./mkconfig $(@:_config=) ppc ppc4xx exbitgen
750
stroese3361eb72003-09-12 08:57:15 +0000751HUB405_config: unconfig
752 @./mkconfig $(@:_config=) ppc ppc4xx hub405 esd
753
wdenk634d2f72004-04-15 23:14:49 +0000754JSE_config: unconfig
755 @./mkconfig $(@:_config=) ppc ppc4xx jse
756
757MIP405_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000758 @./mkconfig $(@:_config=) ppc ppc4xx mip405 mpl
759
wdenk634d2f72004-04-15 23:14:49 +0000760MIP405T_config: unconfig
wdenke39c2842003-06-04 15:05:30 +0000761 @echo "#define CONFIG_MIP405T" >include/config.h
762 @echo "Enable subset config for MIP405T"
763 @./mkconfig -a MIP405 ppc ppc4xx mip405 mpl
764
wdenk634d2f72004-04-15 23:14:49 +0000765ML2_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000766 @./mkconfig $(@:_config=) ppc ppc4xx ml2
767
wdenk634d2f72004-04-15 23:14:49 +0000768ml300_config: unconfig
wdenke537b3b2004-02-23 23:54:43 +0000769 @./mkconfig $(@:_config=) ppc ppc4xx ml300 xilinx
770
wdenk634d2f72004-04-15 23:14:49 +0000771OCOTEA_config: unconfig
wdenk00fe1612004-03-14 00:07:33 +0000772 @./mkconfig $(@:_config=) ppc ppc4xx ocotea
773
wdenk7ebf7442002-11-02 23:17:16 +0000774OCRTC_config \
775ORSG_config: unconfig
776 @./mkconfig $(@:_config=) ppc ppc4xx ocrtc esd
777
778PCI405_config: unconfig
779 @./mkconfig $(@:_config=) ppc ppc4xx pci405 esd
780
wdenk634d2f72004-04-15 23:14:49 +0000781PIP405_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000782 @./mkconfig $(@:_config=) ppc ppc4xx pip405 mpl
783
stroese3361eb72003-09-12 08:57:15 +0000784PLU405_config: unconfig
785 @./mkconfig $(@:_config=) ppc ppc4xx plu405 esd
786
stroesebfcc82b2003-05-23 11:41:44 +0000787PMC405_config: unconfig
788 @./mkconfig $(@:_config=) ppc ppc4xx pmc405 esd
789
wdenk7ac16102004-08-01 22:48:16 +0000790PPChameleonEVB_config \
wdenk99874b42004-07-01 21:40:08 +0000791PPChameleonEVB_BA_25_config \
792PPChameleonEVB_ME_25_config \
793PPChameleonEVB_HI_25_config \
794PPChameleonEVB_BA_33_config \
795PPChameleonEVB_ME_33_config \
796PPChameleonEVB_HI_33_config: unconfig
wdenk7182b0f2003-10-06 21:55:32 +0000797 @ >include/config.h
wdenk9e7130b2004-09-09 17:44:35 +0000798 @[ -z "$(findstring EVB_BA,$@)" ] || \
wdenk7182b0f2003-10-06 21:55:32 +0000799 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>include/config.h ; \
800 echo "... BASIC model" ; \
801 }
wdenk9e7130b2004-09-09 17:44:35 +0000802 @[ -z "$(findstring EVB_ME,$@)" ] || \
wdenk7182b0f2003-10-06 21:55:32 +0000803 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>include/config.h ; \
804 echo "... MEDIUM model" ; \
805 }
wdenk9e7130b2004-09-09 17:44:35 +0000806 @[ -z "$(findstring EVB_HI,$@)" ] || \
wdenk7182b0f2003-10-06 21:55:32 +0000807 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>include/config.h ; \
808 echo "... HIGH-END model" ; \
809 }
wdenk99874b42004-07-01 21:40:08 +0000810 @[ -z "$(findstring _25,$@)" ] || \
811 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>include/config.h ; \
wdenk9e7130b2004-09-09 17:44:35 +0000812 echo "SysClk = 25MHz" ; \
wdenk99874b42004-07-01 21:40:08 +0000813 }
814 @[ -z "$(findstring _33,$@)" ] || \
815 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>include/config.h ; \
wdenk9e7130b2004-09-09 17:44:35 +0000816 echo "SysClk = 33MHz" ; \
wdenk99874b42004-07-01 21:40:08 +0000817 }
wdenk7182b0f2003-10-06 21:55:32 +0000818 @./mkconfig -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
wdenk232fe0b2003-09-02 22:48:03 +0000819
stroese3361eb72003-09-12 08:57:15 +0000820VOH405_config: unconfig
821 @./mkconfig $(@:_config=) ppc ppc4xx voh405 esd
822
wdenk7ebf7442002-11-02 23:17:16 +0000823W7OLMC_config \
824W7OLMG_config: unconfig
825 @./mkconfig $(@:_config=) ppc ppc4xx w7o
826
wdenk634d2f72004-04-15 23:14:49 +0000827WALNUT405_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +0000828 @./mkconfig $(@:_config=) ppc ppc4xx walnut405
829
wdenk634d2f72004-04-15 23:14:49 +0000830XPEDITE1K_config: unconfig
wdenk544e9732004-02-06 23:19:44 +0000831 @./mkconfig $(@:_config=) ppc ppc4xx xpedite1k
832
wdenk7ebf7442002-11-02 23:17:16 +0000833#########################################################################
wdenk337f5652004-10-28 00:09:35 +0000834## MPC8220 Systems
835#########################################################################
836Alaska8220_config: unconfig
837 @./mkconfig $(@:_config=) ppc mpc8220 alaska
838
839Yukon8220_config: unconfig
840 @./mkconfig $(@:_config=) ppc mpc8220 yukon
841
842#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000843## MPC824x Systems
844#########################################################################
wdenkc12081a2004-03-23 20:18:25 +0000845xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
wdenkef5fe752003-03-12 10:41:04 +0000846
wdenk8aeb24e2003-06-20 22:36:30 +0000847A3000_config: unconfig
848 @./mkconfig $(@:_config=) ppc mpc824x a3000
849
wdenk7ebf7442002-11-02 23:17:16 +0000850BMW_config: unconfig
851 @./mkconfig $(@:_config=) ppc mpc824x bmw
852
wdenkef5fe752003-03-12 10:41:04 +0000853CPC45_config \
854CPC45_ROMBOOT_config: unconfig
855 @./mkconfig $(call xtract_82xx,$@) ppc mpc824x cpc45
856 @cd ./include ; \
857 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
858 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
859 echo "... booting from 8-bit flash" ; \
860 else \
861 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
862 echo "... booting from 64-bit flash" ; \
863 fi; \
864 echo "export CONFIG_BOOT_ROM" >> config.mk;
865
wdenk7ebf7442002-11-02 23:17:16 +0000866CU824_config: unconfig
867 @./mkconfig $(@:_config=) ppc mpc824x cu824
868
wdenk78924a72004-04-18 21:45:42 +0000869debris_config: unconfig
870 @./mkconfig $(@:_config=) ppc mpc824x debris etin
871
wdenk5f495752004-02-26 23:46:20 +0000872eXalion_config: unconfig
873 @./mkconfig $(@:_config=) ppc mpc824x eXalion
874
wdenk7ebf7442002-11-02 23:17:16 +0000875MOUSSE_config: unconfig
876 @./mkconfig $(@:_config=) ppc mpc824x mousse
877
878MUSENKI_config: unconfig
879 @./mkconfig $(@:_config=) ppc mpc824x musenki
880
wdenk4e7a58a2003-12-07 19:24:00 +0000881MVBLUE_config: unconfig
882 @./mkconfig $(@:_config=) ppc mpc824x mvblue
883
wdenk7ebf7442002-11-02 23:17:16 +0000884OXC_config: unconfig
885 @./mkconfig $(@:_config=) ppc mpc824x oxc
886
887PN62_config: unconfig
888 @./mkconfig $(@:_config=) ppc mpc824x pn62
889
890Sandpoint8240_config: unconfig
891 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
892
893Sandpoint8245_config: unconfig
894 @./mkconfig $(@:_config=) ppc mpc824x sandpoint
895
wdenk265d2172004-07-10 22:35:59 +0000896sbc8240_config: unconfig
897 @./mkconfig $(@:_config=) ppc mpc824x sbc8240
898
wdenkd9fce812003-06-28 17:24:46 +0000899SL8245_config: unconfig
900 @./mkconfig $(@:_config=) ppc mpc824x sl8245
901
wdenk7ebf7442002-11-02 23:17:16 +0000902utx8245_config: unconfig
903 @./mkconfig $(@:_config=) ppc mpc824x utx8245
904
905#########################################################################
906## MPC8260 Systems
907#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000908
wdenk2f0812d2003-10-08 22:45:44 +0000909atc_config: unconfig
910 @./mkconfig $(@:_config=) ppc mpc8260 atc
911
wdenk7ebf7442002-11-02 23:17:16 +0000912cogent_mpc8260_config: unconfig
913 @./mkconfig $(@:_config=) ppc mpc8260 cogent
914
915CPU86_config \
916CPU86_ROMBOOT_config: unconfig
917 @./mkconfig $(call xtract_82xx,$@) ppc mpc8260 cpu86
918 @cd ./include ; \
919 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
920 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
921 echo "... booting from 8-bit flash" ; \
922 else \
923 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
924 echo "... booting from 64-bit flash" ; \
925 fi; \
926 echo "export CONFIG_BOOT_ROM" >> config.mk;
927
928ep8260_config: unconfig
929 @./mkconfig $(@:_config=) ppc mpc8260 ep8260
930
931gw8260_config: unconfig
932 @./mkconfig $(@:_config=) ppc mpc8260 gw8260
933
934hymod_config: unconfig
935 @./mkconfig $(@:_config=) ppc mpc8260 hymod
936
937IPHASE4539_config: unconfig
938 @./mkconfig $(@:_config=) ppc mpc8260 iphase4539
939
wdenk76dd6c72004-06-09 14:47:54 +0000940ISPAN_config \
941ISPAN_REVB_config: unconfig
942 @if [ "$(findstring _REVB_,$@)" ] ; then \
943 echo "#define CFG_REV_B" > include/config.h ; \
944 fi
945 @./mkconfig -a ISPAN ppc mpc8260 ispan
946
wdenk3902d702004-04-15 18:22:41 +0000947MPC8260ADS_config \
948MPC8260ADS_33MHz_config \
949MPC8260ADS_40MHz_config \
950MPC8272ADS_config \
951PQ2FADS_config \
952PQ2FADS-VR_config \
953PQ2FADS-ZU_config \
954PQ2FADS-ZU_66MHz_config \
955 : unconfig
956 $(if $(findstring PQ2FADS,$@), \
957 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > include/config.h, \
958 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > include/config.h)
959 $(if $(findstring MHz,$@), \
960 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> include/config.h, \
961 $(if $(findstring VR,$@), \
962 @echo "#define CONFIG_8260_CLKIN 66000000" >> include/config.h))
963 @./mkconfig -a MPC8260ADS ppc mpc8260 mpc8260ads
wdenk7ebf7442002-11-02 23:17:16 +0000964
wdenkb666c8f2003-03-06 00:58:30 +0000965MPC8266ADS_config: unconfig
966 @./mkconfig $(@:_config=) ppc mpc8260 mpc8266ads
967
wdenkc12081a2004-03-23 20:18:25 +0000968# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
wdenk4b57dcc2003-03-25 18:06:06 +0000969PM825_config \
wdenkc12081a2004-03-23 20:18:25 +0000970PM825_ROMBOOT_config \
971PM825_BIGFLASH_config \
972PM825_ROMBOOT_BIGFLASH_config \
973PM826_config \
974PM826_ROMBOOT_config \
975PM826_BIGFLASH_config \
976PM826_ROMBOOT_BIGFLASH_config: unconfig
977 @if [ "$(findstring PM825_,$@)" ] ; then \
978 echo "#define CONFIG_PCI" >include/config.h ; \
979 else \
980 >include/config.h ; \
981 fi
982 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
wdenk4b57dcc2003-03-25 18:06:06 +0000983 echo "... booting from 8-bit flash" ; \
wdenkc12081a2004-03-23 20:18:25 +0000984 echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
985 echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
986 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
987 echo "... with 32 MB Flash" ; \
988 echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
989 fi; \
wdenk4b57dcc2003-03-25 18:06:06 +0000990 else \
wdenk4b57dcc2003-03-25 18:06:06 +0000991 echo "... booting from 64-bit flash" ; \
wdenkc12081a2004-03-23 20:18:25 +0000992 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
993 echo "... with 32 MB Flash" ; \
994 echo "#define CONFIG_FLASH_32MB" >>include/config.h ; \
995 echo "TEXT_BASE = 0x40000000" >board/pm826/config.tmp ; \
996 else \
997 echo "TEXT_BASE = 0xFF000000" >board/pm826/config.tmp ; \
998 fi; \
999 fi
1000 @./mkconfig -a PM826 ppc mpc8260 pm826
wdenk4b57dcc2003-03-25 18:06:06 +00001001
wdenkc12081a2004-03-23 20:18:25 +00001002PM828_config \
1003PM828_PCI_config \
1004PM828_ROMBOOT_config \
1005PM828_ROMBOOT_PCI_config: unconfig
1006 @if [ -z "$(findstring _PCI_,$@)" ] ; then \
1007 echo "#define CONFIG_PCI" >>include/config.h ; \
1008 echo "... with PCI enabled" ; \
wdenk7ebf7442002-11-02 23:17:16 +00001009 else \
wdenkc12081a2004-03-23 20:18:25 +00001010 >include/config.h ; \
1011 fi
1012 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1013 echo "... booting from 8-bit flash" ; \
1014 echo "#define CONFIG_BOOT_ROM" >>include/config.h ; \
1015 echo "TEXT_BASE = 0xFF800000" >board/pm826/config.tmp ; \
1016 fi
1017 @./mkconfig -a PM828 ppc mpc8260 pm828
wdenk7ebf7442002-11-02 23:17:16 +00001018
1019ppmc8260_config: unconfig
1020 @./mkconfig $(@:_config=) ppc mpc8260 ppmc8260
1021
1022RPXsuper_config: unconfig
1023 @./mkconfig $(@:_config=) ppc mpc8260 rpxsuper
1024
1025rsdproto_config: unconfig
1026 @./mkconfig $(@:_config=) ppc mpc8260 rsdproto
1027
1028sacsng_config: unconfig
1029 @./mkconfig $(@:_config=) ppc mpc8260 sacsng
1030
1031sbc8260_config: unconfig
1032 @./mkconfig $(@:_config=) ppc mpc8260 sbc8260
1033
1034SCM_config: unconfig
1035 @./mkconfig $(@:_config=) ppc mpc8260 SCM siemens
1036
wdenk874ac262003-07-24 23:38:38 +00001037TQM8255_AA_config \
1038TQM8260_AA_config \
1039TQM8260_AB_config \
1040TQM8260_AC_config \
1041TQM8260_AD_config \
1042TQM8260_AE_config \
1043TQM8260_AF_config \
1044TQM8260_AG_config \
1045TQM8260_AH_config \
1046TQM8265_AA_config: unconfig
1047 @case "$@" in \
1048 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1049 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1050 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1051 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1052 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1053 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1054 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1055 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1056 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1057 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
1058 esac; \
1059 >include/config.h ; \
1060 if [ "$${CTYPE}" != "MPC8260" ] ; then \
1061 echo "#define CONFIG_$${CTYPE}" >>include/config.h ; \
1062 fi; \
1063 echo "#define CONFIG_$${CFREQ}MHz" >>include/config.h ; \
1064 echo "... with $${CFREQ}MHz system clock" ; \
1065 if [ "$${CACHE}" == "yes" ] ; then \
wdenk7ebf7442002-11-02 23:17:16 +00001066 echo "#define CONFIG_L2_CACHE" >>include/config.h ; \
wdenk874ac262003-07-24 23:38:38 +00001067 echo "... with L2 Cache support" ; \
wdenk7ebf7442002-11-02 23:17:16 +00001068 else \
1069 echo "#undef CONFIG_L2_CACHE" >>include/config.h ; \
1070 echo "... without L2 Cache support" ; \
wdenk874ac262003-07-24 23:38:38 +00001071 fi; \
1072 if [ "$${BMODE}" == "60x" ] ; then \
1073 echo "#define CONFIG_BUSMODE_60x" >>include/config.h ; \
1074 echo "... with 60x Bus Mode" ; \
1075 else \
1076 echo "#undef CONFIG_BUSMODE_60x" >>include/config.h ; \
1077 echo "... without 60x Bus Mode" ; \
wdenk7ebf7442002-11-02 23:17:16 +00001078 fi
wdenkc08f1582003-04-27 22:52:51 +00001079 @./mkconfig -a TQM8260 ppc mpc8260 tqm8260
wdenk7ebf7442002-11-02 23:17:16 +00001080
wdenk2f0812d2003-10-08 22:45:44 +00001081ZPC1900_config: unconfig
1082 @./mkconfig $(@:_config=) ppc mpc8260 zpc1900
wdenk541a76d2003-05-03 15:50:43 +00001083
wdenkabf7a7c2003-12-08 01:34:36 +00001084#========================================================================
1085# M68K
1086#========================================================================
1087#########################################################################
1088## Coldfire
1089#########################################################################
1090
1091M5272C3_config : unconfig
wdenke65527f2004-02-12 00:47:09 +00001092 @./mkconfig $(@:_config=) m68k mcf52x2 m5272c3
wdenkabf7a7c2003-12-08 01:34:36 +00001093
1094M5282EVB_config : unconfig
wdenke65527f2004-02-12 00:47:09 +00001095 @./mkconfig $(@:_config=) m68k mcf52x2 m5282evb
wdenkabf7a7c2003-12-08 01:34:36 +00001096
wdenk7ebf7442002-11-02 23:17:16 +00001097#########################################################################
wdenk9c53f402003-10-15 23:53:47 +00001098## MPC85xx Systems
1099#########################################################################
1100
wdenk13eb2212004-07-09 23:27:13 +00001101MPC8540ADS_config: unconfig
wdenk9c53f402003-10-15 23:53:47 +00001102 @./mkconfig $(@:_config=) ppc mpc85xx mpc8540ads
1103
wdenk13eb2212004-07-09 23:27:13 +00001104MPC8560ADS_config: unconfig
wdenk9c53f402003-10-15 23:53:47 +00001105 @./mkconfig $(@:_config=) ppc mpc85xx mpc8560ads
1106
wdenk0aeb8532004-10-10 21:21:55 +00001107MPC8541CDS_config: unconfig
1108 @./mkconfig $(@:_config=) ppc mpc85xx mpc8541cds cds
1109
1110MPC8555CDS_config: unconfig
1111 @./mkconfig $(@:_config=) ppc mpc85xx mpc8555cds cds
wdenk78924a72004-04-18 21:45:42 +00001112
wdenkadf849c2004-10-10 22:44:24 +00001113sbc8540_config \
1114sbc8540_33_config \
1115sbc8540_66_config: unconfig
1116 @if [ "$(findstring _66_,$@)" ] ; then \
1117 echo "#define CONFIG_PCI_66" >>include/config.h ; \
1118 echo "... 66 MHz PCI" ; \
1119 else \
1120 >include/config.h ; \
1121 echo "... 33 MHz PCI" ; \
1122 fi
1123 @./mkconfig -a SBC8540 ppc mpc85xx sbc8560
1124
wdenk265d2172004-07-10 22:35:59 +00001125sbc8560_config \
1126sbc8560_33_config \
1127sbc8560_66_config: unconfig
wdenk3203c8f2004-07-10 21:45:47 +00001128 @if [ "$(findstring _66_,$@)" ] ; then \
wdenkadf849c2004-10-10 22:44:24 +00001129 echo "#define CONFIG_PCI_66" >>include/config.h ; \
wdenk3203c8f2004-07-10 21:45:47 +00001130 echo "... 66 MHz PCI" ; \
1131 else \
1132 >include/config.h ; \
1133 echo "... 33 MHz PCI" ; \
1134 fi
wdenk265d2172004-07-10 22:35:59 +00001135 @./mkconfig -a sbc8560 ppc mpc85xx sbc8560
wdenk3203c8f2004-07-10 21:45:47 +00001136
wdenk0aeb8532004-10-10 21:21:55 +00001137stxgp3_config: unconfig
1138 @./mkconfig $(@:_config=) ppc mpc85xx stxgp3
1139
wdenk9c53f402003-10-15 23:53:47 +00001140#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001141## 74xx/7xx Systems
1142#########################################################################
1143
wdenk452cfd62002-11-19 11:04:11 +00001144AmigaOneG3SE_config: unconfig
1145 @./mkconfig $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1146
wdenk9f837932003-10-09 19:00:25 +00001147BAB7xx_config: unconfig
1148 @./mkconfig $(@:_config=) ppc 74xx_7xx bab7xx eltec
1149
wdenk5da7f2f2004-01-03 00:43:19 +00001150DB64360_config: unconfig
1151 @./mkconfig DB64360 ppc 74xx_7xx db64360 Marvell
1152
1153DB64460_config: unconfig
1154 @./mkconfig DB64460 ppc 74xx_7xx db64460 Marvell
1155
wdenk9f837932003-10-09 19:00:25 +00001156ELPPC_config: unconfig
1157 @./mkconfig $(@:_config=) ppc 74xx_7xx elppc eltec
1158
wdenk7ebf7442002-11-02 23:17:16 +00001159EVB64260_config \
1160EVB64260_750CX_config: unconfig
1161 @./mkconfig EVB64260 ppc 74xx_7xx evb64260
1162
wdenk9f837932003-10-09 19:00:25 +00001163P3G4_config: unconfig
wdenk7ebf7442002-11-02 23:17:16 +00001164 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
1165
1166PCIPPC2_config \
1167PCIPPC6_config: unconfig
1168 @./mkconfig $(@:_config=) ppc 74xx_7xx pcippc2
1169
wdenk9f837932003-10-09 19:00:25 +00001170ZUMA_config: unconfig
wdenk232fe0b2003-09-02 22:48:03 +00001171 @./mkconfig $(@:_config=) ppc 74xx_7xx evb64260
1172
wdenk7ebf7442002-11-02 23:17:16 +00001173#========================================================================
1174# ARM
1175#========================================================================
1176#########################################################################
1177## StrongARM Systems
1178#########################################################################
1179
wdenke5cda752004-04-15 23:23:39 +00001180assabet_config : unconfig
1181 @./mkconfig $(@:_config=) arm sa1100 assabet
1182
wdenk7ebf7442002-11-02 23:17:16 +00001183dnp1110_config : unconfig
1184 @./mkconfig $(@:_config=) arm sa1100 dnp1110
1185
wdenked2ac4b2004-03-14 18:23:55 +00001186gcplus_config : unconfig
1187 @./mkconfig $(@:_config=) arm sa1100 gcplus
1188
1189lart_config : unconfig
1190 @./mkconfig $(@:_config=) arm sa1100 lart
1191
wdenk7ebf7442002-11-02 23:17:16 +00001192shannon_config : unconfig
1193 @./mkconfig $(@:_config=) arm sa1100 shannon
1194
1195#########################################################################
wdenkf6f96f72003-07-15 20:04:06 +00001196## ARM92xT Systems
wdenk7ebf7442002-11-02 23:17:16 +00001197#########################################################################
1198
wdenkb6b2f0e2003-09-17 22:48:07 +00001199xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
wdenk4a5c8a72003-03-06 00:02:04 +00001200
wdenk920e91b2004-06-09 15:25:53 +00001201xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
wdenke97d3d92004-02-23 22:22:28 +00001202
wdenke3a06802004-06-06 23:13:55 +00001203xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1204
wdenk4989f872004-03-14 15:06:13 +00001205integratorap_config : unconfig
1206 @./mkconfig $(@:_config=) arm arm926ejs integratorap
1207
wdenkb3a4a702004-12-10 11:40:40 +00001208integratorcp_config : unconfig
1209 @./mkconfig $(@:_config=) arm arm926ejs integratorcp
1210
wdenk37bdfdf2004-06-10 21:55:33 +00001211lpd7a400_config \
1212lpd7a404_config: unconfig
wdenk9f664dd2004-06-09 21:50:45 +00001213 @./mkconfig $(@:_config=) arm lh7a40x lpd7a40x
wdenk4989f872004-03-14 15:06:13 +00001214
wdenk7ac16102004-08-01 22:48:16 +00001215mx1ads_config : unconfig
wdenkf8e9a232004-10-09 22:21:29 +00001216 @./mkconfig $(@:_config=) arm arm920t mx1ads NULL imx
wdenk7ac16102004-08-01 22:48:16 +00001217
1218mx1fs2_config : unconfig
wdenkf8e9a232004-10-09 22:21:29 +00001219 @./mkconfig $(@:_config=) arm arm920t mx1fs2 NULL imx
wdenk7ac16102004-08-01 22:48:16 +00001220
wdenkf6f96f72003-07-15 20:04:06 +00001221omap1510inn_config : unconfig
1222 @./mkconfig $(@:_config=) arm arm925t omap1510inn
1223
wdenk914be132004-06-08 00:22:43 +00001224omap5912osk_config : unconfig
1225 @./mkconfig $(@:_config=) arm arm926ejs omap5912osk
1226
wdenke97d3d92004-02-23 22:22:28 +00001227omap1610inn_config \
1228omap1610inn_cs0boot_config \
1229omap1610inn_cs3boot_config \
wdenk920e91b2004-06-09 15:25:53 +00001230omap1610inn_cs_autoboot_config \
wdenke97d3d92004-02-23 22:22:28 +00001231omap1610h2_config \
1232omap1610h2_cs0boot_config \
wdenk920e91b2004-06-09 15:25:53 +00001233omap1610h2_cs3boot_config \
1234omap1610h2_cs_autoboot_config: unconfig
wdenke97d3d92004-02-23 22:22:28 +00001235 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
1236 echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
wdenkd3602132004-03-25 15:14:43 +00001237 echo "... configured for CS0 boot"; \
wdenk920e91b2004-06-09 15:25:53 +00001238 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
1239 echo "#define CONFIG_CS_AUTOBOOT" >> ./include/config.h ; \
1240 echo "... configured for CS_AUTO boot"; \
wdenke97d3d92004-02-23 22:22:28 +00001241 else \
1242 echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
wdenkd3602132004-03-25 15:14:43 +00001243 echo "... configured for CS3 boot"; \
wdenke97d3d92004-02-23 22:22:28 +00001244 fi;
1245 @./mkconfig -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn
wdenk7eaacc52003-08-29 22:00:43 +00001246
wdenke3a06802004-06-06 23:13:55 +00001247omap730p2_config \
1248omap730p2_cs0boot_config \
1249omap730p2_cs3boot_config : unconfig
1250 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
1251 echo "#define CONFIG_CS0_BOOT" >> ./include/config.h ; \
1252 echo "... configured for CS0 boot"; \
1253 else \
1254 echo "#define CONFIG_CS3_BOOT" >> ./include/config.h ; \
1255 echo "... configured for CS3 boot"; \
1256 fi;
1257 @./mkconfig -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2
1258
wdenk7ac16102004-08-01 22:48:16 +00001259scb9328_config : unconfig
wdenkf8e9a232004-10-09 22:21:29 +00001260 @./mkconfig $(@:_config=) arm arm920t scb9328 NULL imx
wdenk7ac16102004-08-01 22:48:16 +00001261
wdenk7ebf7442002-11-02 23:17:16 +00001262smdk2400_config : unconfig
wdenkf8e9a232004-10-09 22:21:29 +00001263 @./mkconfig $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
wdenk7ebf7442002-11-02 23:17:16 +00001264
1265smdk2410_config : unconfig
wdenkf8e9a232004-10-09 22:21:29 +00001266 @./mkconfig $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
wdenk7ebf7442002-11-02 23:17:16 +00001267
wdenk9f664dd2004-06-09 21:50:45 +00001268SX1_config : unconfig
1269 @./mkconfig $(@:_config=) arm arm925t sx1
1270
wdenk236d3fc2003-12-20 22:45:10 +00001271# TRAB default configuration: 8 MB Flash, 32 MB RAM
wdenk4a5c8a72003-03-06 00:02:04 +00001272trab_config \
wdenkb6b2f0e2003-09-17 22:48:07 +00001273trab_bigram_config \
1274trab_bigflash_config \
wdenkf6a6ac12003-09-17 15:10:32 +00001275trab_old_config: unconfig
wdenk4a5c8a72003-03-06 00:02:04 +00001276 @ >include/config.h
wdenkb6b2f0e2003-09-17 22:48:07 +00001277 @[ -z "$(findstring _bigram,$@)" ] || \
wdenk236d3fc2003-12-20 22:45:10 +00001278 { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
1279 echo "#define CONFIG_RAM_32MB" >>include/config.h ; \
wdenkb6b2f0e2003-09-17 22:48:07 +00001280 echo "... with 8 MB Flash, 32 MB RAM" ; \
1281 }
1282 @[ -z "$(findstring _bigflash,$@)" ] || \
wdenk236d3fc2003-12-20 22:45:10 +00001283 { echo "#define CONFIG_FLASH_16MB" >>include/config.h ; \
1284 echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
wdenkb6b2f0e2003-09-17 22:48:07 +00001285 echo "... with 16 MB Flash, 16 MB RAM" ; \
wdenkc0aa5c52003-12-06 19:49:23 +00001286 echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
wdenkb6b2f0e2003-09-17 22:48:07 +00001287 }
wdenkf6a6ac12003-09-17 15:10:32 +00001288 @[ -z "$(findstring _old,$@)" ] || \
wdenk236d3fc2003-12-20 22:45:10 +00001289 { echo "#define CONFIG_FLASH_8MB" >>include/config.h ; \
1290 echo "#define CONFIG_RAM_16MB" >>include/config.h ; \
1291 echo "... with 8 MB Flash, 16 MB RAM" ; \
wdenkc0aa5c52003-12-06 19:49:23 +00001292 echo "TEXT_BASE = 0x0CF40000" >board/trab/config.tmp ; \
wdenk4a5c8a72003-03-06 00:02:04 +00001293 }
wdenkf8e9a232004-10-09 22:21:29 +00001294 @./mkconfig -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
wdenk7ebf7442002-11-02 23:17:16 +00001295
wdenk1fe2c702003-03-06 21:55:29 +00001296VCMA9_config : unconfig
wdenkf8e9a232004-10-09 22:21:29 +00001297 @./mkconfig $(@:_config=) arm arm920t vcma9 mpl s3c24x0
wdenk1fe2c702003-03-06 21:55:29 +00001298
wdenk9f664dd2004-06-09 21:50:45 +00001299versatile_config : unconfig
1300 @./mkconfig $(@:_config=) arm arm926ejs versatile
wdenkb98ac282004-02-24 00:16:43 +00001301
1302#########################################################################
1303## S3C44B0 Systems
1304#########################################################################
1305
1306B2_config : unconfig
1307 @./mkconfig $(@:_config=) arm s3c44b0 B2 dave
1308
wdenk7ebf7442002-11-02 23:17:16 +00001309#########################################################################
wdenk9f664dd2004-06-09 21:50:45 +00001310## ARM720T Systems
1311#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001312
1313ep7312_config : unconfig
1314 @./mkconfig $(@:_config=) arm arm720t ep7312
1315
wdenk9f664dd2004-06-09 21:50:45 +00001316impa7_config : unconfig
1317 @./mkconfig $(@:_config=) arm arm720t impa7
1318
wdenk2ebee312004-02-23 19:30:57 +00001319modnet50_config : unconfig
1320 @./mkconfig $(@:_config=) arm arm720t modnet50
1321
wdenkf2140d52004-07-01 16:30:44 +00001322evb4510_config : unconfig
1323 @./mkconfig $(@:_config=) arm arm720t evb4510
1324
wdenk7ebf7442002-11-02 23:17:16 +00001325#########################################################################
wdenk0ef49462004-03-15 09:00:01 +00001326## AT91RM9200 Systems
1327#########################################################################
1328
1329at91rm9200dk_config : unconfig
1330 @./mkconfig $(@:_config=) arm at91rm9200 at91rm9200dk
1331
wdenk70ae5b42004-10-10 17:05:18 +00001332cmc_pu2_config : unconfig
1333 @./mkconfig $(@:_config=) arm at91rm9200 cmc_pu2
1334
wdenk0ef49462004-03-15 09:00:01 +00001335#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +00001336## XScale Systems
wdenk7ebf7442002-11-02 23:17:16 +00001337#########################################################################
1338
wdenkb5bb1392004-07-10 23:11:10 +00001339cerf250_config : unconfig
1340 @./mkconfig $(@:_config=) arm pxa cerf250
1341
wdenk7ebf7442002-11-02 23:17:16 +00001342cradle_config : unconfig
wdenk57b2d802003-06-27 21:31:46 +00001343 @./mkconfig $(@:_config=) arm pxa cradle
wdenk7ebf7442002-11-02 23:17:16 +00001344
1345csb226_config : unconfig
wdenk0463e042003-05-23 12:36:20 +00001346 @./mkconfig $(@:_config=) arm pxa csb226
wdenk7ebf7442002-11-02 23:17:16 +00001347
wdenk4a5c8a72003-03-06 00:02:04 +00001348innokom_config : unconfig
wdenk0463e042003-05-23 12:36:20 +00001349 @./mkconfig $(@:_config=) arm pxa innokom
wdenk4a5c8a72003-03-06 00:02:04 +00001350
wdenkbd1575f2003-10-14 19:43:55 +00001351ixdp425_config : unconfig
1352 @./mkconfig $(@:_config=) arm ixp ixdp425
1353
wdenk4a5c8a72003-03-06 00:02:04 +00001354lubbock_config : unconfig
wdenk0463e042003-05-23 12:36:20 +00001355 @./mkconfig $(@:_config=) arm pxa lubbock
wdenk4a5c8a72003-03-06 00:02:04 +00001356
wdenk88e72a32003-06-19 23:04:19 +00001357logodl_config : unconfig
1358 @./mkconfig $(@:_config=) arm pxa logodl
1359
wdenkb02744a2003-04-05 00:53:31 +00001360wepep250_config : unconfig
wdenk0463e042003-05-23 12:36:20 +00001361 @./mkconfig $(@:_config=) arm pxa wepep250
wdenkb02744a2003-04-05 00:53:31 +00001362
wdenkfa89d7c2004-09-28 16:44:41 +00001363xaeniax_config : unconfig
1364 @./mkconfig $(@:_config=) arm pxa xaeniax
1365
wdenkc12081a2004-03-23 20:18:25 +00001366xm250_config : unconfig
1367 @./mkconfig $(@:_config=) arm pxa xm250
1368
wdenk51108172004-06-09 15:37:23 +00001369xsengine_config : unconfig
1370 @./mkconfig $(@:_config=) arm pxa xsengine
1371
wdenk591dda52002-11-18 00:14:45 +00001372#========================================================================
1373# i386
1374#========================================================================
1375#########################################################################
wdenk1fe2c702003-03-06 21:55:29 +00001376## AMD SC520 CDP
wdenk591dda52002-11-18 00:14:45 +00001377#########################################################################
1378sc520_cdp_config : unconfig
1379 @./mkconfig $(@:_config=) i386 i386 sc520_cdp
1380
wdenkabda5ca2003-05-31 18:35:21 +00001381sc520_spunk_config : unconfig
1382 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
1383
1384sc520_spunk_rel_config : unconfig
1385 @./mkconfig $(@:_config=) i386 i386 sc520_spunk
1386
wdenk4a5c8a72003-03-06 00:02:04 +00001387#========================================================================
1388# MIPS
1389#========================================================================
wdenk7ebf7442002-11-02 23:17:16 +00001390#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +00001391## MIPS32 4Kc
1392#########################################################################
1393
wdenk5d841732003-08-17 18:55:18 +00001394xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
1395
1396incaip_100MHz_config \
1397incaip_133MHz_config \
1398incaip_150MHz_config \
1399incaip_config: unconfig
1400 @ >include/config.h
1401 @[ -z "$(findstring _100MHz,$@)" ] || \
1402 { echo "#define CPU_CLOCK_RATE 100000000" >>include/config.h ; \
1403 echo "... with 100MHz system clock" ; \
1404 }
1405 @[ -z "$(findstring _133MHz,$@)" ] || \
1406 { echo "#define CPU_CLOCK_RATE 133000000" >>include/config.h ; \
1407 echo "... with 133MHz system clock" ; \
1408 }
1409 @[ -z "$(findstring _150MHz,$@)" ] || \
1410 { echo "#define CPU_CLOCK_RATE 150000000" >>include/config.h ; \
1411 echo "... with 150MHz system clock" ; \
1412 }
1413 @./mkconfig -a $(call xtract_incaip,$@) mips mips incaip
1414
wdenk5401de42004-02-07 01:27:10 +00001415tb0229_config: unconfig
1416 @./mkconfig $(@:_config=) mips mips tb0229
1417
wdenk5d841732003-08-17 18:55:18 +00001418#########################################################################
wdenkcd914452004-05-29 16:53:29 +00001419## MIPS32 AU1X00
1420#########################################################################
1421dbau1000_config : unconfig
1422 @ >include/config.h
1423 @echo "#define CONFIG_DBAU1000 1" >>include/config.h
1424 @./mkconfig -a dbau1x00 mips mips dbau1x00
1425
1426dbau1100_config : unconfig
1427 @ >include/config.h
1428 @echo "#define CONFIG_DBAU1100 1" >>include/config.h
1429 @./mkconfig -a dbau1x00 mips mips dbau1x00
1430
1431dbau1500_config : unconfig
1432 @ >include/config.h
1433 @echo "#define CONFIG_DBAU1500 1" >>include/config.h
1434 @./mkconfig -a dbau1x00 mips mips dbau1x00
1435
1436#########################################################################
wdenk5d841732003-08-17 18:55:18 +00001437## MIPS64 5Kc
1438#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +00001439
wdenkb02744a2003-04-05 00:53:31 +00001440purple_config : unconfig
1441 @./mkconfig $(@:_config=) mips mips purple
wdenk4a5c8a72003-03-06 00:02:04 +00001442
wdenk60164a82003-10-08 23:26:14 +00001443#========================================================================
1444# Nios
1445#========================================================================
1446#########################################################################
1447## Nios32
1448#########################################################################
1449
wdenk3be717f2004-01-03 19:43:48 +00001450DK1C20_safe_32_config \
1451DK1C20_standard_32_config \
wdenk60164a82003-10-08 23:26:14 +00001452DK1C20_config: unconfig
wdenk3be717f2004-01-03 19:43:48 +00001453 @ >include/config.h
1454 @[ -z "$(findstring _safe_32,$@)" ] || \
1455 { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1456 echo "... NIOS 'safe_32' configuration" ; \
1457 }
1458 @[ -z "$(findstring _standard_32,$@)" ] || \
1459 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1460 echo "... NIOS 'standard_32' configuration" ; \
1461 }
1462 @[ -z "$(findstring DK1C20_config,$@)" ] || \
1463 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1464 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1465 }
1466 @./mkconfig -a DK1C20 nios nios dk1c20 altera
1467
1468DK1S10_safe_32_config \
1469DK1S10_standard_32_config \
wdenkc0bc2e12004-02-09 23:12:24 +00001470DK1S10_mtx_ldk_20_config \
wdenk3be717f2004-01-03 19:43:48 +00001471DK1S10_config: unconfig
1472 @ >include/config.h
1473 @[ -z "$(findstring _safe_32,$@)" ] || \
1474 { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
1475 echo "... NIOS 'safe_32' configuration" ; \
1476 }
1477 @[ -z "$(findstring _standard_32,$@)" ] || \
1478 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1479 echo "... NIOS 'standard_32' configuration" ; \
1480 }
wdenkc0bc2e12004-02-09 23:12:24 +00001481 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
1482 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>include/config.h ; \
1483 echo "... NIOS 'mtx_ldk_20' configuration" ; \
1484 }
wdenk3be717f2004-01-03 19:43:48 +00001485 @[ -z "$(findstring DK1S10_config,$@)" ] || \
1486 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
1487 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
1488 }
1489 @./mkconfig -a DK1S10 nios nios dk1s10 altera
wdenk60164a82003-10-08 23:26:14 +00001490
wdenke28cf632004-03-14 15:20:55 +00001491ADNPESC1_DNPEVA2_base_32_config \
1492ADNPESC1_base_32_config \
1493ADNPESC1_config: unconfig
1494 @ >include/config.h
1495 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
wdenkc35ba4e2004-03-14 22:25:36 +00001496 { echo "#define CONFIG_DNPEVA2 1" >>include/config.h ; \
1497 echo "... DNP/EVA2 configuration" ; \
1498 }
wdenke28cf632004-03-14 15:20:55 +00001499 @[ -z "$(findstring _base_32,$@)" ] || \
wdenkc35ba4e2004-03-14 22:25:36 +00001500 { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1501 echo "... NIOS 'base_32' configuration" ; \
1502 }
wdenke28cf632004-03-14 15:20:55 +00001503 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
wdenkc35ba4e2004-03-14 22:25:36 +00001504 { echo "#define CONFIG_NIOS_BASE_32 1" >>include/config.h ; \
1505 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
1506 }
wdenke28cf632004-03-14 15:20:55 +00001507 @./mkconfig -a ADNPESC1 nios nios adnpesc1 ssv
1508
wdenkef3386f2004-10-10 21:27:30 +00001509#########################################################################
1510## Nios-II
1511#########################################################################
1512
1513PK1C20_config : unconfig
1514 @./mkconfig PK1C20 nios2 nios2 pk1c20 psyent
1515
1516PCI5441_config : unconfig
1517 @./mkconfig PCI5441 nios2 nios2 pci5441 psyent
wdenk12490652004-04-18 21:13:41 +00001518
1519#========================================================================
1520# MicroBlaze
1521#========================================================================
1522#########################################################################
1523## Microblaze
1524#########################################################################
1525suzaku_config: unconfig
1526 @ >include/config.h
1527 @echo "#define CONFIG_SUZAKU 1" >> include/config.h
1528 @./mkconfig -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
wdenk60164a82003-10-08 23:26:14 +00001529
wdenkb02744a2003-04-05 00:53:31 +00001530#########################################################################
1531#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001532
1533clean:
1534 find . -type f \
1535 \( -name 'core' -o -name '*.bak' -o -name '*~' \
1536 -o -name '*.o' -o -name '*.a' \) -print \
1537 | xargs rm -f
wdenk8dba0502003-03-31 16:34:49 +00001538 rm -f examples/hello_world examples/timer \
wdenkb02744a2003-04-05 00:53:31 +00001539 examples/eepro100_eeprom examples/sched \
wdenkabda5ca2003-05-31 18:35:21 +00001540 examples/mem_to_mem_idma2intr examples/82559_eeprom
wdenk7ebf7442002-11-02 23:17:16 +00001541 rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
wdenka0ebde52004-09-08 22:03:11 +00001542 rm -f tools/mpc86x_clk tools/ncb
wdenk7ebf7442002-11-02 23:17:16 +00001543 rm -f tools/easylogo/easylogo tools/bmp_logo
1544 rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
wdenk9dfa8d12002-12-08 09:53:23 +00001545 rm -f tools/env/fw_printenv tools/env/fw_setenv
wdenk0893c472003-05-20 14:25:27 +00001546 rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
wdenka09491a2004-04-08 22:31:29 +00001547 rm -f board/trab/trab_fkt
wdenk7ebf7442002-11-02 23:17:16 +00001548
1549clobber: clean
wdenkaeba06f2004-06-09 17:34:58 +00001550 find . -type f \( -name .depend \
1551 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
1552 -print0 \
1553 | xargs -0 rm -f
wdenk7ebf7442002-11-02 23:17:16 +00001554 rm -f $(OBJS) *.bak tags TAGS
1555 rm -fr *.*~
wdenk0a658552003-08-05 17:43:17 +00001556 rm -f u-boot u-boot.map $(ALL)
wdenk9dfa8d12002-12-08 09:53:23 +00001557 rm -f tools/crc32.c tools/environment.c tools/env/crc32.c
wdenkb02744a2003-04-05 00:53:31 +00001558 rm -f tools/inca-swap-bytes cpu/mpc824x/bedbug_603e.c
wdenkbb2d9272003-06-25 22:26:29 +00001559 rm -f include/asm/proc include/asm/arch include/asm
wdenk7ebf7442002-11-02 23:17:16 +00001560
1561mrproper \
1562distclean: clobber unconfig
1563
1564backup:
1565 F=`basename $(TOPDIR)` ; cd .. ; \
1566 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
1567
1568#########################################################################