xref: /openbmc/u-boot/Makefile (revision a865bcda)
17ebf7443Swdenk#
2ae6d1056SWolfgang Denk# (C) Copyright 2000-2008
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
24aced78d8SWolfgang DenkVERSION = 2009
25aced78d8SWolfgang DenkPATCHLEVEL = 01
268b9e4787SWolfgang DenkSUBLEVEL =
2772d15e70SWolfgang DenkEXTRAVERSION =
288b9e4787SWolfgang Denkifneq "$(SUBLEVEL)" ""
29881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
308b9e4787SWolfgang Denkelse
318b9e4787SWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL)$(EXTRAVERSION)
328b9e4787SWolfgang Denkendif
33561858eeSPeter TyserTIMESTAMP_FILE = $(obj)include/timestamp_autogenerated.h
34f9328639SMarian BalakowiczVERSION_FILE = $(obj)include/version_autogenerated.h
35881a87ecSWolfgang Denk
367ebf7443SwdenkHOSTARCH := $(shell uname -m | \
377ebf7443Swdenk	sed -e s/i.86/i386/ \
387ebf7443Swdenk	    -e s/sun4u/sparc64/ \
397ebf7443Swdenk	    -e s/arm.*/arm/ \
407ebf7443Swdenk	    -e s/sa110/arm/ \
417ebf7443Swdenk	    -e s/powerpc/ppc/ \
42a2280646SKumar Gala	    -e s/ppc64/ppc/ \
437ebf7443Swdenk	    -e s/macppc/ppc/)
447ebf7443Swdenk
45f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
467ebf7443Swdenk	    sed -e 's/\(cygwin\).*/cygwin/')
477ebf7443Swdenk
48cf7a7b99SPeter Tyser# Set shell to bash if possible, otherwise fall back to sh
49cf7a7b99SPeter TyserSHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
50cf7a7b99SPeter Tyser	else if [ -x /bin/bash ]; then echo /bin/bash; \
51cf7a7b99SPeter Tyser	else echo sh; fi; fi)
52cf7a7b99SPeter Tyser
53cf7a7b99SPeter Tyserexport	HOSTARCH HOSTOS SHELL
547ebf7443Swdenk
557ebf7443Swdenk# Deal with colliding definitions from tcsh etc.
567ebf7443SwdenkVENDOR=
577ebf7443Swdenk
587ebf7443Swdenk#########################################################################
59ae6d1056SWolfgang Denk# Allow for silent builds
60ae6d1056SWolfgang Denkifeq (,$(findstring s,$(MAKEFLAGS)))
61ae6d1056SWolfgang DenkXECHO = echo
62ae6d1056SWolfgang Denkelse
63ae6d1056SWolfgang DenkXECHO = :
64ae6d1056SWolfgang Denkendif
65ae6d1056SWolfgang Denk
66ae6d1056SWolfgang Denk#########################################################################
67f9328639SMarian Balakowicz#
68f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external
69f9328639SMarian Balakowicz# directory. Two use cases are supported:
70f9328639SMarian Balakowicz#
71f9328639SMarian Balakowicz# 1) Add O= to the make command line
72f9328639SMarian Balakowicz# 'make O=/tmp/build all'
73f9328639SMarian Balakowicz#
74f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location
75f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
76f9328639SMarian Balakowicz# 'make'
77f9328639SMarian Balakowicz#
78f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script
79f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
80f9328639SMarian Balakowicz# './MAKEALL'
81f9328639SMarian Balakowicz#
82f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable.
83f9328639SMarian Balakowicz#
84f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and
85f9328639SMarian Balakowicz# the object files are placed in the source directory.
86f9328639SMarian Balakowicz#
877ebf7443Swdenk
88f9328639SMarian Balakowiczifdef O
89f9328639SMarian Balakowiczifeq ("$(origin O)", "command line")
90f9328639SMarian BalakowiczBUILD_DIR := $(O)
91f9328639SMarian Balakowiczendif
92f9328639SMarian Balakowiczendif
937ebf7443Swdenk
94f9328639SMarian Balakowiczifneq ($(BUILD_DIR),)
95f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR)
964f0645ebSMarian Balakowicz
974f0645ebSMarian Balakowicz# Attempt to create a output directory.
984f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
994f0645ebSMarian Balakowicz
1004f0645ebSMarian Balakowicz# Verify if it was successful.
101f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
102f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
103f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),)
104f9328639SMarian Balakowicz
105f9328639SMarian BalakowiczOBJTREE		:= $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
106f9328639SMarian BalakowiczSRCTREE		:= $(CURDIR)
107f9328639SMarian BalakowiczTOPDIR		:= $(SRCTREE)
108f9328639SMarian BalakowiczLNDIR		:= $(OBJTREE)
109f9328639SMarian Balakowiczexport	TOPDIR SRCTREE OBJTREE
110f9328639SMarian Balakowicz
111f9328639SMarian BalakowiczMKCONFIG	:= $(SRCTREE)/mkconfig
112f9328639SMarian Balakowiczexport MKCONFIG
113f9328639SMarian Balakowicz
114f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
115f9328639SMarian BalakowiczREMOTE_BUILD	:= 1
116f9328639SMarian Balakowiczexport REMOTE_BUILD
117f9328639SMarian Balakowiczendif
118f9328639SMarian Balakowicz
119f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile
120f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for
121f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc.
122f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
123f9328639SMarian Balakowiczobj := $(OBJTREE)/
124f9328639SMarian Balakowiczsrc := $(SRCTREE)/
125f9328639SMarian Balakowiczelse
126f9328639SMarian Balakowiczobj :=
127f9328639SMarian Balakowiczsrc :=
128f9328639SMarian Balakowiczendif
129f9328639SMarian Balakowiczexport obj src
130f9328639SMarian Balakowicz
1315013c09fSWolfgang Denk# Make sure CDPATH settings don't interfere
1325013c09fSWolfgang Denkunexport CDPATH
1335013c09fSWolfgang Denk
134f9328639SMarian Balakowicz#########################################################################
135f9328639SMarian Balakowicz
136f8f9dc98SKumar Galaifeq ($(ARCH),powerpc)
137f8f9dc98SKumar GalaARCH = ppc
138f8f9dc98SKumar Galaendif
139f8f9dc98SKumar Gala
140ae6d1056SWolfgang Denkifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
141f9328639SMarian Balakowicz
1427ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
143ae6d1056SWolfgang Denkinclude $(obj)include/config.mk
1441d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
145f9328639SMarian Balakowicz
1467ebf7443Swdenkifndef CROSS_COMPILE
147a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH))
1487ebf7443SwdenkCROSS_COMPILE =
1497ebf7443Swdenkelse
1507ebf7443Swdenkifeq ($(ARCH),ppc)
15116c8d5e7SWolfgang DenkCROSS_COMPILE = ppc_8xx-
1527ebf7443Swdenkendif
1537ebf7443Swdenkifeq ($(ARCH),arm)
154dc7c9a1aSwdenkCROSS_COMPILE = arm-linux-
1557ebf7443Swdenkendif
1562262cfeeSwdenkifeq ($(ARCH),i386)
1577a8e9bedSwdenkCROSS_COMPILE = i386-linux-
1587a8e9bedSwdenkendif
15943d9616cSwdenkifeq ($(ARCH),mips)
16043d9616cSwdenkCROSS_COMPILE = mips_4KC-
16143d9616cSwdenkendif
1624a551709Swdenkifeq ($(ARCH),nios)
1634a551709SwdenkCROSS_COMPILE = nios-elf-
1644a551709Swdenkendif
1655c952cf0Swdenkifeq ($(ARCH),nios2)
1665c952cf0SwdenkCROSS_COMPILE = nios2-elf-
1675c952cf0Swdenkendif
1684e5ca3ebSwdenkifeq ($(ARCH),m68k)
1694e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
1704e5ca3ebSwdenkendif
171507bbe3eSwdenkifeq ($(ARCH),microblaze)
172507bbe3eSwdenkCROSS_COMPILE = mb-
173507bbe3eSwdenkendif
1740afe519aSWolfgang Denkifeq ($(ARCH),blackfin)
175ef26a08fSAubrey.LiCROSS_COMPILE = bfin-uclinux-
1760afe519aSWolfgang Denkendif
1777b64fef3SWolfgang Denkifeq ($(ARCH),avr32)
1785374b36dSHaavard SkinnemoenCROSS_COMPILE = avr32-linux-
1797b64fef3SWolfgang Denkendif
1800b135cfcSNobuhiro Iwamatsuifeq ($(ARCH),sh)
1810b135cfcSNobuhiro IwamatsuCROSS_COMPILE = sh4-linux-
182c2f02da2SDaniel Hellstromendif
183c2f02da2SDaniel Hellstromifeq ($(ARCH),sparc)
184c2f02da2SDaniel HellstromCROSS_COMPILE = sparc-elf-
185c2f02da2SDaniel Hellstromendif	# sparc
186ae6d1056SWolfgang Denkendif	# HOSTARCH,ARCH
187ae6d1056SWolfgang Denkendif	# CROSS_COMPILE
1887ebf7443Swdenk
1897ebf7443Swdenkexport	CROSS_COMPILE
1907ebf7443Swdenk
19192b197f0SWolfgang Denk# load other configuration
19292b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk
19392b197f0SWolfgang Denk
1947ebf7443Swdenk#########################################################################
1957ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
1967ebf7443Swdenk
1977ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
1982262cfeeSwdenkifeq ($(CPU),i386)
1992262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
20085ffbbd5SGraeme RussOBJS += cpu/$(CPU)/resetvec.o
2012262cfeeSwdenkendif
2027ebf7443Swdenkifeq ($(CPU),ppc4xx)
2037ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
2047ebf7443Swdenkendif
20542d1f039Swdenkifeq ($(CPU),mpc85xx)
20642d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
20742d1f039Swdenkendif
2087ebf7443Swdenk
209f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS))
210f9328639SMarian Balakowicz
2119fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
212fc9c1727SLuigi 'Comio' MantelliniLIBS += lib_generic/lzma/liblzma.a
2137608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
2147608d75fSKim Phillips	"board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
2157ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
2161d9f4105Swdenkifdef SOC
2171d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
2181d9f4105Swdenkendif
219323bfa8fSStefan Roeseifeq ($(CPU),ixp)
220323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a
221323bfa8fSStefan Roeseendif
2227ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
223518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
22443ea36fbSWilliam Juul	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a
2257ebf7443SwdenkLIBS += net/libnet.a
2267ebf7443SwdenkLIBS += disk/libdisk.a
2270f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a
22833daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a
22957a12720STsiChungLiewLIBS += drivers/dma/libdma.a
230c8aa7dfcSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/fpga/libfpga.a
231e92739d3SPeter TyserLIBS += drivers/gpio/libgpio.a
232f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a
233080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a
23416b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a
235318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a
2365ce13051SHaavard SkinnemoenLIBS += drivers/mmc/libmmc.a
23759829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a
23859829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a
23959829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a
24059829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a
24158be3a10SKyungmin ParkLIBS += drivers/mtd/ubi/libubi.a
242d25ce7d2SHaavard SkinnemoenLIBS += drivers/mtd/spi/libspi_flash.a
2438e585f02STsiChung LiewLIBS += drivers/net/libnet.a
24455195773SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/phy/libphy.a
2452439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a
24693a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a
24773646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a
24804a9e118SBen WarrenLIBS += drivers/spi/libspi.a
2497737d5c6SDave Liuifeq ($(CPU),mpc83xx)
2507737d5c6SDave LiuLIBS += drivers/qe/qe.a
2517737d5c6SDave Liuendif
252da9d4610SAndy Flemingifeq ($(CPU),mpc85xx)
253da9d4610SAndy FlemingLIBS += drivers/qe/qe.a
25458e5e9afSKumar GalaLIBS += cpu/mpc8xxx/ddr/libddr.a
2555e981d68SEd SwarthoutTAG_SUBDIRS += cpu/mpc8xxx
25658e5e9afSKumar Galaendif
25758e5e9afSKumar Galaifeq ($(CPU),mpc86xx)
25858e5e9afSKumar GalaLIBS += cpu/mpc8xxx/ddr/libddr.a
2595e981d68SEd SwarthoutTAG_SUBDIRS += cpu/mpc8xxx
260da9d4610SAndy Flemingendif
26159829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a
2628e585f02STsiChung LiewLIBS += drivers/serial/libserial.a
26359829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a
26459829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a
2657ebf7443SwdenkLIBS += common/libcommon.a
2667651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a
267500856ebSRafal JaworowskiLIBS += api/libapi.a
2682d2b994aSYuri TikhonovLIBS += post/libpost.a
269f9328639SMarian Balakowicz
270f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS))
271561858eeSPeter Tyser.PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE)
272a8c7c708Swdenk
273de109d90SWolfgang DenkLIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
274de109d90SWolfgang DenkLIBBOARD := $(addprefix $(obj),$(LIBBOARD))
275de109d90SWolfgang Denk
2764f7cb08eSwdenk# Add GCC lib
2771a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
2783d3befa7Swdenk
279a8c7c708Swdenk# The "tools" are needed early, so put this first
280a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
281a8c7c708SwdenkSUBDIRS	= tools \
2820dc1fc22SRafal Jaworowski	  examples \
2830dc1fc22SRafal Jaworowski	  api_examples
284500856ebSRafal Jaworowski
285b028f715Swdenk.PHONY : $(SUBDIRS)
286a8c7c708Swdenk
287887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y)
288887e2ec9SStefan RoeseNAND_SPL = nand_spl
289887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin
290887e2ec9SStefan Roeseendif
291887e2ec9SStefan Roese
292751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y)
293751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl
294751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin
295751b9b51SKyungmin Parkendif
296751b9b51SKyungmin Park
297f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS))
298de109d90SWolfgang Denk__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
299f9328639SMarian Balakowicz
3007ebf7443Swdenk#########################################################################
301bdccc4feSwdenk#########################################################################
3027ebf7443Swdenk
303751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
30494a91e24SMike Frysingerifeq ($(ARCH),blackfin)
30594a91e24SMike FrysingerALL += $(obj)u-boot.ldr
30694a91e24SMike Frysingerendif
3077ebf7443Swdenk
308bdccc4feSwdenkall:		$(ALL)
3097ebf7443Swdenk
310f9328639SMarian Balakowicz$(obj)u-boot.hex:	$(obj)u-boot
3116310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
3126310eb9dSwdenk
313f9328639SMarian Balakowicz$(obj)u-boot.srec:	$(obj)u-boot
3140817d688SRicardo Ribalda Delgado		$(OBJCOPY) -O srec $< $@
3157ebf7443Swdenk
316f9328639SMarian Balakowicz$(obj)u-boot.bin:	$(obj)u-boot
3177ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
3187ebf7443Swdenk
31994a91e24SMike Frysinger$(obj)u-boot.ldr:	$(obj)u-boot
32068e56324SMike Frysinger		$(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS)
32194a91e24SMike Frysinger
32294a91e24SMike Frysinger$(obj)u-boot.ldr.hex:	$(obj)u-boot.ldr
32394a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
32494a91e24SMike Frysinger
32594a91e24SMike Frysinger$(obj)u-boot.ldr.srec:	$(obj)u-boot.ldr
32694a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
32794a91e24SMike Frysinger
328f9328639SMarian Balakowicz$(obj)u-boot.img:	$(obj)u-boot.bin
329bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
330bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
331881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
332bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
333bdccc4feSwdenk		-d $< $@
334bdccc4feSwdenk
335566a494fSHeiko Schocher$(obj)u-boot.sha1:	$(obj)u-boot.bin
33601159530SHeiko Schocher		$(obj)tools/ubsha1 $(obj)u-boot.bin
337566a494fSHeiko Schocher
338f9328639SMarian Balakowicz$(obj)u-boot.dis:	$(obj)u-boot
3397ebf7443Swdenk		$(OBJDUMP) -d $< > $@
3407ebf7443Swdenk
341de109d90SWolfgang Denk$(obj)u-boot:		depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
342de109d90SWolfgang Denk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
343de109d90SWolfgang Denk		sed  -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
344f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
345f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
346b2184c31Swdenk			-Map u-boot.map -o u-boot
3477ebf7443Swdenk
34888f72527SJohannes Stezenbach$(OBJS):	depend $(obj)include/autoconf.mk
349f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
350f9328639SMarian Balakowicz
3519ffd53dbSJean-Christophe PLAGNIOL-VILLARD$(LIBS):	depend $(obj)include/autoconf.mk $(SUBDIRS)
352f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
353a8c7c708Swdenk
354de109d90SWolfgang Denk$(LIBBOARD):	depend $(LIBS) $(obj)include/autoconf.mk
355de109d90SWolfgang Denk		$(MAKE) -C $(dir $(subst $(obj),,$@))
356de109d90SWolfgang Denk
35788f72527SJohannes Stezenbach$(SUBDIRS):	depend $(obj)include/autoconf.mk
358b028f715Swdenk		$(MAKE) -C $@ all
3597ebf7443Swdenk
360f65c9812SMike Frysinger$(LDSCRIPT):	depend $(obj)include/autoconf.mk
361f65c9812SMike Frysinger		$(MAKE) -C $(dir $@) $(notdir $@)
362f65c9812SMike Frysinger
363561858eeSPeter Tyser$(NAND_SPL):	$(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
3648318fbf8SMarian Balakowicz		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
365887e2ec9SStefan Roese
366dd531aacSWolfgang Denk$(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
3678318fbf8SMarian Balakowicz		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
368887e2ec9SStefan Roese
369561858eeSPeter Tyser$(ONENAND_IPL):	$(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
370f2302d44SStefan Roese		$(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
371751b9b51SKyungmin Park
372751b9b51SKyungmin Park$(U_BOOT_ONENAND):	$(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
373751b9b51SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
3741bb707c3SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
375751b9b51SKyungmin Park
376ae6d1056SWolfgang Denk$(VERSION_FILE):
377aa737945SMike Frysinger		@( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
378434c51a5SPeter Tyser		 '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp
3790ec7a061SMike Frysinger		@cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
380881a87ecSWolfgang Denk
381561858eeSPeter Tyser$(TIMESTAMP_FILE):
382561858eeSPeter Tyser		@date +'#define U_BOOT_DATE "%b %d %C%y"' > $@
383561858eeSPeter Tyser		@date +'#define U_BOOT_TIME "%T"' >> $@
384561858eeSPeter Tyser
3858f713fdfSdzugdbtools:
386f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
387f9328639SMarian Balakowicz
388f9328639SMarian Balakowiczupdater:
389f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
390f9328639SMarian Balakowicz
391f9328639SMarian Balakowiczenv:
39264b3727bSMarkus Klotzbücher		$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
3938f713fdfSdzu
394561858eeSPeter Tyserdepend dep:	$(TIMESTAMP_FILE) $(VERSION_FILE)
395f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
3967ebf7443Swdenk
397a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include
398a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR)
399a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU)
400a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH)
401a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs
402a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat
403a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos
404a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2
40543ea36fbSWilliam JuulTAG_SUBDIRS += fs/yaffs2
406a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net
407a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk
408a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common
409a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator
410a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block
411e92739d3SPeter TyserTAG_SUBDIRS += drivers/gpio
412a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon
413a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c
414a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input
415a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc
4165ce13051SHaavard SkinnemoenTAG_SUBDIRS += drivers/mmc
417a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd
418a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand
419a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy
420a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand
421d25ce7d2SHaavard SkinnemoenTAG_SUBDIRS += drivers/mtd/spi
422a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net
423a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin
424a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci
425a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia
426a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe
427a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc
428a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial
42904a9e118SBen WarrenTAG_SUBDIRS += drivers/spi
430a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb
431a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video
432a340c325SJean-Christophe PLAGNIOL-VILLARD
433f9328639SMarian Balakowicztags ctags:
434ae6d1056SWolfgang Denk		ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
43588fed9a1SWolfgang Denk						-name '*.[ch]' -print`
4367ebf7443Swdenk
4377ebf7443Swdenketags:
438ae6d1056SWolfgang Denk		etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
43988fed9a1SWolfgang Denk						-name '*.[ch]' -print`
440ffda586fSLi Yangcscope:
441ffda586fSLi Yang		find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
442ffda586fSLi Yang						> cscope.files
443ffda586fSLi Yang		cscope -b -q -k
4447ebf7443Swdenk
445f9328639SMarian Balakowicz$(obj)System.map:	$(obj)u-boot
4467ebf7443Swdenk		@$(NM) $< | \
4477ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
448f9328639SMarian Balakowicz		sort > $(obj)System.map
4497ebf7443Swdenk
4502f155f6cSGrant Likely#
4512f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles)
4522f155f6cSGrant Likely#
4532f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
4542f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when
4552f155f6cSGrant Likely# to regenerate the autoconf.mk file.
4561510b82dSWolfgang Denk$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
4571510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
45816fe7775SMike Frysinger	set -e ; \
459ae6d1056SWolfgang Denk	: Generate the dependancies ; \
4601510b82dSWolfgang Denk	$(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
4611510b82dSWolfgang Denk		-MQ $(obj)include/autoconf.mk include/common.h > $@
4621510b82dSWolfgang Denk
4631510b82dSWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h
4641510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
4651510b82dSWolfgang Denk	set -e ; \
466ae6d1056SWolfgang Denk	: Extract the config macros ; \
4671510b82dSWolfgang Denk	$(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
4684a0f7538SWolfgang Denk		sed -n -f tools/scripts/define2mk.sed > $@.tmp && \
4694a0f7538SWolfgang Denk	mv $@.tmp $@
4702f155f6cSGrant Likely
471ae6d1056SWolfgang Denksinclude $(obj)include/autoconf.mk.dep
4722f155f6cSGrant Likely
4737ebf7443Swdenk#########################################################################
474ae6d1056SWolfgang Denkelse	# !config.mk
475f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
476f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
477561858eeSPeter Tyser$(SUBDIRS) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools updater env depend \
478ffda586fSLi Yangdep tags ctags etags cscope $(obj)System.map:
4797ebf7443Swdenk	@echo "System not configured - see README" >&2
4807ebf7443Swdenk	@ exit 1
481ae6d1056SWolfgang Denkendif	# config.mk
4827ebf7443Swdenk
4834e53a258SWolfgang Denk.PHONY : CHANGELOG
4844e53a258SWolfgang DenkCHANGELOG:
485b985b5d6SBen Warren	git log --no-merges U-Boot-1_1_5.. | \
486b985b5d6SBen Warren	unexpand -a | sed -e 's/\s\s*$$//' > $@
4874e53a258SWolfgang Denk
4880a823aa2SHarald Welteinclude/license.h: tools/bin2header COPYING
4890a823aa2SHarald Welte	 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
4907ebf7443Swdenk#########################################################################
4917ebf7443Swdenk
4927ebf7443Swdenkunconfig:
493887e2ec9SStefan Roese	@rm -f $(obj)include/config.h $(obj)include/config.mk \
4942f155f6cSGrant Likely		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
4952f155f6cSGrant Likely		$(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
4967ebf7443Swdenk
4977ebf7443Swdenk#========================================================================
4987ebf7443Swdenk# PowerPC
4997ebf7443Swdenk#========================================================================
5000db5bca8Swdenk
5010db5bca8Swdenk#########################################################################
5020db5bca8Swdenk## MPC5xx Systems
5030db5bca8Swdenk#########################################################################
5040db5bca8Swdenk
5055e5f9ed2Swdenkcanmb_config:	unconfig
506f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
5075e5f9ed2Swdenk
5080db5bca8Swdenkcmi_mpc5xx_config:	unconfig
509f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
5100db5bca8Swdenk
511b6e4c403SwdenkPATI_config:		unconfig
512f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
513b6e4c403Swdenk
5147ebf7443Swdenk#########################################################################
515945af8d7Swdenk## MPC5xxx Systems
516945af8d7Swdenk#########################################################################
517a87589daSwdenk
518dafba16eSWolfgang Denkaev_config: unconfig
5194677988cSWolfgang Grandegger	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
520dafba16eSWolfgang Denk
5216ca24c64Sdzu@denx.deBC3450_config:	unconfig
522f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
5236ca24c64Sdzu@denx.de
524699f0512SWolfgang Denkcm5200_config:	unconfig
525699f0512SWolfgang Denk	@$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
526699f0512SWolfgang Denk
5275e4b3361SStefan Roesecpci5200_config:  unconfig
528f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
5295e4b3361SStefan Roese
530a87589daSwdenkhmi1001_config:	unconfig
531f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
532a87589daSwdenk
533e35745bbSwdenkLite5200_config				\
534e35745bbSwdenkLite5200_LOWBOOT_config			\
535e35745bbSwdenkLite5200_LOWBOOT08_config		\
536e35745bbSwdenkicecube_5200_config			\
537e35745bbSwdenkicecube_5200_LOWBOOT_config		\
538e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
539b2001f27Swdenkicecube_5200_DDR_config			\
54079d696fcSwdenkicecube_5200_DDR_LOWBOOT_config		\
54179d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
542e35745bbSwdenkicecube_5100_config:			unconfig
543f9328639SMarian Balakowicz	@mkdir -p $(obj)include
544f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
54517d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
54617d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
547f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
548f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
54917d704ebSwdenk		  fi ; \
550ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5515cf9da48Swdenk		}
5525cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
553f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
5545cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
555ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5565cf9da48Swdenk		}
557b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
558f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
559ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
560b2001f27Swdenk		}
561d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
562f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
563ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
564d4ca31c4Swdenk		}
565a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
566f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
567ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
568945af8d7Swdenk		}
569f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
570945af8d7Swdenk
5712605e90bSHeiko Schocherjupiter_config:	unconfig
5722605e90bSHeiko Schocher	@$(MKCONFIG) jupiter ppc mpc5xxx jupiter
5732605e90bSHeiko Schocher
574138ff60cSwdenkinka4x0_config:	unconfig
575f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
576138ff60cSwdenk
57709e4b0c5SWolfgang Denklite5200b_config	\
578d3832e8fSDomen Puncerlite5200b_PM_config	\
57909e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
580f9328639SMarian Balakowicz	@mkdir -p $(obj)include
581f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
582f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
583ae6d1056SWolfgang Denk	@ $(XECHO) "... DDR memory revision"
584f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
585f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
586d3832e8fSDomen Puncer	@[ -z "$(findstring _PM_,$@)" ] || \
587d3832e8fSDomen Puncer		{ echo "#define CONFIG_LITE5200B_PM"	>>$(obj)include/config.h ; \
588ae6d1056SWolfgang Denk		  $(XECHO) "... with power management (low-power mode) support" ; \
589d3832e8fSDomen Puncer		}
59009e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
591f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
592ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
59309e4b0c5SWolfgang Denk		}
594ae6d1056SWolfgang Denk	@ $(XECHO) "... with MPC5200B processor"
595f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
59609e4b0c5SWolfgang Denk
597f1ee9825SStefan Roesemcc200_config	\
598ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
599ed1cf845SWolfgang Denkmcc200_highboot_config	\
600ed1cf845SWolfgang Denkmcc200_COM12_config	\
601ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
602113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
603113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
604ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
605ed1cf845SWolfgang Denkprs200_config	\
606ed1cf845SWolfgang Denkprs200_DDR_config	\
607ed1cf845SWolfgang Denkprs200_highboot_config	\
608ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
609f9328639SMarian Balakowicz	@mkdir -p $(obj)include
610f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
6114819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
612ae6d1056SWolfgang Denk		{ $(XECHO) "... with lowboot configuration" ; \
613f1ee9825SStefan Roese		}
6144819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
615f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
616ae6d1056SWolfgang Denk		  $(XECHO) "... with highboot configuration" ; \
6174819fad9SWolfgang Denk		}
6184819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
619ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
620ed1cf845SWolfgang Denk		  then \
621ae6d1056SWolfgang Denk			$(XECHO) "... with DDR" ; \
622ed1cf845SWolfgang Denk		  else \
623ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
624ed1cf845SWolfgang Denk			then \
625ae6d1056SWolfgang Denk				$(XECHO) "... with DDR" ; \
626ed1cf845SWolfgang Denk			else \
627f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
628ae6d1056SWolfgang Denk				$(XECHO) "... with SDRAM" ; \
629ed1cf845SWolfgang Denk			fi; \
630ed1cf845SWolfgang Denk		  fi; \
6314819fad9SWolfgang Denk		}
6324819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
633f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
634ae6d1056SWolfgang Denk		  $(XECHO) "... with SDRAM" ; \
6354819fad9SWolfgang Denk		}
636463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
637f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
638ae6d1056SWolfgang Denk		  $(XECHO) "... with console on COM12" ; \
639463764c8SWolfgang Denk		}
640ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
641f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"	>>$(obj)include/config.h ;\
642ed1cf845SWolfgang Denk		}
643f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
64486ea5f93SWolfgang Denk
6458b7d1f0aSStefan Roesemecp5200_config:  unconfig
646ae6d1056SWolfgang Denk	@$(MKCONFIG) mecp5200  ppc mpc5xxx mecp5200 esd
6478b7d1f0aSStefan Roese
648699f0512SWolfgang Denkmotionpro_config:	unconfig
649699f0512SWolfgang Denk	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
650699f0512SWolfgang Denk
651258c37b1SHeiko Schochermucmc52_config:		unconfig
652258c37b1SHeiko Schocher	@$(MKCONFIG) mucmc52 ppc mpc5xxx mucmc52
653258c37b1SHeiko Schocher
6546341d9d7SHeiko Schochermunices_config:	unconfig
655ae6d1056SWolfgang Denk	@$(MKCONFIG) munices ppc mpc5xxx munices
6566341d9d7SHeiko Schocher
657699f0512SWolfgang DenkMVBC_P_config: unconfig
658699f0512SWolfgang Denk	@mkdir -p $(obj)include
659699f0512SWolfgang Denk	@mkdir -p $(obj)board/mvbc_p
660699f0512SWolfgang Denk	@ >$(obj)include/config.h
661699f0512SWolfgang Denk	@[ -z "$(findstring MVBC_P,$@)" ] || \
662699f0512SWolfgang Denk	{   	echo "#define CONFIG_MVBC_P" 	>>$(obj)include/config.h; }
663699f0512SWolfgang Denk	@$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
664699f0512SWolfgang Denk
66591c82076SJean-Christophe PLAGNIOL-VILLARDo2dnt_config:	unconfig
666f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
667df04a3dfSWolfgang Denk
6685e4b3361SStefan Roesepf5200_config:	unconfig
669f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
6705e4b3361SStefan Roese
67189394047SwdenkPM520_config \
67289394047SwdenkPM520_DDR_config \
67389394047SwdenkPM520_ROMBOOT_config \
67489394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
675f9328639SMarian Balakowicz	@mkdir -p $(obj)include
67689394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
677f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
678ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
67989394047Swdenk		}
68089394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
681f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
682ae6d1056SWolfgang Denk		  $(XECHO) "... booting from 8-bit flash" ; \
68389394047Swdenk		}
684f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
68589394047Swdenk
6866624b687SWolfgang Denksmmaco4_config: unconfig
6874677988cSWolfgang Grandegger	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
6889cdc8386SWolfgang Denk
6899cdc8386SWolfgang Denkspieval_config:	unconfig
6904677988cSWolfgang Grandegger	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
6919cdc8386SWolfgang Denk
69245a212c4SWolfgang DenkTB5200_B_config \
693b87dfd28SWolfgang DenkTB5200_config:	unconfig
694f9328639SMarian Balakowicz	@mkdir -p $(obj)include
69545a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
696f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
697ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200B processor" ; \
69845a212c4SWolfgang Denk		}
6994677988cSWolfgang Grandegger	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
700b87dfd28SWolfgang Denk
701d4ca31c4SwdenkMINI5200_config	\
702d4ca31c4SwdenkEVAL5200_config	\
703d4ca31c4SwdenkTOP5200_config:	unconfig
704f9328639SMarian Balakowicz	@mkdir -p $(obj)include
705f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
706f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
707d4ca31c4Swdenk
7086c7a1408SwdenkTotal5100_config		\
7096c7a1408SwdenkTotal5200_config		\
7106c7a1408SwdenkTotal5200_lowboot_config	\
7116c7a1408SwdenkTotal5200_Rev2_config		\
7126c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
713f9328639SMarian Balakowicz	@mkdir -p $(obj)include
714f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
7156c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
716f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
717ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
7186c7a1408Swdenk		}
7196c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
720f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
721ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
7226c7a1408Swdenk		}
7236c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
724f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
725ae6d1056SWolfgang Denk		  $(XECHO) "... revision 1 board" ; \
7266c7a1408Swdenk		}
7276c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
728f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
729ae6d1056SWolfgang Denk		  $(XECHO) "... revision 2 board" ; \
7306c7a1408Swdenk		}
7316c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
732f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
733ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
7346c7a1408Swdenk		}
735f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
7366c7a1408Swdenk
7375196a7a0SWolfgang Denkcam5200_config \
738d9384de2SMarian Balakowiczcam5200_niosflash_config \
7395196a7a0SWolfgang Denkfo300_config \
7405196a7a0SWolfgang DenkMiniFAP_config \
7415078cce8SWolfgang DenkTQM5200S_config \
7425078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
7435196a7a0SWolfgang DenkTQM5200_B_config \
7445196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
7455196a7a0SWolfgang DenkTQM5200_config	\
7465196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
747f9328639SMarian Balakowicz	@mkdir -p $(obj)include
7484677988cSWolfgang Grandegger	@mkdir -p $(obj)board/tqc/tqm5200
749135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
750f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
751f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
752f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
753ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200S on Cam5200" ; \
7545078cce8SWolfgang Denk		}
755d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
756d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
757ae6d1056SWolfgang Denk		  $(XECHO) "... with NIOS flash driver" ; \
758d9384de2SMarian Balakowicz		}
7596d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
760f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
761ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200 on FO300" ; \
7626d3bc9b8SMarian Balakowicz		}
763cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
764f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
765ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200_AC on MiniFAP" ; \
766978b1096SWolfgang Denk		}
767cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
768f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
769ae6d1056SWolfgang Denk		  $(XECHO) "... on a STK52XX.100 base board" ; \
77056523f12Swdenk		}
7715078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
772f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
7735078cce8SWolfgang Denk		}
7745078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
775f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
776f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
77745a212c4SWolfgang Denk		}
778978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
779f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
780978b1096SWolfgang Denk		}
7814677988cSWolfgang Grandegger	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
782699f0512SWolfgang Denk
7836dedf3d4SHeiko Schocheruc101_config:		unconfig
7846dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
78553d4a498SBartlomiej Sieka
786699f0512SWolfgang Denkv38b_config: unconfig
787699f0512SWolfgang Denk	@$(MKCONFIG) -a v38b ppc mpc5xxx v38b
78856523f12Swdenk
789945af8d7Swdenk#########################################################################
7908993e54bSRafal Jaworowski## MPC512x Systems
7918993e54bSRafal Jaworowski#########################################################################
792699f0512SWolfgang Denk
7935f91db7fSJohn Rigbyads5121_config \
794f31c49dbSMartha Marxads5121_rev2_config	\
7955f91db7fSJohn Rigby	: unconfig
796210ed200SWolfgang Denk	@mkdir -p $(obj)include
797f31c49dbSMartha Marx	@if [ "$(findstring rev2,$@)" ] ; then \
798f31c49dbSMartha Marx		echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
7995f91db7fSJohn Rigby	fi
8005f91db7fSJohn Rigby	@$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
8018993e54bSRafal Jaworowski
8028993e54bSRafal Jaworowski
8038993e54bSRafal Jaworowski#########################################################################
8047ebf7443Swdenk## MPC8xx Systems
8057ebf7443Swdenk#########################################################################
8067ebf7443Swdenk
8072d24a3a7SwdenkAdder_config	\
8082d24a3a7SwdenkAdder87x_config \
80926238132SwdenkAdderII_config	\
8102d24a3a7Swdenk	:		unconfig
811f9328639SMarian Balakowicz	@mkdir -p $(obj)include
81226238132Swdenk	$(if $(findstring AdderII,$@), \
813f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
814f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
8152d24a3a7Swdenk
81616c8d5e7SWolfgang DenkAdderUSB_config:	unconfig
81791c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
81816c8d5e7SWolfgang Denk
819180d3f74SwdenkADS860_config	  \
820180d3f74SwdenkFADS823_config	  \
821180d3f74SwdenkFADS850SAR_config \
822180d3f74SwdenkMPC86xADS_config  \
8231114257cSwdenkMPC885ADS_config  \
824180d3f74SwdenkFADS860T_config:	unconfig
825f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
8267ebf7443Swdenk
8277ebf7443SwdenkAMX860_config	:	unconfig
828f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
8297ebf7443Swdenk
8307ebf7443Swdenkc2mon_config:		unconfig
831f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
8327ebf7443Swdenk
8337ebf7443SwdenkCCM_config:		unconfig
834f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
8357ebf7443Swdenk
8367ebf7443Swdenkcogent_mpc8xx_config:	unconfig
837f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
8387ebf7443Swdenk
8393bac3513SwdenkELPT860_config:		unconfig
840f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
8413bac3513Swdenk
84284c960ceSWolfgang DenkEP88x_config:		unconfig
843f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
84484c960ceSWolfgang Denk
8457ebf7443SwdenkESTEEM192E_config:	unconfig
846f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
8477ebf7443Swdenk
8487ebf7443SwdenkETX094_config	:	unconfig
849f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
8507ebf7443Swdenk
8517ebf7443SwdenkFLAGADM_config:	unconfig
852f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
8537ebf7443Swdenk
8547aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
8557aa78614Swdenk
8567aa78614SwdenkGEN860T_SC_config	\
8577ebf7443SwdenkGEN860T_config: unconfig
858f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8597aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
860f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
861ae6d1056SWolfgang Denk		  $(XECHO) "With reduced H/W feature set (SC)..." ; \
8627aa78614Swdenk		}
863f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
8647ebf7443Swdenk
8657ebf7443SwdenkGENIETV_config:	unconfig
866f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
8677ebf7443Swdenk
8687ebf7443SwdenkGTH_config:	unconfig
869f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
8707ebf7443Swdenk
8717ebf7443Swdenkhermes_config	:	unconfig
872f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
8737ebf7443Swdenk
874c40b2956SwdenkHMI10_config	:	unconfig
8754677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
876c40b2956Swdenk
8777ebf7443SwdenkIAD210_config: unconfig
878f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
8797ebf7443Swdenk
8807ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
8817ebf7443Swdenk
8827ebf7443SwdenkICU862_100MHz_config	\
8837ebf7443SwdenkICU862_config: unconfig
884f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8857ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
886f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
887ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
8887ebf7443Swdenk		}
889f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
8907ebf7443Swdenk
8917ebf7443SwdenkIP860_config	:	unconfig
892f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
8937ebf7443Swdenk
8947ebf7443SwdenkIVML24_256_config \
8957ebf7443SwdenkIVML24_128_config \
8967ebf7443SwdenkIVML24_config:	unconfig
897f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8987ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
899f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
9007ebf7443Swdenk		 }
9017ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
902f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
9037ebf7443Swdenk		 }
9047ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
905f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
9067ebf7443Swdenk		 }
907f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
9087ebf7443Swdenk
9097ebf7443SwdenkIVMS8_256_config \
9107ebf7443SwdenkIVMS8_128_config \
9117ebf7443SwdenkIVMS8_config:	unconfig
912f9328639SMarian Balakowicz	@mkdir -p $(obj)include
9137ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
914f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
9157ebf7443Swdenk		 }
9167ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
917f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
9187ebf7443Swdenk		 }
9197ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
920f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
9217ebf7443Swdenk		 }
922f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
9237ebf7443Swdenk
92456f94be3SwdenkKUP4K_config	:	unconfig
925f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
9260608e04dSwdenk
9270608e04dSwdenkKUP4X_config	:	unconfig
928f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
92956f94be3Swdenk
9307ebf7443SwdenkLANTEC_config	:	unconfig
931f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
9327ebf7443Swdenk
9337ebf7443Swdenklwmon_config:		unconfig
934f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
9357ebf7443Swdenk
9367ebf7443SwdenkMBX_config	\
9377ebf7443SwdenkMBX860T_config:	unconfig
938f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
9397ebf7443Swdenk
940381e4e63SHeiko Schochermgsuvd_config:		unconfig
94186e9cdf8SHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd keymile
942381e4e63SHeiko Schocher
9437ebf7443SwdenkMHPC_config:		unconfig
944f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
9457ebf7443Swdenk
946993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
947993cad93Swdenk
948993cad93SwdenkNETVIA_V2_config \
9497ebf7443SwdenkNETVIA_config:		unconfig
950f9328639SMarian Balakowicz	@mkdir -p $(obj)include
951993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
952f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
953ae6d1056SWolfgang Denk		  $(XECHO) "... Version 1" ; \
954993cad93Swdenk		 }
955993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
956f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
957ae6d1056SWolfgang Denk		  $(XECHO) "... Version 2" ; \
958993cad93Swdenk		 }
959f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
9607ebf7443Swdenk
961c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
962c26e454dSwdenk
963c26e454dSwdenkNETPHONE_V2_config \
96404a85b3bSwdenkNETPHONE_config:	unconfig
965f9328639SMarian Balakowicz	@mkdir -p $(obj)include
966c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
967f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
968c26e454dSwdenk		 }
969c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
970f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
971c26e454dSwdenk		 }
972f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
97304a85b3bSwdenk
97479fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
97504a85b3bSwdenk
97679fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
97779fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
97879fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
97979fa88f3SwdenkNETTA_SWAPHOOK_config \
98079fa88f3SwdenkNETTA_ISDN_6412_config \
98104a85b3bSwdenkNETTA_ISDN_config \
98279fa88f3SwdenkNETTA_6412_config \
98304a85b3bSwdenkNETTA_config:		unconfig
984f9328639SMarian Balakowicz	@mkdir -p $(obj)include
98579fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
986f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
98704a85b3bSwdenk		 }
98879fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
989f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
99079fa88f3Swdenk		 }
99179fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
992f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
99379fa88f3Swdenk		 }
99479fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
995f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
99679fa88f3Swdenk		 }
99779fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
998f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
99979fa88f3Swdenk		 }
100079fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
1001f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
100279fa88f3Swdenk		 }
1003f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
100404a85b3bSwdenk
100579fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
100679fa88f3Swdenk
100779fa88f3SwdenkNETTA2_V2_config \
100879fa88f3SwdenkNETTA2_config:		unconfig
1009f9328639SMarian Balakowicz	@mkdir -p $(obj)include
101079fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
1011f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
101279fa88f3Swdenk		 }
101379fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
1014f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
101579fa88f3Swdenk		 }
1016f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
101779fa88f3Swdenk
1018a367d426Sdzu@denx.deNC650_Rev1_config \
1019a367d426Sdzu@denx.deNC650_Rev2_config \
1020a367d426Sdzu@denx.deCP850_config:	unconfig
1021f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1022a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
1023f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
1024f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1025a367d426Sdzu@denx.de		 }
1026a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
1027f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1028a367d426Sdzu@denx.de		 }
1029a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
1030f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1031a367d426Sdzu@denx.de		 }
1032f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
10337ca202f5Swdenk
10347ebf7443SwdenkNX823_config:		unconfig
1035f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
10367ebf7443Swdenk
10377ebf7443Swdenkpcu_e_config:		unconfig
1038f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
10397ebf7443Swdenk
10403bbc899fSwdenkQS850_config:	unconfig
1041f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10423bbc899fSwdenk
10433bbc899fSwdenkQS823_config:	unconfig
1044f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10453bbc899fSwdenk
10463bbc899fSwdenkQS860T_config:	unconfig
1047f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
10483bbc899fSwdenk
1049da93ed81Swdenkquantum_config:	unconfig
1050f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1051da93ed81Swdenk
10527ebf7443SwdenkR360MPI_config:	unconfig
1053f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
10547ebf7443Swdenk
1055682011ffSwdenkRBC823_config:	unconfig
1056f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1057682011ffSwdenk
10587ebf7443SwdenkRPXClassic_config:	unconfig
1059f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
10607ebf7443Swdenk
10617ebf7443SwdenkRPXlite_config:		unconfig
1062f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
10637ebf7443Swdenk
1064e63c8ee3SwdenkRPXlite_DW_64_config		\
1065e63c8ee3SwdenkRPXlite_DW_LCD_config		\
1066e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
1067e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
1068e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config	\
1069e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
1070e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config	\
1071e63c8ee3SwdenkRPXlite_DW_config:	unconfig
1072f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1073e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
1074f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
1075ae6d1056SWolfgang Denk		  $(XECHO) "... with 64MHz system clock ..."; \
1076e63c8ee3Swdenk		}
1077e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1078f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1079f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1080ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display ..."; \
1081e63c8ee3Swdenk		}
1082e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
10839314cee6SJean-Christophe PLAGNIOL-VILLARD		{ echo "#define  CONFIG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
1084ae6d1056SWolfgang Denk		  $(XECHO) "... with ENV in NVRAM ..."; \
1085e63c8ee3Swdenk		}
1086f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1087e63c8ee3Swdenk
108873a8b27cSwdenkrmu_config:	unconfig
1089f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
109073a8b27cSwdenk
10917ebf7443SwdenkRRvision_config:	unconfig
1092f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
10937ebf7443Swdenk
10947ebf7443SwdenkRRvision_LCD_config:	unconfig
1095f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1096f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1097f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1098f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
10997ebf7443Swdenk
11007ebf7443SwdenkSM850_config	:	unconfig
11014677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
11027ebf7443Swdenk
110391c82076SJean-Christophe PLAGNIOL-VILLARDspc1920_config:		unconfig
1104f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1105b02d0177SMarkus Klotzbuecher
11067ebf7443SwdenkSPD823TS_config:	unconfig
1107f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
11087ebf7443Swdenk
11096bdf4306SWolfgang Denkstxxtc_config:	unconfig
1110f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
11116bdf4306SWolfgang Denk
1112dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
1113f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1114dc7c9a1aSwdenk
11157ebf7443SwdenkSXNI855T_config:	unconfig
1116f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
11177ebf7443Swdenk
1118db2f721fSwdenk# EMK MPC8xx based modules
1119db2f721fSwdenkTOP860_config:		unconfig
1120f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1121db2f721fSwdenk
11227ebf7443Swdenk# Play some tricks for configuration selection
1123e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
1124e9132ea9Swdenk# and only 823 boards may have LCD support
1125e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
11267ebf7443Swdenk
11277ebf7443SwdenkFPS850L_config		\
1128384ae025SwdenkFPS860L_config		\
1129f12e568cSwdenkNSCU_config		\
11307ebf7443SwdenkTQM823L_config		\
11317ebf7443SwdenkTQM823L_LCD_config	\
11327ebf7443SwdenkTQM850L_config		\
11337ebf7443SwdenkTQM855L_config		\
11347ebf7443SwdenkTQM860L_config		\
1135d126bfbdSwdenkTQM862L_config		\
1136ae3af05eSwdenkTQM823M_config		\
1137ae3af05eSwdenkTQM850M_config		\
1138f12e568cSwdenkTQM855M_config		\
1139f12e568cSwdenkTQM860M_config		\
1140f12e568cSwdenkTQM862M_config		\
11418cba090cSWolfgang DenkTQM866M_config		\
1142090eb735SMarkus KlotzbuecherTQM885D_config		\
1143efc6f447SGuennadi LiakhovetskiTK885D_config		\
11448cba090cSWolfgang Denkvirtlab2_config:	unconfig
1145f9328639SMarian Balakowicz	@mkdir -p $(obj)include
11467ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1147f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1148f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1149ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display" ; \
11507ebf7443Swdenk		}
11514677988cSWolfgang Grandegger	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
11527ebf7443Swdenk
11537ebf7443SwdenkTTTech_config:	unconfig
1154f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1155f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1156f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
11574677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
11587ebf7443Swdenk
1159ec0aee7bSwdenkuc100_config	:	unconfig
1160f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1161f7d1572bSwdenk
1162608c9146Swdenkv37_config:	unconfig
1163f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1164f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1165f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1166f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1167608c9146Swdenk
116891e940d9Sdzuwtk_config:	unconfig
1169f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1170f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1171f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
11724677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
117391e940d9Sdzu
11747ebf7443Swdenk#########################################################################
11757ebf7443Swdenk## PPC4xx Systems
11767ebf7443Swdenk#########################################################################
1177e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
11787ebf7443Swdenk
117916c0cc1cSStefan Roeseacadia_config:	unconfig
118016c0cc1cSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
118116c0cc1cSStefan Roese
1182c440bfe6SStefan Roeseacadia_nand_config:	unconfig
118363e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/acadia
118463e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/acadia
1185c440bfe6SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1186c440bfe6SStefan Roese	@$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1187c440bfe6SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1188c440bfe6SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1189c440bfe6SStefan Roese
11907ebf7443SwdenkADCIOP_config:	unconfig
1191f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
11927ebf7443Swdenk
1193899620c2SStefan Roesealpr_config:	unconfig
119435d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1195899620c2SStefan Roese
11967521af1cSWolfgang DenkAP1000_config:unconfig
1197f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
11987521af1cSWolfgang Denk
1199c419d1d6SstroeseAPC405_config:	unconfig
1200f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1201c419d1d6Sstroese
12027ebf7443SwdenkAR405_config:	unconfig
1203f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
12047ebf7443Swdenk
1205549826eaSstroeseASH405_config:	unconfig
1206f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1207549826eaSstroese
12088a316c9bSStefan Roesebamboo_config:	unconfig
1209f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
12108a316c9bSStefan Roese
1211cf959c7dSStefan Roesebamboo_nand_config:	unconfig
121263e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/bamboo
121363e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/bamboo
1214cf959c7dSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1215f3679aa1SStefan Roese	@$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1216cf959c7dSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1217cf959c7dSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1218cf959c7dSStefan Roese
12198a316c9bSStefan Roesebubinga_config:	unconfig
1220f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1221549826eaSstroese
12227ebf7443SwdenkCANBT_config:	unconfig
1223f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
12247ebf7443Swdenk
1225f09f09d3SAdam Graham# Arches, Canyonlands & Glacier use different U-Boot images
1226f09f09d3SAdam Grahamarches_config \
12274c9e8557SStefan Roesecanyonlands_config \
12284c9e8557SStefan Roeseglacier_config:	unconfig
12294c9e8557SStefan Roese	@mkdir -p $(obj)include
12304c9e8557SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
12314c9e8557SStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
12324c9e8557SStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1233c813f1f8SStefan Roese
1234fe7c0db6SStefan Roesecanyonlands_nand_config \
1235fe7c0db6SStefan Roeseglacier_nand_config:	unconfig
123671665ebfSStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/canyonlands
123771665ebfSStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/canyonlands
123871665ebfSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1239fe7c0db6SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1240fe7c0db6SStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
124171665ebfSStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
124271665ebfSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
124371665ebfSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
124471665ebfSStefan Roese
12451d6f9720SwdenkCATcenter_config	\
12461d6f9720SwdenkCATcenter_25_config	\
12471d6f9720SwdenkCATcenter_33_config:	unconfig
1248f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1249f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1250f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
12511d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1252f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1253ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
12541d6f9720Swdenk		}
12551d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1256f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1257ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
12581d6f9720Swdenk		}
1259f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
126010767ccbSwdenk
1261699f0512SWolfgang DenkCMS700_config:	unconfig
1262699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1263699f0512SWolfgang Denk
12647644f16fSStefan RoeseCPCI2DP_config:	unconfig
1265f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
12667644f16fSStefan Roese
12671951f847SMatthias FuchsCPCI405_config		\
1268549826eaSstroeseCPCI4052_config		\
1269c419d1d6SstroeseCPCI405DT_config	\
1270549826eaSstroeseCPCI405AB_config:	unconfig
1271dd794323SMatthias Fuchs	@mkdir -p $(obj)board/esd/cpci405
1272f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
12737ebf7443Swdenk
12747ebf7443SwdenkCPCIISER4_config:	unconfig
1275f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
12767ebf7443Swdenk
12777ebf7443SwdenkCRAYL1_config:	unconfig
1278f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
12797ebf7443Swdenk
1280cd0a9de6Swdenkcsb272_config:	unconfig
1281f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1282cd0a9de6Swdenk
1283aa245090Swdenkcsb472_config:	unconfig
1284f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1285aa245090Swdenk
12867ebf7443SwdenkDASA_SIM_config: unconfig
1287f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
12887ebf7443Swdenk
128972cd5aa7SstroeseDP405_config:	unconfig
1290f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
129172cd5aa7Sstroese
12927ebf7443SwdenkDU405_config:	unconfig
1293f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
12947ebf7443Swdenk
12951a3ac86bSMatthias FuchsDU440_config:	unconfig
12961a3ac86bSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
12971a3ac86bSMatthias Fuchs
12988a316c9bSStefan Roeseebony_config:	unconfig
1299f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
13007ebf7443Swdenk
13017ebf7443SwdenkERIC_config:	unconfig
1302f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
13037ebf7443Swdenk
1304d1cbe85bSwdenkEXBITGEN_config:	unconfig
1305f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1306d1cbe85bSwdenk
13075deb8022SGeorg Schardtfx12mm_flash_config: unconfig
13085deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
13095deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/avnet/fx12mm
13105deb8022SGeorg Schardt	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
13115deb8022SGeorg Schardt		> $(obj)board/avnet/fx12mm/config.tmp
13125deb8022SGeorg Schardt	@echo "TEXT_BASE := 0xFFCB0000" \
13135deb8022SGeorg Schardt		>> $(obj)board/avnet/fx12mm/config.tmp
13145deb8022SGeorg Schardt	@$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
13155deb8022SGeorg Schardt
13165deb8022SGeorg Schardtfx12mm_config: unconfig
13175deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
13185deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/avnet/fx12mm
13195deb8022SGeorg Schardt	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
13205deb8022SGeorg Schardt		> $(obj)board/avnet/fx12mm/config.tmp
13215deb8022SGeorg Schardt	@echo "TEXT_BASE := 0x03000000" \
13225deb8022SGeorg Schardt		>> $(obj)board/avnet/fx12mm/config.tmp
13235deb8022SGeorg Schardt	@$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
13245deb8022SGeorg Schardt
1325c419d1d6SstroeseG2000_config:	unconfig
1326f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1327c419d1d6Sstroese
132889b8619aSDirk Eibachgdppc440etx_config:	unconfig
132989b8619aSDirk Eibach	@$(MKCONFIG) $(@:_config=) ppc ppc4xx gdppc440etx gdsys
133089b8619aSDirk Eibach
1331ac982ea5SNiklaus Gigerhcu4_config:	unconfig
1332b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
133335d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1334ac982ea5SNiklaus Giger
1335ac982ea5SNiklaus Gigerhcu5_config:	unconfig
1336b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
133735d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1338ac982ea5SNiklaus Giger
1339c419d1d6SstroeseHH405_config:	unconfig
1340f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1341c419d1d6Sstroese
134272cd5aa7SstroeseHUB405_config:	unconfig
1343f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
134472cd5aa7Sstroese
1345db01a2eaSwdenkJSE_config:	unconfig
1346f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1347db01a2eaSwdenk
1348b79316f2SStefan RoeseKAREF_config: unconfig
1349f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1350b79316f2SStefan Roese
13514745acaaSStefan Roesekatmai_config:	unconfig
13524745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
13534745acaaSStefan Roese
1354353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR)
1355353f2688SStefan Roesekilauea_config \
1356353f2688SStefan Roesehaleakala_config: unconfig
1357353f2688SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1358566806caSStefan Roese
13593d6cb3b2SStefan Roesekilauea_nand_config \
13603d6cb3b2SStefan Roesehaleakala_nand_config: unconfig
13613d6cb3b2SStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/kilauea
13623d6cb3b2SStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/kilauea
13633d6cb3b2SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
13643d6cb3b2SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
13653d6cb3b2SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
13663d6cb3b2SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
13673d6cb3b2SStefan Roese
1368c591dffeSLarry Johnsonkorat_config:	unconfig
1369c591dffeSLarry Johnson	@$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1370c591dffeSLarry Johnson
13716e7fb6eaSStefan Roeseluan_config:	unconfig
1372f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
13736e7fb6eaSStefan Roese
1374b765ffb7SStefan Roeselwmon5_config:	unconfig
1375b765ffb7SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1376b765ffb7SStefan Roese
1377211ea91aSStefan Roesemakalu_config:	unconfig
1378211ea91aSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1379211ea91aSStefan Roese
1380b05f3543SNiklaus Gigermcu25_config:  unconfig
1381b05f3543SNiklaus Giger	@mkdir -p $(obj)board/netstal/common
1382b05f3543SNiklaus Giger	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1383b05f3543SNiklaus Giger
1384b79316f2SStefan RoeseMETROBOX_config: unconfig
1385f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1386b79316f2SStefan Roese
13877ebf7443SwdenkMIP405_config:	unconfig
1388f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
13897ebf7443Swdenk
1390f3e0de60SwdenkMIP405T_config:	unconfig
1391f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1392f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1393ae6d1056SWolfgang Denk	@$(XECHO) "Enable subset config for MIP405T"
1394f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1395f3e0de60Swdenk
13967ebf7443SwdenkML2_config:	unconfig
1397f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
13987ebf7443Swdenk
1399028ab6b5Swdenkml300_config:	unconfig
1400f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1401028ab6b5Swdenk
140201a00431SRicardo Ribalda Delgadoml507_flash_config: unconfig
1403880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
140401a00431SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ml507
1405880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1406880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ml507/config.tmp
1407880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
1408880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ml507/config.tmp
1409e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
141001a00431SRicardo Ribalda Delgado
1411086511fcSRicardo Ribalda Delgadoml507_config: unconfig
1412880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
141301a00431SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ml507
1414880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1415880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ml507/config.tmp
1416880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000"  \
1417880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ml507/config.tmp
1418e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1419086511fcSRicardo Ribalda Delgado
1420d7b26d58SDirk Eibachneo_config:	unconfig
1421d7b26d58SDirk Eibach	@$(MKCONFIG) $(@:_config=) ppc ppc4xx neo gdsys
1422d7b26d58SDirk Eibach
14238a316c9bSStefan Roeseocotea_config:	unconfig
1424f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
14250e6d798cSwdenk
14267ebf7443SwdenkOCRTC_config		\
14277ebf7443SwdenkORSG_config:	unconfig
1428f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
14297ebf7443Swdenk
14305568e613SStefan Roesep3p440_config:	unconfig
1431f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
14325568e613SStefan Roese
14337ebf7443SwdenkPCI405_config:	unconfig
1434f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
14357ebf7443Swdenk
1436a4c8d138SStefan Roesepcs440ep_config:	unconfig
1437f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1438a4c8d138SStefan Roese
14397ebf7443SwdenkPIP405_config:	unconfig
1440f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
14417ebf7443Swdenk
144272cd5aa7SstroesePLU405_config:	unconfig
1443f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
144472cd5aa7Sstroese
1445549826eaSstroesePMC405_config:	unconfig
1446f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1447549826eaSstroese
14488ba132caSMatthias FuchsPMC440_config:	unconfig
14498ba132caSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
14508ba132caSMatthias Fuchs
1451281e00a3SwdenkPPChameleonEVB_config		\
1452e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1453e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1454e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1455e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1456e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1457e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1458f9328639SMarian Balakowicz	@mkdir -p $(obj)include
14591d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1460f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1461ae6d1056SWolfgang Denk		  $(XECHO) "... BASIC model" ; \
1462fbe4b5cbSwdenk		}
14631d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1464f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1465ae6d1056SWolfgang Denk		  $(XECHO) "... MEDIUM model" ; \
1466fbe4b5cbSwdenk		}
14671d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1468f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1469ae6d1056SWolfgang Denk		  $(XECHO) "... HIGH-END model" ; \
1470fbe4b5cbSwdenk		}
1471e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1472f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1473ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
1474e55ca7e2Swdenk		}
1475e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1476f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1477ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
1478e55ca7e2Swdenk		}
1479f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
148012f34241Swdenk
148173ccb341SGary Jennejohnquad100hd_config:	unconfig
148273ccb341SGary Jennejohn	@$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
148373ccb341SGary Jennejohn
148411188d55SStefan Roeseredwood_config: unconfig
148511188d55SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
148611188d55SStefan Roese
1487430f1b0fSStefan Roesesbc405_config:	unconfig
1488430f1b0fSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1489430f1b0fSStefan Roese
1490699f0512SWolfgang Denksc3_config:unconfig
1491699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1492699f0512SWolfgang Denk
1493430f1b0fSStefan Roesesequoia_config \
1494854bc8daSStefan Roeserainier_config: unconfig
14958318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1496430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1497430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
14982aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1499854bc8daSStefan Roese
1500430f1b0fSStefan Roesesequoia_nand_config \
1501854bc8daSStefan Roeserainier_nand_config: unconfig
150263e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
150363e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/sequoia
15048318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1505430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1506430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1507430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
15088318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
15098318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1510652a10c0Swdenk
1511d4024bb7SJohn Otkentaihu_config:	unconfig
1512d4024bb7SJohn Otken	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1513d4024bb7SJohn Otken
15145fb692caSStefan Roesetaishan_config:	unconfig
15155fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
15165fb692caSStefan Roese
1517e07f4a80SRicardo Ribalda Delgadov5fx30teval_config: unconfig
1518880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1519e07f4a80SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1520880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1521880f6a5dSRicardo Ribalda Delgado		> $(obj)board/avnet/v5fx30teval/config.tmp
1522880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x03000000" \
1523880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/avnet/v5fx30teval/config.tmp
1524e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1525e07f4a80SRicardo Ribalda Delgado
1526e07f4a80SRicardo Ribalda Delgadov5fx30teval_flash_config: unconfig
1527880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1528e07f4a80SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1529880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
15302bec498eSRicardo Ribalda Delgado		> $(obj)board/avnet/v5fx30teval/config.tmp
1531880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFF1C0000" \
15322bec498eSRicardo Ribalda Delgado		>> $(obj)board/avnet/v5fx30teval/config.tmp
1533e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1534e07f4a80SRicardo Ribalda Delgado
153572cd5aa7SstroeseVOH405_config:	unconfig
1536f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
153772cd5aa7Sstroese
1538c419d1d6SstroeseVOM405_config:	unconfig
1539f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1540c419d1d6Sstroese
15417ebf7443SwdenkW7OLMC_config	\
15427ebf7443SwdenkW7OLMG_config: unconfig
1543f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
15447ebf7443Swdenk
1545430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR)
1546430f1b0fSStefan Roesewalnut_config \
1547430f1b0fSStefan Roesesycamore_config: unconfig
1548430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
15497ebf7443Swdenk
1550c419d1d6SstroeseWUH405_config:	unconfig
1551f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1552c419d1d6Sstroese
15531f4d5326SRicardo Ribalda Delgadoxilinx-ppc405-generic_flash_config: unconfig
15541f4d5326SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
15551f4d5326SRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
15561f4d5326SRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc405-generic/config.tmp
15571f4d5326SRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
15581f4d5326SRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc405-generic/config.tmp
15591f4d5326SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
15601f4d5326SRicardo Ribalda Delgado
15611f4d5326SRicardo Ribalda Delgadoxilinx-ppc405-generic_config: unconfig
15621f4d5326SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
15631f4d5326SRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
15641f4d5326SRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc405-generic/config.tmp
15651f4d5326SRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000" \
15661f4d5326SRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc405-generic/config.tmp
15671f4d5326SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
15681f4d5326SRicardo Ribalda Delgado
1569e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_flash_config: unconfig
1570880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1571880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1572880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc440-generic/config.tmp
1573880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
1574880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc440-generic/config.tmp
1575e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1576e07f4a80SRicardo Ribalda Delgado
1577e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_config: unconfig
1578880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1579880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1580880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc440-generic/config.tmp
1581880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000" \
1582880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc440-generic/config.tmp
1583e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1584e07f4a80SRicardo Ribalda Delgado
1585ba56f625SwdenkXPEDITE1K_config:	unconfig
1586f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1587ba56f625Swdenk
1588430f1b0fSStefan Roeseyosemite_config \
15898a316c9bSStefan Roeseyellowstone_config: unconfig
1590700200c6SStefan Roese	@mkdir -p $(obj)include
1591430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1592430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
15932aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
15948a316c9bSStefan Roese
15956c5879f3SMarian Balakowiczyucca_config:	unconfig
1596f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
15976c5879f3SMarian Balakowicz
1598779e9751SStefan Roesezeus_config:	unconfig
1599779e9751SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1600779e9751SStefan Roese
16017ebf7443Swdenk#########################################################################
1602983fda83Swdenk## MPC8220 Systems
1603983fda83Swdenk#########################################################################
1604dc17fb6dSWolfgang Denk
1605dc17fb6dSWolfgang DenkAlaska8220_config	\
1606dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1607f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1608983fda83Swdenk
160912b43d51Swdenksorcery_config:		unconfig
1610f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
161112b43d51Swdenk
1612983fda83Swdenk#########################################################################
16137ebf7443Swdenk## MPC824x Systems
16147ebf7443Swdenk#########################################################################
1615efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
16163bac3513Swdenk
16170332990bSwdenkA3000_config: unconfig
1618f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
16190332990bSwdenk
16208e6f1a8eSWolfgang Denkbarco_config: unconfig
1621f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
16228e6f1a8eSWolfgang Denk
16237ebf7443SwdenkBMW_config: unconfig
1624f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
16257ebf7443Swdenk
16263bac3513SwdenkCPC45_config	\
16273bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1628f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1629f9328639SMarian Balakowicz	@cd $(obj)include ;				\
16303bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
16313bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1632ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
16333bac3513Swdenk	else \
16343bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1635ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
16363bac3513Swdenk	fi; \
16373bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
16383bac3513Swdenk
16397ebf7443SwdenkCU824_config: unconfig
1640f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
16417ebf7443Swdenk
16427abf0c58Swdenkdebris_config: unconfig
1643f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
16447abf0c58Swdenk
164580885a9dSwdenkeXalion_config: unconfig
1646f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
164780885a9dSwdenk
1648756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1649f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1650756f586aSwdenk
165153dd6ce4SWolfgang Denkkvme080_config: unconfig
1652f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
165353dd6ce4SWolfgang Denk
165461525f2fSGuennadi Liakhovetski# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
165561525f2fSGuennadi Liakhovetski# time permits.
165661525f2fSGuennadi Liakhovetski#linkstation_HDLAN_config \
165761525f2fSGuennadi Liakhovetski# Remove this line when HDLAN is fixed
165861525f2fSGuennadi Liakhovetskilinkstation_HGLAN_config: unconfig
165961525f2fSGuennadi Liakhovetski	@mkdir -p $(obj)include
166061525f2fSGuennadi Liakhovetski	@case $@ in \
166161525f2fSGuennadi Liakhovetski		*HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
166261525f2fSGuennadi Liakhovetski		*HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
166361525f2fSGuennadi Liakhovetski	esac
166461525f2fSGuennadi Liakhovetski	@$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
166561525f2fSGuennadi Liakhovetski
16667ebf7443SwdenkMOUSSE_config: unconfig
1667f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
16687ebf7443Swdenk
16697ebf7443SwdenkMUSENKI_config: unconfig
1670f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
16717ebf7443Swdenk
1672b4676a25SwdenkMVBLUE_config:	unconfig
1673f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1674b4676a25Swdenk
16757ebf7443SwdenkOXC_config: unconfig
1676f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
16777ebf7443Swdenk
16787ebf7443SwdenkPN62_config: unconfig
1679f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
16807ebf7443Swdenk
16817ebf7443SwdenkSandpoint8240_config: unconfig
1682f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
16837ebf7443Swdenk
16847ebf7443SwdenkSandpoint8245_config: unconfig
1685f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
16867ebf7443Swdenk
1687466b7410Swdenksbc8240_config: unconfig
1688f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1689466b7410Swdenk
1690d1cbe85bSwdenkSL8245_config: unconfig
1691f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1692d1cbe85bSwdenk
16937ebf7443Swdenkutx8245_config: unconfig
1694f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
16957ebf7443Swdenk
16967ebf7443Swdenk#########################################################################
16977ebf7443Swdenk## MPC8260 Systems
16987ebf7443Swdenk#########################################################################
16997ebf7443Swdenk
170054387ac9Swdenkatc_config:	unconfig
1701f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
170254387ac9Swdenk
17037ebf7443Swdenkcogent_mpc8260_config:	unconfig
1704f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
17057ebf7443Swdenk
17067ebf7443SwdenkCPU86_config	\
17077ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1708f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1709f9328639SMarian Balakowicz	@cd $(obj)include ;				\
17107ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
17117ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1712ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
17137ebf7443Swdenk	else \
17147ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1715ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
17167ebf7443Swdenk	fi; \
17177ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
17187ebf7443Swdenk
1719384cc687SwdenkCPU87_config	\
1720384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1721f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1722f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1723384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1724384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1725ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1726384cc687Swdenk	else \
1727384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1728ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1729384cc687Swdenk	fi; \
1730384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1731384cc687Swdenk
1732f901a83bSWolfgang Denkep8248_config	\
1733f901a83bSWolfgang Denkep8248E_config	:	unconfig
1734f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1735f901a83bSWolfgang Denk
17367ebf7443Swdenkep8260_config:	unconfig
1737f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
17387ebf7443Swdenk
17398d4ac794SWolfgang Denkep82xxm_config:	unconfig
174090b1b2d6SGrant Likely	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
17418d4ac794SWolfgang Denk
17427ebf7443Swdenkgw8260_config:	unconfig
1743f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
17447ebf7443Swdenk
17457ebf7443Swdenkhymod_config:	unconfig
1746f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
17477ebf7443Swdenk
17489dd41a7bSwdenkIDS8247_config:	unconfig
1749f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
17509dd41a7bSwdenk
17517ebf7443SwdenkIPHASE4539_config:	unconfig
1752f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
17537ebf7443Swdenk
1754c3c7f861SwdenkISPAN_config		\
1755c3c7f861SwdenkISPAN_REVB_config:	unconfig
1756f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1757c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
17586d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
1759c3c7f861Swdenk	fi
1760f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1761c3c7f861Swdenk
1762ac9db066SHeiko Schochermgcoge_config	:	unconfig
176386e9cdf8SHeiko Schocher	@$(MKCONFIG) mgcoge ppc mpc8260 mgcoge keymile
1764ac9db066SHeiko Schocher
176504a85b3bSwdenkMPC8260ADS_config	\
1766901787d6SwdenkMPC8260ADS_lowboot_config	\
176704a85b3bSwdenkMPC8260ADS_33MHz_config	\
1768901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
176904a85b3bSwdenkMPC8260ADS_40MHz_config	\
1770901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
177104a85b3bSwdenkMPC8272ADS_config	\
1772901787d6SwdenkMPC8272ADS_lowboot_config	\
177304a85b3bSwdenkPQ2FADS_config		\
1774901787d6SwdenkPQ2FADS_lowboot_config		\
177504a85b3bSwdenkPQ2FADS-VR_config	\
1776901787d6SwdenkPQ2FADS-VR_lowboot_config	\
177704a85b3bSwdenkPQ2FADS-ZU_config	\
1778901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
177904a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1780901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
178104a85b3bSwdenk	:		unconfig
1782f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1783b7e24d28SJon Loeliger	@mkdir -p $(obj)board/freescale/mpc8260ads
178404a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
17856d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	@echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \
17866d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	@echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
178704a85b3bSwdenk	$(if $(findstring MHz,$@), \
1788f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
178904a85b3bSwdenk	$(if $(findstring VR,$@), \
1790f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1791901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1792b7e24d28SJon Loeliger		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1793ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
1794901787d6Swdenk		}
1795b7e24d28SJon Loeliger	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
17967ebf7443Swdenk
1797db2f721fSwdenkMPC8266ADS_config:	unconfig
1798aa3511e4SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1799db2f721fSwdenk
1800adf22b66SHeiko Schochermuas3001_dev_config \
1801adf22b66SHeiko Schochermuas3001_config	:	unconfig
1802adf22b66SHeiko Schocher	@mkdir -p $(obj)include
1803adf22b66SHeiko Schocher	@mkdir -p $(obj)board/muas3001
1804adf22b66SHeiko Schocher	@if [ "$(findstring dev,$@)" ] ; then \
1805adf22b66SHeiko Schocher		echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1806adf22b66SHeiko Schocher	fi
1807adf22b66SHeiko Schocher	@$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001
1808adf22b66SHeiko Schocher
1809efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
181010f67017SwdenkPM825_config	\
1811efa329cbSwdenkPM825_ROMBOOT_config	\
1812efa329cbSwdenkPM825_BIGFLASH_config	\
1813efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
18147ebf7443SwdenkPM826_config	\
1815efa329cbSwdenkPM826_ROMBOOT_config	\
1816efa329cbSwdenkPM826_BIGFLASH_config	\
1817efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1818f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1819f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1820efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1821f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
18227ebf7443Swdenk	else \
1823f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1824efa329cbSwdenk	fi
1825efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1826ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1827f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1828f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1829efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1830ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1831f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
18327ebf7443Swdenk		fi; \
1833efa329cbSwdenk	else \
1834ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1835efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1836ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1837f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1838f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1839efa329cbSwdenk		else \
1840f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1841efa329cbSwdenk		fi; \
1842efa329cbSwdenk	fi
1843f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1844efa329cbSwdenk
1845efa329cbSwdenkPM828_config	\
1846efa329cbSwdenkPM828_PCI_config	\
1847efa329cbSwdenkPM828_ROMBOOT_config	\
1848efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1849f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1850f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
185117076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1852f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1853ae6d1056SWolfgang Denk		$(XECHO) "... with PCI enabled" ; \
1854efa329cbSwdenk	fi
1855efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1856ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1857f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1858f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1859efa329cbSwdenk	fi
1860f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
18617ebf7443Swdenk
18627ebf7443Swdenkppmc8260_config:	unconfig
1863f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
18647ebf7443Swdenk
18658b0bfc68SwdenkRattler8248_config	\
18668b0bfc68SwdenkRattler_config:		unconfig
1867f9328639SMarian Balakowicz	@mkdir -p $(obj)include
18688b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1869f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1870f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
18718b0bfc68Swdenk
18727ebf7443SwdenkRPXsuper_config:	unconfig
1873f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
18747ebf7443Swdenk
18757ebf7443Swdenkrsdproto_config:	unconfig
1876f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
18777ebf7443Swdenk
18787ebf7443Swdenksacsng_config:	unconfig
1879f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
18807ebf7443Swdenk
18817ebf7443Swdenksbc8260_config:	unconfig
1882f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
18837ebf7443Swdenk
18847ebf7443SwdenkSCM_config:		unconfig
1885f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
18867ebf7443Swdenk
188727b207fdSwdenkTQM8255_AA_config \
188827b207fdSwdenkTQM8260_AA_config \
188927b207fdSwdenkTQM8260_AB_config \
189027b207fdSwdenkTQM8260_AC_config \
189127b207fdSwdenkTQM8260_AD_config \
189227b207fdSwdenkTQM8260_AE_config \
189327b207fdSwdenkTQM8260_AF_config \
189427b207fdSwdenkTQM8260_AG_config \
189527b207fdSwdenkTQM8260_AH_config \
18961f62bc2dSWolfgang DenkTQM8260_AI_config \
189727b207fdSwdenkTQM8265_AA_config:  unconfig
1898f9328639SMarian Balakowicz	@mkdir -p $(obj)include
189927b207fdSwdenk	@case "$@" in \
190027b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
190127b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
190227b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
190327b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
190427b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
190527b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
190627b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
190727b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
190827b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
19091f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
191027b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
191127b207fdSwdenk	esac; \
191227b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1913f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
191427b207fdSwdenk	fi; \
1915f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
191627b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
19171aaab9bfSWolfgang Denk	if [ "$${CACHE}" = "yes" ] ; then \
1918f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1919ae6d1056SWolfgang Denk		$(XECHO) "... with L2 Cache support" ; \
19207ebf7443Swdenk	else \
1921f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1922ae6d1056SWolfgang Denk		$(XECHO) "... without L2 Cache support" ; \
192327b207fdSwdenk	fi; \
19241aaab9bfSWolfgang Denk	if [ "$${BMODE}" = "60x" ] ; then \
1925f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1926ae6d1056SWolfgang Denk		$(XECHO) "... with 60x Bus Mode" ; \
192727b207fdSwdenk	else \
1928f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
1929ae6d1056SWolfgang Denk		$(XECHO) "... without 60x Bus Mode" ; \
19307ebf7443Swdenk	fi
19314677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
19327ebf7443Swdenk
1933fa230445SHeiko SchocherTQM8272_config: unconfig
19344677988cSWolfgang Grandegger	@$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
1935fa230445SHeiko Schocher
1936ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1937ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1938f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1939f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1940f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1941ba91e26aSwdenk
194254387ac9SwdenkZPC1900_config: unconfig
1943f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
19447aa78614Swdenk
19454e5ca3ebSwdenk#########################################################################
19464e5ca3ebSwdenk## Coldfire
19474e5ca3ebSwdenk#########################################################################
19484e5ca3ebSwdenk
1949a21d0c2cSTsiChung LiewM52277EVB_config \
1950a21d0c2cSTsiChung LiewM52277EVB_spansion_config \
1951a21d0c2cSTsiChung LiewM52277EVB_stmicro_config :	unconfig
1952a21d0c2cSTsiChung Liew	@case "$@" in \
1953a21d0c2cSTsiChung Liew	M52277EVB_config)		FLASH=SPANSION;; \
1954a21d0c2cSTsiChung Liew	M52277EVB_spansion_config)	FLASH=SPANSION;; \
1955a21d0c2cSTsiChung Liew	M52277EVB_stmicro_config)	FLASH=STMICRO;; \
1956a21d0c2cSTsiChung Liew	esac; \
1957a21d0c2cSTsiChung Liew	if [ "$${FLASH}" = "SPANSION" ] ; then \
1958a21d0c2cSTsiChung Liew		echo "#define CONFIG_SYS_SPANSION_BOOT"	>> $(obj)include/config.h ; \
1959a21d0c2cSTsiChung Liew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1960a21d0c2cSTsiChung Liew		cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \
1961a21d0c2cSTsiChung Liew		$(XECHO) "... with SPANSION boot..." ; \
1962a21d0c2cSTsiChung Liew	fi; \
1963a21d0c2cSTsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
1964a21d0c2cSTsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
1965a21d0c2cSTsiChung Liew		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
1966a21d0c2cSTsiChung Liew		echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1967a21d0c2cSTsiChung Liew		cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \
1968a21d0c2cSTsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
1969a21d0c2cSTsiChung Liew	fi
19701552af70STsiChungLiew	@$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
19711552af70STsiChungLiew
19724a442d31STsiChungLiewM5235EVB_config \
19734a442d31STsiChungLiewM5235EVB_Flash16_config \
19744a442d31STsiChungLiewM5235EVB_Flash32_config:	unconfig
19754a442d31STsiChungLiew	@case "$@" in \
19764a442d31STsiChungLiew	M5235EVB_config)		FLASH=16;; \
19774a442d31STsiChungLiew	M5235EVB_Flash16_config)	FLASH=16;; \
19784a442d31STsiChungLiew	M5235EVB_Flash32_config)	FLASH=32;; \
19794a442d31STsiChungLiew	esac; \
19804a442d31STsiChungLiew	if [ "$${FLASH}" != "16" ] ; then \
1981ae6d1056SWolfgang Denk		echo "#define NORFLASH_PS32BIT	1" >> $(obj)include/config.h ; \
19824a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
19834a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
19844a442d31STsiChungLiew	else \
19854a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
19864a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
19874a442d31STsiChungLiew	fi
19884a442d31STsiChungLiew	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
19894a442d31STsiChungLiew
1990a605aacdSTsiChungLiewM5249EVB_config :		unconfig
1991a605aacdSTsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1992a605aacdSTsiChungLiew
19936d33c6acSTsiChung LiewM5253DEMO_config :		unconfig
19946d33c6acSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
19956d33c6acSTsiChung Liew
1996a1436a84STsiChungLiewM5253EVBE_config :		unconfig
1997a1436a84STsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1998a1436a84STsiChungLiew
19997481266eSWolfgang Denkcobra5272_config :		unconfig
2000f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
20017481266eSWolfgang Denk
20024176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
2003f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2004f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
2005f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
2006f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
20074176c799SWolfgang Denk
20084176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
2009f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2010f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
2011f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
2012f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
20134176c799SWolfgang Denk
2014daa6e418SBartlomiej Siekaidmr_config :			unconfig
2015daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
2016daa6e418SBartlomiej Sieka
20174176c799SWolfgang DenkM5271EVB_config :		unconfig
2018659e9badSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
20194176c799SWolfgang Denk
20204e5ca3ebSwdenkM5272C3_config :		unconfig
202156df091dSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
20224e5ca3ebSwdenk
2023545c8e0aSMatthew FettkeM5275EVB_config :		unconfig
2024545c8e0aSMatthew Fettke	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
2025545c8e0aSMatthew Fettke
20264e5ca3ebSwdenkM5282EVB_config :		unconfig
202710db3a17STsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
20284e5ca3ebSwdenk
2029536e7dacSTsiChung LiewM53017EVB_config :		unconfig
2030536e7dacSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf532x m53017evb freescale
2031536e7dacSTsiChung Liew
20328e585f02STsiChung LiewM5329AFEE_config \
20338e585f02STsiChung LiewM5329BFEE_config :	unconfig
20348e585f02STsiChung Liew	@case "$@" in \
20358e585f02STsiChung Liew	M5329AFEE_config)	NAND=0;; \
20368e585f02STsiChung Liew	M5329BFEE_config)	NAND=16;; \
20378e585f02STsiChung Liew	esac; \
20388e585f02STsiChung Liew	if [ "$${NAND}" != "0" ] ; then \
2039ab77bc54STsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
20408e585f02STsiChung Liew	fi
20418e585f02STsiChung Liew	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
20428e585f02STsiChung Liew
2043aa5f1f9dSTsiChungLiewM5373EVB_config :	unconfig
2044aa5f1f9dSTsiChungLiew	@case "$@" in \
2045aa5f1f9dSTsiChungLiew	M5373EVB_config)	NAND=16;; \
2046aa5f1f9dSTsiChungLiew	esac; \
2047aa5f1f9dSTsiChungLiew	if [ "$${NAND}" != "0" ] ; then \
2048aa5f1f9dSTsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
2049aa5f1f9dSTsiChungLiew	fi
2050aa5f1f9dSTsiChungLiew	@$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
2051aa5f1f9dSTsiChungLiew
205205316f8eSTsiChung LiewM54451EVB_config \
205305316f8eSTsiChung LiewM54451EVB_spansion_config \
205405316f8eSTsiChung LiewM54451EVB_stmicro_config :	unconfig
205505316f8eSTsiChung Liew	@case "$@" in \
205605316f8eSTsiChung Liew	M54451EVB_config)		FLASH=SPANSION;; \
205705316f8eSTsiChung Liew	M54451EVB_spansion_config)	FLASH=SPANSION;; \
205805316f8eSTsiChung Liew	M54451EVB_stmicro_config)	FLASH=STMICRO;; \
205905316f8eSTsiChung Liew	esac; \
206005316f8eSTsiChung Liew	if [ "$${FLASH}" = "SPANSION" ] ; then \
20616d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_SPANSION_BOOT"	>> $(obj)include/config.h ; \
206205316f8eSTsiChung Liew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
206305316f8eSTsiChung Liew		cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
206405316f8eSTsiChung Liew		$(XECHO) "... with SPANSION boot..." ; \
206505316f8eSTsiChung Liew	fi; \
206605316f8eSTsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
206705316f8eSTsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
20686d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
206905316f8eSTsiChung Liew		echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
207005316f8eSTsiChung Liew		cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
207105316f8eSTsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
207205316f8eSTsiChung Liew	fi; \
20736d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
207405316f8eSTsiChung Liew	@$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
207505316f8eSTsiChung Liew
20768ae158cdSTsiChungLiewM54455EVB_config \
20778ae158cdSTsiChungLiewM54455EVB_atmel_config \
20788ae158cdSTsiChungLiewM54455EVB_intel_config \
20798ae158cdSTsiChungLiewM54455EVB_a33_config \
20808ae158cdSTsiChungLiewM54455EVB_a66_config \
20818ae158cdSTsiChungLiewM54455EVB_i33_config \
20829f751551STsiChung LiewM54455EVB_i66_config \
20839f751551STsiChung LiewM54455EVB_stm33_config :	unconfig
20848ae158cdSTsiChungLiew	@case "$@" in \
20858ae158cdSTsiChungLiew	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
20868ae158cdSTsiChungLiew	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
20878ae158cdSTsiChungLiew	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
20888ae158cdSTsiChungLiew	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
20898ae158cdSTsiChungLiew	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
20908ae158cdSTsiChungLiew	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
20918ae158cdSTsiChungLiew	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
20929f751551STsiChung Liew	M54455EVB_stm33_config)		FLASH=STMICRO; FREQ=33333333;; \
20938ae158cdSTsiChungLiew	esac; \
20941aaab9bfSWolfgang Denk	if [ "$${FLASH}" = "INTEL" ] ; then \
20956d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
2096e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2097e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
2098ae6d1056SWolfgang Denk		$(XECHO) "... with INTEL boot..." ; \
20999f751551STsiChung Liew	fi; \
21009f751551STsiChung Liew	if [ "$${FLASH}" = "ATMEL" ] ; then \
21016d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_ATMEL_BOOT"	>> $(obj)include/config.h ; \
2102e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2103e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2104ae6d1056SWolfgang Denk		$(XECHO) "... with ATMEL boot..." ; \
21058ae158cdSTsiChungLiew	fi; \
21069f751551STsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
21079f751551STsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
21086d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
21099f751551STsiChung Liew		echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
21109f751551STsiChung Liew		cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
21119f751551STsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
21129f751551STsiChung Liew	fi; \
21136d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
2114ae6d1056SWolfgang Denk	$(XECHO) "... with $${FREQ}Hz input clock"
21158ae158cdSTsiChungLiew	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
21168ae158cdSTsiChungLiew
211757a12720STsiChungLiewM5475AFE_config \
211857a12720STsiChungLiewM5475BFE_config \
211957a12720STsiChungLiewM5475CFE_config \
212057a12720STsiChungLiewM5475DFE_config \
212157a12720STsiChungLiewM5475EFE_config \
212257a12720STsiChungLiewM5475FFE_config \
212357a12720STsiChungLiewM5475GFE_config :	unconfig
212457a12720STsiChungLiew	@case "$@" in \
212557a12720STsiChungLiew	M5475AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
212657a12720STsiChungLiew	M5475BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
212757a12720STsiChungLiew	M5475CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
212857a12720STsiChungLiew	M5475DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
212957a12720STsiChungLiew	M5475EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
213057a12720STsiChungLiew	M5475FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
213157a12720STsiChungLiew	M5475GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
213257a12720STsiChungLiew	esac; \
21336d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BUSCLK	133333333" > $(obj)include/config.h ; \
21346d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
21356d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
213657a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
21376d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
213857a12720STsiChungLiew	fi; \
213957a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
21406d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
214157a12720STsiChungLiew	fi; \
214257a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
21436d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
214457a12720STsiChungLiew	fi; \
214557a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
21466d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
214757a12720STsiChungLiew	fi
214857a12720STsiChungLiew	@$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
214957a12720STsiChungLiew
215057a12720STsiChungLiewM5485AFE_config \
215157a12720STsiChungLiewM5485BFE_config \
215257a12720STsiChungLiewM5485CFE_config \
215357a12720STsiChungLiewM5485DFE_config \
215457a12720STsiChungLiewM5485EFE_config \
215557a12720STsiChungLiewM5485FFE_config \
215657a12720STsiChungLiewM5485GFE_config \
215757a12720STsiChungLiewM5485HFE_config :	unconfig
215857a12720STsiChungLiew	@case "$@" in \
215957a12720STsiChungLiew	M5485AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
216057a12720STsiChungLiew	M5485BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
216157a12720STsiChungLiew	M5485CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
216257a12720STsiChungLiew	M5485DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
216357a12720STsiChungLiew	M5485EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
216457a12720STsiChungLiew	M5485FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
216557a12720STsiChungLiew	M5485GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
21664d264effSTsiChungLiew	M5485HFE_config)	BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
216757a12720STsiChungLiew	esac; \
21686d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BUSCLK	100000000" > $(obj)include/config.h ; \
21696d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
21706d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
217157a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
21726d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
217357a12720STsiChungLiew	fi; \
217457a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
21756d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
217657a12720STsiChungLiew	fi; \
217757a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
21786d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
217957a12720STsiChungLiew	fi; \
218057a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
21816d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
218257a12720STsiChungLiew	fi
218357a12720STsiChungLiew	@$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
218457a12720STsiChungLiew
2185699f0512SWolfgang DenkTASREG_config :		unconfig
2186699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2187699f0512SWolfgang Denk
21887ebf7443Swdenk#########################################################################
2189f046ccd1SEran Liberty## MPC83xx Systems
2190f046ccd1SEran Liberty#########################################################################
2191f046ccd1SEran Liberty
2192de044361SHeiko Schocherkmeter1_config: unconfig
2193de044361SHeiko Schocher	@$(MKCONFIG) kmeter1 ppc mpc83xx kmeter1 keymile
2194de044361SHeiko Schocher
21955c5d3242SKim PhillipsMPC8313ERDB_33_config \
2196e4c09508SScott WoodMPC8313ERDB_66_config \
2197e4c09508SScott WoodMPC8313ERDB_NAND_33_config \
2198e4c09508SScott WoodMPC8313ERDB_NAND_66_config: unconfig
2199cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2200e4c09508SScott Wood	@mkdir -p $(obj)board/freescale/mpc8313erdb
2201c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2202ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
22036d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
22045c5d3242SKim Phillips	fi ; \
22055c5d3242SKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2206ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
22076d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
2208e4c09508SScott Wood	fi ; \
2209e4c09508SScott Wood	if [ "$(findstring _NAND_,$@)" ] ; then \
2210e4c09508SScott Wood		$(XECHO) -n "...NAND..." ; \
2211f4e55a49SKim Phillips		echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2212e4c09508SScott Wood		echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
22135c5d3242SKim Phillips	fi ;
2214e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
221564ac1eb5SNick Spence	@if [ "$(findstring _NAND_,$@)" ] ; then \
221664ac1eb5SNick Spence		echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
221764ac1eb5SNick Spence	fi ;
22185c5d3242SKim Phillips
22198bd522ceSDave LiuMPC8315ERDB_config: unconfig
22208bd522ceSDave Liu	@$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
22218bd522ceSDave Liu
22221c274c4eSKim PhillipsMPC8323ERDB_config:	unconfig
22231c274c4eSKim Phillips	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
22241c274c4eSKim Phillips
22254decd84eSKim PhillipsMPC832XEMDS_config \
22264decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
22274decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
2228281df457STony LiMPC832XEMDS_SLAVE_config \
2229281df457STony LiMPC832XEMDS_ATM_config:	unconfig
2230cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2231c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2232ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2233cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
22344decd84eSKim Phillips	fi ; \
22354decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2236ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2237cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2238cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
22394decd84eSKim Phillips	fi ; \
22404decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
2241ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2242cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2243281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
22444decd84eSKim Phillips	fi ; \
22454decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2246ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2247cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2248281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2249281df457STony Li	fi ; \
2250281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2251ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2252281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2253281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
22544decd84eSKim Phillips	fi ;
2255e58fe957SKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2256e6f2e902SMarian Balakowicz
2257991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
2258e58fe957SKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2259991425feSMarian Balakowicz
22607a78f148STimur TabiMPC8349ITX_config \
22617a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
22627a78f148STimur TabiMPC8349ITXGP_config:	unconfig
22637a78f148STimur Tabi	@mkdir -p $(obj)include
2264e21659e3SSam Sparks	@mkdir -p $(obj)board/freescale/mpc8349itx
22657a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
22667a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
2267e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
22687a78f148STimur Tabi	fi
22697a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
2270e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
22717a78f148STimur Tabi	fi
2272e58fe957SKim Phillips	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
22734decd84eSKim Phillips
22745f820439SDave LiuMPC8360EMDS_config \
22755f820439SDave LiuMPC8360EMDS_HOST_33_config \
22765f820439SDave LiuMPC8360EMDS_HOST_66_config \
2277281df457STony LiMPC8360EMDS_SLAVE_config \
2278281df457STony LiMPC8360EMDS_ATM_config: unconfig
2279cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2280c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2281ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2282cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
22835f820439SDave Liu	fi ; \
22845f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2285ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2286cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2287cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
22885f820439SDave Liu	fi ; \
22895f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
2290ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2291cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2292281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
22935f820439SDave Liu	fi ; \
22945f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
2295ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2296cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2297281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2298281df457STony Li	fi ; \
2299281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2300ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2301281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2302281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
23035f820439SDave Liu	fi ;
2304e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
23055f820439SDave Liu
2306fab6f556SAnton VorontsovMPC8360ERDK_33_config \
2307fab6f556SAnton VorontsovMPC8360ERDK_66_config \
230891c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config:	unconfig
2309fab6f556SAnton Vorontsov	@mkdir -p $(obj)include
2310c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2311ae6d1056SWolfgang Denk		$(XECHO) -n "... CLKIN 33MHz " ; \
2312fab6f556SAnton Vorontsov		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2313fab6f556SAnton Vorontsov	fi ;
2314fab6f556SAnton Vorontsov	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2315fab6f556SAnton Vorontsov
231619580e66SDave LiuMPC837XEMDS_config \
231719580e66SDave LiuMPC837XEMDS_HOST_config:	unconfig
231819580e66SDave Liu	@mkdir -p $(obj)include
2319c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2320ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
232119580e66SDave Liu		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
232219580e66SDave Liu	fi ;
232319580e66SDave Liu	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
232419580e66SDave Liu
23255e918a98SKim PhillipsMPC837XERDB_config:	unconfig
23265e918a98SKim Phillips	@$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
23275e918a98SKim Phillips
2328a1293e54SAndre SchwarzMVBLM7_config: unconfig
23291a9eeb78SAndre Schwarz	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2330a1293e54SAndre Schwarz
233191e25769SPaul Gortmakersbc8349_config:		unconfig
233291e25769SPaul Gortmaker	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
233391e25769SPaul Gortmaker
23345bb907a4SRon MadridSIMPC8313_LP_config \
23355bb907a4SRon MadridSIMPC8313_SP_config: unconfig
23365bb907a4SRon Madrid	@mkdir -p $(obj)include
23375bb907a4SRon Madrid	@mkdir -p $(obj)board/sheldon/simpc8313
23385bb907a4SRon Madrid	@if [ "$(findstring _LP_,$@)" ] ; then \
23395bb907a4SRon Madrid		$(XECHO) -n "...Large Page NAND..." ; \
23405bb907a4SRon Madrid		echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \
23415bb907a4SRon Madrid	fi ; \
23425bb907a4SRon Madrid	if [ "$(findstring _SP_,$@)" ] ; then \
23435bb907a4SRon Madrid		$(XECHO) -n "...Small Page NAND..." ; \
23445bb907a4SRon Madrid		echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \
23455bb907a4SRon Madrid	fi ;
23465bb907a4SRon Madrid	@$(MKCONFIG) -a SIMPC8313 ppc mpc83xx simpc8313 sheldon
23475bb907a4SRon Madrid	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
23485bb907a4SRon Madrid
23494decd84eSKim PhillipsTQM834x_config:	unconfig
23504677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
23514decd84eSKim Phillips
23522ad6b513STimur Tabi
2353f046ccd1SEran Liberty#########################################################################
235442d1f039Swdenk## MPC85xx Systems
235542d1f039Swdenk#########################################################################
235642d1f039Swdenk
23577bd6104bSrobert lazarskiATUM8548_config:	unconfig
23587bd6104bSrobert lazarski	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
23597bd6104bSrobert lazarski
23609490a7f1SKumar GalaMPC8536DS_config:       unconfig
23619490a7f1SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8536ds freescale
23629490a7f1SKumar Gala
236342d1f039SwdenkMPC8540ADS_config:	unconfig
2364c2d943ffSKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
236542d1f039Swdenk
2366b0e32949SLunsheng WangMPC8540EVAL_config \
2367b0e32949SLunsheng WangMPC8540EVAL_33_config \
2368b0e32949SLunsheng WangMPC8540EVAL_66_config \
2369b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
2370b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:	  unconfig
2371f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2372c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2373ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2374b0e32949SLunsheng Wang	else \
2375f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2376ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2377b0e32949SLunsheng Wang	fi ; \
2378b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
2379f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2380ae6d1056SWolfgang Denk		$(XECHO) " slave" ; \
2381b0e32949SLunsheng Wang	else \
2382ae6d1056SWolfgang Denk		$(XECHO) " host" ; \
2383b0e32949SLunsheng Wang	fi
2384f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2385b0e32949SLunsheng Wang
238642d1f039SwdenkMPC8560ADS_config:	unconfig
2387870ceac5SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
238842d1f039Swdenk
23897f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \
239003f5c550SwdenkMPC8541CDS_config:	unconfig
23917f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2392c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
23937f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2394ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
23957f3f2bd2SRandy Vinson	fi
2396415a613bSKumar Gala	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
239703f5c550Swdenk
239881f481caSAndy FlemingMPC8544DS_config:	unconfig
239981f481caSAndy Fleming	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
240081f481caSAndy Fleming
24017f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \
2402d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
24037f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2404c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
24057f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2406ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
24077f3f2bd2SRandy Vinson	fi
2408415a613bSKumar Gala	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2409d9b94f28SJon Loeliger
24107f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \
241103f5c550SwdenkMPC8555CDS_config:	unconfig
24127f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2413c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
24147f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2415ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
24167f3f2bd2SRandy Vinson	fi
2417415a613bSKumar Gala	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
24187abf0c58Swdenk
241967431059SAndy FlemingMPC8568MDS_config:	unconfig
2420acbca876SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
242167431059SAndy Fleming
242218af1c5fSKumar GalaMPC8572DS_36BIT_config \
2423129ba616SKumar GalaMPC8572DS_config:       unconfig
242418af1c5fSKumar Gala	@mkdir -p $(obj)include
242518af1c5fSKumar Gala	@if [ "$(findstring _36BIT_,$@)" ] ; then \
242618af1c5fSKumar Gala		echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
242718af1c5fSKumar Gala		$(XECHO) "... enabling 36-bit physical addressing." ; \
242818af1c5fSKumar Gala	fi
242918af1c5fSKumar Gala	@$(MKCONFIG) -a MPC8572DS ppc mpc85xx mpc8572ds freescale
2430129ba616SKumar Gala
2431384cc687SwdenkPM854_config:	unconfig
2432f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2433384cc687Swdenk
2434b20d0032SWolfgang DenkPM856_config:	unconfig
2435f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2436b20d0032SWolfgang Denk
2437c15f3120Swdenksbc8540_config \
2438c15f3120Swdenksbc8540_33_config \
2439c15f3120Swdenksbc8540_66_config:	unconfig
2440f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2441c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2442f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2443ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2444c15f3120Swdenk	else \
2445ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2446c15f3120Swdenk	fi
2447f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2448c15f3120Swdenk
244911c45ebdSJoe Hammansbc8548_config:		unconfig
245011c45ebdSJoe Hamman	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
245111c45ebdSJoe Hamman
2452466b7410Swdenksbc8560_config \
2453466b7410Swdenksbc8560_33_config \
2454466b7410Swdenksbc8560_66_config:	unconfig
2455f9328639SMarian Balakowicz	@mkdir -p $(obj)include
24568b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2457f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2458ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
24598b07a110Swdenk	else \
2460ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
24618b07a110Swdenk	fi
2462f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
24638b07a110Swdenk
24645d108ac8SSergei Poselenovsocrates_config:	unconfig
24655d108ac8SSergei Poselenov	@$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
24665d108ac8SSergei Poselenov
246703f5c550Swdenkstxgp3_config:		unconfig
2468f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
246903f5c550Swdenk
2470ee152983SWolfgang Denkstxssa_config		\
2471ee152983SWolfgang Denkstxssa_4M_config:	unconfig
2472ee152983SWolfgang Denk	@mkdir -p $(obj)include
2473ee152983SWolfgang Denk	@if [ "$(findstring _4M_,$@)" ] ; then \
2474ee152983SWolfgang Denk		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2475ae6d1056SWolfgang Denk		$(XECHO) "... with 4 MiB flash memory" ; \
2476ee152983SWolfgang Denk	fi
2477ee152983SWolfgang Denk	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
247835171dc0SDan Malek
2479d96f41e0SStefan RoeseTQM8540_config		\
2480d96f41e0SStefan RoeseTQM8541_config		\
24811287e0c5SWolfgang GrandeggerTQM8548_config		\
2482*a865bcdaSWolfgang GrandeggerTQM8548_AG_config	\
2483ad7ee5d4SWolfgang GrandeggerTQM8548_BE_config	\
2484d96f41e0SStefan RoeseTQM8555_config		\
2485f5c5ef4aSwdenkTQM8560_config:		unconfig
2486f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2487ad7ee5d4SWolfgang Grandegger	@BTYPE=$(@:_config=); \
2488*a865bcdaSWolfgang Grandegger	CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \
2489ad7ee5d4SWolfgang Grandegger	$(XECHO) "... "$${BTYPE}" (MPC"$${CTYPE}")"; \
2490f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2491ad7ee5d4SWolfgang Grandegger	echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \
2492f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2493ad7ee5d4SWolfgang Grandegger	echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h;
24944677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2495ad7ee5d4SWolfgang Grandegger	@echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk;
2496f5c5ef4aSwdenk
249778bbc5ceSPeter TyserXPEDITE5200_config:	unconfig
249878bbc5ceSPeter Tyser	@$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5200 xes
249978bbc5ceSPeter Tyser
2500ccf0fdd0SPeter TyserXPEDITE5370_config:	unconfig
2501ccf0fdd0SPeter Tyser	@$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5370 xes
2502ccf0fdd0SPeter Tyser
250342d1f039Swdenk#########################################################################
2504debb7354SJon Loeliger## MPC86xx Systems
2505debb7354SJon Loeliger#########################################################################
2506debb7354SJon Loeliger
25073c89d754SJon LoeligerMPC8610HPCD_config:	unconfig
25083c89d754SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
25093c89d754SJon Loeliger
25108db0400aSBecky BruceMPC8641HPCN_36BIT_config \
2511debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
25128db0400aSBecky Bruce	@mkdir -p $(obj)include
25138db0400aSBecky Bruce	@if [ "$(findstring _36BIT_,$@)" ] ; then \
25148db0400aSBecky Bruce		echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
25158db0400aSBecky Bruce		$(XECHO) "... enabling 36-bit physical addressing." ; \
25168db0400aSBecky Bruce	fi
25178db0400aSBecky Bruce	@$(MKCONFIG) -a MPC8641HPCN ppc mpc86xx mpc8641hpcn freescale
2518debb7354SJon Loeliger
2519c646bba6SJoe Hammansbc8641d_config:	unconfig
252091c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2521debb7354SJon Loeliger
2522debb7354SJon Loeliger#########################################################################
25237ebf7443Swdenk## 74xx/7xx Systems
25247ebf7443Swdenk#########################################################################
25257ebf7443Swdenk
2526c7de829cSwdenkAmigaOneG3SE_config:	unconfig
2527f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2528c7de829cSwdenk
252915647dc7SwdenkBAB7xx_config: unconfig
2530f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
253115647dc7Swdenk
2532c419d1d6SstroeseCPCI750_config:	unconfig
2533f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2534c419d1d6Sstroese
25353a473b2aSwdenkDB64360_config:	unconfig
2536f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
25373a473b2aSwdenk
25383a473b2aSwdenkDB64460_config:	unconfig
2539f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
25403a473b2aSwdenk
254115647dc7SwdenkELPPC_config: unconfig
2542f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
254315647dc7Swdenk
25447ebf7443SwdenkEVB64260_config	\
25457ebf7443SwdenkEVB64260_750CX_config:	unconfig
2546f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
25477ebf7443Swdenk
25484c52783bSroy zangmpc7448hpc2_config:  unconfig
25497f1d846eSJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
25504c52783bSroy zang
255115647dc7SwdenkP3G4_config: unconfig
2552f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
25537ebf7443Swdenk
25541eac2a71SStefan Roesep3m750_config	\
25551eac2a71SStefan Roesep3m7448_config:		unconfig
25561eac2a71SStefan Roese	@mkdir -p $(obj)include
25571eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
25581eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
25591eac2a71SStefan Roese	else \
25601eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
25611eac2a71SStefan Roese	fi
25621eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
25631eac2a71SStefan Roese
25647ebf7443SwdenkPCIPPC2_config \
25657ebf7443SwdenkPCIPPC6_config: unconfig
2566f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
25677ebf7443Swdenk
2568f5e0d039SHeiko Schocherppmc7xx_config: unconfig
2569f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2570f5e0d039SHeiko Schocher
2571699f0512SWolfgang DenkZUMA_config:	unconfig
2572699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2573699f0512SWolfgang Denk
25747ebf7443Swdenk#========================================================================
25757ebf7443Swdenk# ARM
25767ebf7443Swdenk#========================================================================
25777ebf7443Swdenk#########################################################################
25787ebf7443Swdenk## StrongARM Systems
25797ebf7443Swdenk#########################################################################
25807ebf7443Swdenk
2581ea66bc88Swdenkassabet_config	:	unconfig
2582f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2583ea66bc88Swdenk
25847ebf7443Swdenkdnp1110_config	:	unconfig
2585f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
25867ebf7443Swdenk
2587855a496fSwdenkgcplus_config	:	unconfig
2588f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2589855a496fSwdenk
2590855a496fSwdenklart_config	:	unconfig
2591f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
2592855a496fSwdenk
25937ebf7443Swdenkshannon_config	:	unconfig
2594f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
25957ebf7443Swdenk
25967ebf7443Swdenk#########################################################################
25972e5983d2Swdenk## ARM92xT Systems
25987ebf7443Swdenk#########################################################################
25997ebf7443Swdenk
2600a4b46ed6SUlf Samuelsson#########################################################################
2601a4b46ed6SUlf Samuelsson## Atmel AT91RM9200 Systems
2602a4b46ed6SUlf Samuelsson#########################################################################
260320b197c6SStelian Pop
2604a85f9f21Swdenkat91rm9200dk_config	:	unconfig
260565230107SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2606a85f9f21Swdenk
2607a85f9f21Swdenkcmc_pu2_config	:	unconfig
2608f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2609a85f9f21Swdenk
2610645da510SWolfgang Denkcsb637_config	:	unconfig
2611f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2612645da510SWolfgang Denk
2613a4b46ed6SUlf Samuelssonkb9202_config	:	unconfig
2614a4b46ed6SUlf Samuelsson	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2615a4b46ed6SUlf Samuelsson
2616ea8d989fSTimo Tuunainenm501sk_config	:	unconfig
2617ea8d989fSTimo Tuunainen	@$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
261887cb6862SWolfgang Denk
2619699f0512SWolfgang Denkmp2usb_config	:	unconfig
2620699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2621699f0512SWolfgang Denk
2622a4b46ed6SUlf Samuelsson#########################################################################
2623a4b46ed6SUlf Samuelsson## Atmel ARM926EJ-S Systems
2624a4b46ed6SUlf Samuelsson#########################################################################
2625a4b46ed6SUlf Samuelsson
26261079432eSSergey Lapinafeb9260_config:	unconfig
26271079432eSSergey Lapin	@$(MKCONFIG) $(@:_config=) arm arm926ejs afeb9260 NULL at91
26281079432eSSergey Lapin
2629a4b46ed6SUlf Samuelssonat91cap9adk_config	:	unconfig
26308ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2631a4b46ed6SUlf Samuelsson
263289a7a87fSNicolas Ferreat91sam9260ek_nandflash_config \
263389a7a87fSNicolas Ferreat91sam9260ek_dataflash_cs0_config \
263489a7a87fSNicolas Ferreat91sam9260ek_dataflash_cs1_config \
2635a4b46ed6SUlf Samuelssonat91sam9260ek_config	:	unconfig
2636e12d9a8fSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
263789a7a87fSNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
263889a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
263989a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
264089a7a87fSNicolas Ferre	elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
264189a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1"	>>$(obj)include/config.h ; \
264289a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
264389a7a87fSNicolas Ferre	else \
264489a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1"	>>$(obj)include/config.h ; \
264589a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
264689a7a87fSNicolas Ferre	fi;
264789a7a87fSNicolas Ferre	@$(MKCONFIG) -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
2648a4b46ed6SUlf Samuelsson
26494e170b16SNicolas Ferreat91sam9xeek_nandflash_config \
26504e170b16SNicolas Ferreat91sam9xeek_dataflash_cs0_config \
26514e170b16SNicolas Ferreat91sam9xeek_dataflash_cs1_config \
26524e170b16SNicolas Ferreat91sam9xeek_config	:	unconfig
26534e170b16SNicolas Ferre	@mkdir -p $(obj)include
26544e170b16SNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
26554e170b16SNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
26564e170b16SNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
26574e170b16SNicolas Ferre	elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
26584e170b16SNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1"	>>$(obj)include/config.h ; \
26594e170b16SNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
26604e170b16SNicolas Ferre	else \
26614e170b16SNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1"	>>$(obj)include/config.h ; \
26624e170b16SNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
26634e170b16SNicolas Ferre	fi;
26644e170b16SNicolas Ferre	@$(MKCONFIG) -n at91sam9xeek -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91sam9
26654e170b16SNicolas Ferre
266689a7a87fSNicolas Ferreat91sam9261ek_nandflash_config \
266789a7a87fSNicolas Ferreat91sam9261ek_dataflash_cs0_config \
266889a7a87fSNicolas Ferreat91sam9261ek_dataflash_cs3_config \
266928962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9261ek_config	:	unconfig
2670e12d9a8fSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
267189a7a87fSNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
267289a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
267389a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
267489a7a87fSNicolas Ferre	elif [ "$(findstring dataflash_cs3,$@)" ] ; then \
267589a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1"	>>$(obj)include/config.h ; \
267689a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS3" ; \
267789a7a87fSNicolas Ferre	else \
267889a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1"	>>$(obj)include/config.h ; \
267989a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
268089a7a87fSNicolas Ferre	fi;
268189a7a87fSNicolas Ferre	@$(MKCONFIG) -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91
268228962f5aSJean-Christophe PLAGNIOL-VILLARD
268389a7a87fSNicolas Ferreat91sam9263ek_nandflash_config \
268489a7a87fSNicolas Ferreat91sam9263ek_dataflash_config \
268589a7a87fSNicolas Ferreat91sam9263ek_dataflash_cs0_config \
268628962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_config	:	unconfig
2687e12d9a8fSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
268889a7a87fSNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
268989a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
269089a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
269189a7a87fSNicolas Ferre	else \
269289a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH 1"	>>$(obj)include/config.h ; \
269389a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
269489a7a87fSNicolas Ferre	fi;
269589a7a87fSNicolas Ferre	@$(MKCONFIG) -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91
269628962f5aSJean-Christophe PLAGNIOL-VILLARD
269789a7a87fSNicolas Ferreat91sam9rlek_nandflash_config \
269889a7a87fSNicolas Ferreat91sam9rlek_dataflash_config \
269989a7a87fSNicolas Ferreat91sam9rlek_dataflash_cs0_config \
270028962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9rlek_config	:	unconfig
2701e12d9a8fSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
270289a7a87fSNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
270389a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
270489a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
270589a7a87fSNicolas Ferre	else \
270689a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH 1"	>>$(obj)include/config.h ; \
270789a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
270889a7a87fSNicolas Ferre	fi;
270989a7a87fSNicolas Ferre	@$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
271028962f5aSJean-Christophe PLAGNIOL-VILLARD
271174f4304eSWolfgang Denk########################################################################
271287cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
271387cb6862SWolfgang Denkintegratorap_config	\
271487cb6862SWolfgang Denkap_config		\
271587cb6862SWolfgang Denkap966_config		\
271687cb6862SWolfgang Denkap922_config		\
271787cb6862SWolfgang Denkap922_XA10_config	\
271887cb6862SWolfgang Denkap7_config		\
271987cb6862SWolfgang Denkap720t_config		\
272087cb6862SWolfgang Denkap920t_config		\
272187cb6862SWolfgang Denkap926ejs_config		\
272287cb6862SWolfgang Denkap946es_config: unconfig
2723e4943ec5SJean-Christophe PLAGNIOL-VILLARD	@board/armltd/integratorap/split_by_variant.sh $@
27243d3befa7Swdenk
272587cb6862SWolfgang Denkintegratorcp_config	\
272687cb6862SWolfgang Denkcp_config		\
272787cb6862SWolfgang Denkcp920t_config		\
272887cb6862SWolfgang Denkcp926ejs_config		\
272987cb6862SWolfgang Denkcp946es_config		\
273087cb6862SWolfgang Denkcp1136_config		\
273187cb6862SWolfgang Denkcp966_config		\
273287cb6862SWolfgang Denkcp922_config		\
273387cb6862SWolfgang Denkcp922_XA10_config	\
273487cb6862SWolfgang Denkcp1026_config: unconfig
2735e4943ec5SJean-Christophe PLAGNIOL-VILLARD	@board/armltd/integratorcp/split_by_variant.sh $@
273625d6712aSwdenk
2737699f0512SWolfgang Denkdavinci_dvevm_config :	unconfig
273889d51d02SHugo Villeneuve	@$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci
2739699f0512SWolfgang Denk
2740699f0512SWolfgang Denkdavinci_schmoogie_config :	unconfig
2741699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2742699f0512SWolfgang Denk
2743699f0512SWolfgang Denkdavinci_sffsdr_config :	unconfig
2744699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2745699f0512SWolfgang Denk
2746699f0512SWolfgang Denkdavinci_sonata_config :	unconfig
2747699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2748699f0512SWolfgang Denk
2749f832d8a1Swdenklpd7a400_config \
2750f832d8a1Swdenklpd7a404_config:	unconfig
2751f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
27523d3befa7Swdenk
2753281e00a3Swdenkmx1ads_config	:	unconfig
2754f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2755281e00a3Swdenk
2756281e00a3Swdenkmx1fs2_config	:	unconfig
2757f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2758281e00a3Swdenk
2759ac7eb8a3SWolfgang Denknetstar_config:		unconfig
2760f4e7cbfcSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm925t netstar
2761ac7eb8a3SWolfgang Denk
2762d5254f14SAlessandro Rubininmdk8815_config \
2763d5254f14SAlessandro Rubininmdk8815_onenand_config:	unconfig
2764d5254f14SAlessandro Rubini	@mkdir -p $(obj)include
2765d5254f14SAlessandro Rubini	@ > $(obj)include/config.h
2766d5254f14SAlessandro Rubini	@if [ "$(findstring _onenand, $@)" ] ; then \
2767d5254f14SAlessandro Rubini		echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \
2768d5254f14SAlessandro Rubini		$(XECHO) "... configured for OneNand Flash"; \
2769d5254f14SAlessandro Rubini	else \
2770d5254f14SAlessandro Rubini		$(XECHO) "... configured for Nand Flash"; \
2771d5254f14SAlessandro Rubini	fi
2772d5254f14SAlessandro Rubini	@$(MKCONFIG) -a nmdk8815 arm arm926ejs nmdk8815 st nomadik
2773d5254f14SAlessandro Rubini
27742e5983d2Swdenkomap1510inn_config :	unconfig
2775f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
27762e5983d2Swdenk
2777a4b46ed6SUlf Samuelssonxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2778a4b46ed6SUlf Samuelsson
277963e73c9aSwdenkomap1610inn_config \
278063e73c9aSwdenkomap1610inn_cs0boot_config \
278163e73c9aSwdenkomap1610inn_cs3boot_config \
27823ff02c27Swdenkomap1610inn_cs_autoboot_config \
278363e73c9aSwdenkomap1610h2_config \
278463e73c9aSwdenkomap1610h2_cs0boot_config \
27853ff02c27Swdenkomap1610h2_cs3boot_config \
27863ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
2787f9328639SMarian Balakowicz	@mkdir -p $(obj)include
278863e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2789cdd917a4SWolfgang Denk		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2790ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
27913ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2792cdd917a4SWolfgang Denk		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2793ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS_AUTO boot"; \
279463e73c9aSwdenk	else \
2795cdd917a4SWolfgang Denk		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2796ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
279763e73c9aSwdenk	fi;
2798f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
27996f21347dSwdenk
2800699f0512SWolfgang Denkomap5912osk_config :	unconfig
2801699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2802699f0512SWolfgang Denk
2803a4b46ed6SUlf Samuelssonxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2804a4b46ed6SUlf Samuelsson
2805a56bd922Swdenkomap730p2_config \
2806a56bd922Swdenkomap730p2_cs0boot_config \
2807a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
2808f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2809a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2810f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2811ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
2812a56bd922Swdenk	else \
2813f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2814ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
2815a56bd922Swdenk	fi;
2816f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2817a56bd922Swdenk
281832cb2c70SWolfgang Denksbc2410x_config: unconfig
2819f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
282032cb2c70SWolfgang Denk
2821281e00a3Swdenkscb9328_config	:	unconfig
2822f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2823281e00a3Swdenk
28247ebf7443Swdenksmdk2400_config	:	unconfig
2825cfca3383SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 samsung s3c24x0
28267ebf7443Swdenk
28277ebf7443Swdenksmdk2410_config	:	unconfig
2828cfca3383SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 samsung s3c24x0
28297ebf7443Swdenk
283047fd3bffSJean-Christophe PLAGNIOL-VILLARDSX1_stdout_serial_config \
28312d24a3a7SwdenkSX1_config:		unconfig
283247fd3bffSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
283347fd3bffSJean-Christophe PLAGNIOL-VILLARD	@if [ "$(findstring _stdout_serial_, $@)" ] ; then \
283447fd3bffSJean-Christophe PLAGNIOL-VILLARD		echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
283547fd3bffSJean-Christophe PLAGNIOL-VILLARD		$(XECHO) "... configured for stdout serial"; \
283647fd3bffSJean-Christophe PLAGNIOL-VILLARD	else \
283747fd3bffSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
283847fd3bffSJean-Christophe PLAGNIOL-VILLARD		$(XECHO) "... configured for stdout usbtty"; \
283947fd3bffSJean-Christophe PLAGNIOL-VILLARD	fi;
284047fd3bffSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) SX1 arm arm925t sx1
28412d24a3a7Swdenk
2842b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
2843a4b46ed6SUlf Samuelssonxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2844a4b46ed6SUlf Samuelsson
284543d9616cSwdenktrab_config \
2846b0639ca3Swdenktrab_bigram_config \
2847b0639ca3Swdenktrab_bigflash_config \
2848f54ebdfaSwdenktrab_old_config:	unconfig
2849f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2850f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
2851b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
2852f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2853f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
2854ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2855b0639ca3Swdenk		}
2856b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
2857f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2858f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2859ae6d1056SWolfgang Denk		  $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2860f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2861b0639ca3Swdenk		}
2862f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
2863f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2864f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2865ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2866f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
286743d9616cSwdenk		}
2868f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
28697ebf7443Swdenk
28701cb8e980SwdenkVCMA9_config	:	unconfig
2871f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
28721cb8e980Swdenk
2873699f0512SWolfgang Denk#########################################################################
287487cb6862SWolfgang Denk# ARM supplied Versatile development boards
2875699f0512SWolfgang Denk#########################################################################
2876699f0512SWolfgang Denk
2877699f0512SWolfgang Denkcm4008_config	:	unconfig
2878699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2879699f0512SWolfgang Denk
2880699f0512SWolfgang Denkcm41xx_config	:	unconfig
2881699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2882699f0512SWolfgang Denk
288387cb6862SWolfgang Denkversatile_config	\
288487cb6862SWolfgang Denkversatileab_config	\
288587cb6862SWolfgang Denkversatilepb_config :	unconfig
2886e4943ec5SJean-Christophe PLAGNIOL-VILLARD	@board/armltd/versatile/split_by_variant.sh $@
2887074cff0dSwdenk
28883c2b3d45Swdenkvoiceblue_config:	unconfig
28894fedfddfSLadislav Michl	@$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
28903c2b3d45Swdenk
2891074cff0dSwdenk#########################################################################
2892074cff0dSwdenk## S3C44B0 Systems
2893074cff0dSwdenk#########################################################################
2894074cff0dSwdenk
2895074cff0dSwdenkB2_config	:	unconfig
2896f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2897074cff0dSwdenk
28987ebf7443Swdenk#########################################################################
28997ebf7443Swdenk## ARM720T Systems
29007ebf7443Swdenk#########################################################################
29017ebf7443Swdenk
2902c570b2fdSWolfgang Denkarmadillo_config:	unconfig
2903f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2904c570b2fdSWolfgang Denk
29057ebf7443Swdenkep7312_config	:	unconfig
2906f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
29077ebf7443Swdenk
29082d24a3a7Swdenkimpa7_config	:	unconfig
2909f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
29102d24a3a7Swdenk
29112d1a537dSwdenkmodnet50_config :	unconfig
2912f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
29132d1a537dSwdenk
291439539887Swdenkevb4510_config :	unconfig
2915f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
291639539887Swdenk
29176bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
2918b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2919b0d8f5bfSPeter Pearse
2920b0d8f5bfSPeter PearseSMN42_config	:	unconfig
2921b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
29226bd2447eSGary Jennejohn
29237ebf7443Swdenk#########################################################################
2924f904cdbbSDirk Behme## ARM CORTEX Systems
2925f904cdbbSDirk Behme#########################################################################
2926f904cdbbSDirk Behme
2927f904cdbbSDirk Behmeomap3_beagle_config :	unconfig
2928f904cdbbSDirk Behme	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 beagle omap3 omap3
2929f904cdbbSDirk Behme
29309d0fc811SDirk Behmeomap3_overo_config :	unconfig
29319d0fc811SDirk Behme	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 overo omap3 omap3
29329d0fc811SDirk Behme
2933ad9bc8e5SDirk Behmeomap3_evm_config :	unconfig
2934ad9bc8e5SDirk Behme	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 evm omap3 omap3
2935ad9bc8e5SDirk Behme
29362be2c6ccSDirk Behmeomap3_pandora_config :	unconfig
29372be2c6ccSDirk Behme	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 pandora omap3 omap3
29382be2c6ccSDirk Behme
29397379f45aSDirk Behmeomap3_zoom1_config :	unconfig
29407379f45aSDirk Behme	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom1 omap3 omap3
29417379f45aSDirk Behme
2942f904cdbbSDirk Behme#########################################################################
294343d9616cSwdenk## XScale Systems
29447ebf7443Swdenk#########################################################################
29457ebf7443Swdenk
2946799891efSMichael Schwingenactux1_config	:	unconfig
2947799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux1
2948799891efSMichael Schwingen
2949799891efSMichael Schwingenactux2_config	:	unconfig
2950799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux2
2951799891efSMichael Schwingen
2952799891efSMichael Schwingenactux3_config	:	unconfig
2953799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux3
2954799891efSMichael Schwingen
2955799891efSMichael Schwingenactux4_config	:	unconfig
2956799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux4
2957799891efSMichael Schwingen
2958fabd46acSwdenkcerf250_config :	unconfig
2959f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
2960fabd46acSwdenk
29617ebf7443Swdenkcradle_config	:	unconfig
2962f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
29637ebf7443Swdenk
29647ebf7443Swdenkcsb226_config	:	unconfig
2965f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
29667ebf7443Swdenk
296791c82076SJean-Christophe PLAGNIOL-VILLARDdelta_config :	unconfig
2968f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
29690be248faSWolfgang Denk
297043d9616cSwdenkinnokom_config	:	unconfig
2971f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
297243d9616cSwdenk
29732d5b561eSwdenkixdp425_config	:	unconfig
2974f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
29752d5b561eSwdenk
2976ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
2977f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2978ba94a1bbSWolfgang Denk
297943d9616cSwdenklubbock_config	:	unconfig
2980f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
298143d9616cSwdenk
29825720df78SHeiko Schocherpleb2_config	:	unconfig
2983f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
29845720df78SHeiko Schocher
298552f52c14Swdenklogodl_config	:	unconfig
2986f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
298752f52c14Swdenk
29889d8d5a5bSStefan Roesepdnb3_config \
29899d8d5a5bSStefan Roesescpu_config:	unconfig
2990cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
29919d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
2992cdd917a4SWolfgang Denk		echo "#define CONFIG_SCPU"	>>$(obj)include/config.h ; \
2993ae6d1056SWolfgang Denk		$(XECHO) "... on SCPU board variant" ; \
29949d8d5a5bSStefan Roese	fi
29959d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2996ba94a1bbSWolfgang Denk
2997f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
2998f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2999f57f70aaSWolfgang Denk
30005e5803e1Sstefano babictrizepsiv_config	:	unconfig
30015e5803e1Sstefano babic	@$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
30025e5803e1Sstefano babic
30033e38691eSwdenkwepep250_config	:	unconfig
3004f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
30053e38691eSwdenk
30064ec3a7f0Swdenkxaeniax_config	:	unconfig
3007f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
30084ec3a7f0Swdenk
3009efa329cbSwdenkxm250_config	:	unconfig
3010f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
3011efa329cbSwdenk
3012ca0e7748Swdenkxsengine_config :	unconfig
3013f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
3014ca0e7748Swdenk
3015e0269579SMarkus Klotzbücherzylonite_config :
3016f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
3017e0269579SMarkus Klotzbücher
30188ed96046Swdenk#########################################################################
30198ed96046Swdenk## ARM1136 Systems
30208ed96046Swdenk#########################################################################
30215ca9881aSPeter Pearse
30225ca9881aSPeter Pearseapollon_config		: unconfig
3023c6fe4dabSWolfgang Denk	@mkdir -p $(obj)include
3024f2302d44SStefan Roese	@mkdir -p $(obj)onenand_ipl/board/apollon
3025751b9b51SKyungmin Park	@echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
30265252ed95SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
3027751b9b51SKyungmin Park	@echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
30288ed96046Swdenk
3029caebc95bSSascha Hauerimx31_litekit_config	: unconfig
3030caebc95bSSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
3031caebc95bSSascha Hauer
30325ad86216SSascha Hauerimx31_phycore_config	: unconfig
30335ad86216SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
30345ad86216SSascha Hauer
3035b5dc9b30SGuennadi Liakhovetskimx31ads_config		: unconfig
3036f5acb9fdSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
3037b5dc9b30SGuennadi Liakhovetski
3038699f0512SWolfgang Denkomap2420h4_config	: unconfig
3039699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
3040699f0512SWolfgang Denk
304111edcfe2SGuennadi Liakhovetski#########################################################################
304211edcfe2SGuennadi Liakhovetski## ARM1176 Systems
304311edcfe2SGuennadi Liakhovetski#########################################################################
304411edcfe2SGuennadi Liakhovetskismdk6400_noUSB_config	\
304511edcfe2SGuennadi Liakhovetskismdk6400_config	:	unconfig
304611edcfe2SGuennadi Liakhovetski	@mkdir -p $(obj)include $(obj)board/samsung/smdk6400
304711edcfe2SGuennadi Liakhovetski	@mkdir -p $(obj)nand_spl/board/samsung/smdk6400
304811edcfe2SGuennadi Liakhovetski	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
304911edcfe2SGuennadi Liakhovetski	@if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then			\
305011edcfe2SGuennadi Liakhovetski		echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
305111edcfe2SGuennadi Liakhovetski		$(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx;		\
305211edcfe2SGuennadi Liakhovetski	else										\
305311edcfe2SGuennadi Liakhovetski		echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
305411edcfe2SGuennadi Liakhovetski		$(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx;	\
305511edcfe2SGuennadi Liakhovetski	fi
305611edcfe2SGuennadi Liakhovetski	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
305711edcfe2SGuennadi Liakhovetski
30582262cfeeSwdenk#========================================================================
30592262cfeeSwdenk# i386
30602262cfeeSwdenk#========================================================================
30612262cfeeSwdenk#########################################################################
30622262cfeeSwdenk## AMD SC520 CDP
30632262cfeeSwdenk#########################################################################
3064c620c01eSGraeme RusseNET_config	:	unconfig
306540797618SGraeme Russ	@$(MKCONFIG) $(@:_config=) i386 i386 eNET NULL sc520
3066c620c01eSGraeme Russ
3067a3f4c123SWolfgang Denksc520_cdp_config	:	unconfig
306840797618SGraeme Russ	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp NULL sc520
3069a3f4c123SWolfgang Denk
30707a8e9bedSwdenksc520_spunk_config	:	unconfig
307140797618SGraeme Russ	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520
30727a8e9bedSwdenk
30737a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
307440797618SGraeme Russ	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520
30757a8e9bedSwdenk
307643d9616cSwdenk#========================================================================
307743d9616cSwdenk# MIPS
307843d9616cSwdenk#========================================================================
30797ebf7443Swdenk#########################################################################
308043d9616cSwdenk## MIPS32 4Kc
308143d9616cSwdenk#########################################################################
308243d9616cSwdenk
3083e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
3084e0ac62d7Swdenk
3085e0ac62d7Swdenkincaip_100MHz_config	\
3086e0ac62d7Swdenkincaip_133MHz_config	\
3087e0ac62d7Swdenkincaip_150MHz_config	\
308843d9616cSwdenkincaip_config: unconfig
3089f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3090e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
3091f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
3092ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
3093e0ac62d7Swdenk		}
3094e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
3095f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
3096ae6d1056SWolfgang Denk		  $(XECHO) "... with 133MHz system clock" ; \
3097e0ac62d7Swdenk		}
3098e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
3099f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
3100ae6d1056SWolfgang Denk		  $(XECHO) "... with 150MHz system clock" ; \
3101e0ac62d7Swdenk		}
3102f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
3103e0ac62d7Swdenk
3104f4863a7aSwdenktb0229_config: unconfig
3105f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
3106f4863a7aSwdenk
31072a61eff6SStefan Roesevct_premium_config		\
31082a61eff6SStefan Roesevct_premium_small_config	\
31092a61eff6SStefan Roesevct_premium_onenand_config	\
31102a61eff6SStefan Roesevct_premium_onenand_small_config \
31112a61eff6SStefan Roesevct_platinum_config		\
31122a61eff6SStefan Roesevct_platinum_small_config	\
31132a61eff6SStefan Roesevct_platinum_onenand_config	\
31142a61eff6SStefan Roesevct_platinum_onenand_small_config \
31152a61eff6SStefan Roesevct_platinumavc_config		\
31162a61eff6SStefan Roesevct_platinumavc_small_config	\
31172a61eff6SStefan Roesevct_platinumavc_onenand_config	\
31182a61eff6SStefan Roesevct_platinumavc_onenand_small_config: unconfig
31192a61eff6SStefan Roese	@mkdir -p $(obj)include
31202a61eff6SStefan Roese	@if [ "$(findstring _premium,$@)" ] ; then \
31212a61eff6SStefan Roese		echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h ; \
31222a61eff6SStefan Roese		$(XECHO) "... on Premium board variant" ; \
31232a61eff6SStefan Roese	fi
31242a61eff6SStefan Roese	@if [ "$(findstring _platinum_,$@)" ] ; then \
31252a61eff6SStefan Roese		echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h ; \
31262a61eff6SStefan Roese		$(XECHO) "... on Platinum board variant" ; \
31272a61eff6SStefan Roese	fi
31282a61eff6SStefan Roese	@if [ "$(findstring _platinumavc,$@)" ] ; then \
31292a61eff6SStefan Roese		echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h ; \
31302a61eff6SStefan Roese		$(XECHO) "... on PlatinumAVC board variant" ; \
31312a61eff6SStefan Roese	fi
31322a61eff6SStefan Roese	@if [ "$(findstring _onenand,$@)" ] ; then \
31332a61eff6SStefan Roese		echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h ; \
31342a61eff6SStefan Roese		$(XECHO) "... on OneNAND board variant" ; \
31352a61eff6SStefan Roese	fi
31362a61eff6SStefan Roese	@if [ "$(findstring _small,$@)" ] ; then \
31372a61eff6SStefan Roese		echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h ; \
31382a61eff6SStefan Roese		$(XECHO) "... stripped down image variant" ; \
31392a61eff6SStefan Roese	fi
31402a61eff6SStefan Roese	@$(MKCONFIG) -a vct mips mips vct micronas
31412a61eff6SStefan Roese
3142e0ac62d7Swdenk#########################################################################
314369459791Swdenk## MIPS32 AU1X00
314469459791Swdenk#########################################################################
3145699f0512SWolfgang Denk
314669459791Swdenkdbau1000_config		:	unconfig
3147f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3148210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
3149f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
315069459791Swdenk
315169459791Swdenkdbau1100_config		:	unconfig
3152f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3153210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
3154f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
315569459791Swdenk
315669459791Swdenkdbau1500_config		:	unconfig
3157f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3158210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
3159f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
316069459791Swdenk
3161ff36fd85Swdenkdbau1550_config		:	unconfig
3162f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3163210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3164f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3165ff36fd85Swdenk
3166ff36fd85Swdenkdbau1550_el_config	:	unconfig
3167f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3168210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3169f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3170ff36fd85Swdenk
31718a773983SShinya Kuribayashigth2_config		:	unconfig
31728a773983SShinya Kuribayashi	@mkdir -p $(obj)include
31738a773983SShinya Kuribayashi	@echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
31748a773983SShinya Kuribayashi	@$(MKCONFIG) -a gth2 mips mips gth2
31758a773983SShinya Kuribayashi
3176699f0512SWolfgang Denkpb1000_config		:	unconfig
3177699f0512SWolfgang Denk	@mkdir -p $(obj)include
3178699f0512SWolfgang Denk	@echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
3179699f0512SWolfgang Denk	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
3180699f0512SWolfgang Denk
31810764c164SVlad Lunguqemu_mips_config	: unconfig
31820764c164SVlad Lungu	@mkdir -p $(obj)include
3183210ed200SWolfgang Denk	@echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
31840764c164SVlad Lungu	@$(MKCONFIG) -a qemu-mips mips mips qemu-mips
31850764c164SVlad Lungu
318669459791Swdenk#########################################################################
3187e0ac62d7Swdenk## MIPS64 5Kc
3188e0ac62d7Swdenk#########################################################################
318943d9616cSwdenk
31903e38691eSwdenkpurple_config :		unconfig
3191f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
319243d9616cSwdenk
31934a551709Swdenk#========================================================================
31944a551709Swdenk# Nios
31954a551709Swdenk#========================================================================
31964a551709Swdenk#########################################################################
31974a551709Swdenk## Nios32
31984a551709Swdenk#########################################################################
31994a551709Swdenk
3200699f0512SWolfgang DenkADNPESC1_DNPEVA2_base_32_config	\
3201699f0512SWolfgang DenkADNPESC1_base_32_config		\
3202699f0512SWolfgang DenkADNPESC1_config: unconfig
3203699f0512SWolfgang Denk	@mkdir -p $(obj)include
3204699f0512SWolfgang Denk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
3205699f0512SWolfgang Denk		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
3206699f0512SWolfgang Denk		  $(XECHO) "... DNP/EVA2 configuration" ; \
3207699f0512SWolfgang Denk		}
3208699f0512SWolfgang Denk	@[ -z "$(findstring _base_32,$@)" ] || \
3209699f0512SWolfgang Denk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3210699f0512SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration" ; \
3211699f0512SWolfgang Denk		}
3212699f0512SWolfgang Denk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
3213699f0512SWolfgang Denk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3214699f0512SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
3215699f0512SWolfgang Denk		}
3216699f0512SWolfgang Denk	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
3217699f0512SWolfgang Denk
3218c935d3bdSwdenkDK1C20_safe_32_config		\
3219c935d3bdSwdenkDK1C20_standard_32_config	\
32204a551709SwdenkDK1C20_config:	unconfig
3221f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3222c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
3223f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3224ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
3225c935d3bdSwdenk		}
3226c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
3227f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3228ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
3229c935d3bdSwdenk		}
3230c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
3231f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3232ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3233c935d3bdSwdenk		}
3234f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
3235c935d3bdSwdenk
3236c935d3bdSwdenkDK1S10_safe_32_config		\
3237c935d3bdSwdenkDK1S10_standard_32_config	\
3238ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
3239c935d3bdSwdenkDK1S10_config:	unconfig
3240f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3241c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
3242f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3243ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
3244c935d3bdSwdenk		}
3245c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
3246f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3247ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
3248c935d3bdSwdenk		}
3249ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
3250f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
3251ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
3252ec4c544bSwdenk		}
3253c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
3254f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3255ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3256c935d3bdSwdenk		}
3257f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
32584a551709Swdenk
32595c952cf0Swdenk#########################################################################
32605c952cf0Swdenk## Nios-II
32615c952cf0Swdenk#########################################################################
32625c952cf0Swdenk
32639cc83378SScott McNuttEP1C20_config : unconfig
3264f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
32659cc83378SScott McNutt
32669cc83378SScott McNuttEP1S10_config : unconfig
3267f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
32689cc83378SScott McNutt
32699cc83378SScott McNuttEP1S40_config : unconfig
3270f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
32719cc83378SScott McNutt
32725c952cf0SwdenkPK1C20_config : unconfig
3273f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
32745c952cf0Swdenk
32755c952cf0SwdenkPCI5441_config : unconfig
3276f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
32774a551709Swdenk
3278507bbe3eSwdenk#========================================================================
3279507bbe3eSwdenk## Microblaze
3280699f0512SWolfgang Denk#========================================================================
3281507bbe3eSwdenk
328252a822edSMichal Simekmicroblaze-generic_config:	unconfig
3283cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
328452a822edSMichal Simek	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze microblaze-generic xilinx
3285cfc67116SMichal Simek
3286699f0512SWolfgang Denksuzaku_config:	unconfig
3287699f0512SWolfgang Denk	@mkdir -p $(obj)include
3288699f0512SWolfgang Denk	@echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
3289699f0512SWolfgang Denk	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
3290699f0512SWolfgang Denk
329160fa72d6SMike Frysinger#========================================================================
329260fa72d6SMike Frysinger# Blackfin
329360fa72d6SMike Frysinger#========================================================================
32940afe519aSWolfgang Denk
329560fa72d6SMike Frysinger# Analog Devices boards
329660fa72d6SMike FrysingerBFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
32970afe519aSWolfgang Denk
329860fa72d6SMike Frysinger$(BFIN_BOARDS:%=%_config)	: unconfig
32999171fc81SMike Frysinger	@$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
330026bf7decSAubrey Li
330160fa72d6SMike Frysinger$(BFIN_BOARDS):
330260fa72d6SMike Frysinger	$(MAKE) $@_config
330360fa72d6SMike Frysinger	$(MAKE)
33040afe519aSWolfgang Denk
33055e3b0bc1SHaavard Skinnemoen#========================================================================
33065e3b0bc1SHaavard Skinnemoen# AVR32
33075e3b0bc1SHaavard Skinnemoen#========================================================================
3308699f0512SWolfgang Denk
3309699f0512SWolfgang Denkatngw100_config	:	unconfig
3310699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
33115e3b0bc1SHaavard Skinnemoen
33125e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
331336f28f8aSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
33145e3b0bc1SHaavard Skinnemoen
3315667568dbSHaavard Skinnemoenatstk1003_config	:	unconfig
3316667568dbSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3317667568dbSHaavard Skinnemoen
331864ff2357SHaavard Skinnemoenatstk1004_config	:	unconfig
331964ff2357SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
33200afe519aSWolfgang Denk
33210a2e4879SHaavard Skinnemoenatstk1006_config	:	unconfig
33220a2e4879SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
33230a2e4879SHaavard Skinnemoen
33240eb5717aSHans-Christian Egtvedtfavr-32-ezkit_config	:	unconfig
33250eb5717aSHans-Christian Egtvedt	@$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
33260eb5717aSHans-Christian Egtvedt
33275c374c9eSJulien Mayhammerhead_config	:	unconfig
33285c374c9eSJulien May	@$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
33295c374c9eSJulien May
333013b50fe3SMark Jacksonmimc200_config		:	unconfig
333113b50fe3SMark Jackson	@$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
333213b50fe3SMark Jackson
3333699f0512SWolfgang Denk#========================================================================
3334699f0512SWolfgang Denk# SH3 (SuperH)
3335699f0512SWolfgang Denk#========================================================================
33367ebf7443Swdenk
333769df3c4dSNobuhiro Iwamatsu#########################################################################
3338c655fad0SNobuhiro Iwamatsu## sh2 (Renesas SuperH)
3339c655fad0SNobuhiro Iwamatsu#########################################################################
3340c655fad0SNobuhiro Iwamatsursk7203_config: unconfig
3341a5b04d00SKieran Bingham	@mkdir -p $(obj)include
3342a5b04d00SKieran Bingham	@echo "#define CONFIG_RSK7203 1" > $(obj)/include/config.h
33439a1d3557SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh2 rsk7203 renesas
3344c655fad0SNobuhiro Iwamatsu
3345c655fad0SNobuhiro Iwamatsu#########################################################################
3346b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH)
3347b2b5e2bbSYoshihiro Shimoda#########################################################################
3348699f0512SWolfgang Denk
33493313e0e2SMark Jonasmpr2_config: unconfig
33503ab4827cSWolfgang Denk	@mkdir -p $(obj)include
33513ab4827cSWolfgang Denk	@echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
33523313e0e2SMark Jonas	@$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
33533313e0e2SMark Jonas
3354b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig
33553ab4827cSWolfgang Denk	@mkdir -p $(obj)include
33563ab4827cSWolfgang Denk	@echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
335791c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3358b2b5e2bbSYoshihiro Shimoda
3359b2b5e2bbSYoshihiro Shimoda#########################################################################
336069df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH)
336169df3c4dSNobuhiro Iwamatsu#########################################################################
3362699f0512SWolfgang Denk
3363699f0512SWolfgang DenkMigoR_config :       unconfig
3364699f0512SWolfgang Denk	@mkdir -p $(obj)include
3365699f0512SWolfgang Denk	@echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
33669a1d3557SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 MigoR renesas
3367699f0512SWolfgang Denk
336869df3c4dSNobuhiro Iwamatsums7750se_config: unconfig
33693ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3370210ed200SWolfgang Denk	@echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
337191c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
337269df3c4dSNobuhiro Iwamatsu
3373d91ea45dSNobuhiro Iwamatsums7722se_config :	unconfig
33743ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3375210ed200SWolfgang Denk	@echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
337691c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
33777a8e9bedSwdenk
3378699f0512SWolfgang Denkr2dplus_config  :   unconfig
33793ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3380699f0512SWolfgang Denk	@echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3381c1da2a22SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus renesas
3382c2042f59Sgoda.yusuke
3383c133c1fbSYusuke Godar7780mp_config: unconfig
33843ab4827cSWolfgang Denk	@mkdir -p $(obj)include
33853ab4827cSWolfgang Denk	@echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3386acd3e30dSNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp renesas
3387c133c1fbSYusuke Goda
33887faddaecSNobuhiro Iwamatsush7763rdp_config  :   unconfig
33893ab4827cSWolfgang Denk	@mkdir -p $(obj)include
33903ab4827cSWolfgang Denk	@echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
339178385bf2SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp renesas
33927faddaecSNobuhiro Iwamatsu
33930d53a47dSNobuhiro Iwamatsush7785lcr_config  :   unconfig
33940d53a47dSNobuhiro Iwamatsu	@ >include/config.h
33950d53a47dSNobuhiro Iwamatsu	@echo "#define CONFIG_SH7785LCR 1" >> include/config.h
3396c6525d45SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 sh7785lcr renesas
33970d53a47dSNobuhiro Iwamatsu
33986f0da497SNobuhiro Iwamatsuap325rxa_config  :   unconfig
33996f0da497SNobuhiro Iwamatsu	@mkdir -p $(obj)include
34006f0da497SNobuhiro Iwamatsu	@echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
3401f84e6ea2SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa renesas
34026f0da497SNobuhiro Iwamatsu
3403c2f02da2SDaniel Hellstrom#========================================================================
3404c2f02da2SDaniel Hellstrom# SPARC
3405c2f02da2SDaniel Hellstrom#========================================================================
3406699f0512SWolfgang Denk
34071e9a164eSDaniel Hellstrom#########################################################################
34081e9a164eSDaniel Hellstrom## LEON3
34091e9a164eSDaniel Hellstrom#########################################################################
3410c2f02da2SDaniel Hellstrom
341171d7e4c0SDaniel Hellstrom# Gaisler GR-XC3S-1500 board
341271d7e4c0SDaniel Hellstromgr_xc3s_1500_config : unconfig
341371d7e4c0SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
341471d7e4c0SDaniel Hellstrom
34156ed8a43aSDaniel Hellstrom# Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
34166ed8a43aSDaniel Hellstromgr_cpci_ax2000_config : unconfig
34176ed8a43aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
34186ed8a43aSDaniel Hellstrom
34196940383dSDaniel Hellstrom# Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
34206940383dSDaniel Hellstrom# Development board Stratix II edition, FPGA Device EP2S60.
34216940383dSDaniel Hellstromgr_ep2s60_config: unconfig
34226940383dSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
34236940383dSDaniel Hellstrom
3424823edd8aSDaniel Hellstrom# Gaisler LEON3 GRSIM simulator
3425823edd8aSDaniel Hellstromgrsim_config : unconfig
3426823edd8aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3427823edd8aSDaniel Hellstrom
34287ebf7443Swdenk#########################################################################
3429b330990cSDaniel Hellstrom## LEON2
3430b330990cSDaniel Hellstrom#########################################################################
3431b330990cSDaniel Hellstrom
3432ab68f921SDaniel Hellstrom# Gaisler LEON2 GRSIM simulator
3433ab68f921SDaniel Hellstromgrsim_leon2_config : unconfig
3434ab68f921SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3435ab68f921SDaniel Hellstrom
34367ebf7443Swdenk#########################################################################
34377ebf7443Swdenk#########################################################################
34387ebf7443Swdenk#########################################################################
343985ec0bccSwdenk
34403e38691eSwdenkclean:
3441f9301e1cSWolfgang Denk	@rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
3442f9301e1cSWolfgang Denk	       $(obj)examples/hello_world  $(obj)examples/interrupt	  \
3443f9301e1cSWolfgang Denk	       $(obj)examples/mem_to_mem_idma2intr			  \
3444f9301e1cSWolfgang Denk	       $(obj)examples/sched	   $(obj)examples/smc91111_eeprom \
3445f9301e1cSWolfgang Denk	       $(obj)examples/test_burst   $(obj)examples/timer
3446f9301e1cSWolfgang Denk	@rm -f $(obj)tools/bmp_logo	   $(obj)tools/easylogo/easylogo  \
3447f9301e1cSWolfgang Denk	       $(obj)tools/env/{fw_printenv,fw_setenv}			  \
3448f9301e1cSWolfgang Denk	       $(obj)tools/envcrc					  \
3449f9301e1cSWolfgang Denk	       $(obj)tools/gdb/{astest,gdbcont,gdbsend}			  \
3450f9301e1cSWolfgang Denk	       $(obj)tools/gen_eth_addr    $(obj)tools/img2srec		  \
3451f9301e1cSWolfgang Denk	       $(obj)tools/mkimage	   $(obj)tools/mpc86x_clk	  \
3452f9301e1cSWolfgang Denk	       $(obj)tools/ncb		   $(obj)tools/ubsha1
3453f9301e1cSWolfgang Denk	@rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image}	  \
3454f9301e1cSWolfgang Denk	       $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin}	  \
3455f9301e1cSWolfgang Denk	       $(obj)board/trab/trab_fkt   $(obj)board/voiceblue/eeprom   \
3456f9301e1cSWolfgang Denk	       $(obj)board/{integratorap,integratorcp}/u-boot.lds	  \
34579171fc81SMike Frysinger	       $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
34589171fc81SMike Frysinger	       $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3459dc7746d8SWolfgang Denk	@rm -f $(obj)include/bmp_logo.h
3460dc7746d8SWolfgang Denk	@rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
34611bb707c3SKyungmin Park	@rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3462561858eeSPeter Tyser	@rm -f $(obj)api_examples/demo $(TIMESTAMP_FILE) $(VERSION_FILE)
3463ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \
34647ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
34657ebf7443Swdenk		-o -name '*.o'	-o -name '*.a'	\) -print \
34667ebf7443Swdenk		| xargs rm -f
34677ebf7443Swdenk
34687ebf7443Swdenkclobber:	clean
3469ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \( -name .depend \
34704c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
34714c0d4c3bSwdenk		-print0 \
34724c0d4c3bSwdenk		| xargs -0 rm -f
3473ffda586fSLi Yang	@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
34745013c09fSWolfgang Denk		$(obj)cscope.* $(obj)*.*~
3475ae6d1056SWolfgang Denk	@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
34760cf4fd3cSJean-Christophe PLAGNIOL-VILLARD	@rm -f $(obj)tools/{crc32.c,env_embedded.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
347789cdab78SMike Frysinger	@rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
34787e492d82SMarian Balakowicz	@rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
34795013c09fSWolfgang Denk	@rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3480ae6d1056SWolfgang Denk	@rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3481a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3482a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
3483a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)api_examples ] || find $(obj)api_examples -name "*" -type l -print | xargs rm -f
34847ebf7443Swdenk
3485f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
34867ebf7443Swdenkmrproper \
34877ebf7443Swdenkdistclean:	clobber unconfig
3488f9328639SMarian Balakowiczelse
3489f9328639SMarian Balakowiczmrproper \
3490f9328639SMarian Balakowiczdistclean:	clobber unconfig
3491ae6d1056SWolfgang Denk	rm -rf $(obj)*
3492f9328639SMarian Balakowiczendif
34937ebf7443Swdenk
34947ebf7443Swdenkbackup:
34957ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
34967ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
34977ebf7443Swdenk
34987ebf7443Swdenk#########################################################################
3499