xref: /openbmc/u-boot/Makefile (revision 6b443944)
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
221f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a
222080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a
22316b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a
224318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a
22559829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a
22659829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a
22759829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a
22859829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a
2298e585f02STsiChung LiewLIBS += drivers/net/libnet.a
2302439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a
23193a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a
23273646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a
2337737d5c6SDave Liuifeq ($(CPU),mpc83xx)
2347737d5c6SDave LiuLIBS += drivers/qe/qe.a
2357737d5c6SDave Liuendif
236da9d4610SAndy Flemingifeq ($(CPU),mpc85xx)
237da9d4610SAndy FlemingLIBS += drivers/qe/qe.a
238da9d4610SAndy Flemingendif
23959829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a
2408e585f02STsiChung LiewLIBS += drivers/serial/libserial.a
24159829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a
24259829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a
243ad5bb451SWolfgang DenkLIBS += post/libpost.a post/drivers/libpostdrivers.a
244ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
245ad5bb451SWolfgang Denk	"post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
246b4489621SSergei PoselenovLIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
247b4489621SSergei Poselenov	"post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
248ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
249ad5bb451SWolfgang Denk	"post/cpu/$(CPU)/libpost$(CPU).a"; fi)
250ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
251ad5bb451SWolfgang Denk	"post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
2527ebf7443SwdenkLIBS += common/libcommon.a
2537651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a
254500856ebSRafal Jaworowskiifeq ($(CONFIG_API),y)
255500856ebSRafal JaworowskiLIBS += api/libapi.a
256500856ebSRafal Jaworowskiendif
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 \
267ad5bb451SWolfgang Denk	  examples
268ad5bb451SWolfgang Denk
269500856ebSRafal Jaworowskiifeq ($(CONFIG_API),y)
270500856ebSRafal JaworowskiSUBDIRS += api_examples
271500856ebSRafal Jaworowskiendif
272500856ebSRafal Jaworowski
273b028f715Swdenk.PHONY : $(SUBDIRS)
274a8c7c708Swdenk
275887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y)
276887e2ec9SStefan RoeseNAND_SPL = nand_spl
277887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin
278887e2ec9SStefan Roeseendif
279887e2ec9SStefan Roese
280f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS))
281f9328639SMarian Balakowicz__LIBS := $(subst $(obj),,$(LIBS))
282f9328639SMarian Balakowicz
2837ebf7443Swdenk#########################################################################
284bdccc4feSwdenk#########################################################################
2857ebf7443Swdenk
286566a494fSHeiko SchocherALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
2877ebf7443Swdenk
288bdccc4feSwdenkall:		$(ALL)
2897ebf7443Swdenk
290f9328639SMarian Balakowicz$(obj)u-boot.hex:	$(obj)u-boot
2916310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
2926310eb9dSwdenk
293f9328639SMarian Balakowicz$(obj)u-boot.srec:	$(obj)u-boot
2947ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
2957ebf7443Swdenk
296f9328639SMarian Balakowicz$(obj)u-boot.bin:	$(obj)u-boot
2977ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
2987ebf7443Swdenk
299f9328639SMarian Balakowicz$(obj)u-boot.img:	$(obj)u-boot.bin
300bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
301bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
302881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
303bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
304bdccc4feSwdenk		-d $< $@
305bdccc4feSwdenk
306566a494fSHeiko Schocher$(obj)u-boot.sha1:	$(obj)u-boot.bin
30701159530SHeiko Schocher		$(obj)tools/ubsha1 $(obj)u-boot.bin
308566a494fSHeiko Schocher
309f9328639SMarian Balakowicz$(obj)u-boot.dis:	$(obj)u-boot
3107ebf7443Swdenk		$(OBJDUMP) -d $< > $@
3117ebf7443Swdenk
312dd531aacSWolfgang Denk$(obj)u-boot:		depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
3138bde7f77Swdenk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
314f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
315f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
316b2184c31Swdenk			-Map u-boot.map -o u-boot
3177ebf7443Swdenk
318dd531aacSWolfgang Denk$(OBJS):	$(obj)include/autoconf.mk
319f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
320f9328639SMarian Balakowicz
321dd531aacSWolfgang Denk$(LIBS):	$(obj)include/autoconf.mk
322f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
323a8c7c708Swdenk
324dd531aacSWolfgang Denk$(SUBDIRS):	$(obj)include/autoconf.mk
325b028f715Swdenk		$(MAKE) -C $@ all
3267ebf7443Swdenk
327dd531aacSWolfgang Denk$(NAND_SPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
3288318fbf8SMarian Balakowicz		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
329887e2ec9SStefan Roese
330dd531aacSWolfgang Denk$(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
3318318fbf8SMarian Balakowicz		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
332887e2ec9SStefan Roese
333ae6d1056SWolfgang Denk$(VERSION_FILE):
334ae6d1056SWolfgang Denk		@( echo -n "#define U_BOOT_VERSION \"U-Boot " ; \
335ae6d1056SWolfgang Denk		echo -n "$(U_BOOT_VERSION)" ; \
336881a87ecSWolfgang Denk		echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
337ae6d1056SWolfgang Denk			 $(TOPDIR)) ; \
338ae6d1056SWolfgang Denk		echo "\"" ) > $(VERSION_FILE)
339881a87ecSWolfgang Denk
3408f713fdfSdzugdbtools:
341f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
342f9328639SMarian Balakowicz
343f9328639SMarian Balakowiczupdater:
344f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
345f9328639SMarian Balakowicz
346f9328639SMarian Balakowiczenv:
34764b3727bSMarkus Klotzbücher		$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
3488f713fdfSdzu
349ae6d1056SWolfgang Denkdepend dep:	$(VERSION_FILE)
350f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
3517ebf7443Swdenk
352a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include
353a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR)
354a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU)
355a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH)
356a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs
357a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat
358a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos
359a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2
360a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net
361a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk
362a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common
363a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator
364a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block
365a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon
366a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c
367a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input
368a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc
369a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd
370a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand
371a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy
372a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand
373a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net
374a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin
375a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci
376a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia
377a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe
378a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc
379a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial
380a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb
381a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video
382a340c325SJean-Christophe PLAGNIOL-VILLARD
383f9328639SMarian Balakowicztags ctags:
384ae6d1056SWolfgang Denk		ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
38588fed9a1SWolfgang Denk						-name '*.[ch]' -print`
3867ebf7443Swdenk
3877ebf7443Swdenketags:
388ae6d1056SWolfgang Denk		etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
38988fed9a1SWolfgang Denk						-name '*.[ch]' -print`
3907ebf7443Swdenk
391f9328639SMarian Balakowicz$(obj)System.map:	$(obj)u-boot
3927ebf7443Swdenk		@$(NM) $< | \
3937ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
394f9328639SMarian Balakowicz		sort > $(obj)System.map
3957ebf7443Swdenk
3962f155f6cSGrant Likely#
3972f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles)
3982f155f6cSGrant Likely#
3992f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
4002f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when
4012f155f6cSGrant Likely# to regenerate the autoconf.mk file.
402ae6d1056SWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE)
403ae6d1056SWolfgang Denk	@$(XECHO) Generating include/autoconf.mk ; \
404ae6d1056SWolfgang Denk	: Generate the dependancies ; \
405ae6d1056SWolfgang Denk	$(CC) -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \
406ae6d1056SWolfgang Denk	: Extract the config macros ; \
407ae6d1056SWolfgang Denk	$(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@
4082f155f6cSGrant Likely
409ae6d1056SWolfgang Denksinclude $(obj)include/autoconf.mk.dep
4102f155f6cSGrant Likely
4117ebf7443Swdenk#########################################################################
412ae6d1056SWolfgang Denkelse	# !config.mk
413f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
414f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
415ae6d1056SWolfgang Denk$(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
416f9328639SMarian Balakowiczdep tags ctags etags $(obj)System.map:
4177ebf7443Swdenk	@echo "System not configured - see README" >&2
4187ebf7443Swdenk	@ exit 1
419ae6d1056SWolfgang Denkendif	# config.mk
4207ebf7443Swdenk
4214e53a258SWolfgang Denk.PHONY : CHANGELOG
4224e53a258SWolfgang DenkCHANGELOG:
423b985b5d6SBen Warren	git log --no-merges U-Boot-1_1_5.. | \
424b985b5d6SBen Warren	unexpand -a | sed -e 's/\s\s*$$//' > $@
4254e53a258SWolfgang Denk
4267ebf7443Swdenk#########################################################################
4277ebf7443Swdenk
4287ebf7443Swdenkunconfig:
429887e2ec9SStefan Roese	@rm -f $(obj)include/config.h $(obj)include/config.mk \
4302f155f6cSGrant Likely		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
4312f155f6cSGrant Likely		$(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
4327ebf7443Swdenk
4337ebf7443Swdenk#========================================================================
4347ebf7443Swdenk# PowerPC
4357ebf7443Swdenk#========================================================================
4360db5bca8Swdenk
4370db5bca8Swdenk#########################################################################
4380db5bca8Swdenk## MPC5xx Systems
4390db5bca8Swdenk#########################################################################
4400db5bca8Swdenk
4415e5f9ed2Swdenkcanmb_config:	unconfig
442f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
4435e5f9ed2Swdenk
4440db5bca8Swdenkcmi_mpc5xx_config:	unconfig
445f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
4460db5bca8Swdenk
447b6e4c403SwdenkPATI_config:		unconfig
448f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
449b6e4c403Swdenk
4507ebf7443Swdenk#########################################################################
451945af8d7Swdenk## MPC5xxx Systems
452945af8d7Swdenk#########################################################################
453a87589daSwdenk
454dafba16eSWolfgang Denkaev_config: unconfig
455f9328639SMarian Balakowicz	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
456dafba16eSWolfgang Denk
4576ca24c64Sdzu@denx.deBC3450_config:	unconfig
458f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
4596ca24c64Sdzu@denx.de
4605e4b3361SStefan Roesecpci5200_config:  unconfig
461f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
4625e4b3361SStefan Roese
463a87589daSwdenkhmi1001_config:	unconfig
464f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
465a87589daSwdenk
466e35745bbSwdenkLite5200_config				\
467e35745bbSwdenkLite5200_LOWBOOT_config			\
468e35745bbSwdenkLite5200_LOWBOOT08_config		\
469e35745bbSwdenkicecube_5200_config			\
470e35745bbSwdenkicecube_5200_LOWBOOT_config		\
471e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
472b2001f27Swdenkicecube_5200_DDR_config			\
47379d696fcSwdenkicecube_5200_DDR_LOWBOOT_config		\
47479d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
475e35745bbSwdenkicecube_5100_config:			unconfig
476f9328639SMarian Balakowicz	@mkdir -p $(obj)include
477f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
478f9328639SMarian Balakowicz	@ >$(obj)include/config.h
47917d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
48017d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
481f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
482f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
48317d704ebSwdenk		  fi ; \
484ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
4855cf9da48Swdenk		}
4865cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
487f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
4885cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
489ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
4905cf9da48Swdenk		}
491b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
492f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
493ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
494b2001f27Swdenk		}
495d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
496f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
497ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
498d4ca31c4Swdenk		}
499a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
500f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
501ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
502945af8d7Swdenk		}
503f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
504945af8d7Swdenk
5052605e90bSHeiko Schocherjupiter_config:	unconfig
5062605e90bSHeiko Schocher	@$(MKCONFIG) jupiter ppc mpc5xxx jupiter
5072605e90bSHeiko Schocher
5084707fb50SBartlomiej Siekav38b_config: unconfig
50990b1b2d6SGrant Likely	@$(MKCONFIG) -a v38b ppc mpc5xxx v38b
5104707fb50SBartlomiej Sieka
511138ff60cSwdenkinka4x0_config:	unconfig
512f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
513138ff60cSwdenk
51409e4b0c5SWolfgang Denklite5200b_config	\
515d3832e8fSDomen Puncerlite5200b_PM_config	\
51609e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
517f9328639SMarian Balakowicz	@mkdir -p $(obj)include
518f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
519f9328639SMarian Balakowicz	@ >$(obj)include/config.h
520f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
521ae6d1056SWolfgang Denk	@ $(XECHO) "... DDR memory revision"
522f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
523f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
524d3832e8fSDomen Puncer	@[ -z "$(findstring _PM_,$@)" ] || \
525d3832e8fSDomen Puncer		{ echo "#define CONFIG_LITE5200B_PM"	>>$(obj)include/config.h ; \
526ae6d1056SWolfgang Denk		  $(XECHO) "... with power management (low-power mode) support" ; \
527d3832e8fSDomen Puncer		}
52809e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
529f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
530ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
53109e4b0c5SWolfgang Denk		}
532ae6d1056SWolfgang Denk	@ $(XECHO) "... with MPC5200B processor"
533f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
53409e4b0c5SWolfgang Denk
535f1ee9825SStefan Roesemcc200_config	\
536ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
537ed1cf845SWolfgang Denkmcc200_highboot_config	\
538ed1cf845SWolfgang Denkmcc200_COM12_config	\
539ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
540113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
541113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
542ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
543ed1cf845SWolfgang Denkprs200_config	\
544ed1cf845SWolfgang Denkprs200_DDR_config	\
545ed1cf845SWolfgang Denkprs200_highboot_config	\
546ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
547f9328639SMarian Balakowicz	@mkdir -p $(obj)include
548f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
549f9328639SMarian Balakowicz	@ >$(obj)include/config.h
5504819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
551ae6d1056SWolfgang Denk		{ $(XECHO) "... with lowboot configuration" ; \
552f1ee9825SStefan Roese		}
5534819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
554f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
555ae6d1056SWolfgang Denk		  $(XECHO) "... with highboot configuration" ; \
5564819fad9SWolfgang Denk		}
5574819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
558ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
559ed1cf845SWolfgang Denk		  then \
560ae6d1056SWolfgang Denk			$(XECHO) "... with DDR" ; \
561ed1cf845SWolfgang Denk		  else \
562ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
563ed1cf845SWolfgang Denk			then \
564ae6d1056SWolfgang Denk				$(XECHO) "... with DDR" ; \
565ed1cf845SWolfgang Denk			else \
566f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
567ae6d1056SWolfgang Denk				$(XECHO) "... with SDRAM" ; \
568ed1cf845SWolfgang Denk			fi; \
569ed1cf845SWolfgang Denk		  fi; \
5704819fad9SWolfgang Denk		}
5714819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
572f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
573ae6d1056SWolfgang Denk		  $(XECHO) "... with SDRAM" ; \
5744819fad9SWolfgang Denk		}
575463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
576f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
577ae6d1056SWolfgang Denk		  $(XECHO) "... with console on COM12" ; \
578463764c8SWolfgang Denk		}
579ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
580f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"  >>$(obj)include/config.h ;\
581ed1cf845SWolfgang Denk		}
582f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
58386ea5f93SWolfgang Denk
5848b7d1f0aSStefan Roesemecp5200_config:  unconfig
585ae6d1056SWolfgang Denk	@$(MKCONFIG) mecp5200  ppc mpc5xxx mecp5200 esd
5868b7d1f0aSStefan Roese
5876341d9d7SHeiko Schochermunices_config:	unconfig
588ae6d1056SWolfgang Denk	@$(MKCONFIG) munices ppc mpc5xxx munices
5896341d9d7SHeiko Schocher
590df04a3dfSWolfgang Denko2dnt_config:
591f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
592df04a3dfSWolfgang Denk
5935e4b3361SStefan Roesepf5200_config:  unconfig
594f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
5955e4b3361SStefan Roese
59689394047SwdenkPM520_config \
59789394047SwdenkPM520_DDR_config \
59889394047SwdenkPM520_ROMBOOT_config \
59989394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
600f9328639SMarian Balakowicz	@mkdir -p $(obj)include
601f9328639SMarian Balakowicz	@ >$(obj)include/config.h
60289394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
603f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
604ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
60589394047Swdenk		}
60689394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
607f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
608ae6d1056SWolfgang Denk		  $(XECHO) "... booting from 8-bit flash" ; \
60989394047Swdenk		}
610f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
61189394047Swdenk
6126624b687SWolfgang Denksmmaco4_config: unconfig
613f9328639SMarian Balakowicz	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
6149cdc8386SWolfgang Denk
61586b116b1SBartlomiej Siekacm5200_config:	unconfig
61686b116b1SBartlomiej Sieka	@./mkconfig -a cm5200 ppc mpc5xxx cm5200
617fa1df308SBartlomiej Sieka
6189cdc8386SWolfgang Denkspieval_config:	unconfig
619f9328639SMarian Balakowicz	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
6209cdc8386SWolfgang Denk
62145a212c4SWolfgang DenkTB5200_B_config \
622b87dfd28SWolfgang DenkTB5200_config:	unconfig
623f9328639SMarian Balakowicz	@mkdir -p $(obj)include
62445a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
625f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
626ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200B processor" ; \
62745a212c4SWolfgang Denk		}
628f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
629b87dfd28SWolfgang Denk
630d4ca31c4SwdenkMINI5200_config	\
631d4ca31c4SwdenkEVAL5200_config	\
632d4ca31c4SwdenkTOP5200_config:	unconfig
633f9328639SMarian Balakowicz	@mkdir -p $(obj)include
634f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
635f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
636d4ca31c4Swdenk
6376c7a1408SwdenkTotal5100_config		\
6386c7a1408SwdenkTotal5200_config		\
6396c7a1408SwdenkTotal5200_lowboot_config	\
6406c7a1408SwdenkTotal5200_Rev2_config		\
6416c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
642f9328639SMarian Balakowicz	@mkdir -p $(obj)include
643f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
644f9328639SMarian Balakowicz	@ >$(obj)include/config.h
6456c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
646f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
647ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
6486c7a1408Swdenk		}
6496c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
650f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
651ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
6526c7a1408Swdenk		}
6536c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
654f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
655ae6d1056SWolfgang Denk		  $(XECHO) "... revision 1 board" ; \
6566c7a1408Swdenk		}
6576c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
658f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
659ae6d1056SWolfgang Denk		  $(XECHO) "... revision 2 board" ; \
6606c7a1408Swdenk		}
6616c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
662f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
663ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
6646c7a1408Swdenk		}
665f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
6666c7a1408Swdenk
6675196a7a0SWolfgang Denkcam5200_config \
668d9384de2SMarian Balakowiczcam5200_niosflash_config \
6695196a7a0SWolfgang Denkfo300_config \
6705196a7a0SWolfgang DenkMiniFAP_config \
6715078cce8SWolfgang DenkTQM5200S_config \
6725078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
6735196a7a0SWolfgang DenkTQM5200_B_config \
6745196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
6755196a7a0SWolfgang DenkTQM5200_config	\
6765196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
677f9328639SMarian Balakowicz	@mkdir -p $(obj)include
678f9328639SMarian Balakowicz	@mkdir -p $(obj)board/tqm5200
679f9328639SMarian Balakowicz	@ >$(obj)include/config.h
680135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
681f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
682f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
683f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
684ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200S on Cam5200" ; \
6855078cce8SWolfgang Denk		}
686d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
687d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
688ae6d1056SWolfgang Denk		  $(XECHO) "... with NIOS flash driver" ; \
689d9384de2SMarian Balakowicz		}
6906d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
691f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
692ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200 on FO300" ; \
6936d3bc9b8SMarian Balakowicz		}
694cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
695f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
696ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200_AC on MiniFAP" ; \
697978b1096SWolfgang Denk		}
698cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
699f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
700ae6d1056SWolfgang Denk		  $(XECHO) "... on a STK52XX.100 base board" ; \
70156523f12Swdenk		}
7025078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
703f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
7045078cce8SWolfgang Denk		}
7055078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
706f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
707f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
70845a212c4SWolfgang Denk		}
709978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
710f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
711978b1096SWolfgang Denk		}
712f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
7136dedf3d4SHeiko Schocheruc101_config:		unconfig
7146dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
71553d4a498SBartlomiej Siekamotionpro_config:	unconfig
71653d4a498SBartlomiej Sieka	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
71753d4a498SBartlomiej Sieka
71856523f12Swdenk
719945af8d7Swdenk#########################################################################
7208993e54bSRafal Jaworowski## MPC512x Systems
7218993e54bSRafal Jaworowski#########################################################################
7228993e54bSRafal Jaworowskiads5121_config: unconfig
7238993e54bSRafal Jaworowski	@$(MKCONFIG) ads5121 ppc mpc512x ads5121
7248993e54bSRafal Jaworowski
7258993e54bSRafal Jaworowski
7268993e54bSRafal Jaworowski#########################################################################
7277ebf7443Swdenk## MPC8xx Systems
7287ebf7443Swdenk#########################################################################
7297ebf7443Swdenk
7302d24a3a7SwdenkAdder_config    \
7312d24a3a7SwdenkAdder87x_config \
73226238132SwdenkAdderII_config  \
7332d24a3a7Swdenk	:		unconfig
734f9328639SMarian Balakowicz	@mkdir -p $(obj)include
73526238132Swdenk	$(if $(findstring AdderII,$@), \
736f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
737f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
7382d24a3a7Swdenk
73916c8d5e7SWolfgang DenkAdderUSB_config:	unconfig
74016c8d5e7SWolfgang Denk	@./mkconfig -a AdderUSB ppc mpc8xx adder
74116c8d5e7SWolfgang Denk
742180d3f74SwdenkADS860_config     \
743180d3f74SwdenkFADS823_config    \
744180d3f74SwdenkFADS850SAR_config \
745180d3f74SwdenkMPC86xADS_config  \
7461114257cSwdenkMPC885ADS_config  \
747180d3f74SwdenkFADS860T_config:	unconfig
748f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
7497ebf7443Swdenk
7507ebf7443SwdenkAMX860_config	:	unconfig
751f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
7527ebf7443Swdenk
7537ebf7443Swdenkc2mon_config:		unconfig
754f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
7557ebf7443Swdenk
7567ebf7443SwdenkCCM_config:		unconfig
757f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
7587ebf7443Swdenk
7597ebf7443Swdenkcogent_mpc8xx_config:	unconfig
760f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
7617ebf7443Swdenk
7623bac3513SwdenkELPT860_config:		unconfig
763f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
7643bac3513Swdenk
76584c960ceSWolfgang DenkEP88x_config:		unconfig
766f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
76784c960ceSWolfgang Denk
7687ebf7443SwdenkESTEEM192E_config:	unconfig
769f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
7707ebf7443Swdenk
7717ebf7443SwdenkETX094_config	:	unconfig
772f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
7737ebf7443Swdenk
7747ebf7443SwdenkFLAGADM_config:	unconfig
775f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
7767ebf7443Swdenk
7777aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
7787aa78614Swdenk
7797aa78614SwdenkGEN860T_SC_config	\
7807ebf7443SwdenkGEN860T_config: unconfig
781f9328639SMarian Balakowicz	@mkdir -p $(obj)include
782f9328639SMarian Balakowicz	@ >$(obj)include/config.h
7837aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
784f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
785ae6d1056SWolfgang Denk		  $(XECHO) "With reduced H/W feature set (SC)..." ; \
7867aa78614Swdenk		}
787f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
7887ebf7443Swdenk
7897ebf7443SwdenkGENIETV_config:	unconfig
790f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
7917ebf7443Swdenk
7927ebf7443SwdenkGTH_config:	unconfig
793f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
7947ebf7443Swdenk
7957ebf7443Swdenkhermes_config	:	unconfig
796f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
7977ebf7443Swdenk
798c40b2956SwdenkHMI10_config	:	unconfig
799f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
800c40b2956Swdenk
8017ebf7443SwdenkIAD210_config: unconfig
802f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
8037ebf7443Swdenk
8047ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
8057ebf7443Swdenk
8067ebf7443SwdenkICU862_100MHz_config	\
8077ebf7443SwdenkICU862_config: unconfig
808f9328639SMarian Balakowicz	@mkdir -p $(obj)include
809f9328639SMarian Balakowicz	@ >$(obj)include/config.h
8107ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
811f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
812ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
8137ebf7443Swdenk		}
814f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
8157ebf7443Swdenk
8167ebf7443SwdenkIP860_config	:	unconfig
817f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
8187ebf7443Swdenk
8197ebf7443SwdenkIVML24_256_config \
8207ebf7443SwdenkIVML24_128_config \
8217ebf7443SwdenkIVML24_config:	unconfig
822f9328639SMarian Balakowicz	@mkdir -p $(obj)include
823f9328639SMarian Balakowicz	@ >$(obj)include/config.h
8247ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
825f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
8267ebf7443Swdenk		 }
8277ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
828f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
8297ebf7443Swdenk		 }
8307ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
831f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
8327ebf7443Swdenk		 }
833f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
8347ebf7443Swdenk
8357ebf7443SwdenkIVMS8_256_config \
8367ebf7443SwdenkIVMS8_128_config \
8377ebf7443SwdenkIVMS8_config:	unconfig
838f9328639SMarian Balakowicz	@mkdir -p $(obj)include
839f9328639SMarian Balakowicz	@ >$(obj)include/config.h
8407ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
841f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
8427ebf7443Swdenk		 }
8437ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
844f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
8457ebf7443Swdenk		 }
8467ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
847f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
8487ebf7443Swdenk		 }
849f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
8507ebf7443Swdenk
85156f94be3SwdenkKUP4K_config	:	unconfig
852f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
8530608e04dSwdenk
8540608e04dSwdenkKUP4X_config    :       unconfig
855f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
85656f94be3Swdenk
8577ebf7443SwdenkLANTEC_config	:	unconfig
858f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
8597ebf7443Swdenk
8607ebf7443Swdenklwmon_config:		unconfig
861f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
8627ebf7443Swdenk
8637ebf7443SwdenkMBX_config	\
8647ebf7443SwdenkMBX860T_config:	unconfig
865f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
8667ebf7443Swdenk
867381e4e63SHeiko Schochermgsuvd_config:		unconfig
868381e4e63SHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
869381e4e63SHeiko Schocher
8707ebf7443SwdenkMHPC_config:		unconfig
871f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
8727ebf7443Swdenk
8737ebf7443SwdenkMVS1_config :		unconfig
874f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
8757ebf7443Swdenk
876993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
877993cad93Swdenk
878993cad93SwdenkNETVIA_V2_config \
8797ebf7443SwdenkNETVIA_config:		unconfig
880f9328639SMarian Balakowicz	@mkdir -p $(obj)include
881f9328639SMarian Balakowicz	@ >$(obj)include/config.h
882993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
883f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
884ae6d1056SWolfgang Denk		  $(XECHO) "... Version 1" ; \
885993cad93Swdenk		 }
886993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
887f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
888ae6d1056SWolfgang Denk		  $(XECHO) "... Version 2" ; \
889993cad93Swdenk		 }
890f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
8917ebf7443Swdenk
892c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
893c26e454dSwdenk
894c26e454dSwdenkNETPHONE_V2_config \
89504a85b3bSwdenkNETPHONE_config:	unconfig
896f9328639SMarian Balakowicz	@mkdir -p $(obj)include
897f9328639SMarian Balakowicz	@ >$(obj)include/config.h
898c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
899f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
900c26e454dSwdenk		 }
901c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
902f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
903c26e454dSwdenk		 }
904f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
90504a85b3bSwdenk
90679fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
90704a85b3bSwdenk
90879fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
90979fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
91079fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
91179fa88f3SwdenkNETTA_SWAPHOOK_config \
91279fa88f3SwdenkNETTA_ISDN_6412_config \
91304a85b3bSwdenkNETTA_ISDN_config \
91479fa88f3SwdenkNETTA_6412_config \
91504a85b3bSwdenkNETTA_config:		unconfig
916f9328639SMarian Balakowicz	@mkdir -p $(obj)include
917f9328639SMarian Balakowicz	@ >$(obj)include/config.h
91879fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
919f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
92004a85b3bSwdenk		 }
92179fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
922f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
92379fa88f3Swdenk		 }
92479fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
925f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
92679fa88f3Swdenk		 }
92779fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
928f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
92979fa88f3Swdenk		 }
93079fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
931f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
93279fa88f3Swdenk		 }
93379fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
934f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
93579fa88f3Swdenk		 }
936f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
93704a85b3bSwdenk
93879fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
93979fa88f3Swdenk
94079fa88f3SwdenkNETTA2_V2_config \
94179fa88f3SwdenkNETTA2_config:		unconfig
942f9328639SMarian Balakowicz	@mkdir -p $(obj)include
943f9328639SMarian Balakowicz	@ >$(obj)include/config.h
94479fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
945f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
94679fa88f3Swdenk		 }
94779fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
948f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
94979fa88f3Swdenk		 }
950f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
95179fa88f3Swdenk
952a367d426Sdzu@denx.deNC650_Rev1_config \
953a367d426Sdzu@denx.deNC650_Rev2_config \
954a367d426Sdzu@denx.deCP850_config:	unconfig
955f9328639SMarian Balakowicz	@mkdir -p $(obj)include
956f9328639SMarian Balakowicz	@ >$(obj)include/config.h
957a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
958f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
959f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
960a367d426Sdzu@denx.de		 }
961a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
962f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
963a367d426Sdzu@denx.de		 }
964a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
965f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
966a367d426Sdzu@denx.de		 }
967f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
9687ca202f5Swdenk
9697ebf7443SwdenkNX823_config:		unconfig
970f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
9717ebf7443Swdenk
9727ebf7443Swdenkpcu_e_config:		unconfig
973f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
9747ebf7443Swdenk
9753bbc899fSwdenkQS850_config:	unconfig
976f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
9773bbc899fSwdenk
9783bbc899fSwdenkQS823_config:	unconfig
979f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
9803bbc899fSwdenk
9813bbc899fSwdenkQS860T_config:	unconfig
982f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
9833bbc899fSwdenk
984da93ed81Swdenkquantum_config:	unconfig
985f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
986da93ed81Swdenk
9877ebf7443SwdenkR360MPI_config:	unconfig
988f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
9897ebf7443Swdenk
990682011ffSwdenkRBC823_config:	unconfig
991f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
992682011ffSwdenk
9937ebf7443SwdenkRPXClassic_config:	unconfig
994f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
9957ebf7443Swdenk
9967ebf7443SwdenkRPXlite_config:		unconfig
997f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
9987ebf7443Swdenk
999e63c8ee3SwdenkRPXlite_DW_64_config		\
1000e63c8ee3SwdenkRPXlite_DW_LCD_config		\
1001e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
1002e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
1003e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config      \
1004e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
1005e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config  \
1006e63c8ee3SwdenkRPXlite_DW_config:	unconfig
1007f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1008f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1009e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
1010f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
1011ae6d1056SWolfgang Denk		  $(XECHO) "... with 64MHz system clock ..."; \
1012e63c8ee3Swdenk		}
1013e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1014f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1015f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1016ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display ..."; \
1017e63c8ee3Swdenk		}
1018e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
1019f9328639SMarian Balakowicz		{ echo "#define  CFG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
1020ae6d1056SWolfgang Denk		  $(XECHO) "... with ENV in NVRAM ..."; \
1021e63c8ee3Swdenk		}
1022f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1023e63c8ee3Swdenk
102473a8b27cSwdenkrmu_config:	unconfig
1025f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
102673a8b27cSwdenk
10277ebf7443SwdenkRRvision_config:	unconfig
1028f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
10297ebf7443Swdenk
10307ebf7443SwdenkRRvision_LCD_config:	unconfig
1031f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1032f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1033f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1034f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
10357ebf7443Swdenk
10367ebf7443SwdenkSM850_config	:	unconfig
1037f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
10387ebf7443Swdenk
1039b02d0177SMarkus Klotzbuecherspc1920_config:
1040f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1041b02d0177SMarkus Klotzbuecher
10427ebf7443SwdenkSPD823TS_config:	unconfig
1043f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
10447ebf7443Swdenk
10456bdf4306SWolfgang Denkstxxtc_config:	unconfig
1046f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
10476bdf4306SWolfgang Denk
1048dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
1049f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1050dc7c9a1aSwdenk
10517ebf7443SwdenkSXNI855T_config:	unconfig
1052f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
10537ebf7443Swdenk
1054db2f721fSwdenk# EMK MPC8xx based modules
1055db2f721fSwdenkTOP860_config:		unconfig
1056f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1057db2f721fSwdenk
10587ebf7443Swdenk# Play some tricks for configuration selection
1059e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
1060e9132ea9Swdenk# and only 823 boards may have LCD support
1061e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
10627ebf7443Swdenk
10637ebf7443SwdenkFPS850L_config		\
1064384ae025SwdenkFPS860L_config		\
1065f12e568cSwdenkNSCU_config		\
10667ebf7443SwdenkTQM823L_config		\
10677ebf7443SwdenkTQM823L_LCD_config	\
10687ebf7443SwdenkTQM850L_config		\
10697ebf7443SwdenkTQM855L_config		\
10707ebf7443SwdenkTQM860L_config		\
1071d126bfbdSwdenkTQM862L_config		\
1072ae3af05eSwdenkTQM823M_config		\
1073ae3af05eSwdenkTQM850M_config		\
1074f12e568cSwdenkTQM855M_config		\
1075f12e568cSwdenkTQM860M_config		\
1076f12e568cSwdenkTQM862M_config		\
10778cba090cSWolfgang DenkTQM866M_config		\
1078090eb735SMarkus KlotzbuecherTQM885D_config		\
1079efc6f447SGuennadi LiakhovetskiTK885D_config		\
10808cba090cSWolfgang Denkvirtlab2_config:	unconfig
1081f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1082f9328639SMarian Balakowicz	@ >$(obj)include/config.h
10837ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1084f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1085f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1086ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display" ; \
10877ebf7443Swdenk		}
1088f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
10897ebf7443Swdenk
10907ebf7443SwdenkTTTech_config:	unconfig
1091f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1092f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1093f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1094f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
10957ebf7443Swdenk
1096ec0aee7bSwdenkuc100_config	:	unconfig
1097f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1098f7d1572bSwdenk
1099608c9146Swdenkv37_config:	unconfig
1100f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1101f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1102f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1103f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1104608c9146Swdenk
110591e940d9Sdzuwtk_config:	unconfig
1106f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1107f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1108f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1109f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
111091e940d9Sdzu
11117ebf7443Swdenk#########################################################################
11127ebf7443Swdenk## PPC4xx Systems
11137ebf7443Swdenk#########################################################################
1114e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
11157ebf7443Swdenk
111616c0cc1cSStefan Roeseacadia_config:	unconfig
111716c0cc1cSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
111816c0cc1cSStefan Roese
1119c440bfe6SStefan Roeseacadia_nand_config:	unconfig
112063e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/acadia
112163e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/acadia
1122c440bfe6SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1123c440bfe6SStefan Roese	@$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1124c440bfe6SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1125c440bfe6SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1126c440bfe6SStefan Roese
11277ebf7443SwdenkADCIOP_config:	unconfig
1128f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
11297ebf7443Swdenk
1130899620c2SStefan Roesealpr_config:	unconfig
113135d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1132899620c2SStefan Roese
11337521af1cSWolfgang DenkAP1000_config:unconfig
1134f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
11357521af1cSWolfgang Denk
1136c419d1d6SstroeseAPC405_config:	unconfig
1137f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1138c419d1d6Sstroese
11397ebf7443SwdenkAR405_config:	unconfig
1140f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
11417ebf7443Swdenk
1142549826eaSstroeseASH405_config:	unconfig
1143f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1144549826eaSstroese
11458a316c9bSStefan Roesebamboo_config:	unconfig
1146f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
11478a316c9bSStefan Roese
1148cf959c7dSStefan Roesebamboo_nand_config:	unconfig
114963e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/bamboo
115063e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/bamboo
1151cf959c7dSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1152f3679aa1SStefan Roese	@$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1153cf959c7dSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1154cf959c7dSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1155cf959c7dSStefan Roese
11568a316c9bSStefan Roesebubinga_config:	unconfig
1157f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1158549826eaSstroese
11597ebf7443SwdenkCANBT_config:	unconfig
1160f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
11617ebf7443Swdenk
11621d6f9720SwdenkCATcenter_config	\
11631d6f9720SwdenkCATcenter_25_config	\
11641d6f9720SwdenkCATcenter_33_config:	unconfig
1165f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1166f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1167f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
11681d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1169f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1170ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
11711d6f9720Swdenk		}
11721d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1173f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1174ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
11751d6f9720Swdenk		}
1176f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
117710767ccbSwdenk
11787644f16fSStefan RoeseCPCI2DP_config:	unconfig
1179f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
11807644f16fSStefan Roese
11817ebf7443SwdenkCPCI405_config	\
1182549826eaSstroeseCPCI4052_config	\
1183c419d1d6SstroeseCPCI405DT_config	\
1184549826eaSstroeseCPCI405AB_config:	unconfig
1185f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1186f9328639SMarian Balakowicz	@echo "BOARD_REVISION = $(@:_config=)"	>> $(obj)include/config.mk
11877ebf7443Swdenk
11887ebf7443SwdenkCPCIISER4_config:	unconfig
1189f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
11907ebf7443Swdenk
11917ebf7443SwdenkCRAYL1_config:	unconfig
1192f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
11937ebf7443Swdenk
1194cd0a9de6Swdenkcsb272_config:	unconfig
1195f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1196cd0a9de6Swdenk
1197aa245090Swdenkcsb472_config:	unconfig
1198f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1199aa245090Swdenk
12007ebf7443SwdenkDASA_SIM_config: unconfig
1201f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
12027ebf7443Swdenk
120372cd5aa7SstroeseDP405_config:	unconfig
1204f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
120572cd5aa7Sstroese
12067ebf7443SwdenkDU405_config:	unconfig
1207f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
12087ebf7443Swdenk
12098a316c9bSStefan Roeseebony_config:	unconfig
1210f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
12117ebf7443Swdenk
12127ebf7443SwdenkERIC_config:	unconfig
1213f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
12147ebf7443Swdenk
1215d1cbe85bSwdenkEXBITGEN_config:	unconfig
1216f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1217d1cbe85bSwdenk
1218c419d1d6SstroeseG2000_config:	unconfig
1219f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1220c419d1d6Sstroese
1221ac982ea5SNiklaus Gigerhcu4_config:	unconfig
122235d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1223ac982ea5SNiklaus Giger
1224ac982ea5SNiklaus Gigerhcu5_config:	unconfig
122535d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1226ac982ea5SNiklaus Giger
1227c419d1d6SstroeseHH405_config:	unconfig
1228f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1229c419d1d6Sstroese
123072cd5aa7SstroeseHUB405_config:	unconfig
1231f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
123272cd5aa7Sstroese
1233db01a2eaSwdenkJSE_config:	unconfig
1234f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1235db01a2eaSwdenk
1236b79316f2SStefan RoeseKAREF_config: unconfig
1237f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1238b79316f2SStefan Roese
12394745acaaSStefan Roesekatmai_config:	unconfig
12404745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
12414745acaaSStefan Roese
1242353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR)
1243353f2688SStefan Roesekilauea_config \
1244353f2688SStefan Roesehaleakala_config: unconfig
1245353f2688SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1246566806caSStefan Roese
12473d6cb3b2SStefan Roesekilauea_nand_config \
12483d6cb3b2SStefan Roesehaleakala_nand_config: unconfig
12493d6cb3b2SStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/kilauea
12503d6cb3b2SStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/kilauea
12513d6cb3b2SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
12523d6cb3b2SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
12533d6cb3b2SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
12543d6cb3b2SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
12553d6cb3b2SStefan Roese
1256c591dffeSLarry Johnsonkorat_config:	unconfig
1257c591dffeSLarry Johnson	@$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1258c591dffeSLarry Johnson
12596e7fb6eaSStefan Roeseluan_config:	unconfig
1260f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
12616e7fb6eaSStefan Roese
1262b765ffb7SStefan Roeselwmon5_config:	unconfig
1263b765ffb7SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1264b765ffb7SStefan Roese
1265211ea91aSStefan Roesemakalu_config:	unconfig
1266211ea91aSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1267211ea91aSStefan Roese
1268b79316f2SStefan RoeseMETROBOX_config: unconfig
1269f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1270b79316f2SStefan Roese
12717ebf7443SwdenkMIP405_config:	unconfig
1272f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
12737ebf7443Swdenk
1274f3e0de60SwdenkMIP405T_config:	unconfig
1275f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1276f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1277ae6d1056SWolfgang Denk	@$(XECHO) "Enable subset config for MIP405T"
1278f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1279f3e0de60Swdenk
12807ebf7443SwdenkML2_config:	unconfig
1281f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
12827ebf7443Swdenk
1283028ab6b5Swdenkml300_config:	unconfig
1284f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1285028ab6b5Swdenk
12868a316c9bSStefan Roeseocotea_config:	unconfig
1287f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
12880e6d798cSwdenk
12897ebf7443SwdenkOCRTC_config		\
12907ebf7443SwdenkORSG_config:	unconfig
1291f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
12927ebf7443Swdenk
12935568e613SStefan Roesep3p440_config:	unconfig
1294f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
12955568e613SStefan Roese
12967ebf7443SwdenkPCI405_config:	unconfig
1297f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
12987ebf7443Swdenk
1299a4c8d138SStefan Roesepcs440ep_config:	unconfig
1300f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1301a4c8d138SStefan Roese
13027ebf7443SwdenkPIP405_config:	unconfig
1303f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
13047ebf7443Swdenk
130572cd5aa7SstroesePLU405_config:	unconfig
1306f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
130772cd5aa7Sstroese
1308549826eaSstroesePMC405_config:	unconfig
1309f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1310549826eaSstroese
13118ba132caSMatthias FuchsPMC440_config:	unconfig
13128ba132caSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
13138ba132caSMatthias Fuchs
1314281e00a3SwdenkPPChameleonEVB_config		\
1315e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1316e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1317e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1318e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1319e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1320e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1321f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1322f9328639SMarian Balakowicz	@ >$(obj)include/config.h
13231d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1324f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1325ae6d1056SWolfgang Denk		  $(XECHO) "... BASIC model" ; \
1326fbe4b5cbSwdenk		}
13271d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1328f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1329ae6d1056SWolfgang Denk		  $(XECHO) "... MEDIUM model" ; \
1330fbe4b5cbSwdenk		}
13311d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1332f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1333ae6d1056SWolfgang Denk		  $(XECHO) "... HIGH-END model" ; \
1334fbe4b5cbSwdenk		}
1335e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1336f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1337ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
1338e55ca7e2Swdenk		}
1339e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1340f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1341ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
1342e55ca7e2Swdenk		}
1343f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
134412f34241Swdenk
1345430f1b0fSStefan Roesesbc405_config:	unconfig
1346430f1b0fSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1347430f1b0fSStefan Roese
1348430f1b0fSStefan Roesesequoia_config \
1349854bc8daSStefan Roeserainier_config: unconfig
13508318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1351430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1352430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
13532aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1354854bc8daSStefan Roese
1355430f1b0fSStefan Roesesequoia_nand_config \
1356854bc8daSStefan Roeserainier_nand_config: unconfig
135763e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
135863e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/sequoia
13598318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1360430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1361430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1362430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
13638318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
13648318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1365652a10c0Swdenk
13666d3e0107SWolfgang Denksc3_config:unconfig
136735d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1368ca43ba18SHeiko Schocher
1369d4024bb7SJohn Otkentaihu_config:	unconfig
1370d4024bb7SJohn Otken	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1371d4024bb7SJohn Otken
13725fb692caSStefan Roesetaishan_config:	unconfig
13735fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
13745fb692caSStefan Roese
137572cd5aa7SstroeseVOH405_config:	unconfig
1376f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
137772cd5aa7Sstroese
1378c419d1d6SstroeseVOM405_config:	unconfig
1379f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1380c419d1d6Sstroese
1381feaedfcfSStefan RoeseCMS700_config:	unconfig
1382f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1383feaedfcfSStefan Roese
13847ebf7443SwdenkW7OLMC_config	\
13857ebf7443SwdenkW7OLMG_config: unconfig
1386f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
13877ebf7443Swdenk
1388430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR)
1389430f1b0fSStefan Roesewalnut_config \
1390430f1b0fSStefan Roesesycamore_config: unconfig
1391430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
13927ebf7443Swdenk
1393c419d1d6SstroeseWUH405_config:	unconfig
1394f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1395c419d1d6Sstroese
1396ba56f625SwdenkXPEDITE1K_config:	unconfig
1397f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1398ba56f625Swdenk
1399430f1b0fSStefan Roeseyosemite_config \
14008a316c9bSStefan Roeseyellowstone_config: unconfig
1401700200c6SStefan Roese	@mkdir -p $(obj)include
1402430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1403430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
14042aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
14058a316c9bSStefan Roese
14066c5879f3SMarian Balakowiczyucca_config:	unconfig
1407f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
14086c5879f3SMarian Balakowicz
1409779e9751SStefan Roesezeus_config:	unconfig
1410779e9751SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1411779e9751SStefan Roese
14127ebf7443Swdenk#########################################################################
1413983fda83Swdenk## MPC8220 Systems
1414983fda83Swdenk#########################################################################
1415dc17fb6dSWolfgang Denk
1416dc17fb6dSWolfgang DenkAlaska8220_config	\
1417dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1418f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1419983fda83Swdenk
142012b43d51Swdenksorcery_config:		unconfig
1421f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
142212b43d51Swdenk
1423983fda83Swdenk#########################################################################
14247ebf7443Swdenk## MPC824x Systems
14257ebf7443Swdenk#########################################################################
1426efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
14273bac3513Swdenk
14280332990bSwdenkA3000_config: unconfig
1429f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
14300332990bSwdenk
14318e6f1a8eSWolfgang Denkbarco_config: unconfig
1432f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
14338e6f1a8eSWolfgang Denk
14347ebf7443SwdenkBMW_config: unconfig
1435f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
14367ebf7443Swdenk
14373bac3513SwdenkCPC45_config	\
14383bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1439f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1440f9328639SMarian Balakowicz	@cd $(obj)include ;				\
14413bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
14423bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1443ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
14443bac3513Swdenk	else \
14453bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1446ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
14473bac3513Swdenk	fi; \
14483bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
14493bac3513Swdenk
14507ebf7443SwdenkCU824_config: unconfig
1451f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
14527ebf7443Swdenk
14537abf0c58Swdenkdebris_config: unconfig
1454f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
14557abf0c58Swdenk
145680885a9dSwdenkeXalion_config: unconfig
1457f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
145880885a9dSwdenk
1459756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1460f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1461756f586aSwdenk
146253dd6ce4SWolfgang Denkkvme080_config: unconfig
1463f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
146453dd6ce4SWolfgang Denk
14657ebf7443SwdenkMOUSSE_config: unconfig
1466f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
14677ebf7443Swdenk
14687ebf7443SwdenkMUSENKI_config: unconfig
1469f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
14707ebf7443Swdenk
1471b4676a25SwdenkMVBLUE_config:	unconfig
1472f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1473b4676a25Swdenk
14747ebf7443SwdenkOXC_config: unconfig
1475f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
14767ebf7443Swdenk
14777ebf7443SwdenkPN62_config: unconfig
1478f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
14797ebf7443Swdenk
14807ebf7443SwdenkSandpoint8240_config: unconfig
1481f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
14827ebf7443Swdenk
14837ebf7443SwdenkSandpoint8245_config: unconfig
1484f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
14857ebf7443Swdenk
1486466b7410Swdenksbc8240_config: unconfig
1487f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1488466b7410Swdenk
1489d1cbe85bSwdenkSL8245_config: unconfig
1490f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1491d1cbe85bSwdenk
14927ebf7443Swdenkutx8245_config: unconfig
1493f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
14947ebf7443Swdenk
14957ebf7443Swdenk#########################################################################
14967ebf7443Swdenk## MPC8260 Systems
14977ebf7443Swdenk#########################################################################
14987ebf7443Swdenk
149954387ac9Swdenkatc_config:	unconfig
1500f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
150154387ac9Swdenk
15027ebf7443Swdenkcogent_mpc8260_config:	unconfig
1503f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
15047ebf7443Swdenk
15057ebf7443SwdenkCPU86_config	\
15067ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1507f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1508f9328639SMarian Balakowicz	@cd $(obj)include ;				\
15097ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
15107ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1511ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
15127ebf7443Swdenk	else \
15137ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1514ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
15157ebf7443Swdenk	fi; \
15167ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
15177ebf7443Swdenk
1518384cc687SwdenkCPU87_config	\
1519384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1520f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1521f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1522384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1523384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1524ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1525384cc687Swdenk	else \
1526384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1527ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1528384cc687Swdenk	fi; \
1529384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1530384cc687Swdenk
1531f901a83bSWolfgang Denkep8248_config	\
1532f901a83bSWolfgang Denkep8248E_config	:	unconfig
1533f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1534f901a83bSWolfgang Denk
15357ebf7443Swdenkep8260_config:	unconfig
1536f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
15377ebf7443Swdenk
15388d4ac794SWolfgang Denkep82xxm_config:	unconfig
153990b1b2d6SGrant Likely	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
15408d4ac794SWolfgang Denk
15417ebf7443Swdenkgw8260_config:	unconfig
1542f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
15437ebf7443Swdenk
15447ebf7443Swdenkhymod_config:	unconfig
1545f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
15467ebf7443Swdenk
15479dd41a7bSwdenkIDS8247_config:	unconfig
1548f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
15499dd41a7bSwdenk
15507ebf7443SwdenkIPHASE4539_config:	unconfig
1551f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
15527ebf7443Swdenk
1553c3c7f861SwdenkISPAN_config		\
1554c3c7f861SwdenkISPAN_REVB_config:	unconfig
1555f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1556c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
1557f9328639SMarian Balakowicz		echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1558c3c7f861Swdenk	fi
1559f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1560c3c7f861Swdenk
1561ac9db066SHeiko Schochermgcoge_config	:	unconfig
1562ac9db066SHeiko Schocher	@$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1563ac9db066SHeiko Schocher
156404a85b3bSwdenkMPC8260ADS_config	\
1565901787d6SwdenkMPC8260ADS_lowboot_config	\
156604a85b3bSwdenkMPC8260ADS_33MHz_config	\
1567901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
156804a85b3bSwdenkMPC8260ADS_40MHz_config	\
1569901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
157004a85b3bSwdenkMPC8272ADS_config	\
1571901787d6SwdenkMPC8272ADS_lowboot_config	\
157204a85b3bSwdenkPQ2FADS_config		\
1573901787d6SwdenkPQ2FADS_lowboot_config		\
157404a85b3bSwdenkPQ2FADS-VR_config	\
1575901787d6SwdenkPQ2FADS-VR_lowboot_config	\
157604a85b3bSwdenkPQ2FADS-ZU_config	\
1577901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
157804a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1579901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
158004a85b3bSwdenk	:		unconfig
1581f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1582f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mpc8260ads
158304a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
1584f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1585f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
158604a85b3bSwdenk	$(if $(findstring MHz,$@), \
1587f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
158804a85b3bSwdenk	$(if $(findstring VR,$@), \
1589f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1590901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1591f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1592ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
1593901787d6Swdenk		}
1594f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
15957ebf7443Swdenk
1596db2f721fSwdenkMPC8266ADS_config:	unconfig
1597f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1598db2f721fSwdenk
1599efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
160010f67017SwdenkPM825_config	\
1601efa329cbSwdenkPM825_ROMBOOT_config	\
1602efa329cbSwdenkPM825_BIGFLASH_config	\
1603efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
16047ebf7443SwdenkPM826_config	\
1605efa329cbSwdenkPM826_ROMBOOT_config	\
1606efa329cbSwdenkPM826_BIGFLASH_config	\
1607efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1608f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1609f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1610efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1611f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
16127ebf7443Swdenk	else \
1613f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1614efa329cbSwdenk	fi
1615efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1616ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1617f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1618f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1619efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1620ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1621f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
16227ebf7443Swdenk		fi; \
1623efa329cbSwdenk	else \
1624ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1625efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1626ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1627f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1628f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1629efa329cbSwdenk		else \
1630f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1631efa329cbSwdenk		fi; \
1632efa329cbSwdenk	fi
1633f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1634efa329cbSwdenk
1635efa329cbSwdenkPM828_config	\
1636efa329cbSwdenkPM828_PCI_config	\
1637efa329cbSwdenkPM828_ROMBOOT_config	\
1638efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1639f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1640f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
164117076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1642f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1643ae6d1056SWolfgang Denk		$(XECHO) "... with PCI enabled" ; \
1644efa329cbSwdenk	else \
1645f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1646efa329cbSwdenk	fi
1647efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1648ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1649f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1650f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1651efa329cbSwdenk	fi
1652f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
16537ebf7443Swdenk
16547ebf7443Swdenkppmc8260_config:	unconfig
1655f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
16567ebf7443Swdenk
16578b0bfc68SwdenkRattler8248_config	\
16588b0bfc68SwdenkRattler_config:		unconfig
1659f9328639SMarian Balakowicz	@mkdir -p $(obj)include
16608b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1661f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1662f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
16638b0bfc68Swdenk
16647ebf7443SwdenkRPXsuper_config:	unconfig
1665f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
16667ebf7443Swdenk
16677ebf7443Swdenkrsdproto_config:	unconfig
1668f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
16697ebf7443Swdenk
16707ebf7443Swdenksacsng_config:	unconfig
1671f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
16727ebf7443Swdenk
16737ebf7443Swdenksbc8260_config:	unconfig
1674f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
16757ebf7443Swdenk
16767ebf7443SwdenkSCM_config:		unconfig
1677f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
16787ebf7443Swdenk
167927b207fdSwdenkTQM8255_AA_config \
168027b207fdSwdenkTQM8260_AA_config \
168127b207fdSwdenkTQM8260_AB_config \
168227b207fdSwdenkTQM8260_AC_config \
168327b207fdSwdenkTQM8260_AD_config \
168427b207fdSwdenkTQM8260_AE_config \
168527b207fdSwdenkTQM8260_AF_config \
168627b207fdSwdenkTQM8260_AG_config \
168727b207fdSwdenkTQM8260_AH_config \
16881f62bc2dSWolfgang DenkTQM8260_AI_config \
168927b207fdSwdenkTQM8265_AA_config:  unconfig
1690f9328639SMarian Balakowicz	@mkdir -p $(obj)include
169127b207fdSwdenk	@case "$@" in \
169227b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
169327b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
169427b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
169527b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
169627b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
169727b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
169827b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
169927b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
170027b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
17011f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
170227b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
170327b207fdSwdenk	esac; \
1704f9328639SMarian Balakowicz	>$(obj)include/config.h ; \
170527b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1706f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
170727b207fdSwdenk	fi; \
1708f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
170927b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
17101aaab9bfSWolfgang Denk	if [ "$${CACHE}" = "yes" ] ; then \
1711f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1712ae6d1056SWolfgang Denk		$(XECHO) "... with L2 Cache support" ; \
17137ebf7443Swdenk	else \
1714f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1715ae6d1056SWolfgang Denk		$(XECHO) "... without L2 Cache support" ; \
171627b207fdSwdenk	fi; \
17171aaab9bfSWolfgang Denk	if [ "$${BMODE}" = "60x" ] ; then \
1718f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1719ae6d1056SWolfgang Denk		$(XECHO) "... with 60x Bus Mode" ; \
172027b207fdSwdenk	else \
1721f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
1722ae6d1056SWolfgang Denk		$(XECHO) "... without 60x Bus Mode" ; \
17237ebf7443Swdenk	fi
1724f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
17257ebf7443Swdenk
1726fa230445SHeiko SchocherTQM8272_config: unconfig
1727fa230445SHeiko Schocher	@$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1728fa230445SHeiko Schocher
1729ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1730ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1731f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1732f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1733f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1734ba91e26aSwdenk
173554387ac9SwdenkZPC1900_config: unconfig
1736f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
17377aa78614Swdenk
17384e5ca3ebSwdenk#########################################################################
17394e5ca3ebSwdenk## Coldfire
17404e5ca3ebSwdenk#########################################################################
17414e5ca3ebSwdenk
17424a442d31STsiChungLiewM5235EVB_config \
17434a442d31STsiChungLiewM5235EVB_Flash16_config \
17444a442d31STsiChungLiewM5235EVB_Flash32_config:	unconfig
17454a442d31STsiChungLiew	@case "$@" in \
17464a442d31STsiChungLiew	M5235EVB_config)		FLASH=16;; \
17474a442d31STsiChungLiew	M5235EVB_Flash16_config)	FLASH=16;; \
17484a442d31STsiChungLiew	M5235EVB_Flash32_config)	FLASH=32;; \
17494a442d31STsiChungLiew	esac; \
1750ae6d1056SWolfgang Denk	>$(obj)include/config.h ; \
17514a442d31STsiChungLiew	if [ "$${FLASH}" != "16" ] ; then \
1752ae6d1056SWolfgang Denk		echo "#define NORFLASH_PS32BIT	1" >> $(obj)include/config.h ; \
17534a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
17544a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
17554a442d31STsiChungLiew	else \
17564a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
17574a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
17584a442d31STsiChungLiew	fi
17594a442d31STsiChungLiew	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
17604a442d31STsiChungLiew
1761a605aacdSTsiChungLiewM5249EVB_config :		unconfig
1762a605aacdSTsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1763a605aacdSTsiChungLiew
1764a1436a84STsiChungLiewM5253EVBE_config :		unconfig
1765a1436a84STsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1766a1436a84STsiChungLiew
17677481266eSWolfgang Denkcobra5272_config :		unconfig
1768f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
17697481266eSWolfgang Denk
17704176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
1771f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1772f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1773f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1774f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1775f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
17764176c799SWolfgang Denk
17774176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
1778f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1779f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1780f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1781f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1782f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
17834176c799SWolfgang Denk
1784daa6e418SBartlomiej Siekaidmr_config :			unconfig
1785daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1786daa6e418SBartlomiej Sieka
17874176c799SWolfgang DenkM5271EVB_config :		unconfig
1788f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
17894176c799SWolfgang Denk
17904e5ca3ebSwdenkM5272C3_config :		unconfig
1791f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
17924e5ca3ebSwdenk
17934e5ca3ebSwdenkM5282EVB_config :		unconfig
1794f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
17954e5ca3ebSwdenk
1796c419d1d6SstroeseTASREG_config :		unconfig
1797f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1798c419d1d6Sstroese
17993a108ed8SZachary P. Landaur5200_config :		unconfig
1800f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
18013a108ed8SZachary P. Landau
18028e585f02STsiChung LiewM5329AFEE_config \
18038e585f02STsiChung LiewM5329BFEE_config :	unconfig
18048e585f02STsiChung Liew	@case "$@" in \
18058e585f02STsiChung Liew	M5329AFEE_config)	NAND=0;; \
18068e585f02STsiChung Liew	M5329BFEE_config)	NAND=16;; \
18078e585f02STsiChung Liew	esac; \
1808ae6d1056SWolfgang Denk	>$(obj)include/config.h ; \
18098e585f02STsiChung Liew	if [ "$${NAND}" != "0" ] ; then \
1810ab77bc54STsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
18118e585f02STsiChung Liew	fi
18128e585f02STsiChung Liew	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
18138e585f02STsiChung Liew
18148ae158cdSTsiChungLiewM54455EVB_config \
18158ae158cdSTsiChungLiewM54455EVB_atmel_config \
18168ae158cdSTsiChungLiewM54455EVB_intel_config \
18178ae158cdSTsiChungLiewM54455EVB_a33_config \
18188ae158cdSTsiChungLiewM54455EVB_a66_config \
18198ae158cdSTsiChungLiewM54455EVB_i33_config \
18208ae158cdSTsiChungLiewM54455EVB_i66_config :	unconfig
18218ae158cdSTsiChungLiew	@case "$@" in \
18228ae158cdSTsiChungLiew	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
18238ae158cdSTsiChungLiew	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
18248ae158cdSTsiChungLiew	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
18258ae158cdSTsiChungLiew	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
18268ae158cdSTsiChungLiew	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
18278ae158cdSTsiChungLiew	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
18288ae158cdSTsiChungLiew	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
18298ae158cdSTsiChungLiew	esac; \
1830ae6d1056SWolfgang Denk	>$(obj)include/config.h ; \
18311aaab9bfSWolfgang Denk	if [ "$${FLASH}" = "INTEL" ] ; then \
18324a442d31STsiChungLiew		echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1833e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1834e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1835ae6d1056SWolfgang Denk		$(XECHO) "... with INTEL boot..." ; \
18368ae158cdSTsiChungLiew	else \
18374a442d31STsiChungLiew		echo "#define CFG_ATMEL_BOOT"	>> $(obj)include/config.h ; \
1838e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1839e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1840ae6d1056SWolfgang Denk		$(XECHO) "... with ATMEL boot..." ; \
18418ae158cdSTsiChungLiew	fi; \
18424a442d31STsiChungLiew	echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1843ae6d1056SWolfgang Denk	$(XECHO) "... with $${FREQ}Hz input clock"
18448ae158cdSTsiChungLiew	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
18458ae158cdSTsiChungLiew
18467ebf7443Swdenk#########################################################################
1847f046ccd1SEran Liberty## MPC83xx Systems
1848f046ccd1SEran Liberty#########################################################################
1849f046ccd1SEran Liberty
18505c5d3242SKim PhillipsMPC8313ERDB_33_config \
18515c5d3242SKim PhillipsMPC8313ERDB_66_config: unconfig
1852cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1853cdd917a4SWolfgang Denk	@echo "" >$(obj)include/config.h ; \
18545c5d3242SKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
1855ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
1856cdd917a4SWolfgang Denk		echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
18575c5d3242SKim Phillips	fi ; \
18585c5d3242SKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
1859ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
1860cdd917a4SWolfgang Denk		echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
18615c5d3242SKim Phillips	fi ;
1862e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
18635c5d3242SKim Phillips
18648bd522ceSDave LiuMPC8315ERDB_config: unconfig
18658bd522ceSDave Liu	@$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
18668bd522ceSDave Liu
18671c274c4eSKim PhillipsMPC8323ERDB_config:	unconfig
18681c274c4eSKim Phillips	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
18691c274c4eSKim Phillips
18704decd84eSKim PhillipsMPC832XEMDS_config \
18714decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
18724decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
1873281df457STony LiMPC832XEMDS_SLAVE_config \
1874281df457STony LiMPC832XEMDS_ATM_config:	unconfig
1875cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1876cdd917a4SWolfgang Denk	@echo "" >$(obj)include/config.h ; \
18774decd84eSKim Phillips	if [ "$(findstring _HOST_,$@)" ] ; then \
1878ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
1879cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
18804decd84eSKim Phillips	fi ; \
18814decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
1882ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
1883cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1884cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
18854decd84eSKim Phillips	fi ; \
18864decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
1887ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
1888cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
1889281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
18904decd84eSKim Phillips	fi ; \
18914decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
1892ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
1893cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
1894281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1895281df457STony Li	fi ; \
1896281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
1897ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
1898281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1899281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM     1" >>$(obj)include/config.h ; \
19004decd84eSKim Phillips	fi ;
1901e58fe957SKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
1902e6f2e902SMarian Balakowicz
1903991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
1904e58fe957SKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
1905991425feSMarian Balakowicz
19067a78f148STimur TabiMPC8349ITX_config \
19077a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
19087a78f148STimur TabiMPC8349ITXGP_config:	unconfig
19097a78f148STimur Tabi	@mkdir -p $(obj)include
1910e21659e3SSam Sparks	@mkdir -p $(obj)board/freescale/mpc8349itx
19117a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
19127a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
1913e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
19147a78f148STimur Tabi	fi
19157a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
1916e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
19177a78f148STimur Tabi	fi
1918e58fe957SKim Phillips	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
19194decd84eSKim Phillips
19205f820439SDave LiuMPC8360EMDS_config \
19215f820439SDave LiuMPC8360EMDS_HOST_33_config \
19225f820439SDave LiuMPC8360EMDS_HOST_66_config \
1923281df457STony LiMPC8360EMDS_SLAVE_config \
1924281df457STony LiMPC8360EMDS_ATM_config: unconfig
1925cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1926cdd917a4SWolfgang Denk	@echo "" >$(obj)include/config.h ; \
19275f820439SDave Liu	if [ "$(findstring _HOST_,$@)" ] ; then \
1928ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
1929cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
19305f820439SDave Liu	fi ; \
19315f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
1932ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
1933cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1934cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
19355f820439SDave Liu	fi ; \
19365f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
1937ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
1938cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
1939281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
19405f820439SDave Liu	fi ; \
19415f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
1942ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
1943cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
1944281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1945281df457STony Li	fi ; \
1946281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
1947ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
1948281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1949281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM     1" >>$(obj)include/config.h ; \
19505f820439SDave Liu	fi ;
1951e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
19525f820439SDave Liu
1953fab6f556SAnton VorontsovMPC8360ERDK_33_config \
1954fab6f556SAnton VorontsovMPC8360ERDK_66_config \
1955fab6f556SAnton VorontsovMPC8360ERDK_config:
1956fab6f556SAnton Vorontsov	@mkdir -p $(obj)include
1957fab6f556SAnton Vorontsov	@echo "" >$(obj)include/config.h ; \
1958fab6f556SAnton Vorontsov	if [ "$(findstring _33_,$@)" ] ; then \
1959ae6d1056SWolfgang Denk		$(XECHO) -n "... CLKIN 33MHz " ; \
1960fab6f556SAnton Vorontsov		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
1961fab6f556SAnton Vorontsov	fi ;
1962fab6f556SAnton Vorontsov	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
1963fab6f556SAnton Vorontsov
196419580e66SDave LiuMPC837XEMDS_config \
196519580e66SDave LiuMPC837XEMDS_HOST_config:	unconfig
196619580e66SDave Liu	@mkdir -p $(obj)include
196719580e66SDave Liu	@echo "" >$(obj)include/config.h ; \
196819580e66SDave Liu	if [ "$(findstring _HOST_,$@)" ] ; then \
1969ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
197019580e66SDave Liu		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
197119580e66SDave Liu	fi ;
197219580e66SDave Liu	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
197319580e66SDave Liu
19745e918a98SKim PhillipsMPC837XERDB_config:	unconfig
19755e918a98SKim Phillips	@$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
19765e918a98SKim Phillips
197791e25769SPaul Gortmakersbc8349_config:		unconfig
197891e25769SPaul Gortmaker	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
197991e25769SPaul Gortmaker
19804decd84eSKim PhillipsTQM834x_config:	unconfig
19814decd84eSKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
19824decd84eSKim Phillips
19832ad6b513STimur Tabi
1984f046ccd1SEran Liberty#########################################################################
198542d1f039Swdenk## MPC85xx Systems
198642d1f039Swdenk#########################################################################
198742d1f039Swdenk
19887bd6104bSrobert lazarskiATUM8548_config:	unconfig
19897bd6104bSrobert lazarski	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
19907bd6104bSrobert lazarski
199142d1f039SwdenkMPC8540ADS_config:	unconfig
1992c2d943ffSKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
199342d1f039Swdenk
1994b0e32949SLunsheng WangMPC8540EVAL_config \
1995b0e32949SLunsheng WangMPC8540EVAL_33_config \
1996b0e32949SLunsheng WangMPC8540EVAL_66_config \
1997b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
1998b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:      unconfig
1999f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2000f9328639SMarian Balakowicz	@echo "" >$(obj)include/config.h ; \
2001b0e32949SLunsheng Wang	if [ "$(findstring _33_,$@)" ] ; then \
2002ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2003b0e32949SLunsheng Wang	else \
2004f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2005ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2006b0e32949SLunsheng Wang	fi ; \
2007b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
2008f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2009ae6d1056SWolfgang Denk		$(XECHO) " slave" ; \
2010b0e32949SLunsheng Wang	else \
2011ae6d1056SWolfgang Denk		$(XECHO) " host" ; \
2012b0e32949SLunsheng Wang	fi
2013f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2014b0e32949SLunsheng Wang
201542d1f039SwdenkMPC8560ADS_config:	unconfig
2016870ceac5SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
201742d1f039Swdenk
20187f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \
201903f5c550SwdenkMPC8541CDS_config:	unconfig
20207f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
20217f3f2bd2SRandy Vinson	@echo "" >$(obj)include/config.h ; \
20227f3f2bd2SRandy Vinson	if [ "$(findstring _legacy_,$@)" ] ; then \
20237f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2024ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
20257f3f2bd2SRandy Vinson	fi
2026415a613bSKumar Gala	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
202703f5c550Swdenk
202881f481caSAndy FlemingMPC8544DS_config:	unconfig
202981f481caSAndy Fleming	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
203081f481caSAndy Fleming
20317f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \
2032d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
20337f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
20347f3f2bd2SRandy Vinson	@echo "" >$(obj)include/config.h ; \
20357f3f2bd2SRandy Vinson	if [ "$(findstring _legacy_,$@)" ] ; then \
20367f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2037ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
20387f3f2bd2SRandy Vinson	fi
2039415a613bSKumar Gala	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2040d9b94f28SJon Loeliger
20417f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \
204203f5c550SwdenkMPC8555CDS_config:	unconfig
20437f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
20447f3f2bd2SRandy Vinson	@echo "" >$(obj)include/config.h ; \
20457f3f2bd2SRandy Vinson	if [ "$(findstring _legacy_,$@)" ] ; then \
20467f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2047ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
20487f3f2bd2SRandy Vinson	fi
2049415a613bSKumar Gala	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
20507abf0c58Swdenk
205167431059SAndy FlemingMPC8568MDS_config:	unconfig
2052acbca876SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
205367431059SAndy Fleming
2054384cc687SwdenkPM854_config:	unconfig
2055f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2056384cc687Swdenk
2057b20d0032SWolfgang DenkPM856_config:	unconfig
2058f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2059b20d0032SWolfgang Denk
2060c15f3120Swdenksbc8540_config \
2061c15f3120Swdenksbc8540_33_config \
2062c15f3120Swdenksbc8540_66_config:	unconfig
2063f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2064c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2065f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2066ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2067c15f3120Swdenk	else \
2068f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
2069ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2070c15f3120Swdenk	fi
2071f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2072c15f3120Swdenk
207311c45ebdSJoe Hammansbc8548_config:		unconfig
207411c45ebdSJoe Hamman	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
207511c45ebdSJoe Hamman
2076466b7410Swdenksbc8560_config \
2077466b7410Swdenksbc8560_33_config \
2078466b7410Swdenksbc8560_66_config:      unconfig
2079f9328639SMarian Balakowicz	@mkdir -p $(obj)include
20808b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2081f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2082ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
20838b07a110Swdenk	else \
2084f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
2085ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
20868b07a110Swdenk	fi
2087f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
20888b07a110Swdenk
208903f5c550Swdenkstxgp3_config:		unconfig
2090f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
209103f5c550Swdenk
2092ee152983SWolfgang Denkstxssa_config		\
2093ee152983SWolfgang Denkstxssa_4M_config:	unconfig
2094ee152983SWolfgang Denk	@mkdir -p $(obj)include
2095ee152983SWolfgang Denk	@if [ "$(findstring _4M_,$@)" ] ; then \
2096ee152983SWolfgang Denk		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2097ae6d1056SWolfgang Denk		$(XECHO) "... with 4 MiB flash memory" ; \
2098ee152983SWolfgang Denk	else \
2099ee152983SWolfgang Denk		>$(obj)include/config.h ; \
2100ee152983SWolfgang Denk	fi
2101ee152983SWolfgang Denk	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
210235171dc0SDan Malek
2103d96f41e0SStefan RoeseTQM8540_config		\
2104d96f41e0SStefan RoeseTQM8541_config		\
2105d96f41e0SStefan RoeseTQM8555_config		\
2106f5c5ef4aSwdenkTQM8560_config:		unconfig
2107f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2108a889bd27SWolfgang Denk	@CTYPE=$(subst TQM,,$(@:_config=)); \
2109f9328639SMarian Balakowicz	>$(obj)include/config.h ; \
2110ae6d1056SWolfgang Denk	$(XECHO) "... TQM"$${CTYPE}; \
2111f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2112f9328639SMarian Balakowicz	echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2113f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2114f9328639SMarian Balakowicz	echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
21158a783a65SGrant Likely	echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
2116f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
2117f5c5ef4aSwdenk
211842d1f039Swdenk#########################################################################
2119debb7354SJon Loeliger## MPC86xx Systems
2120debb7354SJon Loeliger#########################################################################
2121debb7354SJon Loeliger
21223c89d754SJon LoeligerMPC8610HPCD_config:	unconfig
21233c89d754SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
21243c89d754SJon Loeliger
2125debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
21264ce91774SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2127debb7354SJon Loeliger
2128c646bba6SJoe Hammansbc8641d_config:	unconfig
2129c646bba6SJoe Hamman	@./mkconfig $(@:_config=) ppc mpc86xx sbc8641d
2130debb7354SJon Loeliger
2131debb7354SJon Loeliger#########################################################################
21327ebf7443Swdenk## 74xx/7xx Systems
21337ebf7443Swdenk#########################################################################
21347ebf7443Swdenk
2135c7de829cSwdenkAmigaOneG3SE_config:	unconfig
2136f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2137c7de829cSwdenk
213815647dc7SwdenkBAB7xx_config: unconfig
2139f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
214015647dc7Swdenk
2141c419d1d6SstroeseCPCI750_config:	unconfig
2142f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2143c419d1d6Sstroese
21443a473b2aSwdenkDB64360_config:	unconfig
2145f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
21463a473b2aSwdenk
21473a473b2aSwdenkDB64460_config:	unconfig
2148f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
21493a473b2aSwdenk
215015647dc7SwdenkELPPC_config: unconfig
2151f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
215215647dc7Swdenk
21537ebf7443SwdenkEVB64260_config	\
21547ebf7443SwdenkEVB64260_750CX_config:	unconfig
2155f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
21567ebf7443Swdenk
21574c52783bSroy zangmpc7448hpc2_config:  unconfig
2158ee311214Sroy zang	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
21594c52783bSroy zang
216015647dc7SwdenkP3G4_config: unconfig
2161f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
21627ebf7443Swdenk
21631eac2a71SStefan Roesep3m750_config	\
21641eac2a71SStefan Roesep3m7448_config:		unconfig
21651eac2a71SStefan Roese	@mkdir -p $(obj)include
21661eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
21671eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
21681eac2a71SStefan Roese	else \
21691eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
21701eac2a71SStefan Roese	fi
21711eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
21721eac2a71SStefan Roese
21737ebf7443SwdenkPCIPPC2_config \
21747ebf7443SwdenkPCIPPC6_config: unconfig
2175f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
21767ebf7443Swdenk
217715647dc7SwdenkZUMA_config:	unconfig
2178f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
217912f34241Swdenk
2180f5e0d039SHeiko Schocherppmc7xx_config: unconfig
2181f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2182f5e0d039SHeiko Schocher
21837ebf7443Swdenk#========================================================================
21847ebf7443Swdenk# ARM
21857ebf7443Swdenk#========================================================================
21867ebf7443Swdenk#########################################################################
21877ebf7443Swdenk## StrongARM Systems
21887ebf7443Swdenk#########################################################################
21897ebf7443Swdenk
2190ea66bc88Swdenkassabet_config	:	unconfig
2191f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2192ea66bc88Swdenk
21937ebf7443Swdenkdnp1110_config	:	unconfig
2194f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
21957ebf7443Swdenk
2196855a496fSwdenkgcplus_config	:	unconfig
2197f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2198855a496fSwdenk
2199855a496fSwdenklart_config	:	unconfig
2200f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
2201855a496fSwdenk
22027ebf7443Swdenkshannon_config	:	unconfig
2203f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
22047ebf7443Swdenk
22057ebf7443Swdenk#########################################################################
22062e5983d2Swdenk## ARM92xT Systems
22077ebf7443Swdenk#########################################################################
22087ebf7443Swdenk
2209b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
221043d9616cSwdenk
22113ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
221263e73c9aSwdenk
2213a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2214a56bd922Swdenk
2215a85f9f21Swdenkat91rm9200dk_config	:	unconfig
2216f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
2217a85f9f21Swdenk
2218a85f9f21Swdenkcmc_pu2_config	:	unconfig
2219f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2220a85f9f21Swdenk
2221645da510SWolfgang Denkcsb637_config	:	unconfig
2222f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2223645da510SWolfgang Denk
22240e4018d2SWolfgang Denkmp2usb_config	:	unconfig
2225f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
22260e4018d2SWolfgang Denk
222787cb6862SWolfgang Denk
222874f4304eSWolfgang Denk########################################################################
222987cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
223087cb6862SWolfgang Denkintegratorap_config	\
223187cb6862SWolfgang Denkap_config		\
223287cb6862SWolfgang Denkap966_config		\
223387cb6862SWolfgang Denkap922_config		\
223487cb6862SWolfgang Denkap922_XA10_config	\
223587cb6862SWolfgang Denkap7_config		\
223687cb6862SWolfgang Denkap720t_config		\
223787cb6862SWolfgang Denkap920t_config		\
223887cb6862SWolfgang Denkap926ejs_config		\
223987cb6862SWolfgang Denkap946es_config: unconfig
224096782c63SWolfgang Denk	@board/integratorap/split_by_variant.sh $@
22413d3befa7Swdenk
224287cb6862SWolfgang Denkintegratorcp_config	\
224387cb6862SWolfgang Denkcp_config		\
224487cb6862SWolfgang Denkcp920t_config		\
224587cb6862SWolfgang Denkcp926ejs_config		\
224687cb6862SWolfgang Denkcp946es_config		\
224787cb6862SWolfgang Denkcp1136_config		\
224887cb6862SWolfgang Denkcp966_config		\
224987cb6862SWolfgang Denkcp922_config		\
225087cb6862SWolfgang Denkcp922_XA10_config	\
225187cb6862SWolfgang Denkcp1026_config: unconfig
225296782c63SWolfgang Denk	@board/integratorcp/split_by_variant.sh $@
225325d6712aSwdenk
225499b0d285SWolfgang Denkkb9202_config	:	unconfig
2255f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
225699b0d285SWolfgang Denk
2257f832d8a1Swdenklpd7a400_config \
2258f832d8a1Swdenklpd7a404_config:	unconfig
2259f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
22603d3befa7Swdenk
2261281e00a3Swdenkmx1ads_config	:	unconfig
2262f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2263281e00a3Swdenk
2264281e00a3Swdenkmx1fs2_config	:	unconfig
2265f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2266281e00a3Swdenk
2267ac7eb8a3SWolfgang Denknetstar_32_config	\
2268ac7eb8a3SWolfgang Denknetstar_config:		unconfig
2269f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2270ac7eb8a3SWolfgang Denk	@if [ "$(findstring _32_,$@)" ] ; then \
2271ae6d1056SWolfgang Denk		$(XECHO) "... 32MB SDRAM" ; \
2272f9328639SMarian Balakowicz		echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
2273ac7eb8a3SWolfgang Denk	else \
2274ae6d1056SWolfgang Denk		$(XECHO) "... 64MB SDRAM" ; \
2275f9328639SMarian Balakowicz		echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
2276ac7eb8a3SWolfgang Denk	fi
2277f9328639SMarian Balakowicz	@$(MKCONFIG) -a netstar arm arm925t netstar
2278ac7eb8a3SWolfgang Denk
22792e5983d2Swdenkomap1510inn_config :	unconfig
2280f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
22812e5983d2Swdenk
22821eaeb58eSwdenkomap5912osk_config :	unconfig
2283f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
22841eaeb58eSwdenk
2285c74b2108SSergey Kubushyndavinci_dvevm_config :	unconfig
2286c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2287c74b2108SSergey Kubushyn
2288c74b2108SSergey Kubushyndavinci_schmoogie_config :	unconfig
2289c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2290c74b2108SSergey Kubushyn
2291c74b2108SSergey Kubushyndavinci_sonata_config :	unconfig
2292c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2293c74b2108SSergey Kubushyn
229463e73c9aSwdenkomap1610inn_config \
229563e73c9aSwdenkomap1610inn_cs0boot_config \
229663e73c9aSwdenkomap1610inn_cs3boot_config \
22973ff02c27Swdenkomap1610inn_cs_autoboot_config \
229863e73c9aSwdenkomap1610h2_config \
229963e73c9aSwdenkomap1610h2_cs0boot_config \
23003ff02c27Swdenkomap1610h2_cs3boot_config \
23013ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
2302f9328639SMarian Balakowicz	@mkdir -p $(obj)include
230363e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2304cdd917a4SWolfgang Denk		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2305ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
23063ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2307cdd917a4SWolfgang Denk		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2308ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS_AUTO boot"; \
230963e73c9aSwdenk	else \
2310cdd917a4SWolfgang Denk		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2311ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
231263e73c9aSwdenk	fi;
2313f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
23146f21347dSwdenk
2315a56bd922Swdenkomap730p2_config \
2316a56bd922Swdenkomap730p2_cs0boot_config \
2317a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
2318f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2319a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2320f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2321ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
2322a56bd922Swdenk	else \
2323f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2324ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
2325a56bd922Swdenk	fi;
2326f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2327a56bd922Swdenk
232832cb2c70SWolfgang Denksbc2410x_config: unconfig
2329f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
233032cb2c70SWolfgang Denk
2331281e00a3Swdenkscb9328_config	:	unconfig
2332f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2333281e00a3Swdenk
23347ebf7443Swdenksmdk2400_config	:	unconfig
2335f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
23367ebf7443Swdenk
23377ebf7443Swdenksmdk2410_config	:	unconfig
2338f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
23397ebf7443Swdenk
23402d24a3a7SwdenkSX1_config :		unconfig
2341f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t sx1
23422d24a3a7Swdenk
2343b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
234443d9616cSwdenktrab_config \
2345b0639ca3Swdenktrab_bigram_config \
2346b0639ca3Swdenktrab_bigflash_config \
2347f54ebdfaSwdenktrab_old_config:	unconfig
2348f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2349f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
2350f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2351b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
2352f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2353f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
2354ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2355b0639ca3Swdenk		}
2356b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
2357f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2358f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2359ae6d1056SWolfgang Denk		  $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2360f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2361b0639ca3Swdenk		}
2362f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
2363f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2364f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2365ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2366f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
236743d9616cSwdenk		}
2368f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
23697ebf7443Swdenk
23701cb8e980SwdenkVCMA9_config	:	unconfig
2371f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
23721cb8e980Swdenk
237387cb6862SWolfgang Denk#========================================================================
237487cb6862SWolfgang Denk# ARM supplied Versatile development boards
237587cb6862SWolfgang Denk#========================================================================
237687cb6862SWolfgang Denkversatile_config	\
237787cb6862SWolfgang Denkversatileab_config	\
237887cb6862SWolfgang Denkversatilepb_config :	unconfig
237996782c63SWolfgang Denk	@board/versatile/split_by_variant.sh $@
2380074cff0dSwdenk
23813c2b3d45Swdenkvoiceblue_smallflash_config	\
23823c2b3d45Swdenkvoiceblue_config:	unconfig
2383f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2384f9328639SMarian Balakowicz	@mkdir -p $(obj)board/voiceblue
23853c2b3d45Swdenk	@if [ "$(findstring _smallflash_,$@)" ] ; then \
2386ae6d1056SWolfgang Denk		$(XECHO) "... boot from lower flash bank" ; \
2387f9328639SMarian Balakowicz		echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2388f9328639SMarian Balakowicz		echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
23893c2b3d45Swdenk	else \
2390ae6d1056SWolfgang Denk		$(XECHO) "... boot from upper flash bank" ; \
2391f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
2392f9328639SMarian Balakowicz		echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
23933c2b3d45Swdenk	fi
2394f9328639SMarian Balakowicz	@$(MKCONFIG) -a voiceblue arm arm925t voiceblue
23953c2b3d45Swdenk
239616b013e7Swdenkcm4008_config	:	unconfig
2397f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
239816b013e7Swdenk
239916b013e7Swdenkcm41xx_config	:	unconfig
2400f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
240116b013e7Swdenk
24020c32d96dSWolfgang Denkgth2_config		:	unconfig
2403f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2404f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2405f9328639SMarian Balakowicz	@echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2406f9328639SMarian Balakowicz	@$(MKCONFIG) -a gth2 mips mips gth2
24070c32d96dSWolfgang Denk
2408074cff0dSwdenk#########################################################################
2409074cff0dSwdenk## S3C44B0 Systems
2410074cff0dSwdenk#########################################################################
2411074cff0dSwdenk
2412074cff0dSwdenkB2_config	:	unconfig
2413f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2414074cff0dSwdenk
24157ebf7443Swdenk#########################################################################
24167ebf7443Swdenk## ARM720T Systems
24177ebf7443Swdenk#########################################################################
24187ebf7443Swdenk
2419c570b2fdSWolfgang Denkarmadillo_config:	unconfig
2420f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2421c570b2fdSWolfgang Denk
24227ebf7443Swdenkep7312_config	:	unconfig
2423f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
24247ebf7443Swdenk
24252d24a3a7Swdenkimpa7_config	:	unconfig
2426f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
24272d24a3a7Swdenk
24282d1a537dSwdenkmodnet50_config :	unconfig
2429f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
24302d1a537dSwdenk
243139539887Swdenkevb4510_config :	unconfig
2432f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
243339539887Swdenk
24346bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
2435b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2436b0d8f5bfSPeter Pearse
2437b0d8f5bfSPeter PearseSMN42_config	:	unconfig
2438b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
24396bd2447eSGary Jennejohn
24407ebf7443Swdenk#########################################################################
244143d9616cSwdenk## XScale Systems
24427ebf7443Swdenk#########################################################################
24437ebf7443Swdenk
244420787e23Swdenkadsvix_config	:	unconfig
2445f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa adsvix
244620787e23Swdenk
2447fabd46acSwdenkcerf250_config :	unconfig
2448f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
2449fabd46acSwdenk
24507ebf7443Swdenkcradle_config	:	unconfig
2451f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
24527ebf7443Swdenk
24537ebf7443Swdenkcsb226_config	:	unconfig
2454f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
24557ebf7443Swdenk
24560be248faSWolfgang Denkdelta_config :
2457f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
24580be248faSWolfgang Denk
245943d9616cSwdenkinnokom_config	:	unconfig
2460f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
246143d9616cSwdenk
24622d5b561eSwdenkixdp425_config	:	unconfig
2463f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
24642d5b561eSwdenk
2465ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
2466f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2467ba94a1bbSWolfgang Denk
246843d9616cSwdenklubbock_config	:	unconfig
2469f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
247043d9616cSwdenk
24715720df78SHeiko Schocherpleb2_config	:	unconfig
2472f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
24735720df78SHeiko Schocher
247452f52c14Swdenklogodl_config	:	unconfig
2475f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
247652f52c14Swdenk
24779d8d5a5bSStefan Roesepdnb3_config \
24789d8d5a5bSStefan Roesescpu_config:    unconfig
2479cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
24809d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
2481cdd917a4SWolfgang Denk		echo "#define CONFIG_SCPU"      >>$(obj)include/config.h ; \
2482ae6d1056SWolfgang Denk		$(XECHO) "... on SCPU board variant" ; \
24839d8d5a5bSStefan Roese	else \
2484cdd917a4SWolfgang Denk		>$(obj)include/config.h ; \
24859d8d5a5bSStefan Roese	fi
24869d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2487ba94a1bbSWolfgang Denk
2488f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
2489f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2490f57f70aaSWolfgang Denk
24915e5803e1Sstefano babictrizepsiv_config	:	unconfig
24925e5803e1Sstefano babic	@$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
24935e5803e1Sstefano babic
24943e38691eSwdenkwepep250_config	:	unconfig
2495f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
24963e38691eSwdenk
24974ec3a7f0Swdenkxaeniax_config	:	unconfig
2498f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
24994ec3a7f0Swdenk
2500efa329cbSwdenkxm250_config	:	unconfig
2501f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
2502efa329cbSwdenk
2503ca0e7748Swdenkxsengine_config :	unconfig
2504f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
2505ca0e7748Swdenk
2506e0269579SMarkus Klotzbücherzylonite_config :
2507f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
2508e0269579SMarkus Klotzbücher
25098ed96046Swdenk#########################################################################
25108ed96046Swdenk## ARM1136 Systems
25118ed96046Swdenk#########################################################################
25128ed96046Swdenkomap2420h4_config	: unconfig
2513f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
25145ca9881aSPeter Pearse
25155ca9881aSPeter Pearseapollon_config		: unconfig
25165ca9881aSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon
25178ed96046Swdenk
25182262cfeeSwdenk#========================================================================
25192262cfeeSwdenk# i386
25202262cfeeSwdenk#========================================================================
25212262cfeeSwdenk#########################################################################
25222262cfeeSwdenk## AMD SC520 CDP
25232262cfeeSwdenk#########################################################################
25242262cfeeSwdenksc520_cdp_config	:	unconfig
2525f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
25262262cfeeSwdenk
25277a8e9bedSwdenksc520_spunk_config	:	unconfig
2528f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
25297a8e9bedSwdenk
25307a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
2531f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
25327a8e9bedSwdenk
253343d9616cSwdenk#========================================================================
253443d9616cSwdenk# MIPS
253543d9616cSwdenk#========================================================================
25367ebf7443Swdenk#########################################################################
253743d9616cSwdenk## MIPS32 4Kc
253843d9616cSwdenk#########################################################################
253943d9616cSwdenk
2540e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2541e0ac62d7Swdenk
2542e0ac62d7Swdenkincaip_100MHz_config	\
2543e0ac62d7Swdenkincaip_133MHz_config	\
2544e0ac62d7Swdenkincaip_150MHz_config	\
254543d9616cSwdenkincaip_config: unconfig
2546f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2547f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2548e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
2549f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2550ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
2551e0ac62d7Swdenk		}
2552e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
2553f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2554ae6d1056SWolfgang Denk		  $(XECHO) "... with 133MHz system clock" ; \
2555e0ac62d7Swdenk		}
2556e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
2557f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2558ae6d1056SWolfgang Denk		  $(XECHO) "... with 150MHz system clock" ; \
2559e0ac62d7Swdenk		}
2560f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2561e0ac62d7Swdenk
2562f4863a7aSwdenktb0229_config: unconfig
2563f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
2564f4863a7aSwdenk
2565e0ac62d7Swdenk#########################################################################
256669459791Swdenk## MIPS32 AU1X00
256769459791Swdenk#########################################################################
256869459791Swdenkdbau1000_config		:	unconfig
2569f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2570f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2571f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2572f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
257369459791Swdenk
257469459791Swdenkdbau1100_config		:	unconfig
2575f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2576f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2577f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2578f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
257969459791Swdenk
258069459791Swdenkdbau1500_config		:	unconfig
2581f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2582f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2583f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2584f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
258569459791Swdenk
2586ff36fd85Swdenkdbau1550_config		:	unconfig
2587f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2588f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2589f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2590f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2591ff36fd85Swdenk
2592ff36fd85Swdenkdbau1550_el_config	:	unconfig
2593f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2594f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2595f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2596f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2597ff36fd85Swdenk
2598265817c7SWolfgang Denkpb1000_config		:	unconfig
2599f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2600f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2601f9328639SMarian Balakowicz	@echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2602f9328639SMarian Balakowicz	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
2603265817c7SWolfgang Denk
260469459791Swdenk#########################################################################
2605e0ac62d7Swdenk## MIPS64 5Kc
2606e0ac62d7Swdenk#########################################################################
260743d9616cSwdenk
26083e38691eSwdenkpurple_config :		unconfig
2609f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
261043d9616cSwdenk
26114a551709Swdenk#========================================================================
26124a551709Swdenk# Nios
26134a551709Swdenk#========================================================================
26144a551709Swdenk#########################################################################
26154a551709Swdenk## Nios32
26164a551709Swdenk#########################################################################
26174a551709Swdenk
2618c935d3bdSwdenkDK1C20_safe_32_config		\
2619c935d3bdSwdenkDK1C20_standard_32_config	\
26204a551709SwdenkDK1C20_config:	unconfig
2621f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2622f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2623c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2624f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2625ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
2626c935d3bdSwdenk		}
2627c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2628f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2629ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
2630c935d3bdSwdenk		}
2631c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
2632f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2633ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2634c935d3bdSwdenk		}
2635f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2636c935d3bdSwdenk
2637c935d3bdSwdenkDK1S10_safe_32_config		\
2638c935d3bdSwdenkDK1S10_standard_32_config	\
2639ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
2640c935d3bdSwdenkDK1S10_config:	unconfig
2641f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2642f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2643c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2644f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2645ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
2646c935d3bdSwdenk		}
2647c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2648f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2649ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
2650c935d3bdSwdenk		}
2651ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2652f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2653ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2654ec4c544bSwdenk		}
2655c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
2656f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2657ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2658c935d3bdSwdenk		}
2659f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
26604a551709Swdenk
2661aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
2662aaf224abSwdenkADNPESC1_base_32_config		\
2663aaf224abSwdenkADNPESC1_config: unconfig
2664f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2665f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2666aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
2667f9328639SMarian Balakowicz		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2668ae6d1056SWolfgang Denk		  $(XECHO) "... DNP/EVA2 configuration" ; \
2669aaf224abSwdenk		}
2670aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
2671f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2672ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration" ; \
2673aaf224abSwdenk		}
2674aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2675f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2676ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2677aaf224abSwdenk		}
2678f9328639SMarian Balakowicz	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2679aaf224abSwdenk
26805c952cf0Swdenk#########################################################################
26815c952cf0Swdenk## Nios-II
26825c952cf0Swdenk#########################################################################
26835c952cf0Swdenk
26849cc83378SScott McNuttEP1C20_config : unconfig
2685f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
26869cc83378SScott McNutt
26879cc83378SScott McNuttEP1S10_config : unconfig
2688f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
26899cc83378SScott McNutt
26909cc83378SScott McNuttEP1S40_config : unconfig
2691f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
26929cc83378SScott McNutt
26935c952cf0SwdenkPK1C20_config : unconfig
2694f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
26955c952cf0Swdenk
26965c952cf0SwdenkPCI5441_config : unconfig
2697f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
26984a551709Swdenk
2699507bbe3eSwdenk#========================================================================
2700507bbe3eSwdenk# MicroBlaze
2701507bbe3eSwdenk#========================================================================
2702507bbe3eSwdenk#########################################################################
2703507bbe3eSwdenk## Microblaze
2704507bbe3eSwdenk#########################################################################
2705507bbe3eSwdenksuzaku_config:	unconfig
2706f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2707f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2708f9328639SMarian Balakowicz	@echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2709f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2710507bbe3eSwdenk
2711cfc67116SMichal Simekml401_config:	unconfig
2712cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2713cdd917a4SWolfgang Denk	@ >$(obj)include/config.h
2714cdd917a4SWolfgang Denk	@echo "#define CONFIG_ML401 1" >> $(obj)include/config.h
271590b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2716cfc67116SMichal Simek
271717980495SMichal Simekxupv2p_config:	unconfig
2718cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2719cdd917a4SWolfgang Denk	@ >$(obj)include/config.h
2720cdd917a4SWolfgang Denk	@echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h
272190b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
272217980495SMichal Simek
27233e38691eSwdenk#########################################################################
27240afe519aSWolfgang Denk## Blackfin
27250afe519aSWolfgang Denk#########################################################################
2726ef26a08fSAubrey.Libf533-ezkit_config:	unconfig
2727ef26a08fSAubrey.Li	@$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
27280afe519aSWolfgang Denk
2729ef26a08fSAubrey.Libf533-stamp_config:	unconfig
2730ef26a08fSAubrey.Li	@$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
27310afe519aSWolfgang Denk
273226bf7decSAubrey Libf537-stamp_config:	unconfig
273326bf7decSAubrey Li	@$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
273426bf7decSAubrey Li
273565458987SAubrey Libf561-ezkit_config:	unconfig
273665458987SAubrey Li	@$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
27370afe519aSWolfgang Denk
27385e3b0bc1SHaavard Skinnemoen#========================================================================
27395e3b0bc1SHaavard Skinnemoen# AVR32
27405e3b0bc1SHaavard Skinnemoen#========================================================================
27415e3b0bc1SHaavard Skinnemoen#########################################################################
27425e3b0bc1SHaavard Skinnemoen## AT32AP7xxx
27435e3b0bc1SHaavard Skinnemoen#########################################################################
27445e3b0bc1SHaavard Skinnemoen
27455e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
274636f28f8aSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
27475e3b0bc1SHaavard Skinnemoen
2748667568dbSHaavard Skinnemoenatstk1003_config	:	unconfig
2749667568dbSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2750667568dbSHaavard Skinnemoen
275164ff2357SHaavard Skinnemoenatstk1004_config	:	unconfig
275264ff2357SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
27530afe519aSWolfgang Denk
2754*6b443944SHaavard Skinnemoenatngw100_config	:	unconfig
2755*6b443944SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
2756*6b443944SHaavard Skinnemoen
27570afe519aSWolfgang Denk#########################################################################
27580afe519aSWolfgang Denk#########################################################################
27593e38691eSwdenk#########################################################################
27607ebf7443Swdenk
276169df3c4dSNobuhiro Iwamatsu#########################################################################
2762b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH)
2763b2b5e2bbSYoshihiro Shimoda#########################################################################
2764b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig
2765b2b5e2bbSYoshihiro Shimoda	@ >include/config.h
2766b2b5e2bbSYoshihiro Shimoda	@echo "#define CONFIG_MS7720SE 1" >> include/config.h
2767b2b5e2bbSYoshihiro Shimoda	@./mkconfig -a $(@:_config=) sh sh3 ms7720se
2768b2b5e2bbSYoshihiro Shimoda
2769b2b5e2bbSYoshihiro Shimoda#########################################################################
277069df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH)
277169df3c4dSNobuhiro Iwamatsu#########################################################################
277269df3c4dSNobuhiro Iwamatsums7750se_config: unconfig
2773ae6d1056SWolfgang Denk	@ >$(obj)include/config.h
2774ae6d1056SWolfgang Denk	@echo "#define CONFIG_MS7750SE 1" >> $(obj)include/config.h
277569df3c4dSNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh4 ms7750se
277669df3c4dSNobuhiro Iwamatsu
2777d91ea45dSNobuhiro Iwamatsums7722se_config :       unconfig
2778ae6d1056SWolfgang Denk	@ >$(obj)include/config.h
2779ae6d1056SWolfgang Denk	@echo "#define CONFIG_MS7722SE 1" >> $(obj)include/config.h
2780d91ea45dSNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh4 ms7722se
27817a8e9bedSwdenk
27827a8e9bedSwdenk#########################################################################
27837ebf7443Swdenk#########################################################################
27847ebf7443Swdenk#########################################################################
27857ebf7443Swdenk
2786228f29acSwdenkclean:
2787ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \
27887f70e853Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
27897ebf7443Swdenk		-o -name '*.o'  -o -name '*.a'  \) -print \
27907ebf7443Swdenk		| xargs rm -f
2791ae6d1056SWolfgang Denk	@rm -f $(obj)examples/hello_world $(obj)examples/timer \
2792f9328639SMarian Balakowicz	      $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2793f9328639SMarian Balakowicz	      $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2794d214fbbdSWolfgang Denk	      $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2795f9328639SMarian Balakowicz	      $(obj)examples/test_burst
2796ae6d1056SWolfgang Denk	@rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2797566a494fSHeiko Schocher		$(obj)tools/gen_eth_addr $(obj)tools/ubsha1
2798ae6d1056SWolfgang Denk	@rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2799ae6d1056SWolfgang Denk	@rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2800ae6d1056SWolfgang Denk	@rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2801ae6d1056SWolfgang Denk	@rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2802ae6d1056SWolfgang Denk	@rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2803ae6d1056SWolfgang Denk	@rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2804ae6d1056SWolfgang Denk	@rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2805ae6d1056SWolfgang Denk	@rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2806ae6d1056SWolfgang Denk	@rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2807ae6d1056SWolfgang Denk	@rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
2808ae6d1056SWolfgang Denk	@rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2809ae6d1056SWolfgang Denk	@rm -f $(obj)include/bmp_logo.h
2810ae6d1056SWolfgang Denk	@rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2811ae6d1056SWolfgang Denk	@rm -f $(obj)api_examples/demo $(VERSION_FILE)
28127ebf7443Swdenk
28137ebf7443Swdenkclobber:	clean
2814ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \( -name .depend \
28154c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
28164c0d4c3bSwdenk		-print0 \
28174c0d4c3bSwdenk		| xargs -0 rm -f
2818ae6d1056SWolfgang Denk	@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS
2819ae6d1056SWolfgang Denk	@rm -fr $(obj)*.*~
2820ae6d1056SWolfgang Denk	@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2821ae6d1056SWolfgang Denk	@rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
2822ae6d1056SWolfgang Denk	@rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2823ae6d1056SWolfgang Denk	@rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2824ae6d1056SWolfgang Denk	@[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2825ae6d1056SWolfgang Denk	@[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f
28267ebf7443Swdenk
2827f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
28287ebf7443Swdenkmrproper \
28297ebf7443Swdenkdistclean:	clobber unconfig
2830f9328639SMarian Balakowiczelse
2831f9328639SMarian Balakowiczmrproper \
2832f9328639SMarian Balakowiczdistclean:	clobber unconfig
2833ae6d1056SWolfgang Denk	rm -rf $(obj)*
2834f9328639SMarian Balakowiczendif
28357ebf7443Swdenk
28367ebf7443Swdenkbackup:
28377ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
28387ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
28397ebf7443Swdenk
28407ebf7443Swdenk#########################################################################
2841