xref: /openbmc/u-boot/Makefile (revision 5374b36d)
17ebf7443Swdenk#
2881a87ecSWolfgang Denk# (C) Copyright 2000-2006
37ebf7443Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
47ebf7443Swdenk#
57ebf7443Swdenk# See file CREDITS for list of people who contributed to this
67ebf7443Swdenk# project.
77ebf7443Swdenk#
87ebf7443Swdenk# This program is free software; you can redistribute it and/or
97ebf7443Swdenk# modify it under the terms of the GNU General Public License as
1045a212c4SWolfgang Denk# published by the Free Software Foundatio; either version 2 of
117ebf7443Swdenk# the License, or (at your option) any later version.
127ebf7443Swdenk#
137ebf7443Swdenk# This program is distributed in the hope that it will be useful,
147ebf7443Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of
157ebf7443Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
167ebf7443Swdenk# GNU General Public License for more details.
177ebf7443Swdenk#
187ebf7443Swdenk# You should have received a copy of the GNU General Public License
197ebf7443Swdenk# along with this program; if not, write to the Free Software
207ebf7443Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
217ebf7443Swdenk# MA 02111-1307 USA
227ebf7443Swdenk#
237ebf7443Swdenk
24881a87ecSWolfgang DenkVERSION = 1
25f4eb5452SWolfgang DenkPATCHLEVEL = 2
26f4eb5452SWolfgang DenkSUBLEVEL = 0
27881a87ecSWolfgang DenkEXTRAVERSION =
28881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29f9328639SMarian BalakowiczVERSION_FILE = $(obj)include/version_autogenerated.h
30881a87ecSWolfgang Denk
317ebf7443SwdenkHOSTARCH := $(shell uname -m | \
327ebf7443Swdenk	sed -e s/i.86/i386/ \
337ebf7443Swdenk	    -e s/sun4u/sparc64/ \
347ebf7443Swdenk	    -e s/arm.*/arm/ \
357ebf7443Swdenk	    -e s/sa110/arm/ \
367ebf7443Swdenk	    -e s/powerpc/ppc/ \
377ebf7443Swdenk	    -e s/macppc/ppc/)
387ebf7443Swdenk
39f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
407ebf7443Swdenk	    sed -e 's/\(cygwin\).*/cygwin/')
417ebf7443Swdenk
42f9d77ed3SWolfgang Denkexport	HOSTARCH HOSTOS
437ebf7443Swdenk
447ebf7443Swdenk# Deal with colliding definitions from tcsh etc.
457ebf7443SwdenkVENDOR=
467ebf7443Swdenk
477ebf7443Swdenk#########################################################################
48f9328639SMarian Balakowicz#
49f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external
50f9328639SMarian Balakowicz# directory. Two use cases are supported:
51f9328639SMarian Balakowicz#
52f9328639SMarian Balakowicz# 1) Add O= to the make command line
53f9328639SMarian Balakowicz# 'make O=/tmp/build all'
54f9328639SMarian Balakowicz#
55f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location
56f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
57f9328639SMarian Balakowicz# 'make'
58f9328639SMarian Balakowicz#
59f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script
60f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
61f9328639SMarian Balakowicz# './MAKEALL'
62f9328639SMarian Balakowicz#
63f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable.
64f9328639SMarian Balakowicz#
65f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and
66f9328639SMarian Balakowicz# the object files are placed in the source directory.
67f9328639SMarian Balakowicz#
687ebf7443Swdenk
69f9328639SMarian Balakowiczifdef O
70f9328639SMarian Balakowiczifeq ("$(origin O)", "command line")
71f9328639SMarian BalakowiczBUILD_DIR := $(O)
72f9328639SMarian Balakowiczendif
73f9328639SMarian Balakowiczendif
747ebf7443Swdenk
75f9328639SMarian Balakowiczifneq ($(BUILD_DIR),)
76f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR)
774f0645ebSMarian Balakowicz
784f0645ebSMarian Balakowicz# Attempt to create a output directory.
794f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
804f0645ebSMarian Balakowicz
814f0645ebSMarian Balakowicz# Verify if it was successful.
82f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
83f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
84f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),)
85f9328639SMarian Balakowicz
86f9328639SMarian BalakowiczOBJTREE		:= $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
87f9328639SMarian BalakowiczSRCTREE		:= $(CURDIR)
88f9328639SMarian BalakowiczTOPDIR		:= $(SRCTREE)
89f9328639SMarian BalakowiczLNDIR		:= $(OBJTREE)
90f9328639SMarian Balakowiczexport	TOPDIR SRCTREE OBJTREE
91f9328639SMarian Balakowicz
92f9328639SMarian BalakowiczMKCONFIG	:= $(SRCTREE)/mkconfig
93f9328639SMarian Balakowiczexport MKCONFIG
94f9328639SMarian Balakowicz
95f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
96f9328639SMarian BalakowiczREMOTE_BUILD	:= 1
97f9328639SMarian Balakowiczexport REMOTE_BUILD
98f9328639SMarian Balakowiczendif
99f9328639SMarian Balakowicz
100f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile
101f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for
102f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc.
103f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
104f9328639SMarian Balakowiczobj := $(OBJTREE)/
105f9328639SMarian Balakowiczsrc := $(SRCTREE)/
106f9328639SMarian Balakowiczelse
107f9328639SMarian Balakowiczobj :=
108f9328639SMarian Balakowiczsrc :=
109f9328639SMarian Balakowiczendif
110f9328639SMarian Balakowiczexport obj src
111f9328639SMarian Balakowicz
112f9328639SMarian Balakowicz#########################################################################
113f9328639SMarian Balakowicz
114f9328639SMarian Balakowiczifeq ($(OBJTREE)/include/config.mk,$(wildcard $(OBJTREE)/include/config.mk))
115f9328639SMarian Balakowicz
1167ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
117f9328639SMarian Balakowiczinclude $(OBJTREE)/include/config.mk
1181d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
119f9328639SMarian Balakowicz
1207ebf7443Swdenkifndef CROSS_COMPILE
121a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH))
1227ebf7443SwdenkCROSS_COMPILE =
1237ebf7443Swdenkelse
1247ebf7443Swdenkifeq ($(ARCH),ppc)
125f046ccd1SEran LibertyCROSS_COMPILE = powerpc-linux-
1267ebf7443Swdenkendif
1277ebf7443Swdenkifeq ($(ARCH),arm)
128dc7c9a1aSwdenkCROSS_COMPILE = arm-linux-
1297ebf7443Swdenkendif
1302262cfeeSwdenkifeq ($(ARCH),i386)
1317a8e9bedSwdenkCROSS_COMPILE = i386-linux-
1327a8e9bedSwdenkendif
13343d9616cSwdenkifeq ($(ARCH),mips)
13443d9616cSwdenkCROSS_COMPILE = mips_4KC-
13543d9616cSwdenkendif
1364a551709Swdenkifeq ($(ARCH),nios)
1374a551709SwdenkCROSS_COMPILE = nios-elf-
1384a551709Swdenkendif
1395c952cf0Swdenkifeq ($(ARCH),nios2)
1405c952cf0SwdenkCROSS_COMPILE = nios2-elf-
1415c952cf0Swdenkendif
1424e5ca3ebSwdenkifeq ($(ARCH),m68k)
1434e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
1444e5ca3ebSwdenkendif
145507bbe3eSwdenkifeq ($(ARCH),microblaze)
146507bbe3eSwdenkCROSS_COMPILE = mb-
147507bbe3eSwdenkendif
1480afe519aSWolfgang Denkifeq ($(ARCH),blackfin)
149ef26a08fSAubrey.LiCROSS_COMPILE = bfin-uclinux-
1500afe519aSWolfgang Denkendif
1517b64fef3SWolfgang Denkifeq ($(ARCH),avr32)
152*5374b36dSHaavard SkinnemoenCROSS_COMPILE = avr32-linux-
1537b64fef3SWolfgang Denkendif
1547ebf7443Swdenkendif
1557ebf7443Swdenkendif
1567ebf7443Swdenk
1577ebf7443Swdenkexport	CROSS_COMPILE
1587ebf7443Swdenk
15992b197f0SWolfgang Denk# load other configuration
16092b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk
16192b197f0SWolfgang Denk
1627ebf7443Swdenk#########################################################################
1637ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
1647ebf7443Swdenk
1657ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
1662262cfeeSwdenkifeq ($(CPU),i386)
1672262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
1682262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o
1692262cfeeSwdenkendif
1707ebf7443Swdenkifeq ($(CPU),ppc4xx)
1717ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
1727ebf7443Swdenkendif
17342d1f039Swdenkifeq ($(CPU),mpc85xx)
17442d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
17542d1f039Swdenkendif
176debb7354SJon Loeligerifeq ($(CPU),mpc86xx)
177debb7354SJon LoeligerOBJS += cpu/$(CPU)/resetvec.o
178debb7354SJon Loeligerendif
1790afe519aSWolfgang Denkifeq ($(CPU),bf533)
1800afe519aSWolfgang DenkOBJS += cpu/$(CPU)/start1.o	cpu/$(CPU)/interrupt.o	cpu/$(CPU)/cache.o
181ef26a08fSAubrey.LiOBJS += cpu/$(CPU)/flush.o	cpu/$(CPU)/init_sdram.o
1820afe519aSWolfgang Denkendif
18326bf7decSAubrey Liifeq ($(CPU),bf537)
18426bf7decSAubrey LiOBJS += cpu/$(CPU)/start1.o	cpu/$(CPU)/interrupt.o	cpu/$(CPU)/cache.o
18526bf7decSAubrey LiOBJS += cpu/$(CPU)/flush.o	cpu/$(CPU)/init_sdram.o
18626bf7decSAubrey Liendif
18765458987SAubrey Liifeq ($(CPU),bf561)
18865458987SAubrey LiOBJS += cpu/$(CPU)/start1.o	cpu/$(CPU)/interrupt.o	cpu/$(CPU)/cache.o
18965458987SAubrey LiOBJS += cpu/$(CPU)/flush.o 	cpu/$(CPU)/init_sdram.o
1907ebf7443Swdenkendif
1917ebf7443Swdenk
192f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS))
193f9328639SMarian Balakowicz
1949fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
1959fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a
1967ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
1971d9f4105Swdenkifdef SOC
1981d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
1991d9f4105Swdenkendif
2007ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
201518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
202c419d1d6Sstroese	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
2037ebf7443SwdenkLIBS += net/libnet.a
2047ebf7443SwdenkLIBS += disk/libdisk.a
2057ebf7443SwdenkLIBS += rtc/librtc.a
2067ebf7443SwdenkLIBS += dtt/libdtt.a
2077ebf7443SwdenkLIBS += drivers/libdrivers.a
2086db39708SMarian BalakowiczLIBS += drivers/nand/libnand.a
2096db39708SMarian BalakowiczLIBS += drivers/nand_legacy/libnand_legacy.a
2107737d5c6SDave Liuifeq ($(CPU),mpc83xx)
2117737d5c6SDave LiuLIBS += drivers/qe/qe.a
2127737d5c6SDave Liuendif
2137152b1d0SwdenkLIBS += drivers/sk98lin/libsk98lin.a
214ad5bb451SWolfgang DenkLIBS += post/libpost.a post/drivers/libpostdrivers.a
215ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
216ad5bb451SWolfgang Denk	"post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
217ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
218ad5bb451SWolfgang Denk	"post/cpu/$(CPU)/libpost$(CPU).a"; fi)
219ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
220ad5bb451SWolfgang Denk	"post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
2217ebf7443SwdenkLIBS += common/libcommon.a
222038ccac5SBartlomiej SiekaLIBS += $(BOARDLIBS)
223f9328639SMarian Balakowicz
224f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS))
2259fd5e31fSwdenk.PHONY : $(LIBS)
226a8c7c708Swdenk
2274f7cb08eSwdenk# Add GCC lib
2281a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
2293d3befa7Swdenk
230a8c7c708Swdenk# The "tools" are needed early, so put this first
231a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
232a8c7c708SwdenkSUBDIRS	= tools \
233ad5bb451SWolfgang Denk	  examples
234ad5bb451SWolfgang Denk
235b028f715Swdenk.PHONY : $(SUBDIRS)
236a8c7c708Swdenk
237887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y)
238887e2ec9SStefan RoeseNAND_SPL = nand_spl
239887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin
240887e2ec9SStefan Roeseendif
241887e2ec9SStefan Roese
242f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS))
243f9328639SMarian Balakowicz__LIBS := $(subst $(obj),,$(LIBS))
244f9328639SMarian Balakowicz
2457ebf7443Swdenk#########################################################################
246bdccc4feSwdenk#########################################################################
2477ebf7443Swdenk
248887e2ec9SStefan RoeseALL = $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
2497ebf7443Swdenk
250bdccc4feSwdenkall:		$(ALL)
2517ebf7443Swdenk
252f9328639SMarian Balakowicz$(obj)u-boot.hex:	$(obj)u-boot
2536310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
2546310eb9dSwdenk
255f9328639SMarian Balakowicz$(obj)u-boot.srec:	$(obj)u-boot
2567ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
2577ebf7443Swdenk
258f9328639SMarian Balakowicz$(obj)u-boot.bin:	$(obj)u-boot
2597ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
2607ebf7443Swdenk
261f9328639SMarian Balakowicz$(obj)u-boot.img:	$(obj)u-boot.bin
262bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
263bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
264881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
265bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
266bdccc4feSwdenk		-d $< $@
267bdccc4feSwdenk
268f9328639SMarian Balakowicz$(obj)u-boot.dis:	$(obj)u-boot
2697ebf7443Swdenk		$(OBJDUMP) -d $< > $@
2707ebf7443Swdenk
271f9328639SMarian Balakowicz$(obj)u-boot:		depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
2728bde7f77Swdenk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
273f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
274f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
275b2184c31Swdenk			-Map u-boot.map -o u-boot
2767ebf7443Swdenk
277f9328639SMarian Balakowicz$(OBJS):
278f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
279f9328639SMarian Balakowicz
280a8c7c708Swdenk$(LIBS):
281f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
282a8c7c708Swdenk
283a8c7c708Swdenk$(SUBDIRS):
284b028f715Swdenk		$(MAKE) -C $@ all
2857ebf7443Swdenk
286887e2ec9SStefan Roese$(NAND_SPL):	version
2878318fbf8SMarian Balakowicz		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
288887e2ec9SStefan Roese
289887e2ec9SStefan Roese$(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin
2908318fbf8SMarian Balakowicz		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
291887e2ec9SStefan Roese
292881a87ecSWolfgang Denkversion:
293881a87ecSWolfgang Denk		@echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
294881a87ecSWolfgang Denk		echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
295881a87ecSWolfgang Denk		echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
296881a87ecSWolfgang Denk			 $(TOPDIR)) >> $(VERSION_FILE); \
297881a87ecSWolfgang Denk		echo "\"" >> $(VERSION_FILE)
298881a87ecSWolfgang Denk
2998f713fdfSdzugdbtools:
300f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
301f9328639SMarian Balakowicz
302f9328639SMarian Balakowiczupdater:
303f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
304f9328639SMarian Balakowicz
305f9328639SMarian Balakowiczenv:
306f9328639SMarian Balakowicz		$(MAKE) -C tools/env all || exit 1
3078f713fdfSdzu
3087ebf7443Swdenkdepend dep:
309f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
3107ebf7443Swdenk
311f9328639SMarian Balakowicztags ctags:
312f9328639SMarian Balakowicz		ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) include \
313bda6c8aeSwdenk				lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
314bda6c8aeSwdenk				fs/cramfs fs/fat fs/fdos fs/jffs2 \
315bda6c8aeSwdenk				net disk rtc dtt drivers drivers/sk98lin common \
3167ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
3177ebf7443Swdenk
3187ebf7443Swdenketags:
319f9328639SMarian Balakowicz		etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) include \
320eedcd078Swdenk				lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
321eedcd078Swdenk				fs/cramfs fs/fat fs/fdos fs/jffs2 \
322eedcd078Swdenk				net disk rtc dtt drivers drivers/sk98lin common \
3237ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
3247ebf7443Swdenk
325f9328639SMarian Balakowicz$(obj)System.map:	$(obj)u-boot
3267ebf7443Swdenk		@$(NM) $< | \
3277ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
328f9328639SMarian Balakowicz		sort > $(obj)System.map
3297ebf7443Swdenk
3307ebf7443Swdenk#########################################################################
3317ebf7443Swdenkelse
332f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
333f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
334f9328639SMarian Balakowicz$(SUBDIRS) version gdbtools updater env depend \
335f9328639SMarian Balakowiczdep tags ctags etags $(obj)System.map:
3367ebf7443Swdenk	@echo "System not configured - see README" >&2
3377ebf7443Swdenk	@ exit 1
3387ebf7443Swdenkendif
3397ebf7443Swdenk
3404e53a258SWolfgang Denk.PHONY : CHANGELOG
3414e53a258SWolfgang DenkCHANGELOG:
342b985b5d6SBen Warren	git log --no-merges U-Boot-1_1_5.. | \
343b985b5d6SBen Warren	unexpand -a | sed -e 's/\s\s*$$//' > $@
3444e53a258SWolfgang Denk
3457ebf7443Swdenk#########################################################################
3467ebf7443Swdenk
3477ebf7443Swdenkunconfig:
348887e2ec9SStefan Roese	@rm -f $(obj)include/config.h $(obj)include/config.mk \
349887e2ec9SStefan Roese		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp
3507ebf7443Swdenk
3517ebf7443Swdenk#========================================================================
3527ebf7443Swdenk# PowerPC
3537ebf7443Swdenk#========================================================================
3540db5bca8Swdenk
3550db5bca8Swdenk#########################################################################
3560db5bca8Swdenk## MPC5xx Systems
3570db5bca8Swdenk#########################################################################
3580db5bca8Swdenk
3595e5f9ed2Swdenkcanmb_config:	unconfig
360f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
3615e5f9ed2Swdenk
3620db5bca8Swdenkcmi_mpc5xx_config:	unconfig
363f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
3640db5bca8Swdenk
365b6e4c403SwdenkPATI_config:		unconfig
366f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
367b6e4c403Swdenk
3687ebf7443Swdenk#########################################################################
369945af8d7Swdenk## MPC5xxx Systems
370945af8d7Swdenk#########################################################################
371a87589daSwdenk
372dafba16eSWolfgang Denkaev_config: unconfig
373f9328639SMarian Balakowicz	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
374dafba16eSWolfgang Denk
3756ca24c64Sdzu@denx.deBC3450_config:	unconfig
376f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
3776ca24c64Sdzu@denx.de
3785e4b3361SStefan Roesecpci5200_config:  unconfig
379f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
3805e4b3361SStefan Roese
381a87589daSwdenkhmi1001_config:         unconfig
382f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
383a87589daSwdenk
384e35745bbSwdenkLite5200_config				\
385e35745bbSwdenkLite5200_LOWBOOT_config			\
386e35745bbSwdenkLite5200_LOWBOOT08_config		\
387e35745bbSwdenkicecube_5200_config			\
388e35745bbSwdenkicecube_5200_LOWBOOT_config		\
389e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
390b2001f27Swdenkicecube_5200_DDR_config			\
39179d696fcSwdenkicecube_5200_DDR_LOWBOOT_config		\
39279d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
393e35745bbSwdenkicecube_5100_config:			unconfig
394f9328639SMarian Balakowicz	@mkdir -p $(obj)include
395f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
396f9328639SMarian Balakowicz	@ >$(obj)include/config.h
39717d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
39817d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
399f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
400f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
40117d704ebSwdenk		  fi ; \
4025cf9da48Swdenk		  echo "... with LOWBOOT configuration" ; \
4035cf9da48Swdenk		}
4045cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
405f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
4065cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
40717d704ebSwdenk		  echo "... with LOWBOOT configuration" ; \
4085cf9da48Swdenk		}
409b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
410f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
411b2001f27Swdenk		  echo "... DDR memory revision" ; \
412b2001f27Swdenk		}
413d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
414f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
415d4ca31c4Swdenk		  echo "... with MPC5200 processor" ; \
416d4ca31c4Swdenk		}
417a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
418f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
419945af8d7Swdenk		  echo "... with MGT5100 processor" ; \
420945af8d7Swdenk		}
421f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
422945af8d7Swdenk
4232605e90bSHeiko Schocherjupiter_config:         unconfig
4242605e90bSHeiko Schocher	@$(MKCONFIG) jupiter ppc mpc5xxx jupiter
4252605e90bSHeiko Schocher
4264707fb50SBartlomiej Siekav38b_config: unconfig
42782d9c9ecSBartlomiej Sieka	@./mkconfig -a v38b ppc mpc5xxx v38b
4284707fb50SBartlomiej Sieka
429138ff60cSwdenkinka4x0_config:	unconfig
430f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
431138ff60cSwdenk
43209e4b0c5SWolfgang Denklite5200b_config	\
43309e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
434f9328639SMarian Balakowicz	@mkdir -p $(obj)include
435f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
436f9328639SMarian Balakowicz	@ >$(obj)include/config.h
437f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
43809e4b0c5SWolfgang Denk	@ echo "... DDR memory revision"
439f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
440f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
44109e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
442f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
44309e4b0c5SWolfgang Denk		  echo "... with LOWBOOT configuration" ; \
44409e4b0c5SWolfgang Denk		}
44509e4b0c5SWolfgang Denk	@ echo "... with MPC5200B processor"
446f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
44709e4b0c5SWolfgang Denk
448f1ee9825SStefan Roesemcc200_config	\
449ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
450ed1cf845SWolfgang Denkmcc200_highboot_config	\
451ed1cf845SWolfgang Denkmcc200_COM12_config	\
452ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
453113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
454113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
455ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
456ed1cf845SWolfgang Denkprs200_config	\
457ed1cf845SWolfgang Denkprs200_DDR_config	\
458ed1cf845SWolfgang Denkprs200_highboot_config	\
459ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
460f9328639SMarian Balakowicz	@mkdir -p $(obj)include
461f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
462f9328639SMarian Balakowicz	@ >$(obj)include/config.h
4634819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
4644819fad9SWolfgang Denk		{ echo "... with lowboot configuration" ; \
465f1ee9825SStefan Roese		}
4664819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
467f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
4684819fad9SWolfgang Denk		  echo "... with highboot configuration" ; \
4694819fad9SWolfgang Denk		}
4704819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
471ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
472ed1cf845SWolfgang Denk		  then \
473ed1cf845SWolfgang Denk			echo "... with DDR" ; \
474ed1cf845SWolfgang Denk		  else \
475ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
476ed1cf845SWolfgang Denk			then \
477ed1cf845SWolfgang Denk				echo "... with DDR" ; \
478ed1cf845SWolfgang Denk			else \
479f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
480ed1cf845SWolfgang Denk				echo "... with SDRAM" ; \
481ed1cf845SWolfgang Denk			fi; \
482ed1cf845SWolfgang Denk		  fi; \
4834819fad9SWolfgang Denk		}
4844819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
485f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
4864819fad9SWolfgang Denk		  echo "... with SDRAM" ; \
4874819fad9SWolfgang Denk		}
488463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
489f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
490463764c8SWolfgang Denk		  echo "... with console on COM12" ; \
491463764c8SWolfgang Denk		}
492ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
493f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"  >>$(obj)include/config.h ;\
494ed1cf845SWolfgang Denk		}
495f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
49686ea5f93SWolfgang Denk
4978b7d1f0aSStefan Roesemecp5200_config:  unconfig
4988b7d1f0aSStefan Roese	@$(MKCONFIG) -a mecp5200  ppc mpc5xxx mecp5200 esd
4998b7d1f0aSStefan Roese
500df04a3dfSWolfgang Denko2dnt_config:
501f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
502df04a3dfSWolfgang Denk
5035e4b3361SStefan Roesepf5200_config:  unconfig
504f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
5055e4b3361SStefan Roese
50689394047SwdenkPM520_config \
50789394047SwdenkPM520_DDR_config \
50889394047SwdenkPM520_ROMBOOT_config \
50989394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
510f9328639SMarian Balakowicz	@mkdir -p $(obj)include
511f9328639SMarian Balakowicz	@ >$(obj)include/config.h
51289394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
513f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
51489394047Swdenk		  echo "... DDR memory revision" ; \
51589394047Swdenk		}
51689394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
517f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
51889394047Swdenk		  echo "... booting from 8-bit flash" ; \
51989394047Swdenk		}
520f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
52189394047Swdenk
5226624b687SWolfgang Denksmmaco4_config: unconfig
523f9328639SMarian Balakowicz	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
5249cdc8386SWolfgang Denk
5259cdc8386SWolfgang Denkspieval_config:	unconfig
526f9328639SMarian Balakowicz	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
5279cdc8386SWolfgang Denk
52845a212c4SWolfgang DenkTB5200_B_config \
529b87dfd28SWolfgang DenkTB5200_config:	unconfig
530f9328639SMarian Balakowicz	@mkdir -p $(obj)include
53145a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
532f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
53345a212c4SWolfgang Denk		  echo "... with MPC5200B processor" ; \
53445a212c4SWolfgang Denk		}
535f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
536b87dfd28SWolfgang Denk
537d4ca31c4SwdenkMINI5200_config	\
538d4ca31c4SwdenkEVAL5200_config	\
539d4ca31c4SwdenkTOP5200_config:	unconfig
540f9328639SMarian Balakowicz	@mkdir -p $(obj)include
541f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
542f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
543d4ca31c4Swdenk
5446c7a1408SwdenkTotal5100_config		\
5456c7a1408SwdenkTotal5200_config		\
5466c7a1408SwdenkTotal5200_lowboot_config	\
5476c7a1408SwdenkTotal5200_Rev2_config		\
5486c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
549f9328639SMarian Balakowicz	@mkdir -p $(obj)include
550f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
551f9328639SMarian Balakowicz	@ >$(obj)include/config.h
5526c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
553f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
5546c7a1408Swdenk		  echo "... with MGT5100 processor" ; \
5556c7a1408Swdenk		}
5566c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
557f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
5586c7a1408Swdenk		  echo "... with MPC5200 processor" ; \
5596c7a1408Swdenk		}
5606c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
561f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
5626c7a1408Swdenk		  echo "... revision 1 board" ; \
5636c7a1408Swdenk		}
5646c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
565f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
5666c7a1408Swdenk		  echo "... revision 2 board" ; \
5676c7a1408Swdenk		}
5686c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
569f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
5706c7a1408Swdenk		  echo "... with lowboot configuration" ; \
5716c7a1408Swdenk		}
572f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
5736c7a1408Swdenk
5745196a7a0SWolfgang Denkcam5200_config \
575d9384de2SMarian Balakowiczcam5200_niosflash_config \
5765196a7a0SWolfgang Denkfo300_config \
5775196a7a0SWolfgang DenkMiniFAP_config \
5785078cce8SWolfgang DenkTQM5200S_config \
5795078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
5805196a7a0SWolfgang DenkTQM5200_B_config \
5815196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
5825196a7a0SWolfgang DenkTQM5200_config	\
5835196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
584f9328639SMarian Balakowicz	@mkdir -p $(obj)include
585f9328639SMarian Balakowicz	@mkdir -p $(obj)board/tqm5200
586f9328639SMarian Balakowicz	@ >$(obj)include/config.h
587135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
588f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
589f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
590f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
591135ae006SWolfgang Denk		  echo "... TQM5200S on Cam5200" ; \
5925078cce8SWolfgang Denk		}
593d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
594d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
595d9384de2SMarian Balakowicz		  echo "... with NIOS flash driver" ; \
596d9384de2SMarian Balakowicz		}
5976d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
598f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
5996d3bc9b8SMarian Balakowicz		  echo "... TQM5200 on FO300" ; \
6006d3bc9b8SMarian Balakowicz		}
601cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
602f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
60345a212c4SWolfgang Denk		  echo "... TQM5200_AC on MiniFAP" ; \
604978b1096SWolfgang Denk		}
605cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
606f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
607cd65a3dcSWolfgang Denk		  echo "... on a STK52XX.100 base board" ; \
60856523f12Swdenk		}
6095078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
610f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
6115078cce8SWolfgang Denk		}
6125078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
613f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
614f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
61545a212c4SWolfgang Denk		}
616978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
617f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
618978b1096SWolfgang Denk		}
619f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
6206dedf3d4SHeiko Schocheruc101_config:         unconfig
6216dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
62253d4a498SBartlomiej Siekamotionpro_config:         unconfig
62353d4a498SBartlomiej Sieka	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
62453d4a498SBartlomiej Sieka
62556523f12Swdenk
626945af8d7Swdenk#########################################################################
6277ebf7443Swdenk## MPC8xx Systems
6287ebf7443Swdenk#########################################################################
6297ebf7443Swdenk
6302d24a3a7SwdenkAdder_config    \
6312d24a3a7SwdenkAdder87x_config \
63226238132SwdenkAdderII_config  \
6332d24a3a7Swdenk	:		unconfig
634f9328639SMarian Balakowicz	@mkdir -p $(obj)include
63526238132Swdenk	$(if $(findstring AdderII,$@), \
636f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
637f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
6382d24a3a7Swdenk
639180d3f74SwdenkADS860_config     \
640180d3f74SwdenkFADS823_config    \
641180d3f74SwdenkFADS850SAR_config \
642180d3f74SwdenkMPC86xADS_config  \
6431114257cSwdenkMPC885ADS_config  \
644180d3f74SwdenkFADS860T_config:	unconfig
645f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
6467ebf7443Swdenk
6477ebf7443SwdenkAMX860_config	:	unconfig
648f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
6497ebf7443Swdenk
6507ebf7443Swdenkc2mon_config:		unconfig
651f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
6527ebf7443Swdenk
6537ebf7443SwdenkCCM_config:		unconfig
654f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
6557ebf7443Swdenk
6567ebf7443Swdenkcogent_mpc8xx_config:	unconfig
657f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
6587ebf7443Swdenk
6593bac3513SwdenkELPT860_config:		unconfig
660f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
6613bac3513Swdenk
66284c960ceSWolfgang DenkEP88x_config:		unconfig
663f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
66484c960ceSWolfgang Denk
6657ebf7443SwdenkESTEEM192E_config:	unconfig
666f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
6677ebf7443Swdenk
6687ebf7443SwdenkETX094_config	:	unconfig
669f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
6707ebf7443Swdenk
6717ebf7443SwdenkFLAGADM_config:	unconfig
672f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
6737ebf7443Swdenk
6747aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
6757aa78614Swdenk
6767aa78614SwdenkGEN860T_SC_config	\
6777ebf7443SwdenkGEN860T_config: unconfig
678f9328639SMarian Balakowicz	@mkdir -p $(obj)include
679f9328639SMarian Balakowicz	@ >$(obj)include/config.h
6807aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
681f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
6827aa78614Swdenk		  echo "With reduced H/W feature set (SC)..." ; \
6837aa78614Swdenk		}
684f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
6857ebf7443Swdenk
6867ebf7443SwdenkGENIETV_config:	unconfig
687f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
6887ebf7443Swdenk
6897ebf7443SwdenkGTH_config:	unconfig
690f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
6917ebf7443Swdenk
6927ebf7443Swdenkhermes_config	:	unconfig
693f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
6947ebf7443Swdenk
695c40b2956SwdenkHMI10_config	:	unconfig
696f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
697c40b2956Swdenk
6987ebf7443SwdenkIAD210_config: unconfig
699f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
7007ebf7443Swdenk
7017ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
7027ebf7443Swdenk
7037ebf7443SwdenkICU862_100MHz_config	\
7047ebf7443SwdenkICU862_config: unconfig
705f9328639SMarian Balakowicz	@mkdir -p $(obj)include
706f9328639SMarian Balakowicz	@ >$(obj)include/config.h
7077ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
708f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
7097ebf7443Swdenk		  echo "... with 100MHz system clock" ; \
7107ebf7443Swdenk		}
711f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
7127ebf7443Swdenk
7137ebf7443SwdenkIP860_config	:	unconfig
714f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
7157ebf7443Swdenk
7167ebf7443SwdenkIVML24_256_config \
7177ebf7443SwdenkIVML24_128_config \
7187ebf7443SwdenkIVML24_config:	unconfig
719f9328639SMarian Balakowicz	@mkdir -p $(obj)include
720f9328639SMarian Balakowicz	@ >$(obj)include/config.h
7217ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
722f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
7237ebf7443Swdenk		 }
7247ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
725f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
7267ebf7443Swdenk		 }
7277ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
728f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
7297ebf7443Swdenk		 }
730f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
7317ebf7443Swdenk
7327ebf7443SwdenkIVMS8_256_config \
7337ebf7443SwdenkIVMS8_128_config \
7347ebf7443SwdenkIVMS8_config:	unconfig
735f9328639SMarian Balakowicz	@mkdir -p $(obj)include
736f9328639SMarian Balakowicz	@ >$(obj)include/config.h
7377ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
738f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
7397ebf7443Swdenk		 }
7407ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
741f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
7427ebf7443Swdenk		 }
7437ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
744f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
7457ebf7443Swdenk		 }
746f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
7477ebf7443Swdenk
74856f94be3SwdenkKUP4K_config	:	unconfig
749f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
7500608e04dSwdenk
7510608e04dSwdenkKUP4X_config    :       unconfig
752f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
75356f94be3Swdenk
7547ebf7443SwdenkLANTEC_config	:	unconfig
755f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
7567ebf7443Swdenk
7577ebf7443Swdenklwmon_config:		unconfig
758f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
7597ebf7443Swdenk
7607ebf7443SwdenkMBX_config	\
7617ebf7443SwdenkMBX860T_config:	unconfig
762f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
7637ebf7443Swdenk
7647ebf7443SwdenkMHPC_config:		unconfig
765f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
7667ebf7443Swdenk
7677ebf7443SwdenkMVS1_config :		unconfig
768f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
7697ebf7443Swdenk
770993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
771993cad93Swdenk
772993cad93SwdenkNETVIA_V2_config \
7737ebf7443SwdenkNETVIA_config:		unconfig
774f9328639SMarian Balakowicz	@mkdir -p $(obj)include
775f9328639SMarian Balakowicz	@ >$(obj)include/config.h
776993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
777f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
778993cad93Swdenk		  echo "... Version 1" ; \
779993cad93Swdenk		 }
780993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
781f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
782993cad93Swdenk		  echo "... Version 2" ; \
783993cad93Swdenk		 }
784f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
7857ebf7443Swdenk
786c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
787c26e454dSwdenk
788c26e454dSwdenkNETPHONE_V2_config \
78904a85b3bSwdenkNETPHONE_config:	unconfig
790f9328639SMarian Balakowicz	@mkdir -p $(obj)include
791f9328639SMarian Balakowicz	@ >$(obj)include/config.h
792c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
793f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
794c26e454dSwdenk		 }
795c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
796f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
797c26e454dSwdenk		 }
798f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
79904a85b3bSwdenk
80079fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
80104a85b3bSwdenk
80279fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
80379fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
80479fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
80579fa88f3SwdenkNETTA_SWAPHOOK_config \
80679fa88f3SwdenkNETTA_ISDN_6412_config \
80704a85b3bSwdenkNETTA_ISDN_config \
80879fa88f3SwdenkNETTA_6412_config \
80904a85b3bSwdenkNETTA_config:		unconfig
810f9328639SMarian Balakowicz	@mkdir -p $(obj)include
811f9328639SMarian Balakowicz	@ >$(obj)include/config.h
81279fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
813f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
81404a85b3bSwdenk		 }
81579fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
816f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
81779fa88f3Swdenk		 }
81879fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
819f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
82079fa88f3Swdenk		 }
82179fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
822f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
82379fa88f3Swdenk		 }
82479fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
825f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
82679fa88f3Swdenk		 }
82779fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
828f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
82979fa88f3Swdenk		 }
830f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
83104a85b3bSwdenk
83279fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
83379fa88f3Swdenk
83479fa88f3SwdenkNETTA2_V2_config \
83579fa88f3SwdenkNETTA2_config:		unconfig
836f9328639SMarian Balakowicz	@mkdir -p $(obj)include
837f9328639SMarian Balakowicz	@ >$(obj)include/config.h
83879fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
839f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
84079fa88f3Swdenk		 }
84179fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
842f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
84379fa88f3Swdenk		 }
844f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
84579fa88f3Swdenk
846a367d426Sdzu@denx.deNC650_Rev1_config \
847a367d426Sdzu@denx.deNC650_Rev2_config \
848a367d426Sdzu@denx.deCP850_config:	unconfig
849f9328639SMarian Balakowicz	@mkdir -p $(obj)include
850f9328639SMarian Balakowicz	@ >$(obj)include/config.h
851a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
852f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
853f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
854a367d426Sdzu@denx.de		 }
855a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
856f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
857a367d426Sdzu@denx.de		 }
858a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
859f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
860a367d426Sdzu@denx.de		 }
861f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
8627ca202f5Swdenk
8637ebf7443SwdenkNX823_config:		unconfig
864f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
8657ebf7443Swdenk
8667ebf7443Swdenkpcu_e_config:		unconfig
867f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
8687ebf7443Swdenk
8693bbc899fSwdenkQS850_config:	unconfig
870f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
8713bbc899fSwdenk
8723bbc899fSwdenkQS823_config:	unconfig
873f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
8743bbc899fSwdenk
8753bbc899fSwdenkQS860T_config:	unconfig
876f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
8773bbc899fSwdenk
878da93ed81Swdenkquantum_config:	unconfig
879f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
880da93ed81Swdenk
8817ebf7443SwdenkR360MPI_config:	unconfig
882f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
8837ebf7443Swdenk
884682011ffSwdenkRBC823_config:	unconfig
885f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
886682011ffSwdenk
8877ebf7443SwdenkRPXClassic_config:	unconfig
888f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
8897ebf7443Swdenk
8907ebf7443SwdenkRPXlite_config:		unconfig
891f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
8927ebf7443Swdenk
893e63c8ee3SwdenkRPXlite_DW_64_config		\
894e63c8ee3SwdenkRPXlite_DW_LCD_config		\
895e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
896e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
897e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config      \
898e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
899e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config  \
900e63c8ee3SwdenkRPXlite_DW_config:         unconfig
901f9328639SMarian Balakowicz	@mkdir -p $(obj)include
902f9328639SMarian Balakowicz	@ >$(obj)include/config.h
903e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
904f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
905e63c8ee3Swdenk		  echo "... with 64MHz system clock ..."; \
906e63c8ee3Swdenk		}
907e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
908f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
909f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
910e63c8ee3Swdenk		  echo "... with LCD display ..."; \
911e63c8ee3Swdenk		}
912e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
913f9328639SMarian Balakowicz		{ echo "#define  CFG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
914e63c8ee3Swdenk		  echo "... with ENV in NVRAM ..."; \
915e63c8ee3Swdenk		}
916f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
917e63c8ee3Swdenk
91873a8b27cSwdenkrmu_config:	unconfig
919f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
92073a8b27cSwdenk
9217ebf7443SwdenkRRvision_config:	unconfig
922f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
9237ebf7443Swdenk
9247ebf7443SwdenkRRvision_LCD_config:	unconfig
925f9328639SMarian Balakowicz	@mkdir -p $(obj)include
926f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
927f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
928f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
9297ebf7443Swdenk
9307ebf7443SwdenkSM850_config	:	unconfig
931f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
9327ebf7443Swdenk
933b02d0177SMarkus Klotzbuecherspc1920_config:
934f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
935b02d0177SMarkus Klotzbuecher
9367ebf7443SwdenkSPD823TS_config:	unconfig
937f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
9387ebf7443Swdenk
9396bdf4306SWolfgang Denkstxxtc_config:	unconfig
940f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
9416bdf4306SWolfgang Denk
942dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
943f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
944dc7c9a1aSwdenk
9457ebf7443SwdenkSXNI855T_config:	unconfig
946f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
9477ebf7443Swdenk
948db2f721fSwdenk# EMK MPC8xx based modules
949db2f721fSwdenkTOP860_config:		unconfig
950f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
951db2f721fSwdenk
9527ebf7443Swdenk# Play some tricks for configuration selection
953e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
954e9132ea9Swdenk# and only 823 boards may have LCD support
955e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
9567ebf7443Swdenk
9577ebf7443SwdenkFPS850L_config		\
958384ae025SwdenkFPS860L_config		\
959f12e568cSwdenkNSCU_config		\
9607ebf7443SwdenkTQM823L_config		\
9617ebf7443SwdenkTQM823L_LCD_config	\
9627ebf7443SwdenkTQM850L_config		\
9637ebf7443SwdenkTQM855L_config		\
9647ebf7443SwdenkTQM860L_config		\
965d126bfbdSwdenkTQM862L_config		\
966ae3af05eSwdenkTQM823M_config		\
967ae3af05eSwdenkTQM850M_config		\
968f12e568cSwdenkTQM855M_config		\
969f12e568cSwdenkTQM860M_config		\
970f12e568cSwdenkTQM862M_config		\
9718cba090cSWolfgang DenkTQM866M_config		\
972090eb735SMarkus KlotzbuecherTQM885D_config		\
9738cba090cSWolfgang Denkvirtlab2_config:	unconfig
974f9328639SMarian Balakowicz	@mkdir -p $(obj)include
975f9328639SMarian Balakowicz	@ >$(obj)include/config.h
9767ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
977f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
978f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
9797ebf7443Swdenk		  echo "... with LCD display" ; \
9807ebf7443Swdenk		}
981f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
9827ebf7443Swdenk
9837ebf7443SwdenkTTTech_config:	unconfig
984f9328639SMarian Balakowicz	@mkdir -p $(obj)include
985f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
986f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
987f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
9887ebf7443Swdenk
989ec0aee7bSwdenkuc100_config	:	unconfig
990f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
991f7d1572bSwdenk
992608c9146Swdenkv37_config:	unconfig
993f9328639SMarian Balakowicz	@mkdir -p $(obj)include
994f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
995f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
996f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
997608c9146Swdenk
99891e940d9Sdzuwtk_config:	unconfig
999f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1000f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1001f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1002f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
100391e940d9Sdzu
10047ebf7443Swdenk#########################################################################
10057ebf7443Swdenk## PPC4xx Systems
10067ebf7443Swdenk#########################################################################
1007e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
10087ebf7443Swdenk
100916c0cc1cSStefan Roeseacadia_config:	unconfig
101016c0cc1cSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
101116c0cc1cSStefan Roese
10127ebf7443SwdenkADCIOP_config:	unconfig
1013f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
10147ebf7443Swdenk
1015899620c2SStefan Roesealpr_config:	unconfig
1016899620c2SStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx alpr prodrive
1017899620c2SStefan Roese
10187521af1cSWolfgang DenkAP1000_config:unconfig
1019f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
10207521af1cSWolfgang Denk
1021c419d1d6SstroeseAPC405_config:	unconfig
1022f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1023c419d1d6Sstroese
10247ebf7443SwdenkAR405_config:	unconfig
1025f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
10267ebf7443Swdenk
1027549826eaSstroeseASH405_config:	unconfig
1028f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1029549826eaSstroese
10308a316c9bSStefan Roesebamboo_config:	unconfig
1031f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
10328a316c9bSStefan Roese
10338a316c9bSStefan Roesebubinga_config:	unconfig
1034f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1035549826eaSstroese
10367ebf7443SwdenkCANBT_config:	unconfig
1037f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
10387ebf7443Swdenk
10391d6f9720SwdenkCATcenter_config	\
10401d6f9720SwdenkCATcenter_25_config	\
10411d6f9720SwdenkCATcenter_33_config:	unconfig
1042f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1043f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1044f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
10451d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1046f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
10471d6f9720Swdenk		  echo "SysClk = 25MHz" ; \
10481d6f9720Swdenk		}
10491d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1050f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
10511d6f9720Swdenk		  echo "SysClk = 33MHz" ; \
10521d6f9720Swdenk		}
1053f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
105410767ccbSwdenk
10557644f16fSStefan RoeseCPCI2DP_config:	unconfig
1056f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
10577644f16fSStefan Roese
10587ebf7443SwdenkCPCI405_config	\
1059549826eaSstroeseCPCI4052_config	\
1060c419d1d6SstroeseCPCI405DT_config	\
1061549826eaSstroeseCPCI405AB_config:	unconfig
1062f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1063f9328639SMarian Balakowicz	@echo "BOARD_REVISION = $(@:_config=)"	>> $(obj)include/config.mk
10647ebf7443Swdenk
10657ebf7443SwdenkCPCI440_config:	unconfig
1066f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
10677ebf7443Swdenk
10687ebf7443SwdenkCPCIISER4_config:	unconfig
1069f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
10707ebf7443Swdenk
10717ebf7443SwdenkCRAYL1_config:	unconfig
1072f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
10737ebf7443Swdenk
1074cd0a9de6Swdenkcsb272_config:	unconfig
1075f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1076cd0a9de6Swdenk
1077aa245090Swdenkcsb472_config:	unconfig
1078f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1079aa245090Swdenk
10807ebf7443SwdenkDASA_SIM_config: unconfig
1081f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
10827ebf7443Swdenk
108372cd5aa7SstroeseDP405_config:	unconfig
1084f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
108572cd5aa7Sstroese
10867ebf7443SwdenkDU405_config:	unconfig
1087f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
10887ebf7443Swdenk
10898a316c9bSStefan Roeseebony_config:	unconfig
1090f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
10917ebf7443Swdenk
10927ebf7443SwdenkERIC_config:	unconfig
1093f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
10947ebf7443Swdenk
1095d1cbe85bSwdenkEXBITGEN_config:	unconfig
1096f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1097d1cbe85bSwdenk
1098c419d1d6SstroeseG2000_config:	unconfig
1099f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1100c419d1d6Sstroese
1101c419d1d6SstroeseHH405_config:	unconfig
1102f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1103c419d1d6Sstroese
110472cd5aa7SstroeseHUB405_config:	unconfig
1105f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
110672cd5aa7Sstroese
1107db01a2eaSwdenkJSE_config:	unconfig
1108f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1109db01a2eaSwdenk
1110b79316f2SStefan RoeseKAREF_config: unconfig
1111f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1112b79316f2SStefan Roese
11134745acaaSStefan Roesekatmai_config:	unconfig
11144745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
11154745acaaSStefan Roese
11166e7fb6eaSStefan Roeseluan_config:	unconfig
1117f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
11186e7fb6eaSStefan Roese
1119b79316f2SStefan RoeseMETROBOX_config: unconfig
1120f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1121b79316f2SStefan Roese
11227ebf7443SwdenkMIP405_config:	unconfig
1123f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
11247ebf7443Swdenk
1125f3e0de60SwdenkMIP405T_config:	unconfig
1126f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1127f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1128f3e0de60Swdenk	@echo "Enable subset config for MIP405T"
1129f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1130f3e0de60Swdenk
11317ebf7443SwdenkML2_config:	unconfig
1132f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
11337ebf7443Swdenk
1134028ab6b5Swdenkml300_config:	unconfig
1135f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1136028ab6b5Swdenk
11378a316c9bSStefan Roeseocotea_config:	unconfig
1138f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
11390e6d798cSwdenk
11407ebf7443SwdenkOCRTC_config		\
11417ebf7443SwdenkORSG_config:	unconfig
1142f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
11437ebf7443Swdenk
11445568e613SStefan Roesep3p440_config:	unconfig
1145f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
11465568e613SStefan Roese
11477ebf7443SwdenkPCI405_config:	unconfig
1148f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
11497ebf7443Swdenk
1150a4c8d138SStefan Roesepcs440ep_config:	unconfig
1151f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1152a4c8d138SStefan Roese
11537ebf7443SwdenkPIP405_config:	unconfig
1154f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
11557ebf7443Swdenk
115672cd5aa7SstroesePLU405_config:	unconfig
1157f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
115872cd5aa7Sstroese
1159549826eaSstroesePMC405_config:	unconfig
1160f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1161549826eaSstroese
1162281e00a3SwdenkPPChameleonEVB_config		\
1163e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1164e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1165e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1166e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1167e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1168e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1169f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1170f9328639SMarian Balakowicz	@ >$(obj)include/config.h
11711d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1172f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1173fbe4b5cbSwdenk		  echo "... BASIC model" ; \
1174fbe4b5cbSwdenk		}
11751d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1176f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1177fbe4b5cbSwdenk		  echo "... MEDIUM model" ; \
1178fbe4b5cbSwdenk		}
11791d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1180f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1181fbe4b5cbSwdenk		  echo "... HIGH-END model" ; \
1182fbe4b5cbSwdenk		}
1183e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1184f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1185e55ca7e2Swdenk		  echo "SysClk = 25MHz" ; \
1186e55ca7e2Swdenk		}
1187e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1188f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1189e55ca7e2Swdenk		  echo "SysClk = 33MHz" ; \
1190e55ca7e2Swdenk		}
1191f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
119212f34241Swdenk
1193430f1b0fSStefan Roesesbc405_config:	unconfig
1194430f1b0fSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1195430f1b0fSStefan Roese
1196430f1b0fSStefan Roesesequoia_config \
1197854bc8daSStefan Roeserainier_config: unconfig
11988318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1199430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1200430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
12012aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1202854bc8daSStefan Roese
1203430f1b0fSStefan Roesesequoia_nand_config \
1204854bc8daSStefan Roeserainier_nand_config: unconfig
12058318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
12068318fbf8SMarian Balakowicz	@mkdir -p $(obj)nand_spl
12078318fbf8SMarian Balakowicz	@mkdir -p $(obj)board/amcc/sequoia
12088318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1209430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1210430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1211430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
12128318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
12138318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1214652a10c0Swdenk
12156d3e0107SWolfgang Denksc3_config:unconfig
12166d3e0107SWolfgang Denk	@./mkconfig $(@:_config=) ppc ppc4xx sc3
1217ca43ba18SHeiko Schocher
12185fb692caSStefan Roesetaishan_config:	unconfig
12195fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
12205fb692caSStefan Roese
122172cd5aa7SstroeseVOH405_config:	unconfig
1222f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
122372cd5aa7Sstroese
1224c419d1d6SstroeseVOM405_config:	unconfig
1225f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1226c419d1d6Sstroese
1227feaedfcfSStefan RoeseCMS700_config:	unconfig
1228f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1229feaedfcfSStefan Roese
12307ebf7443SwdenkW7OLMC_config	\
12317ebf7443SwdenkW7OLMG_config: unconfig
1232f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
12337ebf7443Swdenk
1234430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR)
1235430f1b0fSStefan Roesewalnut_config \
1236430f1b0fSStefan Roesesycamore_config: unconfig
1237430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
12387ebf7443Swdenk
1239c419d1d6SstroeseWUH405_config:	unconfig
1240f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1241c419d1d6Sstroese
1242ba56f625SwdenkXPEDITE1K_config:	unconfig
1243f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1244ba56f625Swdenk
1245430f1b0fSStefan Roeseyosemite_config \
12468a316c9bSStefan Roeseyellowstone_config: unconfig
1247700200c6SStefan Roese	@mkdir -p $(obj)include
1248430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1249430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
12502aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
12518a316c9bSStefan Roese
12526c5879f3SMarian Balakowiczyucca_config:	unconfig
1253f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
12546c5879f3SMarian Balakowicz
12557ebf7443Swdenk#########################################################################
1256983fda83Swdenk## MPC8220 Systems
1257983fda83Swdenk#########################################################################
1258dc17fb6dSWolfgang Denk
1259dc17fb6dSWolfgang DenkAlaska8220_config	\
1260dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1261f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1262983fda83Swdenk
126312b43d51Swdenksorcery_config:		unconfig
1264f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
126512b43d51Swdenk
1266983fda83Swdenk#########################################################################
12677ebf7443Swdenk## MPC824x Systems
12687ebf7443Swdenk#########################################################################
1269efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
12703bac3513Swdenk
12710332990bSwdenkA3000_config: unconfig
1272f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
12730332990bSwdenk
12748e6f1a8eSWolfgang Denkbarco_config: unconfig
1275f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
12768e6f1a8eSWolfgang Denk
12777ebf7443SwdenkBMW_config: unconfig
1278f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
12797ebf7443Swdenk
12803bac3513SwdenkCPC45_config	\
12813bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1282f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1283f9328639SMarian Balakowicz	@cd $(obj)include ;				\
12843bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
12853bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
12863bac3513Swdenk		echo "... booting from 8-bit flash" ; \
12873bac3513Swdenk	else \
12883bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
12893bac3513Swdenk		echo "... booting from 64-bit flash" ; \
12903bac3513Swdenk	fi; \
12913bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
12923bac3513Swdenk
12937ebf7443SwdenkCU824_config: unconfig
1294f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
12957ebf7443Swdenk
12967abf0c58Swdenkdebris_config: unconfig
1297f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
12987abf0c58Swdenk
129980885a9dSwdenkeXalion_config: unconfig
1300f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
130180885a9dSwdenk
1302756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1303f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1304756f586aSwdenk
130553dd6ce4SWolfgang Denkkvme080_config: unconfig
1306f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
130753dd6ce4SWolfgang Denk
13087ebf7443SwdenkMOUSSE_config: unconfig
1309f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
13107ebf7443Swdenk
13117ebf7443SwdenkMUSENKI_config: unconfig
1312f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
13137ebf7443Swdenk
1314b4676a25SwdenkMVBLUE_config:	unconfig
1315f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1316b4676a25Swdenk
13177ebf7443SwdenkOXC_config: unconfig
1318f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
13197ebf7443Swdenk
13207ebf7443SwdenkPN62_config: unconfig
1321f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
13227ebf7443Swdenk
13237ebf7443SwdenkSandpoint8240_config: unconfig
1324f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
13257ebf7443Swdenk
13267ebf7443SwdenkSandpoint8245_config: unconfig
1327f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
13287ebf7443Swdenk
1329466b7410Swdenksbc8240_config: unconfig
1330f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1331466b7410Swdenk
1332d1cbe85bSwdenkSL8245_config: unconfig
1333f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1334d1cbe85bSwdenk
13357ebf7443Swdenkutx8245_config: unconfig
1336f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
13377ebf7443Swdenk
13387ebf7443Swdenk#########################################################################
13397ebf7443Swdenk## MPC8260 Systems
13407ebf7443Swdenk#########################################################################
13417ebf7443Swdenk
134254387ac9Swdenkatc_config:	unconfig
1343f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
134454387ac9Swdenk
13457ebf7443Swdenkcogent_mpc8260_config:	unconfig
1346f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
13477ebf7443Swdenk
13487ebf7443SwdenkCPU86_config	\
13497ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1350f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1351f9328639SMarian Balakowicz	@cd $(obj)include ;				\
13527ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
13537ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
13547ebf7443Swdenk		echo "... booting from 8-bit flash" ; \
13557ebf7443Swdenk	else \
13567ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
13577ebf7443Swdenk		echo "... booting from 64-bit flash" ; \
13587ebf7443Swdenk	fi; \
13597ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
13607ebf7443Swdenk
1361384cc687SwdenkCPU87_config	\
1362384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1363f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1364f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1365384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1366384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1367384cc687Swdenk		echo "... booting from 8-bit flash" ; \
1368384cc687Swdenk	else \
1369384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1370384cc687Swdenk		echo "... booting from 64-bit flash" ; \
1371384cc687Swdenk	fi; \
1372384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1373384cc687Swdenk
1374f901a83bSWolfgang Denkep8248_config	\
1375f901a83bSWolfgang Denkep8248E_config	:	unconfig
1376f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1377f901a83bSWolfgang Denk
13787ebf7443Swdenkep8260_config:	unconfig
1379f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
13807ebf7443Swdenk
13818d4ac794SWolfgang Denkep82xxm_config:	unconfig
13828d4ac794SWolfgang Denk	@./mkconfig $(@:_config=) ppc mpc8260 ep82xxm
13838d4ac794SWolfgang Denk
13847ebf7443Swdenkgw8260_config:	unconfig
1385f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
13867ebf7443Swdenk
13877ebf7443Swdenkhymod_config:	unconfig
1388f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
13897ebf7443Swdenk
13909dd41a7bSwdenkIDS8247_config:	unconfig
1391f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
13929dd41a7bSwdenk
13937ebf7443SwdenkIPHASE4539_config:	unconfig
1394f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
13957ebf7443Swdenk
1396c3c7f861SwdenkISPAN_config		\
1397c3c7f861SwdenkISPAN_REVB_config:	unconfig
1398f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1399c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
1400f9328639SMarian Balakowicz		echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1401c3c7f861Swdenk	fi
1402f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1403c3c7f861Swdenk
140404a85b3bSwdenkMPC8260ADS_config	\
1405901787d6SwdenkMPC8260ADS_lowboot_config	\
140604a85b3bSwdenkMPC8260ADS_33MHz_config	\
1407901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
140804a85b3bSwdenkMPC8260ADS_40MHz_config	\
1409901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
141004a85b3bSwdenkMPC8272ADS_config	\
1411901787d6SwdenkMPC8272ADS_lowboot_config	\
141204a85b3bSwdenkPQ2FADS_config		\
1413901787d6SwdenkPQ2FADS_lowboot_config		\
141404a85b3bSwdenkPQ2FADS-VR_config	\
1415901787d6SwdenkPQ2FADS-VR_lowboot_config	\
141604a85b3bSwdenkPQ2FADS-ZU_config	\
1417901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
141804a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1419901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
142004a85b3bSwdenk	:		unconfig
1421f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1422f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mpc8260ads
142304a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
1424f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1425f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
142604a85b3bSwdenk	$(if $(findstring MHz,$@), \
1427f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
142804a85b3bSwdenk	$(if $(findstring VR,$@), \
1429f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1430901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1431f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1432901787d6Swdenk		  echo "... with lowboot configuration" ; \
1433901787d6Swdenk		}
1434f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
14357ebf7443Swdenk
1436db2f721fSwdenkMPC8266ADS_config:	unconfig
1437f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1438db2f721fSwdenk
1439efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
144010f67017SwdenkPM825_config	\
1441efa329cbSwdenkPM825_ROMBOOT_config	\
1442efa329cbSwdenkPM825_BIGFLASH_config	\
1443efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
14447ebf7443SwdenkPM826_config	\
1445efa329cbSwdenkPM826_ROMBOOT_config	\
1446efa329cbSwdenkPM826_BIGFLASH_config	\
1447efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1448f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1449f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1450efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1451f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
14527ebf7443Swdenk	else \
1453f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1454efa329cbSwdenk	fi
1455efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1456efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
1457f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1458f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1459efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1460efa329cbSwdenk			echo "... with 32 MB Flash" ; \
1461f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
14627ebf7443Swdenk		fi; \
1463efa329cbSwdenk	else \
1464efa329cbSwdenk		echo "... booting from 64-bit flash" ; \
1465efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1466efa329cbSwdenk			echo "... with 32 MB Flash" ; \
1467f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1468f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1469efa329cbSwdenk		else \
1470f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1471efa329cbSwdenk		fi; \
1472efa329cbSwdenk	fi
1473f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1474efa329cbSwdenk
1475efa329cbSwdenkPM828_config	\
1476efa329cbSwdenkPM828_PCI_config	\
1477efa329cbSwdenkPM828_ROMBOOT_config	\
1478efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1479f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1480f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
148117076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1482f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1483efa329cbSwdenk		echo "... with PCI enabled" ; \
1484efa329cbSwdenk	else \
1485f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1486efa329cbSwdenk	fi
1487efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1488efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
1489f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1490f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1491efa329cbSwdenk	fi
1492f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
14937ebf7443Swdenk
14947ebf7443Swdenkppmc8260_config:	unconfig
1495f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
14967ebf7443Swdenk
14978b0bfc68SwdenkRattler8248_config	\
14988b0bfc68SwdenkRattler_config:		unconfig
1499f9328639SMarian Balakowicz	@mkdir -p $(obj)include
15008b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1501f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1502f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
15038b0bfc68Swdenk
15047ebf7443SwdenkRPXsuper_config:	unconfig
1505f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
15067ebf7443Swdenk
15077ebf7443Swdenkrsdproto_config:	unconfig
1508f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
15097ebf7443Swdenk
15107ebf7443Swdenksacsng_config:	unconfig
1511f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
15127ebf7443Swdenk
15137ebf7443Swdenksbc8260_config:	unconfig
1514f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
15157ebf7443Swdenk
15167ebf7443SwdenkSCM_config:		unconfig
1517f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
15187ebf7443Swdenk
151927b207fdSwdenkTQM8255_AA_config \
152027b207fdSwdenkTQM8260_AA_config \
152127b207fdSwdenkTQM8260_AB_config \
152227b207fdSwdenkTQM8260_AC_config \
152327b207fdSwdenkTQM8260_AD_config \
152427b207fdSwdenkTQM8260_AE_config \
152527b207fdSwdenkTQM8260_AF_config \
152627b207fdSwdenkTQM8260_AG_config \
152727b207fdSwdenkTQM8260_AH_config \
15281f62bc2dSWolfgang DenkTQM8260_AI_config \
152927b207fdSwdenkTQM8265_AA_config:  unconfig
1530f9328639SMarian Balakowicz	@mkdir -p $(obj)include
153127b207fdSwdenk	@case "$@" in \
153227b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
153327b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
153427b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
153527b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
153627b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
153727b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
153827b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
153927b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
154027b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
15411f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
154227b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
154327b207fdSwdenk	esac; \
1544f9328639SMarian Balakowicz	>$(obj)include/config.h ; \
154527b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1546f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
154727b207fdSwdenk	fi; \
1548f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
154927b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
155027b207fdSwdenk	if [ "$${CACHE}" == "yes" ] ; then \
1551f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
155227b207fdSwdenk		echo "... with L2 Cache support" ; \
15537ebf7443Swdenk	else \
1554f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
15557ebf7443Swdenk		echo "... without L2 Cache support" ; \
155627b207fdSwdenk	fi; \
155727b207fdSwdenk	if [ "$${BMODE}" == "60x" ] ; then \
1558f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
155927b207fdSwdenk		echo "... with 60x Bus Mode" ; \
156027b207fdSwdenk	else \
1561f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
156227b207fdSwdenk		echo "... without 60x Bus Mode" ; \
15637ebf7443Swdenk	fi
1564f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
15657ebf7443Swdenk
1566fa230445SHeiko SchocherTQM8272_config: unconfig
1567fa230445SHeiko Schocher	@$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1568fa230445SHeiko Schocher
1569ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1570ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1571f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1572f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1573f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1574ba91e26aSwdenk
157554387ac9SwdenkZPC1900_config: unconfig
1576f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
15777aa78614Swdenk
15784e5ca3ebSwdenk#########################################################################
15794e5ca3ebSwdenk## Coldfire
15804e5ca3ebSwdenk#########################################################################
15814e5ca3ebSwdenk
15827481266eSWolfgang Denkcobra5272_config :		unconfig
1583f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
15847481266eSWolfgang Denk
15854176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
1586f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1587f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1588f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1589f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1590f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
15914176c799SWolfgang Denk
15924176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
1593f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1594f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1595f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1596f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1597f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
15984176c799SWolfgang Denk
1599daa6e418SBartlomiej Siekaidmr_config :			unconfig
1600daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1601daa6e418SBartlomiej Sieka
16024176c799SWolfgang DenkM5271EVB_config :		unconfig
1603f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
16044176c799SWolfgang Denk
16054e5ca3ebSwdenkM5272C3_config :		unconfig
1606f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
16074e5ca3ebSwdenk
16084e5ca3ebSwdenkM5282EVB_config :		unconfig
1609f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
16104e5ca3ebSwdenk
1611c419d1d6SstroeseTASREG_config :		unconfig
1612f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1613c419d1d6Sstroese
16143a108ed8SZachary P. Landaur5200_config :		unconfig
1615f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
16163a108ed8SZachary P. Landau
16177ebf7443Swdenk#########################################################################
1618f046ccd1SEran Liberty## MPC83xx Systems
1619f046ccd1SEran Liberty#########################################################################
1620f046ccd1SEran Liberty
16214decd84eSKim PhillipsMPC832XEMDS_config \
16224decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
16234decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
16244decd84eSKim PhillipsMPC832XEMDS_SLAVE_config:	unconfig
16254decd84eSKim Phillips	@echo "" >include/config.h ; \
16264decd84eSKim Phillips	if [ "$(findstring _HOST_,$@)" ] ; then \
16274decd84eSKim Phillips		echo -n "... PCI HOST " ; \
16284decd84eSKim Phillips		echo "#define CONFIG_PCI" >>include/config.h ; \
16294decd84eSKim Phillips	fi ; \
16304decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
16314decd84eSKim Phillips		echo "...PCI SLAVE 66M"  ; \
16324decd84eSKim Phillips		echo "#define CONFIG_PCI" >>include/config.h ; \
16334decd84eSKim Phillips		echo "#define CONFIG_PCISLAVE" >>include/config.h ; \
16344decd84eSKim Phillips	fi ; \
16354decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
16364decd84eSKim Phillips		echo -n "...33M ..." ; \
16374decd84eSKim Phillips		echo "#define PCI_33M" >>include/config.h ; \
16384decd84eSKim Phillips	fi ; \
16394decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
16404decd84eSKim Phillips		echo -n "...66M..." ; \
16414decd84eSKim Phillips		echo "#define PCI_66M" >>include/config.h ; \
16424decd84eSKim Phillips	fi ;
16434decd84eSKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds
1644e6f2e902SMarian Balakowicz
1645991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
1646f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds
1647991425feSMarian Balakowicz
16487a78f148STimur TabiMPC8349ITX_config \
16497a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
16507a78f148STimur TabiMPC8349ITXGP_config:	unconfig
16517a78f148STimur Tabi	@mkdir -p $(obj)include
16527a78f148STimur Tabi	@mkdir -p $(obj)board/mpc8349itx
16537a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
16547a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
16557a78f148STimur Tabi		echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
16567a78f148STimur Tabi	fi
16577a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
16587a78f148STimur Tabi		echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
16597a78f148STimur Tabi	fi
16607a78f148STimur Tabi	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx
16614decd84eSKim Phillips
16625f820439SDave LiuMPC8360EMDS_config \
16635f820439SDave LiuMPC8360EMDS_HOST_33_config \
16645f820439SDave LiuMPC8360EMDS_HOST_66_config \
16655f820439SDave LiuMPC8360EMDS_SLAVE_config:	unconfig
16665f820439SDave Liu	@echo "" >include/config.h ; \
16675f820439SDave Liu	if [ "$(findstring _HOST_,$@)" ] ; then \
16685f820439SDave Liu		echo -n "... PCI HOST " ; \
16695f820439SDave Liu		echo "#define CONFIG_PCI" >>include/config.h ; \
16705f820439SDave Liu	fi ; \
16715f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
16725f820439SDave Liu		echo "...PCI SLAVE 66M"  ; \
16735f820439SDave Liu		echo "#define CONFIG_PCI" >>include/config.h ; \
16745f820439SDave Liu		echo "#define CONFIG_PCISLAVE" >>include/config.h ; \
16755f820439SDave Liu	fi ; \
16765f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
16775f820439SDave Liu		echo -n "...33M ..." ; \
16785f820439SDave Liu		echo "#define PCI_33M" >>include/config.h ; \
16795f820439SDave Liu	fi ; \
16805f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
16815f820439SDave Liu		echo -n "...66M..." ; \
16825f820439SDave Liu		echo "#define PCI_66M" >>include/config.h ; \
16835f820439SDave Liu	fi ;
16845f820439SDave Liu	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds
16855f820439SDave Liu
168691e25769SPaul Gortmakersbc8349_config:		unconfig
168791e25769SPaul Gortmaker	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
168891e25769SPaul Gortmaker
16894decd84eSKim PhillipsTQM834x_config:	unconfig
16904decd84eSKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
16914decd84eSKim Phillips
16922ad6b513STimur Tabi
1693f046ccd1SEran Liberty#########################################################################
169442d1f039Swdenk## MPC85xx Systems
169542d1f039Swdenk#########################################################################
169642d1f039Swdenk
169742d1f039SwdenkMPC8540ADS_config:	unconfig
1698f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
169942d1f039Swdenk
1700b0e32949SLunsheng WangMPC8540EVAL_config \
1701b0e32949SLunsheng WangMPC8540EVAL_33_config \
1702b0e32949SLunsheng WangMPC8540EVAL_66_config \
1703b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
1704b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:      unconfig
1705f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1706f9328639SMarian Balakowicz	@echo "" >$(obj)include/config.h ; \
1707b0e32949SLunsheng Wang	if [ "$(findstring _33_,$@)" ] ; then \
1708b0e32949SLunsheng Wang		echo -n "... 33 MHz PCI" ; \
1709b0e32949SLunsheng Wang	else \
1710f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1711b0e32949SLunsheng Wang		echo -n "... 66 MHz PCI" ; \
1712b0e32949SLunsheng Wang	fi ; \
1713b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
1714f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1715b0e32949SLunsheng Wang		echo " slave" ; \
1716b0e32949SLunsheng Wang	else \
1717b0e32949SLunsheng Wang		echo " host" ; \
1718b0e32949SLunsheng Wang	fi
1719f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1720b0e32949SLunsheng Wang
172142d1f039SwdenkMPC8560ADS_config:	unconfig
1722f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
172342d1f039Swdenk
172403f5c550SwdenkMPC8541CDS_config:	unconfig
1725f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8541cds cds
172603f5c550Swdenk
1727d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
1728f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8548cds cds
1729d9b94f28SJon Loeliger
173003f5c550SwdenkMPC8555CDS_config:	unconfig
1731f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8555cds cds
17327abf0c58Swdenk
1733384cc687SwdenkPM854_config:	unconfig
1734f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
1735384cc687Swdenk
1736b20d0032SWolfgang DenkPM856_config:	unconfig
1737f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
1738b20d0032SWolfgang Denk
1739c15f3120Swdenksbc8540_config \
1740c15f3120Swdenksbc8540_33_config \
1741c15f3120Swdenksbc8540_66_config:	unconfig
1742f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1743c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
1744f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
1745c15f3120Swdenk		echo "... 66 MHz PCI" ; \
1746c15f3120Swdenk	else \
1747f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1748c15f3120Swdenk		echo "... 33 MHz PCI" ; \
1749c15f3120Swdenk	fi
1750f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
1751c15f3120Swdenk
1752466b7410Swdenksbc8560_config \
1753466b7410Swdenksbc8560_33_config \
1754466b7410Swdenksbc8560_66_config:      unconfig
1755f9328639SMarian Balakowicz	@mkdir -p $(obj)include
17568b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
1757f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
17588b07a110Swdenk		echo "... 66 MHz PCI" ; \
17598b07a110Swdenk	else \
1760f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
17618b07a110Swdenk		echo "... 33 MHz PCI" ; \
17628b07a110Swdenk	fi
1763f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
17648b07a110Swdenk
176503f5c550Swdenkstxgp3_config:		unconfig
1766f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
176703f5c550Swdenk
1768d96f41e0SStefan RoeseTQM8540_config		\
1769d96f41e0SStefan RoeseTQM8541_config		\
1770d96f41e0SStefan RoeseTQM8555_config		\
1771f5c5ef4aSwdenkTQM8560_config:		unconfig
1772f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1773a889bd27SWolfgang Denk	@CTYPE=$(subst TQM,,$(@:_config=)); \
1774f9328639SMarian Balakowicz	>$(obj)include/config.h ; \
1775d96f41e0SStefan Roese	echo "... TQM"$${CTYPE}; \
1776f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1777f9328639SMarian Balakowicz	echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
1778f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1779f9328639SMarian Balakowicz	echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
1780f9328639SMarian Balakowicz	echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>$(obj)include/config.h
1781f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
1782f5c5ef4aSwdenk
178342d1f039Swdenk#########################################################################
1784debb7354SJon Loeliger## MPC86xx Systems
1785debb7354SJon Loeliger#########################################################################
1786debb7354SJon Loeliger
1787debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
1788debb7354SJon Loeliger	@./mkconfig $(@:_config=) ppc mpc86xx mpc8641hpcn
1789debb7354SJon Loeliger
1790debb7354SJon Loeliger
1791debb7354SJon Loeliger#########################################################################
17927ebf7443Swdenk## 74xx/7xx Systems
17937ebf7443Swdenk#########################################################################
17947ebf7443Swdenk
1795c7de829cSwdenkAmigaOneG3SE_config:	unconfig
1796f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1797c7de829cSwdenk
179815647dc7SwdenkBAB7xx_config: unconfig
1799f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
180015647dc7Swdenk
1801c419d1d6SstroeseCPCI750_config:        unconfig
1802f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
1803c419d1d6Sstroese
18043a473b2aSwdenkDB64360_config:  unconfig
1805f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
18063a473b2aSwdenk
18073a473b2aSwdenkDB64460_config:  unconfig
1808f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
18093a473b2aSwdenk
181015647dc7SwdenkELPPC_config: unconfig
1811f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
181215647dc7Swdenk
18137ebf7443SwdenkEVB64260_config	\
18147ebf7443SwdenkEVB64260_750CX_config:	unconfig
1815f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
18167ebf7443Swdenk
181715647dc7SwdenkP3G4_config: unconfig
1818f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
18197ebf7443Swdenk
18201eac2a71SStefan Roesep3m750_config	\
18211eac2a71SStefan Roesep3m7448_config:		unconfig
18221eac2a71SStefan Roese	@mkdir -p $(obj)include
18231eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
18241eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
18251eac2a71SStefan Roese	else \
18261eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
18271eac2a71SStefan Roese	fi
18281eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
18291eac2a71SStefan Roese
18307ebf7443SwdenkPCIPPC2_config \
18317ebf7443SwdenkPCIPPC6_config: unconfig
1832f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
18337ebf7443Swdenk
183415647dc7SwdenkZUMA_config:	unconfig
1835f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
183612f34241Swdenk
1837f5e0d039SHeiko Schocherppmc7xx_config: unconfig
1838f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
1839f5e0d039SHeiko Schocher
18407ebf7443Swdenk#========================================================================
18417ebf7443Swdenk# ARM
18427ebf7443Swdenk#========================================================================
18437ebf7443Swdenk#########################################################################
18447ebf7443Swdenk## StrongARM Systems
18457ebf7443Swdenk#########################################################################
18467ebf7443Swdenk
1847ea66bc88Swdenkassabet_config	:	unconfig
1848f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
1849ea66bc88Swdenk
18507ebf7443Swdenkdnp1110_config	:	unconfig
1851f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
18527ebf7443Swdenk
1853855a496fSwdenkgcplus_config	:	unconfig
1854f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
1855855a496fSwdenk
1856855a496fSwdenklart_config	:	unconfig
1857f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
1858855a496fSwdenk
18597ebf7443Swdenkshannon_config	:	unconfig
1860f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
18617ebf7443Swdenk
18627ebf7443Swdenk#########################################################################
18632e5983d2Swdenk## ARM92xT Systems
18647ebf7443Swdenk#########################################################################
18657ebf7443Swdenk
1866b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
186743d9616cSwdenk
18683ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
186963e73c9aSwdenk
1870a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1871a56bd922Swdenk
1872a85f9f21Swdenkat91rm9200dk_config	:	unconfig
1873f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1874a85f9f21Swdenk
1875a85f9f21Swdenkcmc_pu2_config	:	unconfig
1876f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1877a85f9f21Swdenk
1878645da510SWolfgang Denkcsb637_config	:	unconfig
1879f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
1880645da510SWolfgang Denk
18810e4018d2SWolfgang Denkmp2usb_config	:	unconfig
1882f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
18830e4018d2SWolfgang Denk
188487cb6862SWolfgang Denk
188574f4304eSWolfgang Denk########################################################################
188687cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
188787cb6862SWolfgang Denkintegratorap_config	\
188887cb6862SWolfgang Denkap_config		\
188987cb6862SWolfgang Denkap966_config		\
189087cb6862SWolfgang Denkap922_config		\
189187cb6862SWolfgang Denkap922_XA10_config	\
189287cb6862SWolfgang Denkap7_config		\
189387cb6862SWolfgang Denkap720t_config		\
189487cb6862SWolfgang Denkap920t_config		\
189587cb6862SWolfgang Denkap926ejs_config		\
189687cb6862SWolfgang Denkap946es_config: unconfig
189796782c63SWolfgang Denk	@board/integratorap/split_by_variant.sh $@
18983d3befa7Swdenk
189987cb6862SWolfgang Denkintegratorcp_config	\
190087cb6862SWolfgang Denkcp_config		\
190187cb6862SWolfgang Denkcp920t_config		\
190287cb6862SWolfgang Denkcp926ejs_config		\
190387cb6862SWolfgang Denkcp946es_config		\
190487cb6862SWolfgang Denkcp1136_config		\
190587cb6862SWolfgang Denkcp966_config		\
190687cb6862SWolfgang Denkcp922_config		\
190787cb6862SWolfgang Denkcp922_XA10_config	\
190887cb6862SWolfgang Denkcp1026_config: unconfig
190996782c63SWolfgang Denk	@board/integratorcp/split_by_variant.sh $@
191025d6712aSwdenk
191199b0d285SWolfgang Denkkb9202_config	:	unconfig
1912f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
191399b0d285SWolfgang Denk
1914f832d8a1Swdenklpd7a400_config \
1915f832d8a1Swdenklpd7a404_config:	unconfig
1916f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
19173d3befa7Swdenk
1918281e00a3Swdenkmx1ads_config	:	unconfig
1919f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
1920281e00a3Swdenk
1921281e00a3Swdenkmx1fs2_config	:	unconfig
1922f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
1923281e00a3Swdenk
1924ac7eb8a3SWolfgang Denknetstar_32_config	\
1925ac7eb8a3SWolfgang Denknetstar_config:		unconfig
1926f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1927ac7eb8a3SWolfgang Denk	@if [ "$(findstring _32_,$@)" ] ; then \
1928ac7eb8a3SWolfgang Denk		echo "... 32MB SDRAM" ; \
1929f9328639SMarian Balakowicz		echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
1930ac7eb8a3SWolfgang Denk	else \
1931ac7eb8a3SWolfgang Denk		echo "... 64MB SDRAM" ; \
1932f9328639SMarian Balakowicz		echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
1933ac7eb8a3SWolfgang Denk	fi
1934f9328639SMarian Balakowicz	@$(MKCONFIG) -a netstar arm arm925t netstar
1935ac7eb8a3SWolfgang Denk
19362e5983d2Swdenkomap1510inn_config :	unconfig
1937f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
19382e5983d2Swdenk
19391eaeb58eSwdenkomap5912osk_config :	unconfig
1940f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
19411eaeb58eSwdenk
194263e73c9aSwdenkomap1610inn_config \
194363e73c9aSwdenkomap1610inn_cs0boot_config \
194463e73c9aSwdenkomap1610inn_cs3boot_config \
19453ff02c27Swdenkomap1610inn_cs_autoboot_config \
194663e73c9aSwdenkomap1610h2_config \
194763e73c9aSwdenkomap1610h2_cs0boot_config \
19483ff02c27Swdenkomap1610h2_cs3boot_config \
19493ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
1950f9328639SMarian Balakowicz	@mkdir -p $(obj)include
195163e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
1952f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> .$(obj)/include/config.h ; \
1953b79a11ccSwdenk		echo "... configured for CS0 boot"; \
19543ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
1955f9328639SMarian Balakowicz		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)./include/config.h ; \
19563ff02c27Swdenk		echo "... configured for CS_AUTO boot"; \
195763e73c9aSwdenk	else \
1958f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)./include/config.h ; \
1959b79a11ccSwdenk		echo "... configured for CS3 boot"; \
196063e73c9aSwdenk	fi;
1961f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
19626f21347dSwdenk
1963a56bd922Swdenkomap730p2_config \
1964a56bd922Swdenkomap730p2_cs0boot_config \
1965a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
1966f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1967a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
1968f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
1969a56bd922Swdenk		echo "... configured for CS0 boot"; \
1970a56bd922Swdenk	else \
1971f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
1972a56bd922Swdenk		echo "... configured for CS3 boot"; \
1973a56bd922Swdenk	fi;
1974f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
1975a56bd922Swdenk
197632cb2c70SWolfgang Denksbc2410x_config: unconfig
1977f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
197832cb2c70SWolfgang Denk
1979281e00a3Swdenkscb9328_config	:	unconfig
1980f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
1981281e00a3Swdenk
19827ebf7443Swdenksmdk2400_config	:	unconfig
1983f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
19847ebf7443Swdenk
19857ebf7443Swdenksmdk2410_config	:	unconfig
1986f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
19877ebf7443Swdenk
19882d24a3a7SwdenkSX1_config :		unconfig
1989f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t sx1
19902d24a3a7Swdenk
1991b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
199243d9616cSwdenktrab_config \
1993b0639ca3Swdenktrab_bigram_config \
1994b0639ca3Swdenktrab_bigflash_config \
1995f54ebdfaSwdenktrab_old_config:	unconfig
1996f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1997f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
1998f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1999b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
2000f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2001f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
2002b0639ca3Swdenk		  echo "... with 8 MB Flash, 32 MB RAM" ; \
2003b0639ca3Swdenk		}
2004b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
2005f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2006f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2007b0639ca3Swdenk		  echo "... with 16 MB Flash, 16 MB RAM" ; \
2008f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2009b0639ca3Swdenk		}
2010f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
2011f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2012f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2013b2001f27Swdenk		  echo "... with 8 MB Flash, 16 MB RAM" ; \
2014f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
201543d9616cSwdenk		}
2016f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
20177ebf7443Swdenk
20181cb8e980SwdenkVCMA9_config	:	unconfig
2019f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
20201cb8e980Swdenk
202187cb6862SWolfgang Denk#========================================================================
202287cb6862SWolfgang Denk# ARM supplied Versatile development boards
202387cb6862SWolfgang Denk#========================================================================
202487cb6862SWolfgang Denkversatile_config	\
202587cb6862SWolfgang Denkversatileab_config	\
202687cb6862SWolfgang Denkversatilepb_config :	unconfig
202796782c63SWolfgang Denk	@board/versatile/split_by_variant.sh $@
2028074cff0dSwdenk
20293c2b3d45Swdenkvoiceblue_smallflash_config	\
20303c2b3d45Swdenkvoiceblue_config:	unconfig
2031f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2032f9328639SMarian Balakowicz	@mkdir -p $(obj)board/voiceblue
20333c2b3d45Swdenk	@if [ "$(findstring _smallflash_,$@)" ] ; then \
20343c2b3d45Swdenk		echo "... boot from lower flash bank" ; \
2035f9328639SMarian Balakowicz		echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2036f9328639SMarian Balakowicz		echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
20373c2b3d45Swdenk	else \
20383c2b3d45Swdenk		echo "... boot from upper flash bank" ; \
2039f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
2040f9328639SMarian Balakowicz		echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
20413c2b3d45Swdenk	fi
2042f9328639SMarian Balakowicz	@$(MKCONFIG) -a voiceblue arm arm925t voiceblue
20433c2b3d45Swdenk
204416b013e7Swdenkcm4008_config	:	unconfig
2045f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
204616b013e7Swdenk
204716b013e7Swdenkcm41xx_config	:	unconfig
2048f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
204916b013e7Swdenk
20500c32d96dSWolfgang Denkgth2_config		:	unconfig
2051f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2052f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2053f9328639SMarian Balakowicz	@echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2054f9328639SMarian Balakowicz	@$(MKCONFIG) -a gth2 mips mips gth2
20550c32d96dSWolfgang Denk
2056074cff0dSwdenk#########################################################################
2057074cff0dSwdenk## S3C44B0 Systems
2058074cff0dSwdenk#########################################################################
2059074cff0dSwdenk
2060074cff0dSwdenkB2_config	:	unconfig
2061f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2062074cff0dSwdenk
20637ebf7443Swdenk#########################################################################
20647ebf7443Swdenk## ARM720T Systems
20657ebf7443Swdenk#########################################################################
20667ebf7443Swdenk
2067c570b2fdSWolfgang Denkarmadillo_config:	unconfig
2068f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2069c570b2fdSWolfgang Denk
20707ebf7443Swdenkep7312_config	:	unconfig
2071f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
20727ebf7443Swdenk
20732d24a3a7Swdenkimpa7_config	:	unconfig
2074f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
20752d24a3a7Swdenk
20762d1a537dSwdenkmodnet50_config :	unconfig
2077f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
20782d1a537dSwdenk
207939539887Swdenkevb4510_config :	unconfig
2080f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
208139539887Swdenk
20826bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
20836bd2447eSGary Jennejohn	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm
20846bd2447eSGary Jennejohn
20857ebf7443Swdenk#########################################################################
208643d9616cSwdenk## XScale Systems
20877ebf7443Swdenk#########################################################################
20887ebf7443Swdenk
208920787e23Swdenkadsvix_config	:	unconfig
2090f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa adsvix
209120787e23Swdenk
2092fabd46acSwdenkcerf250_config :	unconfig
2093f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
2094fabd46acSwdenk
20957ebf7443Swdenkcradle_config	:	unconfig
2096f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
20977ebf7443Swdenk
20987ebf7443Swdenkcsb226_config	:	unconfig
2099f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
21007ebf7443Swdenk
21010be248faSWolfgang Denkdelta_config :
2102f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
21030be248faSWolfgang Denk
210443d9616cSwdenkinnokom_config	:	unconfig
2105f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
210643d9616cSwdenk
21072d5b561eSwdenkixdp425_config	:	unconfig
2108f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
21092d5b561eSwdenk
2110ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
2111f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2112ba94a1bbSWolfgang Denk
211343d9616cSwdenklubbock_config	:	unconfig
2114f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
211543d9616cSwdenk
21165720df78SHeiko Schocherpleb2_config	:	unconfig
2117f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
21185720df78SHeiko Schocher
211952f52c14Swdenklogodl_config	:	unconfig
2120f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
212152f52c14Swdenk
21229d8d5a5bSStefan Roesepdnb3_config \
21239d8d5a5bSStefan Roesescpu_config:    unconfig
21249d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
21259d8d5a5bSStefan Roese		echo "#define CONFIG_SCPU"      >>include/config.h ; \
21269d8d5a5bSStefan Roese		echo "... on SCPU board variant" ; \
21279d8d5a5bSStefan Roese	else \
21289d8d5a5bSStefan Roese		>include/config.h ; \
21299d8d5a5bSStefan Roese	fi
21309d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2131ba94a1bbSWolfgang Denk
2132f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
2133f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2134f57f70aaSWolfgang Denk
21353e38691eSwdenkwepep250_config	:	unconfig
2136f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
21373e38691eSwdenk
21384ec3a7f0Swdenkxaeniax_config	:	unconfig
2139f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
21404ec3a7f0Swdenk
2141efa329cbSwdenkxm250_config	:	unconfig
2142f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
2143efa329cbSwdenk
2144ca0e7748Swdenkxsengine_config :	unconfig
2145f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
2146ca0e7748Swdenk
2147e0269579SMarkus Klotzbücherzylonite_config :
2148f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
2149e0269579SMarkus Klotzbücher
21508ed96046Swdenk#########################################################################
21518ed96046Swdenk## ARM1136 Systems
21528ed96046Swdenk#########################################################################
21538ed96046Swdenkomap2420h4_config :    unconfig
2154f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
21558ed96046Swdenk
21562262cfeeSwdenk#========================================================================
21572262cfeeSwdenk# i386
21582262cfeeSwdenk#========================================================================
21592262cfeeSwdenk#########################################################################
21602262cfeeSwdenk## AMD SC520 CDP
21612262cfeeSwdenk#########################################################################
21622262cfeeSwdenksc520_cdp_config	:	unconfig
2163f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
21642262cfeeSwdenk
21657a8e9bedSwdenksc520_spunk_config	:	unconfig
2166f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
21677a8e9bedSwdenk
21687a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
2169f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
21707a8e9bedSwdenk
217143d9616cSwdenk#========================================================================
217243d9616cSwdenk# MIPS
217343d9616cSwdenk#========================================================================
21747ebf7443Swdenk#########################################################################
217543d9616cSwdenk## MIPS32 4Kc
217643d9616cSwdenk#########################################################################
217743d9616cSwdenk
2178e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2179e0ac62d7Swdenk
2180e0ac62d7Swdenkincaip_100MHz_config	\
2181e0ac62d7Swdenkincaip_133MHz_config	\
2182e0ac62d7Swdenkincaip_150MHz_config	\
218343d9616cSwdenkincaip_config: unconfig
2184f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2185f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2186e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
2187f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2188e0ac62d7Swdenk		  echo "... with 100MHz system clock" ; \
2189e0ac62d7Swdenk		}
2190e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
2191f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2192e0ac62d7Swdenk		  echo "... with 133MHz system clock" ; \
2193e0ac62d7Swdenk		}
2194e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
2195f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2196e0ac62d7Swdenk		  echo "... with 150MHz system clock" ; \
2197e0ac62d7Swdenk		}
2198f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2199e0ac62d7Swdenk
2200f4863a7aSwdenktb0229_config: unconfig
2201f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
2202f4863a7aSwdenk
2203e0ac62d7Swdenk#########################################################################
220469459791Swdenk## MIPS32 AU1X00
220569459791Swdenk#########################################################################
220669459791Swdenkdbau1000_config		:	unconfig
2207f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2208f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2209f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2210f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
221169459791Swdenk
221269459791Swdenkdbau1100_config		:	unconfig
2213f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2214f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2215f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2216f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
221769459791Swdenk
221869459791Swdenkdbau1500_config		:	unconfig
2219f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2220f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2221f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2222f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
222369459791Swdenk
2224ff36fd85Swdenkdbau1550_config		:	unconfig
2225f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2226f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2227f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2228f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2229ff36fd85Swdenk
2230ff36fd85Swdenkdbau1550_el_config	:	unconfig
2231f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2232f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2233f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2234f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2235ff36fd85Swdenk
2236265817c7SWolfgang Denkpb1000_config		:	unconfig
2237f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2238f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2239f9328639SMarian Balakowicz	@echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2240f9328639SMarian Balakowicz	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
2241265817c7SWolfgang Denk
224269459791Swdenk#########################################################################
2243e0ac62d7Swdenk## MIPS64 5Kc
2244e0ac62d7Swdenk#########################################################################
224543d9616cSwdenk
22463e38691eSwdenkpurple_config :		unconfig
2247f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
224843d9616cSwdenk
22494a551709Swdenk#========================================================================
22504a551709Swdenk# Nios
22514a551709Swdenk#========================================================================
22524a551709Swdenk#########################################################################
22534a551709Swdenk## Nios32
22544a551709Swdenk#########################################################################
22554a551709Swdenk
2256c935d3bdSwdenkDK1C20_safe_32_config		\
2257c935d3bdSwdenkDK1C20_standard_32_config	\
22584a551709SwdenkDK1C20_config:	unconfig
2259f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2260f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2261c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2262f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2263c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
2264c935d3bdSwdenk		}
2265c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2266f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2267c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
2268c935d3bdSwdenk		}
2269c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
2270f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2271c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2272c935d3bdSwdenk		}
2273f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2274c935d3bdSwdenk
2275c935d3bdSwdenkDK1S10_safe_32_config		\
2276c935d3bdSwdenkDK1S10_standard_32_config	\
2277ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
2278c935d3bdSwdenkDK1S10_config:	unconfig
2279f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2280f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2281c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2282f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2283c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
2284c935d3bdSwdenk		}
2285c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2286f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2287c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
2288c935d3bdSwdenk		}
2289ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2290f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2291ec4c544bSwdenk		  echo "... NIOS 'mtx_ldk_20' configuration" ; \
2292ec4c544bSwdenk		}
2293c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
2294f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2295c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2296c935d3bdSwdenk		}
2297f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
22984a551709Swdenk
2299aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
2300aaf224abSwdenkADNPESC1_base_32_config		\
2301aaf224abSwdenkADNPESC1_config: unconfig
2302f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2303f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2304aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
2305f9328639SMarian Balakowicz		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2306aaf224abSwdenk		  echo "... DNP/EVA2 configuration" ; \
2307aaf224abSwdenk		}
2308aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
2309f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2310aaf224abSwdenk		  echo "... NIOS 'base_32' configuration" ; \
2311aaf224abSwdenk		}
2312aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2313f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2314aaf224abSwdenk		  echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2315aaf224abSwdenk		}
2316f9328639SMarian Balakowicz	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2317aaf224abSwdenk
23185c952cf0Swdenk#########################################################################
23195c952cf0Swdenk## Nios-II
23205c952cf0Swdenk#########################################################################
23215c952cf0Swdenk
23229cc83378SScott McNuttEP1C20_config : unconfig
2323f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
23249cc83378SScott McNutt
23259cc83378SScott McNuttEP1S10_config : unconfig
2326f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
23279cc83378SScott McNutt
23289cc83378SScott McNuttEP1S40_config : unconfig
2329f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
23309cc83378SScott McNutt
23315c952cf0SwdenkPK1C20_config : unconfig
2332f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
23335c952cf0Swdenk
23345c952cf0SwdenkPCI5441_config : unconfig
2335f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
23364a551709Swdenk
2337507bbe3eSwdenk#========================================================================
2338507bbe3eSwdenk# MicroBlaze
2339507bbe3eSwdenk#========================================================================
2340507bbe3eSwdenk#########################################################################
2341507bbe3eSwdenk## Microblaze
2342507bbe3eSwdenk#########################################################################
2343507bbe3eSwdenksuzaku_config:	unconfig
2344f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2345f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2346f9328639SMarian Balakowicz	@echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2347f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2348507bbe3eSwdenk
2349cfc67116SMichal Simekml401_config:	unconfig
2350cfc67116SMichal Simek	@ >include/config.h
2351cfc67116SMichal Simek	@echo "#define CONFIG_ML401 1" >> include/config.h
2352cfc67116SMichal Simek	@./mkconfig -a $(@:_config=) microblaze microblaze ml401 xilinx
2353cfc67116SMichal Simek
235417980495SMichal Simekxupv2p_config:	unconfig
235517980495SMichal Simek	@ >include/config.h
235617980495SMichal Simek	@echo "#define CONFIG_XUPV2P 1" >> include/config.h
235717980495SMichal Simek	@./mkconfig -a $(@:_config=) microblaze microblaze xupv2p xilinx
235817980495SMichal Simek
23593e38691eSwdenk#########################################################################
23600afe519aSWolfgang Denk## Blackfin
23610afe519aSWolfgang Denk#########################################################################
2362ef26a08fSAubrey.Libf533-ezkit_config:	unconfig
2363ef26a08fSAubrey.Li	@$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
23640afe519aSWolfgang Denk
2365ef26a08fSAubrey.Libf533-stamp_config:	unconfig
2366ef26a08fSAubrey.Li	@$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
23670afe519aSWolfgang Denk
236826bf7decSAubrey Libf537-stamp_config:	unconfig
236926bf7decSAubrey Li	@$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
237026bf7decSAubrey Li
237165458987SAubrey Libf561-ezkit_config:	unconfig
237265458987SAubrey Li	@$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
23730afe519aSWolfgang Denk
23745e3b0bc1SHaavard Skinnemoen#========================================================================
23755e3b0bc1SHaavard Skinnemoen# AVR32
23765e3b0bc1SHaavard Skinnemoen#========================================================================
23775e3b0bc1SHaavard Skinnemoen#########################################################################
23785e3b0bc1SHaavard Skinnemoen## AT32AP7xxx
23795e3b0bc1SHaavard Skinnemoen#########################################################################
23805e3b0bc1SHaavard Skinnemoen
23815e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
23825e3b0bc1SHaavard Skinnemoen	@./mkconfig $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
23835e3b0bc1SHaavard Skinnemoen
23840afe519aSWolfgang Denk#########################################################################
23850afe519aSWolfgang Denk#########################################################################
23863e38691eSwdenk#########################################################################
23877ebf7443Swdenk
23887ebf7443Swdenkclean:
2389f9328639SMarian Balakowicz	find $(OBJTREE) -type f \
23907ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
23917ebf7443Swdenk		-o -name '*.o'  -o -name '*.a'  \) -print \
23927ebf7443Swdenk		| xargs rm -f
2393f9328639SMarian Balakowicz	rm -f $(obj)examples/hello_world $(obj)examples/timer \
2394f9328639SMarian Balakowicz	      $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2395f9328639SMarian Balakowicz	      $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2396d214fbbdSWolfgang Denk	      $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2397f9328639SMarian Balakowicz	      $(obj)examples/test_burst
2398f9328639SMarian Balakowicz	rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2399f9328639SMarian Balakowicz		$(obj)tools/gen_eth_addr
2400f9328639SMarian Balakowicz	rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2401f9328639SMarian Balakowicz	rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2402f9328639SMarian Balakowicz	rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2403f9328639SMarian Balakowicz	rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2404f9328639SMarian Balakowicz	rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2405f9328639SMarian Balakowicz	rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2406f9328639SMarian Balakowicz	rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2407f9328639SMarian Balakowicz	rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2408f9328639SMarian Balakowicz	rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
24098440bb14SAubrey Li	rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
241065458987SAubrey Li	rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2411f9328639SMarian Balakowicz	rm -f $(obj)include/bmp_logo.h
24128318fbf8SMarian Balakowicz	rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
24137ebf7443Swdenk
24147ebf7443Swdenkclobber:	clean
2415f9328639SMarian Balakowicz	find $(OBJTREE) -type f \( -name .depend \
24164c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
24174c0d4c3bSwdenk		-print0 \
24184c0d4c3bSwdenk		| xargs -0 rm -f
2419f9328639SMarian Balakowicz	rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2420f9328639SMarian Balakowicz	rm -fr $(obj)*.*~
2421f9328639SMarian Balakowicz	rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2422f9328639SMarian Balakowicz	rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c
2423f9328639SMarian Balakowicz	rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2424f9328639SMarian Balakowicz	rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
24258318fbf8SMarian Balakowicz	[ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
24267ebf7443Swdenk
2427f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
24287ebf7443Swdenkmrproper \
24297ebf7443Swdenkdistclean:	clobber unconfig
2430f9328639SMarian Balakowiczelse
2431f9328639SMarian Balakowiczmrproper \
2432f9328639SMarian Balakowiczdistclean:	clobber unconfig
2433f9328639SMarian Balakowicz	rm -rf $(OBJTREE)/*
2434f9328639SMarian Balakowiczendif
24357ebf7443Swdenk
24367ebf7443Swdenkbackup:
24377ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
24387ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
24397ebf7443Swdenk
24407ebf7443Swdenk#########################################################################
2441