xref: /openbmc/u-boot/Makefile (revision 04a9e1180ac76a7bacc15a6fcd95ad839d65bddb)
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
233*04a9e118SBen WarrenLIBS += drivers/spi/libspi.a
2347737d5c6SDave Liuifeq ($(CPU),mpc83xx)
2357737d5c6SDave LiuLIBS += drivers/qe/qe.a
2367737d5c6SDave Liuendif
237da9d4610SAndy Flemingifeq ($(CPU),mpc85xx)
238da9d4610SAndy FlemingLIBS += drivers/qe/qe.a
239da9d4610SAndy Flemingendif
24059829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a
2418e585f02STsiChung LiewLIBS += drivers/serial/libserial.a
24259829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a
24359829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a
244ad5bb451SWolfgang DenkLIBS += post/libpost.a post/drivers/libpostdrivers.a
245ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
246ad5bb451SWolfgang Denk	"post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
247b4489621SSergei PoselenovLIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
248b4489621SSergei Poselenov	"post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
249ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
250ad5bb451SWolfgang Denk	"post/cpu/$(CPU)/libpost$(CPU).a"; fi)
251ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
252ad5bb451SWolfgang Denk	"post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
2537ebf7443SwdenkLIBS += common/libcommon.a
2547651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a
255500856ebSRafal Jaworowskiifeq ($(CONFIG_API),y)
256500856ebSRafal JaworowskiLIBS += api/libapi.a
257500856ebSRafal Jaworowskiendif
258f9328639SMarian Balakowicz
259f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS))
2609fd5e31fSwdenk.PHONY : $(LIBS)
261a8c7c708Swdenk
2624f7cb08eSwdenk# Add GCC lib
2631a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
2643d3befa7Swdenk
265a8c7c708Swdenk# The "tools" are needed early, so put this first
266a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
267a8c7c708SwdenkSUBDIRS	= tools \
268ad5bb451SWolfgang Denk	  examples
269ad5bb451SWolfgang Denk
270500856ebSRafal Jaworowskiifeq ($(CONFIG_API),y)
271500856ebSRafal JaworowskiSUBDIRS += api_examples
272500856ebSRafal Jaworowskiendif
273500856ebSRafal Jaworowski
274b028f715Swdenk.PHONY : $(SUBDIRS)
275a8c7c708Swdenk
276887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y)
277887e2ec9SStefan RoeseNAND_SPL = nand_spl
278887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin
279887e2ec9SStefan Roeseendif
280887e2ec9SStefan Roese
281f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS))
282f9328639SMarian Balakowicz__LIBS := $(subst $(obj),,$(LIBS))
283f9328639SMarian Balakowicz
2847ebf7443Swdenk#########################################################################
285bdccc4feSwdenk#########################################################################
2867ebf7443Swdenk
287566a494fSHeiko SchocherALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
2887ebf7443Swdenk
289bdccc4feSwdenkall:		$(ALL)
2907ebf7443Swdenk
291f9328639SMarian Balakowicz$(obj)u-boot.hex:	$(obj)u-boot
2926310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
2936310eb9dSwdenk
294f9328639SMarian Balakowicz$(obj)u-boot.srec:	$(obj)u-boot
2957ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
2967ebf7443Swdenk
297f9328639SMarian Balakowicz$(obj)u-boot.bin:	$(obj)u-boot
2987ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
2997ebf7443Swdenk
300f9328639SMarian Balakowicz$(obj)u-boot.img:	$(obj)u-boot.bin
301bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
302bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
303881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
304bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
305bdccc4feSwdenk		-d $< $@
306bdccc4feSwdenk
307566a494fSHeiko Schocher$(obj)u-boot.sha1:	$(obj)u-boot.bin
30801159530SHeiko Schocher		$(obj)tools/ubsha1 $(obj)u-boot.bin
309566a494fSHeiko Schocher
310f9328639SMarian Balakowicz$(obj)u-boot.dis:	$(obj)u-boot
3117ebf7443Swdenk		$(OBJDUMP) -d $< > $@
3127ebf7443Swdenk
313dd531aacSWolfgang Denk$(obj)u-boot:		depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
3148bde7f77Swdenk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
315f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
316f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
317b2184c31Swdenk			-Map u-boot.map -o u-boot
3187ebf7443Swdenk
319dd531aacSWolfgang Denk$(OBJS):	$(obj)include/autoconf.mk
320f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
321f9328639SMarian Balakowicz
322dd531aacSWolfgang Denk$(LIBS):	$(obj)include/autoconf.mk
323f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
324a8c7c708Swdenk
325dd531aacSWolfgang Denk$(SUBDIRS):	$(obj)include/autoconf.mk
326b028f715Swdenk		$(MAKE) -C $@ all
3277ebf7443Swdenk
328dd531aacSWolfgang Denk$(NAND_SPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
3298318fbf8SMarian Balakowicz		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
330887e2ec9SStefan Roese
331dd531aacSWolfgang Denk$(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
3328318fbf8SMarian Balakowicz		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
333887e2ec9SStefan Roese
334ae6d1056SWolfgang Denk$(VERSION_FILE):
335ae6d1056SWolfgang Denk		@( echo -n "#define U_BOOT_VERSION \"U-Boot " ; \
336ae6d1056SWolfgang Denk		echo -n "$(U_BOOT_VERSION)" ; \
337881a87ecSWolfgang Denk		echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
338ae6d1056SWolfgang Denk			 $(TOPDIR)) ; \
339ae6d1056SWolfgang Denk		echo "\"" ) > $(VERSION_FILE)
340881a87ecSWolfgang Denk
3418f713fdfSdzugdbtools:
342f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
343f9328639SMarian Balakowicz
344f9328639SMarian Balakowiczupdater:
345f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
346f9328639SMarian Balakowicz
347f9328639SMarian Balakowiczenv:
34864b3727bSMarkus Klotzbücher		$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
3498f713fdfSdzu
350ae6d1056SWolfgang Denkdepend dep:	$(VERSION_FILE)
351f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
3527ebf7443Swdenk
353a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include
354a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR)
355a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU)
356a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH)
357a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs
358a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat
359a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos
360a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2
361a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net
362a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk
363a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common
364a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator
365a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block
366a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon
367a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c
368a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input
369a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc
370a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd
371a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand
372a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy
373a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand
374a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net
375a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin
376a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci
377a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia
378a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe
379a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc
380a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial
381*04a9e118SBen WarrenTAG_SUBDIRS += drivers/spi
382a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb
383a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video
384a340c325SJean-Christophe PLAGNIOL-VILLARD
385f9328639SMarian Balakowicztags ctags:
386ae6d1056SWolfgang Denk		ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
38788fed9a1SWolfgang Denk						-name '*.[ch]' -print`
3887ebf7443Swdenk
3897ebf7443Swdenketags:
390ae6d1056SWolfgang Denk		etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
39188fed9a1SWolfgang Denk						-name '*.[ch]' -print`
3927ebf7443Swdenk
393f9328639SMarian Balakowicz$(obj)System.map:	$(obj)u-boot
3947ebf7443Swdenk		@$(NM) $< | \
3957ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
396f9328639SMarian Balakowicz		sort > $(obj)System.map
3977ebf7443Swdenk
3982f155f6cSGrant Likely#
3992f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles)
4002f155f6cSGrant Likely#
4012f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
4022f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when
4032f155f6cSGrant Likely# to regenerate the autoconf.mk file.
404ae6d1056SWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE)
405ae6d1056SWolfgang Denk	@$(XECHO) Generating include/autoconf.mk ; \
406ae6d1056SWolfgang Denk	: Generate the dependancies ; \
407ae6d1056SWolfgang Denk	$(CC) -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \
408ae6d1056SWolfgang Denk	: Extract the config macros ; \
409ae6d1056SWolfgang Denk	$(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@
4102f155f6cSGrant Likely
411ae6d1056SWolfgang Denksinclude $(obj)include/autoconf.mk.dep
4122f155f6cSGrant Likely
4137ebf7443Swdenk#########################################################################
414ae6d1056SWolfgang Denkelse	# !config.mk
415f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
416f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
417ae6d1056SWolfgang Denk$(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
418f9328639SMarian Balakowiczdep tags ctags etags $(obj)System.map:
4197ebf7443Swdenk	@echo "System not configured - see README" >&2
4207ebf7443Swdenk	@ exit 1
421ae6d1056SWolfgang Denkendif	# config.mk
4227ebf7443Swdenk
4234e53a258SWolfgang Denk.PHONY : CHANGELOG
4244e53a258SWolfgang DenkCHANGELOG:
425b985b5d6SBen Warren	git log --no-merges U-Boot-1_1_5.. | \
426b985b5d6SBen Warren	unexpand -a | sed -e 's/\s\s*$$//' > $@
4274e53a258SWolfgang Denk
4287ebf7443Swdenk#########################################################################
4297ebf7443Swdenk
4307ebf7443Swdenkunconfig:
431887e2ec9SStefan Roese	@rm -f $(obj)include/config.h $(obj)include/config.mk \
4322f155f6cSGrant Likely		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
4332f155f6cSGrant Likely		$(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
4347ebf7443Swdenk
4357ebf7443Swdenk#========================================================================
4367ebf7443Swdenk# PowerPC
4377ebf7443Swdenk#========================================================================
4380db5bca8Swdenk
4390db5bca8Swdenk#########################################################################
4400db5bca8Swdenk## MPC5xx Systems
4410db5bca8Swdenk#########################################################################
4420db5bca8Swdenk
4435e5f9ed2Swdenkcanmb_config:	unconfig
444f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
4455e5f9ed2Swdenk
4460db5bca8Swdenkcmi_mpc5xx_config:	unconfig
447f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
4480db5bca8Swdenk
449b6e4c403SwdenkPATI_config:		unconfig
450f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
451b6e4c403Swdenk
4527ebf7443Swdenk#########################################################################
453945af8d7Swdenk## MPC5xxx Systems
454945af8d7Swdenk#########################################################################
455a87589daSwdenk
456dafba16eSWolfgang Denkaev_config: unconfig
457f9328639SMarian Balakowicz	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
458dafba16eSWolfgang Denk
4596ca24c64Sdzu@denx.deBC3450_config:	unconfig
460f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
4616ca24c64Sdzu@denx.de
4625e4b3361SStefan Roesecpci5200_config:  unconfig
463f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
4645e4b3361SStefan Roese
465a87589daSwdenkhmi1001_config:	unconfig
466f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
467a87589daSwdenk
468e35745bbSwdenkLite5200_config				\
469e35745bbSwdenkLite5200_LOWBOOT_config			\
470e35745bbSwdenkLite5200_LOWBOOT08_config		\
471e35745bbSwdenkicecube_5200_config			\
472e35745bbSwdenkicecube_5200_LOWBOOT_config		\
473e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
474b2001f27Swdenkicecube_5200_DDR_config			\
47579d696fcSwdenkicecube_5200_DDR_LOWBOOT_config		\
47679d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
477e35745bbSwdenkicecube_5100_config:			unconfig
478f9328639SMarian Balakowicz	@mkdir -p $(obj)include
479f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
480f9328639SMarian Balakowicz	@ >$(obj)include/config.h
48117d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
48217d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
483f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
484f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
48517d704ebSwdenk		  fi ; \
486ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
4875cf9da48Swdenk		}
4885cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
489f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
4905cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
491ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
4925cf9da48Swdenk		}
493b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
494f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
495ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
496b2001f27Swdenk		}
497d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
498f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
499ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
500d4ca31c4Swdenk		}
501a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
502f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
503ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
504945af8d7Swdenk		}
505f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
506945af8d7Swdenk
5072605e90bSHeiko Schocherjupiter_config:	unconfig
5082605e90bSHeiko Schocher	@$(MKCONFIG) jupiter ppc mpc5xxx jupiter
5092605e90bSHeiko Schocher
5104707fb50SBartlomiej Siekav38b_config: unconfig
51190b1b2d6SGrant Likely	@$(MKCONFIG) -a v38b ppc mpc5xxx v38b
5124707fb50SBartlomiej Sieka
513138ff60cSwdenkinka4x0_config:	unconfig
514f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
515138ff60cSwdenk
51609e4b0c5SWolfgang Denklite5200b_config	\
517d3832e8fSDomen Puncerlite5200b_PM_config	\
51809e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
519f9328639SMarian Balakowicz	@mkdir -p $(obj)include
520f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
521f9328639SMarian Balakowicz	@ >$(obj)include/config.h
522f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
523ae6d1056SWolfgang Denk	@ $(XECHO) "... DDR memory revision"
524f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
525f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
526d3832e8fSDomen Puncer	@[ -z "$(findstring _PM_,$@)" ] || \
527d3832e8fSDomen Puncer		{ echo "#define CONFIG_LITE5200B_PM"	>>$(obj)include/config.h ; \
528ae6d1056SWolfgang Denk		  $(XECHO) "... with power management (low-power mode) support" ; \
529d3832e8fSDomen Puncer		}
53009e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
531f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
532ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
53309e4b0c5SWolfgang Denk		}
534ae6d1056SWolfgang Denk	@ $(XECHO) "... with MPC5200B processor"
535f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
53609e4b0c5SWolfgang Denk
537f1ee9825SStefan Roesemcc200_config	\
538ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
539ed1cf845SWolfgang Denkmcc200_highboot_config	\
540ed1cf845SWolfgang Denkmcc200_COM12_config	\
541ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
542113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
543113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
544ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
545ed1cf845SWolfgang Denkprs200_config	\
546ed1cf845SWolfgang Denkprs200_DDR_config	\
547ed1cf845SWolfgang Denkprs200_highboot_config	\
548ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
549f9328639SMarian Balakowicz	@mkdir -p $(obj)include
550f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
551f9328639SMarian Balakowicz	@ >$(obj)include/config.h
5524819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
553ae6d1056SWolfgang Denk		{ $(XECHO) "... with lowboot configuration" ; \
554f1ee9825SStefan Roese		}
5554819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
556f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
557ae6d1056SWolfgang Denk		  $(XECHO) "... with highboot configuration" ; \
5584819fad9SWolfgang Denk		}
5594819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
560ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
561ed1cf845SWolfgang Denk		  then \
562ae6d1056SWolfgang Denk			$(XECHO) "... with DDR" ; \
563ed1cf845SWolfgang Denk		  else \
564ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
565ed1cf845SWolfgang Denk			then \
566ae6d1056SWolfgang Denk				$(XECHO) "... with DDR" ; \
567ed1cf845SWolfgang Denk			else \
568f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
569ae6d1056SWolfgang Denk				$(XECHO) "... with SDRAM" ; \
570ed1cf845SWolfgang Denk			fi; \
571ed1cf845SWolfgang Denk		  fi; \
5724819fad9SWolfgang Denk		}
5734819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
574f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
575ae6d1056SWolfgang Denk		  $(XECHO) "... with SDRAM" ; \
5764819fad9SWolfgang Denk		}
577463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
578f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
579ae6d1056SWolfgang Denk		  $(XECHO) "... with console on COM12" ; \
580463764c8SWolfgang Denk		}
581ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
582f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"  >>$(obj)include/config.h ;\
583ed1cf845SWolfgang Denk		}
584f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
58586ea5f93SWolfgang Denk
5868b7d1f0aSStefan Roesemecp5200_config:  unconfig
587ae6d1056SWolfgang Denk	@$(MKCONFIG) mecp5200  ppc mpc5xxx mecp5200 esd
5888b7d1f0aSStefan Roese
5896341d9d7SHeiko Schochermunices_config:	unconfig
590ae6d1056SWolfgang Denk	@$(MKCONFIG) munices ppc mpc5xxx munices
5916341d9d7SHeiko Schocher
592df04a3dfSWolfgang Denko2dnt_config:
593f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
594df04a3dfSWolfgang Denk
5955e4b3361SStefan Roesepf5200_config:  unconfig
596f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
5975e4b3361SStefan Roese
59889394047SwdenkPM520_config \
59989394047SwdenkPM520_DDR_config \
60089394047SwdenkPM520_ROMBOOT_config \
60189394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
602f9328639SMarian Balakowicz	@mkdir -p $(obj)include
603f9328639SMarian Balakowicz	@ >$(obj)include/config.h
60489394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
605f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
606ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
60789394047Swdenk		}
60889394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
609f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
610ae6d1056SWolfgang Denk		  $(XECHO) "... booting from 8-bit flash" ; \
61189394047Swdenk		}
612f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
61389394047Swdenk
6146624b687SWolfgang Denksmmaco4_config: unconfig
615f9328639SMarian Balakowicz	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
6169cdc8386SWolfgang Denk
61786b116b1SBartlomiej Siekacm5200_config:	unconfig
61886b116b1SBartlomiej Sieka	@./mkconfig -a cm5200 ppc mpc5xxx cm5200
619fa1df308SBartlomiej Sieka
6209cdc8386SWolfgang Denkspieval_config:	unconfig
621f9328639SMarian Balakowicz	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
6229cdc8386SWolfgang Denk
62345a212c4SWolfgang DenkTB5200_B_config \
624b87dfd28SWolfgang DenkTB5200_config:	unconfig
625f9328639SMarian Balakowicz	@mkdir -p $(obj)include
62645a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
627f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
628ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200B processor" ; \
62945a212c4SWolfgang Denk		}
630f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
631b87dfd28SWolfgang Denk
632d4ca31c4SwdenkMINI5200_config	\
633d4ca31c4SwdenkEVAL5200_config	\
634d4ca31c4SwdenkTOP5200_config:	unconfig
635f9328639SMarian Balakowicz	@mkdir -p $(obj)include
636f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
637f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
638d4ca31c4Swdenk
6396c7a1408SwdenkTotal5100_config		\
6406c7a1408SwdenkTotal5200_config		\
6416c7a1408SwdenkTotal5200_lowboot_config	\
6426c7a1408SwdenkTotal5200_Rev2_config		\
6436c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
644f9328639SMarian Balakowicz	@mkdir -p $(obj)include
645f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
646f9328639SMarian Balakowicz	@ >$(obj)include/config.h
6476c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
648f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
649ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
6506c7a1408Swdenk		}
6516c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
652f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
653ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
6546c7a1408Swdenk		}
6556c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
656f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
657ae6d1056SWolfgang Denk		  $(XECHO) "... revision 1 board" ; \
6586c7a1408Swdenk		}
6596c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
660f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
661ae6d1056SWolfgang Denk		  $(XECHO) "... revision 2 board" ; \
6626c7a1408Swdenk		}
6636c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
664f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
665ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
6666c7a1408Swdenk		}
667f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
6686c7a1408Swdenk
6695196a7a0SWolfgang Denkcam5200_config \
670d9384de2SMarian Balakowiczcam5200_niosflash_config \
6715196a7a0SWolfgang Denkfo300_config \
6725196a7a0SWolfgang DenkMiniFAP_config \
6735078cce8SWolfgang DenkTQM5200S_config \
6745078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
6755196a7a0SWolfgang DenkTQM5200_B_config \
6765196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
6775196a7a0SWolfgang DenkTQM5200_config	\
6785196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
679f9328639SMarian Balakowicz	@mkdir -p $(obj)include
680f9328639SMarian Balakowicz	@mkdir -p $(obj)board/tqm5200
681f9328639SMarian Balakowicz	@ >$(obj)include/config.h
682135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
683f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
684f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
685f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
686ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200S on Cam5200" ; \
6875078cce8SWolfgang Denk		}
688d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
689d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
690ae6d1056SWolfgang Denk		  $(XECHO) "... with NIOS flash driver" ; \
691d9384de2SMarian Balakowicz		}
6926d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
693f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
694ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200 on FO300" ; \
6956d3bc9b8SMarian Balakowicz		}
696cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
697f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
698ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200_AC on MiniFAP" ; \
699978b1096SWolfgang Denk		}
700cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
701f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
702ae6d1056SWolfgang Denk		  $(XECHO) "... on a STK52XX.100 base board" ; \
70356523f12Swdenk		}
7045078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
705f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
7065078cce8SWolfgang Denk		}
7075078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
708f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
709f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
71045a212c4SWolfgang Denk		}
711978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
712f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
713978b1096SWolfgang Denk		}
714f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
7156dedf3d4SHeiko Schocheruc101_config:		unconfig
7166dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
71753d4a498SBartlomiej Siekamotionpro_config:	unconfig
71853d4a498SBartlomiej Sieka	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
71953d4a498SBartlomiej Sieka
72056523f12Swdenk
721945af8d7Swdenk#########################################################################
7228993e54bSRafal Jaworowski## MPC512x Systems
7238993e54bSRafal Jaworowski#########################################################################
7248993e54bSRafal Jaworowskiads5121_config: unconfig
7258993e54bSRafal Jaworowski	@$(MKCONFIG) ads5121 ppc mpc512x ads5121
7268993e54bSRafal Jaworowski
7278993e54bSRafal Jaworowski
7288993e54bSRafal Jaworowski#########################################################################
7297ebf7443Swdenk## MPC8xx Systems
7307ebf7443Swdenk#########################################################################
7317ebf7443Swdenk
7322d24a3a7SwdenkAdder_config    \
7332d24a3a7SwdenkAdder87x_config \
73426238132SwdenkAdderII_config  \
7352d24a3a7Swdenk	:		unconfig
736f9328639SMarian Balakowicz	@mkdir -p $(obj)include
73726238132Swdenk	$(if $(findstring AdderII,$@), \
738f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
739f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
7402d24a3a7Swdenk
74116c8d5e7SWolfgang DenkAdderUSB_config:	unconfig
74216c8d5e7SWolfgang Denk	@./mkconfig -a AdderUSB ppc mpc8xx adder
74316c8d5e7SWolfgang Denk
744180d3f74SwdenkADS860_config     \
745180d3f74SwdenkFADS823_config    \
746180d3f74SwdenkFADS850SAR_config \
747180d3f74SwdenkMPC86xADS_config  \
7481114257cSwdenkMPC885ADS_config  \
749180d3f74SwdenkFADS860T_config:	unconfig
750f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
7517ebf7443Swdenk
7527ebf7443SwdenkAMX860_config	:	unconfig
753f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
7547ebf7443Swdenk
7557ebf7443Swdenkc2mon_config:		unconfig
756f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
7577ebf7443Swdenk
7587ebf7443SwdenkCCM_config:		unconfig
759f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
7607ebf7443Swdenk
7617ebf7443Swdenkcogent_mpc8xx_config:	unconfig
762f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
7637ebf7443Swdenk
7643bac3513SwdenkELPT860_config:		unconfig
765f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
7663bac3513Swdenk
76784c960ceSWolfgang DenkEP88x_config:		unconfig
768f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
76984c960ceSWolfgang Denk
7707ebf7443SwdenkESTEEM192E_config:	unconfig
771f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
7727ebf7443Swdenk
7737ebf7443SwdenkETX094_config	:	unconfig
774f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
7757ebf7443Swdenk
7767ebf7443SwdenkFLAGADM_config:	unconfig
777f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
7787ebf7443Swdenk
7797aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
7807aa78614Swdenk
7817aa78614SwdenkGEN860T_SC_config	\
7827ebf7443SwdenkGEN860T_config: unconfig
783f9328639SMarian Balakowicz	@mkdir -p $(obj)include
784f9328639SMarian Balakowicz	@ >$(obj)include/config.h
7857aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
786f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
787ae6d1056SWolfgang Denk		  $(XECHO) "With reduced H/W feature set (SC)..." ; \
7887aa78614Swdenk		}
789f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
7907ebf7443Swdenk
7917ebf7443SwdenkGENIETV_config:	unconfig
792f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
7937ebf7443Swdenk
7947ebf7443SwdenkGTH_config:	unconfig
795f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
7967ebf7443Swdenk
7977ebf7443Swdenkhermes_config	:	unconfig
798f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
7997ebf7443Swdenk
800c40b2956SwdenkHMI10_config	:	unconfig
801f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
802c40b2956Swdenk
8037ebf7443SwdenkIAD210_config: unconfig
804f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
8057ebf7443Swdenk
8067ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
8077ebf7443Swdenk
8087ebf7443SwdenkICU862_100MHz_config	\
8097ebf7443SwdenkICU862_config: unconfig
810f9328639SMarian Balakowicz	@mkdir -p $(obj)include
811f9328639SMarian Balakowicz	@ >$(obj)include/config.h
8127ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
813f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
814ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
8157ebf7443Swdenk		}
816f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
8177ebf7443Swdenk
8187ebf7443SwdenkIP860_config	:	unconfig
819f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
8207ebf7443Swdenk
8217ebf7443SwdenkIVML24_256_config \
8227ebf7443SwdenkIVML24_128_config \
8237ebf7443SwdenkIVML24_config:	unconfig
824f9328639SMarian Balakowicz	@mkdir -p $(obj)include
825f9328639SMarian Balakowicz	@ >$(obj)include/config.h
8267ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
827f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
8287ebf7443Swdenk		 }
8297ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
830f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
8317ebf7443Swdenk		 }
8327ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
833f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
8347ebf7443Swdenk		 }
835f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
8367ebf7443Swdenk
8377ebf7443SwdenkIVMS8_256_config \
8387ebf7443SwdenkIVMS8_128_config \
8397ebf7443SwdenkIVMS8_config:	unconfig
840f9328639SMarian Balakowicz	@mkdir -p $(obj)include
841f9328639SMarian Balakowicz	@ >$(obj)include/config.h
8427ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
843f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
8447ebf7443Swdenk		 }
8457ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
846f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
8477ebf7443Swdenk		 }
8487ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
849f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
8507ebf7443Swdenk		 }
851f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
8527ebf7443Swdenk
85356f94be3SwdenkKUP4K_config	:	unconfig
854f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
8550608e04dSwdenk
8560608e04dSwdenkKUP4X_config    :       unconfig
857f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
85856f94be3Swdenk
8597ebf7443SwdenkLANTEC_config	:	unconfig
860f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
8617ebf7443Swdenk
8627ebf7443Swdenklwmon_config:		unconfig
863f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
8647ebf7443Swdenk
8657ebf7443SwdenkMBX_config	\
8667ebf7443SwdenkMBX860T_config:	unconfig
867f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
8687ebf7443Swdenk
869381e4e63SHeiko Schochermgsuvd_config:		unconfig
870381e4e63SHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
871381e4e63SHeiko Schocher
8727ebf7443SwdenkMHPC_config:		unconfig
873f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
8747ebf7443Swdenk
8757ebf7443SwdenkMVS1_config :		unconfig
876f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
8777ebf7443Swdenk
878993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
879993cad93Swdenk
880993cad93SwdenkNETVIA_V2_config \
8817ebf7443SwdenkNETVIA_config:		unconfig
882f9328639SMarian Balakowicz	@mkdir -p $(obj)include
883f9328639SMarian Balakowicz	@ >$(obj)include/config.h
884993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
885f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
886ae6d1056SWolfgang Denk		  $(XECHO) "... Version 1" ; \
887993cad93Swdenk		 }
888993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
889f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
890ae6d1056SWolfgang Denk		  $(XECHO) "... Version 2" ; \
891993cad93Swdenk		 }
892f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
8937ebf7443Swdenk
894c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
895c26e454dSwdenk
896c26e454dSwdenkNETPHONE_V2_config \
89704a85b3bSwdenkNETPHONE_config:	unconfig
898f9328639SMarian Balakowicz	@mkdir -p $(obj)include
899f9328639SMarian Balakowicz	@ >$(obj)include/config.h
900c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
901f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
902c26e454dSwdenk		 }
903c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
904f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
905c26e454dSwdenk		 }
906f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
90704a85b3bSwdenk
90879fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
90904a85b3bSwdenk
91079fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
91179fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
91279fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
91379fa88f3SwdenkNETTA_SWAPHOOK_config \
91479fa88f3SwdenkNETTA_ISDN_6412_config \
91504a85b3bSwdenkNETTA_ISDN_config \
91679fa88f3SwdenkNETTA_6412_config \
91704a85b3bSwdenkNETTA_config:		unconfig
918f9328639SMarian Balakowicz	@mkdir -p $(obj)include
919f9328639SMarian Balakowicz	@ >$(obj)include/config.h
92079fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
921f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
92204a85b3bSwdenk		 }
92379fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
924f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
92579fa88f3Swdenk		 }
92679fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
927f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
92879fa88f3Swdenk		 }
92979fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
930f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
93179fa88f3Swdenk		 }
93279fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
933f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
93479fa88f3Swdenk		 }
93579fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
936f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
93779fa88f3Swdenk		 }
938f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
93904a85b3bSwdenk
94079fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
94179fa88f3Swdenk
94279fa88f3SwdenkNETTA2_V2_config \
94379fa88f3SwdenkNETTA2_config:		unconfig
944f9328639SMarian Balakowicz	@mkdir -p $(obj)include
945f9328639SMarian Balakowicz	@ >$(obj)include/config.h
94679fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
947f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
94879fa88f3Swdenk		 }
94979fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
950f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
95179fa88f3Swdenk		 }
952f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
95379fa88f3Swdenk
954a367d426Sdzu@denx.deNC650_Rev1_config \
955a367d426Sdzu@denx.deNC650_Rev2_config \
956a367d426Sdzu@denx.deCP850_config:	unconfig
957f9328639SMarian Balakowicz	@mkdir -p $(obj)include
958f9328639SMarian Balakowicz	@ >$(obj)include/config.h
959a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
960f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
961f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
962a367d426Sdzu@denx.de		 }
963a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
964f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
965a367d426Sdzu@denx.de		 }
966a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
967f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
968a367d426Sdzu@denx.de		 }
969f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
9707ca202f5Swdenk
9717ebf7443SwdenkNX823_config:		unconfig
972f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
9737ebf7443Swdenk
9747ebf7443Swdenkpcu_e_config:		unconfig
975f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
9767ebf7443Swdenk
9773bbc899fSwdenkQS850_config:	unconfig
978f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
9793bbc899fSwdenk
9803bbc899fSwdenkQS823_config:	unconfig
981f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
9823bbc899fSwdenk
9833bbc899fSwdenkQS860T_config:	unconfig
984f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
9853bbc899fSwdenk
986da93ed81Swdenkquantum_config:	unconfig
987f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
988da93ed81Swdenk
9897ebf7443SwdenkR360MPI_config:	unconfig
990f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
9917ebf7443Swdenk
992682011ffSwdenkRBC823_config:	unconfig
993f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
994682011ffSwdenk
9957ebf7443SwdenkRPXClassic_config:	unconfig
996f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
9977ebf7443Swdenk
9987ebf7443SwdenkRPXlite_config:		unconfig
999f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
10007ebf7443Swdenk
1001e63c8ee3SwdenkRPXlite_DW_64_config		\
1002e63c8ee3SwdenkRPXlite_DW_LCD_config		\
1003e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
1004e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
1005e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config      \
1006e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
1007e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config  \
1008e63c8ee3SwdenkRPXlite_DW_config:	unconfig
1009f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1010f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1011e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
1012f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
1013ae6d1056SWolfgang Denk		  $(XECHO) "... with 64MHz system clock ..."; \
1014e63c8ee3Swdenk		}
1015e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1016f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1017f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1018ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display ..."; \
1019e63c8ee3Swdenk		}
1020e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
1021f9328639SMarian Balakowicz		{ echo "#define  CFG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
1022ae6d1056SWolfgang Denk		  $(XECHO) "... with ENV in NVRAM ..."; \
1023e63c8ee3Swdenk		}
1024f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1025e63c8ee3Swdenk
102673a8b27cSwdenkrmu_config:	unconfig
1027f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
102873a8b27cSwdenk
10297ebf7443SwdenkRRvision_config:	unconfig
1030f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
10317ebf7443Swdenk
10327ebf7443SwdenkRRvision_LCD_config:	unconfig
1033f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1034f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1035f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1036f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
10377ebf7443Swdenk
10387ebf7443SwdenkSM850_config	:	unconfig
1039f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
10407ebf7443Swdenk
1041b02d0177SMarkus Klotzbuecherspc1920_config:
1042f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1043b02d0177SMarkus Klotzbuecher
10447ebf7443SwdenkSPD823TS_config:	unconfig
1045f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
10467ebf7443Swdenk
10476bdf4306SWolfgang Denkstxxtc_config:	unconfig
1048f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
10496bdf4306SWolfgang Denk
1050dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
1051f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1052dc7c9a1aSwdenk
10537ebf7443SwdenkSXNI855T_config:	unconfig
1054f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
10557ebf7443Swdenk
1056db2f721fSwdenk# EMK MPC8xx based modules
1057db2f721fSwdenkTOP860_config:		unconfig
1058f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1059db2f721fSwdenk
10607ebf7443Swdenk# Play some tricks for configuration selection
1061e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
1062e9132ea9Swdenk# and only 823 boards may have LCD support
1063e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
10647ebf7443Swdenk
10657ebf7443SwdenkFPS850L_config		\
1066384ae025SwdenkFPS860L_config		\
1067f12e568cSwdenkNSCU_config		\
10687ebf7443SwdenkTQM823L_config		\
10697ebf7443SwdenkTQM823L_LCD_config	\
10707ebf7443SwdenkTQM850L_config		\
10717ebf7443SwdenkTQM855L_config		\
10727ebf7443SwdenkTQM860L_config		\
1073d126bfbdSwdenkTQM862L_config		\
1074ae3af05eSwdenkTQM823M_config		\
1075ae3af05eSwdenkTQM850M_config		\
1076f12e568cSwdenkTQM855M_config		\
1077f12e568cSwdenkTQM860M_config		\
1078f12e568cSwdenkTQM862M_config		\
10798cba090cSWolfgang DenkTQM866M_config		\
1080090eb735SMarkus KlotzbuecherTQM885D_config		\
1081efc6f447SGuennadi LiakhovetskiTK885D_config		\
10828cba090cSWolfgang Denkvirtlab2_config:	unconfig
1083f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1084f9328639SMarian Balakowicz	@ >$(obj)include/config.h
10857ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1086f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1087f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1088ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display" ; \
10897ebf7443Swdenk		}
1090f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
10917ebf7443Swdenk
10927ebf7443SwdenkTTTech_config:	unconfig
1093f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1094f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1095f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1096f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
10977ebf7443Swdenk
1098ec0aee7bSwdenkuc100_config	:	unconfig
1099f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1100f7d1572bSwdenk
1101608c9146Swdenkv37_config:	unconfig
1102f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1103f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1104f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1105f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1106608c9146Swdenk
110791e940d9Sdzuwtk_config:	unconfig
1108f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1109f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1110f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1111f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
111291e940d9Sdzu
11137ebf7443Swdenk#########################################################################
11147ebf7443Swdenk## PPC4xx Systems
11157ebf7443Swdenk#########################################################################
1116e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
11177ebf7443Swdenk
111816c0cc1cSStefan Roeseacadia_config:	unconfig
111916c0cc1cSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
112016c0cc1cSStefan Roese
1121c440bfe6SStefan Roeseacadia_nand_config:	unconfig
112263e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/acadia
112363e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/acadia
1124c440bfe6SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1125c440bfe6SStefan Roese	@$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1126c440bfe6SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1127c440bfe6SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1128c440bfe6SStefan Roese
11297ebf7443SwdenkADCIOP_config:	unconfig
1130f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
11317ebf7443Swdenk
1132899620c2SStefan Roesealpr_config:	unconfig
113335d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1134899620c2SStefan Roese
11357521af1cSWolfgang DenkAP1000_config:unconfig
1136f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
11377521af1cSWolfgang Denk
1138c419d1d6SstroeseAPC405_config:	unconfig
1139f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1140c419d1d6Sstroese
11417ebf7443SwdenkAR405_config:	unconfig
1142f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
11437ebf7443Swdenk
1144549826eaSstroeseASH405_config:	unconfig
1145f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1146549826eaSstroese
11478a316c9bSStefan Roesebamboo_config:	unconfig
1148f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
11498a316c9bSStefan Roese
1150cf959c7dSStefan Roesebamboo_nand_config:	unconfig
115163e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/bamboo
115263e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/bamboo
1153cf959c7dSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1154f3679aa1SStefan Roese	@$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1155cf959c7dSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1156cf959c7dSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1157cf959c7dSStefan Roese
11588a316c9bSStefan Roesebubinga_config:	unconfig
1159f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1160549826eaSstroese
11617ebf7443SwdenkCANBT_config:	unconfig
1162f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
11637ebf7443Swdenk
11641d6f9720SwdenkCATcenter_config	\
11651d6f9720SwdenkCATcenter_25_config	\
11661d6f9720SwdenkCATcenter_33_config:	unconfig
1167f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1168f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1169f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
11701d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1171f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1172ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
11731d6f9720Swdenk		}
11741d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1175f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1176ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
11771d6f9720Swdenk		}
1178f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
117910767ccbSwdenk
11807644f16fSStefan RoeseCPCI2DP_config:	unconfig
1181f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
11827644f16fSStefan Roese
11837ebf7443SwdenkCPCI405_config	\
1184549826eaSstroeseCPCI4052_config	\
1185c419d1d6SstroeseCPCI405DT_config	\
1186549826eaSstroeseCPCI405AB_config:	unconfig
1187f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1188f9328639SMarian Balakowicz	@echo "BOARD_REVISION = $(@:_config=)"	>> $(obj)include/config.mk
11897ebf7443Swdenk
11907ebf7443SwdenkCPCIISER4_config:	unconfig
1191f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
11927ebf7443Swdenk
11937ebf7443SwdenkCRAYL1_config:	unconfig
1194f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
11957ebf7443Swdenk
1196cd0a9de6Swdenkcsb272_config:	unconfig
1197f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1198cd0a9de6Swdenk
1199aa245090Swdenkcsb472_config:	unconfig
1200f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1201aa245090Swdenk
12027ebf7443SwdenkDASA_SIM_config: unconfig
1203f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
12047ebf7443Swdenk
120572cd5aa7SstroeseDP405_config:	unconfig
1206f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
120772cd5aa7Sstroese
12087ebf7443SwdenkDU405_config:	unconfig
1209f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
12107ebf7443Swdenk
12118a316c9bSStefan Roeseebony_config:	unconfig
1212f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
12137ebf7443Swdenk
12147ebf7443SwdenkERIC_config:	unconfig
1215f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
12167ebf7443Swdenk
1217d1cbe85bSwdenkEXBITGEN_config:	unconfig
1218f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1219d1cbe85bSwdenk
1220c419d1d6SstroeseG2000_config:	unconfig
1221f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1222c419d1d6Sstroese
1223ac982ea5SNiklaus Gigerhcu4_config:	unconfig
122435d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1225ac982ea5SNiklaus Giger
1226ac982ea5SNiklaus Gigerhcu5_config:	unconfig
122735d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1228ac982ea5SNiklaus Giger
1229c419d1d6SstroeseHH405_config:	unconfig
1230f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1231c419d1d6Sstroese
123272cd5aa7SstroeseHUB405_config:	unconfig
1233f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
123472cd5aa7Sstroese
1235db01a2eaSwdenkJSE_config:	unconfig
1236f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1237db01a2eaSwdenk
1238b79316f2SStefan RoeseKAREF_config: unconfig
1239f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1240b79316f2SStefan Roese
12414745acaaSStefan Roesekatmai_config:	unconfig
12424745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
12434745acaaSStefan Roese
1244353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR)
1245353f2688SStefan Roesekilauea_config \
1246353f2688SStefan Roesehaleakala_config: unconfig
1247353f2688SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1248566806caSStefan Roese
12493d6cb3b2SStefan Roesekilauea_nand_config \
12503d6cb3b2SStefan Roesehaleakala_nand_config: unconfig
12513d6cb3b2SStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/kilauea
12523d6cb3b2SStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/kilauea
12533d6cb3b2SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
12543d6cb3b2SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
12553d6cb3b2SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
12563d6cb3b2SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
12573d6cb3b2SStefan Roese
1258c591dffeSLarry Johnsonkorat_config:	unconfig
1259c591dffeSLarry Johnson	@$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1260c591dffeSLarry Johnson
12616e7fb6eaSStefan Roeseluan_config:	unconfig
1262f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
12636e7fb6eaSStefan Roese
1264b765ffb7SStefan Roeselwmon5_config:	unconfig
1265b765ffb7SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1266b765ffb7SStefan Roese
1267211ea91aSStefan Roesemakalu_config:	unconfig
1268211ea91aSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1269211ea91aSStefan Roese
1270b79316f2SStefan RoeseMETROBOX_config: unconfig
1271f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1272b79316f2SStefan Roese
12737ebf7443SwdenkMIP405_config:	unconfig
1274f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
12757ebf7443Swdenk
1276f3e0de60SwdenkMIP405T_config:	unconfig
1277f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1278f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1279ae6d1056SWolfgang Denk	@$(XECHO) "Enable subset config for MIP405T"
1280f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1281f3e0de60Swdenk
12827ebf7443SwdenkML2_config:	unconfig
1283f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
12847ebf7443Swdenk
1285028ab6b5Swdenkml300_config:	unconfig
1286f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1287028ab6b5Swdenk
12888a316c9bSStefan Roeseocotea_config:	unconfig
1289f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
12900e6d798cSwdenk
12917ebf7443SwdenkOCRTC_config		\
12927ebf7443SwdenkORSG_config:	unconfig
1293f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
12947ebf7443Swdenk
12955568e613SStefan Roesep3p440_config:	unconfig
1296f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
12975568e613SStefan Roese
12987ebf7443SwdenkPCI405_config:	unconfig
1299f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
13007ebf7443Swdenk
1301a4c8d138SStefan Roesepcs440ep_config:	unconfig
1302f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1303a4c8d138SStefan Roese
13047ebf7443SwdenkPIP405_config:	unconfig
1305f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
13067ebf7443Swdenk
130772cd5aa7SstroesePLU405_config:	unconfig
1308f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
130972cd5aa7Sstroese
1310549826eaSstroesePMC405_config:	unconfig
1311f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1312549826eaSstroese
13138ba132caSMatthias FuchsPMC440_config:	unconfig
13148ba132caSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
13158ba132caSMatthias Fuchs
1316281e00a3SwdenkPPChameleonEVB_config		\
1317e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1318e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1319e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1320e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1321e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1322e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1323f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1324f9328639SMarian Balakowicz	@ >$(obj)include/config.h
13251d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1326f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1327ae6d1056SWolfgang Denk		  $(XECHO) "... BASIC model" ; \
1328fbe4b5cbSwdenk		}
13291d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1330f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1331ae6d1056SWolfgang Denk		  $(XECHO) "... MEDIUM model" ; \
1332fbe4b5cbSwdenk		}
13331d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1334f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1335ae6d1056SWolfgang Denk		  $(XECHO) "... HIGH-END model" ; \
1336fbe4b5cbSwdenk		}
1337e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1338f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1339ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
1340e55ca7e2Swdenk		}
1341e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1342f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1343ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
1344e55ca7e2Swdenk		}
1345f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
134612f34241Swdenk
1347430f1b0fSStefan Roesesbc405_config:	unconfig
1348430f1b0fSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1349430f1b0fSStefan Roese
1350430f1b0fSStefan Roesesequoia_config \
1351854bc8daSStefan Roeserainier_config: unconfig
13528318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1353430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1354430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
13552aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1356854bc8daSStefan Roese
1357430f1b0fSStefan Roesesequoia_nand_config \
1358854bc8daSStefan Roeserainier_nand_config: unconfig
135963e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
136063e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/sequoia
13618318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1362430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1363430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1364430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
13658318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
13668318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1367652a10c0Swdenk
13686d3e0107SWolfgang Denksc3_config:unconfig
136935d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1370ca43ba18SHeiko Schocher
1371d4024bb7SJohn Otkentaihu_config:	unconfig
1372d4024bb7SJohn Otken	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1373d4024bb7SJohn Otken
13745fb692caSStefan Roesetaishan_config:	unconfig
13755fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
13765fb692caSStefan Roese
137772cd5aa7SstroeseVOH405_config:	unconfig
1378f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
137972cd5aa7Sstroese
1380c419d1d6SstroeseVOM405_config:	unconfig
1381f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1382c419d1d6Sstroese
1383feaedfcfSStefan RoeseCMS700_config:	unconfig
1384f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1385feaedfcfSStefan Roese
13867ebf7443SwdenkW7OLMC_config	\
13877ebf7443SwdenkW7OLMG_config: unconfig
1388f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
13897ebf7443Swdenk
1390430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR)
1391430f1b0fSStefan Roesewalnut_config \
1392430f1b0fSStefan Roesesycamore_config: unconfig
1393430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
13947ebf7443Swdenk
1395c419d1d6SstroeseWUH405_config:	unconfig
1396f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1397c419d1d6Sstroese
1398ba56f625SwdenkXPEDITE1K_config:	unconfig
1399f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1400ba56f625Swdenk
1401430f1b0fSStefan Roeseyosemite_config \
14028a316c9bSStefan Roeseyellowstone_config: unconfig
1403700200c6SStefan Roese	@mkdir -p $(obj)include
1404430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1405430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
14062aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
14078a316c9bSStefan Roese
14086c5879f3SMarian Balakowiczyucca_config:	unconfig
1409f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
14106c5879f3SMarian Balakowicz
1411779e9751SStefan Roesezeus_config:	unconfig
1412779e9751SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1413779e9751SStefan Roese
14147ebf7443Swdenk#########################################################################
1415983fda83Swdenk## MPC8220 Systems
1416983fda83Swdenk#########################################################################
1417dc17fb6dSWolfgang Denk
1418dc17fb6dSWolfgang DenkAlaska8220_config	\
1419dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1420f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1421983fda83Swdenk
142212b43d51Swdenksorcery_config:		unconfig
1423f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
142412b43d51Swdenk
1425983fda83Swdenk#########################################################################
14267ebf7443Swdenk## MPC824x Systems
14277ebf7443Swdenk#########################################################################
1428efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
14293bac3513Swdenk
14300332990bSwdenkA3000_config: unconfig
1431f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
14320332990bSwdenk
14338e6f1a8eSWolfgang Denkbarco_config: unconfig
1434f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
14358e6f1a8eSWolfgang Denk
14367ebf7443SwdenkBMW_config: unconfig
1437f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
14387ebf7443Swdenk
14393bac3513SwdenkCPC45_config	\
14403bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1441f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1442f9328639SMarian Balakowicz	@cd $(obj)include ;				\
14433bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
14443bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1445ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
14463bac3513Swdenk	else \
14473bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1448ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
14493bac3513Swdenk	fi; \
14503bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
14513bac3513Swdenk
14527ebf7443SwdenkCU824_config: unconfig
1453f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
14547ebf7443Swdenk
14557abf0c58Swdenkdebris_config: unconfig
1456f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
14577abf0c58Swdenk
145880885a9dSwdenkeXalion_config: unconfig
1459f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
146080885a9dSwdenk
1461756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1462f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1463756f586aSwdenk
146453dd6ce4SWolfgang Denkkvme080_config: unconfig
1465f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
146653dd6ce4SWolfgang Denk
14677ebf7443SwdenkMOUSSE_config: unconfig
1468f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
14697ebf7443Swdenk
14707ebf7443SwdenkMUSENKI_config: unconfig
1471f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
14727ebf7443Swdenk
1473b4676a25SwdenkMVBLUE_config:	unconfig
1474f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1475b4676a25Swdenk
14767ebf7443SwdenkOXC_config: unconfig
1477f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
14787ebf7443Swdenk
14797ebf7443SwdenkPN62_config: unconfig
1480f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
14817ebf7443Swdenk
14827ebf7443SwdenkSandpoint8240_config: unconfig
1483f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
14847ebf7443Swdenk
14857ebf7443SwdenkSandpoint8245_config: unconfig
1486f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
14877ebf7443Swdenk
1488466b7410Swdenksbc8240_config: unconfig
1489f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1490466b7410Swdenk
1491d1cbe85bSwdenkSL8245_config: unconfig
1492f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1493d1cbe85bSwdenk
14947ebf7443Swdenkutx8245_config: unconfig
1495f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
14967ebf7443Swdenk
14977ebf7443Swdenk#########################################################################
14987ebf7443Swdenk## MPC8260 Systems
14997ebf7443Swdenk#########################################################################
15007ebf7443Swdenk
150154387ac9Swdenkatc_config:	unconfig
1502f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
150354387ac9Swdenk
15047ebf7443Swdenkcogent_mpc8260_config:	unconfig
1505f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
15067ebf7443Swdenk
15077ebf7443SwdenkCPU86_config	\
15087ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1509f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1510f9328639SMarian Balakowicz	@cd $(obj)include ;				\
15117ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
15127ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1513ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
15147ebf7443Swdenk	else \
15157ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1516ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
15177ebf7443Swdenk	fi; \
15187ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
15197ebf7443Swdenk
1520384cc687SwdenkCPU87_config	\
1521384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1522f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1523f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1524384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1525384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1526ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1527384cc687Swdenk	else \
1528384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1529ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1530384cc687Swdenk	fi; \
1531384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1532384cc687Swdenk
1533f901a83bSWolfgang Denkep8248_config	\
1534f901a83bSWolfgang Denkep8248E_config	:	unconfig
1535f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1536f901a83bSWolfgang Denk
15377ebf7443Swdenkep8260_config:	unconfig
1538f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
15397ebf7443Swdenk
15408d4ac794SWolfgang Denkep82xxm_config:	unconfig
154190b1b2d6SGrant Likely	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
15428d4ac794SWolfgang Denk
15437ebf7443Swdenkgw8260_config:	unconfig
1544f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
15457ebf7443Swdenk
15467ebf7443Swdenkhymod_config:	unconfig
1547f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
15487ebf7443Swdenk
15499dd41a7bSwdenkIDS8247_config:	unconfig
1550f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
15519dd41a7bSwdenk
15527ebf7443SwdenkIPHASE4539_config:	unconfig
1553f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
15547ebf7443Swdenk
1555c3c7f861SwdenkISPAN_config		\
1556c3c7f861SwdenkISPAN_REVB_config:	unconfig
1557f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1558c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
1559f9328639SMarian Balakowicz		echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1560c3c7f861Swdenk	fi
1561f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1562c3c7f861Swdenk
1563ac9db066SHeiko Schochermgcoge_config	:	unconfig
1564ac9db066SHeiko Schocher	@$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1565ac9db066SHeiko Schocher
156604a85b3bSwdenkMPC8260ADS_config	\
1567901787d6SwdenkMPC8260ADS_lowboot_config	\
156804a85b3bSwdenkMPC8260ADS_33MHz_config	\
1569901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
157004a85b3bSwdenkMPC8260ADS_40MHz_config	\
1571901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
157204a85b3bSwdenkMPC8272ADS_config	\
1573901787d6SwdenkMPC8272ADS_lowboot_config	\
157404a85b3bSwdenkPQ2FADS_config		\
1575901787d6SwdenkPQ2FADS_lowboot_config		\
157604a85b3bSwdenkPQ2FADS-VR_config	\
1577901787d6SwdenkPQ2FADS-VR_lowboot_config	\
157804a85b3bSwdenkPQ2FADS-ZU_config	\
1579901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
158004a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1581901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
158204a85b3bSwdenk	:		unconfig
1583f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1584f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mpc8260ads
158504a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
1586f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1587f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
158804a85b3bSwdenk	$(if $(findstring MHz,$@), \
1589f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
159004a85b3bSwdenk	$(if $(findstring VR,$@), \
1591f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1592901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1593f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1594ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
1595901787d6Swdenk		}
1596f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
15977ebf7443Swdenk
1598db2f721fSwdenkMPC8266ADS_config:	unconfig
1599f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1600db2f721fSwdenk
1601efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
160210f67017SwdenkPM825_config	\
1603efa329cbSwdenkPM825_ROMBOOT_config	\
1604efa329cbSwdenkPM825_BIGFLASH_config	\
1605efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
16067ebf7443SwdenkPM826_config	\
1607efa329cbSwdenkPM826_ROMBOOT_config	\
1608efa329cbSwdenkPM826_BIGFLASH_config	\
1609efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1610f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1611f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1612efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1613f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
16147ebf7443Swdenk	else \
1615f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1616efa329cbSwdenk	fi
1617efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1618ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1619f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1620f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1621efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1622ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1623f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
16247ebf7443Swdenk		fi; \
1625efa329cbSwdenk	else \
1626ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1627efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1628ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1629f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1630f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1631efa329cbSwdenk		else \
1632f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1633efa329cbSwdenk		fi; \
1634efa329cbSwdenk	fi
1635f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1636efa329cbSwdenk
1637efa329cbSwdenkPM828_config	\
1638efa329cbSwdenkPM828_PCI_config	\
1639efa329cbSwdenkPM828_ROMBOOT_config	\
1640efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1641f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1642f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
164317076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1644f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1645ae6d1056SWolfgang Denk		$(XECHO) "... with PCI enabled" ; \
1646efa329cbSwdenk	else \
1647f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1648efa329cbSwdenk	fi
1649efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1650ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1651f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1652f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1653efa329cbSwdenk	fi
1654f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
16557ebf7443Swdenk
16567ebf7443Swdenkppmc8260_config:	unconfig
1657f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
16587ebf7443Swdenk
16598b0bfc68SwdenkRattler8248_config	\
16608b0bfc68SwdenkRattler_config:		unconfig
1661f9328639SMarian Balakowicz	@mkdir -p $(obj)include
16628b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1663f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1664f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
16658b0bfc68Swdenk
16667ebf7443SwdenkRPXsuper_config:	unconfig
1667f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
16687ebf7443Swdenk
16697ebf7443Swdenkrsdproto_config:	unconfig
1670f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
16717ebf7443Swdenk
16727ebf7443Swdenksacsng_config:	unconfig
1673f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
16747ebf7443Swdenk
16757ebf7443Swdenksbc8260_config:	unconfig
1676f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
16777ebf7443Swdenk
16787ebf7443SwdenkSCM_config:		unconfig
1679f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
16807ebf7443Swdenk
168127b207fdSwdenkTQM8255_AA_config \
168227b207fdSwdenkTQM8260_AA_config \
168327b207fdSwdenkTQM8260_AB_config \
168427b207fdSwdenkTQM8260_AC_config \
168527b207fdSwdenkTQM8260_AD_config \
168627b207fdSwdenkTQM8260_AE_config \
168727b207fdSwdenkTQM8260_AF_config \
168827b207fdSwdenkTQM8260_AG_config \
168927b207fdSwdenkTQM8260_AH_config \
16901f62bc2dSWolfgang DenkTQM8260_AI_config \
169127b207fdSwdenkTQM8265_AA_config:  unconfig
1692f9328639SMarian Balakowicz	@mkdir -p $(obj)include
169327b207fdSwdenk	@case "$@" in \
169427b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
169527b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
169627b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
169727b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
169827b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
169927b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
170027b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
170127b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
170227b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
17031f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
170427b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
170527b207fdSwdenk	esac; \
1706f9328639SMarian Balakowicz	>$(obj)include/config.h ; \
170727b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1708f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
170927b207fdSwdenk	fi; \
1710f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
171127b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
17121aaab9bfSWolfgang Denk	if [ "$${CACHE}" = "yes" ] ; then \
1713f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1714ae6d1056SWolfgang Denk		$(XECHO) "... with L2 Cache support" ; \
17157ebf7443Swdenk	else \
1716f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1717ae6d1056SWolfgang Denk		$(XECHO) "... without L2 Cache support" ; \
171827b207fdSwdenk	fi; \
17191aaab9bfSWolfgang Denk	if [ "$${BMODE}" = "60x" ] ; then \
1720f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1721ae6d1056SWolfgang Denk		$(XECHO) "... with 60x Bus Mode" ; \
172227b207fdSwdenk	else \
1723f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
1724ae6d1056SWolfgang Denk		$(XECHO) "... without 60x Bus Mode" ; \
17257ebf7443Swdenk	fi
1726f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
17277ebf7443Swdenk
1728fa230445SHeiko SchocherTQM8272_config: unconfig
1729fa230445SHeiko Schocher	@$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1730fa230445SHeiko Schocher
1731ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1732ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1733f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1734f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1735f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1736ba91e26aSwdenk
173754387ac9SwdenkZPC1900_config: unconfig
1738f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
17397aa78614Swdenk
17404e5ca3ebSwdenk#########################################################################
17414e5ca3ebSwdenk## Coldfire
17424e5ca3ebSwdenk#########################################################################
17434e5ca3ebSwdenk
17444a442d31STsiChungLiewM5235EVB_config \
17454a442d31STsiChungLiewM5235EVB_Flash16_config \
17464a442d31STsiChungLiewM5235EVB_Flash32_config:	unconfig
17474a442d31STsiChungLiew	@case "$@" in \
17484a442d31STsiChungLiew	M5235EVB_config)		FLASH=16;; \
17494a442d31STsiChungLiew	M5235EVB_Flash16_config)	FLASH=16;; \
17504a442d31STsiChungLiew	M5235EVB_Flash32_config)	FLASH=32;; \
17514a442d31STsiChungLiew	esac; \
1752ae6d1056SWolfgang Denk	>$(obj)include/config.h ; \
17534a442d31STsiChungLiew	if [ "$${FLASH}" != "16" ] ; then \
1754ae6d1056SWolfgang Denk		echo "#define NORFLASH_PS32BIT	1" >> $(obj)include/config.h ; \
17554a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
17564a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
17574a442d31STsiChungLiew	else \
17584a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
17594a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
17604a442d31STsiChungLiew	fi
17614a442d31STsiChungLiew	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
17624a442d31STsiChungLiew
1763a605aacdSTsiChungLiewM5249EVB_config :		unconfig
1764a605aacdSTsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1765a605aacdSTsiChungLiew
1766a1436a84STsiChungLiewM5253EVBE_config :		unconfig
1767a1436a84STsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1768a1436a84STsiChungLiew
17697481266eSWolfgang Denkcobra5272_config :		unconfig
1770f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
17717481266eSWolfgang Denk
17724176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
1773f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1774f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1775f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1776f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1777f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
17784176c799SWolfgang Denk
17794176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
1780f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1781f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1782f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1783f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1784f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
17854176c799SWolfgang Denk
1786daa6e418SBartlomiej Siekaidmr_config :			unconfig
1787daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1788daa6e418SBartlomiej Sieka
17894176c799SWolfgang DenkM5271EVB_config :		unconfig
1790f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
17914176c799SWolfgang Denk
17924e5ca3ebSwdenkM5272C3_config :		unconfig
1793f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
17944e5ca3ebSwdenk
17954e5ca3ebSwdenkM5282EVB_config :		unconfig
1796f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
17974e5ca3ebSwdenk
1798c419d1d6SstroeseTASREG_config :		unconfig
1799f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1800c419d1d6Sstroese
18013a108ed8SZachary P. Landaur5200_config :		unconfig
1802f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
18033a108ed8SZachary P. Landau
18048e585f02STsiChung LiewM5329AFEE_config \
18058e585f02STsiChung LiewM5329BFEE_config :	unconfig
18068e585f02STsiChung Liew	@case "$@" in \
18078e585f02STsiChung Liew	M5329AFEE_config)	NAND=0;; \
18088e585f02STsiChung Liew	M5329BFEE_config)	NAND=16;; \
18098e585f02STsiChung Liew	esac; \
1810ae6d1056SWolfgang Denk	>$(obj)include/config.h ; \
18118e585f02STsiChung Liew	if [ "$${NAND}" != "0" ] ; then \
1812ab77bc54STsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
18138e585f02STsiChung Liew	fi
18148e585f02STsiChung Liew	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
18158e585f02STsiChung Liew
18168ae158cdSTsiChungLiewM54455EVB_config \
18178ae158cdSTsiChungLiewM54455EVB_atmel_config \
18188ae158cdSTsiChungLiewM54455EVB_intel_config \
18198ae158cdSTsiChungLiewM54455EVB_a33_config \
18208ae158cdSTsiChungLiewM54455EVB_a66_config \
18218ae158cdSTsiChungLiewM54455EVB_i33_config \
18228ae158cdSTsiChungLiewM54455EVB_i66_config :	unconfig
18238ae158cdSTsiChungLiew	@case "$@" in \
18248ae158cdSTsiChungLiew	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
18258ae158cdSTsiChungLiew	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
18268ae158cdSTsiChungLiew	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
18278ae158cdSTsiChungLiew	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
18288ae158cdSTsiChungLiew	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
18298ae158cdSTsiChungLiew	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
18308ae158cdSTsiChungLiew	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
18318ae158cdSTsiChungLiew	esac; \
1832ae6d1056SWolfgang Denk	>$(obj)include/config.h ; \
18331aaab9bfSWolfgang Denk	if [ "$${FLASH}" = "INTEL" ] ; then \
18344a442d31STsiChungLiew		echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1835e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1836e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1837ae6d1056SWolfgang Denk		$(XECHO) "... with INTEL boot..." ; \
18388ae158cdSTsiChungLiew	else \
18394a442d31STsiChungLiew		echo "#define CFG_ATMEL_BOOT"	>> $(obj)include/config.h ; \
1840e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1841e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1842ae6d1056SWolfgang Denk		$(XECHO) "... with ATMEL boot..." ; \
18438ae158cdSTsiChungLiew	fi; \
18444a442d31STsiChungLiew	echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1845ae6d1056SWolfgang Denk	$(XECHO) "... with $${FREQ}Hz input clock"
18468ae158cdSTsiChungLiew	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
18478ae158cdSTsiChungLiew
18487ebf7443Swdenk#########################################################################
1849f046ccd1SEran Liberty## MPC83xx Systems
1850f046ccd1SEran Liberty#########################################################################
1851f046ccd1SEran Liberty
18525c5d3242SKim PhillipsMPC8313ERDB_33_config \
18535c5d3242SKim PhillipsMPC8313ERDB_66_config: unconfig
1854cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1855cdd917a4SWolfgang Denk	@echo "" >$(obj)include/config.h ; \
18565c5d3242SKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
1857ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
1858cdd917a4SWolfgang Denk		echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
18595c5d3242SKim Phillips	fi ; \
18605c5d3242SKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
1861ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
1862cdd917a4SWolfgang Denk		echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
18635c5d3242SKim Phillips	fi ;
1864e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
18655c5d3242SKim Phillips
18668bd522ceSDave LiuMPC8315ERDB_config: unconfig
18678bd522ceSDave Liu	@$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
18688bd522ceSDave Liu
18691c274c4eSKim PhillipsMPC8323ERDB_config:	unconfig
18701c274c4eSKim Phillips	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
18711c274c4eSKim Phillips
18724decd84eSKim PhillipsMPC832XEMDS_config \
18734decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
18744decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
1875281df457STony LiMPC832XEMDS_SLAVE_config \
1876281df457STony LiMPC832XEMDS_ATM_config:	unconfig
1877cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1878cdd917a4SWolfgang Denk	@echo "" >$(obj)include/config.h ; \
18794decd84eSKim Phillips	if [ "$(findstring _HOST_,$@)" ] ; then \
1880ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
1881cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
18824decd84eSKim Phillips	fi ; \
18834decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
1884ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
1885cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1886cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
18874decd84eSKim Phillips	fi ; \
18884decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
1889ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
1890cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
1891281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
18924decd84eSKim Phillips	fi ; \
18934decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
1894ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
1895cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
1896281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1897281df457STony Li	fi ; \
1898281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
1899ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
1900281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1901281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM     1" >>$(obj)include/config.h ; \
19024decd84eSKim Phillips	fi ;
1903e58fe957SKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
1904e6f2e902SMarian Balakowicz
1905991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
1906e58fe957SKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
1907991425feSMarian Balakowicz
19087a78f148STimur TabiMPC8349ITX_config \
19097a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
19107a78f148STimur TabiMPC8349ITXGP_config:	unconfig
19117a78f148STimur Tabi	@mkdir -p $(obj)include
1912e21659e3SSam Sparks	@mkdir -p $(obj)board/freescale/mpc8349itx
19137a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
19147a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
1915e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
19167a78f148STimur Tabi	fi
19177a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
1918e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
19197a78f148STimur Tabi	fi
1920e58fe957SKim Phillips	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
19214decd84eSKim Phillips
19225f820439SDave LiuMPC8360EMDS_config \
19235f820439SDave LiuMPC8360EMDS_HOST_33_config \
19245f820439SDave LiuMPC8360EMDS_HOST_66_config \
1925281df457STony LiMPC8360EMDS_SLAVE_config \
1926281df457STony LiMPC8360EMDS_ATM_config: unconfig
1927cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1928cdd917a4SWolfgang Denk	@echo "" >$(obj)include/config.h ; \
19295f820439SDave Liu	if [ "$(findstring _HOST_,$@)" ] ; then \
1930ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
1931cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
19325f820439SDave Liu	fi ; \
19335f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
1934ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
1935cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1936cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
19375f820439SDave Liu	fi ; \
19385f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
1939ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
1940cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
1941281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
19425f820439SDave Liu	fi ; \
19435f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
1944ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
1945cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
1946281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1947281df457STony Li	fi ; \
1948281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
1949ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
1950281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1951281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM     1" >>$(obj)include/config.h ; \
19525f820439SDave Liu	fi ;
1953e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
19545f820439SDave Liu
1955fab6f556SAnton VorontsovMPC8360ERDK_33_config \
1956fab6f556SAnton VorontsovMPC8360ERDK_66_config \
1957fab6f556SAnton VorontsovMPC8360ERDK_config:
1958fab6f556SAnton Vorontsov	@mkdir -p $(obj)include
1959fab6f556SAnton Vorontsov	@echo "" >$(obj)include/config.h ; \
1960fab6f556SAnton Vorontsov	if [ "$(findstring _33_,$@)" ] ; then \
1961ae6d1056SWolfgang Denk		$(XECHO) -n "... CLKIN 33MHz " ; \
1962fab6f556SAnton Vorontsov		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
1963fab6f556SAnton Vorontsov	fi ;
1964fab6f556SAnton Vorontsov	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
1965fab6f556SAnton Vorontsov
196619580e66SDave LiuMPC837XEMDS_config \
196719580e66SDave LiuMPC837XEMDS_HOST_config:	unconfig
196819580e66SDave Liu	@mkdir -p $(obj)include
196919580e66SDave Liu	@echo "" >$(obj)include/config.h ; \
197019580e66SDave Liu	if [ "$(findstring _HOST_,$@)" ] ; then \
1971ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
197219580e66SDave Liu		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
197319580e66SDave Liu	fi ;
197419580e66SDave Liu	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
197519580e66SDave Liu
19765e918a98SKim PhillipsMPC837XERDB_config:	unconfig
19775e918a98SKim Phillips	@$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
19785e918a98SKim Phillips
197991e25769SPaul Gortmakersbc8349_config:		unconfig
198091e25769SPaul Gortmaker	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
198191e25769SPaul Gortmaker
19824decd84eSKim PhillipsTQM834x_config:	unconfig
19834decd84eSKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
19844decd84eSKim Phillips
19852ad6b513STimur Tabi
1986f046ccd1SEran Liberty#########################################################################
198742d1f039Swdenk## MPC85xx Systems
198842d1f039Swdenk#########################################################################
198942d1f039Swdenk
19907bd6104bSrobert lazarskiATUM8548_config:	unconfig
19917bd6104bSrobert lazarski	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
19927bd6104bSrobert lazarski
199342d1f039SwdenkMPC8540ADS_config:	unconfig
1994c2d943ffSKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
199542d1f039Swdenk
1996b0e32949SLunsheng WangMPC8540EVAL_config \
1997b0e32949SLunsheng WangMPC8540EVAL_33_config \
1998b0e32949SLunsheng WangMPC8540EVAL_66_config \
1999b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
2000b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:      unconfig
2001f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2002f9328639SMarian Balakowicz	@echo "" >$(obj)include/config.h ; \
2003b0e32949SLunsheng Wang	if [ "$(findstring _33_,$@)" ] ; then \
2004ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2005b0e32949SLunsheng Wang	else \
2006f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2007ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2008b0e32949SLunsheng Wang	fi ; \
2009b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
2010f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2011ae6d1056SWolfgang Denk		$(XECHO) " slave" ; \
2012b0e32949SLunsheng Wang	else \
2013ae6d1056SWolfgang Denk		$(XECHO) " host" ; \
2014b0e32949SLunsheng Wang	fi
2015f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2016b0e32949SLunsheng Wang
201742d1f039SwdenkMPC8560ADS_config:	unconfig
2018870ceac5SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
201942d1f039Swdenk
20207f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \
202103f5c550SwdenkMPC8541CDS_config:	unconfig
20227f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
20237f3f2bd2SRandy Vinson	@echo "" >$(obj)include/config.h ; \
20247f3f2bd2SRandy Vinson	if [ "$(findstring _legacy_,$@)" ] ; then \
20257f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2026ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
20277f3f2bd2SRandy Vinson	fi
2028415a613bSKumar Gala	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
202903f5c550Swdenk
203081f481caSAndy FlemingMPC8544DS_config:	unconfig
203181f481caSAndy Fleming	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
203281f481caSAndy Fleming
20337f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \
2034d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
20357f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
20367f3f2bd2SRandy Vinson	@echo "" >$(obj)include/config.h ; \
20377f3f2bd2SRandy Vinson	if [ "$(findstring _legacy_,$@)" ] ; then \
20387f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2039ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
20407f3f2bd2SRandy Vinson	fi
2041415a613bSKumar Gala	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2042d9b94f28SJon Loeliger
20437f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \
204403f5c550SwdenkMPC8555CDS_config:	unconfig
20457f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
20467f3f2bd2SRandy Vinson	@echo "" >$(obj)include/config.h ; \
20477f3f2bd2SRandy Vinson	if [ "$(findstring _legacy_,$@)" ] ; then \
20487f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2049ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
20507f3f2bd2SRandy Vinson	fi
2051415a613bSKumar Gala	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
20527abf0c58Swdenk
205367431059SAndy FlemingMPC8568MDS_config:	unconfig
2054acbca876SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
205567431059SAndy Fleming
2056384cc687SwdenkPM854_config:	unconfig
2057f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2058384cc687Swdenk
2059b20d0032SWolfgang DenkPM856_config:	unconfig
2060f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2061b20d0032SWolfgang Denk
2062c15f3120Swdenksbc8540_config \
2063c15f3120Swdenksbc8540_33_config \
2064c15f3120Swdenksbc8540_66_config:	unconfig
2065f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2066c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2067f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2068ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2069c15f3120Swdenk	else \
2070f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
2071ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2072c15f3120Swdenk	fi
2073f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2074c15f3120Swdenk
207511c45ebdSJoe Hammansbc8548_config:		unconfig
207611c45ebdSJoe Hamman	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
207711c45ebdSJoe Hamman
2078466b7410Swdenksbc8560_config \
2079466b7410Swdenksbc8560_33_config \
2080466b7410Swdenksbc8560_66_config:      unconfig
2081f9328639SMarian Balakowicz	@mkdir -p $(obj)include
20828b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2083f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2084ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
20858b07a110Swdenk	else \
2086f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
2087ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
20888b07a110Swdenk	fi
2089f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
20908b07a110Swdenk
209103f5c550Swdenkstxgp3_config:		unconfig
2092f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
209303f5c550Swdenk
2094ee152983SWolfgang Denkstxssa_config		\
2095ee152983SWolfgang Denkstxssa_4M_config:	unconfig
2096ee152983SWolfgang Denk	@mkdir -p $(obj)include
2097ee152983SWolfgang Denk	@if [ "$(findstring _4M_,$@)" ] ; then \
2098ee152983SWolfgang Denk		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2099ae6d1056SWolfgang Denk		$(XECHO) "... with 4 MiB flash memory" ; \
2100ee152983SWolfgang Denk	else \
2101ee152983SWolfgang Denk		>$(obj)include/config.h ; \
2102ee152983SWolfgang Denk	fi
2103ee152983SWolfgang Denk	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
210435171dc0SDan Malek
2105d96f41e0SStefan RoeseTQM8540_config		\
2106d96f41e0SStefan RoeseTQM8541_config		\
2107d96f41e0SStefan RoeseTQM8555_config		\
2108f5c5ef4aSwdenkTQM8560_config:		unconfig
2109f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2110a889bd27SWolfgang Denk	@CTYPE=$(subst TQM,,$(@:_config=)); \
2111f9328639SMarian Balakowicz	>$(obj)include/config.h ; \
2112ae6d1056SWolfgang Denk	$(XECHO) "... TQM"$${CTYPE}; \
2113f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2114f9328639SMarian Balakowicz	echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2115f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2116f9328639SMarian Balakowicz	echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
21178a783a65SGrant Likely	echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
2118f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
2119f5c5ef4aSwdenk
212042d1f039Swdenk#########################################################################
2121debb7354SJon Loeliger## MPC86xx Systems
2122debb7354SJon Loeliger#########################################################################
2123debb7354SJon Loeliger
21243c89d754SJon LoeligerMPC8610HPCD_config:	unconfig
21253c89d754SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
21263c89d754SJon Loeliger
2127debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
21284ce91774SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2129debb7354SJon Loeliger
2130c646bba6SJoe Hammansbc8641d_config:	unconfig
2131c646bba6SJoe Hamman	@./mkconfig $(@:_config=) ppc mpc86xx sbc8641d
2132debb7354SJon Loeliger
2133debb7354SJon Loeliger#########################################################################
21347ebf7443Swdenk## 74xx/7xx Systems
21357ebf7443Swdenk#########################################################################
21367ebf7443Swdenk
2137c7de829cSwdenkAmigaOneG3SE_config:	unconfig
2138f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2139c7de829cSwdenk
214015647dc7SwdenkBAB7xx_config: unconfig
2141f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
214215647dc7Swdenk
2143c419d1d6SstroeseCPCI750_config:	unconfig
2144f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2145c419d1d6Sstroese
21463a473b2aSwdenkDB64360_config:	unconfig
2147f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
21483a473b2aSwdenk
21493a473b2aSwdenkDB64460_config:	unconfig
2150f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
21513a473b2aSwdenk
215215647dc7SwdenkELPPC_config: unconfig
2153f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
215415647dc7Swdenk
21557ebf7443SwdenkEVB64260_config	\
21567ebf7443SwdenkEVB64260_750CX_config:	unconfig
2157f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
21587ebf7443Swdenk
21594c52783bSroy zangmpc7448hpc2_config:  unconfig
2160ee311214Sroy zang	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
21614c52783bSroy zang
216215647dc7SwdenkP3G4_config: unconfig
2163f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
21647ebf7443Swdenk
21651eac2a71SStefan Roesep3m750_config	\
21661eac2a71SStefan Roesep3m7448_config:		unconfig
21671eac2a71SStefan Roese	@mkdir -p $(obj)include
21681eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
21691eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
21701eac2a71SStefan Roese	else \
21711eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
21721eac2a71SStefan Roese	fi
21731eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
21741eac2a71SStefan Roese
21757ebf7443SwdenkPCIPPC2_config \
21767ebf7443SwdenkPCIPPC6_config: unconfig
2177f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
21787ebf7443Swdenk
217915647dc7SwdenkZUMA_config:	unconfig
2180f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
218112f34241Swdenk
2182f5e0d039SHeiko Schocherppmc7xx_config: unconfig
2183f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2184f5e0d039SHeiko Schocher
21857ebf7443Swdenk#========================================================================
21867ebf7443Swdenk# ARM
21877ebf7443Swdenk#========================================================================
21887ebf7443Swdenk#########################################################################
21897ebf7443Swdenk## StrongARM Systems
21907ebf7443Swdenk#########################################################################
21917ebf7443Swdenk
2192ea66bc88Swdenkassabet_config	:	unconfig
2193f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2194ea66bc88Swdenk
21957ebf7443Swdenkdnp1110_config	:	unconfig
2196f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
21977ebf7443Swdenk
2198855a496fSwdenkgcplus_config	:	unconfig
2199f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2200855a496fSwdenk
2201855a496fSwdenklart_config	:	unconfig
2202f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
2203855a496fSwdenk
22047ebf7443Swdenkshannon_config	:	unconfig
2205f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
22067ebf7443Swdenk
22077ebf7443Swdenk#########################################################################
22082e5983d2Swdenk## ARM92xT Systems
22097ebf7443Swdenk#########################################################################
22107ebf7443Swdenk
2211b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
221243d9616cSwdenk
22133ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
221463e73c9aSwdenk
2215a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2216a56bd922Swdenk
2217a85f9f21Swdenkat91rm9200dk_config	:	unconfig
2218f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
2219a85f9f21Swdenk
2220a85f9f21Swdenkcmc_pu2_config	:	unconfig
2221f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2222a85f9f21Swdenk
2223645da510SWolfgang Denkcsb637_config	:	unconfig
2224f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2225645da510SWolfgang Denk
22260e4018d2SWolfgang Denkmp2usb_config	:	unconfig
2227f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
22280e4018d2SWolfgang Denk
222987cb6862SWolfgang Denk
223074f4304eSWolfgang Denk########################################################################
223187cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
223287cb6862SWolfgang Denkintegratorap_config	\
223387cb6862SWolfgang Denkap_config		\
223487cb6862SWolfgang Denkap966_config		\
223587cb6862SWolfgang Denkap922_config		\
223687cb6862SWolfgang Denkap922_XA10_config	\
223787cb6862SWolfgang Denkap7_config		\
223887cb6862SWolfgang Denkap720t_config		\
223987cb6862SWolfgang Denkap920t_config		\
224087cb6862SWolfgang Denkap926ejs_config		\
224187cb6862SWolfgang Denkap946es_config: unconfig
224296782c63SWolfgang Denk	@board/integratorap/split_by_variant.sh $@
22433d3befa7Swdenk
224487cb6862SWolfgang Denkintegratorcp_config	\
224587cb6862SWolfgang Denkcp_config		\
224687cb6862SWolfgang Denkcp920t_config		\
224787cb6862SWolfgang Denkcp926ejs_config		\
224887cb6862SWolfgang Denkcp946es_config		\
224987cb6862SWolfgang Denkcp1136_config		\
225087cb6862SWolfgang Denkcp966_config		\
225187cb6862SWolfgang Denkcp922_config		\
225287cb6862SWolfgang Denkcp922_XA10_config	\
225387cb6862SWolfgang Denkcp1026_config: unconfig
225496782c63SWolfgang Denk	@board/integratorcp/split_by_variant.sh $@
225525d6712aSwdenk
225699b0d285SWolfgang Denkkb9202_config	:	unconfig
2257f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
225899b0d285SWolfgang Denk
2259f832d8a1Swdenklpd7a400_config \
2260f832d8a1Swdenklpd7a404_config:	unconfig
2261f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
22623d3befa7Swdenk
2263281e00a3Swdenkmx1ads_config	:	unconfig
2264f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2265281e00a3Swdenk
2266281e00a3Swdenkmx1fs2_config	:	unconfig
2267f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2268281e00a3Swdenk
2269ac7eb8a3SWolfgang Denknetstar_32_config	\
2270ac7eb8a3SWolfgang Denknetstar_config:		unconfig
2271f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2272ac7eb8a3SWolfgang Denk	@if [ "$(findstring _32_,$@)" ] ; then \
2273ae6d1056SWolfgang Denk		$(XECHO) "... 32MB SDRAM" ; \
2274f9328639SMarian Balakowicz		echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
2275ac7eb8a3SWolfgang Denk	else \
2276ae6d1056SWolfgang Denk		$(XECHO) "... 64MB SDRAM" ; \
2277f9328639SMarian Balakowicz		echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
2278ac7eb8a3SWolfgang Denk	fi
2279f9328639SMarian Balakowicz	@$(MKCONFIG) -a netstar arm arm925t netstar
2280ac7eb8a3SWolfgang Denk
22812e5983d2Swdenkomap1510inn_config :	unconfig
2282f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
22832e5983d2Swdenk
22841eaeb58eSwdenkomap5912osk_config :	unconfig
2285f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
22861eaeb58eSwdenk
2287c74b2108SSergey Kubushyndavinci_dvevm_config :	unconfig
2288c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2289c74b2108SSergey Kubushyn
2290c74b2108SSergey Kubushyndavinci_schmoogie_config :	unconfig
2291c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2292c74b2108SSergey Kubushyn
2293c74b2108SSergey Kubushyndavinci_sonata_config :	unconfig
2294c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2295c74b2108SSergey Kubushyn
229663e73c9aSwdenkomap1610inn_config \
229763e73c9aSwdenkomap1610inn_cs0boot_config \
229863e73c9aSwdenkomap1610inn_cs3boot_config \
22993ff02c27Swdenkomap1610inn_cs_autoboot_config \
230063e73c9aSwdenkomap1610h2_config \
230163e73c9aSwdenkomap1610h2_cs0boot_config \
23023ff02c27Swdenkomap1610h2_cs3boot_config \
23033ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
2304f9328639SMarian Balakowicz	@mkdir -p $(obj)include
230563e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2306cdd917a4SWolfgang Denk		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2307ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
23083ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2309cdd917a4SWolfgang Denk		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2310ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS_AUTO boot"; \
231163e73c9aSwdenk	else \
2312cdd917a4SWolfgang Denk		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2313ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
231463e73c9aSwdenk	fi;
2315f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
23166f21347dSwdenk
2317a56bd922Swdenkomap730p2_config \
2318a56bd922Swdenkomap730p2_cs0boot_config \
2319a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
2320f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2321a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2322f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2323ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
2324a56bd922Swdenk	else \
2325f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2326ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
2327a56bd922Swdenk	fi;
2328f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2329a56bd922Swdenk
233032cb2c70SWolfgang Denksbc2410x_config: unconfig
2331f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
233232cb2c70SWolfgang Denk
2333281e00a3Swdenkscb9328_config	:	unconfig
2334f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2335281e00a3Swdenk
23367ebf7443Swdenksmdk2400_config	:	unconfig
2337f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
23387ebf7443Swdenk
23397ebf7443Swdenksmdk2410_config	:	unconfig
2340f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
23417ebf7443Swdenk
23422d24a3a7SwdenkSX1_config :		unconfig
2343f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t sx1
23442d24a3a7Swdenk
2345b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
234643d9616cSwdenktrab_config \
2347b0639ca3Swdenktrab_bigram_config \
2348b0639ca3Swdenktrab_bigflash_config \
2349f54ebdfaSwdenktrab_old_config:	unconfig
2350f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2351f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
2352f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2353b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
2354f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2355f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
2356ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2357b0639ca3Swdenk		}
2358b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
2359f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2360f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2361ae6d1056SWolfgang Denk		  $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2362f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2363b0639ca3Swdenk		}
2364f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
2365f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2366f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2367ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2368f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
236943d9616cSwdenk		}
2370f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
23717ebf7443Swdenk
23721cb8e980SwdenkVCMA9_config	:	unconfig
2373f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
23741cb8e980Swdenk
237587cb6862SWolfgang Denk#========================================================================
237687cb6862SWolfgang Denk# ARM supplied Versatile development boards
237787cb6862SWolfgang Denk#========================================================================
237887cb6862SWolfgang Denkversatile_config	\
237987cb6862SWolfgang Denkversatileab_config	\
238087cb6862SWolfgang Denkversatilepb_config :	unconfig
238196782c63SWolfgang Denk	@board/versatile/split_by_variant.sh $@
2382074cff0dSwdenk
23833c2b3d45Swdenkvoiceblue_smallflash_config	\
23843c2b3d45Swdenkvoiceblue_config:	unconfig
2385f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2386f9328639SMarian Balakowicz	@mkdir -p $(obj)board/voiceblue
23873c2b3d45Swdenk	@if [ "$(findstring _smallflash_,$@)" ] ; then \
2388ae6d1056SWolfgang Denk		$(XECHO) "... boot from lower flash bank" ; \
2389f9328639SMarian Balakowicz		echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2390f9328639SMarian Balakowicz		echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
23913c2b3d45Swdenk	else \
2392ae6d1056SWolfgang Denk		$(XECHO) "... boot from upper flash bank" ; \
2393f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
2394f9328639SMarian Balakowicz		echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
23953c2b3d45Swdenk	fi
2396f9328639SMarian Balakowicz	@$(MKCONFIG) -a voiceblue arm arm925t voiceblue
23973c2b3d45Swdenk
239816b013e7Swdenkcm4008_config	:	unconfig
2399f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
240016b013e7Swdenk
240116b013e7Swdenkcm41xx_config	:	unconfig
2402f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
240316b013e7Swdenk
24040c32d96dSWolfgang Denkgth2_config		:	unconfig
2405f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2406f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2407f9328639SMarian Balakowicz	@echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2408f9328639SMarian Balakowicz	@$(MKCONFIG) -a gth2 mips mips gth2
24090c32d96dSWolfgang Denk
2410074cff0dSwdenk#########################################################################
2411074cff0dSwdenk## S3C44B0 Systems
2412074cff0dSwdenk#########################################################################
2413074cff0dSwdenk
2414074cff0dSwdenkB2_config	:	unconfig
2415f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2416074cff0dSwdenk
24177ebf7443Swdenk#########################################################################
24187ebf7443Swdenk## ARM720T Systems
24197ebf7443Swdenk#########################################################################
24207ebf7443Swdenk
2421c570b2fdSWolfgang Denkarmadillo_config:	unconfig
2422f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2423c570b2fdSWolfgang Denk
24247ebf7443Swdenkep7312_config	:	unconfig
2425f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
24267ebf7443Swdenk
24272d24a3a7Swdenkimpa7_config	:	unconfig
2428f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
24292d24a3a7Swdenk
24302d1a537dSwdenkmodnet50_config :	unconfig
2431f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
24322d1a537dSwdenk
243339539887Swdenkevb4510_config :	unconfig
2434f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
243539539887Swdenk
24366bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
2437b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2438b0d8f5bfSPeter Pearse
2439b0d8f5bfSPeter PearseSMN42_config	:	unconfig
2440b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
24416bd2447eSGary Jennejohn
24427ebf7443Swdenk#########################################################################
244343d9616cSwdenk## XScale Systems
24447ebf7443Swdenk#########################################################################
24457ebf7443Swdenk
244620787e23Swdenkadsvix_config	:	unconfig
2447f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa adsvix
244820787e23Swdenk
2449fabd46acSwdenkcerf250_config :	unconfig
2450f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
2451fabd46acSwdenk
24527ebf7443Swdenkcradle_config	:	unconfig
2453f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
24547ebf7443Swdenk
24557ebf7443Swdenkcsb226_config	:	unconfig
2456f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
24577ebf7443Swdenk
24580be248faSWolfgang Denkdelta_config :
2459f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
24600be248faSWolfgang Denk
246143d9616cSwdenkinnokom_config	:	unconfig
2462f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
246343d9616cSwdenk
24642d5b561eSwdenkixdp425_config	:	unconfig
2465f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
24662d5b561eSwdenk
2467ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
2468f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2469ba94a1bbSWolfgang Denk
247043d9616cSwdenklubbock_config	:	unconfig
2471f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
247243d9616cSwdenk
24735720df78SHeiko Schocherpleb2_config	:	unconfig
2474f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
24755720df78SHeiko Schocher
247652f52c14Swdenklogodl_config	:	unconfig
2477f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
247852f52c14Swdenk
24799d8d5a5bSStefan Roesepdnb3_config \
24809d8d5a5bSStefan Roesescpu_config:    unconfig
2481cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
24829d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
2483cdd917a4SWolfgang Denk		echo "#define CONFIG_SCPU"      >>$(obj)include/config.h ; \
2484ae6d1056SWolfgang Denk		$(XECHO) "... on SCPU board variant" ; \
24859d8d5a5bSStefan Roese	else \
2486cdd917a4SWolfgang Denk		>$(obj)include/config.h ; \
24879d8d5a5bSStefan Roese	fi
24889d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2489ba94a1bbSWolfgang Denk
2490f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
2491f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2492f57f70aaSWolfgang Denk
24935e5803e1Sstefano babictrizepsiv_config	:	unconfig
24945e5803e1Sstefano babic	@$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
24955e5803e1Sstefano babic
24963e38691eSwdenkwepep250_config	:	unconfig
2497f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
24983e38691eSwdenk
24994ec3a7f0Swdenkxaeniax_config	:	unconfig
2500f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
25014ec3a7f0Swdenk
2502efa329cbSwdenkxm250_config	:	unconfig
2503f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
2504efa329cbSwdenk
2505ca0e7748Swdenkxsengine_config :	unconfig
2506f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
2507ca0e7748Swdenk
2508e0269579SMarkus Klotzbücherzylonite_config :
2509f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
2510e0269579SMarkus Klotzbücher
25118ed96046Swdenk#########################################################################
25128ed96046Swdenk## ARM1136 Systems
25138ed96046Swdenk#########################################################################
25148ed96046Swdenkomap2420h4_config	: unconfig
2515f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
25165ca9881aSPeter Pearse
25175ca9881aSPeter Pearseapollon_config		: unconfig
25185ca9881aSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon
25198ed96046Swdenk
25202262cfeeSwdenk#========================================================================
25212262cfeeSwdenk# i386
25222262cfeeSwdenk#========================================================================
25232262cfeeSwdenk#########################################################################
25242262cfeeSwdenk## AMD SC520 CDP
25252262cfeeSwdenk#########################################################################
25262262cfeeSwdenksc520_cdp_config	:	unconfig
2527f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
25282262cfeeSwdenk
25297a8e9bedSwdenksc520_spunk_config	:	unconfig
2530f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
25317a8e9bedSwdenk
25327a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
2533f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
25347a8e9bedSwdenk
253543d9616cSwdenk#========================================================================
253643d9616cSwdenk# MIPS
253743d9616cSwdenk#========================================================================
25387ebf7443Swdenk#########################################################################
253943d9616cSwdenk## MIPS32 4Kc
254043d9616cSwdenk#########################################################################
254143d9616cSwdenk
2542e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2543e0ac62d7Swdenk
2544e0ac62d7Swdenkincaip_100MHz_config	\
2545e0ac62d7Swdenkincaip_133MHz_config	\
2546e0ac62d7Swdenkincaip_150MHz_config	\
254743d9616cSwdenkincaip_config: unconfig
2548f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2549f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2550e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
2551f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2552ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
2553e0ac62d7Swdenk		}
2554e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
2555f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2556ae6d1056SWolfgang Denk		  $(XECHO) "... with 133MHz system clock" ; \
2557e0ac62d7Swdenk		}
2558e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
2559f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2560ae6d1056SWolfgang Denk		  $(XECHO) "... with 150MHz system clock" ; \
2561e0ac62d7Swdenk		}
2562f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2563e0ac62d7Swdenk
2564f4863a7aSwdenktb0229_config: unconfig
2565f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
2566f4863a7aSwdenk
2567e0ac62d7Swdenk#########################################################################
256869459791Swdenk## MIPS32 AU1X00
256969459791Swdenk#########################################################################
257069459791Swdenkdbau1000_config		:	unconfig
2571f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2572f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2573f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2574f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
257569459791Swdenk
257669459791Swdenkdbau1100_config		:	unconfig
2577f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2578f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2579f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2580f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
258169459791Swdenk
258269459791Swdenkdbau1500_config		:	unconfig
2583f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2584f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2585f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2586f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
258769459791Swdenk
2588ff36fd85Swdenkdbau1550_config		:	unconfig
2589f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2590f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2591f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2592f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2593ff36fd85Swdenk
2594ff36fd85Swdenkdbau1550_el_config	:	unconfig
2595f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2596f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2597f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2598f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2599ff36fd85Swdenk
2600265817c7SWolfgang Denkpb1000_config		:	unconfig
2601f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2602f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2603f9328639SMarian Balakowicz	@echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2604f9328639SMarian Balakowicz	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
2605265817c7SWolfgang Denk
260669459791Swdenk#########################################################################
2607e0ac62d7Swdenk## MIPS64 5Kc
2608e0ac62d7Swdenk#########################################################################
260943d9616cSwdenk
26103e38691eSwdenkpurple_config :		unconfig
2611f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
261243d9616cSwdenk
26134a551709Swdenk#========================================================================
26144a551709Swdenk# Nios
26154a551709Swdenk#========================================================================
26164a551709Swdenk#########################################################################
26174a551709Swdenk## Nios32
26184a551709Swdenk#########################################################################
26194a551709Swdenk
2620c935d3bdSwdenkDK1C20_safe_32_config		\
2621c935d3bdSwdenkDK1C20_standard_32_config	\
26224a551709SwdenkDK1C20_config:	unconfig
2623f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2624f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2625c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2626f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2627ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
2628c935d3bdSwdenk		}
2629c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2630f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2631ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
2632c935d3bdSwdenk		}
2633c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
2634f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2635ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2636c935d3bdSwdenk		}
2637f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2638c935d3bdSwdenk
2639c935d3bdSwdenkDK1S10_safe_32_config		\
2640c935d3bdSwdenkDK1S10_standard_32_config	\
2641ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
2642c935d3bdSwdenkDK1S10_config:	unconfig
2643f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2644f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2645c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2646f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2647ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
2648c935d3bdSwdenk		}
2649c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2650f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2651ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
2652c935d3bdSwdenk		}
2653ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2654f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2655ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2656ec4c544bSwdenk		}
2657c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
2658f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2659ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2660c935d3bdSwdenk		}
2661f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
26624a551709Swdenk
2663aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
2664aaf224abSwdenkADNPESC1_base_32_config		\
2665aaf224abSwdenkADNPESC1_config: unconfig
2666f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2667f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2668aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
2669f9328639SMarian Balakowicz		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2670ae6d1056SWolfgang Denk		  $(XECHO) "... DNP/EVA2 configuration" ; \
2671aaf224abSwdenk		}
2672aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
2673f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2674ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration" ; \
2675aaf224abSwdenk		}
2676aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2677f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2678ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2679aaf224abSwdenk		}
2680f9328639SMarian Balakowicz	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2681aaf224abSwdenk
26825c952cf0Swdenk#########################################################################
26835c952cf0Swdenk## Nios-II
26845c952cf0Swdenk#########################################################################
26855c952cf0Swdenk
26869cc83378SScott McNuttEP1C20_config : unconfig
2687f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
26889cc83378SScott McNutt
26899cc83378SScott McNuttEP1S10_config : unconfig
2690f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
26919cc83378SScott McNutt
26929cc83378SScott McNuttEP1S40_config : unconfig
2693f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
26949cc83378SScott McNutt
26955c952cf0SwdenkPK1C20_config : unconfig
2696f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
26975c952cf0Swdenk
26985c952cf0SwdenkPCI5441_config : unconfig
2699f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
27004a551709Swdenk
2701507bbe3eSwdenk#========================================================================
2702507bbe3eSwdenk# MicroBlaze
2703507bbe3eSwdenk#========================================================================
2704507bbe3eSwdenk#########################################################################
2705507bbe3eSwdenk## Microblaze
2706507bbe3eSwdenk#########################################################################
2707507bbe3eSwdenksuzaku_config:	unconfig
2708f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2709f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2710f9328639SMarian Balakowicz	@echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2711f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2712507bbe3eSwdenk
2713cfc67116SMichal Simekml401_config:	unconfig
2714cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2715cdd917a4SWolfgang Denk	@ >$(obj)include/config.h
2716cdd917a4SWolfgang Denk	@echo "#define CONFIG_ML401 1" >> $(obj)include/config.h
271790b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2718cfc67116SMichal Simek
271917980495SMichal Simekxupv2p_config:	unconfig
2720cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2721cdd917a4SWolfgang Denk	@ >$(obj)include/config.h
2722cdd917a4SWolfgang Denk	@echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h
272390b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
272417980495SMichal Simek
27253e38691eSwdenk#########################################################################
27260afe519aSWolfgang Denk## Blackfin
27270afe519aSWolfgang Denk#########################################################################
2728ef26a08fSAubrey.Libf533-ezkit_config:	unconfig
2729ef26a08fSAubrey.Li	@$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
27300afe519aSWolfgang Denk
2731ef26a08fSAubrey.Libf533-stamp_config:	unconfig
2732ef26a08fSAubrey.Li	@$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
27330afe519aSWolfgang Denk
273426bf7decSAubrey Libf537-stamp_config:	unconfig
273526bf7decSAubrey Li	@$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
273626bf7decSAubrey Li
273765458987SAubrey Libf561-ezkit_config:	unconfig
273865458987SAubrey Li	@$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
27390afe519aSWolfgang Denk
27405e3b0bc1SHaavard Skinnemoen#========================================================================
27415e3b0bc1SHaavard Skinnemoen# AVR32
27425e3b0bc1SHaavard Skinnemoen#========================================================================
27435e3b0bc1SHaavard Skinnemoen#########################################################################
27445e3b0bc1SHaavard Skinnemoen## AT32AP7xxx
27455e3b0bc1SHaavard Skinnemoen#########################################################################
27465e3b0bc1SHaavard Skinnemoen
27475e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
274836f28f8aSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
27495e3b0bc1SHaavard Skinnemoen
2750667568dbSHaavard Skinnemoenatstk1003_config	:	unconfig
2751667568dbSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2752667568dbSHaavard Skinnemoen
275364ff2357SHaavard Skinnemoenatstk1004_config	:	unconfig
275464ff2357SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
27550afe519aSWolfgang Denk
27560afe519aSWolfgang Denk#########################################################################
27570afe519aSWolfgang Denk#########################################################################
27583e38691eSwdenk#########################################################################
27597ebf7443Swdenk
276069df3c4dSNobuhiro Iwamatsu#########################################################################
2761b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH)
2762b2b5e2bbSYoshihiro Shimoda#########################################################################
2763b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig
2764b2b5e2bbSYoshihiro Shimoda	@ >include/config.h
2765b2b5e2bbSYoshihiro Shimoda	@echo "#define CONFIG_MS7720SE 1" >> include/config.h
2766b2b5e2bbSYoshihiro Shimoda	@./mkconfig -a $(@:_config=) sh sh3 ms7720se
2767b2b5e2bbSYoshihiro Shimoda
2768b2b5e2bbSYoshihiro Shimoda#########################################################################
276969df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH)
277069df3c4dSNobuhiro Iwamatsu#########################################################################
277169df3c4dSNobuhiro Iwamatsums7750se_config: unconfig
2772ae6d1056SWolfgang Denk	@ >$(obj)include/config.h
2773ae6d1056SWolfgang Denk	@echo "#define CONFIG_MS7750SE 1" >> $(obj)include/config.h
277469df3c4dSNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh4 ms7750se
277569df3c4dSNobuhiro Iwamatsu
2776d91ea45dSNobuhiro Iwamatsums7722se_config :       unconfig
2777ae6d1056SWolfgang Denk	@ >$(obj)include/config.h
2778ae6d1056SWolfgang Denk	@echo "#define CONFIG_MS7722SE 1" >> $(obj)include/config.h
2779d91ea45dSNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh4 ms7722se
27807a8e9bedSwdenk
27817a8e9bedSwdenk#########################################################################
27827ebf7443Swdenk#########################################################################
27837ebf7443Swdenk#########################################################################
27847ebf7443Swdenk
2785228f29acSwdenkclean:
2786ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \
27877f70e853Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
27887ebf7443Swdenk		-o -name '*.o'  -o -name '*.a'  \) -print \
27897ebf7443Swdenk		| xargs rm -f
2790ae6d1056SWolfgang Denk	@rm -f $(obj)examples/hello_world $(obj)examples/timer \
2791f9328639SMarian Balakowicz	      $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2792f9328639SMarian Balakowicz	      $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2793d214fbbdSWolfgang Denk	      $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2794f9328639SMarian Balakowicz	      $(obj)examples/test_burst
2795ae6d1056SWolfgang Denk	@rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2796566a494fSHeiko Schocher		$(obj)tools/gen_eth_addr $(obj)tools/ubsha1
2797ae6d1056SWolfgang Denk	@rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2798ae6d1056SWolfgang Denk	@rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2799ae6d1056SWolfgang Denk	@rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2800ae6d1056SWolfgang Denk	@rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2801ae6d1056SWolfgang Denk	@rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2802ae6d1056SWolfgang Denk	@rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2803ae6d1056SWolfgang Denk	@rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2804ae6d1056SWolfgang Denk	@rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2805ae6d1056SWolfgang Denk	@rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2806ae6d1056SWolfgang Denk	@rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
2807ae6d1056SWolfgang Denk	@rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2808ae6d1056SWolfgang Denk	@rm -f $(obj)include/bmp_logo.h
2809ae6d1056SWolfgang Denk	@rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2810ae6d1056SWolfgang Denk	@rm -f $(obj)api_examples/demo $(VERSION_FILE)
28117ebf7443Swdenk
28127ebf7443Swdenkclobber:	clean
2813ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \( -name .depend \
28144c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
28154c0d4c3bSwdenk		-print0 \
28164c0d4c3bSwdenk		| xargs -0 rm -f
2817ae6d1056SWolfgang Denk	@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS
2818ae6d1056SWolfgang Denk	@rm -fr $(obj)*.*~
2819ae6d1056SWolfgang Denk	@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2820ae6d1056SWolfgang Denk	@rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
2821ae6d1056SWolfgang Denk	@rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2822ae6d1056SWolfgang Denk	@rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2823ae6d1056SWolfgang Denk	@[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2824ae6d1056SWolfgang Denk	@[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f
28257ebf7443Swdenk
2826f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
28277ebf7443Swdenkmrproper \
28287ebf7443Swdenkdistclean:	clobber unconfig
2829f9328639SMarian Balakowiczelse
2830f9328639SMarian Balakowiczmrproper \
2831f9328639SMarian Balakowiczdistclean:	clobber unconfig
2832ae6d1056SWolfgang Denk	rm -rf $(obj)*
2833f9328639SMarian Balakowiczendif
28347ebf7443Swdenk
28357ebf7443Swdenkbackup:
28367ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
28377ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
28387ebf7443Swdenk
28397ebf7443Swdenk#########################################################################
2840