xref: /openbmc/u-boot/Makefile (revision 751b9b51)
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
24881a87ecSWolfgang DenkVERSION = 1
25754bac48SWolfgang DenkPATCHLEVEL = 3
268d4f040aSWolfgang DenkSUBLEVEL = 1
279a337ddcSWolfgang DenkEXTRAVERSION =
28881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29f9328639SMarian BalakowiczVERSION_FILE = $(obj)include/version_autogenerated.h
30881a87ecSWolfgang Denk
317ebf7443SwdenkHOSTARCH := $(shell uname -m | \
327ebf7443Swdenk	sed -e s/i.86/i386/ \
337ebf7443Swdenk	    -e s/sun4u/sparc64/ \
347ebf7443Swdenk	    -e s/arm.*/arm/ \
357ebf7443Swdenk	    -e s/sa110/arm/ \
367ebf7443Swdenk	    -e s/powerpc/ppc/ \
37a2280646SKumar Gala	    -e s/ppc64/ppc/ \
387ebf7443Swdenk	    -e s/macppc/ppc/)
397ebf7443Swdenk
40f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
417ebf7443Swdenk	    sed -e 's/\(cygwin\).*/cygwin/')
427ebf7443Swdenk
43f9d77ed3SWolfgang Denkexport	HOSTARCH HOSTOS
447ebf7443Swdenk
457ebf7443Swdenk# Deal with colliding definitions from tcsh etc.
467ebf7443SwdenkVENDOR=
477ebf7443Swdenk
487ebf7443Swdenk#########################################################################
49ae6d1056SWolfgang Denk# Allow for silent builds
50ae6d1056SWolfgang Denkifeq (,$(findstring s,$(MAKEFLAGS)))
51ae6d1056SWolfgang DenkXECHO = echo
52ae6d1056SWolfgang Denkelse
53ae6d1056SWolfgang DenkXECHO = :
54ae6d1056SWolfgang Denkendif
55ae6d1056SWolfgang Denk
56ae6d1056SWolfgang Denk#########################################################################
57f9328639SMarian Balakowicz#
58f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external
59f9328639SMarian Balakowicz# directory. Two use cases are supported:
60f9328639SMarian Balakowicz#
61f9328639SMarian Balakowicz# 1) Add O= to the make command line
62f9328639SMarian Balakowicz# 'make O=/tmp/build all'
63f9328639SMarian Balakowicz#
64f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location
65f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
66f9328639SMarian Balakowicz# 'make'
67f9328639SMarian Balakowicz#
68f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script
69f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
70f9328639SMarian Balakowicz# './MAKEALL'
71f9328639SMarian Balakowicz#
72f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable.
73f9328639SMarian Balakowicz#
74f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and
75f9328639SMarian Balakowicz# the object files are placed in the source directory.
76f9328639SMarian Balakowicz#
777ebf7443Swdenk
78f9328639SMarian Balakowiczifdef O
79f9328639SMarian Balakowiczifeq ("$(origin O)", "command line")
80f9328639SMarian BalakowiczBUILD_DIR := $(O)
81f9328639SMarian Balakowiczendif
82f9328639SMarian Balakowiczendif
837ebf7443Swdenk
84f9328639SMarian Balakowiczifneq ($(BUILD_DIR),)
85f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR)
864f0645ebSMarian Balakowicz
874f0645ebSMarian Balakowicz# Attempt to create a output directory.
884f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
894f0645ebSMarian Balakowicz
904f0645ebSMarian Balakowicz# Verify if it was successful.
91f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
92f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
93f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),)
94f9328639SMarian Balakowicz
95f9328639SMarian BalakowiczOBJTREE		:= $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
96f9328639SMarian BalakowiczSRCTREE		:= $(CURDIR)
97f9328639SMarian BalakowiczTOPDIR		:= $(SRCTREE)
98f9328639SMarian BalakowiczLNDIR		:= $(OBJTREE)
99f9328639SMarian Balakowiczexport	TOPDIR SRCTREE OBJTREE
100f9328639SMarian Balakowicz
101f9328639SMarian BalakowiczMKCONFIG	:= $(SRCTREE)/mkconfig
102f9328639SMarian Balakowiczexport MKCONFIG
103f9328639SMarian Balakowicz
104f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
105f9328639SMarian BalakowiczREMOTE_BUILD	:= 1
106f9328639SMarian Balakowiczexport REMOTE_BUILD
107f9328639SMarian Balakowiczendif
108f9328639SMarian Balakowicz
109f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile
110f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for
111f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc.
112f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
113f9328639SMarian Balakowiczobj := $(OBJTREE)/
114f9328639SMarian Balakowiczsrc := $(SRCTREE)/
115f9328639SMarian Balakowiczelse
116f9328639SMarian Balakowiczobj :=
117f9328639SMarian Balakowiczsrc :=
118f9328639SMarian Balakowiczendif
119f9328639SMarian Balakowiczexport obj src
120f9328639SMarian Balakowicz
121f9328639SMarian Balakowicz#########################################################################
122f9328639SMarian Balakowicz
123ae6d1056SWolfgang Denkifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
124f9328639SMarian Balakowicz
1257ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
126ae6d1056SWolfgang Denkinclude $(obj)include/config.mk
1271d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
128f9328639SMarian Balakowicz
1297ebf7443Swdenkifndef CROSS_COMPILE
130a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH))
1317ebf7443SwdenkCROSS_COMPILE =
1327ebf7443Swdenkelse
1337ebf7443Swdenkifeq ($(ARCH),ppc)
13416c8d5e7SWolfgang DenkCROSS_COMPILE = ppc_8xx-
1357ebf7443Swdenkendif
1367ebf7443Swdenkifeq ($(ARCH),arm)
137dc7c9a1aSwdenkCROSS_COMPILE = arm-linux-
1387ebf7443Swdenkendif
1392262cfeeSwdenkifeq ($(ARCH),i386)
1407a8e9bedSwdenkCROSS_COMPILE = i386-linux-
1417a8e9bedSwdenkendif
14243d9616cSwdenkifeq ($(ARCH),mips)
14343d9616cSwdenkCROSS_COMPILE = mips_4KC-
14443d9616cSwdenkendif
1454a551709Swdenkifeq ($(ARCH),nios)
1464a551709SwdenkCROSS_COMPILE = nios-elf-
1474a551709Swdenkendif
1485c952cf0Swdenkifeq ($(ARCH),nios2)
1495c952cf0SwdenkCROSS_COMPILE = nios2-elf-
1505c952cf0Swdenkendif
1514e5ca3ebSwdenkifeq ($(ARCH),m68k)
1524e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
1534e5ca3ebSwdenkendif
154507bbe3eSwdenkifeq ($(ARCH),microblaze)
155507bbe3eSwdenkCROSS_COMPILE = mb-
156507bbe3eSwdenkendif
1570afe519aSWolfgang Denkifeq ($(ARCH),blackfin)
158ef26a08fSAubrey.LiCROSS_COMPILE = bfin-uclinux-
1590afe519aSWolfgang Denkendif
1607b64fef3SWolfgang Denkifeq ($(ARCH),avr32)
1615374b36dSHaavard SkinnemoenCROSS_COMPILE = avr32-linux-
1627b64fef3SWolfgang Denkendif
1630b135cfcSNobuhiro Iwamatsuifeq ($(ARCH),sh)
1640b135cfcSNobuhiro IwamatsuCROSS_COMPILE = sh4-linux-
165ae6d1056SWolfgang Denkendif	# sh
166ae6d1056SWolfgang Denkendif	# HOSTARCH,ARCH
167ae6d1056SWolfgang Denkendif	# CROSS_COMPILE
1687ebf7443Swdenk
1697ebf7443Swdenkexport	CROSS_COMPILE
1707ebf7443Swdenk
17192b197f0SWolfgang Denk# load other configuration
17292b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk
17392b197f0SWolfgang Denk
1747ebf7443Swdenk#########################################################################
1757ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
1767ebf7443Swdenk
1777ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
1782262cfeeSwdenkifeq ($(CPU),i386)
1792262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
1802262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o
1812262cfeeSwdenkendif
1827ebf7443Swdenkifeq ($(CPU),ppc4xx)
1837ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
1847ebf7443Swdenkendif
18542d1f039Swdenkifeq ($(CPU),mpc85xx)
18642d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
18742d1f039Swdenkendif
1880afe519aSWolfgang Denkifeq ($(CPU),bf533)
1890afe519aSWolfgang DenkOBJS += cpu/$(CPU)/start1.o	cpu/$(CPU)/interrupt.o	cpu/$(CPU)/cache.o
190ef26a08fSAubrey.LiOBJS += cpu/$(CPU)/flush.o	cpu/$(CPU)/init_sdram.o
1910afe519aSWolfgang Denkendif
19226bf7decSAubrey Liifeq ($(CPU),bf537)
19326bf7decSAubrey LiOBJS += cpu/$(CPU)/start1.o	cpu/$(CPU)/interrupt.o	cpu/$(CPU)/cache.o
19426bf7decSAubrey LiOBJS += cpu/$(CPU)/flush.o	cpu/$(CPU)/init_sdram.o
19526bf7decSAubrey Liendif
19665458987SAubrey Liifeq ($(CPU),bf561)
19765458987SAubrey LiOBJS += cpu/$(CPU)/start1.o	cpu/$(CPU)/interrupt.o	cpu/$(CPU)/cache.o
19865458987SAubrey LiOBJS += cpu/$(CPU)/flush.o 	cpu/$(CPU)/init_sdram.o
1997ebf7443Swdenkendif
2007ebf7443Swdenk
201f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS))
202f9328639SMarian Balakowicz
2039fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
2047608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
2057608d75fSKim Phillips	"board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
2069fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a
2077ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
2081d9f4105Swdenkifdef SOC
2091d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
2101d9f4105Swdenkendif
211323bfa8fSStefan Roeseifeq ($(CPU),ixp)
212323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a
213323bfa8fSStefan Roeseendif
2147ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
215518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
216c419d1d6Sstroese	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
2177ebf7443SwdenkLIBS += net/libnet.a
2187ebf7443SwdenkLIBS += disk/libdisk.a
2190f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a
22033daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a
22157a12720STsiChungLiewLIBS += drivers/dma/libdma.a
222f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a
223080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a
22416b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a
225318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a
22659829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a
22759829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a
22859829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a
22959829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a
2308e585f02STsiChung LiewLIBS += drivers/net/libnet.a
2312439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a
23293a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a
23373646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a
23404a9e118SBen WarrenLIBS += drivers/spi/libspi.a
2357737d5c6SDave Liuifeq ($(CPU),mpc83xx)
2367737d5c6SDave LiuLIBS += drivers/qe/qe.a
2377737d5c6SDave Liuendif
238da9d4610SAndy Flemingifeq ($(CPU),mpc85xx)
239da9d4610SAndy FlemingLIBS += drivers/qe/qe.a
240da9d4610SAndy Flemingendif
24159829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a
2428e585f02STsiChung LiewLIBS += drivers/serial/libserial.a
24359829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a
24459829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a
245ad5bb451SWolfgang DenkLIBS += post/libpost.a post/drivers/libpostdrivers.a
246ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
247ad5bb451SWolfgang Denk	"post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
248b4489621SSergei PoselenovLIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
249b4489621SSergei Poselenov	"post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
250ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
251ad5bb451SWolfgang Denk	"post/cpu/$(CPU)/libpost$(CPU).a"; fi)
252ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
253ad5bb451SWolfgang Denk	"post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
2547ebf7443SwdenkLIBS += common/libcommon.a
2557651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a
256500856ebSRafal JaworowskiLIBS += api/libapi.a
257f9328639SMarian Balakowicz
258f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS))
2599fd5e31fSwdenk.PHONY : $(LIBS)
260a8c7c708Swdenk
2614f7cb08eSwdenk# Add GCC lib
2621a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
2633d3befa7Swdenk
264a8c7c708Swdenk# The "tools" are needed early, so put this first
265a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
266a8c7c708SwdenkSUBDIRS	= tools \
2670dc1fc22SRafal Jaworowski	  examples \
2680dc1fc22SRafal Jaworowski	  api_examples
269500856ebSRafal Jaworowski
270b028f715Swdenk.PHONY : $(SUBDIRS)
271a8c7c708Swdenk
272887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y)
273887e2ec9SStefan RoeseNAND_SPL = nand_spl
274887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin
275887e2ec9SStefan Roeseendif
276887e2ec9SStefan Roese
277*751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y)
278*751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl
279*751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin
280*751b9b51SKyungmin Parkendif
281*751b9b51SKyungmin Park
282f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS))
283f9328639SMarian Balakowicz__LIBS := $(subst $(obj),,$(LIBS))
284f9328639SMarian Balakowicz
2857ebf7443Swdenk#########################################################################
286bdccc4feSwdenk#########################################################################
2877ebf7443Swdenk
288*751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
2897ebf7443Swdenk
290bdccc4feSwdenkall:		$(ALL)
2917ebf7443Swdenk
292f9328639SMarian Balakowicz$(obj)u-boot.hex:	$(obj)u-boot
2936310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
2946310eb9dSwdenk
295f9328639SMarian Balakowicz$(obj)u-boot.srec:	$(obj)u-boot
2967ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
2977ebf7443Swdenk
298f9328639SMarian Balakowicz$(obj)u-boot.bin:	$(obj)u-boot
2997ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
3007ebf7443Swdenk
301f9328639SMarian Balakowicz$(obj)u-boot.img:	$(obj)u-boot.bin
302bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
303bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
304881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
305bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
306bdccc4feSwdenk		-d $< $@
307bdccc4feSwdenk
308566a494fSHeiko Schocher$(obj)u-boot.sha1:	$(obj)u-boot.bin
30901159530SHeiko Schocher		$(obj)tools/ubsha1 $(obj)u-boot.bin
310566a494fSHeiko Schocher
311f9328639SMarian Balakowicz$(obj)u-boot.dis:	$(obj)u-boot
3127ebf7443Swdenk		$(OBJDUMP) -d $< > $@
3137ebf7443Swdenk
314dd531aacSWolfgang Denk$(obj)u-boot:		depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
3158bde7f77Swdenk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
316f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
317f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
318b2184c31Swdenk			-Map u-boot.map -o u-boot
3197ebf7443Swdenk
32088f72527SJohannes Stezenbach$(OBJS):	depend $(obj)include/autoconf.mk
321f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
322f9328639SMarian Balakowicz
32388f72527SJohannes Stezenbach$(LIBS):	depend $(obj)include/autoconf.mk
324f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
325a8c7c708Swdenk
32688f72527SJohannes Stezenbach$(SUBDIRS):	depend $(obj)include/autoconf.mk
327b028f715Swdenk		$(MAKE) -C $@ all
3287ebf7443Swdenk
329dd531aacSWolfgang Denk$(NAND_SPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
3308318fbf8SMarian Balakowicz		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
331887e2ec9SStefan Roese
332dd531aacSWolfgang Denk$(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
3338318fbf8SMarian Balakowicz		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
334887e2ec9SStefan Roese
335*751b9b51SKyungmin Park$(ONENAND_IPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
336*751b9b51SKyungmin Park		$(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
337*751b9b51SKyungmin Park
338*751b9b51SKyungmin Park$(U_BOOT_ONENAND):	$(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
339*751b9b51SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
340*751b9b51SKyungmin Park
341ae6d1056SWolfgang Denk$(VERSION_FILE):
342ae6d1056SWolfgang Denk		@( echo -n "#define U_BOOT_VERSION \"U-Boot " ; \
343ae6d1056SWolfgang Denk		echo -n "$(U_BOOT_VERSION)" ; \
344881a87ecSWolfgang Denk		echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
345ae6d1056SWolfgang Denk			 $(TOPDIR)) ; \
346ae6d1056SWolfgang Denk		echo "\"" ) > $(VERSION_FILE)
347881a87ecSWolfgang Denk
3488f713fdfSdzugdbtools:
349f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
350f9328639SMarian Balakowicz
351f9328639SMarian Balakowiczupdater:
352f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
353f9328639SMarian Balakowicz
354f9328639SMarian Balakowiczenv:
35564b3727bSMarkus Klotzbücher		$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
3568f713fdfSdzu
357ae6d1056SWolfgang Denkdepend dep:	$(VERSION_FILE)
358f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
3597ebf7443Swdenk
360a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include
361a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR)
362a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU)
363a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH)
364a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs
365a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat
366a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos
367a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2
368a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net
369a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk
370a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common
371a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator
372a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block
373a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon
374a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c
375a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input
376a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc
377a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd
378a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand
379a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy
380a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand
381a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net
382a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin
383a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci
384a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia
385a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe
386a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc
387a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial
38804a9e118SBen WarrenTAG_SUBDIRS += drivers/spi
389a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb
390a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video
391a340c325SJean-Christophe PLAGNIOL-VILLARD
392f9328639SMarian Balakowicztags ctags:
393ae6d1056SWolfgang Denk		ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
39488fed9a1SWolfgang Denk						-name '*.[ch]' -print`
3957ebf7443Swdenk
3967ebf7443Swdenketags:
397ae6d1056SWolfgang Denk		etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
39888fed9a1SWolfgang Denk						-name '*.[ch]' -print`
3997ebf7443Swdenk
400f9328639SMarian Balakowicz$(obj)System.map:	$(obj)u-boot
4017ebf7443Swdenk		@$(NM) $< | \
4027ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
403f9328639SMarian Balakowicz		sort > $(obj)System.map
4047ebf7443Swdenk
4052f155f6cSGrant Likely#
4062f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles)
4072f155f6cSGrant Likely#
4082f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
4092f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when
4102f155f6cSGrant Likely# to regenerate the autoconf.mk file.
411ae6d1056SWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE)
412ae6d1056SWolfgang Denk	@$(XECHO) Generating include/autoconf.mk ; \
413ae6d1056SWolfgang Denk	: Generate the dependancies ; \
414ae6d1056SWolfgang Denk	$(CC) -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \
415ae6d1056SWolfgang Denk	: Extract the config macros ; \
416ae6d1056SWolfgang Denk	$(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@
4172f155f6cSGrant Likely
418ae6d1056SWolfgang Denksinclude $(obj)include/autoconf.mk.dep
4192f155f6cSGrant Likely
4207ebf7443Swdenk#########################################################################
421ae6d1056SWolfgang Denkelse	# !config.mk
422f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
423f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
424ae6d1056SWolfgang Denk$(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
425f9328639SMarian Balakowiczdep tags ctags etags $(obj)System.map:
4267ebf7443Swdenk	@echo "System not configured - see README" >&2
4277ebf7443Swdenk	@ exit 1
428ae6d1056SWolfgang Denkendif	# config.mk
4297ebf7443Swdenk
4304e53a258SWolfgang Denk.PHONY : CHANGELOG
4314e53a258SWolfgang DenkCHANGELOG:
432b985b5d6SBen Warren	git log --no-merges U-Boot-1_1_5.. | \
433b985b5d6SBen Warren	unexpand -a | sed -e 's/\s\s*$$//' > $@
4344e53a258SWolfgang Denk
4357ebf7443Swdenk#########################################################################
4367ebf7443Swdenk
4377ebf7443Swdenkunconfig:
438887e2ec9SStefan Roese	@rm -f $(obj)include/config.h $(obj)include/config.mk \
4392f155f6cSGrant Likely		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
4402f155f6cSGrant Likely		$(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
4417ebf7443Swdenk
4427ebf7443Swdenk#========================================================================
4437ebf7443Swdenk# PowerPC
4447ebf7443Swdenk#========================================================================
4450db5bca8Swdenk
4460db5bca8Swdenk#########################################################################
4470db5bca8Swdenk## MPC5xx Systems
4480db5bca8Swdenk#########################################################################
4490db5bca8Swdenk
4505e5f9ed2Swdenkcanmb_config:	unconfig
451f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
4525e5f9ed2Swdenk
4530db5bca8Swdenkcmi_mpc5xx_config:	unconfig
454f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
4550db5bca8Swdenk
456b6e4c403SwdenkPATI_config:		unconfig
457f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
458b6e4c403Swdenk
4597ebf7443Swdenk#########################################################################
460945af8d7Swdenk## MPC5xxx Systems
461945af8d7Swdenk#########################################################################
462a87589daSwdenk
463dafba16eSWolfgang Denkaev_config: unconfig
464f9328639SMarian Balakowicz	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
465dafba16eSWolfgang Denk
4666ca24c64Sdzu@denx.deBC3450_config:	unconfig
467f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
4686ca24c64Sdzu@denx.de
4695e4b3361SStefan Roesecpci5200_config:  unconfig
470f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
4715e4b3361SStefan Roese
472a87589daSwdenkhmi1001_config:	unconfig
473f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
474a87589daSwdenk
475e35745bbSwdenkLite5200_config				\
476e35745bbSwdenkLite5200_LOWBOOT_config			\
477e35745bbSwdenkLite5200_LOWBOOT08_config		\
478e35745bbSwdenkicecube_5200_config			\
479e35745bbSwdenkicecube_5200_LOWBOOT_config		\
480e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
481b2001f27Swdenkicecube_5200_DDR_config			\
48279d696fcSwdenkicecube_5200_DDR_LOWBOOT_config		\
48379d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
484e35745bbSwdenkicecube_5100_config:			unconfig
485f9328639SMarian Balakowicz	@mkdir -p $(obj)include
486f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
487f9328639SMarian Balakowicz	@ >$(obj)include/config.h
48817d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
48917d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
490f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
491f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
49217d704ebSwdenk		  fi ; \
493ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
4945cf9da48Swdenk		}
4955cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
496f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
4975cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
498ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
4995cf9da48Swdenk		}
500b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
501f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
502ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
503b2001f27Swdenk		}
504d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
505f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
506ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
507d4ca31c4Swdenk		}
508a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
509f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
510ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
511945af8d7Swdenk		}
512f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
513945af8d7Swdenk
5142605e90bSHeiko Schocherjupiter_config:	unconfig
5152605e90bSHeiko Schocher	@$(MKCONFIG) jupiter ppc mpc5xxx jupiter
5162605e90bSHeiko Schocher
5174707fb50SBartlomiej Siekav38b_config: unconfig
51890b1b2d6SGrant Likely	@$(MKCONFIG) -a v38b ppc mpc5xxx v38b
5194707fb50SBartlomiej Sieka
520138ff60cSwdenkinka4x0_config:	unconfig
521f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
522138ff60cSwdenk
52309e4b0c5SWolfgang Denklite5200b_config	\
524d3832e8fSDomen Puncerlite5200b_PM_config	\
52509e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
526f9328639SMarian Balakowicz	@mkdir -p $(obj)include
527f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
528f9328639SMarian Balakowicz	@ >$(obj)include/config.h
529f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
530ae6d1056SWolfgang Denk	@ $(XECHO) "... DDR memory revision"
531f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
532f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
533d3832e8fSDomen Puncer	@[ -z "$(findstring _PM_,$@)" ] || \
534d3832e8fSDomen Puncer		{ echo "#define CONFIG_LITE5200B_PM"	>>$(obj)include/config.h ; \
535ae6d1056SWolfgang Denk		  $(XECHO) "... with power management (low-power mode) support" ; \
536d3832e8fSDomen Puncer		}
53709e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
538f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
539ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
54009e4b0c5SWolfgang Denk		}
541ae6d1056SWolfgang Denk	@ $(XECHO) "... with MPC5200B processor"
542f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
54309e4b0c5SWolfgang Denk
544f1ee9825SStefan Roesemcc200_config	\
545ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
546ed1cf845SWolfgang Denkmcc200_highboot_config	\
547ed1cf845SWolfgang Denkmcc200_COM12_config	\
548ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
549113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
550113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
551ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
552ed1cf845SWolfgang Denkprs200_config	\
553ed1cf845SWolfgang Denkprs200_DDR_config	\
554ed1cf845SWolfgang Denkprs200_highboot_config	\
555ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
556f9328639SMarian Balakowicz	@mkdir -p $(obj)include
557f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
558f9328639SMarian Balakowicz	@ >$(obj)include/config.h
5594819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
560ae6d1056SWolfgang Denk		{ $(XECHO) "... with lowboot configuration" ; \
561f1ee9825SStefan Roese		}
5624819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
563f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
564ae6d1056SWolfgang Denk		  $(XECHO) "... with highboot configuration" ; \
5654819fad9SWolfgang Denk		}
5664819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
567ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
568ed1cf845SWolfgang Denk		  then \
569ae6d1056SWolfgang Denk			$(XECHO) "... with DDR" ; \
570ed1cf845SWolfgang Denk		  else \
571ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
572ed1cf845SWolfgang Denk			then \
573ae6d1056SWolfgang Denk				$(XECHO) "... with DDR" ; \
574ed1cf845SWolfgang Denk			else \
575f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
576ae6d1056SWolfgang Denk				$(XECHO) "... with SDRAM" ; \
577ed1cf845SWolfgang Denk			fi; \
578ed1cf845SWolfgang Denk		  fi; \
5794819fad9SWolfgang Denk		}
5804819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
581f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
582ae6d1056SWolfgang Denk		  $(XECHO) "... with SDRAM" ; \
5834819fad9SWolfgang Denk		}
584463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
585f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
586ae6d1056SWolfgang Denk		  $(XECHO) "... with console on COM12" ; \
587463764c8SWolfgang Denk		}
588ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
589f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"  >>$(obj)include/config.h ;\
590ed1cf845SWolfgang Denk		}
591f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
59286ea5f93SWolfgang Denk
5938b7d1f0aSStefan Roesemecp5200_config:  unconfig
594ae6d1056SWolfgang Denk	@$(MKCONFIG) mecp5200  ppc mpc5xxx mecp5200 esd
5958b7d1f0aSStefan Roese
5966341d9d7SHeiko Schochermunices_config:	unconfig
597ae6d1056SWolfgang Denk	@$(MKCONFIG) munices ppc mpc5xxx munices
5986341d9d7SHeiko Schocher
599df04a3dfSWolfgang Denko2dnt_config:
600f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
601df04a3dfSWolfgang Denk
6025e4b3361SStefan Roesepf5200_config:  unconfig
603f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
6045e4b3361SStefan Roese
60589394047SwdenkPM520_config \
60689394047SwdenkPM520_DDR_config \
60789394047SwdenkPM520_ROMBOOT_config \
60889394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
609f9328639SMarian Balakowicz	@mkdir -p $(obj)include
610f9328639SMarian Balakowicz	@ >$(obj)include/config.h
61189394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
612f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
613ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
61489394047Swdenk		}
61589394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
616f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
617ae6d1056SWolfgang Denk		  $(XECHO) "... booting from 8-bit flash" ; \
61889394047Swdenk		}
619f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
62089394047Swdenk
6216624b687SWolfgang Denksmmaco4_config: unconfig
622f9328639SMarian Balakowicz	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
6239cdc8386SWolfgang Denk
62486b116b1SBartlomiej Siekacm5200_config:	unconfig
62586b116b1SBartlomiej Sieka	@./mkconfig -a cm5200 ppc mpc5xxx cm5200
626fa1df308SBartlomiej Sieka
6279cdc8386SWolfgang Denkspieval_config:	unconfig
628f9328639SMarian Balakowicz	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
6299cdc8386SWolfgang Denk
63045a212c4SWolfgang DenkTB5200_B_config \
631b87dfd28SWolfgang DenkTB5200_config:	unconfig
632f9328639SMarian Balakowicz	@mkdir -p $(obj)include
63345a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
634f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
635ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200B processor" ; \
63645a212c4SWolfgang Denk		}
637f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
638b87dfd28SWolfgang Denk
639d4ca31c4SwdenkMINI5200_config	\
640d4ca31c4SwdenkEVAL5200_config	\
641d4ca31c4SwdenkTOP5200_config:	unconfig
642f9328639SMarian Balakowicz	@mkdir -p $(obj)include
643f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
644f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
645d4ca31c4Swdenk
6466c7a1408SwdenkTotal5100_config		\
6476c7a1408SwdenkTotal5200_config		\
6486c7a1408SwdenkTotal5200_lowboot_config	\
6496c7a1408SwdenkTotal5200_Rev2_config		\
6506c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
651f9328639SMarian Balakowicz	@mkdir -p $(obj)include
652f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
653f9328639SMarian Balakowicz	@ >$(obj)include/config.h
6546c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
655f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
656ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
6576c7a1408Swdenk		}
6586c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
659f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
660ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
6616c7a1408Swdenk		}
6626c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
663f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
664ae6d1056SWolfgang Denk		  $(XECHO) "... revision 1 board" ; \
6656c7a1408Swdenk		}
6666c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
667f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
668ae6d1056SWolfgang Denk		  $(XECHO) "... revision 2 board" ; \
6696c7a1408Swdenk		}
6706c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
671f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
672ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
6736c7a1408Swdenk		}
674f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
6756c7a1408Swdenk
6765196a7a0SWolfgang Denkcam5200_config \
677d9384de2SMarian Balakowiczcam5200_niosflash_config \
6785196a7a0SWolfgang Denkfo300_config \
6795196a7a0SWolfgang DenkMiniFAP_config \
6805078cce8SWolfgang DenkTQM5200S_config \
6815078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
6825196a7a0SWolfgang DenkTQM5200_B_config \
6835196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
6845196a7a0SWolfgang DenkTQM5200_config	\
6855196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
686f9328639SMarian Balakowicz	@mkdir -p $(obj)include
687f9328639SMarian Balakowicz	@mkdir -p $(obj)board/tqm5200
688f9328639SMarian Balakowicz	@ >$(obj)include/config.h
689135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
690f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
691f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
692f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
693ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200S on Cam5200" ; \
6945078cce8SWolfgang Denk		}
695d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
696d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
697ae6d1056SWolfgang Denk		  $(XECHO) "... with NIOS flash driver" ; \
698d9384de2SMarian Balakowicz		}
6996d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
700f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
701ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200 on FO300" ; \
7026d3bc9b8SMarian Balakowicz		}
703cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
704f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
705ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200_AC on MiniFAP" ; \
706978b1096SWolfgang Denk		}
707cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
708f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
709ae6d1056SWolfgang Denk		  $(XECHO) "... on a STK52XX.100 base board" ; \
71056523f12Swdenk		}
7115078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
712f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
7135078cce8SWolfgang Denk		}
7145078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
715f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
716f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
71745a212c4SWolfgang Denk		}
718978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
719f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
720978b1096SWolfgang Denk		}
721f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
7226dedf3d4SHeiko Schocheruc101_config:		unconfig
7236dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
72453d4a498SBartlomiej Siekamotionpro_config:	unconfig
72553d4a498SBartlomiej Sieka	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
72653d4a498SBartlomiej Sieka
72756523f12Swdenk
728945af8d7Swdenk#########################################################################
7298993e54bSRafal Jaworowski## MPC512x Systems
7308993e54bSRafal Jaworowski#########################################################################
7318993e54bSRafal Jaworowskiads5121_config: unconfig
7328993e54bSRafal Jaworowski	@$(MKCONFIG) ads5121 ppc mpc512x ads5121
7338993e54bSRafal Jaworowski
7348993e54bSRafal Jaworowski
7358993e54bSRafal Jaworowski#########################################################################
7367ebf7443Swdenk## MPC8xx Systems
7377ebf7443Swdenk#########################################################################
7387ebf7443Swdenk
7392d24a3a7SwdenkAdder_config    \
7402d24a3a7SwdenkAdder87x_config \
74126238132SwdenkAdderII_config  \
7422d24a3a7Swdenk	:		unconfig
743f9328639SMarian Balakowicz	@mkdir -p $(obj)include
74426238132Swdenk	$(if $(findstring AdderII,$@), \
745f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
746f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
7472d24a3a7Swdenk
74816c8d5e7SWolfgang DenkAdderUSB_config:	unconfig
74916c8d5e7SWolfgang Denk	@./mkconfig -a AdderUSB ppc mpc8xx adder
75016c8d5e7SWolfgang Denk
751180d3f74SwdenkADS860_config     \
752180d3f74SwdenkFADS823_config    \
753180d3f74SwdenkFADS850SAR_config \
754180d3f74SwdenkMPC86xADS_config  \
7551114257cSwdenkMPC885ADS_config  \
756180d3f74SwdenkFADS860T_config:	unconfig
757f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
7587ebf7443Swdenk
7597ebf7443SwdenkAMX860_config	:	unconfig
760f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
7617ebf7443Swdenk
7627ebf7443Swdenkc2mon_config:		unconfig
763f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
7647ebf7443Swdenk
7657ebf7443SwdenkCCM_config:		unconfig
766f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
7677ebf7443Swdenk
7687ebf7443Swdenkcogent_mpc8xx_config:	unconfig
769f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
7707ebf7443Swdenk
7713bac3513SwdenkELPT860_config:		unconfig
772f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
7733bac3513Swdenk
77484c960ceSWolfgang DenkEP88x_config:		unconfig
775f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
77684c960ceSWolfgang Denk
7777ebf7443SwdenkESTEEM192E_config:	unconfig
778f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
7797ebf7443Swdenk
7807ebf7443SwdenkETX094_config	:	unconfig
781f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
7827ebf7443Swdenk
7837ebf7443SwdenkFLAGADM_config:	unconfig
784f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
7857ebf7443Swdenk
7867aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
7877aa78614Swdenk
7887aa78614SwdenkGEN860T_SC_config	\
7897ebf7443SwdenkGEN860T_config: unconfig
790f9328639SMarian Balakowicz	@mkdir -p $(obj)include
791f9328639SMarian Balakowicz	@ >$(obj)include/config.h
7927aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
793f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
794ae6d1056SWolfgang Denk		  $(XECHO) "With reduced H/W feature set (SC)..." ; \
7957aa78614Swdenk		}
796f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
7977ebf7443Swdenk
7987ebf7443SwdenkGENIETV_config:	unconfig
799f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
8007ebf7443Swdenk
8017ebf7443SwdenkGTH_config:	unconfig
802f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
8037ebf7443Swdenk
8047ebf7443Swdenkhermes_config	:	unconfig
805f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
8067ebf7443Swdenk
807c40b2956SwdenkHMI10_config	:	unconfig
808f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
809c40b2956Swdenk
8107ebf7443SwdenkIAD210_config: unconfig
811f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
8127ebf7443Swdenk
8137ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
8147ebf7443Swdenk
8157ebf7443SwdenkICU862_100MHz_config	\
8167ebf7443SwdenkICU862_config: unconfig
817f9328639SMarian Balakowicz	@mkdir -p $(obj)include
818f9328639SMarian Balakowicz	@ >$(obj)include/config.h
8197ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
820f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
821ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
8227ebf7443Swdenk		}
823f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
8247ebf7443Swdenk
8257ebf7443SwdenkIP860_config	:	unconfig
826f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
8277ebf7443Swdenk
8287ebf7443SwdenkIVML24_256_config \
8297ebf7443SwdenkIVML24_128_config \
8307ebf7443SwdenkIVML24_config:	unconfig
831f9328639SMarian Balakowicz	@mkdir -p $(obj)include
832f9328639SMarian Balakowicz	@ >$(obj)include/config.h
8337ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
834f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
8357ebf7443Swdenk		 }
8367ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
837f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
8387ebf7443Swdenk		 }
8397ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
840f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
8417ebf7443Swdenk		 }
842f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
8437ebf7443Swdenk
8447ebf7443SwdenkIVMS8_256_config \
8457ebf7443SwdenkIVMS8_128_config \
8467ebf7443SwdenkIVMS8_config:	unconfig
847f9328639SMarian Balakowicz	@mkdir -p $(obj)include
848f9328639SMarian Balakowicz	@ >$(obj)include/config.h
8497ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
850f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
8517ebf7443Swdenk		 }
8527ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
853f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
8547ebf7443Swdenk		 }
8557ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
856f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
8577ebf7443Swdenk		 }
858f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
8597ebf7443Swdenk
86056f94be3SwdenkKUP4K_config	:	unconfig
861f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
8620608e04dSwdenk
8630608e04dSwdenkKUP4X_config    :       unconfig
864f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
86556f94be3Swdenk
8667ebf7443SwdenkLANTEC_config	:	unconfig
867f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
8687ebf7443Swdenk
8697ebf7443Swdenklwmon_config:		unconfig
870f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
8717ebf7443Swdenk
8727ebf7443SwdenkMBX_config	\
8737ebf7443SwdenkMBX860T_config:	unconfig
874f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
8757ebf7443Swdenk
876381e4e63SHeiko Schochermgsuvd_config:		unconfig
877381e4e63SHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
878381e4e63SHeiko Schocher
8797ebf7443SwdenkMHPC_config:		unconfig
880f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
8817ebf7443Swdenk
8827ebf7443SwdenkMVS1_config :		unconfig
883f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
8847ebf7443Swdenk
885993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
886993cad93Swdenk
887993cad93SwdenkNETVIA_V2_config \
8887ebf7443SwdenkNETVIA_config:		unconfig
889f9328639SMarian Balakowicz	@mkdir -p $(obj)include
890f9328639SMarian Balakowicz	@ >$(obj)include/config.h
891993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
892f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
893ae6d1056SWolfgang Denk		  $(XECHO) "... Version 1" ; \
894993cad93Swdenk		 }
895993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
896f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
897ae6d1056SWolfgang Denk		  $(XECHO) "... Version 2" ; \
898993cad93Swdenk		 }
899f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
9007ebf7443Swdenk
901c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
902c26e454dSwdenk
903c26e454dSwdenkNETPHONE_V2_config \
90404a85b3bSwdenkNETPHONE_config:	unconfig
905f9328639SMarian Balakowicz	@mkdir -p $(obj)include
906f9328639SMarian Balakowicz	@ >$(obj)include/config.h
907c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
908f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
909c26e454dSwdenk		 }
910c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
911f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
912c26e454dSwdenk		 }
913f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
91404a85b3bSwdenk
91579fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
91604a85b3bSwdenk
91779fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
91879fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
91979fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
92079fa88f3SwdenkNETTA_SWAPHOOK_config \
92179fa88f3SwdenkNETTA_ISDN_6412_config \
92204a85b3bSwdenkNETTA_ISDN_config \
92379fa88f3SwdenkNETTA_6412_config \
92404a85b3bSwdenkNETTA_config:		unconfig
925f9328639SMarian Balakowicz	@mkdir -p $(obj)include
926f9328639SMarian Balakowicz	@ >$(obj)include/config.h
92779fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
928f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
92904a85b3bSwdenk		 }
93079fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
931f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
93279fa88f3Swdenk		 }
93379fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
934f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
93579fa88f3Swdenk		 }
93679fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
937f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
93879fa88f3Swdenk		 }
93979fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
940f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
94179fa88f3Swdenk		 }
94279fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
943f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
94479fa88f3Swdenk		 }
945f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
94604a85b3bSwdenk
94779fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
94879fa88f3Swdenk
94979fa88f3SwdenkNETTA2_V2_config \
95079fa88f3SwdenkNETTA2_config:		unconfig
951f9328639SMarian Balakowicz	@mkdir -p $(obj)include
952f9328639SMarian Balakowicz	@ >$(obj)include/config.h
95379fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
954f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
95579fa88f3Swdenk		 }
95679fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
957f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
95879fa88f3Swdenk		 }
959f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
96079fa88f3Swdenk
961a367d426Sdzu@denx.deNC650_Rev1_config \
962a367d426Sdzu@denx.deNC650_Rev2_config \
963a367d426Sdzu@denx.deCP850_config:	unconfig
964f9328639SMarian Balakowicz	@mkdir -p $(obj)include
965f9328639SMarian Balakowicz	@ >$(obj)include/config.h
966a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
967f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
968f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
969a367d426Sdzu@denx.de		 }
970a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
971f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
972a367d426Sdzu@denx.de		 }
973a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
974f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
975a367d426Sdzu@denx.de		 }
976f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
9777ca202f5Swdenk
9787ebf7443SwdenkNX823_config:		unconfig
979f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
9807ebf7443Swdenk
9817ebf7443Swdenkpcu_e_config:		unconfig
982f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
9837ebf7443Swdenk
9843bbc899fSwdenkQS850_config:	unconfig
985f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
9863bbc899fSwdenk
9873bbc899fSwdenkQS823_config:	unconfig
988f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
9893bbc899fSwdenk
9903bbc899fSwdenkQS860T_config:	unconfig
991f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
9923bbc899fSwdenk
993da93ed81Swdenkquantum_config:	unconfig
994f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
995da93ed81Swdenk
9967ebf7443SwdenkR360MPI_config:	unconfig
997f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
9987ebf7443Swdenk
999682011ffSwdenkRBC823_config:	unconfig
1000f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1001682011ffSwdenk
10027ebf7443SwdenkRPXClassic_config:	unconfig
1003f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
10047ebf7443Swdenk
10057ebf7443SwdenkRPXlite_config:		unconfig
1006f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
10077ebf7443Swdenk
1008e63c8ee3SwdenkRPXlite_DW_64_config		\
1009e63c8ee3SwdenkRPXlite_DW_LCD_config		\
1010e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
1011e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
1012e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config      \
1013e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
1014e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config  \
1015e63c8ee3SwdenkRPXlite_DW_config:	unconfig
1016f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1017f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1018e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
1019f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
1020ae6d1056SWolfgang Denk		  $(XECHO) "... with 64MHz system clock ..."; \
1021e63c8ee3Swdenk		}
1022e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1023f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1024f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1025ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display ..."; \
1026e63c8ee3Swdenk		}
1027e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
1028f9328639SMarian Balakowicz		{ echo "#define  CFG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
1029ae6d1056SWolfgang Denk		  $(XECHO) "... with ENV in NVRAM ..."; \
1030e63c8ee3Swdenk		}
1031f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1032e63c8ee3Swdenk
103373a8b27cSwdenkrmu_config:	unconfig
1034f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
103573a8b27cSwdenk
10367ebf7443SwdenkRRvision_config:	unconfig
1037f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
10387ebf7443Swdenk
10397ebf7443SwdenkRRvision_LCD_config:	unconfig
1040f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1041f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1042f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1043f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
10447ebf7443Swdenk
10457ebf7443SwdenkSM850_config	:	unconfig
1046f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
10477ebf7443Swdenk
1048b02d0177SMarkus Klotzbuecherspc1920_config:
1049f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1050b02d0177SMarkus Klotzbuecher
10517ebf7443SwdenkSPD823TS_config:	unconfig
1052f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
10537ebf7443Swdenk
10546bdf4306SWolfgang Denkstxxtc_config:	unconfig
1055f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
10566bdf4306SWolfgang Denk
1057dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
1058f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1059dc7c9a1aSwdenk
10607ebf7443SwdenkSXNI855T_config:	unconfig
1061f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
10627ebf7443Swdenk
1063db2f721fSwdenk# EMK MPC8xx based modules
1064db2f721fSwdenkTOP860_config:		unconfig
1065f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1066db2f721fSwdenk
10677ebf7443Swdenk# Play some tricks for configuration selection
1068e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
1069e9132ea9Swdenk# and only 823 boards may have LCD support
1070e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
10717ebf7443Swdenk
10727ebf7443SwdenkFPS850L_config		\
1073384ae025SwdenkFPS860L_config		\
1074f12e568cSwdenkNSCU_config		\
10757ebf7443SwdenkTQM823L_config		\
10767ebf7443SwdenkTQM823L_LCD_config	\
10777ebf7443SwdenkTQM850L_config		\
10787ebf7443SwdenkTQM855L_config		\
10797ebf7443SwdenkTQM860L_config		\
1080d126bfbdSwdenkTQM862L_config		\
1081ae3af05eSwdenkTQM823M_config		\
1082ae3af05eSwdenkTQM850M_config		\
1083f12e568cSwdenkTQM855M_config		\
1084f12e568cSwdenkTQM860M_config		\
1085f12e568cSwdenkTQM862M_config		\
10868cba090cSWolfgang DenkTQM866M_config		\
1087090eb735SMarkus KlotzbuecherTQM885D_config		\
1088efc6f447SGuennadi LiakhovetskiTK885D_config		\
10898cba090cSWolfgang Denkvirtlab2_config:	unconfig
1090f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1091f9328639SMarian Balakowicz	@ >$(obj)include/config.h
10927ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1093f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1094f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1095ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display" ; \
10967ebf7443Swdenk		}
1097f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
10987ebf7443Swdenk
10997ebf7443SwdenkTTTech_config:	unconfig
1100f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1101f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1102f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1103f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
11047ebf7443Swdenk
1105ec0aee7bSwdenkuc100_config	:	unconfig
1106f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1107f7d1572bSwdenk
1108608c9146Swdenkv37_config:	unconfig
1109f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1110f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1111f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1112f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1113608c9146Swdenk
111491e940d9Sdzuwtk_config:	unconfig
1115f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1116f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1117f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1118f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
111991e940d9Sdzu
11207ebf7443Swdenk#########################################################################
11217ebf7443Swdenk## PPC4xx Systems
11227ebf7443Swdenk#########################################################################
1123e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
11247ebf7443Swdenk
112516c0cc1cSStefan Roeseacadia_config:	unconfig
112616c0cc1cSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
112716c0cc1cSStefan Roese
1128c440bfe6SStefan Roeseacadia_nand_config:	unconfig
112963e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/acadia
113063e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/acadia
1131c440bfe6SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1132c440bfe6SStefan Roese	@$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1133c440bfe6SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1134c440bfe6SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1135c440bfe6SStefan Roese
11367ebf7443SwdenkADCIOP_config:	unconfig
1137f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
11387ebf7443Swdenk
1139899620c2SStefan Roesealpr_config:	unconfig
114035d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1141899620c2SStefan Roese
11427521af1cSWolfgang DenkAP1000_config:unconfig
1143f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
11447521af1cSWolfgang Denk
1145c419d1d6SstroeseAPC405_config:	unconfig
1146f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1147c419d1d6Sstroese
11487ebf7443SwdenkAR405_config:	unconfig
1149f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
11507ebf7443Swdenk
1151549826eaSstroeseASH405_config:	unconfig
1152f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1153549826eaSstroese
11548a316c9bSStefan Roesebamboo_config:	unconfig
1155f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
11568a316c9bSStefan Roese
1157cf959c7dSStefan Roesebamboo_nand_config:	unconfig
115863e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/bamboo
115963e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/bamboo
1160cf959c7dSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1161f3679aa1SStefan Roese	@$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1162cf959c7dSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1163cf959c7dSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1164cf959c7dSStefan Roese
11658a316c9bSStefan Roesebubinga_config:	unconfig
1166f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1167549826eaSstroese
11687ebf7443SwdenkCANBT_config:	unconfig
1169f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
11707ebf7443Swdenk
11711d6f9720SwdenkCATcenter_config	\
11721d6f9720SwdenkCATcenter_25_config	\
11731d6f9720SwdenkCATcenter_33_config:	unconfig
1174f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1175f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1176f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
11771d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1178f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1179ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
11801d6f9720Swdenk		}
11811d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1182f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1183ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
11841d6f9720Swdenk		}
1185f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
118610767ccbSwdenk
11877644f16fSStefan RoeseCPCI2DP_config:	unconfig
1188f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
11897644f16fSStefan Roese
11907ebf7443SwdenkCPCI405_config	\
1191549826eaSstroeseCPCI4052_config	\
1192c419d1d6SstroeseCPCI405DT_config	\
1193549826eaSstroeseCPCI405AB_config:	unconfig
1194f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1195f9328639SMarian Balakowicz	@echo "BOARD_REVISION = $(@:_config=)"	>> $(obj)include/config.mk
11967ebf7443Swdenk
11977ebf7443SwdenkCPCIISER4_config:	unconfig
1198f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
11997ebf7443Swdenk
12007ebf7443SwdenkCRAYL1_config:	unconfig
1201f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
12027ebf7443Swdenk
1203cd0a9de6Swdenkcsb272_config:	unconfig
1204f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1205cd0a9de6Swdenk
1206aa245090Swdenkcsb472_config:	unconfig
1207f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1208aa245090Swdenk
12097ebf7443SwdenkDASA_SIM_config: unconfig
1210f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
12117ebf7443Swdenk
121272cd5aa7SstroeseDP405_config:	unconfig
1213f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
121472cd5aa7Sstroese
12157ebf7443SwdenkDU405_config:	unconfig
1216f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
12177ebf7443Swdenk
12181a3ac86bSMatthias FuchsDU440_config:	unconfig
12191a3ac86bSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
12201a3ac86bSMatthias Fuchs
12218a316c9bSStefan Roeseebony_config:	unconfig
1222f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
12237ebf7443Swdenk
12247ebf7443SwdenkERIC_config:	unconfig
1225f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
12267ebf7443Swdenk
1227d1cbe85bSwdenkEXBITGEN_config:	unconfig
1228f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1229d1cbe85bSwdenk
1230c419d1d6SstroeseG2000_config:	unconfig
1231f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1232c419d1d6Sstroese
1233ac982ea5SNiklaus Gigerhcu4_config:	unconfig
123435d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1235ac982ea5SNiklaus Giger
1236ac982ea5SNiklaus Gigerhcu5_config:	unconfig
123735d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1238ac982ea5SNiklaus Giger
1239c419d1d6SstroeseHH405_config:	unconfig
1240f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1241c419d1d6Sstroese
124272cd5aa7SstroeseHUB405_config:	unconfig
1243f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
124472cd5aa7Sstroese
1245db01a2eaSwdenkJSE_config:	unconfig
1246f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1247db01a2eaSwdenk
1248b79316f2SStefan RoeseKAREF_config: unconfig
1249f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1250b79316f2SStefan Roese
12514745acaaSStefan Roesekatmai_config:	unconfig
12524745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
12534745acaaSStefan Roese
1254353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR)
1255353f2688SStefan Roesekilauea_config \
1256353f2688SStefan Roesehaleakala_config: unconfig
1257353f2688SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1258566806caSStefan Roese
12593d6cb3b2SStefan Roesekilauea_nand_config \
12603d6cb3b2SStefan Roesehaleakala_nand_config: unconfig
12613d6cb3b2SStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/kilauea
12623d6cb3b2SStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/kilauea
12633d6cb3b2SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
12643d6cb3b2SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
12653d6cb3b2SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
12663d6cb3b2SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
12673d6cb3b2SStefan Roese
1268c591dffeSLarry Johnsonkorat_config:	unconfig
1269c591dffeSLarry Johnson	@$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1270c591dffeSLarry Johnson
12716e7fb6eaSStefan Roeseluan_config:	unconfig
1272f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
12736e7fb6eaSStefan Roese
1274b765ffb7SStefan Roeselwmon5_config:	unconfig
1275b765ffb7SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1276b765ffb7SStefan Roese
1277211ea91aSStefan Roesemakalu_config:	unconfig
1278211ea91aSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1279211ea91aSStefan Roese
1280b79316f2SStefan RoeseMETROBOX_config: unconfig
1281f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1282b79316f2SStefan Roese
12837ebf7443SwdenkMIP405_config:	unconfig
1284f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
12857ebf7443Swdenk
1286f3e0de60SwdenkMIP405T_config:	unconfig
1287f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1288f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1289ae6d1056SWolfgang Denk	@$(XECHO) "Enable subset config for MIP405T"
1290f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1291f3e0de60Swdenk
12927ebf7443SwdenkML2_config:	unconfig
1293f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
12947ebf7443Swdenk
1295028ab6b5Swdenkml300_config:	unconfig
1296f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1297028ab6b5Swdenk
12988a316c9bSStefan Roeseocotea_config:	unconfig
1299f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
13000e6d798cSwdenk
13017ebf7443SwdenkOCRTC_config		\
13027ebf7443SwdenkORSG_config:	unconfig
1303f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
13047ebf7443Swdenk
13055568e613SStefan Roesep3p440_config:	unconfig
1306f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
13075568e613SStefan Roese
13087ebf7443SwdenkPCI405_config:	unconfig
1309f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
13107ebf7443Swdenk
1311a4c8d138SStefan Roesepcs440ep_config:	unconfig
1312f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1313a4c8d138SStefan Roese
13147ebf7443SwdenkPIP405_config:	unconfig
1315f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
13167ebf7443Swdenk
131772cd5aa7SstroesePLU405_config:	unconfig
1318f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
131972cd5aa7Sstroese
1320549826eaSstroesePMC405_config:	unconfig
1321f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1322549826eaSstroese
13238ba132caSMatthias FuchsPMC440_config:	unconfig
13248ba132caSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
13258ba132caSMatthias Fuchs
1326281e00a3SwdenkPPChameleonEVB_config		\
1327e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1328e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1329e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1330e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1331e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1332e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1333f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1334f9328639SMarian Balakowicz	@ >$(obj)include/config.h
13351d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1336f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1337ae6d1056SWolfgang Denk		  $(XECHO) "... BASIC model" ; \
1338fbe4b5cbSwdenk		}
13391d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1340f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1341ae6d1056SWolfgang Denk		  $(XECHO) "... MEDIUM model" ; \
1342fbe4b5cbSwdenk		}
13431d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1344f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1345ae6d1056SWolfgang Denk		  $(XECHO) "... HIGH-END model" ; \
1346fbe4b5cbSwdenk		}
1347e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1348f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1349ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
1350e55ca7e2Swdenk		}
1351e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1352f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1353ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
1354e55ca7e2Swdenk		}
1355f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
135612f34241Swdenk
1357430f1b0fSStefan Roesesbc405_config:	unconfig
1358430f1b0fSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1359430f1b0fSStefan Roese
1360430f1b0fSStefan Roesesequoia_config \
1361854bc8daSStefan Roeserainier_config: unconfig
13628318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1363430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1364430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
13652aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1366854bc8daSStefan Roese
1367430f1b0fSStefan Roesesequoia_nand_config \
1368854bc8daSStefan Roeserainier_nand_config: unconfig
136963e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
137063e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/sequoia
13718318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1372430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1373430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1374430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
13758318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
13768318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1377652a10c0Swdenk
13786d3e0107SWolfgang Denksc3_config:unconfig
137935d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1380ca43ba18SHeiko Schocher
1381d4024bb7SJohn Otkentaihu_config:	unconfig
1382d4024bb7SJohn Otken	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1383d4024bb7SJohn Otken
13845fb692caSStefan Roesetaishan_config:	unconfig
13855fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
13865fb692caSStefan Roese
138772cd5aa7SstroeseVOH405_config:	unconfig
1388f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
138972cd5aa7Sstroese
1390c419d1d6SstroeseVOM405_config:	unconfig
1391f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1392c419d1d6Sstroese
1393feaedfcfSStefan RoeseCMS700_config:	unconfig
1394f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1395feaedfcfSStefan Roese
13967ebf7443SwdenkW7OLMC_config	\
13977ebf7443SwdenkW7OLMG_config: unconfig
1398f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
13997ebf7443Swdenk
1400430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR)
1401430f1b0fSStefan Roesewalnut_config \
1402430f1b0fSStefan Roesesycamore_config: unconfig
1403430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
14047ebf7443Swdenk
1405c419d1d6SstroeseWUH405_config:	unconfig
1406f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1407c419d1d6Sstroese
1408ba56f625SwdenkXPEDITE1K_config:	unconfig
1409f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1410ba56f625Swdenk
1411430f1b0fSStefan Roeseyosemite_config \
14128a316c9bSStefan Roeseyellowstone_config: unconfig
1413700200c6SStefan Roese	@mkdir -p $(obj)include
1414430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1415430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
14162aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
14178a316c9bSStefan Roese
14186c5879f3SMarian Balakowiczyucca_config:	unconfig
1419f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
14206c5879f3SMarian Balakowicz
1421779e9751SStefan Roesezeus_config:	unconfig
1422779e9751SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1423779e9751SStefan Roese
14247ebf7443Swdenk#########################################################################
1425983fda83Swdenk## MPC8220 Systems
1426983fda83Swdenk#########################################################################
1427dc17fb6dSWolfgang Denk
1428dc17fb6dSWolfgang DenkAlaska8220_config	\
1429dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1430f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1431983fda83Swdenk
143212b43d51Swdenksorcery_config:		unconfig
1433f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
143412b43d51Swdenk
1435983fda83Swdenk#########################################################################
14367ebf7443Swdenk## MPC824x Systems
14377ebf7443Swdenk#########################################################################
1438efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
14393bac3513Swdenk
14400332990bSwdenkA3000_config: unconfig
1441f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
14420332990bSwdenk
14438e6f1a8eSWolfgang Denkbarco_config: unconfig
1444f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
14458e6f1a8eSWolfgang Denk
14467ebf7443SwdenkBMW_config: unconfig
1447f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
14487ebf7443Swdenk
14493bac3513SwdenkCPC45_config	\
14503bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1451f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1452f9328639SMarian Balakowicz	@cd $(obj)include ;				\
14533bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
14543bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1455ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
14563bac3513Swdenk	else \
14573bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1458ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
14593bac3513Swdenk	fi; \
14603bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
14613bac3513Swdenk
14627ebf7443SwdenkCU824_config: unconfig
1463f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
14647ebf7443Swdenk
14657abf0c58Swdenkdebris_config: unconfig
1466f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
14677abf0c58Swdenk
146880885a9dSwdenkeXalion_config: unconfig
1469f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
147080885a9dSwdenk
1471756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1472f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1473756f586aSwdenk
147453dd6ce4SWolfgang Denkkvme080_config: unconfig
1475f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
147653dd6ce4SWolfgang Denk
14777ebf7443SwdenkMOUSSE_config: unconfig
1478f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
14797ebf7443Swdenk
14807ebf7443SwdenkMUSENKI_config: unconfig
1481f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
14827ebf7443Swdenk
1483b4676a25SwdenkMVBLUE_config:	unconfig
1484f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1485b4676a25Swdenk
14867ebf7443SwdenkOXC_config: unconfig
1487f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
14887ebf7443Swdenk
14897ebf7443SwdenkPN62_config: unconfig
1490f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
14917ebf7443Swdenk
14927ebf7443SwdenkSandpoint8240_config: unconfig
1493f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
14947ebf7443Swdenk
14957ebf7443SwdenkSandpoint8245_config: unconfig
1496f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
14977ebf7443Swdenk
1498466b7410Swdenksbc8240_config: unconfig
1499f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1500466b7410Swdenk
1501d1cbe85bSwdenkSL8245_config: unconfig
1502f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1503d1cbe85bSwdenk
15047ebf7443Swdenkutx8245_config: unconfig
1505f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
15067ebf7443Swdenk
15077ebf7443Swdenk#########################################################################
15087ebf7443Swdenk## MPC8260 Systems
15097ebf7443Swdenk#########################################################################
15107ebf7443Swdenk
151154387ac9Swdenkatc_config:	unconfig
1512f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
151354387ac9Swdenk
15147ebf7443Swdenkcogent_mpc8260_config:	unconfig
1515f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
15167ebf7443Swdenk
15177ebf7443SwdenkCPU86_config	\
15187ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1519f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1520f9328639SMarian Balakowicz	@cd $(obj)include ;				\
15217ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
15227ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1523ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
15247ebf7443Swdenk	else \
15257ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1526ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
15277ebf7443Swdenk	fi; \
15287ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
15297ebf7443Swdenk
1530384cc687SwdenkCPU87_config	\
1531384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1532f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1533f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1534384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1535384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1536ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1537384cc687Swdenk	else \
1538384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1539ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1540384cc687Swdenk	fi; \
1541384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1542384cc687Swdenk
1543f901a83bSWolfgang Denkep8248_config	\
1544f901a83bSWolfgang Denkep8248E_config	:	unconfig
1545f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1546f901a83bSWolfgang Denk
15477ebf7443Swdenkep8260_config:	unconfig
1548f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
15497ebf7443Swdenk
15508d4ac794SWolfgang Denkep82xxm_config:	unconfig
155190b1b2d6SGrant Likely	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
15528d4ac794SWolfgang Denk
15537ebf7443Swdenkgw8260_config:	unconfig
1554f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
15557ebf7443Swdenk
15567ebf7443Swdenkhymod_config:	unconfig
1557f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
15587ebf7443Swdenk
15599dd41a7bSwdenkIDS8247_config:	unconfig
1560f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
15619dd41a7bSwdenk
15627ebf7443SwdenkIPHASE4539_config:	unconfig
1563f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
15647ebf7443Swdenk
1565c3c7f861SwdenkISPAN_config		\
1566c3c7f861SwdenkISPAN_REVB_config:	unconfig
1567f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1568c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
1569f9328639SMarian Balakowicz		echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1570c3c7f861Swdenk	fi
1571f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1572c3c7f861Swdenk
1573ac9db066SHeiko Schochermgcoge_config	:	unconfig
1574ac9db066SHeiko Schocher	@$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1575ac9db066SHeiko Schocher
157604a85b3bSwdenkMPC8260ADS_config	\
1577901787d6SwdenkMPC8260ADS_lowboot_config	\
157804a85b3bSwdenkMPC8260ADS_33MHz_config	\
1579901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
158004a85b3bSwdenkMPC8260ADS_40MHz_config	\
1581901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
158204a85b3bSwdenkMPC8272ADS_config	\
1583901787d6SwdenkMPC8272ADS_lowboot_config	\
158404a85b3bSwdenkPQ2FADS_config		\
1585901787d6SwdenkPQ2FADS_lowboot_config		\
158604a85b3bSwdenkPQ2FADS-VR_config	\
1587901787d6SwdenkPQ2FADS-VR_lowboot_config	\
158804a85b3bSwdenkPQ2FADS-ZU_config	\
1589901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
159004a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1591901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
159204a85b3bSwdenk	:		unconfig
1593f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1594f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mpc8260ads
159504a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
1596f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1597f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
159804a85b3bSwdenk	$(if $(findstring MHz,$@), \
1599f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
160004a85b3bSwdenk	$(if $(findstring VR,$@), \
1601f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1602901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1603f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1604ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
1605901787d6Swdenk		}
1606f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
16077ebf7443Swdenk
1608db2f721fSwdenkMPC8266ADS_config:	unconfig
1609f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1610db2f721fSwdenk
1611efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
161210f67017SwdenkPM825_config	\
1613efa329cbSwdenkPM825_ROMBOOT_config	\
1614efa329cbSwdenkPM825_BIGFLASH_config	\
1615efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
16167ebf7443SwdenkPM826_config	\
1617efa329cbSwdenkPM826_ROMBOOT_config	\
1618efa329cbSwdenkPM826_BIGFLASH_config	\
1619efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1620f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1621f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1622efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1623f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
16247ebf7443Swdenk	else \
1625f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1626efa329cbSwdenk	fi
1627efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1628ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1629f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1630f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1631efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1632ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1633f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
16347ebf7443Swdenk		fi; \
1635efa329cbSwdenk	else \
1636ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1637efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1638ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1639f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1640f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1641efa329cbSwdenk		else \
1642f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1643efa329cbSwdenk		fi; \
1644efa329cbSwdenk	fi
1645f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1646efa329cbSwdenk
1647efa329cbSwdenkPM828_config	\
1648efa329cbSwdenkPM828_PCI_config	\
1649efa329cbSwdenkPM828_ROMBOOT_config	\
1650efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1651f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1652f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
165317076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1654f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1655ae6d1056SWolfgang Denk		$(XECHO) "... with PCI enabled" ; \
1656efa329cbSwdenk	else \
1657f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1658efa329cbSwdenk	fi
1659efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1660ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1661f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1662f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1663efa329cbSwdenk	fi
1664f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
16657ebf7443Swdenk
16667ebf7443Swdenkppmc8260_config:	unconfig
1667f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
16687ebf7443Swdenk
16698b0bfc68SwdenkRattler8248_config	\
16708b0bfc68SwdenkRattler_config:		unconfig
1671f9328639SMarian Balakowicz	@mkdir -p $(obj)include
16728b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1673f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1674f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
16758b0bfc68Swdenk
16767ebf7443SwdenkRPXsuper_config:	unconfig
1677f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
16787ebf7443Swdenk
16797ebf7443Swdenkrsdproto_config:	unconfig
1680f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
16817ebf7443Swdenk
16827ebf7443Swdenksacsng_config:	unconfig
1683f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
16847ebf7443Swdenk
16857ebf7443Swdenksbc8260_config:	unconfig
1686f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
16877ebf7443Swdenk
16887ebf7443SwdenkSCM_config:		unconfig
1689f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
16907ebf7443Swdenk
169127b207fdSwdenkTQM8255_AA_config \
169227b207fdSwdenkTQM8260_AA_config \
169327b207fdSwdenkTQM8260_AB_config \
169427b207fdSwdenkTQM8260_AC_config \
169527b207fdSwdenkTQM8260_AD_config \
169627b207fdSwdenkTQM8260_AE_config \
169727b207fdSwdenkTQM8260_AF_config \
169827b207fdSwdenkTQM8260_AG_config \
169927b207fdSwdenkTQM8260_AH_config \
17001f62bc2dSWolfgang DenkTQM8260_AI_config \
170127b207fdSwdenkTQM8265_AA_config:  unconfig
1702f9328639SMarian Balakowicz	@mkdir -p $(obj)include
170327b207fdSwdenk	@case "$@" in \
170427b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
170527b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
170627b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
170727b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
170827b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
170927b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
171027b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
171127b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
171227b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
17131f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
171427b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
171527b207fdSwdenk	esac; \
1716f9328639SMarian Balakowicz	>$(obj)include/config.h ; \
171727b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1718f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
171927b207fdSwdenk	fi; \
1720f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
172127b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
17221aaab9bfSWolfgang Denk	if [ "$${CACHE}" = "yes" ] ; then \
1723f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1724ae6d1056SWolfgang Denk		$(XECHO) "... with L2 Cache support" ; \
17257ebf7443Swdenk	else \
1726f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1727ae6d1056SWolfgang Denk		$(XECHO) "... without L2 Cache support" ; \
172827b207fdSwdenk	fi; \
17291aaab9bfSWolfgang Denk	if [ "$${BMODE}" = "60x" ] ; then \
1730f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1731ae6d1056SWolfgang Denk		$(XECHO) "... with 60x Bus Mode" ; \
173227b207fdSwdenk	else \
1733f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
1734ae6d1056SWolfgang Denk		$(XECHO) "... without 60x Bus Mode" ; \
17357ebf7443Swdenk	fi
1736f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
17377ebf7443Swdenk
1738fa230445SHeiko SchocherTQM8272_config: unconfig
1739fa230445SHeiko Schocher	@$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1740fa230445SHeiko Schocher
1741ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1742ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1743f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1744f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1745f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1746ba91e26aSwdenk
174754387ac9SwdenkZPC1900_config: unconfig
1748f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
17497aa78614Swdenk
17504e5ca3ebSwdenk#########################################################################
17514e5ca3ebSwdenk## Coldfire
17524e5ca3ebSwdenk#########################################################################
17534e5ca3ebSwdenk
17541552af70STsiChungLiewM52277EVB_config:	unconfig
17551552af70STsiChungLiew	@$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
17561552af70STsiChungLiew
17574a442d31STsiChungLiewM5235EVB_config \
17584a442d31STsiChungLiewM5235EVB_Flash16_config \
17594a442d31STsiChungLiewM5235EVB_Flash32_config:	unconfig
17604a442d31STsiChungLiew	@case "$@" in \
17614a442d31STsiChungLiew	M5235EVB_config)		FLASH=16;; \
17624a442d31STsiChungLiew	M5235EVB_Flash16_config)	FLASH=16;; \
17634a442d31STsiChungLiew	M5235EVB_Flash32_config)	FLASH=32;; \
17644a442d31STsiChungLiew	esac; \
1765ae6d1056SWolfgang Denk	>$(obj)include/config.h ; \
17664a442d31STsiChungLiew	if [ "$${FLASH}" != "16" ] ; then \
1767ae6d1056SWolfgang Denk		echo "#define NORFLASH_PS32BIT	1" >> $(obj)include/config.h ; \
17684a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
17694a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
17704a442d31STsiChungLiew	else \
17714a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
17724a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
17734a442d31STsiChungLiew	fi
17744a442d31STsiChungLiew	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
17754a442d31STsiChungLiew
1776a605aacdSTsiChungLiewM5249EVB_config :		unconfig
1777a605aacdSTsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1778a605aacdSTsiChungLiew
1779a1436a84STsiChungLiewM5253EVBE_config :		unconfig
1780a1436a84STsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1781a1436a84STsiChungLiew
17827481266eSWolfgang Denkcobra5272_config :		unconfig
1783f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
17847481266eSWolfgang Denk
17854176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
1786f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1787f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1788f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1789f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1790f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
17914176c799SWolfgang Denk
17924176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
1793f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1794f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1795f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1796f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1797f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
17984176c799SWolfgang Denk
1799daa6e418SBartlomiej Siekaidmr_config :			unconfig
1800daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1801daa6e418SBartlomiej Sieka
18024176c799SWolfgang DenkM5271EVB_config :		unconfig
1803f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
18044176c799SWolfgang Denk
18054e5ca3ebSwdenkM5272C3_config :		unconfig
1806f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
18074e5ca3ebSwdenk
18084e5ca3ebSwdenkM5282EVB_config :		unconfig
1809f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
18104e5ca3ebSwdenk
1811c419d1d6SstroeseTASREG_config :		unconfig
1812f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1813c419d1d6Sstroese
18143a108ed8SZachary P. Landaur5200_config :		unconfig
1815f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
18163a108ed8SZachary P. Landau
18178e585f02STsiChung LiewM5329AFEE_config \
18188e585f02STsiChung LiewM5329BFEE_config :	unconfig
18198e585f02STsiChung Liew	@case "$@" in \
18208e585f02STsiChung Liew	M5329AFEE_config)	NAND=0;; \
18218e585f02STsiChung Liew	M5329BFEE_config)	NAND=16;; \
18228e585f02STsiChung Liew	esac; \
1823ae6d1056SWolfgang Denk	>$(obj)include/config.h ; \
18248e585f02STsiChung Liew	if [ "$${NAND}" != "0" ] ; then \
1825ab77bc54STsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
18268e585f02STsiChung Liew	fi
18278e585f02STsiChung Liew	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
18288e585f02STsiChung Liew
1829aa5f1f9dSTsiChungLiewM5373EVB_config :	unconfig
1830aa5f1f9dSTsiChungLiew	@case "$@" in \
1831aa5f1f9dSTsiChungLiew	M5373EVB_config)	NAND=16;; \
1832aa5f1f9dSTsiChungLiew	esac; \
1833aa5f1f9dSTsiChungLiew	>include/config.h ; \
1834aa5f1f9dSTsiChungLiew	if [ "$${NAND}" != "0" ] ; then \
1835aa5f1f9dSTsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
1836aa5f1f9dSTsiChungLiew	fi
1837aa5f1f9dSTsiChungLiew	@$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1838aa5f1f9dSTsiChungLiew
18398ae158cdSTsiChungLiewM54455EVB_config \
18408ae158cdSTsiChungLiewM54455EVB_atmel_config \
18418ae158cdSTsiChungLiewM54455EVB_intel_config \
18428ae158cdSTsiChungLiewM54455EVB_a33_config \
18438ae158cdSTsiChungLiewM54455EVB_a66_config \
18448ae158cdSTsiChungLiewM54455EVB_i33_config \
18458ae158cdSTsiChungLiewM54455EVB_i66_config :	unconfig
18468ae158cdSTsiChungLiew	@case "$@" in \
18478ae158cdSTsiChungLiew	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
18488ae158cdSTsiChungLiew	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
18498ae158cdSTsiChungLiew	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
18508ae158cdSTsiChungLiew	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
18518ae158cdSTsiChungLiew	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
18528ae158cdSTsiChungLiew	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
18538ae158cdSTsiChungLiew	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
18548ae158cdSTsiChungLiew	esac; \
1855ae6d1056SWolfgang Denk	>$(obj)include/config.h ; \
18561aaab9bfSWolfgang Denk	if [ "$${FLASH}" = "INTEL" ] ; then \
18574a442d31STsiChungLiew		echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1858e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1859e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1860ae6d1056SWolfgang Denk		$(XECHO) "... with INTEL boot..." ; \
18618ae158cdSTsiChungLiew	else \
18624a442d31STsiChungLiew		echo "#define CFG_ATMEL_BOOT"	>> $(obj)include/config.h ; \
1863e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1864e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1865ae6d1056SWolfgang Denk		$(XECHO) "... with ATMEL boot..." ; \
18668ae158cdSTsiChungLiew	fi; \
18674a442d31STsiChungLiew	echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1868ae6d1056SWolfgang Denk	$(XECHO) "... with $${FREQ}Hz input clock"
18698ae158cdSTsiChungLiew	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
18708ae158cdSTsiChungLiew
187157a12720STsiChungLiewM5475AFE_config \
187257a12720STsiChungLiewM5475BFE_config \
187357a12720STsiChungLiewM5475CFE_config \
187457a12720STsiChungLiewM5475DFE_config \
187557a12720STsiChungLiewM5475EFE_config \
187657a12720STsiChungLiewM5475FFE_config \
187757a12720STsiChungLiewM5475GFE_config :	unconfig
187857a12720STsiChungLiew	@case "$@" in \
187957a12720STsiChungLiew	M5475AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
188057a12720STsiChungLiew	M5475BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
188157a12720STsiChungLiew	M5475CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
188257a12720STsiChungLiew	M5475DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
188357a12720STsiChungLiew	M5475EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
188457a12720STsiChungLiew	M5475FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
188557a12720STsiChungLiew	M5475GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
188657a12720STsiChungLiew	esac; \
188757a12720STsiChungLiew	>include/config.h ; \
188857a12720STsiChungLiew	echo "#define CFG_BUSCLK	133333333" > $(obj)include/config.h ; \
188957a12720STsiChungLiew	echo "#define CFG_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
189057a12720STsiChungLiew	echo "#define CFG_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
189157a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
189257a12720STsiChungLiew		echo "#define CFG_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
189357a12720STsiChungLiew	fi; \
189457a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
189557a12720STsiChungLiew		echo "#define CFG_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
189657a12720STsiChungLiew	fi; \
189757a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
189857a12720STsiChungLiew		echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
189957a12720STsiChungLiew	fi; \
190057a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
190157a12720STsiChungLiew		echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
190257a12720STsiChungLiew	fi
190357a12720STsiChungLiew	@$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
190457a12720STsiChungLiew
190557a12720STsiChungLiewM5485AFE_config \
190657a12720STsiChungLiewM5485BFE_config \
190757a12720STsiChungLiewM5485CFE_config \
190857a12720STsiChungLiewM5485DFE_config \
190957a12720STsiChungLiewM5485EFE_config \
191057a12720STsiChungLiewM5485FFE_config \
191157a12720STsiChungLiewM5485GFE_config \
191257a12720STsiChungLiewM5485HFE_config :	unconfig
191357a12720STsiChungLiew	@case "$@" in \
191457a12720STsiChungLiew	M5485AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
191557a12720STsiChungLiew	M5485BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
191657a12720STsiChungLiew	M5485CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
191757a12720STsiChungLiew	M5485DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
191857a12720STsiChungLiew	M5485EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
191957a12720STsiChungLiew	M5485FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
192057a12720STsiChungLiew	M5485GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
192157a12720STsiChungLiew	M5485HFE_config)	BOOT=2;CODE=;VID=1;USB=0;RAM=64;RAM1=0;; \
192257a12720STsiChungLiew	esac; \
192357a12720STsiChungLiew	>include/config.h ; \
192457a12720STsiChungLiew	echo "#define CFG_BUSCLK	100000000" > $(obj)include/config.h ; \
192557a12720STsiChungLiew	echo "#define CFG_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
192657a12720STsiChungLiew	echo "#define CFG_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
192757a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
192857a12720STsiChungLiew		echo "#define CFG_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
192957a12720STsiChungLiew	fi; \
193057a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
193157a12720STsiChungLiew		echo "#define CFG_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
193257a12720STsiChungLiew	fi; \
193357a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
193457a12720STsiChungLiew		echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
193557a12720STsiChungLiew	fi; \
193657a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
193757a12720STsiChungLiew		echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
193857a12720STsiChungLiew	fi
193957a12720STsiChungLiew	@$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
194057a12720STsiChungLiew
19417ebf7443Swdenk#########################################################################
1942f046ccd1SEran Liberty## MPC83xx Systems
1943f046ccd1SEran Liberty#########################################################################
1944f046ccd1SEran Liberty
19455c5d3242SKim PhillipsMPC8313ERDB_33_config \
19465c5d3242SKim PhillipsMPC8313ERDB_66_config: unconfig
1947cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1948cdd917a4SWolfgang Denk	@echo "" >$(obj)include/config.h ; \
19495c5d3242SKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
1950ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
1951cdd917a4SWolfgang Denk		echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
19525c5d3242SKim Phillips	fi ; \
19535c5d3242SKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
1954ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
1955cdd917a4SWolfgang Denk		echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
19565c5d3242SKim Phillips	fi ;
1957e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
19585c5d3242SKim Phillips
19598bd522ceSDave LiuMPC8315ERDB_config: unconfig
19608bd522ceSDave Liu	@$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
19618bd522ceSDave Liu
19621c274c4eSKim PhillipsMPC8323ERDB_config:	unconfig
19631c274c4eSKim Phillips	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
19641c274c4eSKim Phillips
19654decd84eSKim PhillipsMPC832XEMDS_config \
19664decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
19674decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
1968281df457STony LiMPC832XEMDS_SLAVE_config \
1969281df457STony LiMPC832XEMDS_ATM_config:	unconfig
1970cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1971cdd917a4SWolfgang Denk	@echo "" >$(obj)include/config.h ; \
19724decd84eSKim Phillips	if [ "$(findstring _HOST_,$@)" ] ; then \
1973ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
1974cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
19754decd84eSKim Phillips	fi ; \
19764decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
1977ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
1978cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1979cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
19804decd84eSKim Phillips	fi ; \
19814decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
1982ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
1983cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
1984281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
19854decd84eSKim Phillips	fi ; \
19864decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
1987ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
1988cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
1989281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1990281df457STony Li	fi ; \
1991281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
1992ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
1993281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1994281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM     1" >>$(obj)include/config.h ; \
19954decd84eSKim Phillips	fi ;
1996e58fe957SKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
1997e6f2e902SMarian Balakowicz
1998991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
1999e58fe957SKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2000991425feSMarian Balakowicz
20017a78f148STimur TabiMPC8349ITX_config \
20027a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
20037a78f148STimur TabiMPC8349ITXGP_config:	unconfig
20047a78f148STimur Tabi	@mkdir -p $(obj)include
2005e21659e3SSam Sparks	@mkdir -p $(obj)board/freescale/mpc8349itx
20067a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
20077a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
2008e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
20097a78f148STimur Tabi	fi
20107a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
2011e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
20127a78f148STimur Tabi	fi
2013e58fe957SKim Phillips	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
20144decd84eSKim Phillips
20155f820439SDave LiuMPC8360EMDS_config \
20165f820439SDave LiuMPC8360EMDS_HOST_33_config \
20175f820439SDave LiuMPC8360EMDS_HOST_66_config \
2018281df457STony LiMPC8360EMDS_SLAVE_config \
2019281df457STony LiMPC8360EMDS_ATM_config: unconfig
2020cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2021cdd917a4SWolfgang Denk	@echo "" >$(obj)include/config.h ; \
20225f820439SDave Liu	if [ "$(findstring _HOST_,$@)" ] ; then \
2023ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2024cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
20255f820439SDave Liu	fi ; \
20265f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2027ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2028cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2029cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
20305f820439SDave Liu	fi ; \
20315f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
2032ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2033cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2034281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
20355f820439SDave Liu	fi ; \
20365f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
2037ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2038cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2039281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2040281df457STony Li	fi ; \
2041281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2042ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2043281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2044281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM     1" >>$(obj)include/config.h ; \
20455f820439SDave Liu	fi ;
2046e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
20475f820439SDave Liu
2048fab6f556SAnton VorontsovMPC8360ERDK_33_config \
2049fab6f556SAnton VorontsovMPC8360ERDK_66_config \
2050fab6f556SAnton VorontsovMPC8360ERDK_config:
2051fab6f556SAnton Vorontsov	@mkdir -p $(obj)include
2052fab6f556SAnton Vorontsov	@echo "" >$(obj)include/config.h ; \
2053fab6f556SAnton Vorontsov	if [ "$(findstring _33_,$@)" ] ; then \
2054ae6d1056SWolfgang Denk		$(XECHO) -n "... CLKIN 33MHz " ; \
2055fab6f556SAnton Vorontsov		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2056fab6f556SAnton Vorontsov	fi ;
2057fab6f556SAnton Vorontsov	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2058fab6f556SAnton Vorontsov
205919580e66SDave LiuMPC837XEMDS_config \
206019580e66SDave LiuMPC837XEMDS_HOST_config:	unconfig
206119580e66SDave Liu	@mkdir -p $(obj)include
206219580e66SDave Liu	@echo "" >$(obj)include/config.h ; \
206319580e66SDave Liu	if [ "$(findstring _HOST_,$@)" ] ; then \
2064ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
206519580e66SDave Liu		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
206619580e66SDave Liu	fi ;
206719580e66SDave Liu	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
206819580e66SDave Liu
20695e918a98SKim PhillipsMPC837XERDB_config:	unconfig
20705e918a98SKim Phillips	@$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
20715e918a98SKim Phillips
207291e25769SPaul Gortmakersbc8349_config:		unconfig
207391e25769SPaul Gortmaker	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
207491e25769SPaul Gortmaker
20754decd84eSKim PhillipsTQM834x_config:	unconfig
20764decd84eSKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
20774decd84eSKim Phillips
20782ad6b513STimur Tabi
2079f046ccd1SEran Liberty#########################################################################
208042d1f039Swdenk## MPC85xx Systems
208142d1f039Swdenk#########################################################################
208242d1f039Swdenk
20837bd6104bSrobert lazarskiATUM8548_config:	unconfig
20847bd6104bSrobert lazarski	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
20857bd6104bSrobert lazarski
208642d1f039SwdenkMPC8540ADS_config:	unconfig
2087c2d943ffSKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
208842d1f039Swdenk
2089b0e32949SLunsheng WangMPC8540EVAL_config \
2090b0e32949SLunsheng WangMPC8540EVAL_33_config \
2091b0e32949SLunsheng WangMPC8540EVAL_66_config \
2092b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
2093b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:      unconfig
2094f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2095f9328639SMarian Balakowicz	@echo "" >$(obj)include/config.h ; \
2096b0e32949SLunsheng Wang	if [ "$(findstring _33_,$@)" ] ; then \
2097ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2098b0e32949SLunsheng Wang	else \
2099f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2100ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2101b0e32949SLunsheng Wang	fi ; \
2102b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
2103f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2104ae6d1056SWolfgang Denk		$(XECHO) " slave" ; \
2105b0e32949SLunsheng Wang	else \
2106ae6d1056SWolfgang Denk		$(XECHO) " host" ; \
2107b0e32949SLunsheng Wang	fi
2108f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2109b0e32949SLunsheng Wang
211042d1f039SwdenkMPC8560ADS_config:	unconfig
2111870ceac5SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
211242d1f039Swdenk
21137f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \
211403f5c550SwdenkMPC8541CDS_config:	unconfig
21157f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
21167f3f2bd2SRandy Vinson	@echo "" >$(obj)include/config.h ; \
21177f3f2bd2SRandy Vinson	if [ "$(findstring _legacy_,$@)" ] ; then \
21187f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2119ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
21207f3f2bd2SRandy Vinson	fi
2121415a613bSKumar Gala	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
212203f5c550Swdenk
212381f481caSAndy FlemingMPC8544DS_config:	unconfig
212481f481caSAndy Fleming	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
212581f481caSAndy Fleming
21267f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \
2127d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
21287f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
21297f3f2bd2SRandy Vinson	@echo "" >$(obj)include/config.h ; \
21307f3f2bd2SRandy Vinson	if [ "$(findstring _legacy_,$@)" ] ; then \
21317f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2132ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
21337f3f2bd2SRandy Vinson	fi
2134415a613bSKumar Gala	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2135d9b94f28SJon Loeliger
21367f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \
213703f5c550SwdenkMPC8555CDS_config:	unconfig
21387f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
21397f3f2bd2SRandy Vinson	@echo "" >$(obj)include/config.h ; \
21407f3f2bd2SRandy Vinson	if [ "$(findstring _legacy_,$@)" ] ; then \
21417f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2142ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
21437f3f2bd2SRandy Vinson	fi
2144415a613bSKumar Gala	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
21457abf0c58Swdenk
214667431059SAndy FlemingMPC8568MDS_config:	unconfig
2147acbca876SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
214867431059SAndy Fleming
2149384cc687SwdenkPM854_config:	unconfig
2150f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2151384cc687Swdenk
2152b20d0032SWolfgang DenkPM856_config:	unconfig
2153f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2154b20d0032SWolfgang Denk
2155c15f3120Swdenksbc8540_config \
2156c15f3120Swdenksbc8540_33_config \
2157c15f3120Swdenksbc8540_66_config:	unconfig
2158f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2159c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2160f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2161ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2162c15f3120Swdenk	else \
2163f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
2164ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2165c15f3120Swdenk	fi
2166f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2167c15f3120Swdenk
216811c45ebdSJoe Hammansbc8548_config:		unconfig
216911c45ebdSJoe Hamman	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
217011c45ebdSJoe Hamman
2171466b7410Swdenksbc8560_config \
2172466b7410Swdenksbc8560_33_config \
2173466b7410Swdenksbc8560_66_config:      unconfig
2174f9328639SMarian Balakowicz	@mkdir -p $(obj)include
21758b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2176f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2177ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
21788b07a110Swdenk	else \
2179f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
2180ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
21818b07a110Swdenk	fi
2182f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
21838b07a110Swdenk
218403f5c550Swdenkstxgp3_config:		unconfig
2185f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
218603f5c550Swdenk
2187ee152983SWolfgang Denkstxssa_config		\
2188ee152983SWolfgang Denkstxssa_4M_config:	unconfig
2189ee152983SWolfgang Denk	@mkdir -p $(obj)include
2190ee152983SWolfgang Denk	@if [ "$(findstring _4M_,$@)" ] ; then \
2191ee152983SWolfgang Denk		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2192ae6d1056SWolfgang Denk		$(XECHO) "... with 4 MiB flash memory" ; \
2193ee152983SWolfgang Denk	else \
2194ee152983SWolfgang Denk		>$(obj)include/config.h ; \
2195ee152983SWolfgang Denk	fi
2196ee152983SWolfgang Denk	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
219735171dc0SDan Malek
2198d96f41e0SStefan RoeseTQM8540_config		\
2199d96f41e0SStefan RoeseTQM8541_config		\
2200d96f41e0SStefan RoeseTQM8555_config		\
2201f5c5ef4aSwdenkTQM8560_config:		unconfig
2202f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2203a889bd27SWolfgang Denk	@CTYPE=$(subst TQM,,$(@:_config=)); \
2204f9328639SMarian Balakowicz	>$(obj)include/config.h ; \
2205ae6d1056SWolfgang Denk	$(XECHO) "... TQM"$${CTYPE}; \
2206f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2207f9328639SMarian Balakowicz	echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2208f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2209f9328639SMarian Balakowicz	echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
22108a783a65SGrant Likely	echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
2211f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
2212f5c5ef4aSwdenk
221342d1f039Swdenk#########################################################################
2214debb7354SJon Loeliger## MPC86xx Systems
2215debb7354SJon Loeliger#########################################################################
2216debb7354SJon Loeliger
22173c89d754SJon LoeligerMPC8610HPCD_config:	unconfig
22183c89d754SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
22193c89d754SJon Loeliger
2220debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
22214ce91774SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2222debb7354SJon Loeliger
2223c646bba6SJoe Hammansbc8641d_config:	unconfig
2224c646bba6SJoe Hamman	@./mkconfig $(@:_config=) ppc mpc86xx sbc8641d
2225debb7354SJon Loeliger
2226debb7354SJon Loeliger#########################################################################
22277ebf7443Swdenk## 74xx/7xx Systems
22287ebf7443Swdenk#########################################################################
22297ebf7443Swdenk
2230c7de829cSwdenkAmigaOneG3SE_config:	unconfig
2231f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2232c7de829cSwdenk
223315647dc7SwdenkBAB7xx_config: unconfig
2234f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
223515647dc7Swdenk
2236c419d1d6SstroeseCPCI750_config:	unconfig
2237f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2238c419d1d6Sstroese
22393a473b2aSwdenkDB64360_config:	unconfig
2240f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
22413a473b2aSwdenk
22423a473b2aSwdenkDB64460_config:	unconfig
2243f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
22443a473b2aSwdenk
224515647dc7SwdenkELPPC_config: unconfig
2246f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
224715647dc7Swdenk
22487ebf7443SwdenkEVB64260_config	\
22497ebf7443SwdenkEVB64260_750CX_config:	unconfig
2250f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
22517ebf7443Swdenk
22524c52783bSroy zangmpc7448hpc2_config:  unconfig
2253ee311214Sroy zang	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
22544c52783bSroy zang
225515647dc7SwdenkP3G4_config: unconfig
2256f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
22577ebf7443Swdenk
22581eac2a71SStefan Roesep3m750_config	\
22591eac2a71SStefan Roesep3m7448_config:		unconfig
22601eac2a71SStefan Roese	@mkdir -p $(obj)include
22611eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
22621eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
22631eac2a71SStefan Roese	else \
22641eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
22651eac2a71SStefan Roese	fi
22661eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
22671eac2a71SStefan Roese
22687ebf7443SwdenkPCIPPC2_config \
22697ebf7443SwdenkPCIPPC6_config: unconfig
2270f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
22717ebf7443Swdenk
227215647dc7SwdenkZUMA_config:	unconfig
2273f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
227412f34241Swdenk
2275f5e0d039SHeiko Schocherppmc7xx_config: unconfig
2276f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2277f5e0d039SHeiko Schocher
22787ebf7443Swdenk#========================================================================
22797ebf7443Swdenk# ARM
22807ebf7443Swdenk#========================================================================
22817ebf7443Swdenk#########################################################################
22827ebf7443Swdenk## StrongARM Systems
22837ebf7443Swdenk#########################################################################
22847ebf7443Swdenk
2285ea66bc88Swdenkassabet_config	:	unconfig
2286f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2287ea66bc88Swdenk
22887ebf7443Swdenkdnp1110_config	:	unconfig
2289f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
22907ebf7443Swdenk
2291855a496fSwdenkgcplus_config	:	unconfig
2292f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2293855a496fSwdenk
2294855a496fSwdenklart_config	:	unconfig
2295f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
2296855a496fSwdenk
22977ebf7443Swdenkshannon_config	:	unconfig
2298f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
22997ebf7443Swdenk
23007ebf7443Swdenk#########################################################################
23012e5983d2Swdenk## ARM92xT Systems
23027ebf7443Swdenk#########################################################################
23037ebf7443Swdenk
2304b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
230543d9616cSwdenk
23063ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
230763e73c9aSwdenk
2308a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2309a56bd922Swdenk
2310a85f9f21Swdenkat91rm9200dk_config	:	unconfig
2311f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
2312a85f9f21Swdenk
2313a85f9f21Swdenkcmc_pu2_config	:	unconfig
2314f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2315a85f9f21Swdenk
2316645da510SWolfgang Denkcsb637_config	:	unconfig
2317f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2318645da510SWolfgang Denk
23190e4018d2SWolfgang Denkmp2usb_config	:	unconfig
2320f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
23210e4018d2SWolfgang Denk
232287cb6862SWolfgang Denk
232374f4304eSWolfgang Denk########################################################################
232487cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
232587cb6862SWolfgang Denkintegratorap_config	\
232687cb6862SWolfgang Denkap_config		\
232787cb6862SWolfgang Denkap966_config		\
232887cb6862SWolfgang Denkap922_config		\
232987cb6862SWolfgang Denkap922_XA10_config	\
233087cb6862SWolfgang Denkap7_config		\
233187cb6862SWolfgang Denkap720t_config		\
233287cb6862SWolfgang Denkap920t_config		\
233387cb6862SWolfgang Denkap926ejs_config		\
233487cb6862SWolfgang Denkap946es_config: unconfig
233596782c63SWolfgang Denk	@board/integratorap/split_by_variant.sh $@
23363d3befa7Swdenk
233787cb6862SWolfgang Denkintegratorcp_config	\
233887cb6862SWolfgang Denkcp_config		\
233987cb6862SWolfgang Denkcp920t_config		\
234087cb6862SWolfgang Denkcp926ejs_config		\
234187cb6862SWolfgang Denkcp946es_config		\
234287cb6862SWolfgang Denkcp1136_config		\
234387cb6862SWolfgang Denkcp966_config		\
234487cb6862SWolfgang Denkcp922_config		\
234587cb6862SWolfgang Denkcp922_XA10_config	\
234687cb6862SWolfgang Denkcp1026_config: unconfig
234796782c63SWolfgang Denk	@board/integratorcp/split_by_variant.sh $@
234825d6712aSwdenk
234999b0d285SWolfgang Denkkb9202_config	:	unconfig
2350f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
235199b0d285SWolfgang Denk
2352f832d8a1Swdenklpd7a400_config \
2353f832d8a1Swdenklpd7a404_config:	unconfig
2354f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
23553d3befa7Swdenk
2356281e00a3Swdenkmx1ads_config	:	unconfig
2357f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2358281e00a3Swdenk
2359281e00a3Swdenkmx1fs2_config	:	unconfig
2360f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2361281e00a3Swdenk
2362ac7eb8a3SWolfgang Denknetstar_32_config	\
2363ac7eb8a3SWolfgang Denknetstar_config:		unconfig
2364f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2365ac7eb8a3SWolfgang Denk	@if [ "$(findstring _32_,$@)" ] ; then \
2366ae6d1056SWolfgang Denk		$(XECHO) "... 32MB SDRAM" ; \
2367f9328639SMarian Balakowicz		echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
2368ac7eb8a3SWolfgang Denk	else \
2369ae6d1056SWolfgang Denk		$(XECHO) "... 64MB SDRAM" ; \
2370f9328639SMarian Balakowicz		echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
2371ac7eb8a3SWolfgang Denk	fi
2372f9328639SMarian Balakowicz	@$(MKCONFIG) -a netstar arm arm925t netstar
2373ac7eb8a3SWolfgang Denk
23742e5983d2Swdenkomap1510inn_config :	unconfig
2375f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
23762e5983d2Swdenk
23771eaeb58eSwdenkomap5912osk_config :	unconfig
2378f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
23791eaeb58eSwdenk
2380c74b2108SSergey Kubushyndavinci_dvevm_config :	unconfig
2381c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2382c74b2108SSergey Kubushyn
2383c74b2108SSergey Kubushyndavinci_schmoogie_config :	unconfig
2384c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2385c74b2108SSergey Kubushyn
2386c74b2108SSergey Kubushyndavinci_sonata_config :	unconfig
2387c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2388c74b2108SSergey Kubushyn
238963e73c9aSwdenkomap1610inn_config \
239063e73c9aSwdenkomap1610inn_cs0boot_config \
239163e73c9aSwdenkomap1610inn_cs3boot_config \
23923ff02c27Swdenkomap1610inn_cs_autoboot_config \
239363e73c9aSwdenkomap1610h2_config \
239463e73c9aSwdenkomap1610h2_cs0boot_config \
23953ff02c27Swdenkomap1610h2_cs3boot_config \
23963ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
2397f9328639SMarian Balakowicz	@mkdir -p $(obj)include
239863e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2399cdd917a4SWolfgang Denk		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2400ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
24013ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2402cdd917a4SWolfgang Denk		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2403ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS_AUTO boot"; \
240463e73c9aSwdenk	else \
2405cdd917a4SWolfgang Denk		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2406ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
240763e73c9aSwdenk	fi;
2408f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
24096f21347dSwdenk
2410a56bd922Swdenkomap730p2_config \
2411a56bd922Swdenkomap730p2_cs0boot_config \
2412a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
2413f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2414a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2415f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2416ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
2417a56bd922Swdenk	else \
2418f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2419ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
2420a56bd922Swdenk	fi;
2421f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2422a56bd922Swdenk
242332cb2c70SWolfgang Denksbc2410x_config: unconfig
2424f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
242532cb2c70SWolfgang Denk
2426281e00a3Swdenkscb9328_config	:	unconfig
2427f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2428281e00a3Swdenk
24297ebf7443Swdenksmdk2400_config	:	unconfig
2430f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
24317ebf7443Swdenk
24327ebf7443Swdenksmdk2410_config	:	unconfig
2433f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
24347ebf7443Swdenk
24352d24a3a7SwdenkSX1_config :		unconfig
2436f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t sx1
24372d24a3a7Swdenk
2438b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
243943d9616cSwdenktrab_config \
2440b0639ca3Swdenktrab_bigram_config \
2441b0639ca3Swdenktrab_bigflash_config \
2442f54ebdfaSwdenktrab_old_config:	unconfig
2443f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2444f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
2445f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2446b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
2447f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2448f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
2449ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2450b0639ca3Swdenk		}
2451b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
2452f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2453f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2454ae6d1056SWolfgang Denk		  $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2455f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2456b0639ca3Swdenk		}
2457f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
2458f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2459f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2460ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2461f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
246243d9616cSwdenk		}
2463f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
24647ebf7443Swdenk
24651cb8e980SwdenkVCMA9_config	:	unconfig
2466f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
24671cb8e980Swdenk
246887cb6862SWolfgang Denk#========================================================================
246987cb6862SWolfgang Denk# ARM supplied Versatile development boards
247087cb6862SWolfgang Denk#========================================================================
247187cb6862SWolfgang Denkversatile_config	\
247287cb6862SWolfgang Denkversatileab_config	\
247387cb6862SWolfgang Denkversatilepb_config :	unconfig
247496782c63SWolfgang Denk	@board/versatile/split_by_variant.sh $@
2475074cff0dSwdenk
24763c2b3d45Swdenkvoiceblue_config:	unconfig
24774fedfddfSLadislav Michl	@$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
24783c2b3d45Swdenk
247916b013e7Swdenkcm4008_config	:	unconfig
2480f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
248116b013e7Swdenk
248216b013e7Swdenkcm41xx_config	:	unconfig
2483f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
248416b013e7Swdenk
24850c32d96dSWolfgang Denkgth2_config		:	unconfig
2486f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2487f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2488f9328639SMarian Balakowicz	@echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2489f9328639SMarian Balakowicz	@$(MKCONFIG) -a gth2 mips mips gth2
24900c32d96dSWolfgang Denk
2491074cff0dSwdenk#########################################################################
2492074cff0dSwdenk## S3C44B0 Systems
2493074cff0dSwdenk#########################################################################
2494074cff0dSwdenk
2495074cff0dSwdenkB2_config	:	unconfig
2496f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2497074cff0dSwdenk
24987ebf7443Swdenk#########################################################################
24997ebf7443Swdenk## ARM720T Systems
25007ebf7443Swdenk#########################################################################
25017ebf7443Swdenk
2502c570b2fdSWolfgang Denkarmadillo_config:	unconfig
2503f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2504c570b2fdSWolfgang Denk
25057ebf7443Swdenkep7312_config	:	unconfig
2506f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
25077ebf7443Swdenk
25082d24a3a7Swdenkimpa7_config	:	unconfig
2509f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
25102d24a3a7Swdenk
25112d1a537dSwdenkmodnet50_config :	unconfig
2512f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
25132d1a537dSwdenk
251439539887Swdenkevb4510_config :	unconfig
2515f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
251639539887Swdenk
25176bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
2518b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2519b0d8f5bfSPeter Pearse
2520b0d8f5bfSPeter PearseSMN42_config	:	unconfig
2521b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
25226bd2447eSGary Jennejohn
25237ebf7443Swdenk#########################################################################
252443d9616cSwdenk## XScale Systems
25257ebf7443Swdenk#########################################################################
25267ebf7443Swdenk
2527799891efSMichael Schwingenactux1_config	:	unconfig
2528799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux1
2529799891efSMichael Schwingen
2530799891efSMichael Schwingenactux2_config	:	unconfig
2531799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux2
2532799891efSMichael Schwingen
2533799891efSMichael Schwingenactux3_config	:	unconfig
2534799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux3
2535799891efSMichael Schwingen
2536799891efSMichael Schwingenactux4_config	:	unconfig
2537799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux4
2538799891efSMichael Schwingen
253920787e23Swdenkadsvix_config	:	unconfig
2540f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa adsvix
254120787e23Swdenk
2542fabd46acSwdenkcerf250_config :	unconfig
2543f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
2544fabd46acSwdenk
25457ebf7443Swdenkcradle_config	:	unconfig
2546f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
25477ebf7443Swdenk
25487ebf7443Swdenkcsb226_config	:	unconfig
2549f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
25507ebf7443Swdenk
25510be248faSWolfgang Denkdelta_config :
2552f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
25530be248faSWolfgang Denk
255443d9616cSwdenkinnokom_config	:	unconfig
2555f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
255643d9616cSwdenk
25572d5b561eSwdenkixdp425_config	:	unconfig
2558f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
25592d5b561eSwdenk
2560ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
2561f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2562ba94a1bbSWolfgang Denk
256343d9616cSwdenklubbock_config	:	unconfig
2564f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
256543d9616cSwdenk
25665720df78SHeiko Schocherpleb2_config	:	unconfig
2567f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
25685720df78SHeiko Schocher
256952f52c14Swdenklogodl_config	:	unconfig
2570f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
257152f52c14Swdenk
25729d8d5a5bSStefan Roesepdnb3_config \
25739d8d5a5bSStefan Roesescpu_config:    unconfig
2574cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
25759d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
2576cdd917a4SWolfgang Denk		echo "#define CONFIG_SCPU"      >>$(obj)include/config.h ; \
2577ae6d1056SWolfgang Denk		$(XECHO) "... on SCPU board variant" ; \
25789d8d5a5bSStefan Roese	else \
2579cdd917a4SWolfgang Denk		>$(obj)include/config.h ; \
25809d8d5a5bSStefan Roese	fi
25819d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2582ba94a1bbSWolfgang Denk
2583f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
2584f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2585f57f70aaSWolfgang Denk
25865e5803e1Sstefano babictrizepsiv_config	:	unconfig
25875e5803e1Sstefano babic	@$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
25885e5803e1Sstefano babic
25893e38691eSwdenkwepep250_config	:	unconfig
2590f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
25913e38691eSwdenk
25924ec3a7f0Swdenkxaeniax_config	:	unconfig
2593f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
25944ec3a7f0Swdenk
2595efa329cbSwdenkxm250_config	:	unconfig
2596f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
2597efa329cbSwdenk
2598ca0e7748Swdenkxsengine_config :	unconfig
2599f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
2600ca0e7748Swdenk
2601e0269579SMarkus Klotzbücherzylonite_config :
2602f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
2603e0269579SMarkus Klotzbücher
26048ed96046Swdenk#########################################################################
26058ed96046Swdenk## ARM1136 Systems
26068ed96046Swdenk#########################################################################
26078ed96046Swdenkomap2420h4_config	: unconfig
2608f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
26095ca9881aSPeter Pearse
26105ca9881aSPeter Pearseapollon_config		: unconfig
2611*751b9b51SKyungmin Park	@echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
26125ca9881aSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon
2613*751b9b51SKyungmin Park	@echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
26148ed96046Swdenk
26152262cfeeSwdenk#========================================================================
26162262cfeeSwdenk# i386
26172262cfeeSwdenk#========================================================================
26182262cfeeSwdenk#########################################################################
26192262cfeeSwdenk## AMD SC520 CDP
26202262cfeeSwdenk#########################################################################
26212262cfeeSwdenksc520_cdp_config	:	unconfig
2622f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
26232262cfeeSwdenk
26247a8e9bedSwdenksc520_spunk_config	:	unconfig
2625f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
26267a8e9bedSwdenk
26277a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
2628f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
26297a8e9bedSwdenk
263043d9616cSwdenk#========================================================================
263143d9616cSwdenk# MIPS
263243d9616cSwdenk#========================================================================
26337ebf7443Swdenk#########################################################################
263443d9616cSwdenk## MIPS32 4Kc
263543d9616cSwdenk#########################################################################
263643d9616cSwdenk
2637e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2638e0ac62d7Swdenk
2639e0ac62d7Swdenkincaip_100MHz_config	\
2640e0ac62d7Swdenkincaip_133MHz_config	\
2641e0ac62d7Swdenkincaip_150MHz_config	\
264243d9616cSwdenkincaip_config: unconfig
2643f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2644f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2645e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
2646f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2647ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
2648e0ac62d7Swdenk		}
2649e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
2650f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2651ae6d1056SWolfgang Denk		  $(XECHO) "... with 133MHz system clock" ; \
2652e0ac62d7Swdenk		}
2653e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
2654f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2655ae6d1056SWolfgang Denk		  $(XECHO) "... with 150MHz system clock" ; \
2656e0ac62d7Swdenk		}
2657f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2658e0ac62d7Swdenk
2659f4863a7aSwdenktb0229_config: unconfig
2660f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
2661f4863a7aSwdenk
2662e0ac62d7Swdenk#########################################################################
266369459791Swdenk## MIPS32 AU1X00
266469459791Swdenk#########################################################################
266569459791Swdenkdbau1000_config		:	unconfig
2666f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2667f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2668f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2669f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
267069459791Swdenk
267169459791Swdenkdbau1100_config		:	unconfig
2672f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2673f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2674f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2675f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
267669459791Swdenk
267769459791Swdenkdbau1500_config		:	unconfig
2678f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2679f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2680f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2681f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
268269459791Swdenk
2683ff36fd85Swdenkdbau1550_config		:	unconfig
2684f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2685f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2686f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2687f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2688ff36fd85Swdenk
2689ff36fd85Swdenkdbau1550_el_config	:	unconfig
2690f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2691f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2692f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2693f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2694ff36fd85Swdenk
2695265817c7SWolfgang Denkpb1000_config		:	unconfig
2696f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2697f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2698f9328639SMarian Balakowicz	@echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2699f9328639SMarian Balakowicz	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
2700265817c7SWolfgang Denk
27010764c164SVlad Lunguqemu_mips_config: unconfig
27020764c164SVlad Lungu	@mkdir -p $(obj)include
27030764c164SVlad Lungu	@ >$(obj)include/config.h
27040764c164SVlad Lungu	@echo "#define CONFIG_QEMU_MIPS 1" >>$(obj)include/config.h
27050764c164SVlad Lungu	@$(MKCONFIG) -a qemu-mips mips mips qemu-mips
27060764c164SVlad Lungu
270769459791Swdenk#########################################################################
2708e0ac62d7Swdenk## MIPS64 5Kc
2709e0ac62d7Swdenk#########################################################################
271043d9616cSwdenk
27113e38691eSwdenkpurple_config :		unconfig
2712f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
271343d9616cSwdenk
27144a551709Swdenk#========================================================================
27154a551709Swdenk# Nios
27164a551709Swdenk#========================================================================
27174a551709Swdenk#########################################################################
27184a551709Swdenk## Nios32
27194a551709Swdenk#########################################################################
27204a551709Swdenk
2721c935d3bdSwdenkDK1C20_safe_32_config		\
2722c935d3bdSwdenkDK1C20_standard_32_config	\
27234a551709SwdenkDK1C20_config:	unconfig
2724f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2725f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2726c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2727f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2728ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
2729c935d3bdSwdenk		}
2730c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2731f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2732ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
2733c935d3bdSwdenk		}
2734c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
2735f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2736ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2737c935d3bdSwdenk		}
2738f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2739c935d3bdSwdenk
2740c935d3bdSwdenkDK1S10_safe_32_config		\
2741c935d3bdSwdenkDK1S10_standard_32_config	\
2742ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
2743c935d3bdSwdenkDK1S10_config:	unconfig
2744f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2745f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2746c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2747f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2748ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
2749c935d3bdSwdenk		}
2750c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2751f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2752ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
2753c935d3bdSwdenk		}
2754ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2755f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2756ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2757ec4c544bSwdenk		}
2758c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
2759f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2760ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2761c935d3bdSwdenk		}
2762f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
27634a551709Swdenk
2764aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
2765aaf224abSwdenkADNPESC1_base_32_config		\
2766aaf224abSwdenkADNPESC1_config: unconfig
2767f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2768f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2769aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
2770f9328639SMarian Balakowicz		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2771ae6d1056SWolfgang Denk		  $(XECHO) "... DNP/EVA2 configuration" ; \
2772aaf224abSwdenk		}
2773aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
2774f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2775ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration" ; \
2776aaf224abSwdenk		}
2777aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2778f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2779ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2780aaf224abSwdenk		}
2781f9328639SMarian Balakowicz	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2782aaf224abSwdenk
27835c952cf0Swdenk#########################################################################
27845c952cf0Swdenk## Nios-II
27855c952cf0Swdenk#########################################################################
27865c952cf0Swdenk
27879cc83378SScott McNuttEP1C20_config : unconfig
2788f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
27899cc83378SScott McNutt
27909cc83378SScott McNuttEP1S10_config : unconfig
2791f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
27929cc83378SScott McNutt
27939cc83378SScott McNuttEP1S40_config : unconfig
2794f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
27959cc83378SScott McNutt
27965c952cf0SwdenkPK1C20_config : unconfig
2797f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
27985c952cf0Swdenk
27995c952cf0SwdenkPCI5441_config : unconfig
2800f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
28014a551709Swdenk
2802507bbe3eSwdenk#========================================================================
2803507bbe3eSwdenk# MicroBlaze
2804507bbe3eSwdenk#========================================================================
2805507bbe3eSwdenk#########################################################################
2806507bbe3eSwdenk## Microblaze
2807507bbe3eSwdenk#########################################################################
2808507bbe3eSwdenksuzaku_config:	unconfig
2809f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2810f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2811f9328639SMarian Balakowicz	@echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2812f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2813507bbe3eSwdenk
2814cfc67116SMichal Simekml401_config:	unconfig
2815cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2816cdd917a4SWolfgang Denk	@ >$(obj)include/config.h
2817cdd917a4SWolfgang Denk	@echo "#define CONFIG_ML401 1" >> $(obj)include/config.h
281890b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2819cfc67116SMichal Simek
282017980495SMichal Simekxupv2p_config:	unconfig
2821cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2822cdd917a4SWolfgang Denk	@ >$(obj)include/config.h
2823cdd917a4SWolfgang Denk	@echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h
282490b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
282517980495SMichal Simek
28263e38691eSwdenk#########################################################################
28270afe519aSWolfgang Denk## Blackfin
28280afe519aSWolfgang Denk#########################################################################
2829ef26a08fSAubrey.Libf533-ezkit_config:	unconfig
2830ef26a08fSAubrey.Li	@$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
28310afe519aSWolfgang Denk
2832ef26a08fSAubrey.Libf533-stamp_config:	unconfig
2833ef26a08fSAubrey.Li	@$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
28340afe519aSWolfgang Denk
283526bf7decSAubrey Libf537-stamp_config:	unconfig
283626bf7decSAubrey Li	@$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
283726bf7decSAubrey Li
283865458987SAubrey Libf561-ezkit_config:	unconfig
283965458987SAubrey Li	@$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
28400afe519aSWolfgang Denk
28415e3b0bc1SHaavard Skinnemoen#========================================================================
28425e3b0bc1SHaavard Skinnemoen# AVR32
28435e3b0bc1SHaavard Skinnemoen#========================================================================
28445e3b0bc1SHaavard Skinnemoen#########################################################################
28455e3b0bc1SHaavard Skinnemoen## AT32AP7xxx
28465e3b0bc1SHaavard Skinnemoen#########################################################################
28475e3b0bc1SHaavard Skinnemoen
28485e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
284936f28f8aSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
28505e3b0bc1SHaavard Skinnemoen
2851667568dbSHaavard Skinnemoenatstk1003_config	:	unconfig
2852667568dbSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2853667568dbSHaavard Skinnemoen
285464ff2357SHaavard Skinnemoenatstk1004_config	:	unconfig
285564ff2357SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
28560afe519aSWolfgang Denk
28576b443944SHaavard Skinnemoenatngw100_config	:	unconfig
28586b443944SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
28596b443944SHaavard Skinnemoen
28600afe519aSWolfgang Denk#########################################################################
28610afe519aSWolfgang Denk#########################################################################
28623e38691eSwdenk#########################################################################
28637ebf7443Swdenk
286469df3c4dSNobuhiro Iwamatsu#########################################################################
2865b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH)
2866b2b5e2bbSYoshihiro Shimoda#########################################################################
2867b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig
2868b2b5e2bbSYoshihiro Shimoda	@ >include/config.h
2869b2b5e2bbSYoshihiro Shimoda	@echo "#define CONFIG_MS7720SE 1" >> include/config.h
2870b2b5e2bbSYoshihiro Shimoda	@./mkconfig -a $(@:_config=) sh sh3 ms7720se
2871b2b5e2bbSYoshihiro Shimoda
2872b2b5e2bbSYoshihiro Shimoda#########################################################################
287369df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH)
287469df3c4dSNobuhiro Iwamatsu#########################################################################
287569df3c4dSNobuhiro Iwamatsums7750se_config: unconfig
2876ae6d1056SWolfgang Denk	@ >$(obj)include/config.h
2877ae6d1056SWolfgang Denk	@echo "#define CONFIG_MS7750SE 1" >> $(obj)include/config.h
287869df3c4dSNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh4 ms7750se
287969df3c4dSNobuhiro Iwamatsu
2880d91ea45dSNobuhiro Iwamatsums7722se_config :       unconfig
2881ae6d1056SWolfgang Denk	@ >$(obj)include/config.h
2882ae6d1056SWolfgang Denk	@echo "#define CONFIG_MS7722SE 1" >> $(obj)include/config.h
2883d91ea45dSNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh4 ms7722se
28847a8e9bedSwdenk
28857a8e9bedSwdenk#########################################################################
28867ebf7443Swdenk#########################################################################
28877ebf7443Swdenk#########################################################################
28887ebf7443Swdenk
2889228f29acSwdenkclean:
2890ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \
28917f70e853Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
28927ebf7443Swdenk		-o -name '*.o'  -o -name '*.a'  \) -print \
28937ebf7443Swdenk		| xargs rm -f
2894ae6d1056SWolfgang Denk	@rm -f $(obj)examples/hello_world $(obj)examples/timer \
2895f9328639SMarian Balakowicz	      $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2896f9328639SMarian Balakowicz	      $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2897d214fbbdSWolfgang Denk	      $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2898f9328639SMarian Balakowicz	      $(obj)examples/test_burst
2899ae6d1056SWolfgang Denk	@rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2900566a494fSHeiko Schocher		$(obj)tools/gen_eth_addr $(obj)tools/ubsha1
2901ae6d1056SWolfgang Denk	@rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2902ae6d1056SWolfgang Denk	@rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2903ae6d1056SWolfgang Denk	@rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2904ae6d1056SWolfgang Denk	@rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2905ae6d1056SWolfgang Denk	@rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2906ae6d1056SWolfgang Denk	@rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2907ae6d1056SWolfgang Denk	@rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2908ae6d1056SWolfgang Denk	@rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2909ae6d1056SWolfgang Denk	@rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2910ae6d1056SWolfgang Denk	@rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
2911ae6d1056SWolfgang Denk	@rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2912ae6d1056SWolfgang Denk	@rm -f $(obj)include/bmp_logo.h
2913ae6d1056SWolfgang Denk	@rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2914*751b9b51SKyungmin Park	@rm -f $(obj)onenand_ipl/onenand-ipl $(obj)onenand_ipl/onenand-ipl.bin \
2915*751b9b51SKyungmin Park		$(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)onenand_ipl/onenand-ipl.map
2916ae6d1056SWolfgang Denk	@rm -f $(obj)api_examples/demo $(VERSION_FILE)
29177ebf7443Swdenk
29187ebf7443Swdenkclobber:	clean
2919ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \( -name .depend \
29204c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
29214c0d4c3bSwdenk		-print0 \
29224c0d4c3bSwdenk		| xargs -0 rm -f
2923ae6d1056SWolfgang Denk	@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS
2924ae6d1056SWolfgang Denk	@rm -fr $(obj)*.*~
2925ae6d1056SWolfgang Denk	@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2926ae6d1056SWolfgang Denk	@rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
2927ae6d1056SWolfgang Denk	@rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2928ae6d1056SWolfgang Denk	@rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2929ae6d1056SWolfgang Denk	@[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2930*751b9b51SKyungmin Park	@[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -lname "*" -print | xargs rm -f
2931ae6d1056SWolfgang Denk	@[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f
29327ebf7443Swdenk
2933f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
29347ebf7443Swdenkmrproper \
29357ebf7443Swdenkdistclean:	clobber unconfig
2936f9328639SMarian Balakowiczelse
2937f9328639SMarian Balakowiczmrproper \
2938f9328639SMarian Balakowiczdistclean:	clobber unconfig
2939ae6d1056SWolfgang Denk	rm -rf $(obj)*
2940f9328639SMarian Balakowiczendif
29417ebf7443Swdenk
29427ebf7443Swdenkbackup:
29437ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
29447ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
29457ebf7443Swdenk
29467ebf7443Swdenk#########################################################################
2947