blob: a63aaef15bcf50c8c0948920d18c4a9d6372939d [file] [log] [blame]
wdenk7ebf7442002-11-02 23:17:16 +00001#
Wolfgang Denk4d1d9a32006-02-21 17:33:04 +01002# (C) Copyright 2000-2006
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
Wolfgang Denkc98368a2006-07-19 17:52:30 +020010# published by the Free Software Foundatio; either version 2 of
wdenk7ebf7442002-11-02 23:17:16 +000011# 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
Wolfgang Denk4d1d9a32006-02-21 17:33:04 +010024VERSION = 1
25PATCHLEVEL = 1
26SUBLEVEL = 4
27EXTRAVERSION =
28U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
Marian Balakowiczd62379d2006-09-01 19:49:50 +020029VERSION_FILE = $(obj)include/version_autogenerated.h
Wolfgang Denk4d1d9a32006-02-21 17:33:04 +010030
wdenk7ebf7442002-11-02 23:17:16 +000031HOSTARCH := $(shell uname -m | \
32 sed -e s/i.86/i386/ \
33 -e s/sun4u/sparc64/ \
34 -e s/arm.*/arm/ \
35 -e s/sa110/arm/ \
36 -e s/powerpc/ppc/ \
37 -e s/macppc/ppc/)
38
Wolfgang Denkaf03f732005-08-12 23:23:46 +020039HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
wdenk7ebf7442002-11-02 23:17:16 +000040 sed -e 's/\(cygwin\).*/cygwin/')
41
Wolfgang Denkaf03f732005-08-12 23:23:46 +020042export HOSTARCH HOSTOS
wdenk7ebf7442002-11-02 23:17:16 +000043
44# Deal with colliding definitions from tcsh etc.
45VENDOR=
46
47#########################################################################
Marian Balakowiczd62379d2006-09-01 19:49:50 +020048#
49# U-boot build supports producing a object files to the separate external
50# directory. Two use cases are supported:
Stefan Roese42fbddd2006-09-07 11:51:23 +020051#
Marian Balakowiczd62379d2006-09-01 19:49:50 +020052# 1) Add O= to the make command line
53# 'make O=/tmp/build all'
54#
55# 2) Set environement variable BUILD_DIR to point to the desired location
56# 'export BUILD_DIR=/tmp/build'
57# 'make'
58#
59# The second approach can also be used with a MAKEALL script
60# 'export BUILD_DIR=/tmp/build'
61# './MAKEALL'
Stefan Roese42fbddd2006-09-07 11:51:23 +020062#
Marian Balakowiczd62379d2006-09-01 19:49:50 +020063# Command line 'O=' setting overrides BUILD_DIR environent variable.
Stefan Roese42fbddd2006-09-07 11:51:23 +020064#
Marian Balakowiczd62379d2006-09-01 19:49:50 +020065# When none of the above methods is used the local build is performed and
66# the object files are placed in the source directory.
Stefan Roese42fbddd2006-09-07 11:51:23 +020067#
wdenk7ebf7442002-11-02 23:17:16 +000068
Marian Balakowiczd62379d2006-09-01 19:49:50 +020069ifdef O
70ifeq ("$(origin O)", "command line")
71BUILD_DIR := $(O)
72endif
73endif
74
75ifneq ($(BUILD_DIR),)
76saved-output := $(BUILD_DIR)
77BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
78$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
79endif # ifneq ($(BUILD_DIR),)
80
81OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
82SRCTREE := $(CURDIR)
83TOPDIR := $(SRCTREE)
84LNDIR := $(OBJTREE)
85export TOPDIR SRCTREE OBJTREE
86
87MKCONFIG := $(SRCTREE)/mkconfig
88export MKCONFIG
89
90ifneq ($(OBJTREE),$(SRCTREE))
91REMOTE_BUILD := 1
92export REMOTE_BUILD
93endif
wdenk7ebf7442002-11-02 23:17:16 +000094
Marian Balakowiczd62379d2006-09-01 19:49:50 +020095# $(obj) and (src) are defined in config.mk but here in main Makefile
96# we also need them before config.mk is included which is the case for
97# some targets like unconfig, clean, clobber, distclean, etc.
98ifneq ($(OBJTREE),$(SRCTREE))
99obj := $(OBJTREE)/
100src := $(SRCTREE)/
101else
102obj :=
103src :=
Stefan Roese42fbddd2006-09-07 11:51:23 +0200104endif
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200105export obj src
106
107#########################################################################
108
109ifeq ($(OBJTREE)/include/config.mk,$(wildcard $(OBJTREE)/include/config.mk))
110
wdenk7ebf7442002-11-02 23:17:16 +0000111# load ARCH, BOARD, and CPU configuration
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200112include $(OBJTREE)/include/config.mk
wdenkf8e9a232004-10-09 22:21:29 +0000113export ARCH CPU BOARD VENDOR SOC
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200114
wdenk7ebf7442002-11-02 23:17:16 +0000115ifndef CROSS_COMPILE
116ifeq ($(HOSTARCH),ppc)
117CROSS_COMPILE =
118else
wdenk7ebf7442002-11-02 23:17:16 +0000119ifeq ($(ARCH),ppc)
Eran Liberty9095d4a2005-07-28 10:08:46 -0500120CROSS_COMPILE = powerpc-linux-
wdenk7ebf7442002-11-02 23:17:16 +0000121endif
122ifeq ($(ARCH),arm)
wdenkc8434db2003-03-26 06:55:25 +0000123CROSS_COMPILE = arm-linux-
wdenk7ebf7442002-11-02 23:17:16 +0000124endif
wdenk591dda52002-11-18 00:14:45 +0000125ifeq ($(ARCH),i386)
wdenkabda5ca2003-05-31 18:35:21 +0000126ifeq ($(HOSTARCH),i386)
127CROSS_COMPILE =
128else
129CROSS_COMPILE = i386-linux-
130endif
wdenk7ebf7442002-11-02 23:17:16 +0000131endif
wdenk4a5c8a72003-03-06 00:02:04 +0000132ifeq ($(ARCH),mips)
133CROSS_COMPILE = mips_4KC-
wdenk7ebf7442002-11-02 23:17:16 +0000134endif
wdenk60164a82003-10-08 23:26:14 +0000135ifeq ($(ARCH),nios)
136CROSS_COMPILE = nios-elf-
wdenk591dda52002-11-18 00:14:45 +0000137endif
wdenkef3386f2004-10-10 21:27:30 +0000138ifeq ($(ARCH),nios2)
139CROSS_COMPILE = nios2-elf-
140endif
wdenkabf7a7c2003-12-08 01:34:36 +0000141ifeq ($(ARCH),m68k)
142CROSS_COMPILE = m68k-elf-
wdenk4a5c8a72003-03-06 00:02:04 +0000143endif
wdenk12490652004-04-18 21:13:41 +0000144ifeq ($(ARCH),microblaze)
145CROSS_COMPILE = mb-
wdenk60164a82003-10-08 23:26:14 +0000146endif
Wolfgang Denk46d2b522006-03-12 02:10:00 +0100147ifeq ($(ARCH),blackfin)
148CROSS_COMPILE = bfin-elf-
wdenkabf7a7c2003-12-08 01:34:36 +0000149endif
wdenk12490652004-04-18 21:13:41 +0000150endif
Wolfgang Denk46d2b522006-03-12 02:10:00 +0100151endif
wdenk7ebf7442002-11-02 23:17:16 +0000152
153export CROSS_COMPILE
154
Wolfgang Denkbb874e32006-03-12 01:37:50 +0100155# load other configuration
156include $(TOPDIR)/config.mk
157
wdenk7ebf7442002-11-02 23:17:16 +0000158#########################################################################
159# U-Boot objects....order is important (i.e. start must be first)
160
wdenk7f00b942003-12-07 23:55:12 +0000161OBJS = cpu/$(CPU)/start.o
wdenk591dda52002-11-18 00:14:45 +0000162ifeq ($(CPU),i386)
wdenk7f00b942003-12-07 23:55:12 +0000163OBJS += cpu/$(CPU)/start16.o
164OBJS += cpu/$(CPU)/reset.o
wdenk591dda52002-11-18 00:14:45 +0000165endif
wdenk7ebf7442002-11-02 23:17:16 +0000166ifeq ($(CPU),ppc4xx)
wdenk7f00b942003-12-07 23:55:12 +0000167OBJS += cpu/$(CPU)/resetvec.o
wdenk7ebf7442002-11-02 23:17:16 +0000168endif
Eran Liberty9095d4a2005-07-28 10:08:46 -0500169ifeq ($(CPU),mpc83xx)
170OBJS += cpu/$(CPU)/resetvec.o
171endif
wdenk9c53f402003-10-15 23:53:47 +0000172ifeq ($(CPU),mpc85xx)
173OBJS += cpu/$(CPU)/resetvec.o
174endif
Wolfgang Denk46d2b522006-03-12 02:10:00 +0100175ifeq ($(CPU),bf533)
176OBJS += cpu/$(CPU)/start1.o cpu/$(CPU)/interrupt.o cpu/$(CPU)/cache.o
177OBJS += cpu/$(CPU)/cplbhdlr.o cpu/$(CPU)/cplbmgr.o cpu/$(CPU)/flush.o
178endif
wdenk7ebf7442002-11-02 23:17:16 +0000179
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200180OBJS := $(addprefix $(obj),$(OBJS))
181
wdenk7f00b942003-12-07 23:55:12 +0000182LIBS = lib_generic/libgeneric.a
183LIBS += board/$(BOARDDIR)/lib$(BOARD).a
wdenk7ebf7442002-11-02 23:17:16 +0000184LIBS += cpu/$(CPU)/lib$(CPU).a
wdenkf8e9a232004-10-09 22:21:29 +0000185ifdef SOC
186LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
187endif
wdenk7ebf7442002-11-02 23:17:16 +0000188LIBS += lib_$(ARCH)/lib$(ARCH).a
wdenk4d01d9e2004-03-25 14:59:05 +0000189LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
stroese05b88912004-12-16 18:44:40 +0000190 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
wdenk7ebf7442002-11-02 23:17:16 +0000191LIBS += net/libnet.a
192LIBS += disk/libdisk.a
193LIBS += rtc/librtc.a
194LIBS += dtt/libdtt.a
195LIBS += drivers/libdrivers.a
Marian Balakowicz6a076752006-04-08 19:08:06 +0200196LIBS += drivers/nand/libnand.a
197LIBS += drivers/nand_legacy/libnand_legacy.a
wdenkeb20ad32003-09-05 23:19:14 +0000198LIBS += drivers/sk98lin/libsk98lin.a
wdenk7ebf7442002-11-02 23:17:16 +0000199LIBS += post/libpost.a post/cpu/libcpu.a
200LIBS += common/libcommon.a
Bartlomiej Sieka6eed2ab2006-02-24 09:37:22 +0100201LIBS += $(BOARDLIBS)
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200202
203LIBS := $(addprefix $(obj),$(LIBS))
wdenk7f00b942003-12-07 23:55:12 +0000204.PHONY : $(LIBS)
wdenkc0aa5c52003-12-06 19:49:23 +0000205
wdenk4cc02a82003-09-11 23:06:34 +0000206# Add GCC lib
wdenkf1276d42005-02-03 23:00:49 +0000207PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
wdenk4989f872004-03-14 15:06:13 +0000208
wdenkc0aa5c52003-12-06 19:49:23 +0000209# The "tools" are needed early, so put this first
210# Don't include stuff already done in $(LIBS)
211SUBDIRS = tools \
212 examples \
213 post \
214 post/cpu
wdenk444f22b2003-12-07 21:39:28 +0000215.PHONY : $(SUBDIRS)
wdenkc0aa5c52003-12-06 19:49:23 +0000216
Stefan Roese42fbddd2006-09-07 11:51:23 +0200217ifeq ($(CONFIG_NAND_U_BOOT),y)
218NAND_SPL = nand_spl
219U_BOOT_NAND = $(obj)u-boot-nand.bin
220endif
221
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200222__OBJS := $(subst $(obj),,$(OBJS))
223__LIBS := $(subst $(obj),,$(LIBS))
224
wdenk7ebf7442002-11-02 23:17:16 +0000225#########################################################################
wdenk0a658552003-08-05 17:43:17 +0000226#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000227
Stefan Roese42fbddd2006-09-07 11:51:23 +0200228ALL = $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
wdenk7ebf7442002-11-02 23:17:16 +0000229
wdenk0a658552003-08-05 17:43:17 +0000230all: $(ALL)
wdenk7ebf7442002-11-02 23:17:16 +0000231
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200232$(obj)u-boot.hex: $(obj)u-boot
wdenk68005192005-01-09 21:28:15 +0000233 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
234
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200235$(obj)u-boot.srec: $(obj)u-boot
wdenk7ebf7442002-11-02 23:17:16 +0000236 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
237
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200238$(obj)u-boot.bin: $(obj)u-boot
wdenk7ebf7442002-11-02 23:17:16 +0000239 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
240
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200241$(obj)u-boot.img: $(obj)u-boot.bin
wdenk0a658552003-08-05 17:43:17 +0000242 ./tools/mkimage -A $(ARCH) -T firmware -C none \
243 -a $(TEXT_BASE) -e 0 \
Wolfgang Denk4d1d9a32006-02-21 17:33:04 +0100244 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
wdenk0a658552003-08-05 17:43:17 +0000245 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
246 -d $< $@
247
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200248$(obj)u-boot.dis: $(obj)u-boot
wdenk7ebf7442002-11-02 23:17:16 +0000249 $(OBJDUMP) -d $< > $@
250
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200251$(obj)u-boot: depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
wdenk57b2d802003-06-27 21:31:46 +0000252 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200253 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
254 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
wdenk67ff36c2002-11-19 23:01:07 +0000255 -Map u-boot.map -o u-boot
wdenk7ebf7442002-11-02 23:17:16 +0000256
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200257$(OBJS):
258 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
259
wdenkc0aa5c52003-12-06 19:49:23 +0000260$(LIBS):
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200261 $(MAKE) -C $(dir $(subst $(obj),,$@))
wdenkc0aa5c52003-12-06 19:49:23 +0000262
263$(SUBDIRS):
wdenk444f22b2003-12-07 21:39:28 +0000264 $(MAKE) -C $@ all
wdenk7ebf7442002-11-02 23:17:16 +0000265
Stefan Roese42fbddd2006-09-07 11:51:23 +0200266$(NAND_SPL): version
267 $(MAKE) -C nand_spl all
268
269$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
270 cat nand_spl/u-boot-spl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
271
Wolfgang Denk4d1d9a32006-02-21 17:33:04 +0100272version:
273 @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
274 echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
275 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
276 $(TOPDIR)) >> $(VERSION_FILE); \
277 echo "\"" >> $(VERSION_FILE)
278
dzu9b10ef982003-08-07 14:20:31 +0000279gdbtools:
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200280 $(MAKE) -C tools/gdb all || exit 1
281
282updater:
283 $(MAKE) -C tools/updater all || exit 1
284
285env:
286 $(MAKE) -C tools/env all || exit 1
dzu9b10ef982003-08-07 14:20:31 +0000287
wdenk7ebf7442002-11-02 23:17:16 +0000288depend dep:
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200289 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
wdenk7ebf7442002-11-02 23:17:16 +0000290
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200291tags ctags:
292 ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) include \
wdenk270a8bd2004-04-15 21:58:11 +0000293 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
294 fs/cramfs fs/fat fs/fdos fs/jffs2 \
295 net disk rtc dtt drivers drivers/sk98lin common \
wdenk7ebf7442002-11-02 23:17:16 +0000296 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
297
298etags:
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200299 etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) include \
wdenka0ebde52004-09-08 22:03:11 +0000300 lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
301 fs/cramfs fs/fat fs/fdos fs/jffs2 \
302 net disk rtc dtt drivers drivers/sk98lin common \
wdenk7ebf7442002-11-02 23:17:16 +0000303 \( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
304
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200305$(obj)System.map: $(obj)u-boot
wdenk7ebf7442002-11-02 23:17:16 +0000306 @$(NM) $< | \
307 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200308 sort > $(obj)System.map
wdenk7ebf7442002-11-02 23:17:16 +0000309
310#########################################################################
311else
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200312all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
313$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
314$(SUBDIRS) version gdbtools updater env depend \
315dep tags ctags etags $(obj)System.map:
wdenk7ebf7442002-11-02 23:17:16 +0000316 @echo "System not configured - see README" >&2
317 @ exit 1
318endif
319
320#########################################################################
321
322unconfig:
Stefan Roese42fbddd2006-09-07 11:51:23 +0200323 @rm -f $(obj)include/config.h $(obj)include/config.mk \
324 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp
wdenk7ebf7442002-11-02 23:17:16 +0000325
326#========================================================================
327# PowerPC
328#========================================================================
wdenk359733b2003-03-31 17:27:09 +0000329
330#########################################################################
331## MPC5xx Systems
332#########################################################################
333
wdenkf1d0ff42005-04-13 23:15:10 +0000334canmb_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200335 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
wdenkf1d0ff42005-04-13 23:15:10 +0000336
wdenk359733b2003-03-31 17:27:09 +0000337cmi_mpc5xx_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200338 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
wdenk359733b2003-03-31 17:27:09 +0000339
wdenk634d2f72004-04-15 23:14:49 +0000340PATI_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200341 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
wdenkbc01dd52004-01-02 16:05:07 +0000342
wdenk7ebf7442002-11-02 23:17:16 +0000343#########################################################################
wdenk21136db2003-07-16 21:53:01 +0000344## MPC5xxx Systems
345#########################################################################
wdenk8d414a72005-06-10 10:00:19 +0000346
Wolfgang Denk3863d6b2005-08-12 00:22:49 +0200347aev_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200348 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
Wolfgang Denk3863d6b2005-08-12 00:22:49 +0200349
dzu@denx.dec59e4ac2006-04-21 18:30:47 +0200350BC3450_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200351 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
dzu@denx.dec59e4ac2006-04-21 18:30:47 +0200352
Stefan Roese99200d22005-08-22 17:51:53 +0200353cpci5200_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200354 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
Stefan Roese99200d22005-08-22 17:51:53 +0200355
wdenk8d414a72005-06-10 10:00:19 +0000356hmi1001_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200357 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
wdenk8d414a72005-06-10 10:00:19 +0000358
wdenke44b9112004-04-18 23:32:11 +0000359Lite5200_config \
360Lite5200_LOWBOOT_config \
361Lite5200_LOWBOOT08_config \
362icecube_5200_config \
363icecube_5200_LOWBOOT_config \
364icecube_5200_LOWBOOT08_config \
365icecube_5200_DDR_config \
366icecube_5200_DDR_LOWBOOT_config \
367icecube_5200_DDR_LOWBOOT08_config \
368icecube_5100_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200369 @mkdir -p $(obj)include
370 @mkdir -p $(obj)board/icecube
371 @ >$(obj)include/config.h
wdenk9c07bf62004-04-10 20:43:50 +0000372 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
373 { if [ "$(findstring DDR,$@)" ] ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200374 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
375 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
wdenk9c07bf62004-04-10 20:43:50 +0000376 fi ; \
wdenk4b16c2e2003-11-07 13:42:26 +0000377 echo "... with LOWBOOT configuration" ; \
378 }
379 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200380 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
wdenk4b16c2e2003-11-07 13:42:26 +0000381 echo "... with 8 MB flash only" ; \
wdenk9c07bf62004-04-10 20:43:50 +0000382 echo "... with LOWBOOT configuration" ; \
wdenk4b16c2e2003-11-07 13:42:26 +0000383 }
wdenk236d3fc2003-12-20 22:45:10 +0000384 @[ -z "$(findstring DDR,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200385 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
wdenk236d3fc2003-12-20 22:45:10 +0000386 echo "... DDR memory revision" ; \
387 }
wdenk1ebf41e2004-01-02 14:00:00 +0000388 @[ -z "$(findstring 5200,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200389 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
wdenk1ebf41e2004-01-02 14:00:00 +0000390 echo "... with MPC5200 processor" ; \
391 }
wdenk55618472003-10-28 09:14:21 +0000392 @[ -z "$(findstring 5100,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200393 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
wdenk21136db2003-07-16 21:53:01 +0000394 echo "... with MGT5100 processor" ; \
395 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200396 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
wdenk21136db2003-07-16 21:53:01 +0000397
Wolfgang Denk07ad17c2006-02-22 00:43:16 +0100398inka4x0_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200399 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
wdenk4ca32362004-12-16 15:52:40 +0000400
Wolfgang Denk315b46a2006-03-17 11:42:53 +0100401lite5200b_config \
402lite5200b_LOWBOOT_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200403 @mkdir -p $(obj)include
404 @mkdir -p $(obj)board/icecube
405 @ >$(obj)include/config.h
406 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
Wolfgang Denk315b46a2006-03-17 11:42:53 +0100407 @ echo "... DDR memory revision"
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200408 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
409 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
Wolfgang Denk315b46a2006-03-17 11:42:53 +0100410 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200411 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
Wolfgang Denk315b46a2006-03-17 11:42:53 +0100412 echo "... with LOWBOOT configuration" ; \
413 }
414 @ echo "... with MPC5200B processor"
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200415 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
Wolfgang Denk315b46a2006-03-17 11:42:53 +0100416
Stefan Roese531e94c2006-03-04 14:57:03 +0100417mcc200_config \
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200418mcc200_SDRAM_config \
419mcc200_highboot_config \
420mcc200_COM12_config \
421mcc200_COM12_SDRAM_config \
Wolfgang Denk7aa5b452006-08-25 01:38:04 +0200422mcc200_COM12_highboot_config \
423mcc200_COM12_highboot_SDRAM_config \
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200424mcc200_highboot_SDRAM_config \
425prs200_config \
426prs200_DDR_config \
427prs200_highboot_config \
428prs200_highboot_DDR_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200429 @mkdir -p $(obj)include
430 @mkdir -p $(obj)board/mcc200
431 @ >$(obj)include/config.h
Wolfgang Denk790dd202006-07-23 22:40:51 +0200432 @[ -n "$(findstring highboot,$@)" ] || \
433 { echo "... with lowboot configuration" ; \
434 }
435 @[ -z "$(findstring highboot,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200436 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
Wolfgang Denk790dd202006-07-23 22:40:51 +0200437 echo "... with highboot configuration" ; \
438 }
439 @[ -n "$(findstring _SDRAM,$@)" ] || \
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200440 { if [ -n "$(findstring mcc200,$@)" ]; \
441 then \
442 echo "... with DDR" ; \
443 else \
444 if [ -n "$(findstring _DDR,$@)" ];\
445 then \
446 echo "... with DDR" ; \
447 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200448 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200449 echo "... with SDRAM" ; \
450 fi; \
451 fi; \
Wolfgang Denk790dd202006-07-23 22:40:51 +0200452 }
453 @[ -z "$(findstring _SDRAM,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200454 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
Wolfgang Denk790dd202006-07-23 22:40:51 +0200455 echo "... with SDRAM" ; \
Stefan Roese531e94c2006-03-04 14:57:03 +0100456 }
Wolfgang Denk6d8fdf62006-08-17 00:36:51 +0200457 @[ -z "$(findstring COM12,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200458 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
Wolfgang Denk6d8fdf62006-08-17 00:36:51 +0200459 echo "... with console on COM12" ; \
460 }
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200461 @[ -z "$(findstring prs200,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200462 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200463 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200464 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
Wolfgang Denk07ad17c2006-02-22 00:43:16 +0100465
Wolfgang Denk672f2e82005-08-18 01:22:22 +0200466o2dnt_config:
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200467 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
Wolfgang Denk672f2e82005-08-18 01:22:22 +0200468
Stefan Roese99200d22005-08-22 17:51:53 +0200469pf5200_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200470 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
Stefan Roese99200d22005-08-22 17:51:53 +0200471
wdenkda54bc92004-08-04 21:56:49 +0000472PM520_config \
473PM520_DDR_config \
474PM520_ROMBOOT_config \
475PM520_ROMBOOT_DDR_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200476 @mkdir -p $(obj)include
477 @ >$(obj)include/config.h
wdenkda54bc92004-08-04 21:56:49 +0000478 @[ -z "$(findstring DDR,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200479 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
wdenkda54bc92004-08-04 21:56:49 +0000480 echo "... DDR memory revision" ; \
481 }
482 @[ -z "$(findstring ROMBOOT,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200483 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
wdenkda54bc92004-08-04 21:56:49 +0000484 echo "... booting from 8-bit flash" ; \
485 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200486 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
wdenkda54bc92004-08-04 21:56:49 +0000487
Wolfgang Denkea055ba2006-02-22 10:25:39 +0100488smmaco4_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200489 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
Wolfgang Denk2a61ee82006-02-22 01:59:13 +0100490
491spieval_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200492 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
Wolfgang Denk2a61ee82006-02-22 01:59:13 +0100493
Wolfgang Denkc98368a2006-07-19 17:52:30 +0200494TB5200_B_config \
Wolfgang Denkba940932006-07-19 13:50:38 +0200495TB5200_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200496 @mkdir -p $(obj)include
Wolfgang Denkc98368a2006-07-19 17:52:30 +0200497 @[ -z "$(findstring _B,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200498 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
Wolfgang Denkc98368a2006-07-19 17:52:30 +0200499 echo "... with MPC5200B processor" ; \
500 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200501 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
Wolfgang Denkba940932006-07-19 13:50:38 +0200502
wdenk1ebf41e2004-01-02 14:00:00 +0000503MINI5200_config \
504EVAL5200_config \
505TOP5200_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200506 @mkdir -p $(obj)include
507 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
508 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
wdenk1ebf41e2004-01-02 14:00:00 +0000509
wdenkcc3f8a92004-07-11 19:17:20 +0000510Total5100_config \
511Total5200_config \
512Total5200_lowboot_config \
513Total5200_Rev2_config \
514Total5200_Rev2_lowboot_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200515 @mkdir -p $(obj)include
516 @mkdir -p $(obj)board/total5200
517 @ >$(obj)include/config.h
wdenkcc3f8a92004-07-11 19:17:20 +0000518 @[ -z "$(findstring 5100,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200519 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
wdenkcc3f8a92004-07-11 19:17:20 +0000520 echo "... with MGT5100 processor" ; \
521 }
522 @[ -z "$(findstring 5200,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200523 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
wdenkcc3f8a92004-07-11 19:17:20 +0000524 echo "... with MPC5200 processor" ; \
525 }
526 @[ -n "$(findstring Rev,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200527 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
wdenkcc3f8a92004-07-11 19:17:20 +0000528 echo "... revision 1 board" ; \
529 }
530 @[ -z "$(findstring Rev2_,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200531 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
wdenkcc3f8a92004-07-11 19:17:20 +0000532 echo "... revision 2 board" ; \
533 }
534 @[ -z "$(findstring lowboot_,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200535 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
wdenkcc3f8a92004-07-11 19:17:20 +0000536 echo "... with lowboot configuration" ; \
537 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200538 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
wdenkcc3f8a92004-07-11 19:17:20 +0000539
Wolfgang Denk641e3572006-07-22 01:20:03 +0200540cam5200_config \
Wolfgang Denk9018bc92006-08-18 23:27:33 +0200541fo300_config \
Marian Balakowiczbcb0cca2006-08-18 19:14:46 +0200542MiniFAP_config \
Wolfgang Denk9018bc92006-08-18 23:27:33 +0200543TQM5200S_config \
544TQM5200S_HIGHBOOT_config \
545TQM5200_B_config \
546TQM5200_B_HIGHBOOT_config \
547TQM5200_config \
548TQM5200_STK100_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200549 @mkdir -p $(obj)include
550 @mkdir -p $(obj)board/tqm5200
551 @ >$(obj)include/config.h
Wolfgang Denk9018bc92006-08-18 23:27:33 +0200552 @[ -z "$(findstring cam5200,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200553 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
554 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
555 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
Wolfgang Denk9018bc92006-08-18 23:27:33 +0200556 echo "... TQM5200S on Cam5200" ; \
557 }
Marian Balakowiczbcb0cca2006-08-18 19:14:46 +0200558 @[ -z "$(findstring fo300,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200559 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
Marian Balakowiczbcb0cca2006-08-18 19:14:46 +0200560 echo "... TQM5200 on FO300" ; \
561 }
wdenkda54bc92004-08-04 21:56:49 +0000562 @[ -z "$(findstring MiniFAP,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200563 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
wdenkda54bc92004-08-04 21:56:49 +0000564 echo "... TQM5200_AC on MiniFAP" ; \
wdenk64519362004-07-11 17:40:54 +0000565 }
Wolfgang Denk3f2f9dd2006-06-16 16:11:34 +0200566 @[ -z "$(findstring STK100,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200567 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
Wolfgang Denk3f2f9dd2006-06-16 16:11:34 +0200568 echo "... on a STK52XX.100 base board" ; \
wdenkdc130442004-12-12 22:06:17 +0000569 }
Wolfgang Denk99753142006-07-21 11:16:34 +0200570 @[ -z "$(findstring TQM5200_B,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200571 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
Wolfgang Denk99753142006-07-21 11:16:34 +0200572 }
573 @[ -z "$(findstring TQM5200S,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200574 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
575 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
Wolfgang Denkc98368a2006-07-19 17:52:30 +0200576 }
Wolfgang Denk5591d9e2006-07-19 18:01:38 +0200577 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200578 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
Wolfgang Denk5591d9e2006-07-19 18:01:38 +0200579 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200580 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
wdenk64519362004-07-11 17:40:54 +0000581
wdenk21136db2003-07-16 21:53:01 +0000582#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000583## MPC8xx Systems
584#########################################################################
585
wdenk9f664dd2004-06-09 21:50:45 +0000586Adder_config \
587Adder87x_config \
wdenkec5dc0d2004-07-09 22:51:01 +0000588AdderII_config \
wdenk9f664dd2004-06-09 21:50:45 +0000589 : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200590 @mkdir -p $(obj)include
wdenkec5dc0d2004-07-09 22:51:01 +0000591 $(if $(findstring AdderII,$@), \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200592 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
593 @$(MKCONFIG) -a Adder ppc mpc8xx adder
wdenk9f664dd2004-06-09 21:50:45 +0000594
wdenkad276f22004-01-04 16:28:35 +0000595ADS860_config \
wdenkad276f22004-01-04 16:28:35 +0000596FADS823_config \
597FADS850SAR_config \
598MPC86xADS_config \
wdenka7556b22004-06-06 21:35:06 +0000599MPC885ADS_config \
wdenkad276f22004-01-04 16:28:35 +0000600FADS860T_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200601 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
wdenk7ebf7442002-11-02 23:17:16 +0000602
603AMX860_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200604 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
wdenk7ebf7442002-11-02 23:17:16 +0000605
606c2mon_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200607 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
wdenk7ebf7442002-11-02 23:17:16 +0000608
609CCM_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200610 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
wdenk7ebf7442002-11-02 23:17:16 +0000611
612cogent_mpc8xx_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200613 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
wdenk7ebf7442002-11-02 23:17:16 +0000614
wdenkef5fe752003-03-12 10:41:04 +0000615ELPT860_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200616 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
wdenkef5fe752003-03-12 10:41:04 +0000617
Wolfgang Denk62f1ef52006-03-12 23:17:31 +0100618EP88x_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200619 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
Wolfgang Denk62f1ef52006-03-12 23:17:31 +0100620
wdenk7ebf7442002-11-02 23:17:16 +0000621ESTEEM192E_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200622 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
wdenk7ebf7442002-11-02 23:17:16 +0000623
624ETX094_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200625 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
wdenk7ebf7442002-11-02 23:17:16 +0000626
wdenk7ebf7442002-11-02 23:17:16 +0000627FLAGADM_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200628 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
wdenk7ebf7442002-11-02 23:17:16 +0000629
wdenk541a76d2003-05-03 15:50:43 +0000630xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
631
632GEN860T_SC_config \
wdenk7ebf7442002-11-02 23:17:16 +0000633GEN860T_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200634 @mkdir -p $(obj)include
635 @ >$(obj)include/config.h
wdenk541a76d2003-05-03 15:50:43 +0000636 @[ -z "$(findstring _SC,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200637 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
wdenk541a76d2003-05-03 15:50:43 +0000638 echo "With reduced H/W feature set (SC)..." ; \
639 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200640 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
wdenk7ebf7442002-11-02 23:17:16 +0000641
642GENIETV_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200643 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
wdenk7ebf7442002-11-02 23:17:16 +0000644
645GTH_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200646 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
wdenk7ebf7442002-11-02 23:17:16 +0000647
648hermes_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200649 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
wdenk7ebf7442002-11-02 23:17:16 +0000650
wdenkf602aa02004-03-13 23:29:43 +0000651HMI10_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200652 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
wdenkf602aa02004-03-13 23:29:43 +0000653
wdenk7ebf7442002-11-02 23:17:16 +0000654IAD210_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200655 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
wdenk7ebf7442002-11-02 23:17:16 +0000656
657xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
658
659ICU862_100MHz_config \
660ICU862_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200661 @mkdir -p $(obj)include
662 @ >$(obj)include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000663 @[ -z "$(findstring _100MHz,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200664 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +0000665 echo "... with 100MHz system clock" ; \
666 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200667 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
wdenk7ebf7442002-11-02 23:17:16 +0000668
669IP860_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200670 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
wdenk7ebf7442002-11-02 23:17:16 +0000671
672IVML24_256_config \
673IVML24_128_config \
674IVML24_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200675 @mkdir -p $(obj)include
676 @ >$(obj)include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000677 @[ -z "$(findstring IVML24_config,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200678 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +0000679 }
680 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200681 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +0000682 }
683 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200684 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +0000685 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200686 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
wdenk7ebf7442002-11-02 23:17:16 +0000687
688IVMS8_256_config \
689IVMS8_128_config \
690IVMS8_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200691 @mkdir -p $(obj)include
692 @ >$(obj)include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000693 @[ -z "$(findstring IVMS8_config,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200694 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +0000695 }
696 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200697 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +0000698 }
699 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200700 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +0000701 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200702 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
wdenk7ebf7442002-11-02 23:17:16 +0000703
wdenk56f94be2002-11-05 16:35:14 +0000704KUP4K_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200705 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
wdenk65faef92004-03-25 19:29:38 +0000706
707KUP4X_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200708 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
wdenk56f94be2002-11-05 16:35:14 +0000709
wdenk7ebf7442002-11-02 23:17:16 +0000710LANTEC_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200711 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
wdenk7ebf7442002-11-02 23:17:16 +0000712
713lwmon_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200714 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
wdenk7ebf7442002-11-02 23:17:16 +0000715
716MBX_config \
717MBX860T_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200718 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
wdenk7ebf7442002-11-02 23:17:16 +0000719
720MHPC_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200721 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
wdenk7ebf7442002-11-02 23:17:16 +0000722
723MVS1_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200724 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
wdenk7ebf7442002-11-02 23:17:16 +0000725
wdenk70764a32003-06-26 22:04:09 +0000726xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
727
728NETVIA_V2_config \
wdenk7ebf7442002-11-02 23:17:16 +0000729NETVIA_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200730 @mkdir -p $(obj)include
731 @ >$(obj)include/config.h
wdenk70764a32003-06-26 22:04:09 +0000732 @[ -z "$(findstring NETVIA_config,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200733 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
wdenk70764a32003-06-26 22:04:09 +0000734 echo "... Version 1" ; \
735 }
736 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200737 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
wdenk70764a32003-06-26 22:04:09 +0000738 echo "... Version 2" ; \
739 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200740 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
wdenk7ebf7442002-11-02 23:17:16 +0000741
wdenk6203e402004-04-18 10:13:26 +0000742xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
743
744NETPHONE_V2_config \
wdenk3902d702004-04-15 18:22:41 +0000745NETPHONE_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200746 @mkdir -p $(obj)include
747 @ >$(obj)include/config.h
wdenk6203e402004-04-18 10:13:26 +0000748 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200749 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
wdenk6203e402004-04-18 10:13:26 +0000750 }
751 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200752 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
wdenk6203e402004-04-18 10:13:26 +0000753 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200754 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
wdenk3902d702004-04-15 18:22:41 +0000755
wdenkc4e854f2004-06-07 23:46:25 +0000756xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
wdenk3902d702004-04-15 18:22:41 +0000757
wdenkc4e854f2004-06-07 23:46:25 +0000758NETTA_ISDN_6412_SWAPHOOK_config \
759NETTA_ISDN_SWAPHOOK_config \
760NETTA_6412_SWAPHOOK_config \
761NETTA_SWAPHOOK_config \
762NETTA_ISDN_6412_config \
wdenk3902d702004-04-15 18:22:41 +0000763NETTA_ISDN_config \
wdenkc4e854f2004-06-07 23:46:25 +0000764NETTA_6412_config \
wdenk3902d702004-04-15 18:22:41 +0000765NETTA_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200766 @mkdir -p $(obj)include
767 @ >$(obj)include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000768 @[ -z "$(findstring ISDN_,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200769 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
wdenkc4e854f2004-06-07 23:46:25 +0000770 }
771 @[ -n "$(findstring ISDN_,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200772 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
wdenk3902d702004-04-15 18:22:41 +0000773 }
wdenkc4e854f2004-06-07 23:46:25 +0000774 @[ -z "$(findstring 6412_,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200775 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
wdenkc4e854f2004-06-07 23:46:25 +0000776 }
777 @[ -n "$(findstring 6412_,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200778 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
wdenkc4e854f2004-06-07 23:46:25 +0000779 }
780 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200781 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
wdenkc4e854f2004-06-07 23:46:25 +0000782 }
783 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200784 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
wdenk3902d702004-04-15 18:22:41 +0000785 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200786 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
wdenk3902d702004-04-15 18:22:41 +0000787
wdenkc4e854f2004-06-07 23:46:25 +0000788xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
789
790NETTA2_V2_config \
791NETTA2_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200792 @mkdir -p $(obj)include
793 @ >$(obj)include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000794 @[ -z "$(findstring NETTA2_config,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200795 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
wdenkc4e854f2004-06-07 23:46:25 +0000796 }
797 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200798 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
wdenkc4e854f2004-06-07 23:46:25 +0000799 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200800 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
wdenkc4e854f2004-06-07 23:46:25 +0000801
dzu@denx.de8f6fedd2006-04-19 11:52:46 +0200802NC650_Rev1_config \
803NC650_Rev2_config \
804CP850_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200805 @mkdir -p $(obj)include
806 @ >$(obj)include/config.h
dzu@denx.de8f6fedd2006-04-19 11:52:46 +0200807 @[ -z "$(findstring CP850,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200808 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
809 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
dzu@denx.de8f6fedd2006-04-19 11:52:46 +0200810 }
811 @[ -z "$(findstring Rev1,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200812 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
dzu@denx.de8f6fedd2006-04-19 11:52:46 +0200813 }
814 @[ -z "$(findstring Rev2,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200815 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
dzu@denx.de8f6fedd2006-04-19 11:52:46 +0200816 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200817 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
wdenk0bbcbd22004-08-28 22:45:57 +0000818
wdenk7ebf7442002-11-02 23:17:16 +0000819NX823_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200820 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
wdenk7ebf7442002-11-02 23:17:16 +0000821
822pcu_e_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200823 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
wdenk7ebf7442002-11-02 23:17:16 +0000824
wdenk174e0e52003-12-07 22:27:15 +0000825QS850_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200826 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
wdenk174e0e52003-12-07 22:27:15 +0000827
828QS823_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200829 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
wdenk174e0e52003-12-07 22:27:15 +0000830
831QS860T_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200832 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
wdenk174e0e52003-12-07 22:27:15 +0000833
wdenk7d1eb822004-09-29 11:02:56 +0000834quantum_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200835 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
wdenk7d1eb822004-09-29 11:02:56 +0000836
wdenk7ebf7442002-11-02 23:17:16 +0000837R360MPI_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200838 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
wdenk7ebf7442002-11-02 23:17:16 +0000839
wdenk4e112c12003-06-03 23:54:09 +0000840RBC823_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200841 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
wdenk4e112c12003-06-03 23:54:09 +0000842
wdenk7ebf7442002-11-02 23:17:16 +0000843RPXClassic_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200844 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
wdenk7ebf7442002-11-02 23:17:16 +0000845
846RPXlite_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200847 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
wdenk7ebf7442002-11-02 23:17:16 +0000848
wdenkec432742004-06-09 21:04:48 +0000849RPXlite_DW_64_config \
850RPXlite_DW_LCD_config \
851RPXlite_DW_64_LCD_config \
852RPXlite_DW_NVRAM_config \
853RPXlite_DW_NVRAM_64_config \
854RPXlite_DW_NVRAM_LCD_config \
855RPXlite_DW_NVRAM_64_LCD_config \
856RPXlite_DW_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200857 @mkdir -p $(obj)include
858 @ >$(obj)include/config.h
wdenkec432742004-06-09 21:04:48 +0000859 @[ -z "$(findstring _64,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200860 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
wdenkec432742004-06-09 21:04:48 +0000861 echo "... with 64MHz system clock ..."; \
862 }
863 @[ -z "$(findstring _LCD,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200864 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
865 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
wdenkec432742004-06-09 21:04:48 +0000866 echo "... with LCD display ..."; \
867 }
868 @[ -z "$(findstring _NVRAM,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200869 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
wdenkec432742004-06-09 21:04:48 +0000870 echo "... with ENV in NVRAM ..."; \
871 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200872 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
wdenkec432742004-06-09 21:04:48 +0000873
wdenke6466f62003-06-05 19:27:42 +0000874rmu_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200875 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
wdenke6466f62003-06-05 19:27:42 +0000876
wdenk7ebf7442002-11-02 23:17:16 +0000877RRvision_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200878 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
wdenk7ebf7442002-11-02 23:17:16 +0000879
880RRvision_LCD_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200881 @mkdir -p $(obj)include
882 @echo "#define CONFIG_LCD" >$(obj)include/config.h
883 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
884 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
wdenk7ebf7442002-11-02 23:17:16 +0000885
886SM850_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200887 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
wdenk7ebf7442002-11-02 23:17:16 +0000888
Markus Klotzbuecher8f824852006-07-12 08:48:24 +0200889spc1920_config:
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200890 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
Markus Klotzbuecher8f824852006-07-12 08:48:24 +0200891
wdenk7ebf7442002-11-02 23:17:16 +0000892SPD823TS_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200893 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
wdenk7ebf7442002-11-02 23:17:16 +0000894
Wolfgang Denk72fdb6c2005-08-15 15:55:00 +0200895stxxtc_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200896 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
Wolfgang Denk72fdb6c2005-08-15 15:55:00 +0200897
wdenkc8434db2003-03-26 06:55:25 +0000898svm_sc8xx_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200899 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
wdenkc8434db2003-03-26 06:55:25 +0000900
wdenk7ebf7442002-11-02 23:17:16 +0000901SXNI855T_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200902 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
wdenk7ebf7442002-11-02 23:17:16 +0000903
wdenkb666c8f2003-03-06 00:58:30 +0000904# EMK MPC8xx based modules
905TOP860_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200906 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
wdenkb666c8f2003-03-06 00:58:30 +0000907
wdenk7ebf7442002-11-02 23:17:16 +0000908# Play some tricks for configuration selection
wdenkc78bf132004-04-24 23:23:30 +0000909# Only 855 and 860 boards may come with FEC
910# and only 823 boards may have LCD support
911xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
wdenk7ebf7442002-11-02 23:17:16 +0000912
913FPS850L_config \
wdenk384ae022002-11-05 00:17:55 +0000914FPS860L_config \
wdenk69141282003-07-07 20:07:54 +0000915NSCU_config \
wdenk7ebf7442002-11-02 23:17:16 +0000916TQM823L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000917TQM823L_LCD_config \
wdenk7ebf7442002-11-02 23:17:16 +0000918TQM850L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000919TQM855L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000920TQM860L_config \
wdenk6bd14892003-04-10 11:18:18 +0000921TQM862L_config \
wdenkfb229ae2003-08-07 22:18:11 +0000922TQM823M_config \
wdenkfb229ae2003-08-07 22:18:11 +0000923TQM850M_config \
wdenk69141282003-07-07 20:07:54 +0000924TQM855M_config \
wdenk69141282003-07-07 20:07:54 +0000925TQM860M_config \
wdenk69141282003-07-07 20:07:54 +0000926TQM862M_config \
Wolfgang Denk67ffef32006-05-12 16:15:46 +0200927TQM866M_config \
Markus Klotzbuecher13af9f02006-07-12 15:26:01 +0200928TQM885D_config \
Wolfgang Denk67ffef32006-05-12 16:15:46 +0200929virtlab2_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200930 @mkdir -p $(obj)include
931 @ >$(obj)include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000932 @[ -z "$(findstring _LCD,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200933 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
934 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +0000935 echo "... with LCD display" ; \
936 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200937 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
wdenk7ebf7442002-11-02 23:17:16 +0000938
939TTTech_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200940 @mkdir -p $(obj)include
941 @echo "#define CONFIG_LCD" >$(obj)include/config.h
942 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
943 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
wdenk7ebf7442002-11-02 23:17:16 +0000944
wdenk11392db2004-12-19 09:58:11 +0000945uc100_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200946 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
wdenk51242782004-12-18 22:35:43 +0000947
wdenk2dad91b2003-01-13 23:54:46 +0000948v37_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200949 @mkdir -p $(obj)include
950 @echo "#define CONFIG_LCD" >$(obj)include/config.h
951 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
952 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
wdenk2dad91b2003-01-13 23:54:46 +0000953
dzu69438f62003-09-25 22:32:40 +0000954wtk_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200955 @mkdir -p $(obj)include
956 @echo "#define CONFIG_LCD" >$(obj)include/config.h
957 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
958 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
dzu69438f62003-09-25 22:32:40 +0000959
wdenk7ebf7442002-11-02 23:17:16 +0000960#########################################################################
961## PPC4xx Systems
962#########################################################################
wdenk99874b42004-07-01 21:40:08 +0000963xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
wdenk7ebf7442002-11-02 23:17:16 +0000964
965ADCIOP_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200966 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
wdenk7ebf7442002-11-02 23:17:16 +0000967
Wolfgang Denk56811f62005-10-09 01:04:33 +0200968AP1000_config:unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200969 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
Wolfgang Denk56811f62005-10-09 01:04:33 +0200970
stroese05b88912004-12-16 18:44:40 +0000971APC405_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200972 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
stroese05b88912004-12-16 18:44:40 +0000973
wdenk7ebf7442002-11-02 23:17:16 +0000974AR405_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200975 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
wdenk7ebf7442002-11-02 23:17:16 +0000976
stroesebfcc82b2003-05-23 11:41:44 +0000977ASH405_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200978 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
stroesebfcc82b2003-05-23 11:41:44 +0000979
Stefan Roese3e1f1b32005-08-01 16:49:12 +0200980bamboo_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200981 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
Stefan Roese3e1f1b32005-08-01 16:49:12 +0200982
983bubinga_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200984 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
stroesebfcc82b2003-05-23 11:41:44 +0000985
wdenk7ebf7442002-11-02 23:17:16 +0000986CANBT_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200987 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
wdenk7ebf7442002-11-02 23:17:16 +0000988
wdenk9e7130b2004-09-09 17:44:35 +0000989CATcenter_config \
990CATcenter_25_config \
991CATcenter_33_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200992 @mkdir -p $(obj)include
993 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
994 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
wdenk9e7130b2004-09-09 17:44:35 +0000995 @[ -z "$(findstring _25,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200996 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
wdenk9e7130b2004-09-09 17:44:35 +0000997 echo "SysClk = 25MHz" ; \
998 }
999 @[ -z "$(findstring _33,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001000 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
wdenk9e7130b2004-09-09 17:44:35 +00001001 echo "SysClk = 33MHz" ; \
1002 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001003 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
wdenkbb33bab2004-05-13 13:23:58 +00001004
Stefan Roesea34997d2005-09-22 09:16:57 +02001005CPCI2DP_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001006 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
Stefan Roesea34997d2005-09-22 09:16:57 +02001007
stroesebfcc82b2003-05-23 11:41:44 +00001008CPCI405_config \
1009CPCI4052_config \
stroese05b88912004-12-16 18:44:40 +00001010CPCI405DT_config \
stroesebfcc82b2003-05-23 11:41:44 +00001011CPCI405AB_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001012 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1013 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
wdenk7ebf7442002-11-02 23:17:16 +00001014
1015CPCI440_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001016 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
wdenk7ebf7442002-11-02 23:17:16 +00001017
1018CPCIISER4_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001019 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
wdenk7ebf7442002-11-02 23:17:16 +00001020
wdenk634d2f72004-04-15 23:14:49 +00001021CRAYL1_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001022 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
wdenk7ebf7442002-11-02 23:17:16 +00001023
wdenkf70cbb22004-02-23 20:48:38 +00001024csb272_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001025 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
wdenkf70cbb22004-02-23 20:48:38 +00001026
wdenk7e920de2004-06-09 12:47:02 +00001027csb472_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001028 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
wdenk7e920de2004-06-09 12:47:02 +00001029
wdenk7ebf7442002-11-02 23:17:16 +00001030DASA_SIM_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001031 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
wdenk7ebf7442002-11-02 23:17:16 +00001032
stroese3361eb72003-09-12 08:57:15 +00001033DP405_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001034 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
stroese3361eb72003-09-12 08:57:15 +00001035
wdenk7ebf7442002-11-02 23:17:16 +00001036DU405_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001037 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
wdenk7ebf7442002-11-02 23:17:16 +00001038
Stefan Roese3e1f1b32005-08-01 16:49:12 +02001039ebony_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001040 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
wdenk7ebf7442002-11-02 23:17:16 +00001041
wdenk634d2f72004-04-15 23:14:49 +00001042ERIC_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001043 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
wdenk7ebf7442002-11-02 23:17:16 +00001044
wdenk634d2f72004-04-15 23:14:49 +00001045EXBITGEN_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001046 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
wdenkd9fce812003-06-28 17:24:46 +00001047
stroese05b88912004-12-16 18:44:40 +00001048G2000_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001049 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
stroese05b88912004-12-16 18:44:40 +00001050
1051HH405_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001052 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
stroese05b88912004-12-16 18:44:40 +00001053
stroese3361eb72003-09-12 08:57:15 +00001054HUB405_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001055 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
stroese3361eb72003-09-12 08:57:15 +00001056
wdenk634d2f72004-04-15 23:14:49 +00001057JSE_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001058 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
wdenk634d2f72004-04-15 23:14:49 +00001059
Stefan Roese5ff4c3f2005-08-15 12:31:23 +02001060KAREF_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001061 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
Stefan Roese5ff4c3f2005-08-15 12:31:23 +02001062
Stefan Roese99644742005-11-29 18:18:21 +01001063luan_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001064 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
Stefan Roese99644742005-11-29 18:18:21 +01001065
Stefan Roese5ff4c3f2005-08-15 12:31:23 +02001066METROBOX_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001067 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
Stefan Roese5ff4c3f2005-08-15 12:31:23 +02001068
wdenk634d2f72004-04-15 23:14:49 +00001069MIP405_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001070 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
wdenk7ebf7442002-11-02 23:17:16 +00001071
wdenk634d2f72004-04-15 23:14:49 +00001072MIP405T_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001073 @mkdir -p $(obj)include
1074 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
wdenke39c2842003-06-04 15:05:30 +00001075 @echo "Enable subset config for MIP405T"
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001076 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
wdenke39c2842003-06-04 15:05:30 +00001077
wdenk634d2f72004-04-15 23:14:49 +00001078ML2_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001079 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
wdenk7ebf7442002-11-02 23:17:16 +00001080
wdenk634d2f72004-04-15 23:14:49 +00001081ml300_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001082 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
wdenke537b3b2004-02-23 23:54:43 +00001083
Stefan Roese3e1f1b32005-08-01 16:49:12 +02001084ocotea_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001085 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
wdenk00fe1612004-03-14 00:07:33 +00001086
wdenk7ebf7442002-11-02 23:17:16 +00001087OCRTC_config \
1088ORSG_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001089 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
wdenk7ebf7442002-11-02 23:17:16 +00001090
Stefan Roesec443fe92005-11-22 13:20:42 +01001091p3p440_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001092 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
Stefan Roesec443fe92005-11-22 13:20:42 +01001093
wdenk7ebf7442002-11-02 23:17:16 +00001094PCI405_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001095 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
wdenk7ebf7442002-11-02 23:17:16 +00001096
Stefan Roese9eba0c82006-06-02 16:18:04 +02001097pcs440ep_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001098 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
Stefan Roese9eba0c82006-06-02 16:18:04 +02001099
wdenk634d2f72004-04-15 23:14:49 +00001100PIP405_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001101 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
wdenk7ebf7442002-11-02 23:17:16 +00001102
stroese3361eb72003-09-12 08:57:15 +00001103PLU405_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001104 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
stroese3361eb72003-09-12 08:57:15 +00001105
stroesebfcc82b2003-05-23 11:41:44 +00001106PMC405_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001107 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
stroesebfcc82b2003-05-23 11:41:44 +00001108
wdenk7ac16102004-08-01 22:48:16 +00001109PPChameleonEVB_config \
wdenk99874b42004-07-01 21:40:08 +00001110PPChameleonEVB_BA_25_config \
1111PPChameleonEVB_ME_25_config \
1112PPChameleonEVB_HI_25_config \
1113PPChameleonEVB_BA_33_config \
1114PPChameleonEVB_ME_33_config \
1115PPChameleonEVB_HI_33_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001116 @mkdir -p $(obj)include
1117 @ >$(obj)include/config.h
wdenk9e7130b2004-09-09 17:44:35 +00001118 @[ -z "$(findstring EVB_BA,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001119 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
wdenk7182b0f2003-10-06 21:55:32 +00001120 echo "... BASIC model" ; \
1121 }
wdenk9e7130b2004-09-09 17:44:35 +00001122 @[ -z "$(findstring EVB_ME,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001123 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
wdenk7182b0f2003-10-06 21:55:32 +00001124 echo "... MEDIUM model" ; \
1125 }
wdenk9e7130b2004-09-09 17:44:35 +00001126 @[ -z "$(findstring EVB_HI,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001127 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
wdenk7182b0f2003-10-06 21:55:32 +00001128 echo "... HIGH-END model" ; \
1129 }
wdenk99874b42004-07-01 21:40:08 +00001130 @[ -z "$(findstring _25,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001131 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
wdenk9e7130b2004-09-09 17:44:35 +00001132 echo "SysClk = 25MHz" ; \
wdenk99874b42004-07-01 21:40:08 +00001133 }
1134 @[ -z "$(findstring _33,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001135 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
wdenk9e7130b2004-09-09 17:44:35 +00001136 echo "SysClk = 33MHz" ; \
wdenk99874b42004-07-01 21:40:08 +00001137 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001138 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
wdenk232fe0b2003-09-02 22:48:03 +00001139
wdenkd3341052005-01-09 23:48:14 +00001140sbc405_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001141 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
wdenkd3341052005-01-09 23:48:14 +00001142
Stefan Roese42fbddd2006-09-07 11:51:23 +02001143sequoia_config: unconfig
1144 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sequoia amcc
1145
1146sequoia_nand_config: unconfig
1147 @ln -s board/amcc/sequoia/Makefile nand_spl/Makefile
1148 @echo "#define CONFIG_NAND_U_BOOT" >include/config.h
1149 @echo "Compile NAND boot image for sequoia"
1150 @$(MKCONFIG) -a sequoia ppc ppc4xx sequoia amcc
1151 @echo "TEXT_BASE = 0x01000000" >board/amcc/sequoia/config.tmp
1152 @echo "CONFIG_NAND_U_BOOT = y" >> include/config.mk
1153
Stefan Roese3e1f1b32005-08-01 16:49:12 +02001154sycamore_config: unconfig
1155 @echo "Configuring for sycamore board as subset of walnut..."
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001156 @$(MKCONFIG) -a walnut ppc ppc4xx walnut amcc
Stefan Roese3e1f1b32005-08-01 16:49:12 +02001157
stroese3361eb72003-09-12 08:57:15 +00001158VOH405_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001159 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
stroese3361eb72003-09-12 08:57:15 +00001160
stroese05b88912004-12-16 18:44:40 +00001161VOM405_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001162 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
stroese05b88912004-12-16 18:44:40 +00001163
Stefan Roesef2303272005-11-15 10:35:59 +01001164CMS700_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001165 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
Stefan Roesef2303272005-11-15 10:35:59 +01001166
wdenk7ebf7442002-11-02 23:17:16 +00001167W7OLMC_config \
1168W7OLMG_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001169 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
wdenk7ebf7442002-11-02 23:17:16 +00001170
Stefan Roese3e1f1b32005-08-01 16:49:12 +02001171walnut_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001172 @$(MKCONFIG) $(@:_config=) ppc ppc4xx walnut amcc
wdenk7ebf7442002-11-02 23:17:16 +00001173
stroese05b88912004-12-16 18:44:40 +00001174WUH405_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001175 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
stroese05b88912004-12-16 18:44:40 +00001176
wdenk634d2f72004-04-15 23:14:49 +00001177XPEDITE1K_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001178 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
wdenk544e9732004-02-06 23:19:44 +00001179
Stefan Roese3e1f1b32005-08-01 16:49:12 +02001180yosemite_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001181 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yosemite amcc
Stefan Roese3e1f1b32005-08-01 16:49:12 +02001182
1183yellowstone_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001184 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yellowstone amcc
Stefan Roese3e1f1b32005-08-01 16:49:12 +02001185
Marian Balakowicz49d0eee2006-06-30 16:30:46 +02001186yucca_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001187 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
Marian Balakowicz49d0eee2006-06-30 16:30:46 +02001188
wdenk7ebf7442002-11-02 23:17:16 +00001189#########################################################################
wdenk337f5652004-10-28 00:09:35 +00001190## MPC8220 Systems
1191#########################################################################
Wolfgang Denkdb5f3862005-08-03 22:32:02 +02001192
1193Alaska8220_config \
1194Yukon8220_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001195 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
wdenk337f5652004-10-28 00:09:35 +00001196
wdenkccfe25d2005-04-05 21:57:18 +00001197sorcery_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001198 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
wdenkccfe25d2005-04-05 21:57:18 +00001199
wdenk337f5652004-10-28 00:09:35 +00001200#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001201## MPC824x Systems
1202#########################################################################
wdenkc12081a2004-03-23 20:18:25 +00001203xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
wdenkef5fe752003-03-12 10:41:04 +00001204
wdenk8aeb24e2003-06-20 22:36:30 +00001205A3000_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001206 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
wdenk8aeb24e2003-06-20 22:36:30 +00001207
Wolfgang Denka48c7252005-09-25 18:59:36 +02001208barco_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001209 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
Wolfgang Denka48c7252005-09-25 18:59:36 +02001210
wdenk7ebf7442002-11-02 23:17:16 +00001211BMW_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001212 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
wdenk7ebf7442002-11-02 23:17:16 +00001213
wdenkef5fe752003-03-12 10:41:04 +00001214CPC45_config \
1215CPC45_ROMBOOT_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001216 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1217 @cd $(obj)include ; \
wdenkef5fe752003-03-12 10:41:04 +00001218 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1219 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1220 echo "... booting from 8-bit flash" ; \
1221 else \
1222 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1223 echo "... booting from 64-bit flash" ; \
1224 fi; \
1225 echo "export CONFIG_BOOT_ROM" >> config.mk;
1226
wdenk7ebf7442002-11-02 23:17:16 +00001227CU824_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001228 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
wdenk7ebf7442002-11-02 23:17:16 +00001229
wdenk78924a72004-04-18 21:45:42 +00001230debris_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001231 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
wdenk78924a72004-04-18 21:45:42 +00001232
wdenk5f495752004-02-26 23:46:20 +00001233eXalion_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001234 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
wdenk5f495752004-02-26 23:46:20 +00001235
wdenke0c812a2005-04-03 15:51:42 +00001236HIDDEN_DRAGON_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001237 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
wdenke0c812a2005-04-03 15:51:42 +00001238
Wolfgang Denk11f95cb2006-07-21 11:29:20 +02001239kvme080_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001240 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
Wolfgang Denk11f95cb2006-07-21 11:29:20 +02001241
wdenk7ebf7442002-11-02 23:17:16 +00001242MOUSSE_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001243 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
wdenk7ebf7442002-11-02 23:17:16 +00001244
1245MUSENKI_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001246 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
wdenk7ebf7442002-11-02 23:17:16 +00001247
wdenk4e7a58a2003-12-07 19:24:00 +00001248MVBLUE_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001249 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
wdenk4e7a58a2003-12-07 19:24:00 +00001250
wdenk7ebf7442002-11-02 23:17:16 +00001251OXC_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001252 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
wdenk7ebf7442002-11-02 23:17:16 +00001253
1254PN62_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001255 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
wdenk7ebf7442002-11-02 23:17:16 +00001256
1257Sandpoint8240_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001258 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
wdenk7ebf7442002-11-02 23:17:16 +00001259
1260Sandpoint8245_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001261 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
wdenk7ebf7442002-11-02 23:17:16 +00001262
wdenk265d2172004-07-10 22:35:59 +00001263sbc8240_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001264 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
wdenk265d2172004-07-10 22:35:59 +00001265
wdenkd9fce812003-06-28 17:24:46 +00001266SL8245_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001267 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
wdenkd9fce812003-06-28 17:24:46 +00001268
wdenk7ebf7442002-11-02 23:17:16 +00001269utx8245_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001270 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
wdenk7ebf7442002-11-02 23:17:16 +00001271
1272#########################################################################
1273## MPC8260 Systems
1274#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001275
wdenk2f0812d2003-10-08 22:45:44 +00001276atc_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001277 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
wdenk2f0812d2003-10-08 22:45:44 +00001278
wdenk7ebf7442002-11-02 23:17:16 +00001279cogent_mpc8260_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001280 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
wdenk7ebf7442002-11-02 23:17:16 +00001281
1282CPU86_config \
1283CPU86_ROMBOOT_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001284 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1285 @cd $(obj)include ; \
wdenk7ebf7442002-11-02 23:17:16 +00001286 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1287 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1288 echo "... booting from 8-bit flash" ; \
1289 else \
1290 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1291 echo "... booting from 64-bit flash" ; \
1292 fi; \
1293 echo "export CONFIG_BOOT_ROM" >> config.mk;
1294
wdenk6d3c6d12005-04-03 22:35:21 +00001295CPU87_config \
1296CPU87_ROMBOOT_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001297 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1298 @cd $(obj)include ; \
wdenk6d3c6d12005-04-03 22:35:21 +00001299 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1300 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1301 echo "... booting from 8-bit flash" ; \
1302 else \
1303 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1304 echo "... booting from 64-bit flash" ; \
1305 fi; \
1306 echo "export CONFIG_BOOT_ROM" >> config.mk;
1307
Wolfgang Denk8dd4d332005-08-06 01:42:58 +02001308ep8248_config \
1309ep8248E_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001310 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
Wolfgang Denk8dd4d332005-08-06 01:42:58 +02001311
wdenk7ebf7442002-11-02 23:17:16 +00001312ep8260_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001313 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
wdenk7ebf7442002-11-02 23:17:16 +00001314
1315gw8260_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001316 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
wdenk7ebf7442002-11-02 23:17:16 +00001317
1318hymod_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001319 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
wdenk7ebf7442002-11-02 23:17:16 +00001320
wdenka7316b02005-05-12 22:48:09 +00001321IDS8247_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001322 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
wdenka7316b02005-05-12 22:48:09 +00001323
wdenk7ebf7442002-11-02 23:17:16 +00001324IPHASE4539_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001325 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
wdenk7ebf7442002-11-02 23:17:16 +00001326
wdenk76dd6c72004-06-09 14:47:54 +00001327ISPAN_config \
1328ISPAN_REVB_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001329 @mkdir -p $(obj)include
wdenk76dd6c72004-06-09 14:47:54 +00001330 @if [ "$(findstring _REVB_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001331 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
wdenk76dd6c72004-06-09 14:47:54 +00001332 fi
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001333 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
wdenk76dd6c72004-06-09 14:47:54 +00001334
wdenk3902d702004-04-15 18:22:41 +00001335MPC8260ADS_config \
wdenk874c6752005-04-03 23:22:21 +00001336MPC8260ADS_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001337MPC8260ADS_33MHz_config \
wdenk874c6752005-04-03 23:22:21 +00001338MPC8260ADS_33MHz_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001339MPC8260ADS_40MHz_config \
wdenk874c6752005-04-03 23:22:21 +00001340MPC8260ADS_40MHz_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001341MPC8272ADS_config \
wdenk874c6752005-04-03 23:22:21 +00001342MPC8272ADS_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001343PQ2FADS_config \
wdenk874c6752005-04-03 23:22:21 +00001344PQ2FADS_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001345PQ2FADS-VR_config \
wdenk874c6752005-04-03 23:22:21 +00001346PQ2FADS-VR_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001347PQ2FADS-ZU_config \
wdenk874c6752005-04-03 23:22:21 +00001348PQ2FADS-ZU_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001349PQ2FADS-ZU_66MHz_config \
wdenk874c6752005-04-03 23:22:21 +00001350PQ2FADS-ZU_66MHz_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001351 : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001352 @mkdir -p $(obj)include
1353 @mkdir -p $(obj)board/mpc8260ads
wdenk3902d702004-04-15 18:22:41 +00001354 $(if $(findstring PQ2FADS,$@), \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001355 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1356 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
wdenk3902d702004-04-15 18:22:41 +00001357 $(if $(findstring MHz,$@), \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001358 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
wdenk3902d702004-04-15 18:22:41 +00001359 $(if $(findstring VR,$@), \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001360 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
wdenk874c6752005-04-03 23:22:21 +00001361 @[ -z "$(findstring lowboot_,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001362 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
wdenk874c6752005-04-03 23:22:21 +00001363 echo "... with lowboot configuration" ; \
1364 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001365 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
wdenk7ebf7442002-11-02 23:17:16 +00001366
wdenkb666c8f2003-03-06 00:58:30 +00001367MPC8266ADS_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001368 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
wdenkb666c8f2003-03-06 00:58:30 +00001369
wdenkc12081a2004-03-23 20:18:25 +00001370# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
wdenk4b57dcc2003-03-25 18:06:06 +00001371PM825_config \
wdenkc12081a2004-03-23 20:18:25 +00001372PM825_ROMBOOT_config \
1373PM825_BIGFLASH_config \
1374PM825_ROMBOOT_BIGFLASH_config \
1375PM826_config \
1376PM826_ROMBOOT_config \
1377PM826_BIGFLASH_config \
1378PM826_ROMBOOT_BIGFLASH_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001379 @mkdir -p $(obj)include
1380 @mkdir -p $(obj)board/pm826
wdenkc12081a2004-03-23 20:18:25 +00001381 @if [ "$(findstring PM825_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001382 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
wdenkc12081a2004-03-23 20:18:25 +00001383 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001384 >$(obj)include/config.h ; \
wdenkc12081a2004-03-23 20:18:25 +00001385 fi
1386 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
wdenk4b57dcc2003-03-25 18:06:06 +00001387 echo "... booting from 8-bit flash" ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001388 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1389 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
wdenkc12081a2004-03-23 20:18:25 +00001390 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1391 echo "... with 32 MB Flash" ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001392 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
wdenkc12081a2004-03-23 20:18:25 +00001393 fi; \
wdenk4b57dcc2003-03-25 18:06:06 +00001394 else \
wdenk4b57dcc2003-03-25 18:06:06 +00001395 echo "... booting from 64-bit flash" ; \
wdenkc12081a2004-03-23 20:18:25 +00001396 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1397 echo "... with 32 MB Flash" ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001398 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1399 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
wdenkc12081a2004-03-23 20:18:25 +00001400 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001401 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
wdenkc12081a2004-03-23 20:18:25 +00001402 fi; \
1403 fi
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001404 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
wdenk4b57dcc2003-03-25 18:06:06 +00001405
wdenkc12081a2004-03-23 20:18:25 +00001406PM828_config \
1407PM828_PCI_config \
1408PM828_ROMBOOT_config \
1409PM828_ROMBOOT_PCI_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001410 @mkdir -p $(obj)include
1411 @mkdir -p $(obj)board/pm826
Marian Balakowicz3d8d1252006-04-05 20:37:11 +02001412 @if [ "$(findstring _PCI_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001413 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
wdenkc12081a2004-03-23 20:18:25 +00001414 echo "... with PCI enabled" ; \
wdenk7ebf7442002-11-02 23:17:16 +00001415 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001416 >$(obj)include/config.h ; \
wdenkc12081a2004-03-23 20:18:25 +00001417 fi
1418 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1419 echo "... booting from 8-bit flash" ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001420 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1421 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
wdenkc12081a2004-03-23 20:18:25 +00001422 fi
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001423 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
wdenk7ebf7442002-11-02 23:17:16 +00001424
1425ppmc8260_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001426 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
wdenk7ebf7442002-11-02 23:17:16 +00001427
wdenkbc3202a2005-04-03 23:11:38 +00001428Rattler8248_config \
1429Rattler_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001430 @mkdir -p $(obj)include
wdenkbc3202a2005-04-03 23:11:38 +00001431 $(if $(findstring 8248,$@), \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001432 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1433 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
wdenkbc3202a2005-04-03 23:11:38 +00001434
wdenk7ebf7442002-11-02 23:17:16 +00001435RPXsuper_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001436 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
wdenk7ebf7442002-11-02 23:17:16 +00001437
1438rsdproto_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001439 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
wdenk7ebf7442002-11-02 23:17:16 +00001440
1441sacsng_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001442 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
wdenk7ebf7442002-11-02 23:17:16 +00001443
1444sbc8260_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001445 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
wdenk7ebf7442002-11-02 23:17:16 +00001446
1447SCM_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001448 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
wdenk7ebf7442002-11-02 23:17:16 +00001449
wdenk874ac262003-07-24 23:38:38 +00001450TQM8255_AA_config \
1451TQM8260_AA_config \
1452TQM8260_AB_config \
1453TQM8260_AC_config \
1454TQM8260_AD_config \
1455TQM8260_AE_config \
1456TQM8260_AF_config \
1457TQM8260_AG_config \
1458TQM8260_AH_config \
Wolfgang Denk47673562006-03-07 00:32:07 +01001459TQM8260_AI_config \
wdenk874ac262003-07-24 23:38:38 +00001460TQM8265_AA_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001461 @mkdir -p $(obj)include
wdenk874ac262003-07-24 23:38:38 +00001462 @case "$@" in \
Wolfgang Denk47673562006-03-07 00:32:07 +01001463 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1464 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1465 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1466 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1467 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1468 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1469 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1470 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1471 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1472 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1473 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
wdenk874ac262003-07-24 23:38:38 +00001474 esac; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001475 >$(obj)include/config.h ; \
wdenk874ac262003-07-24 23:38:38 +00001476 if [ "$${CTYPE}" != "MPC8260" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001477 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
wdenk874ac262003-07-24 23:38:38 +00001478 fi; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001479 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
wdenk874ac262003-07-24 23:38:38 +00001480 echo "... with $${CFREQ}MHz system clock" ; \
1481 if [ "$${CACHE}" == "yes" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001482 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
wdenk874ac262003-07-24 23:38:38 +00001483 echo "... with L2 Cache support" ; \
wdenk7ebf7442002-11-02 23:17:16 +00001484 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001485 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +00001486 echo "... without L2 Cache support" ; \
wdenk874ac262003-07-24 23:38:38 +00001487 fi; \
1488 if [ "$${BMODE}" == "60x" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001489 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
wdenk874ac262003-07-24 23:38:38 +00001490 echo "... with 60x Bus Mode" ; \
1491 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001492 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
wdenk874ac262003-07-24 23:38:38 +00001493 echo "... without 60x Bus Mode" ; \
wdenk7ebf7442002-11-02 23:17:16 +00001494 fi
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001495 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
wdenk7ebf7442002-11-02 23:17:16 +00001496
wdenkc28149c2005-05-30 23:55:42 +00001497VoVPN-GW_66MHz_config \
1498VoVPN-GW_100MHz_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001499 @mkdir -p $(obj)include
1500 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1501 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
wdenkc28149c2005-05-30 23:55:42 +00001502
wdenk2f0812d2003-10-08 22:45:44 +00001503ZPC1900_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001504 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
wdenk541a76d2003-05-03 15:50:43 +00001505
wdenkabf7a7c2003-12-08 01:34:36 +00001506#########################################################################
1507## Coldfire
1508#########################################################################
1509
Wolfgang Denkaaa7c002005-12-12 16:06:05 +01001510cobra5272_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001511 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
Wolfgang Denkaaa7c002005-12-12 16:06:05 +01001512
Wolfgang Denkb4b1c462006-06-10 19:27:47 +02001513EB+MCF-EV123_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001514 @mkdir -p $(obj)include
1515 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1516 @ >$(obj)include/config.h
1517 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1518 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
Wolfgang Denkb4b1c462006-06-10 19:27:47 +02001519
1520EB+MCF-EV123_internal_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001521 @mkdir -p $(obj)include
1522 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
1523 @ >$(obj)include/config.h
1524 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1525 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
Wolfgang Denkb4b1c462006-06-10 19:27:47 +02001526
1527M5271EVB_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001528 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
Wolfgang Denkb4b1c462006-06-10 19:27:47 +02001529
wdenkabf7a7c2003-12-08 01:34:36 +00001530M5272C3_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001531 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
wdenkabf7a7c2003-12-08 01:34:36 +00001532
1533M5282EVB_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001534 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
wdenkabf7a7c2003-12-08 01:34:36 +00001535
stroese05b88912004-12-16 18:44:40 +00001536TASREG_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001537 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
stroese05b88912004-12-16 18:44:40 +00001538
Zachary P. Landau552d3142006-01-26 17:37:59 -05001539r5200_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001540 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
Zachary P. Landau552d3142006-01-26 17:37:59 -05001541
wdenk7ebf7442002-11-02 23:17:16 +00001542#########################################################################
Eran Liberty9095d4a2005-07-28 10:08:46 -05001543## MPC83xx Systems
1544#########################################################################
1545
1546MPC8349ADS_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001547 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349ads
Eran Liberty9095d4a2005-07-28 10:08:46 -05001548
Marian Balakowicz513b4a12005-10-11 19:09:42 +02001549TQM834x_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001550 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
Marian Balakowicz513b4a12005-10-11 19:09:42 +02001551
Marian Balakowiczd7a3f722006-03-14 16:24:38 +01001552MPC8349EMDS_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001553 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds
Marian Balakowiczd7a3f722006-03-14 16:24:38 +01001554
Eran Liberty9095d4a2005-07-28 10:08:46 -05001555#########################################################################
wdenk9c53f402003-10-15 23:53:47 +00001556## MPC85xx Systems
1557#########################################################################
1558
wdenk13eb2212004-07-09 23:27:13 +00001559MPC8540ADS_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001560 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
wdenk9c53f402003-10-15 23:53:47 +00001561
Lunsheng Wang61e61952005-07-29 10:20:29 -05001562MPC8540EVAL_config \
1563MPC8540EVAL_33_config \
1564MPC8540EVAL_66_config \
1565MPC8540EVAL_33_slave_config \
1566MPC8540EVAL_66_slave_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001567 @mkdir -p $(obj)include
1568 @echo "" >$(obj)include/config.h ; \
Lunsheng Wang61e61952005-07-29 10:20:29 -05001569 if [ "$(findstring _33_,$@)" ] ; then \
1570 echo -n "... 33 MHz PCI" ; \
1571 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001572 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
Lunsheng Wang61e61952005-07-29 10:20:29 -05001573 echo -n "... 66 MHz PCI" ; \
1574 fi ; \
1575 if [ "$(findstring _slave_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001576 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
Lunsheng Wang61e61952005-07-29 10:20:29 -05001577 echo " slave" ; \
1578 else \
1579 echo " host" ; \
1580 fi
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001581 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
Lunsheng Wang61e61952005-07-29 10:20:29 -05001582
wdenk13eb2212004-07-09 23:27:13 +00001583MPC8560ADS_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001584 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
wdenk9c53f402003-10-15 23:53:47 +00001585
wdenk0aeb8532004-10-10 21:21:55 +00001586MPC8541CDS_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001587 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8541cds cds
wdenk0aeb8532004-10-10 21:21:55 +00001588
Jon Loeliger77a4f6e2005-07-25 14:05:07 -05001589MPC8548CDS_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001590 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8548cds cds
Jon Loeliger77a4f6e2005-07-25 14:05:07 -05001591
wdenk0aeb8532004-10-10 21:21:55 +00001592MPC8555CDS_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001593 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8555cds cds
wdenk78924a72004-04-18 21:45:42 +00001594
wdenk6d3c6d12005-04-03 22:35:21 +00001595PM854_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001596 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
wdenk6d3c6d12005-04-03 22:35:21 +00001597
Wolfgang Denk9733b3c2005-08-05 12:19:30 +02001598PM856_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001599 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
Wolfgang Denk9733b3c2005-08-05 12:19:30 +02001600
wdenkadf849c2004-10-10 22:44:24 +00001601sbc8540_config \
1602sbc8540_33_config \
1603sbc8540_66_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001604 @mkdir -p $(obj)include
wdenkadf849c2004-10-10 22:44:24 +00001605 @if [ "$(findstring _66_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001606 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
wdenkadf849c2004-10-10 22:44:24 +00001607 echo "... 66 MHz PCI" ; \
1608 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001609 >$(obj)include/config.h ; \
wdenkadf849c2004-10-10 22:44:24 +00001610 echo "... 33 MHz PCI" ; \
1611 fi
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001612 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
wdenkadf849c2004-10-10 22:44:24 +00001613
wdenk265d2172004-07-10 22:35:59 +00001614sbc8560_config \
1615sbc8560_33_config \
1616sbc8560_66_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001617 @mkdir -p $(obj)include
wdenk3203c8f2004-07-10 21:45:47 +00001618 @if [ "$(findstring _66_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001619 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
wdenk3203c8f2004-07-10 21:45:47 +00001620 echo "... 66 MHz PCI" ; \
1621 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001622 >$(obj)include/config.h ; \
wdenk3203c8f2004-07-10 21:45:47 +00001623 echo "... 33 MHz PCI" ; \
1624 fi
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001625 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
wdenk3203c8f2004-07-10 21:45:47 +00001626
wdenk0aeb8532004-10-10 21:21:55 +00001627stxgp3_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001628 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
wdenk0aeb8532004-10-10 21:21:55 +00001629
Stefan Roese09554022005-11-30 13:06:40 +01001630TQM8540_config \
1631TQM8541_config \
1632TQM8555_config \
1633TQM8560_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001634 @mkdir -p $(obj)include
Wolfgang Denk3bd697b2005-12-06 15:02:31 +01001635 @CTYPE=$(subst TQM,,$(@:_config=)); \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001636 >$(obj)include/config.h ; \
Stefan Roese09554022005-11-30 13:06:40 +01001637 echo "... TQM"$${CTYPE}; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001638 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1639 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
1640 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1641 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
1642 echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>$(obj)include/config.h
1643 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
wdenk8e5263c2005-04-05 16:26:47 +00001644
wdenk9c53f402003-10-15 23:53:47 +00001645#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001646## 74xx/7xx Systems
1647#########################################################################
1648
wdenk452cfd62002-11-19 11:04:11 +00001649AmigaOneG3SE_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001650 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
wdenk452cfd62002-11-19 11:04:11 +00001651
wdenk9f837932003-10-09 19:00:25 +00001652BAB7xx_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001653 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
wdenk9f837932003-10-09 19:00:25 +00001654
stroese05b88912004-12-16 18:44:40 +00001655CPCI750_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001656 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
stroese05b88912004-12-16 18:44:40 +00001657
wdenk5da7f2f2004-01-03 00:43:19 +00001658DB64360_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001659 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
wdenk5da7f2f2004-01-03 00:43:19 +00001660
1661DB64460_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001662 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
wdenk5da7f2f2004-01-03 00:43:19 +00001663
wdenk9f837932003-10-09 19:00:25 +00001664ELPPC_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001665 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
wdenk9f837932003-10-09 19:00:25 +00001666
wdenk7ebf7442002-11-02 23:17:16 +00001667EVB64260_config \
1668EVB64260_750CX_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001669 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
wdenk7ebf7442002-11-02 23:17:16 +00001670
wdenk9f837932003-10-09 19:00:25 +00001671P3G4_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001672 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
wdenk7ebf7442002-11-02 23:17:16 +00001673
1674PCIPPC2_config \
1675PCIPPC6_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001676 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
wdenk7ebf7442002-11-02 23:17:16 +00001677
wdenk9f837932003-10-09 19:00:25 +00001678ZUMA_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001679 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
wdenk232fe0b2003-09-02 22:48:03 +00001680
Heiko Schocherd7f77fb2006-06-19 11:02:41 +02001681ppmc7xx_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001682 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
Wolfgang Denkba940932006-07-19 13:50:38 +02001683
wdenk7ebf7442002-11-02 23:17:16 +00001684#========================================================================
1685# ARM
1686#========================================================================
1687#########################################################################
1688## StrongARM Systems
1689#########################################################################
1690
wdenke5cda752004-04-15 23:23:39 +00001691assabet_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001692 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
wdenke5cda752004-04-15 23:23:39 +00001693
wdenk7ebf7442002-11-02 23:17:16 +00001694dnp1110_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001695 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
wdenk7ebf7442002-11-02 23:17:16 +00001696
wdenked2ac4b2004-03-14 18:23:55 +00001697gcplus_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001698 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
wdenked2ac4b2004-03-14 18:23:55 +00001699
1700lart_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001701 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
wdenked2ac4b2004-03-14 18:23:55 +00001702
wdenk7ebf7442002-11-02 23:17:16 +00001703shannon_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001704 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
wdenk7ebf7442002-11-02 23:17:16 +00001705
1706#########################################################################
wdenkf6f96f72003-07-15 20:04:06 +00001707## ARM92xT Systems
wdenk7ebf7442002-11-02 23:17:16 +00001708#########################################################################
1709
wdenkb6b2f0e2003-09-17 22:48:07 +00001710xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
wdenk4a5c8a72003-03-06 00:02:04 +00001711
wdenk920e91b2004-06-09 15:25:53 +00001712xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
wdenke97d3d92004-02-23 22:22:28 +00001713
wdenke3a06802004-06-06 23:13:55 +00001714xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1715
wdenk91fcc952005-04-06 13:52:31 +00001716at91rm9200dk_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001717 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
wdenk91fcc952005-04-06 13:52:31 +00001718
1719cmc_pu2_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001720 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
wdenk91fcc952005-04-06 13:52:31 +00001721
Wolfgang Denke35470b2005-10-05 02:00:09 +02001722csb637_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001723 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
Wolfgang Denke35470b2005-10-05 02:00:09 +02001724
Wolfgang Denk756bfd72005-09-26 01:14:38 +02001725mp2usb_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001726 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
Wolfgang Denk756bfd72005-09-26 01:14:38 +02001727
Wolfgang Denkadf20a12005-09-25 01:48:28 +02001728
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02001729########################################################################
1730## ARM Integrator boards - see doc/README-integrator for more info.
1731integratorap_config \
1732ap_config \
1733ap966_config \
1734ap922_config \
1735ap922_XA10_config \
1736ap7_config \
1737ap720t_config \
1738ap920t_config \
1739ap926ejs_config \
1740ap946es_config: unconfig
Wolfgang Denk88bd7432005-10-09 00:22:48 +02001741 @board/integratorap/split_by_variant.sh $@
wdenk4989f872004-03-14 15:06:13 +00001742
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02001743integratorcp_config \
1744cp_config \
1745cp920t_config \
1746cp926ejs_config \
1747cp946es_config \
1748cp1136_config \
1749cp966_config \
1750cp922_config \
1751cp922_XA10_config \
1752cp1026_config: unconfig
Wolfgang Denk88bd7432005-10-09 00:22:48 +02001753 @board/integratorcp/split_by_variant.sh $@
wdenkb3a4a702004-12-10 11:40:40 +00001754
Wolfgang Denk9da240c2005-10-05 00:19:34 +02001755kb9202_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001756 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
Wolfgang Denk9da240c2005-10-05 00:19:34 +02001757
wdenk37bdfdf2004-06-10 21:55:33 +00001758lpd7a400_config \
1759lpd7a404_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001760 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
wdenk4989f872004-03-14 15:06:13 +00001761
wdenk7ac16102004-08-01 22:48:16 +00001762mx1ads_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001763 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
wdenk7ac16102004-08-01 22:48:16 +00001764
1765mx1fs2_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001766 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
wdenk7ac16102004-08-01 22:48:16 +00001767
Wolfgang Denk7b9bc3a2005-09-14 23:53:32 +02001768netstar_32_config \
1769netstar_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001770 @mkdir -p $(obj)include
Wolfgang Denk7b9bc3a2005-09-14 23:53:32 +02001771 @if [ "$(findstring _32_,$@)" ] ; then \
1772 echo "... 32MB SDRAM" ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001773 echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
Wolfgang Denk7b9bc3a2005-09-14 23:53:32 +02001774 else \
1775 echo "... 64MB SDRAM" ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001776 echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
Wolfgang Denk7b9bc3a2005-09-14 23:53:32 +02001777 fi
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001778 @$(MKCONFIG) -a netstar arm arm925t netstar
Wolfgang Denk7b9bc3a2005-09-14 23:53:32 +02001779
wdenkf6f96f72003-07-15 20:04:06 +00001780omap1510inn_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001781 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
wdenkf6f96f72003-07-15 20:04:06 +00001782
wdenk914be132004-06-08 00:22:43 +00001783omap5912osk_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001784 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
wdenk914be132004-06-08 00:22:43 +00001785
wdenke97d3d92004-02-23 22:22:28 +00001786omap1610inn_config \
1787omap1610inn_cs0boot_config \
1788omap1610inn_cs3boot_config \
wdenk920e91b2004-06-09 15:25:53 +00001789omap1610inn_cs_autoboot_config \
wdenke97d3d92004-02-23 22:22:28 +00001790omap1610h2_config \
1791omap1610h2_cs0boot_config \
wdenk920e91b2004-06-09 15:25:53 +00001792omap1610h2_cs3boot_config \
1793omap1610h2_cs_autoboot_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001794 @mkdir -p $(obj)include
wdenke97d3d92004-02-23 22:22:28 +00001795 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001796 echo "#define CONFIG_CS0_BOOT" >> .$(obj)/include/config.h ; \
wdenkd3602132004-03-25 15:14:43 +00001797 echo "... configured for CS0 boot"; \
wdenk920e91b2004-06-09 15:25:53 +00001798 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001799 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)./include/config.h ; \
wdenk920e91b2004-06-09 15:25:53 +00001800 echo "... configured for CS_AUTO boot"; \
wdenke97d3d92004-02-23 22:22:28 +00001801 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001802 echo "#define CONFIG_CS3_BOOT" >> $(obj)./include/config.h ; \
wdenkd3602132004-03-25 15:14:43 +00001803 echo "... configured for CS3 boot"; \
wdenke97d3d92004-02-23 22:22:28 +00001804 fi;
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001805 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
wdenk7eaacc52003-08-29 22:00:43 +00001806
wdenke3a06802004-06-06 23:13:55 +00001807omap730p2_config \
1808omap730p2_cs0boot_config \
1809omap730p2_cs3boot_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001810 @mkdir -p $(obj)include
wdenke3a06802004-06-06 23:13:55 +00001811 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001812 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
wdenke3a06802004-06-06 23:13:55 +00001813 echo "... configured for CS0 boot"; \
1814 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001815 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
wdenke3a06802004-06-06 23:13:55 +00001816 echo "... configured for CS3 boot"; \
1817 fi;
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001818 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
wdenke3a06802004-06-06 23:13:55 +00001819
Wolfgang Denk5873ca52006-07-21 11:31:42 +02001820sbc2410x_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001821 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
Wolfgang Denk5873ca52006-07-21 11:31:42 +02001822
wdenk7ac16102004-08-01 22:48:16 +00001823scb9328_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001824 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
wdenk7ac16102004-08-01 22:48:16 +00001825
wdenk7ebf7442002-11-02 23:17:16 +00001826smdk2400_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001827 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
wdenk7ebf7442002-11-02 23:17:16 +00001828
1829smdk2410_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001830 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
wdenk7ebf7442002-11-02 23:17:16 +00001831
wdenk9f664dd2004-06-09 21:50:45 +00001832SX1_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001833 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
wdenk9f664dd2004-06-09 21:50:45 +00001834
wdenk236d3fc2003-12-20 22:45:10 +00001835# TRAB default configuration: 8 MB Flash, 32 MB RAM
wdenk4a5c8a72003-03-06 00:02:04 +00001836trab_config \
wdenkb6b2f0e2003-09-17 22:48:07 +00001837trab_bigram_config \
1838trab_bigflash_config \
wdenkf6a6ac12003-09-17 15:10:32 +00001839trab_old_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001840 @mkdir -p $(obj)include
1841 @mkdir -p $(obj)board/trab
1842 @ >$(obj)include/config.h
wdenkb6b2f0e2003-09-17 22:48:07 +00001843 @[ -z "$(findstring _bigram,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001844 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
1845 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
wdenkb6b2f0e2003-09-17 22:48:07 +00001846 echo "... with 8 MB Flash, 32 MB RAM" ; \
1847 }
1848 @[ -z "$(findstring _bigflash,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001849 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
1850 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
wdenkb6b2f0e2003-09-17 22:48:07 +00001851 echo "... with 16 MB Flash, 16 MB RAM" ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001852 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
wdenkb6b2f0e2003-09-17 22:48:07 +00001853 }
wdenkf6a6ac12003-09-17 15:10:32 +00001854 @[ -z "$(findstring _old,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001855 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
1856 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
wdenk236d3fc2003-12-20 22:45:10 +00001857 echo "... with 8 MB Flash, 16 MB RAM" ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001858 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
wdenk4a5c8a72003-03-06 00:02:04 +00001859 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001860 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
wdenk7ebf7442002-11-02 23:17:16 +00001861
wdenk1fe2c702003-03-06 21:55:29 +00001862VCMA9_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001863 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
wdenk1fe2c702003-03-06 21:55:29 +00001864
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02001865#========================================================================
1866# ARM supplied Versatile development boards
1867#========================================================================
1868versatile_config \
1869versatileab_config \
1870versatilepb_config : unconfig
Wolfgang Denk88bd7432005-10-09 00:22:48 +02001871 @board/versatile/split_by_variant.sh $@
wdenkb98ac282004-02-24 00:16:43 +00001872
wdenke085e5b2005-04-05 23:32:21 +00001873voiceblue_smallflash_config \
1874voiceblue_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001875 @mkdir -p $(obj)include
1876 @mkdir -p $(obj)board/voiceblue
wdenke085e5b2005-04-05 23:32:21 +00001877 @if [ "$(findstring _smallflash_,$@)" ] ; then \
1878 echo "... boot from lower flash bank" ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001879 echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
1880 echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
wdenke085e5b2005-04-05 23:32:21 +00001881 else \
1882 echo "... boot from upper flash bank" ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001883 >$(obj)include/config.h ; \
1884 echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
wdenke085e5b2005-04-05 23:32:21 +00001885 fi
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001886 @$(MKCONFIG) -a voiceblue arm arm925t voiceblue
wdenke085e5b2005-04-05 23:32:21 +00001887
wdenk62cb5cf2005-05-19 22:46:33 +00001888cm4008_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001889 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
wdenk62cb5cf2005-05-19 22:46:33 +00001890
1891cm41xx_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001892 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
wdenk62cb5cf2005-05-19 22:46:33 +00001893
Wolfgang Denk39c76422006-06-16 17:32:31 +02001894gth2_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001895 @mkdir -p $(obj)include
1896 @ >$(obj)include/config.h
1897 @echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
1898 @$(MKCONFIG) -a gth2 mips mips gth2
Wolfgang Denk39c76422006-06-16 17:32:31 +02001899
wdenkb98ac282004-02-24 00:16:43 +00001900#########################################################################
1901## S3C44B0 Systems
1902#########################################################################
1903
1904B2_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001905 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
wdenkb98ac282004-02-24 00:16:43 +00001906
wdenk7ebf7442002-11-02 23:17:16 +00001907#########################################################################
wdenk9f664dd2004-06-09 21:50:45 +00001908## ARM720T Systems
1909#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001910
Wolfgang Denk4dc11462005-09-26 01:06:33 +02001911armadillo_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001912 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
Wolfgang Denk4dc11462005-09-26 01:06:33 +02001913
wdenk7ebf7442002-11-02 23:17:16 +00001914ep7312_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001915 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
wdenk7ebf7442002-11-02 23:17:16 +00001916
wdenk9f664dd2004-06-09 21:50:45 +00001917impa7_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001918 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
wdenk9f664dd2004-06-09 21:50:45 +00001919
wdenk2ebee312004-02-23 19:30:57 +00001920modnet50_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001921 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
wdenk2ebee312004-02-23 19:30:57 +00001922
wdenkf2140d52004-07-01 16:30:44 +00001923evb4510_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001924 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
wdenkf2140d52004-07-01 16:30:44 +00001925
wdenk7ebf7442002-11-02 23:17:16 +00001926#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +00001927## XScale Systems
wdenk7ebf7442002-11-02 23:17:16 +00001928#########################################################################
1929
wdenk2a831612005-04-06 00:04:16 +00001930adsvix_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001931 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
wdenk2a831612005-04-06 00:04:16 +00001932
wdenkb5bb1392004-07-10 23:11:10 +00001933cerf250_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001934 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
wdenkb5bb1392004-07-10 23:11:10 +00001935
wdenk7ebf7442002-11-02 23:17:16 +00001936cradle_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001937 @$(MKCONFIG) $(@:_config=) arm pxa cradle
wdenk7ebf7442002-11-02 23:17:16 +00001938
1939csb226_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001940 @$(MKCONFIG) $(@:_config=) arm pxa csb226
wdenk7ebf7442002-11-02 23:17:16 +00001941
Wolfgang Denk2105aa22006-03-07 00:22:36 +01001942delta_config :
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001943 @$(MKCONFIG) $(@:_config=) arm pxa delta
Wolfgang Denk2105aa22006-03-07 00:22:36 +01001944
wdenk4a5c8a72003-03-06 00:02:04 +00001945innokom_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001946 @$(MKCONFIG) $(@:_config=) arm pxa innokom
wdenk4a5c8a72003-03-06 00:02:04 +00001947
wdenkbd1575f2003-10-14 19:43:55 +00001948ixdp425_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001949 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
wdenkbd1575f2003-10-14 19:43:55 +00001950
Wolfgang Denk4646d2a2006-05-30 15:56:48 +02001951ixdpg425_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001952 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
Wolfgang Denk4646d2a2006-05-30 15:56:48 +02001953
wdenk4a5c8a72003-03-06 00:02:04 +00001954lubbock_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001955 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
wdenk4a5c8a72003-03-06 00:02:04 +00001956
Heiko Schocher221a5062006-05-02 07:51:46 +02001957pleb2_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001958 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
Heiko Schocher221a5062006-05-02 07:51:46 +02001959
wdenk88e72a32003-06-19 23:04:19 +00001960logodl_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001961 @$(MKCONFIG) $(@:_config=) arm pxa logodl
wdenk88e72a32003-06-19 23:04:19 +00001962
Wolfgang Denk4646d2a2006-05-30 15:56:48 +02001963pdnb3_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001964 @$(MKCONFIG) $(@:_config=) arm ixp pdnb3 prodrive
Wolfgang Denk4646d2a2006-05-30 15:56:48 +02001965
Wolfgang Denk27a5b0b2005-10-13 01:45:54 +02001966pxa255_idp_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001967 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
Wolfgang Denk27a5b0b2005-10-13 01:45:54 +02001968
wdenkb02744a2003-04-05 00:53:31 +00001969wepep250_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001970 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
wdenkb02744a2003-04-05 00:53:31 +00001971
wdenkfa89d7c2004-09-28 16:44:41 +00001972xaeniax_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001973 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
wdenkfa89d7c2004-09-28 16:44:41 +00001974
wdenkc12081a2004-03-23 20:18:25 +00001975xm250_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001976 @$(MKCONFIG) $(@:_config=) arm pxa xm250
wdenkc12081a2004-03-23 20:18:25 +00001977
wdenk51108172004-06-09 15:37:23 +00001978xsengine_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001979 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
wdenk51108172004-06-09 15:37:23 +00001980
Markus Klotzbücher21e69a02006-02-07 20:04:48 +01001981zylonite_config :
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001982 @$(MKCONFIG) $(@:_config=) arm pxa zylonite
Markus Klotzbücher21e69a02006-02-07 20:04:48 +01001983
wdenkf8062712005-01-09 23:16:25 +00001984#########################################################################
1985## ARM1136 Systems
1986#########################################################################
1987omap2420h4_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001988 @$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
wdenkf8062712005-01-09 23:16:25 +00001989
wdenk591dda52002-11-18 00:14:45 +00001990#========================================================================
1991# i386
1992#========================================================================
1993#########################################################################
wdenk1fe2c702003-03-06 21:55:29 +00001994## AMD SC520 CDP
wdenk591dda52002-11-18 00:14:45 +00001995#########################################################################
1996sc520_cdp_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001997 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
wdenk591dda52002-11-18 00:14:45 +00001998
wdenkabda5ca2003-05-31 18:35:21 +00001999sc520_spunk_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002000 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
wdenkabda5ca2003-05-31 18:35:21 +00002001
2002sc520_spunk_rel_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002003 @$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
wdenkabda5ca2003-05-31 18:35:21 +00002004
wdenk4a5c8a72003-03-06 00:02:04 +00002005#========================================================================
2006# MIPS
2007#========================================================================
wdenk7ebf7442002-11-02 23:17:16 +00002008#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +00002009## MIPS32 4Kc
2010#########################################################################
2011
wdenk5d841732003-08-17 18:55:18 +00002012xtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2013
2014incaip_100MHz_config \
2015incaip_133MHz_config \
2016incaip_150MHz_config \
2017incaip_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002018 @mkdir -p $(obj)include
2019 @ >$(obj)include/config.h
wdenk5d841732003-08-17 18:55:18 +00002020 @[ -z "$(findstring _100MHz,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002021 { echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
wdenk5d841732003-08-17 18:55:18 +00002022 echo "... with 100MHz system clock" ; \
2023 }
2024 @[ -z "$(findstring _133MHz,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002025 { echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
wdenk5d841732003-08-17 18:55:18 +00002026 echo "... with 133MHz system clock" ; \
2027 }
2028 @[ -z "$(findstring _150MHz,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002029 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
wdenk5d841732003-08-17 18:55:18 +00002030 echo "... with 150MHz system clock" ; \
2031 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002032 @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
wdenk5d841732003-08-17 18:55:18 +00002033
wdenk5401de42004-02-07 01:27:10 +00002034tb0229_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002035 @$(MKCONFIG) $(@:_config=) mips mips tb0229
wdenk5401de42004-02-07 01:27:10 +00002036
wdenk5d841732003-08-17 18:55:18 +00002037#########################################################################
wdenkcd914452004-05-29 16:53:29 +00002038## MIPS32 AU1X00
2039#########################################################################
2040dbau1000_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002041 @mkdir -p $(obj)include
2042 @ >$(obj)include/config.h
2043 @echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2044 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenkcd914452004-05-29 16:53:29 +00002045
2046dbau1100_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002047 @mkdir -p $(obj)include
2048 @ >$(obj)include/config.h
2049 @echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2050 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenkcd914452004-05-29 16:53:29 +00002051
2052dbau1500_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002053 @mkdir -p $(obj)include
2054 @ >$(obj)include/config.h
2055 @echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2056 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenkcd914452004-05-29 16:53:29 +00002057
wdenk96c7a8c2005-01-09 22:28:56 +00002058dbau1550_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002059 @mkdir -p $(obj)include
2060 @ >$(obj)include/config.h
2061 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2062 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenk96c7a8c2005-01-09 22:28:56 +00002063
2064dbau1550_el_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002065 @mkdir -p $(obj)include
2066 @ >$(obj)include/config.h
2067 @echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2068 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenk96c7a8c2005-01-09 22:28:56 +00002069
Wolfgang Denk0cbaf642005-09-25 00:53:22 +02002070pb1000_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002071 @mkdir -p $(obj)include
2072 @ >$(obj)include/config.h
2073 @echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2074 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
Wolfgang Denk0cbaf642005-09-25 00:53:22 +02002075
wdenkcd914452004-05-29 16:53:29 +00002076#########################################################################
wdenk5d841732003-08-17 18:55:18 +00002077## MIPS64 5Kc
2078#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +00002079
wdenkb02744a2003-04-05 00:53:31 +00002080purple_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002081 @$(MKCONFIG) $(@:_config=) mips mips purple
wdenk4a5c8a72003-03-06 00:02:04 +00002082
wdenk60164a82003-10-08 23:26:14 +00002083#========================================================================
2084# Nios
2085#========================================================================
2086#########################################################################
2087## Nios32
2088#########################################################################
2089
wdenk3be717f2004-01-03 19:43:48 +00002090DK1C20_safe_32_config \
2091DK1C20_standard_32_config \
wdenk60164a82003-10-08 23:26:14 +00002092DK1C20_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002093 @mkdir -p $(obj)include
2094 @ >$(obj)include/config.h
wdenk3be717f2004-01-03 19:43:48 +00002095 @[ -z "$(findstring _safe_32,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002096 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
wdenk3be717f2004-01-03 19:43:48 +00002097 echo "... NIOS 'safe_32' configuration" ; \
2098 }
2099 @[ -z "$(findstring _standard_32,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002100 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
wdenk3be717f2004-01-03 19:43:48 +00002101 echo "... NIOS 'standard_32' configuration" ; \
2102 }
2103 @[ -z "$(findstring DK1C20_config,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002104 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
wdenk3be717f2004-01-03 19:43:48 +00002105 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2106 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002107 @$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
wdenk3be717f2004-01-03 19:43:48 +00002108
2109DK1S10_safe_32_config \
2110DK1S10_standard_32_config \
wdenkc0bc2e12004-02-09 23:12:24 +00002111DK1S10_mtx_ldk_20_config \
wdenk3be717f2004-01-03 19:43:48 +00002112DK1S10_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002113 @mkdir -p $(obj)include
2114 @ >$(obj)include/config.h
wdenk3be717f2004-01-03 19:43:48 +00002115 @[ -z "$(findstring _safe_32,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002116 { echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
wdenk3be717f2004-01-03 19:43:48 +00002117 echo "... NIOS 'safe_32' configuration" ; \
2118 }
2119 @[ -z "$(findstring _standard_32,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002120 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
wdenk3be717f2004-01-03 19:43:48 +00002121 echo "... NIOS 'standard_32' configuration" ; \
2122 }
wdenkc0bc2e12004-02-09 23:12:24 +00002123 @[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002124 { echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
wdenkc0bc2e12004-02-09 23:12:24 +00002125 echo "... NIOS 'mtx_ldk_20' configuration" ; \
2126 }
wdenk3be717f2004-01-03 19:43:48 +00002127 @[ -z "$(findstring DK1S10_config,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002128 { echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
wdenk3be717f2004-01-03 19:43:48 +00002129 echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2130 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002131 @$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
wdenk60164a82003-10-08 23:26:14 +00002132
wdenke28cf632004-03-14 15:20:55 +00002133ADNPESC1_DNPEVA2_base_32_config \
2134ADNPESC1_base_32_config \
2135ADNPESC1_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002136 @mkdir -p $(obj)include
2137 @ >$(obj)include/config.h
wdenke28cf632004-03-14 15:20:55 +00002138 @[ -z "$(findstring _DNPEVA2,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002139 { echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
wdenkc35ba4e2004-03-14 22:25:36 +00002140 echo "... DNP/EVA2 configuration" ; \
2141 }
wdenke28cf632004-03-14 15:20:55 +00002142 @[ -z "$(findstring _base_32,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002143 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
wdenkc35ba4e2004-03-14 22:25:36 +00002144 echo "... NIOS 'base_32' configuration" ; \
2145 }
wdenke28cf632004-03-14 15:20:55 +00002146 @[ -z "$(findstring ADNPESC1_config,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002147 { echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
wdenkc35ba4e2004-03-14 22:25:36 +00002148 echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2149 }
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002150 @$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
wdenke28cf632004-03-14 15:20:55 +00002151
wdenkef3386f2004-10-10 21:27:30 +00002152#########################################################################
2153## Nios-II
2154#########################################################################
2155
Scott McNutt2ca00852006-06-08 13:37:39 -04002156EP1C20_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002157 @$(MKCONFIG) EP1C20 nios2 nios2 ep1c20 altera
Scott McNutt2ca00852006-06-08 13:37:39 -04002158
2159EP1S10_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002160 @$(MKCONFIG) EP1S10 nios2 nios2 ep1s10 altera
Scott McNutt2ca00852006-06-08 13:37:39 -04002161
2162EP1S40_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002163 @$(MKCONFIG) EP1S40 nios2 nios2 ep1s40 altera
Scott McNutt2ca00852006-06-08 13:37:39 -04002164
wdenkef3386f2004-10-10 21:27:30 +00002165PK1C20_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002166 @$(MKCONFIG) PK1C20 nios2 nios2 pk1c20 psyent
wdenkef3386f2004-10-10 21:27:30 +00002167
2168PCI5441_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002169 @$(MKCONFIG) PCI5441 nios2 nios2 pci5441 psyent
wdenk12490652004-04-18 21:13:41 +00002170
2171#========================================================================
2172# MicroBlaze
2173#========================================================================
2174#########################################################################
2175## Microblaze
2176#########################################################################
2177suzaku_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002178 @mkdir -p $(obj)include
2179 @ >$(obj)include/config.h
2180 @echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2181 @$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
wdenk60164a82003-10-08 23:26:14 +00002182
Wolfgang Denk46d2b522006-03-12 02:10:00 +01002183#########################################################################
2184## Blackfin
2185#########################################################################
2186ezkit533_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002187 @$(MKCONFIG) $(@:_config=) blackfin bf533 ezkit533
Wolfgang Denk46d2b522006-03-12 02:10:00 +01002188
2189stamp_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002190 @$(MKCONFIG) $(@:_config=) blackfin bf533 stamp
Wolfgang Denk46d2b522006-03-12 02:10:00 +01002191
2192dspstamp_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002193 @$(MKCONFIG) $(@:_config=) blackfin bf533 dsp_stamp
Wolfgang Denk46d2b522006-03-12 02:10:00 +01002194
2195#########################################################################
wdenkb02744a2003-04-05 00:53:31 +00002196#########################################################################
2197#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00002198
2199clean:
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002200 find $(OBJTREE) -type f \
wdenk7ebf7442002-11-02 23:17:16 +00002201 \( -name 'core' -o -name '*.bak' -o -name '*~' \
2202 -o -name '*.o' -o -name '*.a' \) -print \
2203 | xargs rm -f
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002204 rm -f $(obj)examples/hello_world $(obj)examples/timer \
2205 $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2206 $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2207 $(obj)examples/smc91111_eeprom \
2208 $(obj)examples/test_burst
2209 rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2210 $(obj)tools/gen_eth_addr
2211 rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2212 rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2213 rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2214 rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2215 rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2216 rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2217 rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2218 rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2219 rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2220 rm -f $(obj)include/bmp_logo.h
Stefan Roese42fbddd2006-09-07 11:51:23 +02002221 find nand_spl -lname "*" -print | xargs rm -f
2222 rm -f nand_spl/u-boot-spl nand_spl/u-boot-spl.map
wdenk7ebf7442002-11-02 23:17:16 +00002223
2224clobber: clean
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002225 find $(OBJTREE) -type f \( -name .depend \
wdenkaeba06f2004-06-09 17:34:58 +00002226 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2227 -print0 \
2228 | xargs -0 rm -f
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002229 rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2230 rm -fr $(obj)*.*~
2231 rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2232 rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c
2233 rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2234 rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
wdenk7ebf7442002-11-02 23:17:16 +00002235
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002236ifeq ($(OBJTREE),$(SRCTREE))
2237mrproper \
2238distclean: clobber unconfig
2239else
wdenk7ebf7442002-11-02 23:17:16 +00002240mrproper \
2241distclean: clobber unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002242 rm -rf $(OBJTREE)/*
2243endif
wdenk7ebf7442002-11-02 23:17:16 +00002244
2245backup:
2246 F=`basename $(TOPDIR)` ; cd .. ; \
2247 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2248
2249#########################################################################