xref: /openbmc/u-boot/Makefile (revision b1b4e89a)
17ebf7443Swdenk#
2ae6d1056SWolfgang Denk# (C) Copyright 2000-2008
37ebf7443Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
47ebf7443Swdenk#
57ebf7443Swdenk# See file CREDITS for list of people who contributed to this
67ebf7443Swdenk# project.
77ebf7443Swdenk#
87ebf7443Swdenk# This program is free software; you can redistribute it and/or
97ebf7443Swdenk# modify it under the terms of the GNU General Public License as
1045a212c4SWolfgang Denk# published by the Free Software Foundatio; either version 2 of
117ebf7443Swdenk# the License, or (at your option) any later version.
127ebf7443Swdenk#
137ebf7443Swdenk# This program is distributed in the hope that it will be useful,
147ebf7443Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of
157ebf7443Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the
167ebf7443Swdenk# GNU General Public License for more details.
177ebf7443Swdenk#
187ebf7443Swdenk# You should have received a copy of the GNU General Public License
197ebf7443Swdenk# along with this program; if not, write to the Free Software
207ebf7443Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
217ebf7443Swdenk# MA 02111-1307 USA
227ebf7443Swdenk#
237ebf7443Swdenk
24aced78d8SWolfgang DenkVERSION = 2009
2532688e57SWolfgang DenkPATCHLEVEL = 03
268b9e4787SWolfgang DenkSUBLEVEL =
27b3dd629eSWolfgang DenkEXTRAVERSION = -rc2
288b9e4787SWolfgang Denkifneq "$(SUBLEVEL)" ""
29881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
308b9e4787SWolfgang Denkelse
318b9e4787SWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL)$(EXTRAVERSION)
328b9e4787SWolfgang Denkendif
33561858eeSPeter TyserTIMESTAMP_FILE = $(obj)include/timestamp_autogenerated.h
34f9328639SMarian BalakowiczVERSION_FILE = $(obj)include/version_autogenerated.h
35881a87ecSWolfgang Denk
367ebf7443SwdenkHOSTARCH := $(shell uname -m | \
377ebf7443Swdenk	sed -e s/i.86/i386/ \
387ebf7443Swdenk	    -e s/sun4u/sparc64/ \
397ebf7443Swdenk	    -e s/arm.*/arm/ \
407ebf7443Swdenk	    -e s/sa110/arm/ \
417ebf7443Swdenk	    -e s/powerpc/ppc/ \
42a2280646SKumar Gala	    -e s/ppc64/ppc/ \
437ebf7443Swdenk	    -e s/macppc/ppc/)
447ebf7443Swdenk
45f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
467ebf7443Swdenk	    sed -e 's/\(cygwin\).*/cygwin/')
477ebf7443Swdenk
48cf7a7b99SPeter Tyser# Set shell to bash if possible, otherwise fall back to sh
49cf7a7b99SPeter TyserSHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
50cf7a7b99SPeter Tyser	else if [ -x /bin/bash ]; then echo /bin/bash; \
51cf7a7b99SPeter Tyser	else echo sh; fi; fi)
52cf7a7b99SPeter Tyser
53cf7a7b99SPeter Tyserexport	HOSTARCH HOSTOS SHELL
547ebf7443Swdenk
557ebf7443Swdenk# Deal with colliding definitions from tcsh etc.
567ebf7443SwdenkVENDOR=
577ebf7443Swdenk
587ebf7443Swdenk#########################################################################
59ae6d1056SWolfgang Denk# Allow for silent builds
60ae6d1056SWolfgang Denkifeq (,$(findstring s,$(MAKEFLAGS)))
61ae6d1056SWolfgang DenkXECHO = echo
62ae6d1056SWolfgang Denkelse
63ae6d1056SWolfgang DenkXECHO = :
64ae6d1056SWolfgang Denkendif
65ae6d1056SWolfgang Denk
66ae6d1056SWolfgang Denk#########################################################################
67f9328639SMarian Balakowicz#
68f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external
69f9328639SMarian Balakowicz# directory. Two use cases are supported:
70f9328639SMarian Balakowicz#
71f9328639SMarian Balakowicz# 1) Add O= to the make command line
72f9328639SMarian Balakowicz# 'make O=/tmp/build all'
73f9328639SMarian Balakowicz#
74f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location
75f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
76f9328639SMarian Balakowicz# 'make'
77f9328639SMarian Balakowicz#
78f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script
79f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
80f9328639SMarian Balakowicz# './MAKEALL'
81f9328639SMarian Balakowicz#
82f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable.
83f9328639SMarian Balakowicz#
84f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and
85f9328639SMarian Balakowicz# the object files are placed in the source directory.
86f9328639SMarian Balakowicz#
877ebf7443Swdenk
88f9328639SMarian Balakowiczifdef O
89f9328639SMarian Balakowiczifeq ("$(origin O)", "command line")
90f9328639SMarian BalakowiczBUILD_DIR := $(O)
91f9328639SMarian Balakowiczendif
92f9328639SMarian Balakowiczendif
937ebf7443Swdenk
94f9328639SMarian Balakowiczifneq ($(BUILD_DIR),)
95f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR)
964f0645ebSMarian Balakowicz
974f0645ebSMarian Balakowicz# Attempt to create a output directory.
984f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
994f0645ebSMarian Balakowicz
1004f0645ebSMarian Balakowicz# Verify if it was successful.
101f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
102f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
103f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),)
104f9328639SMarian Balakowicz
105f9328639SMarian BalakowiczOBJTREE		:= $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
106f9328639SMarian BalakowiczSRCTREE		:= $(CURDIR)
107f9328639SMarian BalakowiczTOPDIR		:= $(SRCTREE)
108f9328639SMarian BalakowiczLNDIR		:= $(OBJTREE)
109f9328639SMarian Balakowiczexport	TOPDIR SRCTREE OBJTREE
110f9328639SMarian Balakowicz
111f9328639SMarian BalakowiczMKCONFIG	:= $(SRCTREE)/mkconfig
112f9328639SMarian Balakowiczexport MKCONFIG
113f9328639SMarian Balakowicz
114f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
115f9328639SMarian BalakowiczREMOTE_BUILD	:= 1
116f9328639SMarian Balakowiczexport REMOTE_BUILD
117f9328639SMarian Balakowiczendif
118f9328639SMarian Balakowicz
119f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile
120f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for
121f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc.
122f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
123f9328639SMarian Balakowiczobj := $(OBJTREE)/
124f9328639SMarian Balakowiczsrc := $(SRCTREE)/
125f9328639SMarian Balakowiczelse
126f9328639SMarian Balakowiczobj :=
127f9328639SMarian Balakowiczsrc :=
128f9328639SMarian Balakowiczendif
129f9328639SMarian Balakowiczexport obj src
130f9328639SMarian Balakowicz
1315013c09fSWolfgang Denk# Make sure CDPATH settings don't interfere
1325013c09fSWolfgang Denkunexport CDPATH
1335013c09fSWolfgang Denk
134f9328639SMarian Balakowicz#########################################################################
135f9328639SMarian Balakowicz
136f8f9dc98SKumar Galaifeq ($(ARCH),powerpc)
137f8f9dc98SKumar GalaARCH = ppc
138f8f9dc98SKumar Galaendif
139f8f9dc98SKumar Gala
140ae6d1056SWolfgang Denkifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
141f9328639SMarian Balakowicz
1427ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
143ae6d1056SWolfgang Denkinclude $(obj)include/config.mk
1441d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
145f9328639SMarian Balakowicz
1467ebf7443Swdenkifndef CROSS_COMPILE
147a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH))
1487ebf7443SwdenkCROSS_COMPILE =
1497ebf7443Swdenkelse
1507ebf7443Swdenkifeq ($(ARCH),ppc)
15116c8d5e7SWolfgang DenkCROSS_COMPILE = ppc_8xx-
1527ebf7443Swdenkendif
1537ebf7443Swdenkifeq ($(ARCH),arm)
154dc7c9a1aSwdenkCROSS_COMPILE = arm-linux-
1557ebf7443Swdenkendif
1562262cfeeSwdenkifeq ($(ARCH),i386)
1577a8e9bedSwdenkCROSS_COMPILE = i386-linux-
1587a8e9bedSwdenkendif
15943d9616cSwdenkifeq ($(ARCH),mips)
16043d9616cSwdenkCROSS_COMPILE = mips_4KC-
16143d9616cSwdenkendif
1624a551709Swdenkifeq ($(ARCH),nios)
1634a551709SwdenkCROSS_COMPILE = nios-elf-
1644a551709Swdenkendif
1655c952cf0Swdenkifeq ($(ARCH),nios2)
1665c952cf0SwdenkCROSS_COMPILE = nios2-elf-
1675c952cf0Swdenkendif
1684e5ca3ebSwdenkifeq ($(ARCH),m68k)
1694e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
1704e5ca3ebSwdenkendif
171507bbe3eSwdenkifeq ($(ARCH),microblaze)
172507bbe3eSwdenkCROSS_COMPILE = mb-
173507bbe3eSwdenkendif
1740afe519aSWolfgang Denkifeq ($(ARCH),blackfin)
175ef26a08fSAubrey.LiCROSS_COMPILE = bfin-uclinux-
1760afe519aSWolfgang Denkendif
1777b64fef3SWolfgang Denkifeq ($(ARCH),avr32)
1785374b36dSHaavard SkinnemoenCROSS_COMPILE = avr32-linux-
1797b64fef3SWolfgang Denkendif
1800b135cfcSNobuhiro Iwamatsuifeq ($(ARCH),sh)
1810b135cfcSNobuhiro IwamatsuCROSS_COMPILE = sh4-linux-
182c2f02da2SDaniel Hellstromendif
183c2f02da2SDaniel Hellstromifeq ($(ARCH),sparc)
184c2f02da2SDaniel HellstromCROSS_COMPILE = sparc-elf-
185c2f02da2SDaniel Hellstromendif	# sparc
186ae6d1056SWolfgang Denkendif	# HOSTARCH,ARCH
187ae6d1056SWolfgang Denkendif	# CROSS_COMPILE
1887ebf7443Swdenk
1897ebf7443Swdenkexport	CROSS_COMPILE
1907ebf7443Swdenk
19192b197f0SWolfgang Denk# load other configuration
19292b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk
19392b197f0SWolfgang Denk
1947ebf7443Swdenk#########################################################################
1957ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
1967ebf7443Swdenk
1977ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
1982262cfeeSwdenkifeq ($(CPU),i386)
1992262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
20085ffbbd5SGraeme RussOBJS += cpu/$(CPU)/resetvec.o
2012262cfeeSwdenkendif
2027ebf7443Swdenkifeq ($(CPU),ppc4xx)
2037ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
2047ebf7443Swdenkendif
20542d1f039Swdenkifeq ($(CPU),mpc85xx)
20642d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
20742d1f039Swdenkendif
2087ebf7443Swdenk
209f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS))
210f9328639SMarian Balakowicz
2119fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
212fc9c1727SLuigi 'Comio' MantelliniLIBS += lib_generic/lzma/liblzma.a
213*b1b4e89aSStefan RoeseLIBS += lib_generic/lzo/liblzo.a
2147608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
2157608d75fSKim Phillips	"board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
2167ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
2171d9f4105Swdenkifdef SOC
2181d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
2191d9f4105Swdenkendif
220323bfa8fSStefan Roeseifeq ($(CPU),ixp)
221323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a
222323bfa8fSStefan Roeseendif
2237ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
224518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
22543ea36fbSWilliam Juul	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a
2267ebf7443SwdenkLIBS += net/libnet.a
2277ebf7443SwdenkLIBS += disk/libdisk.a
2280f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a
22933daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a
23057a12720STsiChungLiewLIBS += drivers/dma/libdma.a
231c8aa7dfcSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/fpga/libfpga.a
232e92739d3SPeter TyserLIBS += drivers/gpio/libgpio.a
233f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a
234080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a
23516b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a
236318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a
2375ce13051SHaavard SkinnemoenLIBS += drivers/mmc/libmmc.a
23859829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a
23959829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a
24059829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a
24159829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a
24258be3a10SKyungmin ParkLIBS += drivers/mtd/ubi/libubi.a
243d25ce7d2SHaavard SkinnemoenLIBS += drivers/mtd/spi/libspi_flash.a
2448e585f02STsiChung LiewLIBS += drivers/net/libnet.a
24555195773SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/phy/libphy.a
2462439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a
24793a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a
24873646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a
24904a9e118SBen WarrenLIBS += drivers/spi/libspi.a
2507737d5c6SDave Liuifeq ($(CPU),mpc83xx)
2517737d5c6SDave LiuLIBS += drivers/qe/qe.a
2527737d5c6SDave Liuendif
253da9d4610SAndy Flemingifeq ($(CPU),mpc85xx)
254da9d4610SAndy FlemingLIBS += drivers/qe/qe.a
25558e5e9afSKumar GalaLIBS += cpu/mpc8xxx/ddr/libddr.a
2565e981d68SEd SwarthoutTAG_SUBDIRS += cpu/mpc8xxx
25758e5e9afSKumar Galaendif
25858e5e9afSKumar Galaifeq ($(CPU),mpc86xx)
25958e5e9afSKumar GalaLIBS += cpu/mpc8xxx/ddr/libddr.a
2605e981d68SEd SwarthoutTAG_SUBDIRS += cpu/mpc8xxx
261da9d4610SAndy Flemingendif
26259829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a
2638e585f02STsiChung LiewLIBS += drivers/serial/libserial.a
26459829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a
26559829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a
2667ebf7443SwdenkLIBS += common/libcommon.a
2677651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a
268500856ebSRafal JaworowskiLIBS += api/libapi.a
2692d2b994aSYuri TikhonovLIBS += post/libpost.a
270f9328639SMarian Balakowicz
271f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS))
272561858eeSPeter Tyser.PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE)
273a8c7c708Swdenk
274de109d90SWolfgang DenkLIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
275de109d90SWolfgang DenkLIBBOARD := $(addprefix $(obj),$(LIBBOARD))
276de109d90SWolfgang Denk
2774f7cb08eSwdenk# Add GCC lib
2781a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
2793d3befa7Swdenk
280a8c7c708Swdenk# The "tools" are needed early, so put this first
281a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
282a8c7c708SwdenkSUBDIRS	= tools \
2830dc1fc22SRafal Jaworowski	  examples \
2840dc1fc22SRafal Jaworowski	  api_examples
285500856ebSRafal Jaworowski
286b028f715Swdenk.PHONY : $(SUBDIRS)
287a8c7c708Swdenk
288887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y)
289887e2ec9SStefan RoeseNAND_SPL = nand_spl
290887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin
291887e2ec9SStefan Roeseendif
292887e2ec9SStefan Roese
293751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y)
294751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl
295751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin
296751b9b51SKyungmin Parkendif
297751b9b51SKyungmin Park
298f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS))
299de109d90SWolfgang Denk__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
300f9328639SMarian Balakowicz
3017ebf7443Swdenk#########################################################################
302bdccc4feSwdenk#########################################################################
3037ebf7443Swdenk
304751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
30594a91e24SMike Frysingerifeq ($(ARCH),blackfin)
30694a91e24SMike FrysingerALL += $(obj)u-boot.ldr
30794a91e24SMike Frysingerendif
3087ebf7443Swdenk
309bdccc4feSwdenkall:		$(ALL)
3107ebf7443Swdenk
311f9328639SMarian Balakowicz$(obj)u-boot.hex:	$(obj)u-boot
3126310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
3136310eb9dSwdenk
314f9328639SMarian Balakowicz$(obj)u-boot.srec:	$(obj)u-boot
3150817d688SRicardo Ribalda Delgado		$(OBJCOPY) -O srec $< $@
3167ebf7443Swdenk
317f9328639SMarian Balakowicz$(obj)u-boot.bin:	$(obj)u-boot
3187ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
3197ebf7443Swdenk
32094a91e24SMike Frysinger$(obj)u-boot.ldr:	$(obj)u-boot
32168e56324SMike Frysinger		$(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS)
32294a91e24SMike Frysinger
32394a91e24SMike Frysinger$(obj)u-boot.ldr.hex:	$(obj)u-boot.ldr
32494a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
32594a91e24SMike Frysinger
32694a91e24SMike Frysinger$(obj)u-boot.ldr.srec:	$(obj)u-boot.ldr
32794a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
32894a91e24SMike Frysinger
329f9328639SMarian Balakowicz$(obj)u-boot.img:	$(obj)u-boot.bin
330bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
331bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
332881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
333bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
334bdccc4feSwdenk		-d $< $@
335bdccc4feSwdenk
336566a494fSHeiko Schocher$(obj)u-boot.sha1:	$(obj)u-boot.bin
33701159530SHeiko Schocher		$(obj)tools/ubsha1 $(obj)u-boot.bin
338566a494fSHeiko Schocher
339f9328639SMarian Balakowicz$(obj)u-boot.dis:	$(obj)u-boot
3407ebf7443Swdenk		$(OBJDUMP) -d $< > $@
3417ebf7443Swdenk
342de109d90SWolfgang Denk$(obj)u-boot:		depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
343de109d90SWolfgang Denk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
344de109d90SWolfgang Denk		sed  -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
345f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
346f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
347b2184c31Swdenk			-Map u-boot.map -o u-boot
3487ebf7443Swdenk
34988f72527SJohannes Stezenbach$(OBJS):	depend $(obj)include/autoconf.mk
350f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
351f9328639SMarian Balakowicz
3529ffd53dbSJean-Christophe PLAGNIOL-VILLARD$(LIBS):	depend $(obj)include/autoconf.mk $(SUBDIRS)
353f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
354a8c7c708Swdenk
355de109d90SWolfgang Denk$(LIBBOARD):	depend $(LIBS) $(obj)include/autoconf.mk
356de109d90SWolfgang Denk		$(MAKE) -C $(dir $(subst $(obj),,$@))
357de109d90SWolfgang Denk
35888f72527SJohannes Stezenbach$(SUBDIRS):	depend $(obj)include/autoconf.mk
359b028f715Swdenk		$(MAKE) -C $@ all
3607ebf7443Swdenk
361f65c9812SMike Frysinger$(LDSCRIPT):	depend $(obj)include/autoconf.mk
362f65c9812SMike Frysinger		$(MAKE) -C $(dir $@) $(notdir $@)
363f65c9812SMike Frysinger
364561858eeSPeter Tyser$(NAND_SPL):	$(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
3658318fbf8SMarian Balakowicz		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
366887e2ec9SStefan Roese
367dd531aacSWolfgang Denk$(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
3688318fbf8SMarian Balakowicz		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
369887e2ec9SStefan Roese
370561858eeSPeter Tyser$(ONENAND_IPL):	$(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
371f2302d44SStefan Roese		$(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
372751b9b51SKyungmin Park
373751b9b51SKyungmin Park$(U_BOOT_ONENAND):	$(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
374751b9b51SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
3751bb707c3SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
376751b9b51SKyungmin Park
377ae6d1056SWolfgang Denk$(VERSION_FILE):
378aa737945SMike Frysinger		@( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
379434c51a5SPeter Tyser		 '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp
3800ec7a061SMike Frysinger		@cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
381881a87ecSWolfgang Denk
382561858eeSPeter Tyser$(TIMESTAMP_FILE):
383561858eeSPeter Tyser		@date +'#define U_BOOT_DATE "%b %d %C%y"' > $@
384561858eeSPeter Tyser		@date +'#define U_BOOT_TIME "%T"' >> $@
385561858eeSPeter Tyser
3868f713fdfSdzugdbtools:
387f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
388f9328639SMarian Balakowicz
389f9328639SMarian Balakowiczupdater:
390f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
391f9328639SMarian Balakowicz
392f9328639SMarian Balakowiczenv:
39364b3727bSMarkus Klotzbücher		$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
3948f713fdfSdzu
395561858eeSPeter Tyserdepend dep:	$(TIMESTAMP_FILE) $(VERSION_FILE)
396f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
3977ebf7443Swdenk
398a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include
399a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR)
400a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU)
401a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH)
402a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs
403a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat
404a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos
405a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2
40643ea36fbSWilliam JuulTAG_SUBDIRS += fs/yaffs2
407a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net
408a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk
409a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common
410a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator
411a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block
412e92739d3SPeter TyserTAG_SUBDIRS += drivers/gpio
413a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon
414a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c
415a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input
416a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc
4175ce13051SHaavard SkinnemoenTAG_SUBDIRS += drivers/mmc
418a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd
419a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand
420a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy
421a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand
422d25ce7d2SHaavard SkinnemoenTAG_SUBDIRS += drivers/mtd/spi
423a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net
424a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin
425a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci
426a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia
427a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe
428a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc
429a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial
43004a9e118SBen WarrenTAG_SUBDIRS += drivers/spi
431a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb
432a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video
433a340c325SJean-Christophe PLAGNIOL-VILLARD
434f9328639SMarian Balakowicztags ctags:
435ae6d1056SWolfgang Denk		ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
43688fed9a1SWolfgang Denk						-name '*.[ch]' -print`
4377ebf7443Swdenk
4387ebf7443Swdenketags:
439ae6d1056SWolfgang Denk		etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
44088fed9a1SWolfgang Denk						-name '*.[ch]' -print`
441ffda586fSLi Yangcscope:
442ffda586fSLi Yang		find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
443ffda586fSLi Yang						> cscope.files
444ffda586fSLi Yang		cscope -b -q -k
4457ebf7443Swdenk
446f9328639SMarian Balakowicz$(obj)System.map:	$(obj)u-boot
4477ebf7443Swdenk		@$(NM) $< | \
4487ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
449f9328639SMarian Balakowicz		sort > $(obj)System.map
4507ebf7443Swdenk
4512f155f6cSGrant Likely#
4522f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles)
4532f155f6cSGrant Likely#
4542f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
4552f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when
4562f155f6cSGrant Likely# to regenerate the autoconf.mk file.
4571510b82dSWolfgang Denk$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
4581510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
45916fe7775SMike Frysinger	set -e ; \
460ae6d1056SWolfgang Denk	: Generate the dependancies ; \
4611510b82dSWolfgang Denk	$(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
4621510b82dSWolfgang Denk		-MQ $(obj)include/autoconf.mk include/common.h > $@
4631510b82dSWolfgang Denk
4641510b82dSWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h
4651510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
4661510b82dSWolfgang Denk	set -e ; \
467ae6d1056SWolfgang Denk	: Extract the config macros ; \
4681510b82dSWolfgang Denk	$(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
4694a0f7538SWolfgang Denk		sed -n -f tools/scripts/define2mk.sed > $@.tmp && \
4704a0f7538SWolfgang Denk	mv $@.tmp $@
4712f155f6cSGrant Likely
472ae6d1056SWolfgang Denksinclude $(obj)include/autoconf.mk.dep
4732f155f6cSGrant Likely
4747ebf7443Swdenk#########################################################################
475ae6d1056SWolfgang Denkelse	# !config.mk
476f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
477f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
478561858eeSPeter Tyser$(SUBDIRS) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools updater env depend \
479ffda586fSLi Yangdep tags ctags etags cscope $(obj)System.map:
4807ebf7443Swdenk	@echo "System not configured - see README" >&2
4817ebf7443Swdenk	@ exit 1
482ae6d1056SWolfgang Denkendif	# config.mk
4837ebf7443Swdenk
4844e53a258SWolfgang Denk.PHONY : CHANGELOG
4854e53a258SWolfgang DenkCHANGELOG:
486b985b5d6SBen Warren	git log --no-merges U-Boot-1_1_5.. | \
487b985b5d6SBen Warren	unexpand -a | sed -e 's/\s\s*$$//' > $@
4884e53a258SWolfgang Denk
4890a823aa2SHarald Welteinclude/license.h: tools/bin2header COPYING
4900a823aa2SHarald Welte	 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
4917ebf7443Swdenk#########################################################################
4927ebf7443Swdenk
4937ebf7443Swdenkunconfig:
494887e2ec9SStefan Roese	@rm -f $(obj)include/config.h $(obj)include/config.mk \
4952f155f6cSGrant Likely		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
4962f155f6cSGrant Likely		$(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
4977ebf7443Swdenk
4987ebf7443Swdenk#========================================================================
4997ebf7443Swdenk# PowerPC
5007ebf7443Swdenk#========================================================================
5010db5bca8Swdenk
5020db5bca8Swdenk#########################################################################
5030db5bca8Swdenk## MPC5xx Systems
5040db5bca8Swdenk#########################################################################
5050db5bca8Swdenk
5065e5f9ed2Swdenkcanmb_config:	unconfig
507f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
5085e5f9ed2Swdenk
5090db5bca8Swdenkcmi_mpc5xx_config:	unconfig
510f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
5110db5bca8Swdenk
512b6e4c403SwdenkPATI_config:		unconfig
513f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
514b6e4c403Swdenk
5157ebf7443Swdenk#########################################################################
516945af8d7Swdenk## MPC5xxx Systems
517945af8d7Swdenk#########################################################################
518a87589daSwdenk
519dafba16eSWolfgang Denkaev_config: unconfig
5204677988cSWolfgang Grandegger	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
521dafba16eSWolfgang Denk
5226ca24c64Sdzu@denx.deBC3450_config:	unconfig
523f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
5246ca24c64Sdzu@denx.de
525699f0512SWolfgang Denkcm5200_config:	unconfig
526699f0512SWolfgang Denk	@$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
527699f0512SWolfgang Denk
5285e4b3361SStefan Roesecpci5200_config:  unconfig
529f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
5305e4b3361SStefan Roese
5315c4fa9b4SGrzegorz Bernackidigsy_mtc_config \
5325c4fa9b4SGrzegorz Bernackidigsy_mtc_LOWBOOT_config	\
5335c4fa9b4SGrzegorz Bernackidigsy_mtc_RAMBOOT_config:	unconfig
5345c4fa9b4SGrzegorz Bernacki	@mkdir -p $(obj)include
5355c4fa9b4SGrzegorz Bernacki	@mkdir -p $(obj)board/digsy_mtc
5365c4fa9b4SGrzegorz Bernacki	@ >$(obj)include/config.h
5375c4fa9b4SGrzegorz Bernacki	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
5385c4fa9b4SGrzegorz Bernacki		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/digsy_mtc/config.tmp ; \
5395c4fa9b4SGrzegorz Bernacki		  echo "... with LOWBOOT configuration" ; \
5405c4fa9b4SGrzegorz Bernacki		}
5415c4fa9b4SGrzegorz Bernacki	@[ -z "$(findstring RAMBOOT_,$@)" ] || \
5425c4fa9b4SGrzegorz Bernacki		{ echo "TEXT_BASE = 0x00100000" >$(obj)board/digsy_mtc/config.tmp ; \
5435c4fa9b4SGrzegorz Bernacki		  echo "... with RAMBOOT configuration" ; \
5445c4fa9b4SGrzegorz Bernacki		}
5455c4fa9b4SGrzegorz Bernacki	@$(MKCONFIG) -a digsy_mtc  ppc mpc5xxx digsy_mtc
5465c4fa9b4SGrzegorz Bernacki
547a87589daSwdenkhmi1001_config:	unconfig
548f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
549a87589daSwdenk
550e35745bbSwdenkLite5200_config				\
551e35745bbSwdenkLite5200_LOWBOOT_config			\
552e35745bbSwdenkLite5200_LOWBOOT08_config		\
553e35745bbSwdenkicecube_5200_config			\
554e35745bbSwdenkicecube_5200_LOWBOOT_config		\
555e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
556b2001f27Swdenkicecube_5200_DDR_config			\
55779d696fcSwdenkicecube_5200_DDR_LOWBOOT_config		\
55879d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
559e35745bbSwdenkicecube_5100_config:			unconfig
560f9328639SMarian Balakowicz	@mkdir -p $(obj)include
561f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
56217d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
56317d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
564f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
565f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
56617d704ebSwdenk		  fi ; \
567ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5685cf9da48Swdenk		}
5695cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
570f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
5715cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
572ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5735cf9da48Swdenk		}
574b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
575f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
576ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
577b2001f27Swdenk		}
578d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
579f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
580ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
581d4ca31c4Swdenk		}
582a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
583f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
584ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
585945af8d7Swdenk		}
586f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
587945af8d7Swdenk
5882605e90bSHeiko Schocherjupiter_config:	unconfig
5892605e90bSHeiko Schocher	@$(MKCONFIG) jupiter ppc mpc5xxx jupiter
5902605e90bSHeiko Schocher
591138ff60cSwdenkinka4x0_config:	unconfig
592f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
593138ff60cSwdenk
59409e4b0c5SWolfgang Denklite5200b_config	\
595d3832e8fSDomen Puncerlite5200b_PM_config	\
59609e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
597f9328639SMarian Balakowicz	@mkdir -p $(obj)include
598f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
599f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
600ae6d1056SWolfgang Denk	@ $(XECHO) "... DDR memory revision"
601f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
602f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
603d3832e8fSDomen Puncer	@[ -z "$(findstring _PM_,$@)" ] || \
604d3832e8fSDomen Puncer		{ echo "#define CONFIG_LITE5200B_PM"	>>$(obj)include/config.h ; \
605ae6d1056SWolfgang Denk		  $(XECHO) "... with power management (low-power mode) support" ; \
606d3832e8fSDomen Puncer		}
60709e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
608f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
609ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
61009e4b0c5SWolfgang Denk		}
611ae6d1056SWolfgang Denk	@ $(XECHO) "... with MPC5200B processor"
612f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
61309e4b0c5SWolfgang Denk
614f1ee9825SStefan Roesemcc200_config	\
615ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
616ed1cf845SWolfgang Denkmcc200_highboot_config	\
617ed1cf845SWolfgang Denkmcc200_COM12_config	\
618ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
619113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
620113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
621ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
622ed1cf845SWolfgang Denkprs200_config	\
623ed1cf845SWolfgang Denkprs200_DDR_config	\
624ed1cf845SWolfgang Denkprs200_highboot_config	\
625ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
626f9328639SMarian Balakowicz	@mkdir -p $(obj)include
627f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
6284819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
629ae6d1056SWolfgang Denk		{ $(XECHO) "... with lowboot configuration" ; \
630f1ee9825SStefan Roese		}
6314819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
632f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
633ae6d1056SWolfgang Denk		  $(XECHO) "... with highboot configuration" ; \
6344819fad9SWolfgang Denk		}
6354819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
636ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
637ed1cf845SWolfgang Denk		  then \
638ae6d1056SWolfgang Denk			$(XECHO) "... with DDR" ; \
639ed1cf845SWolfgang Denk		  else \
640ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
641ed1cf845SWolfgang Denk			then \
642ae6d1056SWolfgang Denk				$(XECHO) "... with DDR" ; \
643ed1cf845SWolfgang Denk			else \
644f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
645ae6d1056SWolfgang Denk				$(XECHO) "... with SDRAM" ; \
646ed1cf845SWolfgang Denk			fi; \
647ed1cf845SWolfgang Denk		  fi; \
6484819fad9SWolfgang Denk		}
6494819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
650f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
651ae6d1056SWolfgang Denk		  $(XECHO) "... with SDRAM" ; \
6524819fad9SWolfgang Denk		}
653463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
654f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
655ae6d1056SWolfgang Denk		  $(XECHO) "... with console on COM12" ; \
656463764c8SWolfgang Denk		}
657ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
658f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"	>>$(obj)include/config.h ;\
659ed1cf845SWolfgang Denk		}
660f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
66186ea5f93SWolfgang Denk
6628b7d1f0aSStefan Roesemecp5200_config:  unconfig
663ae6d1056SWolfgang Denk	@$(MKCONFIG) mecp5200  ppc mpc5xxx mecp5200 esd
6648b7d1f0aSStefan Roese
665699f0512SWolfgang Denkmotionpro_config:	unconfig
666699f0512SWolfgang Denk	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
667699f0512SWolfgang Denk
668258c37b1SHeiko Schochermucmc52_config:		unconfig
669258c37b1SHeiko Schocher	@$(MKCONFIG) mucmc52 ppc mpc5xxx mucmc52
670258c37b1SHeiko Schocher
6716341d9d7SHeiko Schochermunices_config:	unconfig
672ae6d1056SWolfgang Denk	@$(MKCONFIG) munices ppc mpc5xxx munices
6736341d9d7SHeiko Schocher
674699f0512SWolfgang DenkMVBC_P_config: unconfig
675699f0512SWolfgang Denk	@mkdir -p $(obj)include
676699f0512SWolfgang Denk	@mkdir -p $(obj)board/mvbc_p
677699f0512SWolfgang Denk	@ >$(obj)include/config.h
678699f0512SWolfgang Denk	@[ -z "$(findstring MVBC_P,$@)" ] || \
679699f0512SWolfgang Denk	{   	echo "#define CONFIG_MVBC_P" 	>>$(obj)include/config.h; }
680699f0512SWolfgang Denk	@$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
681699f0512SWolfgang Denk
68291c82076SJean-Christophe PLAGNIOL-VILLARDo2dnt_config:	unconfig
683f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
684df04a3dfSWolfgang Denk
6855e4b3361SStefan Roesepf5200_config:	unconfig
686f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
6875e4b3361SStefan Roese
68889394047SwdenkPM520_config \
68989394047SwdenkPM520_DDR_config \
69089394047SwdenkPM520_ROMBOOT_config \
69189394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
692f9328639SMarian Balakowicz	@mkdir -p $(obj)include
69389394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
694f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
695ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
69689394047Swdenk		}
69789394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
698f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
699ae6d1056SWolfgang Denk		  $(XECHO) "... booting from 8-bit flash" ; \
70089394047Swdenk		}
701f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
70289394047Swdenk
7036624b687SWolfgang Denksmmaco4_config: unconfig
7044677988cSWolfgang Grandegger	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
7059cdc8386SWolfgang Denk
7069cdc8386SWolfgang Denkspieval_config:	unconfig
7074677988cSWolfgang Grandegger	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
7089cdc8386SWolfgang Denk
70945a212c4SWolfgang DenkTB5200_B_config \
710b87dfd28SWolfgang DenkTB5200_config:	unconfig
711f9328639SMarian Balakowicz	@mkdir -p $(obj)include
71245a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
713f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
714ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200B processor" ; \
71545a212c4SWolfgang Denk		}
7164677988cSWolfgang Grandegger	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
717b87dfd28SWolfgang Denk
718d4ca31c4SwdenkMINI5200_config	\
719d4ca31c4SwdenkEVAL5200_config	\
720d4ca31c4SwdenkTOP5200_config:	unconfig
721f9328639SMarian Balakowicz	@mkdir -p $(obj)include
722f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
723f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
724d4ca31c4Swdenk
7256c7a1408SwdenkTotal5100_config		\
7266c7a1408SwdenkTotal5200_config		\
7276c7a1408SwdenkTotal5200_lowboot_config	\
7286c7a1408SwdenkTotal5200_Rev2_config		\
7296c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
730f9328639SMarian Balakowicz	@mkdir -p $(obj)include
731f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
7326c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
733f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
734ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
7356c7a1408Swdenk		}
7366c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
737f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
738ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
7396c7a1408Swdenk		}
7406c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
741f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
742ae6d1056SWolfgang Denk		  $(XECHO) "... revision 1 board" ; \
7436c7a1408Swdenk		}
7446c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
745f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
746ae6d1056SWolfgang Denk		  $(XECHO) "... revision 2 board" ; \
7476c7a1408Swdenk		}
7486c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
749f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
750ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
7516c7a1408Swdenk		}
752f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
7536c7a1408Swdenk
7545196a7a0SWolfgang Denkcam5200_config \
755d9384de2SMarian Balakowiczcam5200_niosflash_config \
7565196a7a0SWolfgang Denkfo300_config \
7575196a7a0SWolfgang DenkMiniFAP_config \
7585078cce8SWolfgang DenkTQM5200S_config \
7595078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
7605196a7a0SWolfgang DenkTQM5200_B_config \
7615196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
7625196a7a0SWolfgang DenkTQM5200_config	\
7635196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
764f9328639SMarian Balakowicz	@mkdir -p $(obj)include
7654677988cSWolfgang Grandegger	@mkdir -p $(obj)board/tqc/tqm5200
766135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
767f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
768f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
769f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
770ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200S on Cam5200" ; \
7715078cce8SWolfgang Denk		}
772d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
773d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
774ae6d1056SWolfgang Denk		  $(XECHO) "... with NIOS flash driver" ; \
775d9384de2SMarian Balakowicz		}
7766d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
777f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
778ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200 on FO300" ; \
7796d3bc9b8SMarian Balakowicz		}
780cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
781f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
782ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200_AC on MiniFAP" ; \
783978b1096SWolfgang Denk		}
784cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
785f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
786ae6d1056SWolfgang Denk		  $(XECHO) "... on a STK52XX.100 base board" ; \
78756523f12Swdenk		}
7885078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
789f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
7905078cce8SWolfgang Denk		}
7915078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
792f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
793f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
79445a212c4SWolfgang Denk		}
795978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
796f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
797978b1096SWolfgang Denk		}
7984677988cSWolfgang Grandegger	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
799699f0512SWolfgang Denk
8006dedf3d4SHeiko Schocheruc101_config:		unconfig
8016dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
80253d4a498SBartlomiej Sieka
803699f0512SWolfgang Denkv38b_config: unconfig
804699f0512SWolfgang Denk	@$(MKCONFIG) -a v38b ppc mpc5xxx v38b
80556523f12Swdenk
806945af8d7Swdenk#########################################################################
8078993e54bSRafal Jaworowski## MPC512x Systems
8088993e54bSRafal Jaworowski#########################################################################
809699f0512SWolfgang Denk
8105f91db7fSJohn Rigbyads5121_config \
811f31c49dbSMartha Marxads5121_rev2_config	\
8125f91db7fSJohn Rigby	: unconfig
813210ed200SWolfgang Denk	@mkdir -p $(obj)include
814f31c49dbSMartha Marx	@if [ "$(findstring rev2,$@)" ] ; then \
815f31c49dbSMartha Marx		echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
8165f91db7fSJohn Rigby	fi
8175f91db7fSJohn Rigby	@$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
8188993e54bSRafal Jaworowski
8198993e54bSRafal Jaworowski
8208993e54bSRafal Jaworowski#########################################################################
8217ebf7443Swdenk## MPC8xx Systems
8227ebf7443Swdenk#########################################################################
8237ebf7443Swdenk
8242d24a3a7SwdenkAdder_config	\
8252d24a3a7SwdenkAdder87x_config \
82626238132SwdenkAdderII_config	\
8272d24a3a7Swdenk	:		unconfig
828f9328639SMarian Balakowicz	@mkdir -p $(obj)include
82926238132Swdenk	$(if $(findstring AdderII,$@), \
830f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
831f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
8322d24a3a7Swdenk
83316c8d5e7SWolfgang DenkAdderUSB_config:	unconfig
83491c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
83516c8d5e7SWolfgang Denk
836180d3f74SwdenkADS860_config	  \
837180d3f74SwdenkFADS823_config	  \
838180d3f74SwdenkFADS850SAR_config \
839180d3f74SwdenkMPC86xADS_config  \
8401114257cSwdenkMPC885ADS_config  \
841180d3f74SwdenkFADS860T_config:	unconfig
842f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
8437ebf7443Swdenk
8447ebf7443SwdenkAMX860_config	:	unconfig
845f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
8467ebf7443Swdenk
8477ebf7443Swdenkc2mon_config:		unconfig
848f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
8497ebf7443Swdenk
8507ebf7443SwdenkCCM_config:		unconfig
851f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
8527ebf7443Swdenk
8537ebf7443Swdenkcogent_mpc8xx_config:	unconfig
854f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
8557ebf7443Swdenk
8563bac3513SwdenkELPT860_config:		unconfig
857f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
8583bac3513Swdenk
85984c960ceSWolfgang DenkEP88x_config:		unconfig
860f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
86184c960ceSWolfgang Denk
8627ebf7443SwdenkESTEEM192E_config:	unconfig
863f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
8647ebf7443Swdenk
8657ebf7443SwdenkETX094_config	:	unconfig
866f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
8677ebf7443Swdenk
8687ebf7443SwdenkFLAGADM_config:	unconfig
869f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
8707ebf7443Swdenk
8717aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
8727aa78614Swdenk
8737aa78614SwdenkGEN860T_SC_config	\
8747ebf7443SwdenkGEN860T_config: unconfig
875f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8767aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
877f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
878ae6d1056SWolfgang Denk		  $(XECHO) "With reduced H/W feature set (SC)..." ; \
8797aa78614Swdenk		}
880f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
8817ebf7443Swdenk
8827ebf7443SwdenkGENIETV_config:	unconfig
883f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
8847ebf7443Swdenk
8857ebf7443SwdenkGTH_config:	unconfig
886f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
8877ebf7443Swdenk
8887ebf7443Swdenkhermes_config	:	unconfig
889f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
8907ebf7443Swdenk
891c40b2956SwdenkHMI10_config	:	unconfig
8924677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
893c40b2956Swdenk
8947ebf7443SwdenkIAD210_config: unconfig
895f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
8967ebf7443Swdenk
8977ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
8987ebf7443Swdenk
8997ebf7443SwdenkICU862_100MHz_config	\
9007ebf7443SwdenkICU862_config: unconfig
901f9328639SMarian Balakowicz	@mkdir -p $(obj)include
9027ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
903f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
904ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
9057ebf7443Swdenk		}
906f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
9077ebf7443Swdenk
9087ebf7443SwdenkIP860_config	:	unconfig
909f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
9107ebf7443Swdenk
9117ebf7443SwdenkIVML24_256_config \
9127ebf7443SwdenkIVML24_128_config \
9137ebf7443SwdenkIVML24_config:	unconfig
914f9328639SMarian Balakowicz	@mkdir -p $(obj)include
9157ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
916f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
9177ebf7443Swdenk		 }
9187ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
919f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
9207ebf7443Swdenk		 }
9217ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
922f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
9237ebf7443Swdenk		 }
924f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
9257ebf7443Swdenk
9267ebf7443SwdenkIVMS8_256_config \
9277ebf7443SwdenkIVMS8_128_config \
9287ebf7443SwdenkIVMS8_config:	unconfig
929f9328639SMarian Balakowicz	@mkdir -p $(obj)include
9307ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
931f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
9327ebf7443Swdenk		 }
9337ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
934f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
9357ebf7443Swdenk		 }
9367ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
937f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
9387ebf7443Swdenk		 }
939f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
9407ebf7443Swdenk
9411b6275dfSHeiko Schocherkmsupx4_config:		unconfig
9421b6275dfSHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx km8xx keymile
9431b6275dfSHeiko Schocher
94456f94be3SwdenkKUP4K_config	:	unconfig
945f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
9460608e04dSwdenk
9470608e04dSwdenkKUP4X_config	:	unconfig
948f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
94956f94be3Swdenk
9507ebf7443SwdenkLANTEC_config	:	unconfig
951f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
9527ebf7443Swdenk
9537ebf7443Swdenklwmon_config:		unconfig
954f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
9557ebf7443Swdenk
9567ebf7443SwdenkMBX_config	\
9577ebf7443SwdenkMBX860T_config:	unconfig
958f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
9597ebf7443Swdenk
960381e4e63SHeiko Schochermgsuvd_config:		unconfig
961d044954fSHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx km8xx keymile
962381e4e63SHeiko Schocher
9637ebf7443SwdenkMHPC_config:		unconfig
964f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
9657ebf7443Swdenk
966993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
967993cad93Swdenk
968993cad93SwdenkNETVIA_V2_config \
9697ebf7443SwdenkNETVIA_config:		unconfig
970f9328639SMarian Balakowicz	@mkdir -p $(obj)include
971993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
972f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
973ae6d1056SWolfgang Denk		  $(XECHO) "... Version 1" ; \
974993cad93Swdenk		 }
975993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
976f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
977ae6d1056SWolfgang Denk		  $(XECHO) "... Version 2" ; \
978993cad93Swdenk		 }
979f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
9807ebf7443Swdenk
981c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
982c26e454dSwdenk
983c26e454dSwdenkNETPHONE_V2_config \
98404a85b3bSwdenkNETPHONE_config:	unconfig
985f9328639SMarian Balakowicz	@mkdir -p $(obj)include
986c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
987f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
988c26e454dSwdenk		 }
989c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
990f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
991c26e454dSwdenk		 }
992f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
99304a85b3bSwdenk
99479fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
99504a85b3bSwdenk
99679fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
99779fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
99879fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
99979fa88f3SwdenkNETTA_SWAPHOOK_config \
100079fa88f3SwdenkNETTA_ISDN_6412_config \
100104a85b3bSwdenkNETTA_ISDN_config \
100279fa88f3SwdenkNETTA_6412_config \
100304a85b3bSwdenkNETTA_config:		unconfig
1004f9328639SMarian Balakowicz	@mkdir -p $(obj)include
100579fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
1006f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
100704a85b3bSwdenk		 }
100879fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
1009f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
101079fa88f3Swdenk		 }
101179fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
1012f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
101379fa88f3Swdenk		 }
101479fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
1015f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
101679fa88f3Swdenk		 }
101779fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
1018f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
101979fa88f3Swdenk		 }
102079fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
1021f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
102279fa88f3Swdenk		 }
1023f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
102404a85b3bSwdenk
102579fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
102679fa88f3Swdenk
102779fa88f3SwdenkNETTA2_V2_config \
102879fa88f3SwdenkNETTA2_config:		unconfig
1029f9328639SMarian Balakowicz	@mkdir -p $(obj)include
103079fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
1031f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
103279fa88f3Swdenk		 }
103379fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
1034f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
103579fa88f3Swdenk		 }
1036f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
103779fa88f3Swdenk
1038a367d426Sdzu@denx.deNC650_Rev1_config \
1039a367d426Sdzu@denx.deNC650_Rev2_config \
1040a367d426Sdzu@denx.deCP850_config:	unconfig
1041f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1042a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
1043f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
1044f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1045a367d426Sdzu@denx.de		 }
1046a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
1047f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1048a367d426Sdzu@denx.de		 }
1049a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
1050f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1051a367d426Sdzu@denx.de		 }
1052f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
10537ca202f5Swdenk
10547ebf7443SwdenkNX823_config:		unconfig
1055f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
10567ebf7443Swdenk
10577ebf7443Swdenkpcu_e_config:		unconfig
1058f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
10597ebf7443Swdenk
10603bbc899fSwdenkQS850_config:	unconfig
1061f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10623bbc899fSwdenk
10633bbc899fSwdenkQS823_config:	unconfig
1064f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10653bbc899fSwdenk
10663bbc899fSwdenkQS860T_config:	unconfig
1067f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
10683bbc899fSwdenk
1069da93ed81Swdenkquantum_config:	unconfig
1070f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1071da93ed81Swdenk
10727ebf7443SwdenkR360MPI_config:	unconfig
1073f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
10747ebf7443Swdenk
1075682011ffSwdenkRBC823_config:	unconfig
1076f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1077682011ffSwdenk
10787ebf7443SwdenkRPXClassic_config:	unconfig
1079f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
10807ebf7443Swdenk
10817ebf7443SwdenkRPXlite_config:		unconfig
1082f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
10837ebf7443Swdenk
1084e63c8ee3SwdenkRPXlite_DW_64_config		\
1085e63c8ee3SwdenkRPXlite_DW_LCD_config		\
1086e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
1087e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
1088e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config	\
1089e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
1090e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config	\
1091e63c8ee3SwdenkRPXlite_DW_config:	unconfig
1092f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1093e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
1094f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
1095ae6d1056SWolfgang Denk		  $(XECHO) "... with 64MHz system clock ..."; \
1096e63c8ee3Swdenk		}
1097e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1098f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1099f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1100ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display ..."; \
1101e63c8ee3Swdenk		}
1102e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
11039314cee6SJean-Christophe PLAGNIOL-VILLARD		{ echo "#define  CONFIG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
1104ae6d1056SWolfgang Denk		  $(XECHO) "... with ENV in NVRAM ..."; \
1105e63c8ee3Swdenk		}
1106f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1107e63c8ee3Swdenk
110873a8b27cSwdenkrmu_config:	unconfig
1109f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
111073a8b27cSwdenk
11117ebf7443SwdenkRRvision_config:	unconfig
1112f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
11137ebf7443Swdenk
11147ebf7443SwdenkRRvision_LCD_config:	unconfig
1115f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1116f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1117f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1118f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
11197ebf7443Swdenk
11207ebf7443SwdenkSM850_config	:	unconfig
11214677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
11227ebf7443Swdenk
112391c82076SJean-Christophe PLAGNIOL-VILLARDspc1920_config:		unconfig
1124f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1125b02d0177SMarkus Klotzbuecher
11267ebf7443SwdenkSPD823TS_config:	unconfig
1127f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
11287ebf7443Swdenk
11296bdf4306SWolfgang Denkstxxtc_config:	unconfig
1130f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
11316bdf4306SWolfgang Denk
1132dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
1133f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1134dc7c9a1aSwdenk
11357ebf7443SwdenkSXNI855T_config:	unconfig
1136f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
11377ebf7443Swdenk
1138db2f721fSwdenk# EMK MPC8xx based modules
1139db2f721fSwdenkTOP860_config:		unconfig
1140f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1141db2f721fSwdenk
11427ebf7443Swdenk# Play some tricks for configuration selection
1143e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
1144e9132ea9Swdenk# and only 823 boards may have LCD support
1145e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
11467ebf7443Swdenk
11477ebf7443SwdenkFPS850L_config		\
1148384ae025SwdenkFPS860L_config		\
1149f12e568cSwdenkNSCU_config		\
11507ebf7443SwdenkTQM823L_config		\
11517ebf7443SwdenkTQM823L_LCD_config	\
11527ebf7443SwdenkTQM850L_config		\
11537ebf7443SwdenkTQM855L_config		\
11547ebf7443SwdenkTQM860L_config		\
1155d126bfbdSwdenkTQM862L_config		\
1156ae3af05eSwdenkTQM823M_config		\
1157ae3af05eSwdenkTQM850M_config		\
1158f12e568cSwdenkTQM855M_config		\
1159f12e568cSwdenkTQM860M_config		\
1160f12e568cSwdenkTQM862M_config		\
11618cba090cSWolfgang DenkTQM866M_config		\
1162090eb735SMarkus KlotzbuecherTQM885D_config		\
1163efc6f447SGuennadi LiakhovetskiTK885D_config		\
11648cba090cSWolfgang Denkvirtlab2_config:	unconfig
1165f9328639SMarian Balakowicz	@mkdir -p $(obj)include
11667ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1167f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1168f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1169ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display" ; \
11707ebf7443Swdenk		}
11714677988cSWolfgang Grandegger	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
11727ebf7443Swdenk
11737ebf7443SwdenkTTTech_config:	unconfig
1174f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1175f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1176f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
11774677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
11787ebf7443Swdenk
1179ec0aee7bSwdenkuc100_config	:	unconfig
1180f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1181f7d1572bSwdenk
1182608c9146Swdenkv37_config:	unconfig
1183f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1184f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1185f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1186f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1187608c9146Swdenk
118891e940d9Sdzuwtk_config:	unconfig
1189f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1190f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1191f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
11924677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
119391e940d9Sdzu
11947ebf7443Swdenk#########################################################################
11957ebf7443Swdenk## PPC4xx Systems
11967ebf7443Swdenk#########################################################################
1197e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
11987ebf7443Swdenk
119916c0cc1cSStefan Roeseacadia_config:	unconfig
120016c0cc1cSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
120116c0cc1cSStefan Roese
1202c440bfe6SStefan Roeseacadia_nand_config:	unconfig
120363e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/acadia
120463e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/acadia
1205c440bfe6SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1206c440bfe6SStefan Roese	@$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1207c440bfe6SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1208c440bfe6SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1209c440bfe6SStefan Roese
12107ebf7443SwdenkADCIOP_config:	unconfig
1211f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
12127ebf7443Swdenk
1213899620c2SStefan Roesealpr_config:	unconfig
121435d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1215899620c2SStefan Roese
12167521af1cSWolfgang DenkAP1000_config:unconfig
1217f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
12187521af1cSWolfgang Denk
1219c419d1d6SstroeseAPC405_config:	unconfig
1220f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1221c419d1d6Sstroese
12227ebf7443SwdenkAR405_config:	unconfig
1223f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
12247ebf7443Swdenk
1225549826eaSstroeseASH405_config:	unconfig
1226f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1227549826eaSstroese
12288a316c9bSStefan Roesebamboo_config:	unconfig
1229f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
12308a316c9bSStefan Roese
1231cf959c7dSStefan Roesebamboo_nand_config:	unconfig
123263e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/bamboo
123363e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/bamboo
1234cf959c7dSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1235f3679aa1SStefan Roese	@$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1236cf959c7dSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1237cf959c7dSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1238cf959c7dSStefan Roese
12398a316c9bSStefan Roesebubinga_config:	unconfig
1240f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1241549826eaSstroese
12427ebf7443SwdenkCANBT_config:	unconfig
1243f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
12447ebf7443Swdenk
1245f09f09d3SAdam Graham# Arches, Canyonlands & Glacier use different U-Boot images
1246f09f09d3SAdam Grahamarches_config \
12474c9e8557SStefan Roesecanyonlands_config \
12484c9e8557SStefan Roeseglacier_config:	unconfig
12494c9e8557SStefan Roese	@mkdir -p $(obj)include
12504c9e8557SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
12514c9e8557SStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
12524c9e8557SStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1253c813f1f8SStefan Roese
1254fe7c0db6SStefan Roesecanyonlands_nand_config \
1255fe7c0db6SStefan Roeseglacier_nand_config:	unconfig
125671665ebfSStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/canyonlands
125771665ebfSStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/canyonlands
125871665ebfSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1259fe7c0db6SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1260fe7c0db6SStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
126171665ebfSStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
126271665ebfSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
126371665ebfSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
126471665ebfSStefan Roese
12651d6f9720SwdenkCATcenter_config	\
12661d6f9720SwdenkCATcenter_25_config	\
12671d6f9720SwdenkCATcenter_33_config:	unconfig
1268f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1269f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1270f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
12711d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1272f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1273ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
12741d6f9720Swdenk		}
12751d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1276f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1277ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
12781d6f9720Swdenk		}
1279f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
128010767ccbSwdenk
1281699f0512SWolfgang DenkCMS700_config:	unconfig
1282699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1283699f0512SWolfgang Denk
12847644f16fSStefan RoeseCPCI2DP_config:	unconfig
1285f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
12867644f16fSStefan Roese
12871951f847SMatthias FuchsCPCI405_config		\
1288549826eaSstroeseCPCI4052_config		\
1289c419d1d6SstroeseCPCI405DT_config	\
1290549826eaSstroeseCPCI405AB_config:	unconfig
1291dd794323SMatthias Fuchs	@mkdir -p $(obj)board/esd/cpci405
1292f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
12937ebf7443Swdenk
12947ebf7443SwdenkCPCIISER4_config:	unconfig
1295f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
12967ebf7443Swdenk
12977ebf7443SwdenkCRAYL1_config:	unconfig
1298f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
12997ebf7443Swdenk
1300cd0a9de6Swdenkcsb272_config:	unconfig
1301f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1302cd0a9de6Swdenk
1303aa245090Swdenkcsb472_config:	unconfig
1304f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1305aa245090Swdenk
13067ebf7443SwdenkDASA_SIM_config: unconfig
1307f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
13087ebf7443Swdenk
130972cd5aa7SstroeseDP405_config:	unconfig
1310f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
131172cd5aa7Sstroese
13127ebf7443SwdenkDU405_config:	unconfig
1313f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
13147ebf7443Swdenk
13151a3ac86bSMatthias FuchsDU440_config:	unconfig
13161a3ac86bSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
13171a3ac86bSMatthias Fuchs
13188a316c9bSStefan Roeseebony_config:	unconfig
1319f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
13207ebf7443Swdenk
13217ebf7443SwdenkERIC_config:	unconfig
1322f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
13237ebf7443Swdenk
1324d1cbe85bSwdenkEXBITGEN_config:	unconfig
1325f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1326d1cbe85bSwdenk
13275deb8022SGeorg Schardtfx12mm_flash_config: unconfig
13285deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
13295deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/avnet/fx12mm
13305deb8022SGeorg Schardt	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
13315deb8022SGeorg Schardt		> $(obj)board/avnet/fx12mm/config.tmp
13325deb8022SGeorg Schardt	@echo "TEXT_BASE := 0xFFCB0000" \
13335deb8022SGeorg Schardt		>> $(obj)board/avnet/fx12mm/config.tmp
13345deb8022SGeorg Schardt	@$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
13355deb8022SGeorg Schardt
13365deb8022SGeorg Schardtfx12mm_config: unconfig
13375deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
13385deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/avnet/fx12mm
13395deb8022SGeorg Schardt	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
13405deb8022SGeorg Schardt		> $(obj)board/avnet/fx12mm/config.tmp
13415deb8022SGeorg Schardt	@echo "TEXT_BASE := 0x03000000" \
13425deb8022SGeorg Schardt		>> $(obj)board/avnet/fx12mm/config.tmp
13435deb8022SGeorg Schardt	@$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
13445deb8022SGeorg Schardt
1345c419d1d6SstroeseG2000_config:	unconfig
1346f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1347c419d1d6Sstroese
134889b8619aSDirk Eibachgdppc440etx_config:	unconfig
134989b8619aSDirk Eibach	@$(MKCONFIG) $(@:_config=) ppc ppc4xx gdppc440etx gdsys
135089b8619aSDirk Eibach
1351ac982ea5SNiklaus Gigerhcu4_config:	unconfig
1352b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
135335d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1354ac982ea5SNiklaus Giger
1355ac982ea5SNiklaus Gigerhcu5_config:	unconfig
1356b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
135735d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1358ac982ea5SNiklaus Giger
1359c419d1d6SstroeseHH405_config:	unconfig
1360f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1361c419d1d6Sstroese
136272cd5aa7SstroeseHUB405_config:	unconfig
1363f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
136472cd5aa7Sstroese
1365db01a2eaSwdenkJSE_config:	unconfig
1366f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1367db01a2eaSwdenk
1368b79316f2SStefan RoeseKAREF_config: unconfig
1369f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1370b79316f2SStefan Roese
13714745acaaSStefan Roesekatmai_config:	unconfig
13724745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
13734745acaaSStefan Roese
1374353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR)
1375353f2688SStefan Roesekilauea_config \
1376353f2688SStefan Roesehaleakala_config: unconfig
1377353f2688SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1378566806caSStefan Roese
13793d6cb3b2SStefan Roesekilauea_nand_config \
13803d6cb3b2SStefan Roesehaleakala_nand_config: unconfig
13813d6cb3b2SStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/kilauea
13823d6cb3b2SStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/kilauea
13833d6cb3b2SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
13843d6cb3b2SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
13853d6cb3b2SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
13863d6cb3b2SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
13873d6cb3b2SStefan Roese
1388c591dffeSLarry Johnsonkorat_config:	unconfig
1389c591dffeSLarry Johnson	@$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1390c591dffeSLarry Johnson
13916e7fb6eaSStefan Roeseluan_config:	unconfig
1392f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
13936e7fb6eaSStefan Roese
1394b765ffb7SStefan Roeselwmon5_config:	unconfig
1395b765ffb7SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1396b765ffb7SStefan Roese
1397211ea91aSStefan Roesemakalu_config:	unconfig
1398211ea91aSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1399211ea91aSStefan Roese
1400b05f3543SNiklaus Gigermcu25_config:  unconfig
1401b05f3543SNiklaus Giger	@mkdir -p $(obj)board/netstal/common
1402b05f3543SNiklaus Giger	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1403b05f3543SNiklaus Giger
1404b79316f2SStefan RoeseMETROBOX_config: unconfig
1405f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1406b79316f2SStefan Roese
14077ebf7443SwdenkMIP405_config:	unconfig
1408f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
14097ebf7443Swdenk
1410f3e0de60SwdenkMIP405T_config:	unconfig
1411f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1412f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1413ae6d1056SWolfgang Denk	@$(XECHO) "Enable subset config for MIP405T"
1414f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1415f3e0de60Swdenk
14167ebf7443SwdenkML2_config:	unconfig
1417f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
14187ebf7443Swdenk
1419028ab6b5Swdenkml300_config:	unconfig
1420f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1421028ab6b5Swdenk
142201a00431SRicardo Ribalda Delgadoml507_flash_config: unconfig
1423880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
142401a00431SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ml507
1425880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1426880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ml507/config.tmp
1427880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
1428880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ml507/config.tmp
1429e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
143001a00431SRicardo Ribalda Delgado
1431086511fcSRicardo Ribalda Delgadoml507_config: unconfig
1432880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
143301a00431SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ml507
1434880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1435880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ml507/config.tmp
1436880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000"  \
1437880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ml507/config.tmp
1438e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1439086511fcSRicardo Ribalda Delgado
1440d7b26d58SDirk Eibachneo_config:	unconfig
1441d7b26d58SDirk Eibach	@$(MKCONFIG) $(@:_config=) ppc ppc4xx neo gdsys
1442d7b26d58SDirk Eibach
14438a316c9bSStefan Roeseocotea_config:	unconfig
1444f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
14450e6d798cSwdenk
14467ebf7443SwdenkOCRTC_config		\
14477ebf7443SwdenkORSG_config:	unconfig
1448f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
14497ebf7443Swdenk
14505568e613SStefan Roesep3p440_config:	unconfig
1451f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
14525568e613SStefan Roese
14537ebf7443SwdenkPCI405_config:	unconfig
1454f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
14557ebf7443Swdenk
1456a4c8d138SStefan Roesepcs440ep_config:	unconfig
1457f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1458a4c8d138SStefan Roese
14597ebf7443SwdenkPIP405_config:	unconfig
1460f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
14617ebf7443Swdenk
146272cd5aa7SstroesePLU405_config:	unconfig
1463f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
146472cd5aa7Sstroese
1465549826eaSstroesePMC405_config:	unconfig
1466f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1467549826eaSstroese
14688ba132caSMatthias FuchsPMC440_config:	unconfig
14698ba132caSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
14708ba132caSMatthias Fuchs
1471281e00a3SwdenkPPChameleonEVB_config		\
1472e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1473e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1474e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1475e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1476e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1477e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1478f9328639SMarian Balakowicz	@mkdir -p $(obj)include
14791d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1480f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1481ae6d1056SWolfgang Denk		  $(XECHO) "... BASIC model" ; \
1482fbe4b5cbSwdenk		}
14831d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1484f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1485ae6d1056SWolfgang Denk		  $(XECHO) "... MEDIUM model" ; \
1486fbe4b5cbSwdenk		}
14871d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1488f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1489ae6d1056SWolfgang Denk		  $(XECHO) "... HIGH-END model" ; \
1490fbe4b5cbSwdenk		}
1491e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1492f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1493ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
1494e55ca7e2Swdenk		}
1495e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1496f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1497ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
1498e55ca7e2Swdenk		}
1499f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
150012f34241Swdenk
150173ccb341SGary Jennejohnquad100hd_config:	unconfig
150273ccb341SGary Jennejohn	@$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
150373ccb341SGary Jennejohn
150411188d55SStefan Roeseredwood_config: unconfig
150511188d55SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
150611188d55SStefan Roese
1507430f1b0fSStefan Roesesbc405_config:	unconfig
1508430f1b0fSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1509430f1b0fSStefan Roese
1510699f0512SWolfgang Denksc3_config:unconfig
1511699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1512699f0512SWolfgang Denk
1513430f1b0fSStefan Roesesequoia_config \
1514854bc8daSStefan Roeserainier_config: unconfig
15158318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1516430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1517430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
15182aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1519854bc8daSStefan Roese
1520430f1b0fSStefan Roesesequoia_nand_config \
1521854bc8daSStefan Roeserainier_nand_config: unconfig
152263e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
152363e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/sequoia
15248318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1525430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1526430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1527430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
15288318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
15298318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1530652a10c0Swdenk
1531d4024bb7SJohn Otkentaihu_config:	unconfig
1532d4024bb7SJohn Otken	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1533d4024bb7SJohn Otken
15345fb692caSStefan Roesetaishan_config:	unconfig
15355fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
15365fb692caSStefan Roese
1537e07f4a80SRicardo Ribalda Delgadov5fx30teval_config: unconfig
1538880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1539e07f4a80SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1540880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1541880f6a5dSRicardo Ribalda Delgado		> $(obj)board/avnet/v5fx30teval/config.tmp
1542880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x03000000" \
1543880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/avnet/v5fx30teval/config.tmp
1544e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1545e07f4a80SRicardo Ribalda Delgado
1546e07f4a80SRicardo Ribalda Delgadov5fx30teval_flash_config: unconfig
1547880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1548e07f4a80SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1549880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
15502bec498eSRicardo Ribalda Delgado		> $(obj)board/avnet/v5fx30teval/config.tmp
1551880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFF1C0000" \
15522bec498eSRicardo Ribalda Delgado		>> $(obj)board/avnet/v5fx30teval/config.tmp
1553e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1554e07f4a80SRicardo Ribalda Delgado
155572cd5aa7SstroeseVOH405_config:	unconfig
1556f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
155772cd5aa7Sstroese
1558c419d1d6SstroeseVOM405_config:	unconfig
1559f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1560c419d1d6Sstroese
15617ebf7443SwdenkW7OLMC_config	\
15627ebf7443SwdenkW7OLMG_config: unconfig
1563f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
15647ebf7443Swdenk
1565430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR)
1566430f1b0fSStefan Roesewalnut_config \
1567430f1b0fSStefan Roesesycamore_config: unconfig
1568430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
15697ebf7443Swdenk
1570c419d1d6SstroeseWUH405_config:	unconfig
1571f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1572c419d1d6Sstroese
15731f4d5326SRicardo Ribalda Delgadoxilinx-ppc405-generic_flash_config: unconfig
15741f4d5326SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
15751f4d5326SRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
15761f4d5326SRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc405-generic/config.tmp
15771f4d5326SRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
15781f4d5326SRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc405-generic/config.tmp
15791f4d5326SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
15801f4d5326SRicardo Ribalda Delgado
15811f4d5326SRicardo Ribalda Delgadoxilinx-ppc405-generic_config: unconfig
15821f4d5326SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
15831f4d5326SRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
15841f4d5326SRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc405-generic/config.tmp
15851f4d5326SRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000" \
15861f4d5326SRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc405-generic/config.tmp
15871f4d5326SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
15881f4d5326SRicardo Ribalda Delgado
1589e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_flash_config: unconfig
1590880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1591880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1592880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc440-generic/config.tmp
1593880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
1594880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc440-generic/config.tmp
1595e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1596e07f4a80SRicardo Ribalda Delgado
1597e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_config: unconfig
1598880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1599880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1600880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc440-generic/config.tmp
1601880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000" \
1602880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc440-generic/config.tmp
1603e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1604e07f4a80SRicardo Ribalda Delgado
1605ba56f625SwdenkXPEDITE1K_config:	unconfig
1606f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1607ba56f625Swdenk
1608430f1b0fSStefan Roeseyosemite_config \
16098a316c9bSStefan Roeseyellowstone_config: unconfig
1610700200c6SStefan Roese	@mkdir -p $(obj)include
1611430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1612430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
16132aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
16148a316c9bSStefan Roese
16156c5879f3SMarian Balakowiczyucca_config:	unconfig
1616f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
16176c5879f3SMarian Balakowicz
1618779e9751SStefan Roesezeus_config:	unconfig
1619779e9751SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1620779e9751SStefan Roese
16217ebf7443Swdenk#########################################################################
1622983fda83Swdenk## MPC8220 Systems
1623983fda83Swdenk#########################################################################
1624dc17fb6dSWolfgang Denk
1625dc17fb6dSWolfgang DenkAlaska8220_config	\
1626dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1627f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1628983fda83Swdenk
162912b43d51Swdenksorcery_config:		unconfig
1630f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
163112b43d51Swdenk
1632983fda83Swdenk#########################################################################
16337ebf7443Swdenk## MPC824x Systems
16347ebf7443Swdenk#########################################################################
1635efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
16363bac3513Swdenk
16370332990bSwdenkA3000_config: unconfig
1638f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
16390332990bSwdenk
16408e6f1a8eSWolfgang Denkbarco_config: unconfig
1641f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
16428e6f1a8eSWolfgang Denk
16437ebf7443SwdenkBMW_config: unconfig
1644f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
16457ebf7443Swdenk
16463bac3513SwdenkCPC45_config	\
16473bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1648f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1649f9328639SMarian Balakowicz	@cd $(obj)include ;				\
16503bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
16513bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1652ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
16533bac3513Swdenk	else \
16543bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1655ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
16563bac3513Swdenk	fi; \
16573bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
16583bac3513Swdenk
16597ebf7443SwdenkCU824_config: unconfig
1660f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
16617ebf7443Swdenk
16627abf0c58Swdenkdebris_config: unconfig
1663f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
16647abf0c58Swdenk
166580885a9dSwdenkeXalion_config: unconfig
1666f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
166780885a9dSwdenk
1668756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1669f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1670756f586aSwdenk
167153dd6ce4SWolfgang Denkkvme080_config: unconfig
1672f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
167353dd6ce4SWolfgang Denk
167461525f2fSGuennadi Liakhovetski# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
167561525f2fSGuennadi Liakhovetski# time permits.
167661525f2fSGuennadi Liakhovetski#linkstation_HDLAN_config \
167761525f2fSGuennadi Liakhovetski# Remove this line when HDLAN is fixed
167861525f2fSGuennadi Liakhovetskilinkstation_HGLAN_config: unconfig
167961525f2fSGuennadi Liakhovetski	@mkdir -p $(obj)include
168061525f2fSGuennadi Liakhovetski	@case $@ in \
168161525f2fSGuennadi Liakhovetski		*HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
168261525f2fSGuennadi Liakhovetski		*HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
168361525f2fSGuennadi Liakhovetski	esac
168461525f2fSGuennadi Liakhovetski	@$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
168561525f2fSGuennadi Liakhovetski
16867ebf7443SwdenkMOUSSE_config: unconfig
1687f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
16887ebf7443Swdenk
16897ebf7443SwdenkMUSENKI_config: unconfig
1690f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
16917ebf7443Swdenk
1692b4676a25SwdenkMVBLUE_config:	unconfig
1693f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1694b4676a25Swdenk
16957ebf7443SwdenkOXC_config: unconfig
1696f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
16977ebf7443Swdenk
16987ebf7443SwdenkPN62_config: unconfig
1699f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
17007ebf7443Swdenk
17017ebf7443SwdenkSandpoint8240_config: unconfig
1702f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
17037ebf7443Swdenk
17047ebf7443SwdenkSandpoint8245_config: unconfig
1705f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
17067ebf7443Swdenk
1707466b7410Swdenksbc8240_config: unconfig
1708f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1709466b7410Swdenk
1710d1cbe85bSwdenkSL8245_config: unconfig
1711f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1712d1cbe85bSwdenk
17137ebf7443Swdenkutx8245_config: unconfig
1714f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
17157ebf7443Swdenk
17167ebf7443Swdenk#########################################################################
17177ebf7443Swdenk## MPC8260 Systems
17187ebf7443Swdenk#########################################################################
17197ebf7443Swdenk
172054387ac9Swdenkatc_config:	unconfig
1721f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
172254387ac9Swdenk
17237ebf7443Swdenkcogent_mpc8260_config:	unconfig
1724f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
17257ebf7443Swdenk
17267ebf7443SwdenkCPU86_config	\
17277ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1728f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1729f9328639SMarian Balakowicz	@cd $(obj)include ;				\
17307ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
17317ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1732ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
17337ebf7443Swdenk	else \
17347ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1735ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
17367ebf7443Swdenk	fi; \
17377ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
17387ebf7443Swdenk
1739384cc687SwdenkCPU87_config	\
1740384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1741f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1742f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1743384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1744384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1745ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1746384cc687Swdenk	else \
1747384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1748ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1749384cc687Swdenk	fi; \
1750384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1751384cc687Swdenk
1752f901a83bSWolfgang Denkep8248_config	\
1753f901a83bSWolfgang Denkep8248E_config	:	unconfig
1754f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1755f901a83bSWolfgang Denk
17567ebf7443Swdenkep8260_config:	unconfig
1757f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
17587ebf7443Swdenk
17598d4ac794SWolfgang Denkep82xxm_config:	unconfig
176090b1b2d6SGrant Likely	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
17618d4ac794SWolfgang Denk
17627ebf7443Swdenkgw8260_config:	unconfig
1763f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
17647ebf7443Swdenk
17657ebf7443Swdenkhymod_config:	unconfig
1766f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
17677ebf7443Swdenk
17689dd41a7bSwdenkIDS8247_config:	unconfig
1769f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
17709dd41a7bSwdenk
17717ebf7443SwdenkIPHASE4539_config:	unconfig
1772f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
17737ebf7443Swdenk
1774c3c7f861SwdenkISPAN_config		\
1775c3c7f861SwdenkISPAN_REVB_config:	unconfig
1776f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1777c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
17786d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
1779c3c7f861Swdenk	fi
1780f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1781c3c7f861Swdenk
1782ac9db066SHeiko Schochermgcoge_config	:	unconfig
178386e9cdf8SHeiko Schocher	@$(MKCONFIG) mgcoge ppc mpc8260 mgcoge keymile
1784ac9db066SHeiko Schocher
178504a85b3bSwdenkMPC8260ADS_config	\
1786901787d6SwdenkMPC8260ADS_lowboot_config	\
178704a85b3bSwdenkMPC8260ADS_33MHz_config	\
1788901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
178904a85b3bSwdenkMPC8260ADS_40MHz_config	\
1790901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
179104a85b3bSwdenkMPC8272ADS_config	\
1792901787d6SwdenkMPC8272ADS_lowboot_config	\
179304a85b3bSwdenkPQ2FADS_config		\
1794901787d6SwdenkPQ2FADS_lowboot_config		\
179504a85b3bSwdenkPQ2FADS-VR_config	\
1796901787d6SwdenkPQ2FADS-VR_lowboot_config	\
179704a85b3bSwdenkPQ2FADS-ZU_config	\
1798901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
179904a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1800901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
180104a85b3bSwdenk	:		unconfig
1802f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1803b7e24d28SJon Loeliger	@mkdir -p $(obj)board/freescale/mpc8260ads
180404a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
18056d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	@echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \
18066d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	@echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
180704a85b3bSwdenk	$(if $(findstring MHz,$@), \
1808f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
180904a85b3bSwdenk	$(if $(findstring VR,$@), \
1810f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1811901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1812b7e24d28SJon Loeliger		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1813ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
1814901787d6Swdenk		}
1815b7e24d28SJon Loeliger	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
18167ebf7443Swdenk
1817db2f721fSwdenkMPC8266ADS_config:	unconfig
1818aa3511e4SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1819db2f721fSwdenk
1820adf22b66SHeiko Schochermuas3001_dev_config \
1821adf22b66SHeiko Schochermuas3001_config	:	unconfig
1822adf22b66SHeiko Schocher	@mkdir -p $(obj)include
1823adf22b66SHeiko Schocher	@mkdir -p $(obj)board/muas3001
1824adf22b66SHeiko Schocher	@if [ "$(findstring dev,$@)" ] ; then \
1825adf22b66SHeiko Schocher		echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1826adf22b66SHeiko Schocher	fi
1827adf22b66SHeiko Schocher	@$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001
1828adf22b66SHeiko Schocher
1829efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
183010f67017SwdenkPM825_config	\
1831efa329cbSwdenkPM825_ROMBOOT_config	\
1832efa329cbSwdenkPM825_BIGFLASH_config	\
1833efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
18347ebf7443SwdenkPM826_config	\
1835efa329cbSwdenkPM826_ROMBOOT_config	\
1836efa329cbSwdenkPM826_BIGFLASH_config	\
1837efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1838f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1839f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1840efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1841f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
18427ebf7443Swdenk	else \
1843f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1844efa329cbSwdenk	fi
1845efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1846ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1847f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1848f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1849efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1850ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1851f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
18527ebf7443Swdenk		fi; \
1853efa329cbSwdenk	else \
1854ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1855efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1856ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1857f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1858f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1859efa329cbSwdenk		else \
1860f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1861efa329cbSwdenk		fi; \
1862efa329cbSwdenk	fi
1863f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1864efa329cbSwdenk
1865efa329cbSwdenkPM828_config	\
1866efa329cbSwdenkPM828_PCI_config	\
1867efa329cbSwdenkPM828_ROMBOOT_config	\
1868efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1869f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1870f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
187117076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1872f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1873ae6d1056SWolfgang Denk		$(XECHO) "... with PCI enabled" ; \
1874efa329cbSwdenk	fi
1875efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1876ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1877f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1878f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1879efa329cbSwdenk	fi
1880f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
18817ebf7443Swdenk
18827ebf7443Swdenkppmc8260_config:	unconfig
1883f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
18847ebf7443Swdenk
18858b0bfc68SwdenkRattler8248_config	\
18868b0bfc68SwdenkRattler_config:		unconfig
1887f9328639SMarian Balakowicz	@mkdir -p $(obj)include
18888b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1889f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1890f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
18918b0bfc68Swdenk
18927ebf7443SwdenkRPXsuper_config:	unconfig
1893f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
18947ebf7443Swdenk
18957ebf7443Swdenkrsdproto_config:	unconfig
1896f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
18977ebf7443Swdenk
18987ebf7443Swdenksacsng_config:	unconfig
1899f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
19007ebf7443Swdenk
19017ebf7443Swdenksbc8260_config:	unconfig
1902f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
19037ebf7443Swdenk
19047ebf7443SwdenkSCM_config:		unconfig
1905f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
19067ebf7443Swdenk
190727b207fdSwdenkTQM8255_AA_config \
190827b207fdSwdenkTQM8260_AA_config \
190927b207fdSwdenkTQM8260_AB_config \
191027b207fdSwdenkTQM8260_AC_config \
191127b207fdSwdenkTQM8260_AD_config \
191227b207fdSwdenkTQM8260_AE_config \
191327b207fdSwdenkTQM8260_AF_config \
191427b207fdSwdenkTQM8260_AG_config \
191527b207fdSwdenkTQM8260_AH_config \
19161f62bc2dSWolfgang DenkTQM8260_AI_config \
191727b207fdSwdenkTQM8265_AA_config:  unconfig
1918f9328639SMarian Balakowicz	@mkdir -p $(obj)include
191927b207fdSwdenk	@case "$@" in \
192027b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
192127b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
192227b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
192327b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
192427b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
192527b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
192627b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
192727b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
192827b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
19291f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
193027b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
193127b207fdSwdenk	esac; \
193227b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1933f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
193427b207fdSwdenk	fi; \
1935f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
193627b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
19371aaab9bfSWolfgang Denk	if [ "$${CACHE}" = "yes" ] ; then \
1938f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1939ae6d1056SWolfgang Denk		$(XECHO) "... with L2 Cache support" ; \
19407ebf7443Swdenk	else \
1941f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1942ae6d1056SWolfgang Denk		$(XECHO) "... without L2 Cache support" ; \
194327b207fdSwdenk	fi; \
19441aaab9bfSWolfgang Denk	if [ "$${BMODE}" = "60x" ] ; then \
1945f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1946ae6d1056SWolfgang Denk		$(XECHO) "... with 60x Bus Mode" ; \
194727b207fdSwdenk	else \
1948f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
1949ae6d1056SWolfgang Denk		$(XECHO) "... without 60x Bus Mode" ; \
19507ebf7443Swdenk	fi
19514677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
19527ebf7443Swdenk
1953fa230445SHeiko SchocherTQM8272_config: unconfig
19544677988cSWolfgang Grandegger	@$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
1955fa230445SHeiko Schocher
1956ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1957ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1958f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1959f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1960f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1961ba91e26aSwdenk
196254387ac9SwdenkZPC1900_config: unconfig
1963f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
19647aa78614Swdenk
19654e5ca3ebSwdenk#########################################################################
19664e5ca3ebSwdenk## Coldfire
19674e5ca3ebSwdenk#########################################################################
19684e5ca3ebSwdenk
1969a21d0c2cSTsiChung LiewM52277EVB_config \
1970a21d0c2cSTsiChung LiewM52277EVB_spansion_config \
1971a21d0c2cSTsiChung LiewM52277EVB_stmicro_config :	unconfig
1972a21d0c2cSTsiChung Liew	@case "$@" in \
1973a21d0c2cSTsiChung Liew	M52277EVB_config)		FLASH=SPANSION;; \
1974a21d0c2cSTsiChung Liew	M52277EVB_spansion_config)	FLASH=SPANSION;; \
1975a21d0c2cSTsiChung Liew	M52277EVB_stmicro_config)	FLASH=STMICRO;; \
1976a21d0c2cSTsiChung Liew	esac; \
1977a21d0c2cSTsiChung Liew	if [ "$${FLASH}" = "SPANSION" ] ; then \
1978a21d0c2cSTsiChung Liew		echo "#define CONFIG_SYS_SPANSION_BOOT"	>> $(obj)include/config.h ; \
1979a21d0c2cSTsiChung Liew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1980a21d0c2cSTsiChung Liew		cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \
1981a21d0c2cSTsiChung Liew		$(XECHO) "... with SPANSION boot..." ; \
1982a21d0c2cSTsiChung Liew	fi; \
1983a21d0c2cSTsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
1984a21d0c2cSTsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
1985a21d0c2cSTsiChung Liew		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
1986a21d0c2cSTsiChung Liew		echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1987a21d0c2cSTsiChung Liew		cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \
1988a21d0c2cSTsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
1989a21d0c2cSTsiChung Liew	fi
19901552af70STsiChungLiew	@$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
19911552af70STsiChungLiew
19924a442d31STsiChungLiewM5235EVB_config \
19934a442d31STsiChungLiewM5235EVB_Flash16_config \
19944a442d31STsiChungLiewM5235EVB_Flash32_config:	unconfig
19954a442d31STsiChungLiew	@case "$@" in \
19964a442d31STsiChungLiew	M5235EVB_config)		FLASH=16;; \
19974a442d31STsiChungLiew	M5235EVB_Flash16_config)	FLASH=16;; \
19984a442d31STsiChungLiew	M5235EVB_Flash32_config)	FLASH=32;; \
19994a442d31STsiChungLiew	esac; \
20004a442d31STsiChungLiew	if [ "$${FLASH}" != "16" ] ; then \
2001ae6d1056SWolfgang Denk		echo "#define NORFLASH_PS32BIT	1" >> $(obj)include/config.h ; \
20024a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
20034a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
20044a442d31STsiChungLiew	else \
20054a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
20064a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
20074a442d31STsiChungLiew	fi
20084a442d31STsiChungLiew	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
20094a442d31STsiChungLiew
2010a605aacdSTsiChungLiewM5249EVB_config :		unconfig
2011a605aacdSTsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
2012a605aacdSTsiChungLiew
20136d33c6acSTsiChung LiewM5253DEMO_config :		unconfig
20146d33c6acSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
20156d33c6acSTsiChung Liew
2016a1436a84STsiChungLiewM5253EVBE_config :		unconfig
2017a1436a84STsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
2018a1436a84STsiChungLiew
20197481266eSWolfgang Denkcobra5272_config :		unconfig
2020f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
20217481266eSWolfgang Denk
20224176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
2023f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2024f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
2025f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
2026f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
20274176c799SWolfgang Denk
20284176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
2029f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2030f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
2031f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
2032f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
20334176c799SWolfgang Denk
2034daa6e418SBartlomiej Siekaidmr_config :			unconfig
2035daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
2036daa6e418SBartlomiej Sieka
20374176c799SWolfgang DenkM5271EVB_config :		unconfig
2038659e9badSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
20394176c799SWolfgang Denk
20404e5ca3ebSwdenkM5272C3_config :		unconfig
204156df091dSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
20424e5ca3ebSwdenk
2043545c8e0aSMatthew FettkeM5275EVB_config :		unconfig
2044545c8e0aSMatthew Fettke	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
2045545c8e0aSMatthew Fettke
20464e5ca3ebSwdenkM5282EVB_config :		unconfig
204710db3a17STsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
20484e5ca3ebSwdenk
2049536e7dacSTsiChung LiewM53017EVB_config :		unconfig
2050536e7dacSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf532x m53017evb freescale
2051536e7dacSTsiChung Liew
20528e585f02STsiChung LiewM5329AFEE_config \
20538e585f02STsiChung LiewM5329BFEE_config :	unconfig
20548e585f02STsiChung Liew	@case "$@" in \
20558e585f02STsiChung Liew	M5329AFEE_config)	NAND=0;; \
20568e585f02STsiChung Liew	M5329BFEE_config)	NAND=16;; \
20578e585f02STsiChung Liew	esac; \
20588e585f02STsiChung Liew	if [ "$${NAND}" != "0" ] ; then \
2059ab77bc54STsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
20608e585f02STsiChung Liew	fi
20618e585f02STsiChung Liew	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
20628e585f02STsiChung Liew
2063aa5f1f9dSTsiChungLiewM5373EVB_config :	unconfig
2064aa5f1f9dSTsiChungLiew	@case "$@" in \
2065aa5f1f9dSTsiChungLiew	M5373EVB_config)	NAND=16;; \
2066aa5f1f9dSTsiChungLiew	esac; \
2067aa5f1f9dSTsiChungLiew	if [ "$${NAND}" != "0" ] ; then \
2068aa5f1f9dSTsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
2069aa5f1f9dSTsiChungLiew	fi
2070aa5f1f9dSTsiChungLiew	@$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
2071aa5f1f9dSTsiChungLiew
207205316f8eSTsiChung LiewM54451EVB_config \
207305316f8eSTsiChung LiewM54451EVB_spansion_config \
207405316f8eSTsiChung LiewM54451EVB_stmicro_config :	unconfig
207505316f8eSTsiChung Liew	@case "$@" in \
207605316f8eSTsiChung Liew	M54451EVB_config)		FLASH=SPANSION;; \
207705316f8eSTsiChung Liew	M54451EVB_spansion_config)	FLASH=SPANSION;; \
207805316f8eSTsiChung Liew	M54451EVB_stmicro_config)	FLASH=STMICRO;; \
207905316f8eSTsiChung Liew	esac; \
208005316f8eSTsiChung Liew	if [ "$${FLASH}" = "SPANSION" ] ; then \
20816d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_SPANSION_BOOT"	>> $(obj)include/config.h ; \
208205316f8eSTsiChung Liew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
208305316f8eSTsiChung Liew		cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
208405316f8eSTsiChung Liew		$(XECHO) "... with SPANSION boot..." ; \
208505316f8eSTsiChung Liew	fi; \
208605316f8eSTsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
208705316f8eSTsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
20886d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
208905316f8eSTsiChung Liew		echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
209005316f8eSTsiChung Liew		cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
209105316f8eSTsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
209205316f8eSTsiChung Liew	fi; \
20936d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
209405316f8eSTsiChung Liew	@$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
209505316f8eSTsiChung Liew
20968ae158cdSTsiChungLiewM54455EVB_config \
20978ae158cdSTsiChungLiewM54455EVB_atmel_config \
20988ae158cdSTsiChungLiewM54455EVB_intel_config \
20998ae158cdSTsiChungLiewM54455EVB_a33_config \
21008ae158cdSTsiChungLiewM54455EVB_a66_config \
21018ae158cdSTsiChungLiewM54455EVB_i33_config \
21029f751551STsiChung LiewM54455EVB_i66_config \
21039f751551STsiChung LiewM54455EVB_stm33_config :	unconfig
21048ae158cdSTsiChungLiew	@case "$@" in \
21058ae158cdSTsiChungLiew	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
21068ae158cdSTsiChungLiew	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
21078ae158cdSTsiChungLiew	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
21088ae158cdSTsiChungLiew	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
21098ae158cdSTsiChungLiew	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
21108ae158cdSTsiChungLiew	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
21118ae158cdSTsiChungLiew	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
21129f751551STsiChung Liew	M54455EVB_stm33_config)		FLASH=STMICRO; FREQ=33333333;; \
21138ae158cdSTsiChungLiew	esac; \
21141aaab9bfSWolfgang Denk	if [ "$${FLASH}" = "INTEL" ] ; then \
21156d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
2116e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2117e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
2118ae6d1056SWolfgang Denk		$(XECHO) "... with INTEL boot..." ; \
21199f751551STsiChung Liew	fi; \
21209f751551STsiChung Liew	if [ "$${FLASH}" = "ATMEL" ] ; then \
21216d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_ATMEL_BOOT"	>> $(obj)include/config.h ; \
2122e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2123e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2124ae6d1056SWolfgang Denk		$(XECHO) "... with ATMEL boot..." ; \
21258ae158cdSTsiChungLiew	fi; \
21269f751551STsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
21279f751551STsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
21286d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
21299f751551STsiChung Liew		echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
21309f751551STsiChung Liew		cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
21319f751551STsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
21329f751551STsiChung Liew	fi; \
21336d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
2134ae6d1056SWolfgang Denk	$(XECHO) "... with $${FREQ}Hz input clock"
21358ae158cdSTsiChungLiew	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
21368ae158cdSTsiChungLiew
213757a12720STsiChungLiewM5475AFE_config \
213857a12720STsiChungLiewM5475BFE_config \
213957a12720STsiChungLiewM5475CFE_config \
214057a12720STsiChungLiewM5475DFE_config \
214157a12720STsiChungLiewM5475EFE_config \
214257a12720STsiChungLiewM5475FFE_config \
214357a12720STsiChungLiewM5475GFE_config :	unconfig
214457a12720STsiChungLiew	@case "$@" in \
214557a12720STsiChungLiew	M5475AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
214657a12720STsiChungLiew	M5475BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
214757a12720STsiChungLiew	M5475CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
214857a12720STsiChungLiew	M5475DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
214957a12720STsiChungLiew	M5475EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
215057a12720STsiChungLiew	M5475FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
215157a12720STsiChungLiew	M5475GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
215257a12720STsiChungLiew	esac; \
21536d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BUSCLK	133333333" > $(obj)include/config.h ; \
21546d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
21556d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
215657a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
21576d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
215857a12720STsiChungLiew	fi; \
215957a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
21606d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
216157a12720STsiChungLiew	fi; \
216257a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
21636d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
216457a12720STsiChungLiew	fi; \
216557a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
21666d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
216757a12720STsiChungLiew	fi
216857a12720STsiChungLiew	@$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
216957a12720STsiChungLiew
217057a12720STsiChungLiewM5485AFE_config \
217157a12720STsiChungLiewM5485BFE_config \
217257a12720STsiChungLiewM5485CFE_config \
217357a12720STsiChungLiewM5485DFE_config \
217457a12720STsiChungLiewM5485EFE_config \
217557a12720STsiChungLiewM5485FFE_config \
217657a12720STsiChungLiewM5485GFE_config \
217757a12720STsiChungLiewM5485HFE_config :	unconfig
217857a12720STsiChungLiew	@case "$@" in \
217957a12720STsiChungLiew	M5485AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
218057a12720STsiChungLiew	M5485BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
218157a12720STsiChungLiew	M5485CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
218257a12720STsiChungLiew	M5485DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
218357a12720STsiChungLiew	M5485EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
218457a12720STsiChungLiew	M5485FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
218557a12720STsiChungLiew	M5485GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
21864d264effSTsiChungLiew	M5485HFE_config)	BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
218757a12720STsiChungLiew	esac; \
21886d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BUSCLK	100000000" > $(obj)include/config.h ; \
21896d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
21906d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
219157a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
21926d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
219357a12720STsiChungLiew	fi; \
219457a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
21956d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
219657a12720STsiChungLiew	fi; \
219757a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
21986d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
219957a12720STsiChungLiew	fi; \
220057a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
22016d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
220257a12720STsiChungLiew	fi
220357a12720STsiChungLiew	@$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
220457a12720STsiChungLiew
2205699f0512SWolfgang DenkTASREG_config :		unconfig
2206699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2207699f0512SWolfgang Denk
22087ebf7443Swdenk#########################################################################
2209f046ccd1SEran Liberty## MPC83xx Systems
2210f046ccd1SEran Liberty#########################################################################
2211f046ccd1SEran Liberty
2212de044361SHeiko Schocherkmeter1_config: unconfig
2213de044361SHeiko Schocher	@$(MKCONFIG) kmeter1 ppc mpc83xx kmeter1 keymile
2214de044361SHeiko Schocher
22155c5d3242SKim PhillipsMPC8313ERDB_33_config \
2216e4c09508SScott WoodMPC8313ERDB_66_config \
2217e4c09508SScott WoodMPC8313ERDB_NAND_33_config \
2218e4c09508SScott WoodMPC8313ERDB_NAND_66_config: unconfig
2219cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2220e4c09508SScott Wood	@mkdir -p $(obj)board/freescale/mpc8313erdb
2221c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2222ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
22236d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
22245c5d3242SKim Phillips	fi ; \
22255c5d3242SKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2226ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
22276d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
2228e4c09508SScott Wood	fi ; \
2229e4c09508SScott Wood	if [ "$(findstring _NAND_,$@)" ] ; then \
2230e4c09508SScott Wood		$(XECHO) -n "...NAND..." ; \
2231f4e55a49SKim Phillips		echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2232e4c09508SScott Wood		echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
22335c5d3242SKim Phillips	fi ;
2234e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
223564ac1eb5SNick Spence	@if [ "$(findstring _NAND_,$@)" ] ; then \
223664ac1eb5SNick Spence		echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
223764ac1eb5SNick Spence	fi ;
22385c5d3242SKim Phillips
22398bd522ceSDave LiuMPC8315ERDB_config: unconfig
22408bd522ceSDave Liu	@$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
22418bd522ceSDave Liu
22421c274c4eSKim PhillipsMPC8323ERDB_config:	unconfig
22431c274c4eSKim Phillips	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
22441c274c4eSKim Phillips
22454decd84eSKim PhillipsMPC832XEMDS_config \
22464decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
22474decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
2248281df457STony LiMPC832XEMDS_SLAVE_config \
2249281df457STony LiMPC832XEMDS_ATM_config:	unconfig
2250cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2251c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2252ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2253cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
22544decd84eSKim Phillips	fi ; \
22554decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2256ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2257cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2258cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
22594decd84eSKim Phillips	fi ; \
22604decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
2261ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2262cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2263281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
22644decd84eSKim Phillips	fi ; \
22654decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2266ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2267cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2268281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2269281df457STony Li	fi ; \
2270281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2271ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2272281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2273281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
22744decd84eSKim Phillips	fi ;
2275e58fe957SKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2276e6f2e902SMarian Balakowicz
2277991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
2278e58fe957SKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2279991425feSMarian Balakowicz
22807a78f148STimur TabiMPC8349ITX_config \
22817a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
22827a78f148STimur TabiMPC8349ITXGP_config:	unconfig
22837a78f148STimur Tabi	@mkdir -p $(obj)include
2284e21659e3SSam Sparks	@mkdir -p $(obj)board/freescale/mpc8349itx
22857a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
22867a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
2287e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
22887a78f148STimur Tabi	fi
22897a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
2290e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
22917a78f148STimur Tabi	fi
2292e58fe957SKim Phillips	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
22934decd84eSKim Phillips
22945f820439SDave LiuMPC8360EMDS_config \
22955f820439SDave LiuMPC8360EMDS_HOST_33_config \
22965f820439SDave LiuMPC8360EMDS_HOST_66_config \
2297281df457STony LiMPC8360EMDS_SLAVE_config \
2298281df457STony LiMPC8360EMDS_ATM_config: unconfig
2299cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2300c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2301ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2302cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
23035f820439SDave Liu	fi ; \
23045f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2305ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2306cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2307cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
23085f820439SDave Liu	fi ; \
23095f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
2310ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2311cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2312281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
23135f820439SDave Liu	fi ; \
23145f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
2315ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2316cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2317281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2318281df457STony Li	fi ; \
2319281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2320ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2321281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2322281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
23235f820439SDave Liu	fi ;
2324e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
23255f820439SDave Liu
2326fab6f556SAnton VorontsovMPC8360ERDK_33_config \
2327fab6f556SAnton VorontsovMPC8360ERDK_66_config \
232891c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config:	unconfig
2329fab6f556SAnton Vorontsov	@mkdir -p $(obj)include
2330c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2331ae6d1056SWolfgang Denk		$(XECHO) -n "... CLKIN 33MHz " ; \
2332fab6f556SAnton Vorontsov		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2333fab6f556SAnton Vorontsov	fi ;
2334fab6f556SAnton Vorontsov	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2335fab6f556SAnton Vorontsov
233619580e66SDave LiuMPC837XEMDS_config \
233719580e66SDave LiuMPC837XEMDS_HOST_config:	unconfig
233819580e66SDave Liu	@mkdir -p $(obj)include
2339c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2340ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
234119580e66SDave Liu		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
234219580e66SDave Liu	fi ;
234319580e66SDave Liu	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
234419580e66SDave Liu
23455e918a98SKim PhillipsMPC837XERDB_config:	unconfig
23465e918a98SKim Phillips	@$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
23475e918a98SKim Phillips
2348a1293e54SAndre SchwarzMVBLM7_config: unconfig
23491a9eeb78SAndre Schwarz	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2350a1293e54SAndre Schwarz
235191e25769SPaul Gortmakersbc8349_config:		unconfig
235291e25769SPaul Gortmaker	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
235391e25769SPaul Gortmaker
23545bb907a4SRon MadridSIMPC8313_LP_config \
23555bb907a4SRon MadridSIMPC8313_SP_config: unconfig
23565bb907a4SRon Madrid	@mkdir -p $(obj)include
23575bb907a4SRon Madrid	@mkdir -p $(obj)board/sheldon/simpc8313
23585bb907a4SRon Madrid	@if [ "$(findstring _LP_,$@)" ] ; then \
23595bb907a4SRon Madrid		$(XECHO) -n "...Large Page NAND..." ; \
23605bb907a4SRon Madrid		echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \
23615bb907a4SRon Madrid	fi ; \
23625bb907a4SRon Madrid	if [ "$(findstring _SP_,$@)" ] ; then \
23635bb907a4SRon Madrid		$(XECHO) -n "...Small Page NAND..." ; \
23645bb907a4SRon Madrid		echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \
23655bb907a4SRon Madrid	fi ;
23665bb907a4SRon Madrid	@$(MKCONFIG) -a SIMPC8313 ppc mpc83xx simpc8313 sheldon
23675bb907a4SRon Madrid	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
23685bb907a4SRon Madrid
23694decd84eSKim PhillipsTQM834x_config:	unconfig
23704677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
23714decd84eSKim Phillips
23722ad6b513STimur Tabi
2373f046ccd1SEran Liberty#########################################################################
237442d1f039Swdenk## MPC85xx Systems
237542d1f039Swdenk#########################################################################
237642d1f039Swdenk
23777bd6104bSrobert lazarskiATUM8548_config:	unconfig
23787bd6104bSrobert lazarski	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
23797bd6104bSrobert lazarski
23809490a7f1SKumar GalaMPC8536DS_config:       unconfig
23819490a7f1SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8536ds freescale
23829490a7f1SKumar Gala
238342d1f039SwdenkMPC8540ADS_config:	unconfig
2384c2d943ffSKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
238542d1f039Swdenk
2386b0e32949SLunsheng WangMPC8540EVAL_config \
2387b0e32949SLunsheng WangMPC8540EVAL_33_config \
2388b0e32949SLunsheng WangMPC8540EVAL_66_config \
2389b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
2390b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:	  unconfig
2391f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2392c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2393ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2394b0e32949SLunsheng Wang	else \
2395f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2396ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2397b0e32949SLunsheng Wang	fi ; \
2398b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
2399f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2400ae6d1056SWolfgang Denk		$(XECHO) " slave" ; \
2401b0e32949SLunsheng Wang	else \
2402ae6d1056SWolfgang Denk		$(XECHO) " host" ; \
2403b0e32949SLunsheng Wang	fi
2404f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2405b0e32949SLunsheng Wang
240642d1f039SwdenkMPC8560ADS_config:	unconfig
2407870ceac5SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
240842d1f039Swdenk
24097f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \
241003f5c550SwdenkMPC8541CDS_config:	unconfig
24117f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2412c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
24137f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2414ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
24157f3f2bd2SRandy Vinson	fi
2416415a613bSKumar Gala	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
241703f5c550Swdenk
241881f481caSAndy FlemingMPC8544DS_config:	unconfig
241981f481caSAndy Fleming	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
242081f481caSAndy Fleming
24217f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \
2422d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
24237f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2424c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
24257f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2426ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
24277f3f2bd2SRandy Vinson	fi
2428415a613bSKumar Gala	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2429d9b94f28SJon Loeliger
24307f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \
243103f5c550SwdenkMPC8555CDS_config:	unconfig
24327f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2433c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
24347f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2435ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
24367f3f2bd2SRandy Vinson	fi
2437415a613bSKumar Gala	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
24387abf0c58Swdenk
243967431059SAndy FlemingMPC8568MDS_config:	unconfig
2440acbca876SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
244167431059SAndy Fleming
244218af1c5fSKumar GalaMPC8572DS_36BIT_config \
2443129ba616SKumar GalaMPC8572DS_config:       unconfig
244418af1c5fSKumar Gala	@mkdir -p $(obj)include
244518af1c5fSKumar Gala	@if [ "$(findstring _36BIT_,$@)" ] ; then \
244618af1c5fSKumar Gala		echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
244718af1c5fSKumar Gala		$(XECHO) "... enabling 36-bit physical addressing." ; \
244818af1c5fSKumar Gala	fi
244918af1c5fSKumar Gala	@$(MKCONFIG) -a MPC8572DS ppc mpc85xx mpc8572ds freescale
2450129ba616SKumar Gala
2451384cc687SwdenkPM854_config:	unconfig
2452f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2453384cc687Swdenk
2454b20d0032SWolfgang DenkPM856_config:	unconfig
2455f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2456b20d0032SWolfgang Denk
2457c15f3120Swdenksbc8540_config \
2458c15f3120Swdenksbc8540_33_config \
2459c15f3120Swdenksbc8540_66_config:	unconfig
2460f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2461c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2462f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2463ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2464c15f3120Swdenk	else \
2465ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2466c15f3120Swdenk	fi
2467f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2468c15f3120Swdenk
246911c45ebdSJoe Hammansbc8548_config:		unconfig
247011c45ebdSJoe Hamman	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
247111c45ebdSJoe Hamman
2472466b7410Swdenksbc8560_config \
2473466b7410Swdenksbc8560_33_config \
2474466b7410Swdenksbc8560_66_config:	unconfig
2475f9328639SMarian Balakowicz	@mkdir -p $(obj)include
24768b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2477f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2478ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
24798b07a110Swdenk	else \
2480ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
24818b07a110Swdenk	fi
2482f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
24838b07a110Swdenk
24845d108ac8SSergei Poselenovsocrates_config:	unconfig
24855d108ac8SSergei Poselenov	@$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
24865d108ac8SSergei Poselenov
248703f5c550Swdenkstxgp3_config:		unconfig
2488f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
248903f5c550Swdenk
2490ee152983SWolfgang Denkstxssa_config		\
2491ee152983SWolfgang Denkstxssa_4M_config:	unconfig
2492ee152983SWolfgang Denk	@mkdir -p $(obj)include
2493ee152983SWolfgang Denk	@if [ "$(findstring _4M_,$@)" ] ; then \
2494ee152983SWolfgang Denk		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2495ae6d1056SWolfgang Denk		$(XECHO) "... with 4 MiB flash memory" ; \
2496ee152983SWolfgang Denk	fi
2497ee152983SWolfgang Denk	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
249835171dc0SDan Malek
2499d96f41e0SStefan RoeseTQM8540_config		\
2500d96f41e0SStefan RoeseTQM8541_config		\
25011287e0c5SWolfgang GrandeggerTQM8548_config		\
2502a865bcdaSWolfgang GrandeggerTQM8548_AG_config	\
2503ad7ee5d4SWolfgang GrandeggerTQM8548_BE_config	\
2504d96f41e0SStefan RoeseTQM8555_config		\
2505f5c5ef4aSwdenkTQM8560_config:		unconfig
2506f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2507ad7ee5d4SWolfgang Grandegger	@BTYPE=$(@:_config=); \
2508a865bcdaSWolfgang Grandegger	CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \
2509ad7ee5d4SWolfgang Grandegger	$(XECHO) "... "$${BTYPE}" (MPC"$${CTYPE}")"; \
2510f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2511ad7ee5d4SWolfgang Grandegger	echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \
2512f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2513ad7ee5d4SWolfgang Grandegger	echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h;
25144677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2515ad7ee5d4SWolfgang Grandegger	@echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk;
2516f5c5ef4aSwdenk
251778bbc5ceSPeter TyserXPEDITE5200_config:	unconfig
251878bbc5ceSPeter Tyser	@$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5200 xes
251978bbc5ceSPeter Tyser
2520ccf0fdd0SPeter TyserXPEDITE5370_config:	unconfig
2521ccf0fdd0SPeter Tyser	@$(MKCONFIG) $(@:_config=) ppc mpc85xx xpedite5370 xes
2522ccf0fdd0SPeter Tyser
252342d1f039Swdenk#########################################################################
2524debb7354SJon Loeliger## MPC86xx Systems
2525debb7354SJon Loeliger#########################################################################
2526debb7354SJon Loeliger
25273c89d754SJon LoeligerMPC8610HPCD_config:	unconfig
25283c89d754SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
25293c89d754SJon Loeliger
25308db0400aSBecky BruceMPC8641HPCN_36BIT_config \
2531debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
25328db0400aSBecky Bruce	@mkdir -p $(obj)include
25338db0400aSBecky Bruce	@if [ "$(findstring _36BIT_,$@)" ] ; then \
25348db0400aSBecky Bruce		echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
25358db0400aSBecky Bruce		$(XECHO) "... enabling 36-bit physical addressing." ; \
25368db0400aSBecky Bruce	fi
25378db0400aSBecky Bruce	@$(MKCONFIG) -a MPC8641HPCN ppc mpc86xx mpc8641hpcn freescale
2538debb7354SJon Loeliger
2539c646bba6SJoe Hammansbc8641d_config:	unconfig
254091c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2541debb7354SJon Loeliger
2542debb7354SJon Loeliger#########################################################################
25437ebf7443Swdenk## 74xx/7xx Systems
25447ebf7443Swdenk#########################################################################
25457ebf7443Swdenk
2546c7de829cSwdenkAmigaOneG3SE_config:	unconfig
2547f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2548c7de829cSwdenk
254915647dc7SwdenkBAB7xx_config: unconfig
2550f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
255115647dc7Swdenk
2552c419d1d6SstroeseCPCI750_config:	unconfig
2553f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2554c419d1d6Sstroese
25553a473b2aSwdenkDB64360_config:	unconfig
2556f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
25573a473b2aSwdenk
25583a473b2aSwdenkDB64460_config:	unconfig
2559f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
25603a473b2aSwdenk
256115647dc7SwdenkELPPC_config: unconfig
2562f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
256315647dc7Swdenk
25647ebf7443SwdenkEVB64260_config	\
25657ebf7443SwdenkEVB64260_750CX_config:	unconfig
2566f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
25677ebf7443Swdenk
25684c52783bSroy zangmpc7448hpc2_config:  unconfig
25697f1d846eSJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
25704c52783bSroy zang
257115647dc7SwdenkP3G4_config: unconfig
2572f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
25737ebf7443Swdenk
25741eac2a71SStefan Roesep3m750_config	\
25751eac2a71SStefan Roesep3m7448_config:		unconfig
25761eac2a71SStefan Roese	@mkdir -p $(obj)include
25771eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
25781eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
25791eac2a71SStefan Roese	else \
25801eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
25811eac2a71SStefan Roese	fi
25821eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
25831eac2a71SStefan Roese
25847ebf7443SwdenkPCIPPC2_config \
25857ebf7443SwdenkPCIPPC6_config: unconfig
2586f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
25877ebf7443Swdenk
2588f5e0d039SHeiko Schocherppmc7xx_config: unconfig
2589f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2590f5e0d039SHeiko Schocher
2591699f0512SWolfgang DenkZUMA_config:	unconfig
2592699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2593699f0512SWolfgang Denk
25947ebf7443Swdenk#========================================================================
25957ebf7443Swdenk# ARM
25967ebf7443Swdenk#========================================================================
25977ebf7443Swdenk#########################################################################
25987ebf7443Swdenk## StrongARM Systems
25997ebf7443Swdenk#########################################################################
26007ebf7443Swdenk
2601ea66bc88Swdenkassabet_config	:	unconfig
2602f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2603ea66bc88Swdenk
26047ebf7443Swdenkdnp1110_config	:	unconfig
2605f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
26067ebf7443Swdenk
2607855a496fSwdenkgcplus_config	:	unconfig
2608f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2609855a496fSwdenk
2610855a496fSwdenklart_config	:	unconfig
2611f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
2612855a496fSwdenk
26137ebf7443Swdenkshannon_config	:	unconfig
2614f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
26157ebf7443Swdenk
26167ebf7443Swdenk#########################################################################
26172e5983d2Swdenk## ARM92xT Systems
26187ebf7443Swdenk#########################################################################
26197ebf7443Swdenk
2620a4b46ed6SUlf Samuelsson#########################################################################
2621a4b46ed6SUlf Samuelsson## Atmel AT91RM9200 Systems
2622a4b46ed6SUlf Samuelsson#########################################################################
262320b197c6SStelian Pop
2624a85f9f21Swdenkat91rm9200dk_config	:	unconfig
262565230107SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2626a85f9f21Swdenk
2627a85f9f21Swdenkcmc_pu2_config	:	unconfig
2628f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2629a85f9f21Swdenk
2630645da510SWolfgang Denkcsb637_config	:	unconfig
2631f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2632645da510SWolfgang Denk
2633a4b46ed6SUlf Samuelssonkb9202_config	:	unconfig
2634a4b46ed6SUlf Samuelsson	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2635a4b46ed6SUlf Samuelsson
2636ea8d989fSTimo Tuunainenm501sk_config	:	unconfig
2637ea8d989fSTimo Tuunainen	@$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
263887cb6862SWolfgang Denk
2639699f0512SWolfgang Denkmp2usb_config	:	unconfig
2640699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2641699f0512SWolfgang Denk
2642a4b46ed6SUlf Samuelsson#########################################################################
2643a4b46ed6SUlf Samuelsson## Atmel ARM926EJ-S Systems
2644a4b46ed6SUlf Samuelsson#########################################################################
2645a4b46ed6SUlf Samuelsson
26461079432eSSergey Lapinafeb9260_config:	unconfig
26471079432eSSergey Lapin	@$(MKCONFIG) $(@:_config=) arm arm926ejs afeb9260 NULL at91
26481079432eSSergey Lapin
2649a4b46ed6SUlf Samuelssonat91cap9adk_config	:	unconfig
26508ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2651a4b46ed6SUlf Samuelsson
265289a7a87fSNicolas Ferreat91sam9260ek_nandflash_config \
265389a7a87fSNicolas Ferreat91sam9260ek_dataflash_cs0_config \
265489a7a87fSNicolas Ferreat91sam9260ek_dataflash_cs1_config \
2655a4b46ed6SUlf Samuelssonat91sam9260ek_config	:	unconfig
2656e12d9a8fSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
265789a7a87fSNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
265889a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
265989a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
266089a7a87fSNicolas Ferre	elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
266189a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1"	>>$(obj)include/config.h ; \
266289a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
266389a7a87fSNicolas Ferre	else \
266489a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1"	>>$(obj)include/config.h ; \
266589a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
266689a7a87fSNicolas Ferre	fi;
266789a7a87fSNicolas Ferre	@$(MKCONFIG) -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
2668a4b46ed6SUlf Samuelsson
26694e170b16SNicolas Ferreat91sam9xeek_nandflash_config \
26704e170b16SNicolas Ferreat91sam9xeek_dataflash_cs0_config \
26714e170b16SNicolas Ferreat91sam9xeek_dataflash_cs1_config \
26724e170b16SNicolas Ferreat91sam9xeek_config	:	unconfig
26734e170b16SNicolas Ferre	@mkdir -p $(obj)include
26744e170b16SNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
26754e170b16SNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
26764e170b16SNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
26774e170b16SNicolas Ferre	elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
26784e170b16SNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1"	>>$(obj)include/config.h ; \
26794e170b16SNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
26804e170b16SNicolas Ferre	else \
26814e170b16SNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1"	>>$(obj)include/config.h ; \
26824e170b16SNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS1" ; \
26834e170b16SNicolas Ferre	fi;
26844e170b16SNicolas Ferre	@$(MKCONFIG) -n at91sam9xeek -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91sam9
26854e170b16SNicolas Ferre
268689a7a87fSNicolas Ferreat91sam9261ek_nandflash_config \
268789a7a87fSNicolas Ferreat91sam9261ek_dataflash_cs0_config \
268889a7a87fSNicolas Ferreat91sam9261ek_dataflash_cs3_config \
268928962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9261ek_config	:	unconfig
2690e12d9a8fSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
269189a7a87fSNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
269289a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
269389a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
269489a7a87fSNicolas Ferre	elif [ "$(findstring dataflash_cs3,$@)" ] ; then \
269589a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1"	>>$(obj)include/config.h ; \
269689a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS3" ; \
269789a7a87fSNicolas Ferre	else \
269889a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1"	>>$(obj)include/config.h ; \
269989a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
270089a7a87fSNicolas Ferre	fi;
270189a7a87fSNicolas Ferre	@$(MKCONFIG) -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91
270228962f5aSJean-Christophe PLAGNIOL-VILLARD
270389a7a87fSNicolas Ferreat91sam9263ek_nandflash_config \
270489a7a87fSNicolas Ferreat91sam9263ek_dataflash_config \
270589a7a87fSNicolas Ferreat91sam9263ek_dataflash_cs0_config \
270628962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_config	:	unconfig
2707e12d9a8fSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
270889a7a87fSNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
270989a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
271089a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
271189a7a87fSNicolas Ferre	else \
271289a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH 1"	>>$(obj)include/config.h ; \
271389a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
271489a7a87fSNicolas Ferre	fi;
271589a7a87fSNicolas Ferre	@$(MKCONFIG) -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91
271628962f5aSJean-Christophe PLAGNIOL-VILLARD
271789a7a87fSNicolas Ferreat91sam9rlek_nandflash_config \
271889a7a87fSNicolas Ferreat91sam9rlek_dataflash_config \
271989a7a87fSNicolas Ferreat91sam9rlek_dataflash_cs0_config \
272028962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9rlek_config	:	unconfig
2721e12d9a8fSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
272289a7a87fSNicolas Ferre	@if [ "$(findstring _nandflash,$@)" ] ; then \
272389a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_NANDFLASH 1"	>>$(obj)include/config.h ; \
272489a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in NAND FLASH" ; \
272589a7a87fSNicolas Ferre	else \
272689a7a87fSNicolas Ferre		echo "#define CONFIG_SYS_USE_DATAFLASH 1"	>>$(obj)include/config.h ; \
272789a7a87fSNicolas Ferre		$(XECHO) "... with environment variable in SPI DATAFLASH CS0" ; \
272889a7a87fSNicolas Ferre	fi;
272989a7a87fSNicolas Ferre	@$(MKCONFIG) -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
273028962f5aSJean-Christophe PLAGNIOL-VILLARD
273174f4304eSWolfgang Denk########################################################################
273287cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
273387cb6862SWolfgang Denkintegratorap_config	\
273487cb6862SWolfgang Denkap_config		\
273587cb6862SWolfgang Denkap966_config		\
273687cb6862SWolfgang Denkap922_config		\
273787cb6862SWolfgang Denkap922_XA10_config	\
273887cb6862SWolfgang Denkap7_config		\
273987cb6862SWolfgang Denkap720t_config		\
274087cb6862SWolfgang Denkap920t_config		\
274187cb6862SWolfgang Denkap926ejs_config		\
274287cb6862SWolfgang Denkap946es_config: unconfig
2743e4943ec5SJean-Christophe PLAGNIOL-VILLARD	@board/armltd/integratorap/split_by_variant.sh $@
27443d3befa7Swdenk
274587cb6862SWolfgang Denkintegratorcp_config	\
274687cb6862SWolfgang Denkcp_config		\
274787cb6862SWolfgang Denkcp920t_config		\
274887cb6862SWolfgang Denkcp926ejs_config		\
274987cb6862SWolfgang Denkcp946es_config		\
275087cb6862SWolfgang Denkcp1136_config		\
275187cb6862SWolfgang Denkcp966_config		\
275287cb6862SWolfgang Denkcp922_config		\
275387cb6862SWolfgang Denkcp922_XA10_config	\
275487cb6862SWolfgang Denkcp1026_config: unconfig
2755e4943ec5SJean-Christophe PLAGNIOL-VILLARD	@board/armltd/integratorcp/split_by_variant.sh $@
275625d6712aSwdenk
2757699f0512SWolfgang Denkdavinci_dvevm_config :	unconfig
275889d51d02SHugo Villeneuve	@$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci
2759699f0512SWolfgang Denk
2760699f0512SWolfgang Denkdavinci_schmoogie_config :	unconfig
2761699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2762699f0512SWolfgang Denk
2763699f0512SWolfgang Denkdavinci_sffsdr_config :	unconfig
2764699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2765699f0512SWolfgang Denk
2766699f0512SWolfgang Denkdavinci_sonata_config :	unconfig
2767699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2768699f0512SWolfgang Denk
2769f832d8a1Swdenklpd7a400_config \
2770f832d8a1Swdenklpd7a404_config:	unconfig
2771f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
27723d3befa7Swdenk
2773281e00a3Swdenkmx1ads_config	:	unconfig
2774f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2775281e00a3Swdenk
2776281e00a3Swdenkmx1fs2_config	:	unconfig
2777f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2778281e00a3Swdenk
2779ac7eb8a3SWolfgang Denknetstar_config:		unconfig
2780f4e7cbfcSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm925t netstar
2781ac7eb8a3SWolfgang Denk
2782d5254f14SAlessandro Rubininmdk8815_config \
2783d5254f14SAlessandro Rubininmdk8815_onenand_config:	unconfig
2784d5254f14SAlessandro Rubini	@mkdir -p $(obj)include
2785d5254f14SAlessandro Rubini	@ > $(obj)include/config.h
2786d5254f14SAlessandro Rubini	@if [ "$(findstring _onenand, $@)" ] ; then \
2787d5254f14SAlessandro Rubini		echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \
2788d5254f14SAlessandro Rubini		$(XECHO) "... configured for OneNand Flash"; \
2789d5254f14SAlessandro Rubini	else \
2790d5254f14SAlessandro Rubini		$(XECHO) "... configured for Nand Flash"; \
2791d5254f14SAlessandro Rubini	fi
2792d5254f14SAlessandro Rubini	@$(MKCONFIG) -a nmdk8815 arm arm926ejs nmdk8815 st nomadik
2793d5254f14SAlessandro Rubini
27942e5983d2Swdenkomap1510inn_config :	unconfig
2795f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
27962e5983d2Swdenk
2797a4b46ed6SUlf Samuelssonxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2798a4b46ed6SUlf Samuelsson
279963e73c9aSwdenkomap1610inn_config \
280063e73c9aSwdenkomap1610inn_cs0boot_config \
280163e73c9aSwdenkomap1610inn_cs3boot_config \
28023ff02c27Swdenkomap1610inn_cs_autoboot_config \
280363e73c9aSwdenkomap1610h2_config \
280463e73c9aSwdenkomap1610h2_cs0boot_config \
28053ff02c27Swdenkomap1610h2_cs3boot_config \
28063ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
2807f9328639SMarian Balakowicz	@mkdir -p $(obj)include
280863e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2809cdd917a4SWolfgang Denk		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2810ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
28113ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2812cdd917a4SWolfgang Denk		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2813ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS_AUTO boot"; \
281463e73c9aSwdenk	else \
2815cdd917a4SWolfgang Denk		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2816ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
281763e73c9aSwdenk	fi;
2818f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
28196f21347dSwdenk
2820699f0512SWolfgang Denkomap5912osk_config :	unconfig
2821699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2822699f0512SWolfgang Denk
2823a4b46ed6SUlf Samuelssonxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2824a4b46ed6SUlf Samuelsson
2825a56bd922Swdenkomap730p2_config \
2826a56bd922Swdenkomap730p2_cs0boot_config \
2827a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
2828f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2829a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2830f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2831ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
2832a56bd922Swdenk	else \
2833f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2834ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
2835a56bd922Swdenk	fi;
2836f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2837a56bd922Swdenk
283832cb2c70SWolfgang Denksbc2410x_config: unconfig
2839f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
284032cb2c70SWolfgang Denk
2841281e00a3Swdenkscb9328_config	:	unconfig
2842f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2843281e00a3Swdenk
28447ebf7443Swdenksmdk2400_config	:	unconfig
2845cfca3383SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 samsung s3c24x0
28467ebf7443Swdenk
28477ebf7443Swdenksmdk2410_config	:	unconfig
2848cfca3383SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 samsung s3c24x0
28497ebf7443Swdenk
285047fd3bffSJean-Christophe PLAGNIOL-VILLARDSX1_stdout_serial_config \
28512d24a3a7SwdenkSX1_config:		unconfig
285247fd3bffSJean-Christophe PLAGNIOL-VILLARD	@mkdir -p $(obj)include
285347fd3bffSJean-Christophe PLAGNIOL-VILLARD	@if [ "$(findstring _stdout_serial_, $@)" ] ; then \
285447fd3bffSJean-Christophe PLAGNIOL-VILLARD		echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
285547fd3bffSJean-Christophe PLAGNIOL-VILLARD		$(XECHO) "... configured for stdout serial"; \
285647fd3bffSJean-Christophe PLAGNIOL-VILLARD	else \
285747fd3bffSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
285847fd3bffSJean-Christophe PLAGNIOL-VILLARD		$(XECHO) "... configured for stdout usbtty"; \
285947fd3bffSJean-Christophe PLAGNIOL-VILLARD	fi;
286047fd3bffSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) SX1 arm arm925t sx1
28612d24a3a7Swdenk
2862b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
2863a4b46ed6SUlf Samuelssonxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2864a4b46ed6SUlf Samuelsson
286543d9616cSwdenktrab_config \
2866b0639ca3Swdenktrab_bigram_config \
2867b0639ca3Swdenktrab_bigflash_config \
2868f54ebdfaSwdenktrab_old_config:	unconfig
2869f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2870f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
2871b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
2872f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2873f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
2874ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2875b0639ca3Swdenk		}
2876b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
2877f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2878f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2879ae6d1056SWolfgang Denk		  $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2880f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2881b0639ca3Swdenk		}
2882f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
2883f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2884f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2885ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2886f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
288743d9616cSwdenk		}
2888f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
28897ebf7443Swdenk
28901cb8e980SwdenkVCMA9_config	:	unconfig
2891f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
28921cb8e980Swdenk
2893699f0512SWolfgang Denk#########################################################################
289487cb6862SWolfgang Denk# ARM supplied Versatile development boards
2895699f0512SWolfgang Denk#########################################################################
2896699f0512SWolfgang Denk
2897699f0512SWolfgang Denkcm4008_config	:	unconfig
2898699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2899699f0512SWolfgang Denk
2900699f0512SWolfgang Denkcm41xx_config	:	unconfig
2901699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2902699f0512SWolfgang Denk
290387cb6862SWolfgang Denkversatile_config	\
290487cb6862SWolfgang Denkversatileab_config	\
290587cb6862SWolfgang Denkversatilepb_config :	unconfig
2906e4943ec5SJean-Christophe PLAGNIOL-VILLARD	@board/armltd/versatile/split_by_variant.sh $@
2907074cff0dSwdenk
29083c2b3d45Swdenkvoiceblue_config:	unconfig
29094fedfddfSLadislav Michl	@$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
29103c2b3d45Swdenk
2911074cff0dSwdenk#########################################################################
2912074cff0dSwdenk## S3C44B0 Systems
2913074cff0dSwdenk#########################################################################
2914074cff0dSwdenk
2915074cff0dSwdenkB2_config	:	unconfig
2916f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2917074cff0dSwdenk
29187ebf7443Swdenk#########################################################################
29197ebf7443Swdenk## ARM720T Systems
29207ebf7443Swdenk#########################################################################
29217ebf7443Swdenk
2922c570b2fdSWolfgang Denkarmadillo_config:	unconfig
2923f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2924c570b2fdSWolfgang Denk
29257ebf7443Swdenkep7312_config	:	unconfig
2926f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
29277ebf7443Swdenk
29282d24a3a7Swdenkimpa7_config	:	unconfig
2929f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
29302d24a3a7Swdenk
29312d1a537dSwdenkmodnet50_config :	unconfig
2932f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
29332d1a537dSwdenk
293439539887Swdenkevb4510_config :	unconfig
2935f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
293639539887Swdenk
29376bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
2938b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2939b0d8f5bfSPeter Pearse
2940b0d8f5bfSPeter PearseSMN42_config	:	unconfig
2941b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
29426bd2447eSGary Jennejohn
29437ebf7443Swdenk#########################################################################
2944f904cdbbSDirk Behme## ARM CORTEX Systems
2945f904cdbbSDirk Behme#########################################################################
2946f904cdbbSDirk Behme
2947f904cdbbSDirk Behmeomap3_beagle_config :	unconfig
2948f904cdbbSDirk Behme	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 beagle omap3 omap3
2949f904cdbbSDirk Behme
29509d0fc811SDirk Behmeomap3_overo_config :	unconfig
29519d0fc811SDirk Behme	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 overo omap3 omap3
29529d0fc811SDirk Behme
2953ad9bc8e5SDirk Behmeomap3_evm_config :	unconfig
2954ad9bc8e5SDirk Behme	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 evm omap3 omap3
2955ad9bc8e5SDirk Behme
29562be2c6ccSDirk Behmeomap3_pandora_config :	unconfig
29572be2c6ccSDirk Behme	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 pandora omap3 omap3
29582be2c6ccSDirk Behme
29597379f45aSDirk Behmeomap3_zoom1_config :	unconfig
29607379f45aSDirk Behme	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 zoom1 omap3 omap3
29617379f45aSDirk Behme
2962f904cdbbSDirk Behme#########################################################################
296343d9616cSwdenk## XScale Systems
29647ebf7443Swdenk#########################################################################
29657ebf7443Swdenk
2966799891efSMichael Schwingenactux1_config	:	unconfig
2967799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux1
2968799891efSMichael Schwingen
2969799891efSMichael Schwingenactux2_config	:	unconfig
2970799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux2
2971799891efSMichael Schwingen
2972799891efSMichael Schwingenactux3_config	:	unconfig
2973799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux3
2974799891efSMichael Schwingen
2975799891efSMichael Schwingenactux4_config	:	unconfig
2976799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux4
2977799891efSMichael Schwingen
2978fabd46acSwdenkcerf250_config :	unconfig
2979f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
2980fabd46acSwdenk
29817ebf7443Swdenkcradle_config	:	unconfig
2982f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
29837ebf7443Swdenk
29847ebf7443Swdenkcsb226_config	:	unconfig
2985f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
29867ebf7443Swdenk
298791c82076SJean-Christophe PLAGNIOL-VILLARDdelta_config :	unconfig
2988f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
29890be248faSWolfgang Denk
299043d9616cSwdenkinnokom_config	:	unconfig
2991f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
299243d9616cSwdenk
29932d5b561eSwdenkixdp425_config	:	unconfig
2994f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
29952d5b561eSwdenk
2996ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
2997f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2998ba94a1bbSWolfgang Denk
299943d9616cSwdenklubbock_config	:	unconfig
3000f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
300143d9616cSwdenk
30025720df78SHeiko Schocherpleb2_config	:	unconfig
3003f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
30045720df78SHeiko Schocher
300552f52c14Swdenklogodl_config	:	unconfig
3006f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
300752f52c14Swdenk
30089d8d5a5bSStefan Roesepdnb3_config \
30099d8d5a5bSStefan Roesescpu_config:	unconfig
3010cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
30119d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
3012cdd917a4SWolfgang Denk		echo "#define CONFIG_SCPU"	>>$(obj)include/config.h ; \
3013ae6d1056SWolfgang Denk		$(XECHO) "... on SCPU board variant" ; \
30149d8d5a5bSStefan Roese	fi
30159d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
3016ba94a1bbSWolfgang Denk
3017f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
3018f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
3019f57f70aaSWolfgang Denk
30205e5803e1Sstefano babictrizepsiv_config	:	unconfig
30215e5803e1Sstefano babic	@$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
30225e5803e1Sstefano babic
30233e38691eSwdenkwepep250_config	:	unconfig
3024f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
30253e38691eSwdenk
30264ec3a7f0Swdenkxaeniax_config	:	unconfig
3027f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
30284ec3a7f0Swdenk
3029efa329cbSwdenkxm250_config	:	unconfig
3030f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
3031efa329cbSwdenk
3032ca0e7748Swdenkxsengine_config :	unconfig
3033f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
3034ca0e7748Swdenk
3035e0269579SMarkus Klotzbücherzylonite_config :
3036f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
3037e0269579SMarkus Klotzbücher
30388ed96046Swdenk#########################################################################
30398ed96046Swdenk## ARM1136 Systems
30408ed96046Swdenk#########################################################################
30415ca9881aSPeter Pearse
30425ca9881aSPeter Pearseapollon_config		: unconfig
3043c6fe4dabSWolfgang Denk	@mkdir -p $(obj)include
3044f2302d44SStefan Roese	@mkdir -p $(obj)onenand_ipl/board/apollon
3045751b9b51SKyungmin Park	@echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
30465252ed95SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
3047751b9b51SKyungmin Park	@echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
30488ed96046Swdenk
3049caebc95bSSascha Hauerimx31_litekit_config	: unconfig
3050caebc95bSSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
3051caebc95bSSascha Hauer
3052a2bb7105SGuennadi Liakhovetskiimx31_phycore_eet_config \
30535ad86216SSascha Hauerimx31_phycore_config	: unconfig
3054a2bb7105SGuennadi Liakhovetski	@if [ -n "$(findstring _eet_,$@)" ]; then			\
3055a2bb7105SGuennadi Liakhovetski		echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h;	\
3056a2bb7105SGuennadi Liakhovetski	fi
3057a2bb7105SGuennadi Liakhovetski	@$(MKCONFIG) -a imx31_phycore arm arm1136 imx31_phycore NULL mx31
30585ad86216SSascha Hauer
3059b5dc9b30SGuennadi Liakhovetskimx31ads_config		: unconfig
3060f5acb9fdSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
3061b5dc9b30SGuennadi Liakhovetski
3062699f0512SWolfgang Denkomap2420h4_config	: unconfig
3063699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
3064699f0512SWolfgang Denk
30650d19f6c8SIlya Yanokqong_config		: unconfig
30660d19f6c8SIlya Yanok	@$(MKCONFIG) $(@:_config=) arm arm1136 qong davedenx mx31
30670d19f6c8SIlya Yanok
30680d19f6c8SIlya Yanok
306911edcfe2SGuennadi Liakhovetski#########################################################################
307011edcfe2SGuennadi Liakhovetski## ARM1176 Systems
307111edcfe2SGuennadi Liakhovetski#########################################################################
307211edcfe2SGuennadi Liakhovetskismdk6400_noUSB_config	\
307311edcfe2SGuennadi Liakhovetskismdk6400_config	:	unconfig
307411edcfe2SGuennadi Liakhovetski	@mkdir -p $(obj)include $(obj)board/samsung/smdk6400
307511edcfe2SGuennadi Liakhovetski	@mkdir -p $(obj)nand_spl/board/samsung/smdk6400
307611edcfe2SGuennadi Liakhovetski	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
307711edcfe2SGuennadi Liakhovetski	@if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then			\
307811edcfe2SGuennadi Liakhovetski		echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
307911edcfe2SGuennadi Liakhovetski		$(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx;		\
308011edcfe2SGuennadi Liakhovetski	else										\
308111edcfe2SGuennadi Liakhovetski		echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
308211edcfe2SGuennadi Liakhovetski		$(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx;	\
308311edcfe2SGuennadi Liakhovetski	fi
308411edcfe2SGuennadi Liakhovetski	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
308511edcfe2SGuennadi Liakhovetski
30862262cfeeSwdenk#========================================================================
30872262cfeeSwdenk# i386
30882262cfeeSwdenk#========================================================================
30892262cfeeSwdenk#########################################################################
30902262cfeeSwdenk## AMD SC520 CDP
30912262cfeeSwdenk#########################################################################
3092c620c01eSGraeme RusseNET_config	:	unconfig
309340797618SGraeme Russ	@$(MKCONFIG) $(@:_config=) i386 i386 eNET NULL sc520
3094c620c01eSGraeme Russ
3095a3f4c123SWolfgang Denksc520_cdp_config	:	unconfig
309640797618SGraeme Russ	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp NULL sc520
3097a3f4c123SWolfgang Denk
30987a8e9bedSwdenksc520_spunk_config	:	unconfig
309940797618SGraeme Russ	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520
31007a8e9bedSwdenk
31017a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
310240797618SGraeme Russ	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk NULL sc520
31037a8e9bedSwdenk
310443d9616cSwdenk#========================================================================
310543d9616cSwdenk# MIPS
310643d9616cSwdenk#========================================================================
31077ebf7443Swdenk#########################################################################
310843d9616cSwdenk## MIPS32 4Kc
310943d9616cSwdenk#########################################################################
311043d9616cSwdenk
3111e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
3112e0ac62d7Swdenk
3113e0ac62d7Swdenkincaip_100MHz_config	\
3114e0ac62d7Swdenkincaip_133MHz_config	\
3115e0ac62d7Swdenkincaip_150MHz_config	\
311643d9616cSwdenkincaip_config: unconfig
3117f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3118e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
3119f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
3120ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
3121e0ac62d7Swdenk		}
3122e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
3123f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
3124ae6d1056SWolfgang Denk		  $(XECHO) "... with 133MHz system clock" ; \
3125e0ac62d7Swdenk		}
3126e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
3127f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
3128ae6d1056SWolfgang Denk		  $(XECHO) "... with 150MHz system clock" ; \
3129e0ac62d7Swdenk		}
3130f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
3131e0ac62d7Swdenk
3132f4863a7aSwdenktb0229_config: unconfig
3133f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
3134f4863a7aSwdenk
31352a61eff6SStefan Roesevct_premium_config		\
31362a61eff6SStefan Roesevct_premium_small_config	\
31372a61eff6SStefan Roesevct_premium_onenand_config	\
31382a61eff6SStefan Roesevct_premium_onenand_small_config \
31392a61eff6SStefan Roesevct_platinum_config		\
31402a61eff6SStefan Roesevct_platinum_small_config	\
31412a61eff6SStefan Roesevct_platinum_onenand_config	\
31422a61eff6SStefan Roesevct_platinum_onenand_small_config \
31432a61eff6SStefan Roesevct_platinumavc_config		\
31442a61eff6SStefan Roesevct_platinumavc_small_config	\
31452a61eff6SStefan Roesevct_platinumavc_onenand_config	\
31462a61eff6SStefan Roesevct_platinumavc_onenand_small_config: unconfig
31472a61eff6SStefan Roese	@mkdir -p $(obj)include
31482a61eff6SStefan Roese	@if [ "$(findstring _premium,$@)" ] ; then \
31492a61eff6SStefan Roese		echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h ; \
31502a61eff6SStefan Roese		$(XECHO) "... on Premium board variant" ; \
31512a61eff6SStefan Roese	fi
31522a61eff6SStefan Roese	@if [ "$(findstring _platinum_,$@)" ] ; then \
31532a61eff6SStefan Roese		echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h ; \
31542a61eff6SStefan Roese		$(XECHO) "... on Platinum board variant" ; \
31552a61eff6SStefan Roese	fi
31562a61eff6SStefan Roese	@if [ "$(findstring _platinumavc,$@)" ] ; then \
31572a61eff6SStefan Roese		echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h ; \
31582a61eff6SStefan Roese		$(XECHO) "... on PlatinumAVC board variant" ; \
31592a61eff6SStefan Roese	fi
31602a61eff6SStefan Roese	@if [ "$(findstring _onenand,$@)" ] ; then \
31612a61eff6SStefan Roese		echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h ; \
31622a61eff6SStefan Roese		$(XECHO) "... on OneNAND board variant" ; \
31632a61eff6SStefan Roese	fi
31642a61eff6SStefan Roese	@if [ "$(findstring _small,$@)" ] ; then \
31652a61eff6SStefan Roese		echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h ; \
31662a61eff6SStefan Roese		$(XECHO) "... stripped down image variant" ; \
31672a61eff6SStefan Roese	fi
31682a61eff6SStefan Roese	@$(MKCONFIG) -a vct mips mips vct micronas
31692a61eff6SStefan Roese
3170e0ac62d7Swdenk#########################################################################
317169459791Swdenk## MIPS32 AU1X00
317269459791Swdenk#########################################################################
3173699f0512SWolfgang Denk
317469459791Swdenkdbau1000_config		:	unconfig
3175f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3176210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
3177f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
317869459791Swdenk
317969459791Swdenkdbau1100_config		:	unconfig
3180f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3181210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
3182f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
318369459791Swdenk
318469459791Swdenkdbau1500_config		:	unconfig
3185f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3186210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
3187f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
318869459791Swdenk
3189ff36fd85Swdenkdbau1550_config		:	unconfig
3190f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3191210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3192f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3193ff36fd85Swdenk
3194ff36fd85Swdenkdbau1550_el_config	:	unconfig
3195f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3196210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
3197f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
3198ff36fd85Swdenk
31998a773983SShinya Kuribayashigth2_config		:	unconfig
32008a773983SShinya Kuribayashi	@mkdir -p $(obj)include
32018a773983SShinya Kuribayashi	@echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
32028a773983SShinya Kuribayashi	@$(MKCONFIG) -a gth2 mips mips gth2
32038a773983SShinya Kuribayashi
3204699f0512SWolfgang Denkpb1000_config		:	unconfig
3205699f0512SWolfgang Denk	@mkdir -p $(obj)include
3206699f0512SWolfgang Denk	@echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
3207699f0512SWolfgang Denk	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
3208699f0512SWolfgang Denk
32090764c164SVlad Lunguqemu_mips_config	: unconfig
32100764c164SVlad Lungu	@mkdir -p $(obj)include
3211210ed200SWolfgang Denk	@echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
32120764c164SVlad Lungu	@$(MKCONFIG) -a qemu-mips mips mips qemu-mips
32130764c164SVlad Lungu
321469459791Swdenk#########################################################################
3215e0ac62d7Swdenk## MIPS64 5Kc
3216e0ac62d7Swdenk#########################################################################
321743d9616cSwdenk
32183e38691eSwdenkpurple_config :		unconfig
3219f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
322043d9616cSwdenk
32214a551709Swdenk#========================================================================
32224a551709Swdenk# Nios
32234a551709Swdenk#========================================================================
32244a551709Swdenk#########################################################################
32254a551709Swdenk## Nios32
32264a551709Swdenk#########################################################################
32274a551709Swdenk
3228699f0512SWolfgang DenkADNPESC1_DNPEVA2_base_32_config	\
3229699f0512SWolfgang DenkADNPESC1_base_32_config		\
3230699f0512SWolfgang DenkADNPESC1_config: unconfig
3231699f0512SWolfgang Denk	@mkdir -p $(obj)include
3232699f0512SWolfgang Denk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
3233699f0512SWolfgang Denk		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
3234699f0512SWolfgang Denk		  $(XECHO) "... DNP/EVA2 configuration" ; \
3235699f0512SWolfgang Denk		}
3236699f0512SWolfgang Denk	@[ -z "$(findstring _base_32,$@)" ] || \
3237699f0512SWolfgang Denk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3238699f0512SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration" ; \
3239699f0512SWolfgang Denk		}
3240699f0512SWolfgang Denk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
3241699f0512SWolfgang Denk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3242699f0512SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
3243699f0512SWolfgang Denk		}
3244699f0512SWolfgang Denk	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
3245699f0512SWolfgang Denk
3246c935d3bdSwdenkDK1C20_safe_32_config		\
3247c935d3bdSwdenkDK1C20_standard_32_config	\
32484a551709SwdenkDK1C20_config:	unconfig
3249f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3250c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
3251f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3252ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
3253c935d3bdSwdenk		}
3254c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
3255f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3256ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
3257c935d3bdSwdenk		}
3258c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
3259f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3260ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3261c935d3bdSwdenk		}
3262f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
3263c935d3bdSwdenk
3264c935d3bdSwdenkDK1S10_safe_32_config		\
3265c935d3bdSwdenkDK1S10_standard_32_config	\
3266ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
3267c935d3bdSwdenkDK1S10_config:	unconfig
3268f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3269c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
3270f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3271ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
3272c935d3bdSwdenk		}
3273c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
3274f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3275ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
3276c935d3bdSwdenk		}
3277ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
3278f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
3279ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
3280ec4c544bSwdenk		}
3281c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
3282f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3283ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3284c935d3bdSwdenk		}
3285f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
32864a551709Swdenk
32875c952cf0Swdenk#########################################################################
32885c952cf0Swdenk## Nios-II
32895c952cf0Swdenk#########################################################################
32905c952cf0Swdenk
32919cc83378SScott McNuttEP1C20_config : unconfig
3292f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
32939cc83378SScott McNutt
32949cc83378SScott McNuttEP1S10_config : unconfig
3295f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
32969cc83378SScott McNutt
32979cc83378SScott McNuttEP1S40_config : unconfig
3298f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
32999cc83378SScott McNutt
33005c952cf0SwdenkPK1C20_config : unconfig
3301f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
33025c952cf0Swdenk
33035c952cf0SwdenkPCI5441_config : unconfig
3304f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
33054a551709Swdenk
3306507bbe3eSwdenk#========================================================================
3307507bbe3eSwdenk## Microblaze
3308699f0512SWolfgang Denk#========================================================================
3309507bbe3eSwdenk
331052a822edSMichal Simekmicroblaze-generic_config:	unconfig
3311cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
331252a822edSMichal Simek	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze microblaze-generic xilinx
3313cfc67116SMichal Simek
3314699f0512SWolfgang Denksuzaku_config:	unconfig
3315699f0512SWolfgang Denk	@mkdir -p $(obj)include
3316699f0512SWolfgang Denk	@echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
3317699f0512SWolfgang Denk	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
3318699f0512SWolfgang Denk
331960fa72d6SMike Frysinger#========================================================================
332060fa72d6SMike Frysinger# Blackfin
332160fa72d6SMike Frysinger#========================================================================
33220afe519aSWolfgang Denk
332360fa72d6SMike Frysinger# Analog Devices boards
332460fa72d6SMike FrysingerBFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
33250afe519aSWolfgang Denk
332660fa72d6SMike Frysinger$(BFIN_BOARDS:%=%_config)	: unconfig
33279171fc81SMike Frysinger	@$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
332826bf7decSAubrey Li
332960fa72d6SMike Frysinger$(BFIN_BOARDS):
333060fa72d6SMike Frysinger	$(MAKE) $@_config
333160fa72d6SMike Frysinger	$(MAKE)
33320afe519aSWolfgang Denk
33335e3b0bc1SHaavard Skinnemoen#========================================================================
33345e3b0bc1SHaavard Skinnemoen# AVR32
33355e3b0bc1SHaavard Skinnemoen#========================================================================
3336699f0512SWolfgang Denk
3337699f0512SWolfgang Denkatngw100_config	:	unconfig
3338699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
33395e3b0bc1SHaavard Skinnemoen
33405e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
334136f28f8aSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
33425e3b0bc1SHaavard Skinnemoen
3343667568dbSHaavard Skinnemoenatstk1003_config	:	unconfig
3344667568dbSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3345667568dbSHaavard Skinnemoen
334664ff2357SHaavard Skinnemoenatstk1004_config	:	unconfig
334764ff2357SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
33480afe519aSWolfgang Denk
33490a2e4879SHaavard Skinnemoenatstk1006_config	:	unconfig
33500a2e4879SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
33510a2e4879SHaavard Skinnemoen
33520eb5717aSHans-Christian Egtvedtfavr-32-ezkit_config	:	unconfig
33530eb5717aSHans-Christian Egtvedt	@$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
33540eb5717aSHans-Christian Egtvedt
33555c374c9eSJulien Mayhammerhead_config	:	unconfig
33565c374c9eSJulien May	@$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
33575c374c9eSJulien May
335813b50fe3SMark Jacksonmimc200_config		:	unconfig
335913b50fe3SMark Jackson	@$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
336013b50fe3SMark Jackson
3361699f0512SWolfgang Denk#========================================================================
3362699f0512SWolfgang Denk# SH3 (SuperH)
3363699f0512SWolfgang Denk#========================================================================
33647ebf7443Swdenk
336569df3c4dSNobuhiro Iwamatsu#########################################################################
3366c655fad0SNobuhiro Iwamatsu## sh2 (Renesas SuperH)
3367c655fad0SNobuhiro Iwamatsu#########################################################################
3368c655fad0SNobuhiro Iwamatsursk7203_config: unconfig
3369a5b04d00SKieran Bingham	@mkdir -p $(obj)include
33704d41650eSPeter Griffin	@echo "#define CONFIG_RSK7203 1" > $(obj)include/config.h
33719a1d3557SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh2 rsk7203 renesas
3372c655fad0SNobuhiro Iwamatsu
3373c655fad0SNobuhiro Iwamatsu#########################################################################
3374b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH)
3375b2b5e2bbSYoshihiro Shimoda#########################################################################
3376699f0512SWolfgang Denk
33773313e0e2SMark Jonasmpr2_config: unconfig
33783ab4827cSWolfgang Denk	@mkdir -p $(obj)include
33793ab4827cSWolfgang Denk	@echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
33803313e0e2SMark Jonas	@$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
33813313e0e2SMark Jonas
3382b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig
33833ab4827cSWolfgang Denk	@mkdir -p $(obj)include
33843ab4827cSWolfgang Denk	@echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
338591c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3386b2b5e2bbSYoshihiro Shimoda
3387b2b5e2bbSYoshihiro Shimoda#########################################################################
338869df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH)
338969df3c4dSNobuhiro Iwamatsu#########################################################################
3390699f0512SWolfgang Denk
3391699f0512SWolfgang DenkMigoR_config :       unconfig
3392699f0512SWolfgang Denk	@mkdir -p $(obj)include
3393699f0512SWolfgang Denk	@echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
33949a1d3557SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 MigoR renesas
3395699f0512SWolfgang Denk
339669df3c4dSNobuhiro Iwamatsums7750se_config: unconfig
33973ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3398210ed200SWolfgang Denk	@echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
339991c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
340069df3c4dSNobuhiro Iwamatsu
3401d91ea45dSNobuhiro Iwamatsums7722se_config :	unconfig
34023ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3403210ed200SWolfgang Denk	@echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
340491c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
34057a8e9bedSwdenk
3406699f0512SWolfgang Denkr2dplus_config  :   unconfig
34073ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3408699f0512SWolfgang Denk	@echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3409c1da2a22SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus renesas
3410c2042f59Sgoda.yusuke
3411c133c1fbSYusuke Godar7780mp_config: unconfig
34123ab4827cSWolfgang Denk	@mkdir -p $(obj)include
34133ab4827cSWolfgang Denk	@echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3414acd3e30dSNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp renesas
3415c133c1fbSYusuke Goda
34167faddaecSNobuhiro Iwamatsush7763rdp_config  :   unconfig
34173ab4827cSWolfgang Denk	@mkdir -p $(obj)include
34183ab4827cSWolfgang Denk	@echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
341978385bf2SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp renesas
34207faddaecSNobuhiro Iwamatsu
3421ada93182SYoshihiro Shimodaxtract_sh7785lcr = $(subst _32bit,,$(subst _config,,$1))
3422ada93182SYoshihiro Shimodash7785lcr_32bit_config \
34230d53a47dSNobuhiro Iwamatsush7785lcr_config  :   unconfig
34240d53a47dSNobuhiro Iwamatsu	@ >include/config.h
34250d53a47dSNobuhiro Iwamatsu	@echo "#define CONFIG_SH7785LCR 1" >> include/config.h
3426ada93182SYoshihiro Shimoda	@if [ "$(findstring 32bit, $@)" ] ; then \
3427ada93182SYoshihiro Shimoda		echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \
3428ada93182SYoshihiro Shimoda		cp $(obj)board/renesas/sh7785lcr/u-boot_32bit \
3429ada93182SYoshihiro Shimoda			$(obj)board/renesas/sh7785lcr/u-boot.lds ; \
3430ada93182SYoshihiro Shimoda		echo "TEXT_BASE = 0x8ff80000" > \
3431ada93182SYoshihiro Shimoda			$(obj)board/renesas/sh7785lcr/config.tmp ; \
3432ada93182SYoshihiro Shimoda		  $(XECHO) " ... enable 32-Bit Address Extended Mode" ; \
3433ada93182SYoshihiro Shimoda	else \
3434ada93182SYoshihiro Shimoda		cp $(obj)board/renesas/sh7785lcr/u-boot_29bit \
3435ada93182SYoshihiro Shimoda			$(obj)board/renesas/sh7785lcr/u-boot.lds ; \
3436ada93182SYoshihiro Shimoda	fi
3437ada93182SYoshihiro Shimoda	@$(MKCONFIG) -a $(call xtract_sh7785lcr,$@) sh sh4 sh7785lcr renesas
34380d53a47dSNobuhiro Iwamatsu
34396f0da497SNobuhiro Iwamatsuap325rxa_config  :   unconfig
34406f0da497SNobuhiro Iwamatsu	@mkdir -p $(obj)include
34416f0da497SNobuhiro Iwamatsu	@echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
3442f84e6ea2SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa renesas
34436f0da497SNobuhiro Iwamatsu
3444c2f02da2SDaniel Hellstrom#========================================================================
3445c2f02da2SDaniel Hellstrom# SPARC
3446c2f02da2SDaniel Hellstrom#========================================================================
3447699f0512SWolfgang Denk
34481e9a164eSDaniel Hellstrom#########################################################################
34491e9a164eSDaniel Hellstrom## LEON3
34501e9a164eSDaniel Hellstrom#########################################################################
3451c2f02da2SDaniel Hellstrom
345271d7e4c0SDaniel Hellstrom# Gaisler GR-XC3S-1500 board
345371d7e4c0SDaniel Hellstromgr_xc3s_1500_config : unconfig
345471d7e4c0SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
345571d7e4c0SDaniel Hellstrom
34566ed8a43aSDaniel Hellstrom# Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
34576ed8a43aSDaniel Hellstromgr_cpci_ax2000_config : unconfig
34586ed8a43aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
34596ed8a43aSDaniel Hellstrom
34606940383dSDaniel Hellstrom# Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
34616940383dSDaniel Hellstrom# Development board Stratix II edition, FPGA Device EP2S60.
34626940383dSDaniel Hellstromgr_ep2s60_config: unconfig
34636940383dSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
34646940383dSDaniel Hellstrom
3465823edd8aSDaniel Hellstrom# Gaisler LEON3 GRSIM simulator
3466823edd8aSDaniel Hellstromgrsim_config : unconfig
3467823edd8aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3468823edd8aSDaniel Hellstrom
34697ebf7443Swdenk#########################################################################
3470b330990cSDaniel Hellstrom## LEON2
3471b330990cSDaniel Hellstrom#########################################################################
3472b330990cSDaniel Hellstrom
3473ab68f921SDaniel Hellstrom# Gaisler LEON2 GRSIM simulator
3474ab68f921SDaniel Hellstromgrsim_leon2_config : unconfig
3475ab68f921SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3476ab68f921SDaniel Hellstrom
34777ebf7443Swdenk#########################################################################
34787ebf7443Swdenk#########################################################################
34797ebf7443Swdenk#########################################################################
348085ec0bccSwdenk
34813e38691eSwdenkclean:
3482f9301e1cSWolfgang Denk	@rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
3483f9301e1cSWolfgang Denk	       $(obj)examples/hello_world  $(obj)examples/interrupt	  \
3484f9301e1cSWolfgang Denk	       $(obj)examples/mem_to_mem_idma2intr			  \
3485f9301e1cSWolfgang Denk	       $(obj)examples/sched	   $(obj)examples/smc91111_eeprom \
3486f9301e1cSWolfgang Denk	       $(obj)examples/test_burst   $(obj)examples/timer
3487f9301e1cSWolfgang Denk	@rm -f $(obj)tools/bmp_logo	   $(obj)tools/easylogo/easylogo  \
3488f9301e1cSWolfgang Denk	       $(obj)tools/env/{fw_printenv,fw_setenv}			  \
3489f9301e1cSWolfgang Denk	       $(obj)tools/envcrc					  \
3490f9301e1cSWolfgang Denk	       $(obj)tools/gdb/{astest,gdbcont,gdbsend}			  \
3491f9301e1cSWolfgang Denk	       $(obj)tools/gen_eth_addr    $(obj)tools/img2srec		  \
3492f9301e1cSWolfgang Denk	       $(obj)tools/mkimage	   $(obj)tools/mpc86x_clk	  \
3493f9301e1cSWolfgang Denk	       $(obj)tools/ncb		   $(obj)tools/ubsha1
3494f9301e1cSWolfgang Denk	@rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image}	  \
3495f9301e1cSWolfgang Denk	       $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin}	  \
3496f9301e1cSWolfgang Denk	       $(obj)board/trab/trab_fkt   $(obj)board/voiceblue/eeprom   \
34971dcb50afSWolfgang Denk	       $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds  \
34989171fc81SMike Frysinger	       $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
34999171fc81SMike Frysinger	       $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3500dc7746d8SWolfgang Denk	@rm -f $(obj)include/bmp_logo.h
3501dc7746d8SWolfgang Denk	@rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
35021bb707c3SKyungmin Park	@rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3503561858eeSPeter Tyser	@rm -f $(obj)api_examples/demo $(TIMESTAMP_FILE) $(VERSION_FILE)
3504ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \
35057ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
35067ebf7443Swdenk		-o -name '*.o'	-o -name '*.a'	\) -print \
35077ebf7443Swdenk		| xargs rm -f
35087ebf7443Swdenk
35097ebf7443Swdenkclobber:	clean
3510ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \( -name .depend \
35114c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
35124c0d4c3bSwdenk		-print0 \
35134c0d4c3bSwdenk		| xargs -0 rm -f
3514ffda586fSLi Yang	@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
35155013c09fSWolfgang Denk		$(obj)cscope.* $(obj)*.*~
3516ae6d1056SWolfgang Denk	@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
35170cf4fd3cSJean-Christophe PLAGNIOL-VILLARD	@rm -f $(obj)tools/{crc32.c,env_embedded.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
351889cdab78SMike Frysinger	@rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
35197e492d82SMarian Balakowicz	@rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
35205013c09fSWolfgang Denk	@rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3521ae6d1056SWolfgang Denk	@rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3522a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3523a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
3524a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)api_examples ] || find $(obj)api_examples -name "*" -type l -print | xargs rm -f
35257ebf7443Swdenk
3526f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
35277ebf7443Swdenkmrproper \
35287ebf7443Swdenkdistclean:	clobber unconfig
3529f9328639SMarian Balakowiczelse
3530f9328639SMarian Balakowiczmrproper \
3531f9328639SMarian Balakowiczdistclean:	clobber unconfig
3532ae6d1056SWolfgang Denk	rm -rf $(obj)*
3533f9328639SMarian Balakowiczendif
35347ebf7443Swdenk
35357ebf7443Swdenkbackup:
35367ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
35377ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
35387ebf7443Swdenk
35397ebf7443Swdenk#########################################################################
3540