xref: /openbmc/u-boot/Makefile (revision 0f52b560)
17ebf7443Swdenk#
2572e6179SDetlev Zundel# (C) Copyright 2000-2009
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
256b8edfdeSWolfgang DenkPATCHLEVEL = 06
268b9e4787SWolfgang DenkSUBLEVEL =
276b1f78aeSWolfgang 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
1406d1ce387SMike Frysinger# The "tools" are needed early, so put this first
1416d1ce387SMike Frysinger# Don't include stuff already done in $(LIBS)
1426d1ce387SMike FrysingerSUBDIRS	= tools \
1436d1ce387SMike Frysinger	  examples \
1446d1ce387SMike Frysinger	  api_examples
1456d1ce387SMike Frysinger
1466d1ce387SMike Frysinger.PHONY : $(SUBDIRS)
1476d1ce387SMike Frysinger
148ae6d1056SWolfgang Denkifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
149f9328639SMarian Balakowicz
1507ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
151ae6d1056SWolfgang Denkinclude $(obj)include/config.mk
1521d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
153f9328639SMarian Balakowicz
1547ebf7443Swdenkifndef CROSS_COMPILE
155a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH))
1567ebf7443SwdenkCROSS_COMPILE =
1577ebf7443Swdenkelse
1587ebf7443Swdenkifeq ($(ARCH),ppc)
15916c8d5e7SWolfgang DenkCROSS_COMPILE = ppc_8xx-
1607ebf7443Swdenkendif
1617ebf7443Swdenkifeq ($(ARCH),arm)
162dc7c9a1aSwdenkCROSS_COMPILE = arm-linux-
1637ebf7443Swdenkendif
1642262cfeeSwdenkifeq ($(ARCH),i386)
1657a8e9bedSwdenkCROSS_COMPILE = i386-linux-
1667a8e9bedSwdenkendif
16743d9616cSwdenkifeq ($(ARCH),mips)
16843d9616cSwdenkCROSS_COMPILE = mips_4KC-
16943d9616cSwdenkendif
1704a551709Swdenkifeq ($(ARCH),nios)
1714a551709SwdenkCROSS_COMPILE = nios-elf-
1724a551709Swdenkendif
1735c952cf0Swdenkifeq ($(ARCH),nios2)
1745c952cf0SwdenkCROSS_COMPILE = nios2-elf-
1755c952cf0Swdenkendif
1764e5ca3ebSwdenkifeq ($(ARCH),m68k)
1774e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
1784e5ca3ebSwdenkendif
179507bbe3eSwdenkifeq ($(ARCH),microblaze)
180507bbe3eSwdenkCROSS_COMPILE = mb-
181507bbe3eSwdenkendif
1820afe519aSWolfgang Denkifeq ($(ARCH),blackfin)
183ef26a08fSAubrey.LiCROSS_COMPILE = bfin-uclinux-
1840afe519aSWolfgang Denkendif
1857b64fef3SWolfgang Denkifeq ($(ARCH),avr32)
1865374b36dSHaavard SkinnemoenCROSS_COMPILE = avr32-linux-
1877b64fef3SWolfgang Denkendif
1880b135cfcSNobuhiro Iwamatsuifeq ($(ARCH),sh)
1890b135cfcSNobuhiro IwamatsuCROSS_COMPILE = sh4-linux-
190c2f02da2SDaniel Hellstromendif
191c2f02da2SDaniel Hellstromifeq ($(ARCH),sparc)
192c2f02da2SDaniel HellstromCROSS_COMPILE = sparc-elf-
193c2f02da2SDaniel Hellstromendif	# sparc
194ae6d1056SWolfgang Denkendif	# HOSTARCH,ARCH
195ae6d1056SWolfgang Denkendif	# CROSS_COMPILE
1967ebf7443Swdenk
1977ebf7443Swdenkexport	CROSS_COMPILE
1987ebf7443Swdenk
19992b197f0SWolfgang Denk# load other configuration
20092b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk
20192b197f0SWolfgang Denk
2027ebf7443Swdenk#########################################################################
2037ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
2047ebf7443Swdenk
2057ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
2062262cfeeSwdenkifeq ($(CPU),i386)
2072262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
20885ffbbd5SGraeme RussOBJS += cpu/$(CPU)/resetvec.o
2092262cfeeSwdenkendif
2107ebf7443Swdenkifeq ($(CPU),ppc4xx)
2117ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
2127ebf7443Swdenkendif
21342d1f039Swdenkifeq ($(CPU),mpc85xx)
21442d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
21542d1f039Swdenkendif
2167ebf7443Swdenk
217f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS))
218f9328639SMarian Balakowicz
2199fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
220fc9c1727SLuigi 'Comio' MantelliniLIBS += lib_generic/lzma/liblzma.a
221b1b4e89aSStefan RoeseLIBS += lib_generic/lzo/liblzo.a
2227608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
2237608d75fSKim Phillips	"board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
2247ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
2251d9f4105Swdenkifdef SOC
2261d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
2271d9f4105Swdenkendif
228323bfa8fSStefan Roeseifeq ($(CPU),ixp)
229323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a
230323bfa8fSStefan Roeseendif
2317ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
232518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
2339eefe2a2SStefan Roese	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a \
2349eefe2a2SStefan Roese	fs/ubifs/libubifs.a
2357ebf7443SwdenkLIBS += net/libnet.a
2367ebf7443SwdenkLIBS += disk/libdisk.a
2370f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a
23833daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a
23957a12720STsiChungLiewLIBS += drivers/dma/libdma.a
240c8aa7dfcSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/fpga/libfpga.a
241e92739d3SPeter TyserLIBS += drivers/gpio/libgpio.a
242f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a
243080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a
24416b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a
245318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a
2465ce13051SHaavard SkinnemoenLIBS += drivers/mmc/libmmc.a
24759829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a
24859829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a
24959829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a
25059829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a
25158be3a10SKyungmin ParkLIBS += drivers/mtd/ubi/libubi.a
252d25ce7d2SHaavard SkinnemoenLIBS += drivers/mtd/spi/libspi_flash.a
2538e585f02STsiChung LiewLIBS += drivers/net/libnet.a
25455195773SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/phy/libphy.a
2552439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a
25693a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a
25773646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a
25804a9e118SBen WarrenLIBS += drivers/spi/libspi.a
2597737d5c6SDave Liuifeq ($(CPU),mpc83xx)
2607737d5c6SDave LiuLIBS += drivers/qe/qe.a
2617737d5c6SDave Liuendif
262da9d4610SAndy Flemingifeq ($(CPU),mpc85xx)
263da9d4610SAndy FlemingLIBS += drivers/qe/qe.a
26458e5e9afSKumar GalaLIBS += cpu/mpc8xxx/ddr/libddr.a
2655e981d68SEd SwarthoutTAG_SUBDIRS += cpu/mpc8xxx
26658e5e9afSKumar Galaendif
26758e5e9afSKumar Galaifeq ($(CPU),mpc86xx)
26858e5e9afSKumar GalaLIBS += cpu/mpc8xxx/ddr/libddr.a
2695e981d68SEd SwarthoutTAG_SUBDIRS += cpu/mpc8xxx
270da9d4610SAndy Flemingendif
27159829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a
2728e585f02STsiChung LiewLIBS += drivers/serial/libserial.a
273572e6179SDetlev ZundelLIBS += drivers/twserial/libtws.a
2742731b9a8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/gadget/libusb_gadget.a
2752731b9a8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/host/libusb_host.a
2762731b9a8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/musb/libusb_musb.a
27759829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a
278843a2654SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/watchdog/libwatchdog.a
2797ebf7443SwdenkLIBS += common/libcommon.a
2807651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a
281500856ebSRafal JaworowskiLIBS += api/libapi.a
2822d2b994aSYuri TikhonovLIBS += post/libpost.a
283f9328639SMarian Balakowicz
284f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS))
285561858eeSPeter Tyser.PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE)
286a8c7c708Swdenk
287de109d90SWolfgang DenkLIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
288de109d90SWolfgang DenkLIBBOARD := $(addprefix $(obj),$(LIBBOARD))
289de109d90SWolfgang Denk
2904f7cb08eSwdenk# Add GCC lib
2911a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
2923d3befa7Swdenk
293887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y)
294887e2ec9SStefan RoeseNAND_SPL = nand_spl
295887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin
296887e2ec9SStefan Roeseendif
297887e2ec9SStefan Roese
298751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y)
299751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl
300751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin
301751b9b51SKyungmin Parkendif
302751b9b51SKyungmin Park
303f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS))
304de109d90SWolfgang Denk__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
305f9328639SMarian Balakowicz
3067ebf7443Swdenk#########################################################################
307bdccc4feSwdenk#########################################################################
3087ebf7443Swdenk
309751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
31094a91e24SMike Frysingerifeq ($(ARCH),blackfin)
31194a91e24SMike FrysingerALL += $(obj)u-boot.ldr
31294a91e24SMike Frysingerendif
3137ebf7443Swdenk
314bdccc4feSwdenkall:		$(ALL)
3157ebf7443Swdenk
316f9328639SMarian Balakowicz$(obj)u-boot.hex:	$(obj)u-boot
3176310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
3186310eb9dSwdenk
319f9328639SMarian Balakowicz$(obj)u-boot.srec:	$(obj)u-boot
3200817d688SRicardo Ribalda Delgado		$(OBJCOPY) -O srec $< $@
3217ebf7443Swdenk
322f9328639SMarian Balakowicz$(obj)u-boot.bin:	$(obj)u-boot
3237ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
3247ebf7443Swdenk
32594a91e24SMike Frysinger$(obj)u-boot.ldr:	$(obj)u-boot
32667c2829bSMike Frysinger		$(obj)tools/envcrc --binary > $(obj)env-ldr.o
32768e56324SMike Frysinger		$(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS)
32894a91e24SMike Frysinger
32994a91e24SMike Frysinger$(obj)u-boot.ldr.hex:	$(obj)u-boot.ldr
33094a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
33194a91e24SMike Frysinger
33294a91e24SMike Frysinger$(obj)u-boot.ldr.srec:	$(obj)u-boot.ldr
33394a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
33494a91e24SMike Frysinger
335f9328639SMarian Balakowicz$(obj)u-boot.img:	$(obj)u-boot.bin
336bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
337bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
338881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
339bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
340bdccc4feSwdenk		-d $< $@
341bdccc4feSwdenk
342566a494fSHeiko Schocher$(obj)u-boot.sha1:	$(obj)u-boot.bin
34301159530SHeiko Schocher		$(obj)tools/ubsha1 $(obj)u-boot.bin
344566a494fSHeiko Schocher
345f9328639SMarian Balakowicz$(obj)u-boot.dis:	$(obj)u-boot
3467ebf7443Swdenk		$(OBJDUMP) -d $< > $@
3477ebf7443Swdenk
348ecb1dc89SMike FrysingerGEN_UBOOT = \
349de109d90SWolfgang Denk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
350de109d90SWolfgang Denk		sed  -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
351f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
352f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
353b2184c31Swdenk			-Map u-boot.map -o u-boot
354ecb1dc89SMike Frysinger$(obj)u-boot:		depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
355ecb1dc89SMike Frysinger		$(GEN_UBOOT)
356ecb1dc89SMike Frysingerifeq ($(CONFIG_KALLSYMS),y)
357ecb1dc89SMike Frysinger		smap=`$(call SYSTEM_MAP,u-boot) | awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\0"}'` ; \
358ecb1dc89SMike Frysinger		$(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" -c common/system_map.c -o $(obj)common/system_map.o
359ecb1dc89SMike Frysinger		$(GEN_UBOOT) $(obj)common/system_map.o
360ecb1dc89SMike Frysingerendif
3617ebf7443Swdenk
362d0d6144eSPeter Tyser$(OBJS):	depend
363f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
364f9328639SMarian Balakowicz
365d0d6144eSPeter Tyser$(LIBS):	depend $(SUBDIRS)
366f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
367a8c7c708Swdenk
368d0d6144eSPeter Tyser$(LIBBOARD):	depend $(LIBS)
369de109d90SWolfgang Denk		$(MAKE) -C $(dir $(subst $(obj),,$@))
370de109d90SWolfgang Denk
371d0d6144eSPeter Tyser$(SUBDIRS):	depend
372b028f715Swdenk		$(MAKE) -C $@ all
3737ebf7443Swdenk
374d0d6144eSPeter Tyser$(LDSCRIPT):	depend
375f65c9812SMike Frysinger		$(MAKE) -C $(dir $@) $(notdir $@)
376f65c9812SMike Frysinger
377561858eeSPeter Tyser$(NAND_SPL):	$(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
3788318fbf8SMarian Balakowicz		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
379887e2ec9SStefan Roese
380d0d6144eSPeter Tyser$(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin
3818318fbf8SMarian Balakowicz		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
382887e2ec9SStefan Roese
383561858eeSPeter Tyser$(ONENAND_IPL):	$(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
384f2302d44SStefan Roese		$(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
385751b9b51SKyungmin Park
386d0d6144eSPeter Tyser$(U_BOOT_ONENAND):	$(ONENAND_IPL) $(obj)u-boot.bin
387751b9b51SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
3881bb707c3SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
389751b9b51SKyungmin Park
390ae6d1056SWolfgang Denk$(VERSION_FILE):
391aa737945SMike Frysinger		@( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
392434c51a5SPeter Tyser		 '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp
3930ec7a061SMike Frysinger		@cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
394881a87ecSWolfgang Denk
395561858eeSPeter Tyser$(TIMESTAMP_FILE):
396561858eeSPeter Tyser		@date +'#define U_BOOT_DATE "%b %d %C%y"' > $@
397561858eeSPeter Tyser		@date +'#define U_BOOT_TIME "%T"' >> $@
398561858eeSPeter Tyser
3998f713fdfSdzugdbtools:
400f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
401f9328639SMarian Balakowicz
402f9328639SMarian Balakowiczupdater:
403f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
404f9328639SMarian Balakowicz
405f9328639SMarian Balakowiczenv:
40664b3727bSMarkus Klotzbücher		$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
4078f713fdfSdzu
408d0d6144eSPeter Tyserdepend dep:	$(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
409f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
4107ebf7443Swdenk
411a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include
412a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR)
413a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU)
414a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH)
415a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs
416a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat
417a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos
418a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2
41943ea36fbSWilliam JuulTAG_SUBDIRS += fs/yaffs2
420a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net
421a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk
422a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common
423a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator
424a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block
425e92739d3SPeter TyserTAG_SUBDIRS += drivers/gpio
426a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon
427a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c
428a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input
429a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc
4305ce13051SHaavard SkinnemoenTAG_SUBDIRS += drivers/mmc
431a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd
432a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand
433a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy
434a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand
435d25ce7d2SHaavard SkinnemoenTAG_SUBDIRS += drivers/mtd/spi
436a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net
437a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin
438a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci
439a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia
440a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe
441a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc
442a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial
44304a9e118SBen WarrenTAG_SUBDIRS += drivers/spi
444a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb
445a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video
446a340c325SJean-Christophe PLAGNIOL-VILLARD
447f9328639SMarian Balakowicztags ctags:
448ae6d1056SWolfgang Denk		ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
44988fed9a1SWolfgang Denk						-name '*.[ch]' -print`
4507ebf7443Swdenk
4517ebf7443Swdenketags:
452ae6d1056SWolfgang Denk		etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
45388fed9a1SWolfgang Denk						-name '*.[ch]' -print`
454ffda586fSLi Yangcscope:
455ffda586fSLi Yang		find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
456ffda586fSLi Yang						> cscope.files
457ffda586fSLi Yang		cscope -b -q -k
4587ebf7443Swdenk
459ecb1dc89SMike FrysingerSYSTEM_MAP = \
460ecb1dc89SMike Frysinger		$(NM) $1 | \
4617ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
462ecb1dc89SMike Frysinger		LC_ALL=C sort
463ecb1dc89SMike Frysinger$(obj)System.map:	$(obj)u-boot
464ecb1dc89SMike Frysinger		@$(call SYSTEM_MAP,$<) > $(obj)System.map
4657ebf7443Swdenk
4662f155f6cSGrant Likely#
4672f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles)
4682f155f6cSGrant Likely#
4692f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
4702f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when
4712f155f6cSGrant Likely# to regenerate the autoconf.mk file.
4721510b82dSWolfgang Denk$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
4731510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
47416fe7775SMike Frysinger	set -e ; \
475ae6d1056SWolfgang Denk	: Generate the dependancies ; \
4761510b82dSWolfgang Denk	$(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
4771510b82dSWolfgang Denk		-MQ $(obj)include/autoconf.mk include/common.h > $@
4781510b82dSWolfgang Denk
4791510b82dSWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h
4801510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
4811510b82dSWolfgang Denk	set -e ; \
482ae6d1056SWolfgang Denk	: Extract the config macros ; \
4831510b82dSWolfgang Denk	$(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
4844a0f7538SWolfgang Denk		sed -n -f tools/scripts/define2mk.sed > $@.tmp && \
4854a0f7538SWolfgang Denk	mv $@.tmp $@
4862f155f6cSGrant Likely
487ae6d1056SWolfgang Denksinclude $(obj)include/autoconf.mk.dep
4882f155f6cSGrant Likely
4897ebf7443Swdenk#########################################################################
490ae6d1056SWolfgang Denkelse	# !config.mk
491f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
492f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
493561858eeSPeter Tyser$(SUBDIRS) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools updater env depend \
494ffda586fSLi Yangdep tags ctags etags cscope $(obj)System.map:
4957ebf7443Swdenk	@echo "System not configured - see README" >&2
4967ebf7443Swdenk	@ exit 1
497ae6d1056SWolfgang Denkendif	# config.mk
4987ebf7443Swdenk
4994e53a258SWolfgang Denk.PHONY : CHANGELOG
5004e53a258SWolfgang DenkCHANGELOG:
501b985b5d6SBen Warren	git log --no-merges U-Boot-1_1_5.. | \
502b985b5d6SBen Warren	unexpand -a | sed -e 's/\s\s*$$//' > $@
5034e53a258SWolfgang Denk
5040a823aa2SHarald Welteinclude/license.h: tools/bin2header COPYING
5050a823aa2SHarald Welte	 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
5067ebf7443Swdenk#########################################################################
5077ebf7443Swdenk
5087ebf7443Swdenkunconfig:
509887e2ec9SStefan Roese	@rm -f $(obj)include/config.h $(obj)include/config.mk \
5102f155f6cSGrant Likely		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
5112f155f6cSGrant Likely		$(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
5127ebf7443Swdenk
5137ebf7443Swdenk#========================================================================
5147ebf7443Swdenk# PowerPC
5157ebf7443Swdenk#========================================================================
5160db5bca8Swdenk
5170db5bca8Swdenk#########################################################################
5180db5bca8Swdenk## MPC5xx Systems
5190db5bca8Swdenk#########################################################################
5200db5bca8Swdenk
5215e5f9ed2Swdenkcanmb_config:	unconfig
522f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
5235e5f9ed2Swdenk
5240db5bca8Swdenkcmi_mpc5xx_config:	unconfig
525f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
5260db5bca8Swdenk
527b6e4c403SwdenkPATI_config:		unconfig
528f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
529b6e4c403Swdenk
5307ebf7443Swdenk#########################################################################
531945af8d7Swdenk## MPC5xxx Systems
532945af8d7Swdenk#########################################################################
533a87589daSwdenk
534dafba16eSWolfgang Denkaev_config: unconfig
5354677988cSWolfgang Grandegger	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
536dafba16eSWolfgang Denk
5376ca24c64Sdzu@denx.deBC3450_config:	unconfig
538f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
5396ca24c64Sdzu@denx.de
540699f0512SWolfgang Denkcm5200_config:	unconfig
541699f0512SWolfgang Denk	@$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
542699f0512SWolfgang Denk
5435e4b3361SStefan Roesecpci5200_config:  unconfig
544f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
5455e4b3361SStefan Roese
5465c4fa9b4SGrzegorz Bernackidigsy_mtc_config \
5475c4fa9b4SGrzegorz Bernackidigsy_mtc_LOWBOOT_config	\
5485c4fa9b4SGrzegorz Bernackidigsy_mtc_RAMBOOT_config:	unconfig
5495c4fa9b4SGrzegorz Bernacki	@mkdir -p $(obj)include
5505c4fa9b4SGrzegorz Bernacki	@mkdir -p $(obj)board/digsy_mtc
5515c4fa9b4SGrzegorz Bernacki	@ >$(obj)include/config.h
5525c4fa9b4SGrzegorz Bernacki	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
5535c4fa9b4SGrzegorz Bernacki		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/digsy_mtc/config.tmp ; \
5545c4fa9b4SGrzegorz Bernacki		  echo "... with LOWBOOT configuration" ; \
5555c4fa9b4SGrzegorz Bernacki		}
5565c4fa9b4SGrzegorz Bernacki	@[ -z "$(findstring RAMBOOT_,$@)" ] || \
5575c4fa9b4SGrzegorz Bernacki		{ echo "TEXT_BASE = 0x00100000" >$(obj)board/digsy_mtc/config.tmp ; \
5585c4fa9b4SGrzegorz Bernacki		  echo "... with RAMBOOT configuration" ; \
5595c4fa9b4SGrzegorz Bernacki		}
5605c4fa9b4SGrzegorz Bernacki	@$(MKCONFIG) -a digsy_mtc  ppc mpc5xxx digsy_mtc
5615c4fa9b4SGrzegorz Bernacki
562a87589daSwdenkhmi1001_config:	unconfig
563f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
564a87589daSwdenk
565e35745bbSwdenkLite5200_config				\
566e35745bbSwdenkLite5200_LOWBOOT_config			\
567e35745bbSwdenkLite5200_LOWBOOT08_config		\
568e35745bbSwdenkicecube_5200_config			\
569e35745bbSwdenkicecube_5200_LOWBOOT_config		\
570e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
571b2001f27Swdenkicecube_5200_DDR_config			\
57279d696fcSwdenkicecube_5200_DDR_LOWBOOT_config		\
57379d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
574e35745bbSwdenkicecube_5100_config:			unconfig
575f9328639SMarian Balakowicz	@mkdir -p $(obj)include
576f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
57717d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
57817d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
579f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
580f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
58117d704ebSwdenk		  fi ; \
582ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5835cf9da48Swdenk		}
5845cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
585f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
5865cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
587ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5885cf9da48Swdenk		}
589b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
590f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
591ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
592b2001f27Swdenk		}
593d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
594f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
595ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
596d4ca31c4Swdenk		}
597a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
598f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
599ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
600945af8d7Swdenk		}
601f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
602945af8d7Swdenk
6032605e90bSHeiko Schocherjupiter_config:	unconfig
6042605e90bSHeiko Schocher	@$(MKCONFIG) jupiter ppc mpc5xxx jupiter
6052605e90bSHeiko Schocher
606138ff60cSwdenkinka4x0_config:	unconfig
607f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
608138ff60cSwdenk
60909e4b0c5SWolfgang Denklite5200b_config	\
610d3832e8fSDomen Puncerlite5200b_PM_config	\
61109e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
612f9328639SMarian Balakowicz	@mkdir -p $(obj)include
613f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
614f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
615ae6d1056SWolfgang Denk	@ $(XECHO) "... DDR memory revision"
616f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
617f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
618d3832e8fSDomen Puncer	@[ -z "$(findstring _PM_,$@)" ] || \
619d3832e8fSDomen Puncer		{ echo "#define CONFIG_LITE5200B_PM"	>>$(obj)include/config.h ; \
620ae6d1056SWolfgang Denk		  $(XECHO) "... with power management (low-power mode) support" ; \
621d3832e8fSDomen Puncer		}
62209e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
623f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
624ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
62509e4b0c5SWolfgang Denk		}
626ae6d1056SWolfgang Denk	@ $(XECHO) "... with MPC5200B processor"
627f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
62809e4b0c5SWolfgang Denk
629f1ee9825SStefan Roesemcc200_config	\
630ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
631ed1cf845SWolfgang Denkmcc200_highboot_config	\
632ed1cf845SWolfgang Denkmcc200_COM12_config	\
633ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
634113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
635113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
636ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
637ed1cf845SWolfgang Denkprs200_config	\
638ed1cf845SWolfgang Denkprs200_DDR_config	\
639ed1cf845SWolfgang Denkprs200_highboot_config	\
640ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
641f9328639SMarian Balakowicz	@mkdir -p $(obj)include
642f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
6434819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
644ae6d1056SWolfgang Denk		{ $(XECHO) "... with lowboot configuration" ; \
645f1ee9825SStefan Roese		}
6464819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
647f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
648ae6d1056SWolfgang Denk		  $(XECHO) "... with highboot configuration" ; \
6494819fad9SWolfgang Denk		}
6504819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
651ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
652ed1cf845SWolfgang Denk		  then \
653ae6d1056SWolfgang Denk			$(XECHO) "... with DDR" ; \
654ed1cf845SWolfgang Denk		  else \
655ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
656ed1cf845SWolfgang Denk			then \
657ae6d1056SWolfgang Denk				$(XECHO) "... with DDR" ; \
658ed1cf845SWolfgang Denk			else \
659f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
660ae6d1056SWolfgang Denk				$(XECHO) "... with SDRAM" ; \
661ed1cf845SWolfgang Denk			fi; \
662ed1cf845SWolfgang Denk		  fi; \
6634819fad9SWolfgang Denk		}
6644819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
665f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
666ae6d1056SWolfgang Denk		  $(XECHO) "... with SDRAM" ; \
6674819fad9SWolfgang Denk		}
668463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
669f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
670ae6d1056SWolfgang Denk		  $(XECHO) "... with console on COM12" ; \
671463764c8SWolfgang Denk		}
672ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
673f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"	>>$(obj)include/config.h ;\
674ed1cf845SWolfgang Denk		}
675f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
67686ea5f93SWolfgang Denk
6778b7d1f0aSStefan Roesemecp5200_config:  unconfig
678ae6d1056SWolfgang Denk	@$(MKCONFIG) mecp5200  ppc mpc5xxx mecp5200 esd
6798b7d1f0aSStefan Roese
680699f0512SWolfgang Denkmotionpro_config:	unconfig
681699f0512SWolfgang Denk	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
682699f0512SWolfgang Denk
683258c37b1SHeiko Schochermucmc52_config:		unconfig
684258c37b1SHeiko Schocher	@$(MKCONFIG) mucmc52 ppc mpc5xxx mucmc52
685258c37b1SHeiko Schocher
6866341d9d7SHeiko Schochermunices_config:	unconfig
687ae6d1056SWolfgang Denk	@$(MKCONFIG) munices ppc mpc5xxx munices
6886341d9d7SHeiko Schocher
689699f0512SWolfgang DenkMVBC_P_config: unconfig
690699f0512SWolfgang Denk	@mkdir -p $(obj)include
691699f0512SWolfgang Denk	@mkdir -p $(obj)board/mvbc_p
692699f0512SWolfgang Denk	@ >$(obj)include/config.h
693699f0512SWolfgang Denk	@[ -z "$(findstring MVBC_P,$@)" ] || \
694699f0512SWolfgang Denk	{   	echo "#define CONFIG_MVBC_P" 	>>$(obj)include/config.h; }
695699f0512SWolfgang Denk	@$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
696699f0512SWolfgang Denk
69791c82076SJean-Christophe PLAGNIOL-VILLARDo2dnt_config:	unconfig
698f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
699df04a3dfSWolfgang Denk
7005e4b3361SStefan Roesepf5200_config:	unconfig
701f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
7025e4b3361SStefan Roese
70389394047SwdenkPM520_config \
70489394047SwdenkPM520_DDR_config \
70589394047SwdenkPM520_ROMBOOT_config \
70689394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
707f9328639SMarian Balakowicz	@mkdir -p $(obj)include
70889394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
709f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
710ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
71189394047Swdenk		}
71289394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
713f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
714ae6d1056SWolfgang Denk		  $(XECHO) "... booting from 8-bit flash" ; \
71589394047Swdenk		}
716f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
71789394047Swdenk
7186624b687SWolfgang Denksmmaco4_config: unconfig
7194677988cSWolfgang Grandegger	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
7209cdc8386SWolfgang Denk
7219cdc8386SWolfgang Denkspieval_config:	unconfig
7224677988cSWolfgang Grandegger	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
7239cdc8386SWolfgang Denk
72445a212c4SWolfgang DenkTB5200_B_config \
725b87dfd28SWolfgang DenkTB5200_config:	unconfig
726f9328639SMarian Balakowicz	@mkdir -p $(obj)include
72745a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
728f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
729ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200B processor" ; \
73045a212c4SWolfgang Denk		}
7314677988cSWolfgang Grandegger	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
732b87dfd28SWolfgang Denk
733d4ca31c4SwdenkMINI5200_config	\
734d4ca31c4SwdenkEVAL5200_config	\
735d4ca31c4SwdenkTOP5200_config:	unconfig
736f9328639SMarian Balakowicz	@mkdir -p $(obj)include
737f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
738f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
739d4ca31c4Swdenk
7406c7a1408SwdenkTotal5100_config		\
7416c7a1408SwdenkTotal5200_config		\
7426c7a1408SwdenkTotal5200_lowboot_config	\
7436c7a1408SwdenkTotal5200_Rev2_config		\
7446c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
745f9328639SMarian Balakowicz	@mkdir -p $(obj)include
746f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
7476c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
748f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
749ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
7506c7a1408Swdenk		}
7516c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
752f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
753ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
7546c7a1408Swdenk		}
7556c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
756f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
757ae6d1056SWolfgang Denk		  $(XECHO) "... revision 1 board" ; \
7586c7a1408Swdenk		}
7596c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
760f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
761ae6d1056SWolfgang Denk		  $(XECHO) "... revision 2 board" ; \
7626c7a1408Swdenk		}
7636c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
764f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
765ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
7666c7a1408Swdenk		}
767f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
7686c7a1408Swdenk
7695196a7a0SWolfgang Denkcam5200_config \
770d9384de2SMarian Balakowiczcam5200_niosflash_config \
7715196a7a0SWolfgang Denkfo300_config \
7725196a7a0SWolfgang DenkMiniFAP_config \
7735078cce8SWolfgang DenkTQM5200S_config \
7745078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
7755196a7a0SWolfgang DenkTQM5200_B_config \
7765196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
7775196a7a0SWolfgang DenkTQM5200_config	\
7785196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
779f9328639SMarian Balakowicz	@mkdir -p $(obj)include
7804677988cSWolfgang Grandegger	@mkdir -p $(obj)board/tqc/tqm5200
781135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
782f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
783f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
784f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
785ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200S on Cam5200" ; \
7865078cce8SWolfgang Denk		}
787d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
788d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
789ae6d1056SWolfgang Denk		  $(XECHO) "... with NIOS flash driver" ; \
790d9384de2SMarian Balakowicz		}
7916d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
792f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
793ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200 on FO300" ; \
7946d3bc9b8SMarian Balakowicz		}
795cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
796f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
797ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200_AC on MiniFAP" ; \
798978b1096SWolfgang Denk		}
799cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
800f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
801ae6d1056SWolfgang Denk		  $(XECHO) "... on a STK52XX.100 base board" ; \
80256523f12Swdenk		}
8035078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
804f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
8055078cce8SWolfgang Denk		}
8065078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
807f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
808f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
80945a212c4SWolfgang Denk		}
810978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
811f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
812978b1096SWolfgang Denk		}
8134677988cSWolfgang Grandegger	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
814699f0512SWolfgang Denk
8156dedf3d4SHeiko Schocheruc101_config:		unconfig
8166dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
81753d4a498SBartlomiej Sieka
818699f0512SWolfgang Denkv38b_config: unconfig
819699f0512SWolfgang Denk	@$(MKCONFIG) -a v38b ppc mpc5xxx v38b
82056523f12Swdenk
821945af8d7Swdenk#########################################################################
8228993e54bSRafal Jaworowski## MPC512x Systems
8238993e54bSRafal Jaworowski#########################################################################
824699f0512SWolfgang Denk
82552568c36SWolfgang Denkaria_config:	unconfig
82652568c36SWolfgang Denk	@$(MKCONFIG) -a aria ppc mpc512x aria davedenx
82752568c36SWolfgang Denk
828e53b507cSStefan Roesemecp5123_config:	unconfig
829e53b507cSStefan Roese	@$(MKCONFIG) -a mecp5123 ppc mpc512x mecp5123 esd
830e53b507cSStefan Roese
83172601d04SWolfgang Denkmpc5121ads_config \
83272601d04SWolfgang Denkmpc5121ads_rev2_config	\
8335f91db7fSJohn Rigby	: unconfig
834210ed200SWolfgang Denk	@mkdir -p $(obj)include
835f31c49dbSMartha Marx	@if [ "$(findstring rev2,$@)" ] ; then \
836f31c49dbSMartha Marx		echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
8375f91db7fSJohn Rigby	fi
83872601d04SWolfgang Denk	@$(MKCONFIG) -a mpc5121ads ppc mpc512x mpc5121ads freescale
8398993e54bSRafal Jaworowski
8408993e54bSRafal Jaworowski#########################################################################
8417ebf7443Swdenk## MPC8xx Systems
8427ebf7443Swdenk#########################################################################
8437ebf7443Swdenk
8442d24a3a7SwdenkAdder_config	\
8452d24a3a7SwdenkAdder87x_config \
84626238132SwdenkAdderII_config	\
8472d24a3a7Swdenk	:		unconfig
848f9328639SMarian Balakowicz	@mkdir -p $(obj)include
84926238132Swdenk	$(if $(findstring AdderII,$@), \
850f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
851f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
8522d24a3a7Swdenk
85316c8d5e7SWolfgang DenkAdderUSB_config:	unconfig
85491c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
85516c8d5e7SWolfgang Denk
856180d3f74SwdenkADS860_config	  \
857180d3f74SwdenkFADS823_config	  \
858180d3f74SwdenkFADS850SAR_config \
859180d3f74SwdenkMPC86xADS_config  \
8601114257cSwdenkMPC885ADS_config  \
861180d3f74SwdenkFADS860T_config:	unconfig
862f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
8637ebf7443Swdenk
8647ebf7443SwdenkAMX860_config	:	unconfig
865f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
8667ebf7443Swdenk
8677ebf7443Swdenkc2mon_config:		unconfig
868f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
8697ebf7443Swdenk
8707ebf7443SwdenkCCM_config:		unconfig
871f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
8727ebf7443Swdenk
8737ebf7443Swdenkcogent_mpc8xx_config:	unconfig
874f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
8757ebf7443Swdenk
8763bac3513SwdenkELPT860_config:		unconfig
877f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
8783bac3513Swdenk
87984c960ceSWolfgang DenkEP88x_config:		unconfig
880f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
88184c960ceSWolfgang Denk
8827ebf7443SwdenkESTEEM192E_config:	unconfig
883f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
8847ebf7443Swdenk
8857ebf7443SwdenkETX094_config	:	unconfig
886f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
8877ebf7443Swdenk
8887ebf7443SwdenkFLAGADM_config:	unconfig
889f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
8907ebf7443Swdenk
8917aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
8927aa78614Swdenk
8937aa78614SwdenkGEN860T_SC_config	\
8947ebf7443SwdenkGEN860T_config: unconfig
895f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8967aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
897f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
898ae6d1056SWolfgang Denk		  $(XECHO) "With reduced H/W feature set (SC)..." ; \
8997aa78614Swdenk		}
900f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
9017ebf7443Swdenk
9027ebf7443SwdenkGENIETV_config:	unconfig
903f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
9047ebf7443Swdenk
9057ebf7443SwdenkGTH_config:	unconfig
906f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
9077ebf7443Swdenk
9087ebf7443Swdenkhermes_config	:	unconfig
909f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
9107ebf7443Swdenk
911c40b2956SwdenkHMI10_config	:	unconfig
9124677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
913c40b2956Swdenk
9147ebf7443SwdenkIAD210_config: unconfig
915f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
9167ebf7443Swdenk
9177ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
9187ebf7443Swdenk
9197ebf7443SwdenkICU862_100MHz_config	\
9207ebf7443SwdenkICU862_config: unconfig
921f9328639SMarian Balakowicz	@mkdir -p $(obj)include
9227ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
923f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
924ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
9257ebf7443Swdenk		}
926f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
9277ebf7443Swdenk
9287ebf7443SwdenkIP860_config	:	unconfig
929f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
9307ebf7443Swdenk
9317ebf7443SwdenkIVML24_256_config \
9327ebf7443SwdenkIVML24_128_config \
9337ebf7443SwdenkIVML24_config:	unconfig
934f9328639SMarian Balakowicz	@mkdir -p $(obj)include
9357ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
936f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
9377ebf7443Swdenk		 }
9387ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
939f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
9407ebf7443Swdenk		 }
9417ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
942f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
9437ebf7443Swdenk		 }
944f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
9457ebf7443Swdenk
9467ebf7443SwdenkIVMS8_256_config \
9477ebf7443SwdenkIVMS8_128_config \
9487ebf7443SwdenkIVMS8_config:	unconfig
949f9328639SMarian Balakowicz	@mkdir -p $(obj)include
9507ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
951f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
9527ebf7443Swdenk		 }
9537ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
954f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
9557ebf7443Swdenk		 }
9567ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
957f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
9587ebf7443Swdenk		 }
959f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
9607ebf7443Swdenk
9611b6275dfSHeiko Schocherkmsupx4_config:		unconfig
9621b6275dfSHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx km8xx keymile
9631b6275dfSHeiko Schocher
96456f94be3SwdenkKUP4K_config	:	unconfig
965f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
9660608e04dSwdenk
9670608e04dSwdenkKUP4X_config	:	unconfig
968f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
96956f94be3Swdenk
9707ebf7443SwdenkLANTEC_config	:	unconfig
971f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
9727ebf7443Swdenk
9737ebf7443Swdenklwmon_config:		unconfig
974f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
9757ebf7443Swdenk
9767ebf7443SwdenkMBX_config	\
9777ebf7443SwdenkMBX860T_config:	unconfig
978f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
9797ebf7443Swdenk
980381e4e63SHeiko Schochermgsuvd_config:		unconfig
981d044954fSHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx km8xx keymile
982381e4e63SHeiko Schocher
9837ebf7443SwdenkMHPC_config:		unconfig
984f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
9857ebf7443Swdenk
986993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
987993cad93Swdenk
988993cad93SwdenkNETVIA_V2_config \
9897ebf7443SwdenkNETVIA_config:		unconfig
990f9328639SMarian Balakowicz	@mkdir -p $(obj)include
991993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
992f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
993ae6d1056SWolfgang Denk		  $(XECHO) "... Version 1" ; \
994993cad93Swdenk		 }
995993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
996f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
997ae6d1056SWolfgang Denk		  $(XECHO) "... Version 2" ; \
998993cad93Swdenk		 }
999f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
10007ebf7443Swdenk
1001c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
1002c26e454dSwdenk
1003c26e454dSwdenkNETPHONE_V2_config \
100404a85b3bSwdenkNETPHONE_config:	unconfig
1005f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1006c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
1007f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
1008c26e454dSwdenk		 }
1009c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
1010f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
1011c26e454dSwdenk		 }
1012f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
101304a85b3bSwdenk
101479fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
101504a85b3bSwdenk
101679fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
101779fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
101879fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
101979fa88f3SwdenkNETTA_SWAPHOOK_config \
102079fa88f3SwdenkNETTA_ISDN_6412_config \
102104a85b3bSwdenkNETTA_ISDN_config \
102279fa88f3SwdenkNETTA_6412_config \
102304a85b3bSwdenkNETTA_config:		unconfig
1024f9328639SMarian Balakowicz	@mkdir -p $(obj)include
102579fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
1026f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
102704a85b3bSwdenk		 }
102879fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
1029f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
103079fa88f3Swdenk		 }
103179fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
1032f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
103379fa88f3Swdenk		 }
103479fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
1035f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
103679fa88f3Swdenk		 }
103779fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
1038f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
103979fa88f3Swdenk		 }
104079fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
1041f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
104279fa88f3Swdenk		 }
1043f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
104404a85b3bSwdenk
104579fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
104679fa88f3Swdenk
104779fa88f3SwdenkNETTA2_V2_config \
104879fa88f3SwdenkNETTA2_config:		unconfig
1049f9328639SMarian Balakowicz	@mkdir -p $(obj)include
105079fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
1051f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
105279fa88f3Swdenk		 }
105379fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
1054f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
105579fa88f3Swdenk		 }
1056f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
105779fa88f3Swdenk
1058a367d426Sdzu@denx.deNC650_Rev1_config \
1059a367d426Sdzu@denx.deNC650_Rev2_config \
1060a367d426Sdzu@denx.deCP850_config:	unconfig
1061f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1062a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
1063f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
1064f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1065a367d426Sdzu@denx.de		 }
1066a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
1067f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1068a367d426Sdzu@denx.de		 }
1069a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
1070f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1071a367d426Sdzu@denx.de		 }
1072f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
10737ca202f5Swdenk
10747ebf7443SwdenkNX823_config:		unconfig
1075f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
10767ebf7443Swdenk
10777ebf7443Swdenkpcu_e_config:		unconfig
1078f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
10797ebf7443Swdenk
10803bbc899fSwdenkQS850_config:	unconfig
1081f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10823bbc899fSwdenk
10833bbc899fSwdenkQS823_config:	unconfig
1084f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10853bbc899fSwdenk
10863bbc899fSwdenkQS860T_config:	unconfig
1087f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
10883bbc899fSwdenk
1089da93ed81Swdenkquantum_config:	unconfig
1090f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1091da93ed81Swdenk
10927ebf7443SwdenkR360MPI_config:	unconfig
1093f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
10947ebf7443Swdenk
1095682011ffSwdenkRBC823_config:	unconfig
1096f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1097682011ffSwdenk
10987ebf7443SwdenkRPXClassic_config:	unconfig
1099f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
11007ebf7443Swdenk
11017ebf7443SwdenkRPXlite_config:		unconfig
1102f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
11037ebf7443Swdenk
1104e63c8ee3SwdenkRPXlite_DW_64_config		\
1105e63c8ee3SwdenkRPXlite_DW_LCD_config		\
1106e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
1107e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
1108e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config	\
1109e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
1110e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config	\
1111e63c8ee3SwdenkRPXlite_DW_config:	unconfig
1112f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1113e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
1114f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
1115ae6d1056SWolfgang Denk		  $(XECHO) "... with 64MHz system clock ..."; \
1116e63c8ee3Swdenk		}
1117e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1118f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1119f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1120ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display ..."; \
1121e63c8ee3Swdenk		}
1122e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
11239314cee6SJean-Christophe PLAGNIOL-VILLARD		{ echo "#define  CONFIG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
1124ae6d1056SWolfgang Denk		  $(XECHO) "... with ENV in NVRAM ..."; \
1125e63c8ee3Swdenk		}
1126f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1127e63c8ee3Swdenk
112873a8b27cSwdenkrmu_config:	unconfig
1129f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
113073a8b27cSwdenk
11317ebf7443SwdenkRRvision_config:	unconfig
1132f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
11337ebf7443Swdenk
11347ebf7443SwdenkRRvision_LCD_config:	unconfig
1135f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1136f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1137f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1138f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
11397ebf7443Swdenk
11407ebf7443SwdenkSM850_config	:	unconfig
11414677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
11427ebf7443Swdenk
114391c82076SJean-Christophe PLAGNIOL-VILLARDspc1920_config:		unconfig
1144f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1145b02d0177SMarkus Klotzbuecher
11467ebf7443SwdenkSPD823TS_config:	unconfig
1147f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
11487ebf7443Swdenk
11496bdf4306SWolfgang Denkstxxtc_config:	unconfig
1150f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
11516bdf4306SWolfgang Denk
1152dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
1153f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1154dc7c9a1aSwdenk
11557ebf7443SwdenkSXNI855T_config:	unconfig
1156f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
11577ebf7443Swdenk
1158db2f721fSwdenk# EMK MPC8xx based modules
1159db2f721fSwdenkTOP860_config:		unconfig
1160f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1161db2f721fSwdenk
11627ebf7443Swdenk# Play some tricks for configuration selection
1163e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
1164e9132ea9Swdenk# and only 823 boards may have LCD support
1165e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
11667ebf7443Swdenk
11677ebf7443SwdenkFPS850L_config		\
1168384ae025SwdenkFPS860L_config		\
1169f12e568cSwdenkNSCU_config		\
11707ebf7443SwdenkTQM823L_config		\
11717ebf7443SwdenkTQM823L_LCD_config	\
11727ebf7443SwdenkTQM850L_config		\
11737ebf7443SwdenkTQM855L_config		\
11747ebf7443SwdenkTQM860L_config		\
1175d126bfbdSwdenkTQM862L_config		\
1176ae3af05eSwdenkTQM823M_config		\
1177ae3af05eSwdenkTQM850M_config		\
1178f12e568cSwdenkTQM855M_config		\
1179f12e568cSwdenkTQM860M_config		\
1180f12e568cSwdenkTQM862M_config		\
11818cba090cSWolfgang DenkTQM866M_config		\
1182090eb735SMarkus KlotzbuecherTQM885D_config		\
1183efc6f447SGuennadi LiakhovetskiTK885D_config		\
11848cba090cSWolfgang Denkvirtlab2_config:	unconfig
1185f9328639SMarian Balakowicz	@mkdir -p $(obj)include
11867ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1187f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1188f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1189ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display" ; \
11907ebf7443Swdenk		}
11914677988cSWolfgang Grandegger	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
11927ebf7443Swdenk
11937ebf7443SwdenkTTTech_config:	unconfig
1194f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1195f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1196f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
11974677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
11987ebf7443Swdenk
1199ec0aee7bSwdenkuc100_config	:	unconfig
1200f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1201f7d1572bSwdenk
1202608c9146Swdenkv37_config:	unconfig
1203f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1204f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1205f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1206f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1207608c9146Swdenk
120891e940d9Sdzuwtk_config:	unconfig
1209f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1210f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1211f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
12124677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
121391e940d9Sdzu
12147ebf7443Swdenk#########################################################################
12157ebf7443Swdenk## PPC4xx Systems
12167ebf7443Swdenk#########################################################################
1217e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
12187ebf7443Swdenk
121916c0cc1cSStefan Roeseacadia_config:	unconfig
122016c0cc1cSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
122116c0cc1cSStefan Roese
1222c440bfe6SStefan Roeseacadia_nand_config:	unconfig
122363e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/acadia
122463e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/acadia
1225c440bfe6SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1226c440bfe6SStefan Roese	@$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1227c440bfe6SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1228c440bfe6SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1229c440bfe6SStefan Roese
12307ebf7443SwdenkADCIOP_config:	unconfig
1231f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
12327ebf7443Swdenk
1233899620c2SStefan Roesealpr_config:	unconfig
123435d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1235899620c2SStefan Roese
12367521af1cSWolfgang DenkAP1000_config:unconfig
1237f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
12387521af1cSWolfgang Denk
1239c419d1d6SstroeseAPC405_config:	unconfig
1240f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1241c419d1d6Sstroese
12427ebf7443SwdenkAR405_config:	unconfig
1243f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
12447ebf7443Swdenk
1245549826eaSstroeseASH405_config:	unconfig
1246f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1247549826eaSstroese
12488a316c9bSStefan Roesebamboo_config:	unconfig
1249f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
12508a316c9bSStefan Roese
1251cf959c7dSStefan Roesebamboo_nand_config:	unconfig
125263e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/bamboo
125363e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/bamboo
1254cf959c7dSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1255f3679aa1SStefan Roese	@$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1256cf959c7dSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1257cf959c7dSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1258cf959c7dSStefan Roese
12598a316c9bSStefan Roesebubinga_config:	unconfig
1260f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1261549826eaSstroese
12627ebf7443SwdenkCANBT_config:	unconfig
1263f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
12647ebf7443Swdenk
1265f09f09d3SAdam Graham# Arches, Canyonlands & Glacier use different U-Boot images
1266f09f09d3SAdam Grahamarches_config \
12674c9e8557SStefan Roesecanyonlands_config \
12684c9e8557SStefan Roeseglacier_config:	unconfig
12694c9e8557SStefan Roese	@mkdir -p $(obj)include
12704c9e8557SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
12714c9e8557SStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
12724c9e8557SStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1273c813f1f8SStefan Roese
1274fe7c0db6SStefan Roesecanyonlands_nand_config \
1275fe7c0db6SStefan Roeseglacier_nand_config:	unconfig
127671665ebfSStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/canyonlands
127771665ebfSStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/canyonlands
127871665ebfSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1279fe7c0db6SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1280fe7c0db6SStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
128171665ebfSStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
128271665ebfSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
128371665ebfSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
128471665ebfSStefan Roese
12851d6f9720SwdenkCATcenter_config	\
12861d6f9720SwdenkCATcenter_25_config	\
12871d6f9720SwdenkCATcenter_33_config:	unconfig
1288f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1289f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1290f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
12911d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1292f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1293ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
12941d6f9720Swdenk		}
12951d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1296f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1297ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
12981d6f9720Swdenk		}
1299f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
130010767ccbSwdenk
1301699f0512SWolfgang DenkCMS700_config:	unconfig
1302699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1303699f0512SWolfgang Denk
13047644f16fSStefan RoeseCPCI2DP_config:	unconfig
1305f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
13067644f16fSStefan Roese
13071951f847SMatthias FuchsCPCI405_config		\
1308549826eaSstroeseCPCI4052_config		\
1309c419d1d6SstroeseCPCI405DT_config	\
1310549826eaSstroeseCPCI405AB_config:	unconfig
1311dd794323SMatthias Fuchs	@mkdir -p $(obj)board/esd/cpci405
1312f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
13137ebf7443Swdenk
13147ebf7443SwdenkCPCIISER4_config:	unconfig
1315f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
13167ebf7443Swdenk
13177ebf7443SwdenkCRAYL1_config:	unconfig
1318f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
13197ebf7443Swdenk
1320cd0a9de6Swdenkcsb272_config:	unconfig
1321f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1322cd0a9de6Swdenk
1323aa245090Swdenkcsb472_config:	unconfig
1324f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1325aa245090Swdenk
13267ebf7443SwdenkDASA_SIM_config: unconfig
1327f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
13287ebf7443Swdenk
132972cd5aa7SstroeseDP405_config:	unconfig
1330f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
133172cd5aa7Sstroese
13327ebf7443SwdenkDU405_config:	unconfig
1333f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
13347ebf7443Swdenk
13351a3ac86bSMatthias FuchsDU440_config:	unconfig
13361a3ac86bSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
13371a3ac86bSMatthias Fuchs
13388a316c9bSStefan Roeseebony_config:	unconfig
1339f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
13407ebf7443Swdenk
13417ebf7443SwdenkERIC_config:	unconfig
1342f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
13437ebf7443Swdenk
1344d1cbe85bSwdenkEXBITGEN_config:	unconfig
1345f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1346d1cbe85bSwdenk
13475deb8022SGeorg Schardtfx12mm_flash_config: unconfig
13485deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
13495deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/avnet/fx12mm
13505deb8022SGeorg Schardt	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
13515deb8022SGeorg Schardt		> $(obj)board/avnet/fx12mm/config.tmp
13525deb8022SGeorg Schardt	@echo "TEXT_BASE := 0xFFCB0000" \
13535deb8022SGeorg Schardt		>> $(obj)board/avnet/fx12mm/config.tmp
13545deb8022SGeorg Schardt	@$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
13555deb8022SGeorg Schardt
13565deb8022SGeorg Schardtfx12mm_config: unconfig
13575deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
13585deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/avnet/fx12mm
13595deb8022SGeorg Schardt	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
13605deb8022SGeorg Schardt		> $(obj)board/avnet/fx12mm/config.tmp
13615deb8022SGeorg Schardt	@echo "TEXT_BASE := 0x03000000" \
13625deb8022SGeorg Schardt		>> $(obj)board/avnet/fx12mm/config.tmp
13635deb8022SGeorg Schardt	@$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
13645deb8022SGeorg Schardt
1365c419d1d6SstroeseG2000_config:	unconfig
1366f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1367c419d1d6Sstroese
136889b8619aSDirk Eibachgdppc440etx_config:	unconfig
136989b8619aSDirk Eibach	@$(MKCONFIG) $(@:_config=) ppc ppc4xx gdppc440etx gdsys
137089b8619aSDirk Eibach
1371ac982ea5SNiklaus Gigerhcu4_config:	unconfig
1372b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
137335d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1374ac982ea5SNiklaus Giger
1375ac982ea5SNiklaus Gigerhcu5_config:	unconfig
1376b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
137735d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1378ac982ea5SNiklaus Giger
1379c419d1d6SstroeseHH405_config:	unconfig
1380f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1381c419d1d6Sstroese
138272cd5aa7SstroeseHUB405_config:	unconfig
1383f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
138472cd5aa7Sstroese
1385db01a2eaSwdenkJSE_config:	unconfig
1386f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1387db01a2eaSwdenk
1388b79316f2SStefan RoeseKAREF_config: unconfig
1389f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1390b79316f2SStefan Roese
13914745acaaSStefan Roesekatmai_config:	unconfig
13924745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
13934745acaaSStefan Roese
1394353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR)
1395353f2688SStefan Roesekilauea_config \
1396353f2688SStefan Roesehaleakala_config: unconfig
1397353f2688SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1398566806caSStefan Roese
13993d6cb3b2SStefan Roesekilauea_nand_config \
14003d6cb3b2SStefan Roesehaleakala_nand_config: unconfig
14013d6cb3b2SStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/kilauea
14023d6cb3b2SStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/kilauea
14033d6cb3b2SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
14043d6cb3b2SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
14053d6cb3b2SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
14063d6cb3b2SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
14073d6cb3b2SStefan Roese
1408c591dffeSLarry Johnsonkorat_config:	unconfig
1409c591dffeSLarry Johnson	@$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1410c591dffeSLarry Johnson
14116e7fb6eaSStefan Roeseluan_config:	unconfig
1412f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
14136e7fb6eaSStefan Roese
1414b765ffb7SStefan Roeselwmon5_config:	unconfig
1415b765ffb7SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1416b765ffb7SStefan Roese
1417211ea91aSStefan Roesemakalu_config:	unconfig
1418211ea91aSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1419211ea91aSStefan Roese
1420b05f3543SNiklaus Gigermcu25_config:  unconfig
1421b05f3543SNiklaus Giger	@mkdir -p $(obj)board/netstal/common
1422b05f3543SNiklaus Giger	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1423b05f3543SNiklaus Giger
1424b79316f2SStefan RoeseMETROBOX_config: unconfig
1425f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1426b79316f2SStefan Roese
14277ebf7443SwdenkMIP405_config:	unconfig
1428f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
14297ebf7443Swdenk
1430f3e0de60SwdenkMIP405T_config:	unconfig
1431f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1432f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1433ae6d1056SWolfgang Denk	@$(XECHO) "Enable subset config for MIP405T"
1434f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1435f3e0de60Swdenk
14367ebf7443SwdenkML2_config:	unconfig
1437f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
14387ebf7443Swdenk
1439028ab6b5Swdenkml300_config:	unconfig
1440f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1441028ab6b5Swdenk
144201a00431SRicardo Ribalda Delgadoml507_flash_config: unconfig
1443880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
144401a00431SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ml507
1445880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1446880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ml507/config.tmp
1447880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
1448880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ml507/config.tmp
1449e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
145001a00431SRicardo Ribalda Delgado
1451086511fcSRicardo Ribalda Delgadoml507_config: unconfig
1452880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
145301a00431SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ml507
1454880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1455880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ml507/config.tmp
1456880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000"  \
1457880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ml507/config.tmp
1458e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1459086511fcSRicardo Ribalda Delgado
1460d7b26d58SDirk Eibachneo_config:	unconfig
1461d7b26d58SDirk Eibach	@$(MKCONFIG) $(@:_config=) ppc ppc4xx neo gdsys
1462d7b26d58SDirk Eibach
14638a316c9bSStefan Roeseocotea_config:	unconfig
1464f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
14650e6d798cSwdenk
14667ebf7443SwdenkOCRTC_config		\
14677ebf7443SwdenkORSG_config:	unconfig
1468f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
14697ebf7443Swdenk
14705568e613SStefan Roesep3p440_config:	unconfig
1471f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
14725568e613SStefan Roese
14737ebf7443SwdenkPCI405_config:	unconfig
1474f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
14757ebf7443Swdenk
1476a4c8d138SStefan Roesepcs440ep_config:	unconfig
1477f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1478a4c8d138SStefan Roese
14797ebf7443SwdenkPIP405_config:	unconfig
1480f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
14817ebf7443Swdenk
148272cd5aa7SstroesePLU405_config:	unconfig
1483f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
148472cd5aa7Sstroese
1485549826eaSstroesePMC405_config:	unconfig
1486f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1487549826eaSstroese
14888ba132caSMatthias FuchsPMC440_config:	unconfig
14898ba132caSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
14908ba132caSMatthias Fuchs
1491281e00a3SwdenkPPChameleonEVB_config		\
1492e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1493e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1494e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1495e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1496e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1497e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1498f9328639SMarian Balakowicz	@mkdir -p $(obj)include
14991d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1500f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1501ae6d1056SWolfgang Denk		  $(XECHO) "... BASIC model" ; \
1502fbe4b5cbSwdenk		}
15031d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1504f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1505ae6d1056SWolfgang Denk		  $(XECHO) "... MEDIUM model" ; \
1506fbe4b5cbSwdenk		}
15071d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1508f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1509ae6d1056SWolfgang Denk		  $(XECHO) "... HIGH-END model" ; \
1510fbe4b5cbSwdenk		}
1511e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1512f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1513ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
1514e55ca7e2Swdenk		}
1515e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1516f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1517ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
1518e55ca7e2Swdenk		}
1519f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
152012f34241Swdenk
152173ccb341SGary Jennejohnquad100hd_config:	unconfig
152273ccb341SGary Jennejohn	@$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
152373ccb341SGary Jennejohn
152411188d55SStefan Roeseredwood_config: unconfig
152511188d55SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
152611188d55SStefan Roese
1527430f1b0fSStefan Roesesbc405_config:	unconfig
1528430f1b0fSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1529430f1b0fSStefan Roese
1530699f0512SWolfgang Denksc3_config:unconfig
1531699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1532699f0512SWolfgang Denk
1533430f1b0fSStefan Roesesequoia_config \
1534854bc8daSStefan Roeserainier_config: unconfig
15358318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1536430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1537430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
15382aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1539854bc8daSStefan Roese
1540430f1b0fSStefan Roesesequoia_nand_config \
1541854bc8daSStefan Roeserainier_nand_config: unconfig
154263e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
154363e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/sequoia
15448318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1545430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1546430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1547430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
15488318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
15498318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1550652a10c0Swdenk
1551d873133fSStefan Roesesequoia_ramboot_config \
1552d873133fSStefan Roeserainier_ramboot_config: unconfig
1553d873133fSStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
1554d873133fSStefan Roese	@echo "#define CONFIG_SYS_RAMBOOT" > $(obj)include/config.h
1555d873133fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1556d873133fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1557d873133fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1558d873133fSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1559d873133fSStefan Roese	@echo "LDSCRIPT = board/amcc/sequoia/u-boot-ram.lds" >> \
1560d873133fSStefan Roese		$(obj)board/amcc/sequoia/config.tmp
1561d873133fSStefan Roese
1562d4024bb7SJohn Otkentaihu_config:	unconfig
1563d4024bb7SJohn Otken	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1564d4024bb7SJohn Otken
15655fb692caSStefan Roesetaishan_config:	unconfig
15665fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
15675fb692caSStefan Roese
1568e07f4a80SRicardo Ribalda Delgadov5fx30teval_config: unconfig
1569880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1570e07f4a80SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1571880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1572880f6a5dSRicardo Ribalda Delgado		> $(obj)board/avnet/v5fx30teval/config.tmp
1573880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x03000000" \
1574880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/avnet/v5fx30teval/config.tmp
1575e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1576e07f4a80SRicardo Ribalda Delgado
1577e07f4a80SRicardo Ribalda Delgadov5fx30teval_flash_config: unconfig
1578880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1579e07f4a80SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1580880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
15812bec498eSRicardo Ribalda Delgado		> $(obj)board/avnet/v5fx30teval/config.tmp
1582880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFF1C0000" \
15832bec498eSRicardo Ribalda Delgado		>> $(obj)board/avnet/v5fx30teval/config.tmp
1584e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1585e07f4a80SRicardo Ribalda Delgado
158672cd5aa7SstroeseVOH405_config:	unconfig
1587f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
158872cd5aa7Sstroese
1589c419d1d6SstroeseVOM405_config:	unconfig
1590f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1591c419d1d6Sstroese
15927ebf7443SwdenkW7OLMC_config	\
15937ebf7443SwdenkW7OLMG_config: unconfig
1594f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
15957ebf7443Swdenk
1596430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR)
1597430f1b0fSStefan Roesewalnut_config \
1598430f1b0fSStefan Roesesycamore_config: unconfig
1599430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
16007ebf7443Swdenk
1601c419d1d6SstroeseWUH405_config:	unconfig
1602f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1603c419d1d6Sstroese
16041f4d5326SRicardo Ribalda Delgadoxilinx-ppc405-generic_flash_config: unconfig
16051f4d5326SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
16061f4d5326SRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
16071f4d5326SRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc405-generic/config.tmp
16081f4d5326SRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
16091f4d5326SRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc405-generic/config.tmp
16101f4d5326SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
16111f4d5326SRicardo Ribalda Delgado
16121f4d5326SRicardo Ribalda Delgadoxilinx-ppc405-generic_config: unconfig
16131f4d5326SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
16141f4d5326SRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
16151f4d5326SRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc405-generic/config.tmp
16161f4d5326SRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000" \
16171f4d5326SRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc405-generic/config.tmp
16181f4d5326SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
16191f4d5326SRicardo Ribalda Delgado
1620e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_flash_config: unconfig
1621880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1622880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1623880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc440-generic/config.tmp
1624880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
1625880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc440-generic/config.tmp
1626e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1627e07f4a80SRicardo Ribalda Delgado
1628e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_config: unconfig
1629880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1630880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1631880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc440-generic/config.tmp
1632880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000" \
1633880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc440-generic/config.tmp
1634e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1635e07f4a80SRicardo Ribalda Delgado
1636ba56f625SwdenkXPEDITE1K_config:	unconfig
1637f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1638ba56f625Swdenk
1639430f1b0fSStefan Roeseyosemite_config \
16408a316c9bSStefan Roeseyellowstone_config: unconfig
1641700200c6SStefan Roese	@mkdir -p $(obj)include
1642430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1643430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
16442aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
16458a316c9bSStefan Roese
16466c5879f3SMarian Balakowiczyucca_config:	unconfig
1647f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
16486c5879f3SMarian Balakowicz
1649779e9751SStefan Roesezeus_config:	unconfig
1650779e9751SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1651779e9751SStefan Roese
16527ebf7443Swdenk#########################################################################
1653983fda83Swdenk## MPC8220 Systems
1654983fda83Swdenk#########################################################################
1655dc17fb6dSWolfgang Denk
1656dc17fb6dSWolfgang DenkAlaska8220_config	\
1657dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1658f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1659983fda83Swdenk
166012b43d51Swdenksorcery_config:		unconfig
1661f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
166212b43d51Swdenk
1663983fda83Swdenk#########################################################################
16647ebf7443Swdenk## MPC824x Systems
16657ebf7443Swdenk#########################################################################
1666efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
16673bac3513Swdenk
16680332990bSwdenkA3000_config: unconfig
1669f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
16700332990bSwdenk
16718e6f1a8eSWolfgang Denkbarco_config: unconfig
1672f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
16738e6f1a8eSWolfgang Denk
16747ebf7443SwdenkBMW_config: unconfig
1675f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
16767ebf7443Swdenk
16773bac3513SwdenkCPC45_config	\
16783bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1679f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1680f9328639SMarian Balakowicz	@cd $(obj)include ;				\
16813bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
16823bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1683ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
16843bac3513Swdenk	else \
16853bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1686ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
16873bac3513Swdenk	fi; \
16883bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
16893bac3513Swdenk
16907ebf7443SwdenkCU824_config: unconfig
1691f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
16927ebf7443Swdenk
16937abf0c58Swdenkdebris_config: unconfig
1694f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
16957abf0c58Swdenk
169680885a9dSwdenkeXalion_config: unconfig
1697f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
169880885a9dSwdenk
1699756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1700f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1701756f586aSwdenk
170253dd6ce4SWolfgang Denkkvme080_config: unconfig
1703f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
170453dd6ce4SWolfgang Denk
170561525f2fSGuennadi Liakhovetski# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
170661525f2fSGuennadi Liakhovetski# time permits.
170761525f2fSGuennadi Liakhovetski#linkstation_HDLAN_config \
170861525f2fSGuennadi Liakhovetski# Remove this line when HDLAN is fixed
170961525f2fSGuennadi Liakhovetskilinkstation_HGLAN_config: unconfig
171061525f2fSGuennadi Liakhovetski	@mkdir -p $(obj)include
171161525f2fSGuennadi Liakhovetski	@case $@ in \
171261525f2fSGuennadi Liakhovetski		*HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
171361525f2fSGuennadi Liakhovetski		*HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
171461525f2fSGuennadi Liakhovetski	esac
171561525f2fSGuennadi Liakhovetski	@$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
171661525f2fSGuennadi Liakhovetski
17177ebf7443SwdenkMOUSSE_config: unconfig
1718f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
17197ebf7443Swdenk
17207ebf7443SwdenkMUSENKI_config: unconfig
1721f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
17227ebf7443Swdenk
1723b4676a25SwdenkMVBLUE_config:	unconfig
1724f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1725b4676a25Swdenk
17267ebf7443SwdenkOXC_config: unconfig
1727f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
17287ebf7443Swdenk
17297ebf7443SwdenkPN62_config: unconfig
1730f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
17317ebf7443Swdenk
17327ebf7443SwdenkSandpoint8240_config: unconfig
1733f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
17347ebf7443Swdenk
17357ebf7443SwdenkSandpoint8245_config: unconfig
1736f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
17377ebf7443Swdenk
1738466b7410Swdenksbc8240_config: unconfig
1739f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1740466b7410Swdenk
1741d1cbe85bSwdenkSL8245_config: unconfig
1742f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1743d1cbe85bSwdenk
17447ebf7443Swdenkutx8245_config: unconfig
1745f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
17467ebf7443Swdenk
17477ebf7443Swdenk#########################################################################
17487ebf7443Swdenk## MPC8260 Systems
17497ebf7443Swdenk#########################################################################
17507ebf7443Swdenk
175154387ac9Swdenkatc_config:	unconfig
1752f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
175354387ac9Swdenk
17547ebf7443Swdenkcogent_mpc8260_config:	unconfig
1755f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
17567ebf7443Swdenk
17577ebf7443SwdenkCPU86_config	\
17587ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1759f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1760f9328639SMarian Balakowicz	@cd $(obj)include ;				\
17617ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
17627ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1763ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
17647ebf7443Swdenk	else \
17657ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1766ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
17677ebf7443Swdenk	fi; \
17687ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
17697ebf7443Swdenk
1770384cc687SwdenkCPU87_config	\
1771384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1772f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1773f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1774384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1775384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1776ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1777384cc687Swdenk	else \
1778384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1779ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1780384cc687Swdenk	fi; \
1781384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1782384cc687Swdenk
1783f901a83bSWolfgang Denkep8248_config	\
1784f901a83bSWolfgang Denkep8248E_config	:	unconfig
1785f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1786f901a83bSWolfgang Denk
17877ebf7443Swdenkep8260_config:	unconfig
1788f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
17897ebf7443Swdenk
17908d4ac794SWolfgang Denkep82xxm_config:	unconfig
179190b1b2d6SGrant Likely	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
17928d4ac794SWolfgang Denk
17937ebf7443Swdenkgw8260_config:	unconfig
1794f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
17957ebf7443Swdenk
17967ebf7443Swdenkhymod_config:	unconfig
1797f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
17987ebf7443Swdenk
17999dd41a7bSwdenkIDS8247_config:	unconfig
1800f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
18019dd41a7bSwdenk
18027ebf7443SwdenkIPHASE4539_config:	unconfig
1803f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
18047ebf7443Swdenk
1805c3c7f861SwdenkISPAN_config		\
1806c3c7f861SwdenkISPAN_REVB_config:	unconfig
1807f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1808c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
18096d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
1810c3c7f861Swdenk	fi
1811f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1812c3c7f861Swdenk
1813ac9db066SHeiko Schochermgcoge_config	:	unconfig
181486e9cdf8SHeiko Schocher	@$(MKCONFIG) mgcoge ppc mpc8260 mgcoge keymile
1815ac9db066SHeiko Schocher
181604a85b3bSwdenkMPC8260ADS_config	\
1817901787d6SwdenkMPC8260ADS_lowboot_config	\
181804a85b3bSwdenkMPC8260ADS_33MHz_config	\
1819901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
182004a85b3bSwdenkMPC8260ADS_40MHz_config	\
1821901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
182204a85b3bSwdenkMPC8272ADS_config	\
1823901787d6SwdenkMPC8272ADS_lowboot_config	\
182404a85b3bSwdenkPQ2FADS_config		\
1825901787d6SwdenkPQ2FADS_lowboot_config		\
182604a85b3bSwdenkPQ2FADS-VR_config	\
1827901787d6SwdenkPQ2FADS-VR_lowboot_config	\
182804a85b3bSwdenkPQ2FADS-ZU_config	\
1829901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
183004a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1831901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
183204a85b3bSwdenk	:		unconfig
1833f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1834b7e24d28SJon Loeliger	@mkdir -p $(obj)board/freescale/mpc8260ads
183504a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
18366d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	@echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \
18376d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	@echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
183804a85b3bSwdenk	$(if $(findstring MHz,$@), \
1839f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
184004a85b3bSwdenk	$(if $(findstring VR,$@), \
1841f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1842901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1843b7e24d28SJon Loeliger		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1844ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
1845901787d6Swdenk		}
1846b7e24d28SJon Loeliger	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
18477ebf7443Swdenk
1848db2f721fSwdenkMPC8266ADS_config:	unconfig
1849aa3511e4SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1850db2f721fSwdenk
1851adf22b66SHeiko Schochermuas3001_dev_config \
1852adf22b66SHeiko Schochermuas3001_config	:	unconfig
1853adf22b66SHeiko Schocher	@mkdir -p $(obj)include
1854adf22b66SHeiko Schocher	@mkdir -p $(obj)board/muas3001
1855adf22b66SHeiko Schocher	@if [ "$(findstring dev,$@)" ] ; then \
1856adf22b66SHeiko Schocher		echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1857adf22b66SHeiko Schocher	fi
1858adf22b66SHeiko Schocher	@$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001
1859adf22b66SHeiko Schocher
1860efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
186110f67017SwdenkPM825_config	\
1862efa329cbSwdenkPM825_ROMBOOT_config	\
1863efa329cbSwdenkPM825_BIGFLASH_config	\
1864efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
18657ebf7443SwdenkPM826_config	\
1866efa329cbSwdenkPM826_ROMBOOT_config	\
1867efa329cbSwdenkPM826_BIGFLASH_config	\
1868efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1869f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1870f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1871efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1872f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
18737ebf7443Swdenk	else \
1874f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1875efa329cbSwdenk	fi
1876efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1877ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1878f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1879f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1880efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1881ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1882f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
18837ebf7443Swdenk		fi; \
1884efa329cbSwdenk	else \
1885ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1886efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1887ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1888f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1889f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1890efa329cbSwdenk		else \
1891f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1892efa329cbSwdenk		fi; \
1893efa329cbSwdenk	fi
1894f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1895efa329cbSwdenk
1896efa329cbSwdenkPM828_config	\
1897efa329cbSwdenkPM828_PCI_config	\
1898efa329cbSwdenkPM828_ROMBOOT_config	\
1899efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1900f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1901f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
190217076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1903f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1904ae6d1056SWolfgang Denk		$(XECHO) "... with PCI enabled" ; \
1905efa329cbSwdenk	fi
1906efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1907ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1908f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1909f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1910efa329cbSwdenk	fi
1911f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
19127ebf7443Swdenk
19137ebf7443Swdenkppmc8260_config:	unconfig
1914f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
19157ebf7443Swdenk
19168b0bfc68SwdenkRattler8248_config	\
19178b0bfc68SwdenkRattler_config:		unconfig
1918f9328639SMarian Balakowicz	@mkdir -p $(obj)include
19198b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1920f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1921f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
19228b0bfc68Swdenk
19237ebf7443SwdenkRPXsuper_config:	unconfig
1924f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
19257ebf7443Swdenk
19267ebf7443Swdenkrsdproto_config:	unconfig
1927f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
19287ebf7443Swdenk
19297ebf7443Swdenksacsng_config:	unconfig
1930f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
19317ebf7443Swdenk
19327ebf7443Swdenksbc8260_config:	unconfig
1933f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
19347ebf7443Swdenk
19357ebf7443SwdenkSCM_config:		unconfig
1936f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
19377ebf7443Swdenk
193827b207fdSwdenkTQM8255_AA_config \
193927b207fdSwdenkTQM8260_AA_config \
194027b207fdSwdenkTQM8260_AB_config \
194127b207fdSwdenkTQM8260_AC_config \
194227b207fdSwdenkTQM8260_AD_config \
194327b207fdSwdenkTQM8260_AE_config \
194427b207fdSwdenkTQM8260_AF_config \
194527b207fdSwdenkTQM8260_AG_config \
194627b207fdSwdenkTQM8260_AH_config \
19471f62bc2dSWolfgang DenkTQM8260_AI_config \
194827b207fdSwdenkTQM8265_AA_config:  unconfig
1949f9328639SMarian Balakowicz	@mkdir -p $(obj)include
195027b207fdSwdenk	@case "$@" in \
195127b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
195227b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
195327b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
195427b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
195527b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
195627b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
195727b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
195827b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
195927b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
19601f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
196127b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
196227b207fdSwdenk	esac; \
196327b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1964f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
196527b207fdSwdenk	fi; \
1966f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
196727b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
19681aaab9bfSWolfgang Denk	if [ "$${CACHE}" = "yes" ] ; then \
1969f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1970ae6d1056SWolfgang Denk		$(XECHO) "... with L2 Cache support" ; \
19717ebf7443Swdenk	else \
1972f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1973ae6d1056SWolfgang Denk		$(XECHO) "... without L2 Cache support" ; \
197427b207fdSwdenk	fi; \
19751aaab9bfSWolfgang Denk	if [ "$${BMODE}" = "60x" ] ; then \
1976f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1977ae6d1056SWolfgang Denk		$(XECHO) "... with 60x Bus Mode" ; \
197827b207fdSwdenk	else \
1979f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
1980ae6d1056SWolfgang Denk		$(XECHO) "... without 60x Bus Mode" ; \
19817ebf7443Swdenk	fi
19824677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
19837ebf7443Swdenk
1984fa230445SHeiko SchocherTQM8272_config: unconfig
19854677988cSWolfgang Grandegger	@$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
1986fa230445SHeiko Schocher
1987ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1988ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1989f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1990f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1991f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1992ba91e26aSwdenk
199354387ac9SwdenkZPC1900_config: unconfig
1994f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
19957aa78614Swdenk
19964e5ca3ebSwdenk#########################################################################
19974e5ca3ebSwdenk## Coldfire
19984e5ca3ebSwdenk#########################################################################
19994e5ca3ebSwdenk
2000a21d0c2cSTsiChung LiewM52277EVB_config \
2001a21d0c2cSTsiChung LiewM52277EVB_spansion_config \
2002a21d0c2cSTsiChung LiewM52277EVB_stmicro_config :	unconfig
2003a21d0c2cSTsiChung Liew	@case "$@" in \
2004a21d0c2cSTsiChung Liew	M52277EVB_config)		FLASH=SPANSION;; \
2005a21d0c2cSTsiChung Liew	M52277EVB_spansion_config)	FLASH=SPANSION;; \
2006a21d0c2cSTsiChung Liew	M52277EVB_stmicro_config)	FLASH=STMICRO;; \
2007a21d0c2cSTsiChung Liew	esac; \
2008a21d0c2cSTsiChung Liew	if [ "$${FLASH}" = "SPANSION" ] ; then \
2009a21d0c2cSTsiChung Liew		echo "#define CONFIG_SYS_SPANSION_BOOT"	>> $(obj)include/config.h ; \
2010a21d0c2cSTsiChung Liew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \
2011a21d0c2cSTsiChung Liew		cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \
2012a21d0c2cSTsiChung Liew		$(XECHO) "... with SPANSION boot..." ; \
2013a21d0c2cSTsiChung Liew	fi; \
2014a21d0c2cSTsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
2015a21d0c2cSTsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
2016a21d0c2cSTsiChung Liew		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
2017a21d0c2cSTsiChung Liew		echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \
2018a21d0c2cSTsiChung Liew		cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \
2019a21d0c2cSTsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
2020a21d0c2cSTsiChung Liew	fi
20211552af70STsiChungLiew	@$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
20221552af70STsiChungLiew
20234a442d31STsiChungLiewM5235EVB_config \
20244a442d31STsiChungLiewM5235EVB_Flash16_config \
20254a442d31STsiChungLiewM5235EVB_Flash32_config:	unconfig
20264a442d31STsiChungLiew	@case "$@" in \
20274a442d31STsiChungLiew	M5235EVB_config)		FLASH=16;; \
20284a442d31STsiChungLiew	M5235EVB_Flash16_config)	FLASH=16;; \
20294a442d31STsiChungLiew	M5235EVB_Flash32_config)	FLASH=32;; \
20304a442d31STsiChungLiew	esac; \
20314a442d31STsiChungLiew	if [ "$${FLASH}" != "16" ] ; then \
2032ae6d1056SWolfgang Denk		echo "#define NORFLASH_PS32BIT	1" >> $(obj)include/config.h ; \
20334a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
20344a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
20354a442d31STsiChungLiew	else \
20364a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
20374a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
20384a442d31STsiChungLiew	fi
20394a442d31STsiChungLiew	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
20404a442d31STsiChungLiew
2041a605aacdSTsiChungLiewM5249EVB_config :		unconfig
2042a605aacdSTsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
2043a605aacdSTsiChungLiew
20446d33c6acSTsiChung LiewM5253DEMO_config :		unconfig
20456d33c6acSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
20466d33c6acSTsiChung Liew
2047a1436a84STsiChungLiewM5253EVBE_config :		unconfig
2048a1436a84STsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
2049a1436a84STsiChungLiew
20507481266eSWolfgang Denkcobra5272_config :		unconfig
2051f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
20527481266eSWolfgang Denk
20534176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
2054f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2055f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
2056f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
2057f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
20584176c799SWolfgang Denk
20594176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
2060f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2061f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
2062f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
2063f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
20644176c799SWolfgang Denk
2065daa6e418SBartlomiej Siekaidmr_config :			unconfig
2066daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
2067daa6e418SBartlomiej Sieka
20684176c799SWolfgang DenkM5271EVB_config :		unconfig
2069659e9badSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
20704176c799SWolfgang Denk
20714e5ca3ebSwdenkM5272C3_config :		unconfig
207256df091dSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
20734e5ca3ebSwdenk
2074545c8e0aSMatthew FettkeM5275EVB_config :		unconfig
2075545c8e0aSMatthew Fettke	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
2076545c8e0aSMatthew Fettke
20774e5ca3ebSwdenkM5282EVB_config :		unconfig
207810db3a17STsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
20794e5ca3ebSwdenk
2080536e7dacSTsiChung LiewM53017EVB_config :		unconfig
2081536e7dacSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf532x m53017evb freescale
2082536e7dacSTsiChung Liew
20838e585f02STsiChung LiewM5329AFEE_config \
20848e585f02STsiChung LiewM5329BFEE_config :	unconfig
20858e585f02STsiChung Liew	@case "$@" in \
20868e585f02STsiChung Liew	M5329AFEE_config)	NAND=0;; \
20878e585f02STsiChung Liew	M5329BFEE_config)	NAND=16;; \
20888e585f02STsiChung Liew	esac; \
20898e585f02STsiChung Liew	if [ "$${NAND}" != "0" ] ; then \
2090ab77bc54STsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
20918e585f02STsiChung Liew	fi
20928e585f02STsiChung Liew	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
20938e585f02STsiChung Liew
2094aa5f1f9dSTsiChungLiewM5373EVB_config :	unconfig
2095aa5f1f9dSTsiChungLiew	@case "$@" in \
2096aa5f1f9dSTsiChungLiew	M5373EVB_config)	NAND=16;; \
2097aa5f1f9dSTsiChungLiew	esac; \
2098aa5f1f9dSTsiChungLiew	if [ "$${NAND}" != "0" ] ; then \
2099aa5f1f9dSTsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
2100aa5f1f9dSTsiChungLiew	fi
2101aa5f1f9dSTsiChungLiew	@$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
2102aa5f1f9dSTsiChungLiew
210305316f8eSTsiChung LiewM54451EVB_config \
210405316f8eSTsiChung LiewM54451EVB_spansion_config \
210505316f8eSTsiChung LiewM54451EVB_stmicro_config :	unconfig
210605316f8eSTsiChung Liew	@case "$@" in \
210705316f8eSTsiChung Liew	M54451EVB_config)		FLASH=SPANSION;; \
210805316f8eSTsiChung Liew	M54451EVB_spansion_config)	FLASH=SPANSION;; \
210905316f8eSTsiChung Liew	M54451EVB_stmicro_config)	FLASH=STMICRO;; \
211005316f8eSTsiChung Liew	esac; \
211105316f8eSTsiChung Liew	if [ "$${FLASH}" = "SPANSION" ] ; then \
21126d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_SPANSION_BOOT"	>> $(obj)include/config.h ; \
211305316f8eSTsiChung Liew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
211405316f8eSTsiChung Liew		cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
211505316f8eSTsiChung Liew		$(XECHO) "... with SPANSION boot..." ; \
211605316f8eSTsiChung Liew	fi; \
211705316f8eSTsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
211805316f8eSTsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
21196d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
212005316f8eSTsiChung Liew		echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
212105316f8eSTsiChung Liew		cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
212205316f8eSTsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
212305316f8eSTsiChung Liew	fi; \
21246d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
212505316f8eSTsiChung Liew	@$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
212605316f8eSTsiChung Liew
21278ae158cdSTsiChungLiewM54455EVB_config \
21288ae158cdSTsiChungLiewM54455EVB_atmel_config \
21298ae158cdSTsiChungLiewM54455EVB_intel_config \
21308ae158cdSTsiChungLiewM54455EVB_a33_config \
21318ae158cdSTsiChungLiewM54455EVB_a66_config \
21328ae158cdSTsiChungLiewM54455EVB_i33_config \
21339f751551STsiChung LiewM54455EVB_i66_config \
21349f751551STsiChung LiewM54455EVB_stm33_config :	unconfig
21358ae158cdSTsiChungLiew	@case "$@" in \
21368ae158cdSTsiChungLiew	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
21378ae158cdSTsiChungLiew	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
21388ae158cdSTsiChungLiew	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
21398ae158cdSTsiChungLiew	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
21408ae158cdSTsiChungLiew	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
21418ae158cdSTsiChungLiew	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
21428ae158cdSTsiChungLiew	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
21439f751551STsiChung Liew	M54455EVB_stm33_config)		FLASH=STMICRO; FREQ=33333333;; \
21448ae158cdSTsiChungLiew	esac; \
21451aaab9bfSWolfgang Denk	if [ "$${FLASH}" = "INTEL" ] ; then \
21466d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
2147e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2148e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
2149ae6d1056SWolfgang Denk		$(XECHO) "... with INTEL boot..." ; \
21509f751551STsiChung Liew	fi; \
21519f751551STsiChung Liew	if [ "$${FLASH}" = "ATMEL" ] ; then \
21526d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_ATMEL_BOOT"	>> $(obj)include/config.h ; \
2153e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2154e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2155ae6d1056SWolfgang Denk		$(XECHO) "... with ATMEL boot..." ; \
21568ae158cdSTsiChungLiew	fi; \
21579f751551STsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
21589f751551STsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
21596d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
21609f751551STsiChung Liew		echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
21619f751551STsiChung Liew		cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
21629f751551STsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
21639f751551STsiChung Liew	fi; \
21646d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
2165ae6d1056SWolfgang Denk	$(XECHO) "... with $${FREQ}Hz input clock"
21668ae158cdSTsiChungLiew	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
21678ae158cdSTsiChungLiew
216857a12720STsiChungLiewM5475AFE_config \
216957a12720STsiChungLiewM5475BFE_config \
217057a12720STsiChungLiewM5475CFE_config \
217157a12720STsiChungLiewM5475DFE_config \
217257a12720STsiChungLiewM5475EFE_config \
217357a12720STsiChungLiewM5475FFE_config \
217457a12720STsiChungLiewM5475GFE_config :	unconfig
217557a12720STsiChungLiew	@case "$@" in \
217657a12720STsiChungLiew	M5475AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
217757a12720STsiChungLiew	M5475BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
217857a12720STsiChungLiew	M5475CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
217957a12720STsiChungLiew	M5475DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
218057a12720STsiChungLiew	M5475EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
218157a12720STsiChungLiew	M5475FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
218257a12720STsiChungLiew	M5475GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
218357a12720STsiChungLiew	esac; \
21846d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BUSCLK	133333333" > $(obj)include/config.h ; \
21856d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
21866d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
218757a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
21886d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
218957a12720STsiChungLiew	fi; \
219057a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
21916d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
219257a12720STsiChungLiew	fi; \
219357a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
21946d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
219557a12720STsiChungLiew	fi; \
219657a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
21976d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
219857a12720STsiChungLiew	fi
219957a12720STsiChungLiew	@$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
220057a12720STsiChungLiew
220157a12720STsiChungLiewM5485AFE_config \
220257a12720STsiChungLiewM5485BFE_config \
220357a12720STsiChungLiewM5485CFE_config \
220457a12720STsiChungLiewM5485DFE_config \
220557a12720STsiChungLiewM5485EFE_config \
220657a12720STsiChungLiewM5485FFE_config \
220757a12720STsiChungLiewM5485GFE_config \
220857a12720STsiChungLiewM5485HFE_config :	unconfig
220957a12720STsiChungLiew	@case "$@" in \
221057a12720STsiChungLiew	M5485AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
221157a12720STsiChungLiew	M5485BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
221257a12720STsiChungLiew	M5485CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
221357a12720STsiChungLiew	M5485DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
221457a12720STsiChungLiew	M5485EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
221557a12720STsiChungLiew	M5485FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
221657a12720STsiChungLiew	M5485GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
22174d264effSTsiChungLiew	M5485HFE_config)	BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
221857a12720STsiChungLiew	esac; \
22196d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BUSCLK	100000000" > $(obj)include/config.h ; \
22206d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
22216d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
222257a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
22236d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
222457a12720STsiChungLiew	fi; \
222557a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
22266d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
222757a12720STsiChungLiew	fi; \
222857a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
22296d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
223057a12720STsiChungLiew	fi; \
223157a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
22326d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
223357a12720STsiChungLiew	fi
223457a12720STsiChungLiew	@$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
223557a12720STsiChungLiew
2236699f0512SWolfgang DenkTASREG_config :		unconfig
2237699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2238699f0512SWolfgang Denk
22397ebf7443Swdenk#########################################################################
2240f046ccd1SEran Liberty## MPC83xx Systems
2241f046ccd1SEran Liberty#########################################################################
2242f046ccd1SEran Liberty
2243de044361SHeiko Schocherkmeter1_config: unconfig
2244de044361SHeiko Schocher	@$(MKCONFIG) kmeter1 ppc mpc83xx kmeter1 keymile
2245de044361SHeiko Schocher
22465c5d3242SKim PhillipsMPC8313ERDB_33_config \
2247e4c09508SScott WoodMPC8313ERDB_66_config \
2248e4c09508SScott WoodMPC8313ERDB_NAND_33_config \
2249e4c09508SScott WoodMPC8313ERDB_NAND_66_config: unconfig
2250cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2251e4c09508SScott Wood	@mkdir -p $(obj)board/freescale/mpc8313erdb
2252c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2253ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
22546d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
22555c5d3242SKim Phillips	fi ; \
22565c5d3242SKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2257ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
22586d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
2259e4c09508SScott Wood	fi ; \
2260e4c09508SScott Wood	if [ "$(findstring _NAND_,$@)" ] ; then \
2261e4c09508SScott Wood		$(XECHO) -n "...NAND..." ; \
2262f4e55a49SKim Phillips		echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2263e4c09508SScott Wood		echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
22645c5d3242SKim Phillips	fi ;
2265e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
226664ac1eb5SNick Spence	@if [ "$(findstring _NAND_,$@)" ] ; then \
226764ac1eb5SNick Spence		echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
226864ac1eb5SNick Spence	fi ;
22695c5d3242SKim Phillips
22708bd522ceSDave LiuMPC8315ERDB_config: unconfig
22718bd522ceSDave Liu	@$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
22728bd522ceSDave Liu
22731c274c4eSKim PhillipsMPC8323ERDB_config:	unconfig
22741c274c4eSKim Phillips	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
22751c274c4eSKim Phillips
22764decd84eSKim PhillipsMPC832XEMDS_config \
22774decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
22784decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
2279281df457STony LiMPC832XEMDS_SLAVE_config \
2280281df457STony LiMPC832XEMDS_ATM_config:	unconfig
2281cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2282c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2283ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2284cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
22854decd84eSKim Phillips	fi ; \
22864decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2287ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2288cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2289cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
22904decd84eSKim Phillips	fi ; \
22914decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
2292ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2293cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2294281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
22954decd84eSKim Phillips	fi ; \
22964decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2297ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2298cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2299281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2300281df457STony Li	fi ; \
2301281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2302ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2303281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2304281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
23054decd84eSKim Phillips	fi ;
2306e58fe957SKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2307e6f2e902SMarian Balakowicz
2308991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
2309e58fe957SKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2310991425feSMarian Balakowicz
23117a78f148STimur TabiMPC8349ITX_config \
23127a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
23137a78f148STimur TabiMPC8349ITXGP_config:	unconfig
23147a78f148STimur Tabi	@mkdir -p $(obj)include
2315e21659e3SSam Sparks	@mkdir -p $(obj)board/freescale/mpc8349itx
23167a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
23177a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
2318e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
23197a78f148STimur Tabi	fi
23207a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
2321e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
23227a78f148STimur Tabi	fi
2323e58fe957SKim Phillips	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
23244decd84eSKim Phillips
23255f820439SDave LiuMPC8360EMDS_config \
23265f820439SDave LiuMPC8360EMDS_HOST_33_config \
23275f820439SDave LiuMPC8360EMDS_HOST_66_config \
2328281df457STony LiMPC8360EMDS_SLAVE_config \
2329281df457STony LiMPC8360EMDS_ATM_config: unconfig
2330cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2331c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2332ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2333cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
23345f820439SDave Liu	fi ; \
23355f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2336ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2337cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2338cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
23395f820439SDave Liu	fi ; \
23405f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
2341ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2342cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2343281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
23445f820439SDave Liu	fi ; \
23455f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
2346ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2347cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2348281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2349281df457STony Li	fi ; \
2350281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2351ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2352281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2353281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
23545f820439SDave Liu	fi ;
2355e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
23565f820439SDave Liu
2357fab6f556SAnton VorontsovMPC8360ERDK_33_config \
2358fab6f556SAnton VorontsovMPC8360ERDK_66_config \
235991c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config:	unconfig
2360fab6f556SAnton Vorontsov	@mkdir -p $(obj)include
2361c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2362ae6d1056SWolfgang Denk		$(XECHO) -n "... CLKIN 33MHz " ; \
2363fab6f556SAnton Vorontsov		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2364fab6f556SAnton Vorontsov	fi ;
2365fab6f556SAnton Vorontsov	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2366fab6f556SAnton Vorontsov
236719580e66SDave LiuMPC837XEMDS_config \
236819580e66SDave LiuMPC837XEMDS_HOST_config:	unconfig
236919580e66SDave Liu	@mkdir -p $(obj)include
2370c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2371ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
237219580e66SDave Liu		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
237319580e66SDave Liu	fi ;
237419580e66SDave Liu	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
237519580e66SDave Liu
23765e918a98SKim PhillipsMPC837XERDB_config:	unconfig
23775e918a98SKim Phillips	@$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
23785e918a98SKim Phillips
2379a1293e54SAndre SchwarzMVBLM7_config: unconfig
23801a9eeb78SAndre Schwarz	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2381a1293e54SAndre Schwarz
238291e25769SPaul Gortmakersbc8349_config:		unconfig
238391e25769SPaul Gortmaker	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
238491e25769SPaul Gortmaker
23855bb907a4SRon MadridSIMPC8313_LP_config \
23865bb907a4SRon MadridSIMPC8313_SP_config: unconfig
23875bb907a4SRon Madrid	@mkdir -p $(obj)include
23885bb907a4SRon Madrid	@mkdir -p $(obj)board/sheldon/simpc8313
23895bb907a4SRon Madrid	@if [ "$(findstring _LP_,$@)" ] ; then \
23905bb907a4SRon Madrid		$(XECHO) -n "...Large Page NAND..." ; \
23915bb907a4SRon Madrid		echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \
23925bb907a4SRon Madrid	fi ; \
23935bb907a4SRon Madrid	if [ "$(findstring _SP_,$@)" ] ; then \
23945bb907a4SRon Madrid		$(XECHO) -n "...Small Page NAND..." ; \
23955bb907a4SRon Madrid		echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \
23965bb907a4SRon Madrid	fi ;
23975bb907a4SRon Madrid	@$(MKCONFIG) -a SIMPC8313 ppc mpc83xx simpc8313 sheldon
23985bb907a4SRon Madrid	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
23995bb907a4SRon Madrid
24004decd84eSKim PhillipsTQM834x_config:	unconfig
24014677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
24024decd84eSKim Phillips
24032ad6b513STimur Tabi
2404f046ccd1SEran Liberty#########################################################################
240542d1f039Swdenk## MPC85xx Systems
240642d1f039Swdenk#########################################################################
240742d1f039Swdenk
24087bd6104bSrobert lazarskiATUM8548_config:	unconfig
24097bd6104bSrobert lazarski	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
24107bd6104bSrobert lazarski
24119490a7f1SKumar GalaMPC8536DS_config:       unconfig
24129490a7f1SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8536ds freescale
24139490a7f1SKumar Gala
241442d1f039SwdenkMPC8540ADS_config:	unconfig
2415c2d943ffSKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
241642d1f039Swdenk
2417b0e32949SLunsheng WangMPC8540EVAL_config \
2418b0e32949SLunsheng WangMPC8540EVAL_33_config \
2419b0e32949SLunsheng WangMPC8540EVAL_66_config \
2420b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
2421b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:	  unconfig
2422f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2423c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2424ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2425b0e32949SLunsheng Wang	else \
2426f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2427ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2428b0e32949SLunsheng Wang	fi ; \
2429b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
2430f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2431ae6d1056SWolfgang Denk		$(XECHO) " slave" ; \
2432b0e32949SLunsheng Wang	else \
2433ae6d1056SWolfgang Denk		$(XECHO) " host" ; \
2434b0e32949SLunsheng Wang	fi
2435f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2436b0e32949SLunsheng Wang
243742d1f039SwdenkMPC8560ADS_config:	unconfig
2438870ceac5SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
243942d1f039Swdenk
24407f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \
244103f5c550SwdenkMPC8541CDS_config:	unconfig
24427f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2443c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
24447f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2445ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
24467f3f2bd2SRandy Vinson	fi
2447415a613bSKumar Gala	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
244803f5c550Swdenk
244981f481caSAndy FlemingMPC8544DS_config:	unconfig
245081f481caSAndy Fleming	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
245181f481caSAndy Fleming
24527f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \
2453d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
24547f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2455c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
24567f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2457ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
24587f3f2bd2SRandy Vinson	fi
2459415a613bSKumar Gala	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2460d9b94f28SJon Loeliger
24617f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \
246203f5c550SwdenkMPC8555CDS_config:	unconfig
24637f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2464c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
24657f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2466ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
24677f3f2bd2SRandy Vinson	fi
2468415a613bSKumar Gala	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
24697abf0c58Swdenk
247067431059SAndy FlemingMPC8568MDS_config:	unconfig
2471acbca876SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
247267431059SAndy Fleming
2473765547dcSHaiying WangMPC8569MDS_config:	unconfig
2474765547dcSHaiying Wang	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8569mds freescale
2475765547dcSHaiying Wang
247618af1c5fSKumar GalaMPC8572DS_36BIT_config \
2477129ba616SKumar GalaMPC8572DS_config:       unconfig
247818af1c5fSKumar Gala	@mkdir -p $(obj)include
247918af1c5fSKumar Gala	@if [ "$(findstring _36BIT_,$@)" ] ; then \
248018af1c5fSKumar Gala		echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
248118af1c5fSKumar Gala		$(XECHO) "... enabling 36-bit physical addressing." ; \
248218af1c5fSKumar Gala	fi
248318af1c5fSKumar Gala	@$(MKCONFIG) -a MPC8572DS ppc mpc85xx mpc8572ds freescale
2484129ba616SKumar Gala
2485feb7838fSSrikanth SrinivasanP2020DS_36BIT_config \
2486feb7838fSSrikanth SrinivasanP2020DS_config:		unconfig
2487feb7838fSSrikanth Srinivasan	@mkdir -p $(obj)include
2488feb7838fSSrikanth Srinivasan	@if [ "$(findstring _36BIT_,$@)" ] ; then \
2489feb7838fSSrikanth Srinivasan		echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
2490feb7838fSSrikanth Srinivasan		$(XECHO) "... enabling 36-bit physical addressing." ; \
2491feb7838fSSrikanth Srinivasan	fi
2492feb7838fSSrikanth Srinivasan	@$(MKCONFIG) -a P2020DS ppc mpc85xx p2020ds freescale
2493feb7838fSSrikanth Srinivasan
2494384cc687SwdenkPM854_config:	unconfig
2495f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2496384cc687Swdenk
2497b20d0032SWolfgang DenkPM856_config:	unconfig
2498f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2499b20d0032SWolfgang Denk
2500c15f3120Swdenksbc8540_config \
2501c15f3120Swdenksbc8540_33_config \
2502c15f3120Swdenksbc8540_66_config:	unconfig
2503f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2504c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2505f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2506ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2507c15f3120Swdenk	else \
2508ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2509c15f3120Swdenk	fi
2510f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2511c15f3120Swdenk
251211c45ebdSJoe Hammansbc8548_config:		unconfig
251311c45ebdSJoe Hamman	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
251411c45ebdSJoe Hamman
2515466b7410Swdenksbc8560_config \
2516466b7410Swdenksbc8560_33_config \
2517466b7410Swdenksbc8560_66_config:	unconfig
2518f9328639SMarian Balakowicz	@mkdir -p $(obj)include
25198b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2520f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2521ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
25228b07a110Swdenk	else \
2523ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
25248b07a110Swdenk	fi
2525f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
25268b07a110Swdenk
25275d108ac8SSergei Poselenovsocrates_config:	unconfig
25285d108ac8SSergei Poselenov	@$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
25295d108ac8SSergei Poselenov
253003f5c550Swdenkstxgp3_config:		unconfig
2531f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
253203f5c550Swdenk
2533ee152983SWolfgang Denkstxssa_config		\
2534ee152983SWolfgang Denkstxssa_4M_config:	unconfig
2535ee152983SWolfgang Denk	@mkdir -p $(obj)include
2536ee152983SWolfgang Denk	@if [ "$(findstring _4M_,$@)" ] ; then \
2537ee152983SWolfgang Denk		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2538ae6d1056SWolfgang Denk		$(XECHO) "... with 4 MiB flash memory" ; \
2539ee152983SWolfgang Denk	fi
2540ee152983SWolfgang Denk	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
254135171dc0SDan Malek
2542d96f41e0SStefan RoeseTQM8540_config		\
2543d96f41e0SStefan RoeseTQM8541_config		\
25441287e0c5SWolfgang GrandeggerTQM8548_config		\
2545a865bcdaSWolfgang GrandeggerTQM8548_AG_config	\
2546ad7ee5d4SWolfgang GrandeggerTQM8548_BE_config	\
2547d96f41e0SStefan RoeseTQM8555_config		\
2548f5c5ef4aSwdenkTQM8560_config:		unconfig
2549f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2550ad7ee5d4SWolfgang Grandegger	@BTYPE=$(@:_config=); \
2551a865bcdaSWolfgang Grandegger	CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \
2552ad7ee5d4SWolfgang Grandegger	$(XECHO) "... "$${BTYPE}" (MPC"$${CTYPE}")"; \
2553f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2554ad7ee5d4SWolfgang Grandegger	echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \
2555f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2556ad7ee5d4SWolfgang Grandegger	echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h;
25574677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2558ad7ee5d4SWolfgang Grandegger	@echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk;
2559f5c5ef4aSwdenk
256078bbc5ceSPeter TyserXPEDITE5200_config:	unconfig
256178bbc5ceSPeter Tyser	@$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5200 xes
256278bbc5ceSPeter Tyser
2563ccf0fdd0SPeter TyserXPEDITE5370_config:	unconfig
2564ccf0fdd0SPeter Tyser	@$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5370 xes
2565ccf0fdd0SPeter Tyser
256642d1f039Swdenk#########################################################################
2567debb7354SJon Loeliger## MPC86xx Systems
2568debb7354SJon Loeliger#########################################################################
2569debb7354SJon Loeliger
25703c89d754SJon LoeligerMPC8610HPCD_config:	unconfig
25713c89d754SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
25723c89d754SJon Loeliger
25738db0400aSBecky BruceMPC8641HPCN_36BIT_config \
2574debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
25758db0400aSBecky Bruce	@mkdir -p $(obj)include
25768db0400aSBecky Bruce	@if [ "$(findstring _36BIT_,$@)" ] ; then \
25778db0400aSBecky Bruce		echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
25788db0400aSBecky Bruce		$(XECHO) "... enabling 36-bit physical addressing." ; \
25798db0400aSBecky Bruce	fi
25808db0400aSBecky Bruce	@$(MKCONFIG) -a MPC8641HPCN ppc mpc86xx mpc8641hpcn freescale
2581debb7354SJon Loeliger
2582c646bba6SJoe Hammansbc8641d_config:	unconfig
258391c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2584debb7354SJon Loeliger
2585debb7354SJon Loeliger#########################################################################
25867ebf7443Swdenk## 74xx/7xx Systems
25877ebf7443Swdenk#########################################################################
25887ebf7443Swdenk
2589c7de829cSwdenkAmigaOneG3SE_config:	unconfig
2590f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2591c7de829cSwdenk
259215647dc7SwdenkBAB7xx_config: unconfig
2593f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
259415647dc7Swdenk
2595c419d1d6SstroeseCPCI750_config:	unconfig
2596f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2597c419d1d6Sstroese
25983a473b2aSwdenkDB64360_config:	unconfig
2599f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
26003a473b2aSwdenk
26013a473b2aSwdenkDB64460_config:	unconfig
2602f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
26033a473b2aSwdenk
260415647dc7SwdenkELPPC_config: unconfig
2605f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
260615647dc7Swdenk
26077ebf7443SwdenkEVB64260_config	\
26087ebf7443SwdenkEVB64260_750CX_config:	unconfig
2609f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
26107ebf7443Swdenk
26114c52783bSroy zangmpc7448hpc2_config:  unconfig
26127f1d846eSJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
26134c52783bSroy zang
261415647dc7SwdenkP3G4_config: unconfig
2615f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
26167ebf7443Swdenk
26171eac2a71SStefan Roesep3m750_config	\
26181eac2a71SStefan Roesep3m7448_config:		unconfig
26191eac2a71SStefan Roese	@mkdir -p $(obj)include
26201eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
26211eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
26221eac2a71SStefan Roese	else \
26231eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
26241eac2a71SStefan Roese	fi
26251eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
26261eac2a71SStefan Roese
26277ebf7443SwdenkPCIPPC2_config \
26287ebf7443SwdenkPCIPPC6_config: unconfig
2629f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
26307ebf7443Swdenk
2631f5e0d039SHeiko Schocherppmc7xx_config: unconfig
2632f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2633f5e0d039SHeiko Schocher
2634699f0512SWolfgang DenkZUMA_config:	unconfig
2635699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2636699f0512SWolfgang Denk
26377ebf7443Swdenk#========================================================================
26387ebf7443Swdenk# ARM
26397ebf7443Swdenk#========================================================================
26407ebf7443Swdenk#########################################################################
26417ebf7443Swdenk## StrongARM Systems
26427ebf7443Swdenk#########################################################################
26437ebf7443Swdenk
2644ea66bc88Swdenkassabet_config	:	unconfig
2645f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2646ea66bc88Swdenk
26477ebf7443Swdenkdnp1110_config	:	unconfig
2648f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
26497ebf7443Swdenk
2650855a496fSwdenkgcplus_config	:	unconfig
2651f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2652855a496fSwdenk
2653855a496fSwdenklart_config	:	unconfig
2654f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
2655855a496fSwdenk
26567ebf7443Swdenkshannon_config	:	unconfig
2657f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
26587ebf7443Swdenk
26597ebf7443Swdenk#########################################################################
26602e5983d2Swdenk## ARM92xT Systems
26617ebf7443Swdenk#########################################################################
26627ebf7443Swdenk
2663a4b46ed6SUlf Samuelsson#########################################################################
2664a4b46ed6SUlf Samuelsson## Atmel AT91RM9200 Systems
2665a4b46ed6SUlf Samuelsson#########################################################################
266620b197c6SStelian Pop
2667a85f9f21Swdenkat91rm9200dk_config	:	unconfig
266865230107SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2669a85f9f21Swdenk
2670cb82a532SUlf Samuelssonat91rm9200ek_config	:	unconfig
2671cb82a532SUlf Samuelsson	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200ek atmel at91rm9200
2672cb82a532SUlf Samuelsson
2673a85f9f21Swdenkcmc_pu2_config	:	unconfig
2674f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2675a85f9f21Swdenk
2676645da510SWolfgang Denkcsb637_config	:	unconfig
2677f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2678645da510SWolfgang Denk
2679a4b46ed6SUlf Samuelssonkb9202_config	:	unconfig
2680a4b46ed6SUlf Samuelsson	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2681a4b46ed6SUlf Samuelsson
2682ea8d989fSTimo Tuunainenm501sk_config	:	unconfig
2683ea8d989fSTimo Tuunainen	@$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
268487cb6862SWolfgang Denk
2685699f0512SWolfgang Denkmp2usb_config	:	unconfig
2686699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2687699f0512SWolfgang Denk
2688a4b46ed6SUlf Samuelsson#########################################################################
2689a4b46ed6SUlf Samuelsson## Atmel ARM926EJ-S Systems
2690a4b46ed6SUlf Samuelsson#########################################################################
2691a4b46ed6SUlf Samuelsson
26921079432eSSergey Lapinafeb9260_config:	unconfig
26931079432eSSergey Lapin	@$(MKCONFIG) $(@:_config=) arm arm926ejs afeb9260 NULL at91
26941079432eSSergey Lapin
2695a4b46ed6SUlf Samuelssonat91cap9adk_config	:	unconfig
26968ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2697a4b46ed6SUlf Samuelsson
269889a7a87fSNicolas Ferreat91sam9260ek_nandflash_config \
269989a7a87fSNicolas Ferreat91sam9260ek_dataflash_cs0_config \
270089a7a87fSNicolas Ferreat91sam9260ek_dataflash_cs1_config \
2701df486b1fSNicolas Ferreat91sam9260ek_config \
2702df486b1fSNicolas Ferreat91sam9g20ek_nandflash_config \
2703df486b1fSNicolas Ferreat91sam9g20ek_dataflash_cs0_config \
2704df486b1fSNicolas Ferreat91sam9g20ek_dataflash_cs1_config \
2705df486b1fSNicolas Ferreat91sam9g20ek_config	:	unconfig
2706e12d9a8fSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
2707df486b1fSNicolas Ferre	@if [ "$(findstring 9g20,$@)" ] ; then \
2708df486b1fSNicolas Ferre		echo "#define CONFIG_AT91SAM9G20EK 1"	>>$(obj)include/config.h ; \
2709df486b1fSNicolas Ferre		$(XECHO) "... 9G20 Variant" ; \
2710df486b1fSNicolas Ferre	else \
2711df486b1fSNicolas Ferre		echo "#define CONFIG_AT91SAM9260EK 1"	>>$(obj)include/config.h ; \
2712df486b1fSNicolas Ferre	fi;
271389a7a87fSNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
271489a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
271589a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
271689a7a87fSNicolas Ferre	elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
271789a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1"	>>$(obj)include/config.h ; \
271889a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
271989a7a87fSNicolas Ferre	else \
272089a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1"	>>$(obj)include/config.h ; \
272189a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
272289a7a87fSNicolas Ferre	fi;
272389a7a87fSNicolas Ferre	@$(MKCONFIG) -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
2724a4b46ed6SUlf Samuelsson
27254e170b16SNicolas Ferreat91sam9xeek_nandflash_config \
27264e170b16SNicolas Ferreat91sam9xeek_dataflash_cs0_config \
27274e170b16SNicolas Ferreat91sam9xeek_dataflash_cs1_config \
27284e170b16SNicolas Ferreat91sam9xeek_config	:	unconfig
27294e170b16SNicolas Ferre	@mkdir -p $(obj)include
27304e170b16SNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
27314e170b16SNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
27324e170b16SNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
27334e170b16SNicolas Ferre	elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
27344e170b16SNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1"	>>$(obj)include/config.h ; \
27354e170b16SNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
27364e170b16SNicolas Ferre	else \
27374e170b16SNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1"	>>$(obj)include/config.h ; \
27384e170b16SNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
27394e170b16SNicolas Ferre	fi;
274053158aeaSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -n at91sam9xeek -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
27414e170b16SNicolas Ferre
274289a7a87fSNicolas Ferreat91sam9261ek_nandflash_config \
274389a7a87fSNicolas Ferreat91sam9261ek_dataflash_cs0_config \
274489a7a87fSNicolas Ferreat91sam9261ek_dataflash_cs3_config \
274528962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9261ek_config	:	unconfig
2746e12d9a8fSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
274789a7a87fSNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
274889a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
274989a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
275089a7a87fSNicolas Ferre	elif [ "$(findstring dataflash_cs3,$@)" ] ; then \
275189a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1"	>>$(obj)include/config.h ; \
275289a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS3" ; \
275389a7a87fSNicolas Ferre	else \
275489a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1"	>>$(obj)include/config.h ; \
275589a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
275689a7a87fSNicolas Ferre	fi;
275789a7a87fSNicolas Ferre	@$(MKCONFIG) -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91
275828962f5aSJean-Christophe PLAGNIOL-VILLARD
275989a7a87fSNicolas Ferreat91sam9263ek_nandflash_config \
276089a7a87fSNicolas Ferreat91sam9263ek_dataflash_config \
276189a7a87fSNicolas Ferreat91sam9263ek_dataflash_cs0_config \
276228962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_config	:	unconfig
2763e12d9a8fSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
276489a7a87fSNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
276589a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
276689a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
276789a7a87fSNicolas Ferre	else \
276889a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH 1"	>>$(obj)include/config.h ; \
276989a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
277089a7a87fSNicolas Ferre	fi;
277189a7a87fSNicolas Ferre	@$(MKCONFIG) -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91
277228962f5aSJean-Christophe PLAGNIOL-VILLARD
277389a7a87fSNicolas Ferreat91sam9rlek_nandflash_config \
277489a7a87fSNicolas Ferreat91sam9rlek_dataflash_config \
277589a7a87fSNicolas Ferreat91sam9rlek_dataflash_cs0_config \
277628962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9rlek_config	:	unconfig
2777e12d9a8fSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
277889a7a87fSNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
277989a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
278089a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
278189a7a87fSNicolas Ferre	else \
278289a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH 1"	>>$(obj)include/config.h ; \
278389a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
278489a7a87fSNicolas Ferre	fi;
278589a7a87fSNicolas Ferre	@$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
278628962f5aSJean-Christophe PLAGNIOL-VILLARD
2787f0a2c7b4SIlko Ilievpm9263_config	:	unconfig
2788f0a2c7b4SIlko Iliev	@$(MKCONFIG) $(@:_config=) arm arm926ejs pm9263 ronetix at91
2789f0a2c7b4SIlko Iliev
279074f4304eSWolfgang Denk########################################################################
279187cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
279287cb6862SWolfgang Denkintegratorap_config	\
279387cb6862SWolfgang Denkap_config		\
279487cb6862SWolfgang Denkap966_config		\
279587cb6862SWolfgang Denkap922_config		\
279687cb6862SWolfgang Denkap922_XA10_config	\
279787cb6862SWolfgang Denkap7_config		\
279887cb6862SWolfgang Denkap720t_config		\
279987cb6862SWolfgang Denkap920t_config		\
280087cb6862SWolfgang Denkap926ejs_config		\
280187cb6862SWolfgang Denkap946es_config: unconfig
2802e4943ec5SJean-Christophe PLAGNIOL-VILLARD	@board/armltd/integratorap/split_by_variant.sh $@
28033d3befa7Swdenk
280487cb6862SWolfgang Denkintegratorcp_config	\
280587cb6862SWolfgang Denkcp_config		\
280687cb6862SWolfgang Denkcp920t_config		\
280787cb6862SWolfgang Denkcp926ejs_config		\
280887cb6862SWolfgang Denkcp946es_config		\
280987cb6862SWolfgang Denkcp1136_config		\
281087cb6862SWolfgang Denkcp966_config		\
281187cb6862SWolfgang Denkcp922_config		\
281287cb6862SWolfgang Denkcp922_XA10_config	\
281387cb6862SWolfgang Denkcp1026_config: unconfig
2814e4943ec5SJean-Christophe PLAGNIOL-VILLARD	@board/armltd/integratorcp/split_by_variant.sh $@
281525d6712aSwdenk
2816699f0512SWolfgang Denkdavinci_dvevm_config :	unconfig
281789d51d02SHugo Villeneuve	@$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci
2818699f0512SWolfgang Denk
2819699f0512SWolfgang Denkdavinci_schmoogie_config :	unconfig
2820699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2821699f0512SWolfgang Denk
2822699f0512SWolfgang Denkdavinci_sffsdr_config :	unconfig
2823699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2824699f0512SWolfgang Denk
2825699f0512SWolfgang Denkdavinci_sonata_config :	unconfig
2826699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2827699f0512SWolfgang Denk
282828b00324SDavid Brownelldavinci_dm355evm_config :	unconfig
282928b00324SDavid Brownell	@$(MKCONFIG) $(@:_config=) arm arm926ejs dm355evm davinci davinci
283028b00324SDavid Brownell
2831f832d8a1Swdenklpd7a400_config \
2832f832d8a1Swdenklpd7a404_config:	unconfig
2833f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
28343d3befa7Swdenk
2835281e00a3Swdenkmx1ads_config	:	unconfig
2836f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2837281e00a3Swdenk
2838281e00a3Swdenkmx1fs2_config	:	unconfig
2839f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2840281e00a3Swdenk
2841ac7eb8a3SWolfgang Denknetstar_config:		unconfig
2842f4e7cbfcSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm925t netstar
2843ac7eb8a3SWolfgang Denk
2844d5254f14SAlessandro Rubininmdk8815_config \
2845d5254f14SAlessandro Rubininmdk8815_onenand_config:	unconfig
2846d5254f14SAlessandro Rubini	@mkdir -p $(obj)include
2847d5254f14SAlessandro Rubini	@ > $(obj)include/config.h
2848d5254f14SAlessandro Rubini	@if [ "$(findstring _onenand, $@)" ] ; then \
2849d5254f14SAlessandro Rubini		echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \
2850d5254f14SAlessandro Rubini		$(XECHO) "... configured for OneNand Flash"; \
2851d5254f14SAlessandro Rubini	else \
2852d5254f14SAlessandro Rubini		$(XECHO) "... configured for Nand Flash"; \
2853d5254f14SAlessandro Rubini	fi
2854d5254f14SAlessandro Rubini	@$(MKCONFIG) -a nmdk8815 arm arm926ejs nmdk8815 st nomadik
2855d5254f14SAlessandro Rubini
28562e5983d2Swdenkomap1510inn_config :	unconfig
2857f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
28582e5983d2Swdenk
2859a4b46ed6SUlf Samuelssonxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2860a4b46ed6SUlf Samuelsson
286163e73c9aSwdenkomap1610inn_config \
286263e73c9aSwdenkomap1610inn_cs0boot_config \
286363e73c9aSwdenkomap1610inn_cs3boot_config \
28643ff02c27Swdenkomap1610inn_cs_autoboot_config \
286563e73c9aSwdenkomap1610h2_config \
286663e73c9aSwdenkomap1610h2_cs0boot_config \
28673ff02c27Swdenkomap1610h2_cs3boot_config \
28683ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
2869f9328639SMarian Balakowicz	@mkdir -p $(obj)include
287063e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2871cdd917a4SWolfgang Denk		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2872ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
28733ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2874cdd917a4SWolfgang Denk		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2875ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS_AUTO boot"; \
287663e73c9aSwdenk	else \
2877cdd917a4SWolfgang Denk		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2878ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
287963e73c9aSwdenk	fi;
2880f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
28816f21347dSwdenk
2882699f0512SWolfgang Denkomap5912osk_config :	unconfig
2883699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2884699f0512SWolfgang Denk
2885a4b46ed6SUlf Samuelssonxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2886a4b46ed6SUlf Samuelsson
2887a56bd922Swdenkomap730p2_config \
2888a56bd922Swdenkomap730p2_cs0boot_config \
2889a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
2890f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2891a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2892f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2893ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
2894a56bd922Swdenk	else \
2895f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2896ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
2897a56bd922Swdenk	fi;
2898f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2899a56bd922Swdenk
290032cb2c70SWolfgang Denksbc2410x_config: unconfig
2901f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
290232cb2c70SWolfgang Denk
2903281e00a3Swdenkscb9328_config	:	unconfig
2904f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2905281e00a3Swdenk
29067ebf7443Swdenksmdk2400_config	:	unconfig
2907cfca3383SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 samsung s3c24x0
29087ebf7443Swdenk
29097ebf7443Swdenksmdk2410_config	:	unconfig
2910cfca3383SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 samsung s3c24x0
29117ebf7443Swdenk
291247fd3bffSJean-Christophe PLAGNIOL-VILLARDSX1_stdout_serial_config \
29132d24a3a7SwdenkSX1_config:		unconfig
291447fd3bffSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
291547fd3bffSJean-Christophe PLAGNIOL-VILLARD	@if [ "$(findstring _stdout_serial_, $@)" ] ; then \
291647fd3bffSJean-Christophe PLAGNIOL-VILLARD		echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
291747fd3bffSJean-Christophe PLAGNIOL-VILLARD		$(XECHO) "... configured for stdout serial"; \
291847fd3bffSJean-Christophe PLAGNIOL-VILLARD	else \
291947fd3bffSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
292047fd3bffSJean-Christophe PLAGNIOL-VILLARD		$(XECHO) "... configured for stdout usbtty"; \
292147fd3bffSJean-Christophe PLAGNIOL-VILLARD	fi;
292247fd3bffSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) SX1 arm arm925t sx1
29232d24a3a7Swdenk
2924b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
2925a4b46ed6SUlf Samuelssonxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2926a4b46ed6SUlf Samuelsson
292743d9616cSwdenktrab_config \
2928b0639ca3Swdenktrab_bigram_config \
2929b0639ca3Swdenktrab_bigflash_config \
2930f54ebdfaSwdenktrab_old_config:	unconfig
2931f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2932f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
2933b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
2934f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2935f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
2936ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2937b0639ca3Swdenk		}
2938b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
2939f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2940f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2941ae6d1056SWolfgang Denk		  $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2942f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2943b0639ca3Swdenk		}
2944f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
2945f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2946f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2947ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2948f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
294943d9616cSwdenk		}
2950f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
29517ebf7443Swdenk
29521cb8e980SwdenkVCMA9_config	:	unconfig
2953f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
29541cb8e980Swdenk
2955699f0512SWolfgang Denk#########################################################################
295687cb6862SWolfgang Denk# ARM supplied Versatile development boards
2957699f0512SWolfgang Denk#########################################################################
2958699f0512SWolfgang Denk
2959699f0512SWolfgang Denkcm4008_config	:	unconfig
2960699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2961699f0512SWolfgang Denk
2962699f0512SWolfgang Denkcm41xx_config	:	unconfig
2963699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2964699f0512SWolfgang Denk
296587cb6862SWolfgang Denkversatile_config	\
296687cb6862SWolfgang Denkversatileab_config	\
296787cb6862SWolfgang Denkversatilepb_config :	unconfig
2968e4943ec5SJean-Christophe PLAGNIOL-VILLARD	@board/armltd/versatile/split_by_variant.sh $@
2969074cff0dSwdenk
29703c2b3d45Swdenkvoiceblue_config:	unconfig
29714fedfddfSLadislav Michl	@$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
29723c2b3d45Swdenk
2973074cff0dSwdenk#########################################################################
2974074cff0dSwdenk## S3C44B0 Systems
2975074cff0dSwdenk#########################################################################
2976074cff0dSwdenk
2977074cff0dSwdenkB2_config	:	unconfig
2978f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2979074cff0dSwdenk
29807ebf7443Swdenk#########################################################################
29817ebf7443Swdenk## ARM720T Systems
29827ebf7443Swdenk#########################################################################
29837ebf7443Swdenk
2984c570b2fdSWolfgang Denkarmadillo_config:	unconfig
2985f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2986c570b2fdSWolfgang Denk
29877ebf7443Swdenkep7312_config	:	unconfig
2988f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
29897ebf7443Swdenk
29902d24a3a7Swdenkimpa7_config	:	unconfig
2991f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
29922d24a3a7Swdenk
29932d1a537dSwdenkmodnet50_config :	unconfig
2994f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
29952d1a537dSwdenk
299639539887Swdenkevb4510_config :	unconfig
2997281dfb0cSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510 NULL s3c4510b
299839539887Swdenk
29996bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
3000b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
3001b0d8f5bfSPeter Pearse
3002b0d8f5bfSPeter PearseSMN42_config	:	unconfig
3003b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
30046bd2447eSGary Jennejohn
30057ebf7443Swdenk#########################################################################
3006f904cdbbSDirk Behme## ARM CORTEX Systems
3007f904cdbbSDirk Behme#########################################################################
3008f904cdbbSDirk Behme
3009f904cdbbSDirk Behmeomap3_beagle_config :	unconfig
3010f904cdbbSDirk Behme	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 beagle omap3 omap3
3011f904cdbbSDirk Behme
30129d0fc811SDirk Behmeomap3_overo_config :	unconfig
30139d0fc811SDirk Behme	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 overo omap3 omap3
30149d0fc811SDirk Behme
3015ad9bc8e5SDirk Behmeomap3_evm_config :	unconfig
3016ad9bc8e5SDirk Behme	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 evm omap3 omap3
3017ad9bc8e5SDirk Behme
30182be2c6ccSDirk Behmeomap3_pandora_config :	unconfig
30192be2c6ccSDirk Behme	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 pandora omap3 omap3
30202be2c6ccSDirk Behme
30217379f45aSDirk Behmeomap3_zoom1_config :	unconfig
30227379f45aSDirk Behme	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom1 omap3 omap3
30237379f45aSDirk Behme
3024376aee78STom Rixomap3_zoom2_config :	unconfig
3025376aee78STom Rix	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom2 omap3 omap3
3026376aee78STom Rix
3027f904cdbbSDirk Behme#########################################################################
302843d9616cSwdenk## XScale Systems
30297ebf7443Swdenk#########################################################################
30307ebf7443Swdenk
3031799891efSMichael Schwingenactux1_config	:	unconfig
3032799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux1
3033799891efSMichael Schwingen
3034799891efSMichael Schwingenactux2_config	:	unconfig
3035799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux2
3036799891efSMichael Schwingen
3037799891efSMichael Schwingenactux3_config	:	unconfig
3038799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux3
3039799891efSMichael Schwingen
3040799891efSMichael Schwingenactux4_config	:	unconfig
3041799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux4
3042799891efSMichael Schwingen
3043fabd46acSwdenkcerf250_config :	unconfig
3044f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
3045fabd46acSwdenk
30467ebf7443Swdenkcradle_config	:	unconfig
3047f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
30487ebf7443Swdenk
30497ebf7443Swdenkcsb226_config	:	unconfig
3050f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
30517ebf7443Swdenk
305291c82076SJean-Christophe PLAGNIOL-VILLARDdelta_config :	unconfig
3053f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
30540be248faSWolfgang Denk
305543d9616cSwdenkinnokom_config	:	unconfig
3056f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
305743d9616cSwdenk
30582d5b561eSwdenkixdp425_config	:	unconfig
3059f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
30602d5b561eSwdenk
3061ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
3062f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
3063ba94a1bbSWolfgang Denk
306443d9616cSwdenklubbock_config	:	unconfig
3065f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
306643d9616cSwdenk
30675720df78SHeiko Schocherpleb2_config	:	unconfig
3068f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
30695720df78SHeiko Schocher
307052f52c14Swdenklogodl_config	:	unconfig
3071f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
307252f52c14Swdenk
30739d8d5a5bSStefan Roesepdnb3_config \
30749d8d5a5bSStefan Roesescpu_config:	unconfig
3075cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
30769d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
3077cdd917a4SWolfgang Denk		echo "#define CONFIG_SCPU"	>>$(obj)include/config.h ; \
3078ae6d1056SWolfgang Denk		$(XECHO) "... on SCPU board variant" ; \
30799d8d5a5bSStefan Roese	fi
30809d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
3081ba94a1bbSWolfgang Denk
3082f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
3083f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
3084f57f70aaSWolfgang Denk
30855e5803e1Sstefano babictrizepsiv_config	:	unconfig
30865e5803e1Sstefano babic	@$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
30875e5803e1Sstefano babic
30883e38691eSwdenkwepep250_config	:	unconfig
3089f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
30903e38691eSwdenk
30914ec3a7f0Swdenkxaeniax_config	:	unconfig
3092f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
30934ec3a7f0Swdenk
3094efa329cbSwdenkxm250_config	:	unconfig
3095f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
3096efa329cbSwdenk
3097ca0e7748Swdenkxsengine_config :	unconfig
3098f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
3099ca0e7748Swdenk
3100e0269579SMarkus Klotzbücherzylonite_config :
3101f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
3102e0269579SMarkus Klotzbücher
31038ed96046Swdenk#########################################################################
31048ed96046Swdenk## ARM1136 Systems
31058ed96046Swdenk#########################################################################
31065ca9881aSPeter Pearse
31075ca9881aSPeter Pearseapollon_config		: unconfig
3108c6fe4dabSWolfgang Denk	@mkdir -p $(obj)include
3109f2302d44SStefan Roese	@mkdir -p $(obj)onenand_ipl/board/apollon
3110751b9b51SKyungmin Park	@echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
31115252ed95SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
3112751b9b51SKyungmin Park	@echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
31138ed96046Swdenk
3114caebc95bSSascha Hauerimx31_litekit_config	: unconfig
3115caebc95bSSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
3116caebc95bSSascha Hauer
3117a2bb7105SGuennadi Liakhovetskiimx31_phycore_eet_config \
31185ad86216SSascha Hauerimx31_phycore_config	: unconfig
311969c5bf29SGuennadi Liakhovetski	@mkdir -p $(obj)include
3120a2bb7105SGuennadi Liakhovetski	@if [ -n "$(findstring _eet_,$@)" ]; then			\
3121a2bb7105SGuennadi Liakhovetski		echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h;	\
3122a2bb7105SGuennadi Liakhovetski	fi
3123a2bb7105SGuennadi Liakhovetski	@$(MKCONFIG) -a imx31_phycore arm arm1136 imx31_phycore NULL mx31
31245ad86216SSascha Hauer
3125b5dc9b30SGuennadi Liakhovetskimx31ads_config		: unconfig
3126f5acb9fdSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
3127b5dc9b30SGuennadi Liakhovetski
3128699f0512SWolfgang Denkomap2420h4_config	: unconfig
3129699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
3130699f0512SWolfgang Denk
31310d19f6c8SIlya Yanokqong_config		: unconfig
31320d19f6c8SIlya Yanok	@$(MKCONFIG) $(@:_config=) arm arm1136 qong davedenx mx31
31330d19f6c8SIlya Yanok
31340d19f6c8SIlya Yanok
313511edcfe2SGuennadi Liakhovetski#########################################################################
313611edcfe2SGuennadi Liakhovetski## ARM1176 Systems
313711edcfe2SGuennadi Liakhovetski#########################################################################
313811edcfe2SGuennadi Liakhovetskismdk6400_noUSB_config	\
313911edcfe2SGuennadi Liakhovetskismdk6400_config	:	unconfig
314011edcfe2SGuennadi Liakhovetski	@mkdir -p $(obj)include $(obj)board/samsung/smdk6400
314111edcfe2SGuennadi Liakhovetski	@mkdir -p $(obj)nand_spl/board/samsung/smdk6400
314211edcfe2SGuennadi Liakhovetski	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
314311edcfe2SGuennadi Liakhovetski	@if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then			\
314411edcfe2SGuennadi Liakhovetski		echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
314511edcfe2SGuennadi Liakhovetski		$(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx;		\
314611edcfe2SGuennadi Liakhovetski	else										\
314711edcfe2SGuennadi Liakhovetski		echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
314811edcfe2SGuennadi Liakhovetski		$(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx;	\
314911edcfe2SGuennadi Liakhovetski	fi
315011edcfe2SGuennadi Liakhovetski	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
315111edcfe2SGuennadi Liakhovetski
31522262cfeeSwdenk#========================================================================
31532262cfeeSwdenk# i386
31542262cfeeSwdenk#========================================================================
31552262cfeeSwdenk#########################################################################
31562262cfeeSwdenk## AMD SC520 CDP
31572262cfeeSwdenk#########################################################################
3158c620c01eSGraeme RusseNET_config	:	unconfig
315940797618SGraeme Russ	@$(MKCONFIG) $(@:_config=) i386 i386 eNET NULL sc520
3160c620c01eSGraeme Russ
3161a3f4c123SWolfgang Denksc520_cdp_config	:	unconfig
316240797618SGraeme Russ	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp NULL sc520
3163a3f4c123SWolfgang Denk
31647a8e9bedSwdenksc520_spunk_config	:	unconfig
316540797618SGraeme Russ	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520
31667a8e9bedSwdenk
31677a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
316840797618SGraeme Russ	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520
31697a8e9bedSwdenk
317043d9616cSwdenk#========================================================================
317143d9616cSwdenk# MIPS
317243d9616cSwdenk#========================================================================
31737ebf7443Swdenk#########################################################################
317443d9616cSwdenk## MIPS32 4Kc
317543d9616cSwdenk#########################################################################
317643d9616cSwdenk
3177e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
3178e0ac62d7Swdenk
3179e0ac62d7Swdenkincaip_100MHz_config	\
3180e0ac62d7Swdenkincaip_133MHz_config	\
3181e0ac62d7Swdenkincaip_150MHz_config	\
318243d9616cSwdenkincaip_config: unconfig
3183f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3184e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
3185f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
3186ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
3187e0ac62d7Swdenk		}
3188e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
3189f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
3190ae6d1056SWolfgang Denk		  $(XECHO) "... with 133MHz system clock" ; \
3191e0ac62d7Swdenk		}
3192e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
3193f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
3194ae6d1056SWolfgang Denk		  $(XECHO) "... with 150MHz system clock" ; \
3195e0ac62d7Swdenk		}
3196f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
3197e0ac62d7Swdenk
3198f4863a7aSwdenktb0229_config: unconfig
3199f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
3200f4863a7aSwdenk
32012a61eff6SStefan Roesevct_premium_config		\
32022a61eff6SStefan Roesevct_premium_small_config	\
32032a61eff6SStefan Roesevct_premium_onenand_config	\
32042a61eff6SStefan Roesevct_premium_onenand_small_config \
32052a61eff6SStefan Roesevct_platinum_config		\
32062a61eff6SStefan Roesevct_platinum_small_config	\
32072a61eff6SStefan Roesevct_platinum_onenand_config	\
32082a61eff6SStefan Roesevct_platinum_onenand_small_config \
32092a61eff6SStefan Roesevct_platinumavc_config		\
32102a61eff6SStefan Roesevct_platinumavc_small_config	\
32112a61eff6SStefan Roesevct_platinumavc_onenand_config	\
32122a61eff6SStefan Roesevct_platinumavc_onenand_small_config: unconfig
32132a61eff6SStefan Roese	@mkdir -p $(obj)include
32142a61eff6SStefan Roese	@if [ "$(findstring _premium,$@)" ] ; then \
32152a61eff6SStefan Roese		echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h ; \
32162a61eff6SStefan Roese		$(XECHO) "... on Premium board variant" ; \
32172a61eff6SStefan Roese	fi
32182a61eff6SStefan Roese	@if [ "$(findstring _platinum_,$@)" ] ; then \
32192a61eff6SStefan Roese		echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h ; \
32202a61eff6SStefan Roese		$(XECHO) "... on Platinum board variant" ; \
32212a61eff6SStefan Roese	fi
32222a61eff6SStefan Roese	@if [ "$(findstring _platinumavc,$@)" ] ; then \
32232a61eff6SStefan Roese		echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h ; \
32242a61eff6SStefan Roese		$(XECHO) "... on PlatinumAVC board variant" ; \
32252a61eff6SStefan Roese	fi
32262a61eff6SStefan Roese	@if [ "$(findstring _onenand,$@)" ] ; then \
32272a61eff6SStefan Roese		echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h ; \
32282a61eff6SStefan Roese		$(XECHO) "... on OneNAND board variant" ; \
32292a61eff6SStefan Roese	fi
32302a61eff6SStefan Roese	@if [ "$(findstring _small,$@)" ] ; then \
32312a61eff6SStefan Roese		echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h ; \
32322a61eff6SStefan Roese		$(XECHO) "... stripped down image variant" ; \
32332a61eff6SStefan Roese	fi
32342a61eff6SStefan Roese	@$(MKCONFIG) -a vct mips mips vct micronas
32352a61eff6SStefan Roese
3236e0ac62d7Swdenk#########################################################################
323769459791Swdenk## MIPS32 AU1X00
323869459791Swdenk#########################################################################
3239699f0512SWolfgang Denk
324069459791Swdenkdbau1000_config		:	unconfig
3241f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3242210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
3243f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
324469459791Swdenk
324569459791Swdenkdbau1100_config		:	unconfig
3246f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3247210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
3248f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
324969459791Swdenk
325069459791Swdenkdbau1500_config		:	unconfig
3251f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3252210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
3253f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
325469459791Swdenk
3255ff36fd85Swdenkdbau1550_config		:	unconfig
3256f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3257210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3258f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3259ff36fd85Swdenk
3260ff36fd85Swdenkdbau1550_el_config	:	unconfig
3261f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3262210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3263f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3264ff36fd85Swdenk
32658a773983SShinya Kuribayashigth2_config		:	unconfig
32668a773983SShinya Kuribayashi	@mkdir -p $(obj)include
32678a773983SShinya Kuribayashi	@echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
32688a773983SShinya Kuribayashi	@$(MKCONFIG) -a gth2 mips mips gth2
32698a773983SShinya Kuribayashi
3270699f0512SWolfgang Denkpb1000_config		:	unconfig
3271699f0512SWolfgang Denk	@mkdir -p $(obj)include
3272699f0512SWolfgang Denk	@echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
3273699f0512SWolfgang Denk	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
3274699f0512SWolfgang Denk
32750764c164SVlad Lunguqemu_mips_config	: unconfig
32760764c164SVlad Lungu	@mkdir -p $(obj)include
3277210ed200SWolfgang Denk	@echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
32780764c164SVlad Lungu	@$(MKCONFIG) -a qemu-mips mips mips qemu-mips
32790764c164SVlad Lungu
328069459791Swdenk#########################################################################
3281e0ac62d7Swdenk## MIPS64 5Kc
3282e0ac62d7Swdenk#########################################################################
328343d9616cSwdenk
32843e38691eSwdenkpurple_config :		unconfig
3285f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
328643d9616cSwdenk
32874a551709Swdenk#========================================================================
32884a551709Swdenk# Nios
32894a551709Swdenk#========================================================================
32904a551709Swdenk#########################################################################
32914a551709Swdenk## Nios32
32924a551709Swdenk#########################################################################
32934a551709Swdenk
3294699f0512SWolfgang DenkADNPESC1_DNPEVA2_base_32_config	\
3295699f0512SWolfgang DenkADNPESC1_base_32_config		\
3296699f0512SWolfgang DenkADNPESC1_config: unconfig
3297699f0512SWolfgang Denk	@mkdir -p $(obj)include
3298699f0512SWolfgang Denk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
3299699f0512SWolfgang Denk		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
3300699f0512SWolfgang Denk		  $(XECHO) "... DNP/EVA2 configuration" ; \
3301699f0512SWolfgang Denk		}
3302699f0512SWolfgang Denk	@[ -z "$(findstring _base_32,$@)" ] || \
3303699f0512SWolfgang Denk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3304699f0512SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration" ; \
3305699f0512SWolfgang Denk		}
3306699f0512SWolfgang Denk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
3307699f0512SWolfgang Denk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3308699f0512SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
3309699f0512SWolfgang Denk		}
3310699f0512SWolfgang Denk	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
3311699f0512SWolfgang Denk
3312c935d3bdSwdenkDK1C20_safe_32_config		\
3313c935d3bdSwdenkDK1C20_standard_32_config	\
33144a551709SwdenkDK1C20_config:	unconfig
3315f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3316c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
3317f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3318ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
3319c935d3bdSwdenk		}
3320c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
3321f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3322ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
3323c935d3bdSwdenk		}
3324c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
3325f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3326ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3327c935d3bdSwdenk		}
3328f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
3329c935d3bdSwdenk
3330c935d3bdSwdenkDK1S10_safe_32_config		\
3331c935d3bdSwdenkDK1S10_standard_32_config	\
3332ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
3333c935d3bdSwdenkDK1S10_config:	unconfig
3334f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3335c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
3336f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3337ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
3338c935d3bdSwdenk		}
3339c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
3340f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3341ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
3342c935d3bdSwdenk		}
3343ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
3344f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
3345ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
3346ec4c544bSwdenk		}
3347c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
3348f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3349ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3350c935d3bdSwdenk		}
3351f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
33524a551709Swdenk
33535c952cf0Swdenk#########################################################################
33545c952cf0Swdenk## Nios-II
33555c952cf0Swdenk#########################################################################
33565c952cf0Swdenk
33579cc83378SScott McNuttEP1C20_config : unconfig
3358f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
33599cc83378SScott McNutt
33609cc83378SScott McNuttEP1S10_config : unconfig
3361f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
33629cc83378SScott McNutt
33639cc83378SScott McNuttEP1S40_config : unconfig
3364f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
33659cc83378SScott McNutt
33665c952cf0SwdenkPK1C20_config : unconfig
3367f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
33685c952cf0Swdenk
33695c952cf0SwdenkPCI5441_config : unconfig
3370f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
33714a551709Swdenk
3372507bbe3eSwdenk#========================================================================
3373507bbe3eSwdenk## Microblaze
3374699f0512SWolfgang Denk#========================================================================
3375507bbe3eSwdenk
337652a822edSMichal Simekmicroblaze-generic_config:	unconfig
3377cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
337852a822edSMichal Simek	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze microblaze-generic xilinx
3379cfc67116SMichal Simek
3380699f0512SWolfgang Denksuzaku_config:	unconfig
3381699f0512SWolfgang Denk	@mkdir -p $(obj)include
3382699f0512SWolfgang Denk	@echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
3383699f0512SWolfgang Denk	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
3384699f0512SWolfgang Denk
338560fa72d6SMike Frysinger#========================================================================
338660fa72d6SMike Frysinger# Blackfin
338760fa72d6SMike Frysinger#========================================================================
33880afe519aSWolfgang Denk
338960fa72d6SMike Frysinger# Analog Devices boards
339084a9dda3SMike FrysingerBFIN_BOARDS = bf518f-ezbrd bf526-ezbrd bf527-ezkit bf533-ezkit bf533-stamp \
3391cb4b5e87SMike Frysinger	bf537-pnav bf537-stamp bf538f-ezkit bf548-ezkit bf561-ezkit
33920afe519aSWolfgang Denk
3393e82d8a1fSMike Frysinger# Bluetechnix tinyboards
339459e4be94SMike FrysingerBFIN_BOARDS += cm-bf527 cm-bf533 cm-bf537e cm-bf548 cm-bf561 tcm-bf537
3395e82d8a1fSMike Frysinger
3396d7fdc141SMike Frysinger# Misc third party boards
33973088189aSMike FrysingerBFIN_BOARDS += bf537-minotaur bf537-srv1 blackstamp
3398d7fdc141SMike Frysinger
3399*0f52b560SHoan Hoang# I-SYST Micromodule
3400*0f52b560SHoan HoangBFIN_BOARDS += ibf-dsp561
3401*0f52b560SHoan Hoang
340260fa72d6SMike Frysinger$(BFIN_BOARDS:%=%_config)	: unconfig
34039171fc81SMike Frysinger	@$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
340426bf7decSAubrey Li
340560fa72d6SMike Frysinger$(BFIN_BOARDS):
340660fa72d6SMike Frysinger	$(MAKE) $@_config
340760fa72d6SMike Frysinger	$(MAKE)
34080afe519aSWolfgang Denk
34095e3b0bc1SHaavard Skinnemoen#========================================================================
34105e3b0bc1SHaavard Skinnemoen# AVR32
34115e3b0bc1SHaavard Skinnemoen#========================================================================
3412699f0512SWolfgang Denk
3413699f0512SWolfgang Denkatngw100_config	:	unconfig
3414699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
34155e3b0bc1SHaavard Skinnemoen
34165e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
341736f28f8aSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
34185e3b0bc1SHaavard Skinnemoen
3419667568dbSHaavard Skinnemoenatstk1003_config	:	unconfig
3420667568dbSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3421667568dbSHaavard Skinnemoen
342264ff2357SHaavard Skinnemoenatstk1004_config	:	unconfig
342364ff2357SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
34240afe519aSWolfgang Denk
34250a2e4879SHaavard Skinnemoenatstk1006_config	:	unconfig
34260a2e4879SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
34270a2e4879SHaavard Skinnemoen
34280eb5717aSHans-Christian Egtvedtfavr-32-ezkit_config	:	unconfig
34290eb5717aSHans-Christian Egtvedt	@$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
34300eb5717aSHans-Christian Egtvedt
34315c374c9eSJulien Mayhammerhead_config	:	unconfig
34325c374c9eSJulien May	@$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
34335c374c9eSJulien May
343413b50fe3SMark Jacksonmimc200_config		:	unconfig
343513b50fe3SMark Jackson	@$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
343613b50fe3SMark Jackson
3437699f0512SWolfgang Denk#========================================================================
3438699f0512SWolfgang Denk# SH3 (SuperH)
3439699f0512SWolfgang Denk#========================================================================
34407ebf7443Swdenk
344169df3c4dSNobuhiro Iwamatsu#########################################################################
3442c655fad0SNobuhiro Iwamatsu## sh2 (Renesas SuperH)
3443c655fad0SNobuhiro Iwamatsu#########################################################################
3444c655fad0SNobuhiro Iwamatsursk7203_config: unconfig
3445a5b04d00SKieran Bingham	@mkdir -p $(obj)include
34464d41650eSPeter Griffin	@echo "#define CONFIG_RSK7203 1" > $(obj)include/config.h
34479a1d3557SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh2 rsk7203 renesas
3448c655fad0SNobuhiro Iwamatsu
3449c655fad0SNobuhiro Iwamatsu#########################################################################
3450b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH)
3451b2b5e2bbSYoshihiro Shimoda#########################################################################
3452699f0512SWolfgang Denk
34533313e0e2SMark Jonasmpr2_config: unconfig
34543ab4827cSWolfgang Denk	@mkdir -p $(obj)include
34553ab4827cSWolfgang Denk	@echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
34563313e0e2SMark Jonas	@$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
34573313e0e2SMark Jonas
3458b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig
34593ab4827cSWolfgang Denk	@mkdir -p $(obj)include
34603ab4827cSWolfgang Denk	@echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
346191c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3462b2b5e2bbSYoshihiro Shimoda
3463b2b5e2bbSYoshihiro Shimoda#########################################################################
346469df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH)
346569df3c4dSNobuhiro Iwamatsu#########################################################################
3466699f0512SWolfgang Denk
3467699f0512SWolfgang DenkMigoR_config :       unconfig
3468699f0512SWolfgang Denk	@mkdir -p $(obj)include
3469699f0512SWolfgang Denk	@echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
34709a1d3557SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 MigoR renesas
3471699f0512SWolfgang Denk
347269df3c4dSNobuhiro Iwamatsums7750se_config: unconfig
34733ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3474210ed200SWolfgang Denk	@echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
347591c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
347669df3c4dSNobuhiro Iwamatsu
3477d91ea45dSNobuhiro Iwamatsums7722se_config :	unconfig
34783ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3479210ed200SWolfgang Denk	@echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
348091c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
34817a8e9bedSwdenk
3482699f0512SWolfgang Denkr2dplus_config  :   unconfig
34833ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3484699f0512SWolfgang Denk	@echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3485c1da2a22SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus renesas
3486c2042f59Sgoda.yusuke
3487c133c1fbSYusuke Godar7780mp_config: unconfig
34883ab4827cSWolfgang Denk	@mkdir -p $(obj)include
34893ab4827cSWolfgang Denk	@echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3490acd3e30dSNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp renesas
3491c133c1fbSYusuke Goda
34927faddaecSNobuhiro Iwamatsush7763rdp_config  :   unconfig
34933ab4827cSWolfgang Denk	@mkdir -p $(obj)include
34943ab4827cSWolfgang Denk	@echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
349578385bf2SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp renesas
34967faddaecSNobuhiro Iwamatsu
3497ada93182SYoshihiro Shimodaxtract_sh7785lcr = $(subst _32bit,,$(subst _config,,$1))
3498ada93182SYoshihiro Shimodash7785lcr_32bit_config \
34990d53a47dSNobuhiro Iwamatsush7785lcr_config  :   unconfig
35000d53a47dSNobuhiro Iwamatsu	@ >include/config.h
35010d53a47dSNobuhiro Iwamatsu	@echo "#define CONFIG_SH7785LCR 1" >> include/config.h
3502ada93182SYoshihiro Shimoda	@if [ "$(findstring 32bit, $@)" ] ; then \
3503ada93182SYoshihiro Shimoda		echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \
3504ada93182SYoshihiro Shimoda		cp $(obj)board/renesas/sh7785lcr/u-boot_32bit \
3505ada93182SYoshihiro Shimoda			$(obj)board/renesas/sh7785lcr/u-boot.lds ; \
3506ada93182SYoshihiro Shimoda		echo "TEXT_BASE = 0x8ff80000" > \
3507ada93182SYoshihiro Shimoda			$(obj)board/renesas/sh7785lcr/config.tmp ; \
3508ada93182SYoshihiro Shimoda		  $(XECHO) " ... enable 32-Bit Address Extended Mode" ; \
3509ada93182SYoshihiro Shimoda	else \
3510ada93182SYoshihiro Shimoda		cp $(obj)board/renesas/sh7785lcr/u-boot_29bit \
3511ada93182SYoshihiro Shimoda			$(obj)board/renesas/sh7785lcr/u-boot.lds ; \
3512ada93182SYoshihiro Shimoda	fi
3513ada93182SYoshihiro Shimoda	@$(MKCONFIG) -a $(call xtract_sh7785lcr,$@) sh sh4 sh7785lcr renesas
35140d53a47dSNobuhiro Iwamatsu
35156f0da497SNobuhiro Iwamatsuap325rxa_config  :   unconfig
35166f0da497SNobuhiro Iwamatsu	@mkdir -p $(obj)include
35176f0da497SNobuhiro Iwamatsu	@echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
3518f84e6ea2SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa renesas
35196f0da497SNobuhiro Iwamatsu
3520c2f02da2SDaniel Hellstrom#========================================================================
3521c2f02da2SDaniel Hellstrom# SPARC
3522c2f02da2SDaniel Hellstrom#========================================================================
3523699f0512SWolfgang Denk
35241e9a164eSDaniel Hellstrom#########################################################################
35251e9a164eSDaniel Hellstrom## LEON3
35261e9a164eSDaniel Hellstrom#########################################################################
3527c2f02da2SDaniel Hellstrom
352871d7e4c0SDaniel Hellstrom# Gaisler GR-XC3S-1500 board
352971d7e4c0SDaniel Hellstromgr_xc3s_1500_config : unconfig
353071d7e4c0SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
353171d7e4c0SDaniel Hellstrom
35326ed8a43aSDaniel Hellstrom# Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
35336ed8a43aSDaniel Hellstromgr_cpci_ax2000_config : unconfig
35346ed8a43aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
35356ed8a43aSDaniel Hellstrom
35366940383dSDaniel Hellstrom# Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
35376940383dSDaniel Hellstrom# Development board Stratix II edition, FPGA Device EP2S60.
35386940383dSDaniel Hellstromgr_ep2s60_config: unconfig
35396940383dSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
35406940383dSDaniel Hellstrom
3541823edd8aSDaniel Hellstrom# Gaisler LEON3 GRSIM simulator
3542823edd8aSDaniel Hellstromgrsim_config : unconfig
3543823edd8aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3544823edd8aSDaniel Hellstrom
35457ebf7443Swdenk#########################################################################
3546b330990cSDaniel Hellstrom## LEON2
3547b330990cSDaniel Hellstrom#########################################################################
3548b330990cSDaniel Hellstrom
3549ab68f921SDaniel Hellstrom# Gaisler LEON2 GRSIM simulator
3550ab68f921SDaniel Hellstromgrsim_leon2_config : unconfig
3551ab68f921SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3552ab68f921SDaniel Hellstrom
35537ebf7443Swdenk#########################################################################
35547ebf7443Swdenk#########################################################################
35557ebf7443Swdenk#########################################################################
355685ec0bccSwdenk
35573e38691eSwdenkclean:
3558f9301e1cSWolfgang Denk	@rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
3559f9301e1cSWolfgang Denk	       $(obj)examples/hello_world  $(obj)examples/interrupt	  \
3560f9301e1cSWolfgang Denk	       $(obj)examples/mem_to_mem_idma2intr			  \
3561f9301e1cSWolfgang Denk	       $(obj)examples/sched	   $(obj)examples/smc91111_eeprom \
3562f9301e1cSWolfgang Denk	       $(obj)examples/test_burst   $(obj)examples/timer
3563f9301e1cSWolfgang Denk	@rm -f $(obj)tools/bmp_logo	   $(obj)tools/easylogo/easylogo  \
3564f9301e1cSWolfgang Denk	       $(obj)tools/env/{fw_printenv,fw_setenv}			  \
3565f9301e1cSWolfgang Denk	       $(obj)tools/envcrc					  \
3566f9301e1cSWolfgang Denk	       $(obj)tools/gdb/{astest,gdbcont,gdbsend}			  \
3567f9301e1cSWolfgang Denk	       $(obj)tools/gen_eth_addr    $(obj)tools/img2srec		  \
3568f9301e1cSWolfgang Denk	       $(obj)tools/mkimage	   $(obj)tools/mpc86x_clk	  \
3569f9301e1cSWolfgang Denk	       $(obj)tools/ncb		   $(obj)tools/ubsha1
3570f9301e1cSWolfgang Denk	@rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image}	  \
3571f9301e1cSWolfgang Denk	       $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin}	  \
3572f9301e1cSWolfgang Denk	       $(obj)board/trab/trab_fkt   $(obj)board/voiceblue/eeprom   \
35731dcb50afSWolfgang Denk	       $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds  \
357484a9dda3SMike Frysinger	       $(obj)board/bf5{18f,26,27,33,38f,48,61}-ez{brd,kit}/u-boot.lds \
357576d21803SMike Frysinger	       $(obj)board/bf5{33,37}-stamp/u-boot.lds			  \
35763088189aSMike Frysinger	       $(obj)board/{bf537-{minotaur,pnav,srv1},blackstamp}/u-boot.lds \
357759e4be94SMike Frysinger	       $(obj)board/{,t}cm-bf5{27,33,37e,48,61}/u-boot.lds	  \
3578*0f52b560SHoan Hoang	       $(obj)board/ibf-dsp561/u-boot.lds			  \
35799171fc81SMike Frysinger	       $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3580dc7746d8SWolfgang Denk	@rm -f $(obj)include/bmp_logo.h
3581dc7746d8SWolfgang Denk	@rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
35821bb707c3SKyungmin Park	@rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3583561858eeSPeter Tyser	@rm -f $(obj)api_examples/demo $(TIMESTAMP_FILE) $(VERSION_FILE)
3584ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \
35857ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
35862b48f7d5SPeter Tyser		-o -name '*.o'	-o -name '*.a' -o -name '*.exe'	\) -print \
35877ebf7443Swdenk		| xargs rm -f
35887ebf7443Swdenk
35897ebf7443Swdenkclobber:	clean
3590ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \( -name .depend \
35914c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
35924c0d4c3bSwdenk		-print0 \
35934c0d4c3bSwdenk		| xargs -0 rm -f
3594ffda586fSLi Yang	@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
35955013c09fSWolfgang Denk		$(obj)cscope.* $(obj)*.*~
3596ae6d1056SWolfgang Denk	@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
3597fb8b33c1SPeter Tyser	@rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes}
35985013c09fSWolfgang Denk	@rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3599ae6d1056SWolfgang Denk	@rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3600a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3601a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
3602a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)api_examples ] || find $(obj)api_examples -name "*" -type l -print | xargs rm -f
36037ebf7443Swdenk
3604f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
36057ebf7443Swdenkmrproper \
36067ebf7443Swdenkdistclean:	clobber unconfig
3607f9328639SMarian Balakowiczelse
3608f9328639SMarian Balakowiczmrproper \
3609f9328639SMarian Balakowiczdistclean:	clobber unconfig
3610ae6d1056SWolfgang Denk	rm -rf $(obj)*
3611f9328639SMarian Balakowiczendif
36127ebf7443Swdenk
36137ebf7443Swdenkbackup:
36147ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
36157ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
36167ebf7443Swdenk
36177ebf7443Swdenk#########################################################################
3618