xref: /openbmc/u-boot/Makefile (revision efc6f447c1b940d1650c4b854c5598a595ddc3da)
17ebf7443Swdenk#
263640019SWolfgang Denk# (C) Copyright 2000-2007
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#########################################################################
49f9328639SMarian Balakowicz#
50f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external
51f9328639SMarian Balakowicz# directory. Two use cases are supported:
52f9328639SMarian Balakowicz#
53f9328639SMarian Balakowicz# 1) Add O= to the make command line
54f9328639SMarian Balakowicz# 'make O=/tmp/build all'
55f9328639SMarian Balakowicz#
56f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location
57f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
58f9328639SMarian Balakowicz# 'make'
59f9328639SMarian Balakowicz#
60f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script
61f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
62f9328639SMarian Balakowicz# './MAKEALL'
63f9328639SMarian Balakowicz#
64f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable.
65f9328639SMarian Balakowicz#
66f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and
67f9328639SMarian Balakowicz# the object files are placed in the source directory.
68f9328639SMarian Balakowicz#
697ebf7443Swdenk
70f9328639SMarian Balakowiczifdef O
71f9328639SMarian Balakowiczifeq ("$(origin O)", "command line")
72f9328639SMarian BalakowiczBUILD_DIR := $(O)
73f9328639SMarian Balakowiczendif
74f9328639SMarian Balakowiczendif
757ebf7443Swdenk
76f9328639SMarian Balakowiczifneq ($(BUILD_DIR),)
77f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR)
784f0645ebSMarian Balakowicz
794f0645ebSMarian Balakowicz# Attempt to create a output directory.
804f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
814f0645ebSMarian Balakowicz
824f0645ebSMarian Balakowicz# Verify if it was successful.
83f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
84f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
85f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),)
86f9328639SMarian Balakowicz
87f9328639SMarian BalakowiczOBJTREE		:= $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
88f9328639SMarian BalakowiczSRCTREE		:= $(CURDIR)
89f9328639SMarian BalakowiczTOPDIR		:= $(SRCTREE)
90f9328639SMarian BalakowiczLNDIR		:= $(OBJTREE)
91f9328639SMarian Balakowiczexport	TOPDIR SRCTREE OBJTREE
92f9328639SMarian Balakowicz
93f9328639SMarian BalakowiczMKCONFIG	:= $(SRCTREE)/mkconfig
94f9328639SMarian Balakowiczexport MKCONFIG
95f9328639SMarian Balakowicz
96f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
97f9328639SMarian BalakowiczREMOTE_BUILD	:= 1
98f9328639SMarian Balakowiczexport REMOTE_BUILD
99f9328639SMarian Balakowiczendif
100f9328639SMarian Balakowicz
101f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile
102f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for
103f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc.
104f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
105f9328639SMarian Balakowiczobj := $(OBJTREE)/
106f9328639SMarian Balakowiczsrc := $(SRCTREE)/
107f9328639SMarian Balakowiczelse
108f9328639SMarian Balakowiczobj :=
109f9328639SMarian Balakowiczsrc :=
110f9328639SMarian Balakowiczendif
111f9328639SMarian Balakowiczexport obj src
112f9328639SMarian Balakowicz
113f9328639SMarian Balakowicz#########################################################################
114f9328639SMarian Balakowicz
115f9328639SMarian Balakowiczifeq ($(OBJTREE)/include/config.mk,$(wildcard $(OBJTREE)/include/config.mk))
116f9328639SMarian Balakowicz
1177ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
118f9328639SMarian Balakowiczinclude $(OBJTREE)/include/config.mk
1191d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
120f9328639SMarian Balakowicz
1217ebf7443Swdenkifndef CROSS_COMPILE
122a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH))
1237ebf7443SwdenkCROSS_COMPILE =
1247ebf7443Swdenkelse
1257ebf7443Swdenkifeq ($(ARCH),ppc)
12616c8d5e7SWolfgang DenkCROSS_COMPILE = ppc_8xx-
1277ebf7443Swdenkendif
1287ebf7443Swdenkifeq ($(ARCH),arm)
129dc7c9a1aSwdenkCROSS_COMPILE = arm-linux-
1307ebf7443Swdenkendif
1312262cfeeSwdenkifeq ($(ARCH),i386)
1327a8e9bedSwdenkCROSS_COMPILE = i386-linux-
1337a8e9bedSwdenkendif
13443d9616cSwdenkifeq ($(ARCH),mips)
13543d9616cSwdenkCROSS_COMPILE = mips_4KC-
13643d9616cSwdenkendif
1374a551709Swdenkifeq ($(ARCH),nios)
1384a551709SwdenkCROSS_COMPILE = nios-elf-
1394a551709Swdenkendif
1405c952cf0Swdenkifeq ($(ARCH),nios2)
1415c952cf0SwdenkCROSS_COMPILE = nios2-elf-
1425c952cf0Swdenkendif
1434e5ca3ebSwdenkifeq ($(ARCH),m68k)
1444e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
1454e5ca3ebSwdenkendif
146507bbe3eSwdenkifeq ($(ARCH),microblaze)
147507bbe3eSwdenkCROSS_COMPILE = mb-
148507bbe3eSwdenkendif
1490afe519aSWolfgang Denkifeq ($(ARCH),blackfin)
150ef26a08fSAubrey.LiCROSS_COMPILE = bfin-uclinux-
1510afe519aSWolfgang Denkendif
1527b64fef3SWolfgang Denkifeq ($(ARCH),avr32)
1535374b36dSHaavard SkinnemoenCROSS_COMPILE = avr32-linux-
1547b64fef3SWolfgang Denkendif
1550b135cfcSNobuhiro Iwamatsuifeq ($(ARCH),sh)
1560b135cfcSNobuhiro IwamatsuCROSS_COMPILE = sh4-linux-
1570b135cfcSNobuhiro Iwamatsuendif
1587ebf7443Swdenkendif
1597ebf7443Swdenkendif
1607ebf7443Swdenk
1617ebf7443Swdenkexport	CROSS_COMPILE
1627ebf7443Swdenk
16392b197f0SWolfgang Denk# load other configuration
16492b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk
16592b197f0SWolfgang Denk
1667ebf7443Swdenk#########################################################################
1677ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
1687ebf7443Swdenk
1697ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
1702262cfeeSwdenkifeq ($(CPU),i386)
1712262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
1722262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o
1732262cfeeSwdenkendif
1747ebf7443Swdenkifeq ($(CPU),ppc4xx)
1757ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
1767ebf7443Swdenkendif
17742d1f039Swdenkifeq ($(CPU),mpc85xx)
17842d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
17942d1f039Swdenkendif
1800afe519aSWolfgang Denkifeq ($(CPU),bf533)
1810afe519aSWolfgang DenkOBJS += cpu/$(CPU)/start1.o	cpu/$(CPU)/interrupt.o	cpu/$(CPU)/cache.o
182ef26a08fSAubrey.LiOBJS += cpu/$(CPU)/flush.o	cpu/$(CPU)/init_sdram.o
1830afe519aSWolfgang Denkendif
18426bf7decSAubrey Liifeq ($(CPU),bf537)
18526bf7decSAubrey LiOBJS += cpu/$(CPU)/start1.o	cpu/$(CPU)/interrupt.o	cpu/$(CPU)/cache.o
18626bf7decSAubrey LiOBJS += cpu/$(CPU)/flush.o	cpu/$(CPU)/init_sdram.o
18726bf7decSAubrey Liendif
18865458987SAubrey Liifeq ($(CPU),bf561)
18965458987SAubrey LiOBJS += cpu/$(CPU)/start1.o	cpu/$(CPU)/interrupt.o	cpu/$(CPU)/cache.o
19065458987SAubrey LiOBJS += cpu/$(CPU)/flush.o 	cpu/$(CPU)/init_sdram.o
1917ebf7443Swdenkendif
1927ebf7443Swdenk
193f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS))
194f9328639SMarian Balakowicz
1959fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
1967608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
1977608d75fSKim Phillips	"board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
1989fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a
1997ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
2001d9f4105Swdenkifdef SOC
2011d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
2021d9f4105Swdenkendif
203323bfa8fSStefan Roeseifeq ($(CPU),ixp)
204323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a
205323bfa8fSStefan Roeseendif
2067ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
207518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
208c419d1d6Sstroese	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
2097ebf7443SwdenkLIBS += net/libnet.a
2107ebf7443SwdenkLIBS += disk/libdisk.a
2110f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a
21233daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a
213f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a
214080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a
21516b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a
216318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a
21759829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a
21859829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a
21959829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a
22059829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a
2218e585f02STsiChung LiewLIBS += drivers/net/libnet.a
2222439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a
22393a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a
22473646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a
2257737d5c6SDave Liuifeq ($(CPU),mpc83xx)
2267737d5c6SDave LiuLIBS += drivers/qe/qe.a
2277737d5c6SDave Liuendif
228da9d4610SAndy Flemingifeq ($(CPU),mpc85xx)
229da9d4610SAndy FlemingLIBS += drivers/qe/qe.a
230da9d4610SAndy Flemingendif
23159829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a
2328e585f02STsiChung LiewLIBS += drivers/serial/libserial.a
23359829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a
23459829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a
235ad5bb451SWolfgang DenkLIBS += post/libpost.a post/drivers/libpostdrivers.a
236ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
237ad5bb451SWolfgang Denk	"post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
238b4489621SSergei PoselenovLIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
239b4489621SSergei Poselenov	"post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
240ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
241ad5bb451SWolfgang Denk	"post/cpu/$(CPU)/libpost$(CPU).a"; fi)
242ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
243ad5bb451SWolfgang Denk	"post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
2447ebf7443SwdenkLIBS += common/libcommon.a
2457651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a
246500856ebSRafal Jaworowskiifeq ($(CONFIG_API),y)
247500856ebSRafal JaworowskiLIBS += api/libapi.a
248500856ebSRafal Jaworowskiendif
249f9328639SMarian Balakowicz
250f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS))
2519fd5e31fSwdenk.PHONY : $(LIBS)
252a8c7c708Swdenk
2534f7cb08eSwdenk# Add GCC lib
2541a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
2553d3befa7Swdenk
256a8c7c708Swdenk# The "tools" are needed early, so put this first
257a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
258a8c7c708SwdenkSUBDIRS	= tools \
259ad5bb451SWolfgang Denk	  examples
260ad5bb451SWolfgang Denk
261500856ebSRafal Jaworowskiifeq ($(CONFIG_API),y)
262500856ebSRafal JaworowskiSUBDIRS += api_examples
263500856ebSRafal Jaworowskiendif
264500856ebSRafal Jaworowski
265b028f715Swdenk.PHONY : $(SUBDIRS)
266a8c7c708Swdenk
267887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y)
268887e2ec9SStefan RoeseNAND_SPL = nand_spl
269887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin
270887e2ec9SStefan Roeseendif
271887e2ec9SStefan Roese
272f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS))
273f9328639SMarian Balakowicz__LIBS := $(subst $(obj),,$(LIBS))
274f9328639SMarian Balakowicz
2757ebf7443Swdenk#########################################################################
276bdccc4feSwdenk#########################################################################
2777ebf7443Swdenk
278566a494fSHeiko SchocherALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
2797ebf7443Swdenk
280bdccc4feSwdenkall:		$(ALL)
2817ebf7443Swdenk
282f9328639SMarian Balakowicz$(obj)u-boot.hex:	$(obj)u-boot
2836310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
2846310eb9dSwdenk
285f9328639SMarian Balakowicz$(obj)u-boot.srec:	$(obj)u-boot
2867ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
2877ebf7443Swdenk
288f9328639SMarian Balakowicz$(obj)u-boot.bin:	$(obj)u-boot
2897ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
2907ebf7443Swdenk
291f9328639SMarian Balakowicz$(obj)u-boot.img:	$(obj)u-boot.bin
292bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
293bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
294881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
295bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
296bdccc4feSwdenk		-d $< $@
297bdccc4feSwdenk
298566a494fSHeiko Schocher$(obj)u-boot.sha1:	$(obj)u-boot.bin
29901159530SHeiko Schocher		$(obj)tools/ubsha1 $(obj)u-boot.bin
300566a494fSHeiko Schocher
301f9328639SMarian Balakowicz$(obj)u-boot.dis:	$(obj)u-boot
3027ebf7443Swdenk		$(OBJDUMP) -d $< > $@
3037ebf7443Swdenk
304f9328639SMarian Balakowicz$(obj)u-boot:		depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
3058bde7f77Swdenk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
306f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
307f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
308b2184c31Swdenk			-Map u-boot.map -o u-boot
3097ebf7443Swdenk
310f9328639SMarian Balakowicz$(OBJS):
311f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
312f9328639SMarian Balakowicz
313a8c7c708Swdenk$(LIBS):
314f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
315a8c7c708Swdenk
316a8c7c708Swdenk$(SUBDIRS):
317b028f715Swdenk		$(MAKE) -C $@ all
3187ebf7443Swdenk
319887e2ec9SStefan Roese$(NAND_SPL):	version
3208318fbf8SMarian Balakowicz		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
321887e2ec9SStefan Roese
322887e2ec9SStefan Roese$(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin
3238318fbf8SMarian Balakowicz		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
324887e2ec9SStefan Roese
325881a87ecSWolfgang Denkversion:
326881a87ecSWolfgang Denk		@echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
327881a87ecSWolfgang Denk		echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
328881a87ecSWolfgang Denk		echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
329881a87ecSWolfgang Denk			 $(TOPDIR)) >> $(VERSION_FILE); \
330881a87ecSWolfgang Denk		echo "\"" >> $(VERSION_FILE)
331881a87ecSWolfgang Denk
3328f713fdfSdzugdbtools:
333f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
334f9328639SMarian Balakowicz
335f9328639SMarian Balakowiczupdater:
336f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
337f9328639SMarian Balakowicz
338f9328639SMarian Balakowiczenv:
33964b3727bSMarkus Klotzbücher		$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
3408f713fdfSdzu
341f8d3ca7bSWolfgang Denkdepend dep:	version
342f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
3437ebf7443Swdenk
344a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include
345a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR)
346a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU)
347a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH)
348a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs
349a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat
350a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos
351a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2
352a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net
353a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk
354a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common
355a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator
356a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block
357a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon
358a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c
359a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input
360a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc
361a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd
362a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand
363a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy
364a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand
365a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net
366a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin
367a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci
368a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia
369a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe
370a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc
371a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial
372a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb
373a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video
374a340c325SJean-Christophe PLAGNIOL-VILLARD
375f9328639SMarian Balakowicztags ctags:
376a340c325SJean-Christophe PLAGNIOL-VILLARD		ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
37788fed9a1SWolfgang Denk						-name '*.[ch]' -print`
3787ebf7443Swdenk
3797ebf7443Swdenketags:
380a340c325SJean-Christophe PLAGNIOL-VILLARD		etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
38188fed9a1SWolfgang Denk						-name '*.[ch]' -print`
3827ebf7443Swdenk
383f9328639SMarian Balakowicz$(obj)System.map:	$(obj)u-boot
3847ebf7443Swdenk		@$(NM) $< | \
3857ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
386f9328639SMarian Balakowicz		sort > $(obj)System.map
3877ebf7443Swdenk
3882f155f6cSGrant Likely#
3892f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles)
3902f155f6cSGrant Likely#
3912f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
3922f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when
3932f155f6cSGrant Likely# to regenerate the autoconf.mk file.
3942f155f6cSGrant Likely$(OBJTREE)/include/autoconf.mk: $(obj)include/config.h
3952f155f6cSGrant Likely	@echo Generating include/autoconf.mk
3962f155f6cSGrant Likely	@# Generate the dependancies
3972f155f6cSGrant Likely	@$(CC) -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep
3982f155f6cSGrant Likely	@# Extract the config macros
3992f155f6cSGrant Likely	@$(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed >> $@
4002f155f6cSGrant Likely
4012f155f6cSGrant Likelysinclude $(OBJTREE)/include/autoconf.mk.dep
4022f155f6cSGrant Likely
4037ebf7443Swdenk#########################################################################
4047ebf7443Swdenkelse
405f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
406f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
407f9328639SMarian Balakowicz$(SUBDIRS) version gdbtools updater env depend \
408f9328639SMarian Balakowiczdep tags ctags etags $(obj)System.map:
4097ebf7443Swdenk	@echo "System not configured - see README" >&2
4107ebf7443Swdenk	@ exit 1
4117ebf7443Swdenkendif
4127ebf7443Swdenk
4134e53a258SWolfgang Denk.PHONY : CHANGELOG
4144e53a258SWolfgang DenkCHANGELOG:
415b985b5d6SBen Warren	git log --no-merges U-Boot-1_1_5.. | \
416b985b5d6SBen Warren	unexpand -a | sed -e 's/\s\s*$$//' > $@
4174e53a258SWolfgang Denk
4187ebf7443Swdenk#########################################################################
4197ebf7443Swdenk
4207ebf7443Swdenkunconfig:
421887e2ec9SStefan Roese	@rm -f $(obj)include/config.h $(obj)include/config.mk \
4222f155f6cSGrant Likely		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
4232f155f6cSGrant Likely		$(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
4247ebf7443Swdenk
4257ebf7443Swdenk#========================================================================
4267ebf7443Swdenk# PowerPC
4277ebf7443Swdenk#========================================================================
4280db5bca8Swdenk
4290db5bca8Swdenk#########################################################################
4300db5bca8Swdenk## MPC5xx Systems
4310db5bca8Swdenk#########################################################################
4320db5bca8Swdenk
4335e5f9ed2Swdenkcanmb_config:	unconfig
434f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
4355e5f9ed2Swdenk
4360db5bca8Swdenkcmi_mpc5xx_config:	unconfig
437f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
4380db5bca8Swdenk
439b6e4c403SwdenkPATI_config:		unconfig
440f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
441b6e4c403Swdenk
4427ebf7443Swdenk#########################################################################
443945af8d7Swdenk## MPC5xxx Systems
444945af8d7Swdenk#########################################################################
445a87589daSwdenk
446dafba16eSWolfgang Denkaev_config: unconfig
447f9328639SMarian Balakowicz	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
448dafba16eSWolfgang Denk
4496ca24c64Sdzu@denx.deBC3450_config:	unconfig
450f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
4516ca24c64Sdzu@denx.de
4525e4b3361SStefan Roesecpci5200_config:  unconfig
453f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
4545e4b3361SStefan Roese
455a87589daSwdenkhmi1001_config:	unconfig
456f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
457a87589daSwdenk
458e35745bbSwdenkLite5200_config				\
459e35745bbSwdenkLite5200_LOWBOOT_config			\
460e35745bbSwdenkLite5200_LOWBOOT08_config		\
461e35745bbSwdenkicecube_5200_config			\
462e35745bbSwdenkicecube_5200_LOWBOOT_config		\
463e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
464b2001f27Swdenkicecube_5200_DDR_config			\
46579d696fcSwdenkicecube_5200_DDR_LOWBOOT_config		\
46679d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
467e35745bbSwdenkicecube_5100_config:			unconfig
468f9328639SMarian Balakowicz	@mkdir -p $(obj)include
469f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
470f9328639SMarian Balakowicz	@ >$(obj)include/config.h
47117d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
47217d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
473f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
474f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
47517d704ebSwdenk		  fi ; \
4765cf9da48Swdenk		  echo "... with LOWBOOT configuration" ; \
4775cf9da48Swdenk		}
4785cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
479f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
4805cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
48117d704ebSwdenk		  echo "... with LOWBOOT configuration" ; \
4825cf9da48Swdenk		}
483b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
484f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
485b2001f27Swdenk		  echo "... DDR memory revision" ; \
486b2001f27Swdenk		}
487d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
488f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
489d4ca31c4Swdenk		  echo "... with MPC5200 processor" ; \
490d4ca31c4Swdenk		}
491a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
492f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
493945af8d7Swdenk		  echo "... with MGT5100 processor" ; \
494945af8d7Swdenk		}
495f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
496945af8d7Swdenk
4972605e90bSHeiko Schocherjupiter_config:	unconfig
4982605e90bSHeiko Schocher	@$(MKCONFIG) jupiter ppc mpc5xxx jupiter
4992605e90bSHeiko Schocher
5004707fb50SBartlomiej Siekav38b_config: unconfig
50190b1b2d6SGrant Likely	@$(MKCONFIG) -a v38b ppc mpc5xxx v38b
5024707fb50SBartlomiej Sieka
503138ff60cSwdenkinka4x0_config:	unconfig
504f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
505138ff60cSwdenk
50609e4b0c5SWolfgang Denklite5200b_config	\
507d3832e8fSDomen Puncerlite5200b_PM_config	\
50809e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
509f9328639SMarian Balakowicz	@mkdir -p $(obj)include
510f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
511f9328639SMarian Balakowicz	@ >$(obj)include/config.h
512f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
51309e4b0c5SWolfgang Denk	@ echo "... DDR memory revision"
514f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
515f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
516d3832e8fSDomen Puncer	@[ -z "$(findstring _PM_,$@)" ] || \
517d3832e8fSDomen Puncer		{ echo "#define CONFIG_LITE5200B_PM"	>>$(obj)include/config.h ; \
518d3832e8fSDomen Puncer		  echo "... with power management (low-power mode) support" ; \
519d3832e8fSDomen Puncer		}
52009e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
521f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
52209e4b0c5SWolfgang Denk		  echo "... with LOWBOOT configuration" ; \
52309e4b0c5SWolfgang Denk		}
52409e4b0c5SWolfgang Denk	@ echo "... with MPC5200B processor"
525f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
52609e4b0c5SWolfgang Denk
527f1ee9825SStefan Roesemcc200_config	\
528ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
529ed1cf845SWolfgang Denkmcc200_highboot_config	\
530ed1cf845SWolfgang Denkmcc200_COM12_config	\
531ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
532113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
533113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
534ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
535ed1cf845SWolfgang Denkprs200_config	\
536ed1cf845SWolfgang Denkprs200_DDR_config	\
537ed1cf845SWolfgang Denkprs200_highboot_config	\
538ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
539f9328639SMarian Balakowicz	@mkdir -p $(obj)include
540f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
541f9328639SMarian Balakowicz	@ >$(obj)include/config.h
5424819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
5434819fad9SWolfgang Denk		{ echo "... with lowboot configuration" ; \
544f1ee9825SStefan Roese		}
5454819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
546f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
5474819fad9SWolfgang Denk		  echo "... with highboot configuration" ; \
5484819fad9SWolfgang Denk		}
5494819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
550ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
551ed1cf845SWolfgang Denk		  then \
552ed1cf845SWolfgang Denk			echo "... with DDR" ; \
553ed1cf845SWolfgang Denk		  else \
554ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
555ed1cf845SWolfgang Denk			then \
556ed1cf845SWolfgang Denk				echo "... with DDR" ; \
557ed1cf845SWolfgang Denk			else \
558f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
559ed1cf845SWolfgang Denk				echo "... with SDRAM" ; \
560ed1cf845SWolfgang Denk			fi; \
561ed1cf845SWolfgang Denk		  fi; \
5624819fad9SWolfgang Denk		}
5634819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
564f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
5654819fad9SWolfgang Denk		  echo "... with SDRAM" ; \
5664819fad9SWolfgang Denk		}
567463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
568f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
569463764c8SWolfgang Denk		  echo "... with console on COM12" ; \
570463764c8SWolfgang Denk		}
571ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
572f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"  >>$(obj)include/config.h ;\
573ed1cf845SWolfgang Denk		}
574f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
57586ea5f93SWolfgang Denk
5768b7d1f0aSStefan Roesemecp5200_config:  unconfig
5778b7d1f0aSStefan Roese	@$(MKCONFIG) -a mecp5200  ppc mpc5xxx mecp5200 esd
5788b7d1f0aSStefan Roese
579df04a3dfSWolfgang Denko2dnt_config:
580f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
581df04a3dfSWolfgang Denk
5825e4b3361SStefan Roesepf5200_config:  unconfig
583f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
5845e4b3361SStefan Roese
58589394047SwdenkPM520_config \
58689394047SwdenkPM520_DDR_config \
58789394047SwdenkPM520_ROMBOOT_config \
58889394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
589f9328639SMarian Balakowicz	@mkdir -p $(obj)include
590f9328639SMarian Balakowicz	@ >$(obj)include/config.h
59189394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
592f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
59389394047Swdenk		  echo "... DDR memory revision" ; \
59489394047Swdenk		}
59589394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
596f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
59789394047Swdenk		  echo "... booting from 8-bit flash" ; \
59889394047Swdenk		}
599f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
60089394047Swdenk
6016624b687SWolfgang Denksmmaco4_config: unconfig
602f9328639SMarian Balakowicz	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
6039cdc8386SWolfgang Denk
60486b116b1SBartlomiej Siekacm5200_config:	unconfig
60586b116b1SBartlomiej Sieka	@./mkconfig -a cm5200 ppc mpc5xxx cm5200
606fa1df308SBartlomiej Sieka
6079cdc8386SWolfgang Denkspieval_config:	unconfig
608f9328639SMarian Balakowicz	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
6099cdc8386SWolfgang Denk
61045a212c4SWolfgang DenkTB5200_B_config \
611b87dfd28SWolfgang DenkTB5200_config:	unconfig
612f9328639SMarian Balakowicz	@mkdir -p $(obj)include
61345a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
614f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
61545a212c4SWolfgang Denk		  echo "... with MPC5200B processor" ; \
61645a212c4SWolfgang Denk		}
617f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
618b87dfd28SWolfgang Denk
619d4ca31c4SwdenkMINI5200_config	\
620d4ca31c4SwdenkEVAL5200_config	\
621d4ca31c4SwdenkTOP5200_config:	unconfig
622f9328639SMarian Balakowicz	@mkdir -p $(obj)include
623f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
624f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
625d4ca31c4Swdenk
6266c7a1408SwdenkTotal5100_config		\
6276c7a1408SwdenkTotal5200_config		\
6286c7a1408SwdenkTotal5200_lowboot_config	\
6296c7a1408SwdenkTotal5200_Rev2_config		\
6306c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
631f9328639SMarian Balakowicz	@mkdir -p $(obj)include
632f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
633f9328639SMarian Balakowicz	@ >$(obj)include/config.h
6346c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
635f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
6366c7a1408Swdenk		  echo "... with MGT5100 processor" ; \
6376c7a1408Swdenk		}
6386c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
639f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
6406c7a1408Swdenk		  echo "... with MPC5200 processor" ; \
6416c7a1408Swdenk		}
6426c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
643f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
6446c7a1408Swdenk		  echo "... revision 1 board" ; \
6456c7a1408Swdenk		}
6466c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
647f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
6486c7a1408Swdenk		  echo "... revision 2 board" ; \
6496c7a1408Swdenk		}
6506c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
651f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
6526c7a1408Swdenk		  echo "... with lowboot configuration" ; \
6536c7a1408Swdenk		}
654f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
6556c7a1408Swdenk
6565196a7a0SWolfgang Denkcam5200_config \
657d9384de2SMarian Balakowiczcam5200_niosflash_config \
6585196a7a0SWolfgang Denkfo300_config \
6595196a7a0SWolfgang DenkMiniFAP_config \
6605078cce8SWolfgang DenkTQM5200S_config \
6615078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
6625196a7a0SWolfgang DenkTQM5200_B_config \
6635196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
6645196a7a0SWolfgang DenkTQM5200_config	\
6655196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
666f9328639SMarian Balakowicz	@mkdir -p $(obj)include
667f9328639SMarian Balakowicz	@mkdir -p $(obj)board/tqm5200
668f9328639SMarian Balakowicz	@ >$(obj)include/config.h
669135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
670f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
671f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
672f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
673135ae006SWolfgang Denk		  echo "... TQM5200S on Cam5200" ; \
6745078cce8SWolfgang Denk		}
675d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
676d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
677d9384de2SMarian Balakowicz		  echo "... with NIOS flash driver" ; \
678d9384de2SMarian Balakowicz		}
6796d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
680f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
6816d3bc9b8SMarian Balakowicz		  echo "... TQM5200 on FO300" ; \
6826d3bc9b8SMarian Balakowicz		}
683cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
684f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
68545a212c4SWolfgang Denk		  echo "... TQM5200_AC on MiniFAP" ; \
686978b1096SWolfgang Denk		}
687cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
688f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
689cd65a3dcSWolfgang Denk		  echo "... on a STK52XX.100 base board" ; \
69056523f12Swdenk		}
6915078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
692f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
6935078cce8SWolfgang Denk		}
6945078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
695f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
696f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
69745a212c4SWolfgang Denk		}
698978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
699f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
700978b1096SWolfgang Denk		}
701f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
7026dedf3d4SHeiko Schocheruc101_config:		unconfig
7036dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
70453d4a498SBartlomiej Siekamotionpro_config:	unconfig
70553d4a498SBartlomiej Sieka	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
70653d4a498SBartlomiej Sieka
70756523f12Swdenk
708945af8d7Swdenk#########################################################################
7098993e54bSRafal Jaworowski## MPC512x Systems
7108993e54bSRafal Jaworowski#########################################################################
7118993e54bSRafal Jaworowskiads5121_config: unconfig
7128993e54bSRafal Jaworowski	@$(MKCONFIG) ads5121 ppc mpc512x ads5121
7138993e54bSRafal Jaworowski
7148993e54bSRafal Jaworowski
7158993e54bSRafal Jaworowski#########################################################################
7167ebf7443Swdenk## MPC8xx Systems
7177ebf7443Swdenk#########################################################################
7187ebf7443Swdenk
7192d24a3a7SwdenkAdder_config    \
7202d24a3a7SwdenkAdder87x_config \
72126238132SwdenkAdderII_config  \
7222d24a3a7Swdenk	:		unconfig
723f9328639SMarian Balakowicz	@mkdir -p $(obj)include
72426238132Swdenk	$(if $(findstring AdderII,$@), \
725f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
726f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
7272d24a3a7Swdenk
72816c8d5e7SWolfgang DenkAdderUSB_config:	unconfig
72916c8d5e7SWolfgang Denk	@./mkconfig -a AdderUSB ppc mpc8xx adder
73016c8d5e7SWolfgang Denk
731180d3f74SwdenkADS860_config     \
732180d3f74SwdenkFADS823_config    \
733180d3f74SwdenkFADS850SAR_config \
734180d3f74SwdenkMPC86xADS_config  \
7351114257cSwdenkMPC885ADS_config  \
736180d3f74SwdenkFADS860T_config:	unconfig
737f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
7387ebf7443Swdenk
7397ebf7443SwdenkAMX860_config	:	unconfig
740f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
7417ebf7443Swdenk
7427ebf7443Swdenkc2mon_config:		unconfig
743f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
7447ebf7443Swdenk
7457ebf7443SwdenkCCM_config:		unconfig
746f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
7477ebf7443Swdenk
7487ebf7443Swdenkcogent_mpc8xx_config:	unconfig
749f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
7507ebf7443Swdenk
7513bac3513SwdenkELPT860_config:		unconfig
752f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
7533bac3513Swdenk
75484c960ceSWolfgang DenkEP88x_config:		unconfig
755f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
75684c960ceSWolfgang Denk
7577ebf7443SwdenkESTEEM192E_config:	unconfig
758f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
7597ebf7443Swdenk
7607ebf7443SwdenkETX094_config	:	unconfig
761f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
7627ebf7443Swdenk
7637ebf7443SwdenkFLAGADM_config:	unconfig
764f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
7657ebf7443Swdenk
7667aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
7677aa78614Swdenk
7687aa78614SwdenkGEN860T_SC_config	\
7697ebf7443SwdenkGEN860T_config: unconfig
770f9328639SMarian Balakowicz	@mkdir -p $(obj)include
771f9328639SMarian Balakowicz	@ >$(obj)include/config.h
7727aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
773f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
7747aa78614Swdenk		  echo "With reduced H/W feature set (SC)..." ; \
7757aa78614Swdenk		}
776f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
7777ebf7443Swdenk
7787ebf7443SwdenkGENIETV_config:	unconfig
779f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
7807ebf7443Swdenk
7817ebf7443SwdenkGTH_config:	unconfig
782f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
7837ebf7443Swdenk
7847ebf7443Swdenkhermes_config	:	unconfig
785f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
7867ebf7443Swdenk
787c40b2956SwdenkHMI10_config	:	unconfig
788f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
789c40b2956Swdenk
7907ebf7443SwdenkIAD210_config: unconfig
791f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
7927ebf7443Swdenk
7937ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
7947ebf7443Swdenk
7957ebf7443SwdenkICU862_100MHz_config	\
7967ebf7443SwdenkICU862_config: unconfig
797f9328639SMarian Balakowicz	@mkdir -p $(obj)include
798f9328639SMarian Balakowicz	@ >$(obj)include/config.h
7997ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
800f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
8017ebf7443Swdenk		  echo "... with 100MHz system clock" ; \
8027ebf7443Swdenk		}
803f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
8047ebf7443Swdenk
8057ebf7443SwdenkIP860_config	:	unconfig
806f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
8077ebf7443Swdenk
8087ebf7443SwdenkIVML24_256_config \
8097ebf7443SwdenkIVML24_128_config \
8107ebf7443SwdenkIVML24_config:	unconfig
811f9328639SMarian Balakowicz	@mkdir -p $(obj)include
812f9328639SMarian Balakowicz	@ >$(obj)include/config.h
8137ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
814f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
8157ebf7443Swdenk		 }
8167ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
817f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
8187ebf7443Swdenk		 }
8197ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
820f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
8217ebf7443Swdenk		 }
822f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
8237ebf7443Swdenk
8247ebf7443SwdenkIVMS8_256_config \
8257ebf7443SwdenkIVMS8_128_config \
8267ebf7443SwdenkIVMS8_config:	unconfig
827f9328639SMarian Balakowicz	@mkdir -p $(obj)include
828f9328639SMarian Balakowicz	@ >$(obj)include/config.h
8297ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
830f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
8317ebf7443Swdenk		 }
8327ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
833f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
8347ebf7443Swdenk		 }
8357ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
836f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
8377ebf7443Swdenk		 }
838f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
8397ebf7443Swdenk
84056f94be3SwdenkKUP4K_config	:	unconfig
841f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
8420608e04dSwdenk
8430608e04dSwdenkKUP4X_config    :       unconfig
844f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
84556f94be3Swdenk
8467ebf7443SwdenkLANTEC_config	:	unconfig
847f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
8487ebf7443Swdenk
8497ebf7443Swdenklwmon_config:		unconfig
850f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
8517ebf7443Swdenk
8527ebf7443SwdenkMBX_config	\
8537ebf7443SwdenkMBX860T_config:	unconfig
854f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
8557ebf7443Swdenk
8567ebf7443SwdenkMHPC_config:		unconfig
857f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
8587ebf7443Swdenk
8597ebf7443SwdenkMVS1_config :		unconfig
860f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
8617ebf7443Swdenk
862993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
863993cad93Swdenk
864993cad93SwdenkNETVIA_V2_config \
8657ebf7443SwdenkNETVIA_config:		unconfig
866f9328639SMarian Balakowicz	@mkdir -p $(obj)include
867f9328639SMarian Balakowicz	@ >$(obj)include/config.h
868993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
869f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
870993cad93Swdenk		  echo "... Version 1" ; \
871993cad93Swdenk		 }
872993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
873f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
874993cad93Swdenk		  echo "... Version 2" ; \
875993cad93Swdenk		 }
876f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
8777ebf7443Swdenk
878c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
879c26e454dSwdenk
880c26e454dSwdenkNETPHONE_V2_config \
88104a85b3bSwdenkNETPHONE_config:	unconfig
882f9328639SMarian Balakowicz	@mkdir -p $(obj)include
883f9328639SMarian Balakowicz	@ >$(obj)include/config.h
884c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
885f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
886c26e454dSwdenk		 }
887c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
888f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
889c26e454dSwdenk		 }
890f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
89104a85b3bSwdenk
89279fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
89304a85b3bSwdenk
89479fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
89579fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
89679fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
89779fa88f3SwdenkNETTA_SWAPHOOK_config \
89879fa88f3SwdenkNETTA_ISDN_6412_config \
89904a85b3bSwdenkNETTA_ISDN_config \
90079fa88f3SwdenkNETTA_6412_config \
90104a85b3bSwdenkNETTA_config:		unconfig
902f9328639SMarian Balakowicz	@mkdir -p $(obj)include
903f9328639SMarian Balakowicz	@ >$(obj)include/config.h
90479fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
905f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
90604a85b3bSwdenk		 }
90779fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
908f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
90979fa88f3Swdenk		 }
91079fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
911f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
91279fa88f3Swdenk		 }
91379fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
914f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
91579fa88f3Swdenk		 }
91679fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
917f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
91879fa88f3Swdenk		 }
91979fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
920f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
92179fa88f3Swdenk		 }
922f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
92304a85b3bSwdenk
92479fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
92579fa88f3Swdenk
92679fa88f3SwdenkNETTA2_V2_config \
92779fa88f3SwdenkNETTA2_config:		unconfig
928f9328639SMarian Balakowicz	@mkdir -p $(obj)include
929f9328639SMarian Balakowicz	@ >$(obj)include/config.h
93079fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
931f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
93279fa88f3Swdenk		 }
93379fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
934f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
93579fa88f3Swdenk		 }
936f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
93779fa88f3Swdenk
938a367d426Sdzu@denx.deNC650_Rev1_config \
939a367d426Sdzu@denx.deNC650_Rev2_config \
940a367d426Sdzu@denx.deCP850_config:	unconfig
941f9328639SMarian Balakowicz	@mkdir -p $(obj)include
942f9328639SMarian Balakowicz	@ >$(obj)include/config.h
943a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
944f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
945f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
946a367d426Sdzu@denx.de		 }
947a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
948f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
949a367d426Sdzu@denx.de		 }
950a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
951f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
952a367d426Sdzu@denx.de		 }
953f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
9547ca202f5Swdenk
9557ebf7443SwdenkNX823_config:		unconfig
956f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
9577ebf7443Swdenk
9587ebf7443Swdenkpcu_e_config:		unconfig
959f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
9607ebf7443Swdenk
9613bbc899fSwdenkQS850_config:	unconfig
962f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
9633bbc899fSwdenk
9643bbc899fSwdenkQS823_config:	unconfig
965f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
9663bbc899fSwdenk
9673bbc899fSwdenkQS860T_config:	unconfig
968f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
9693bbc899fSwdenk
970da93ed81Swdenkquantum_config:	unconfig
971f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
972da93ed81Swdenk
9737ebf7443SwdenkR360MPI_config:	unconfig
974f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
9757ebf7443Swdenk
976682011ffSwdenkRBC823_config:	unconfig
977f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
978682011ffSwdenk
9797ebf7443SwdenkRPXClassic_config:	unconfig
980f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
9817ebf7443Swdenk
9827ebf7443SwdenkRPXlite_config:		unconfig
983f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
9847ebf7443Swdenk
985e63c8ee3SwdenkRPXlite_DW_64_config		\
986e63c8ee3SwdenkRPXlite_DW_LCD_config		\
987e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
988e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
989e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config      \
990e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
991e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config  \
992e63c8ee3SwdenkRPXlite_DW_config:	unconfig
993f9328639SMarian Balakowicz	@mkdir -p $(obj)include
994f9328639SMarian Balakowicz	@ >$(obj)include/config.h
995e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
996f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
997e63c8ee3Swdenk		  echo "... with 64MHz system clock ..."; \
998e63c8ee3Swdenk		}
999e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1000f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1001f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1002e63c8ee3Swdenk		  echo "... with LCD display ..."; \
1003e63c8ee3Swdenk		}
1004e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
1005f9328639SMarian Balakowicz		{ echo "#define  CFG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
1006e63c8ee3Swdenk		  echo "... with ENV in NVRAM ..."; \
1007e63c8ee3Swdenk		}
1008f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1009e63c8ee3Swdenk
101073a8b27cSwdenkrmu_config:	unconfig
1011f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
101273a8b27cSwdenk
10137ebf7443SwdenkRRvision_config:	unconfig
1014f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
10157ebf7443Swdenk
10167ebf7443SwdenkRRvision_LCD_config:	unconfig
1017f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1018f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1019f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1020f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
10217ebf7443Swdenk
10227ebf7443SwdenkSM850_config	:	unconfig
1023f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
10247ebf7443Swdenk
1025b02d0177SMarkus Klotzbuecherspc1920_config:
1026f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1027b02d0177SMarkus Klotzbuecher
10287ebf7443SwdenkSPD823TS_config:	unconfig
1029f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
10307ebf7443Swdenk
10316bdf4306SWolfgang Denkstxxtc_config:	unconfig
1032f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
10336bdf4306SWolfgang Denk
1034dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
1035f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1036dc7c9a1aSwdenk
10377ebf7443SwdenkSXNI855T_config:	unconfig
1038f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
10397ebf7443Swdenk
1040db2f721fSwdenk# EMK MPC8xx based modules
1041db2f721fSwdenkTOP860_config:		unconfig
1042f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1043db2f721fSwdenk
10447ebf7443Swdenk# Play some tricks for configuration selection
1045e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
1046e9132ea9Swdenk# and only 823 boards may have LCD support
1047e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
10487ebf7443Swdenk
10497ebf7443SwdenkFPS850L_config		\
1050384ae025SwdenkFPS860L_config		\
1051f12e568cSwdenkNSCU_config		\
10527ebf7443SwdenkTQM823L_config		\
10537ebf7443SwdenkTQM823L_LCD_config	\
10547ebf7443SwdenkTQM850L_config		\
10557ebf7443SwdenkTQM855L_config		\
10567ebf7443SwdenkTQM860L_config		\
1057d126bfbdSwdenkTQM862L_config		\
1058ae3af05eSwdenkTQM823M_config		\
1059ae3af05eSwdenkTQM850M_config		\
1060f12e568cSwdenkTQM855M_config		\
1061f12e568cSwdenkTQM860M_config		\
1062f12e568cSwdenkTQM862M_config		\
10638cba090cSWolfgang DenkTQM866M_config		\
1064090eb735SMarkus KlotzbuecherTQM885D_config		\
1065*efc6f447SGuennadi LiakhovetskiTK885D_config		\
10668cba090cSWolfgang Denkvirtlab2_config:	unconfig
1067f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1068f9328639SMarian Balakowicz	@ >$(obj)include/config.h
10697ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1070f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1071f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
10727ebf7443Swdenk		  echo "... with LCD display" ; \
10737ebf7443Swdenk		}
1074f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
10757ebf7443Swdenk
10767ebf7443SwdenkTTTech_config:	unconfig
1077f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1078f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1079f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1080f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
10817ebf7443Swdenk
1082ec0aee7bSwdenkuc100_config	:	unconfig
1083f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1084f7d1572bSwdenk
1085608c9146Swdenkv37_config:	unconfig
1086f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1087f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1088f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1089f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1090608c9146Swdenk
109191e940d9Sdzuwtk_config:	unconfig
1092f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1093f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1094f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1095f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
109691e940d9Sdzu
10977ebf7443Swdenk#########################################################################
10987ebf7443Swdenk## PPC4xx Systems
10997ebf7443Swdenk#########################################################################
1100e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
11017ebf7443Swdenk
110216c0cc1cSStefan Roeseacadia_config:	unconfig
110316c0cc1cSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
110416c0cc1cSStefan Roese
1105c440bfe6SStefan Roeseacadia_nand_config:	unconfig
110663e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/acadia
110763e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/acadia
1108c440bfe6SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1109c440bfe6SStefan Roese	@$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1110c440bfe6SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1111c440bfe6SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1112c440bfe6SStefan Roese
11137ebf7443SwdenkADCIOP_config:	unconfig
1114f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
11157ebf7443Swdenk
1116899620c2SStefan Roesealpr_config:	unconfig
111735d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1118899620c2SStefan Roese
11197521af1cSWolfgang DenkAP1000_config:unconfig
1120f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
11217521af1cSWolfgang Denk
1122c419d1d6SstroeseAPC405_config:	unconfig
1123f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1124c419d1d6Sstroese
11257ebf7443SwdenkAR405_config:	unconfig
1126f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
11277ebf7443Swdenk
1128549826eaSstroeseASH405_config:	unconfig
1129f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1130549826eaSstroese
11318a316c9bSStefan Roesebamboo_config:	unconfig
1132f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
11338a316c9bSStefan Roese
1134cf959c7dSStefan Roesebamboo_nand_config:	unconfig
113563e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/bamboo
113663e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/bamboo
1137cf959c7dSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1138f3679aa1SStefan Roese	@$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1139cf959c7dSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1140cf959c7dSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1141cf959c7dSStefan Roese
11428a316c9bSStefan Roesebubinga_config:	unconfig
1143f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1144549826eaSstroese
11457ebf7443SwdenkCANBT_config:	unconfig
1146f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
11477ebf7443Swdenk
11481d6f9720SwdenkCATcenter_config	\
11491d6f9720SwdenkCATcenter_25_config	\
11501d6f9720SwdenkCATcenter_33_config:	unconfig
1151f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1152f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1153f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
11541d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1155f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
11561d6f9720Swdenk		  echo "SysClk = 25MHz" ; \
11571d6f9720Swdenk		}
11581d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1159f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
11601d6f9720Swdenk		  echo "SysClk = 33MHz" ; \
11611d6f9720Swdenk		}
1162f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
116310767ccbSwdenk
11647644f16fSStefan RoeseCPCI2DP_config:	unconfig
1165f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
11667644f16fSStefan Roese
11677ebf7443SwdenkCPCI405_config	\
1168549826eaSstroeseCPCI4052_config	\
1169c419d1d6SstroeseCPCI405DT_config	\
1170549826eaSstroeseCPCI405AB_config:	unconfig
1171f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1172f9328639SMarian Balakowicz	@echo "BOARD_REVISION = $(@:_config=)"	>> $(obj)include/config.mk
11737ebf7443Swdenk
11747ebf7443SwdenkCPCIISER4_config:	unconfig
1175f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
11767ebf7443Swdenk
11777ebf7443SwdenkCRAYL1_config:	unconfig
1178f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
11797ebf7443Swdenk
1180cd0a9de6Swdenkcsb272_config:	unconfig
1181f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1182cd0a9de6Swdenk
1183aa245090Swdenkcsb472_config:	unconfig
1184f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1185aa245090Swdenk
11867ebf7443SwdenkDASA_SIM_config: unconfig
1187f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
11887ebf7443Swdenk
118972cd5aa7SstroeseDP405_config:	unconfig
1190f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
119172cd5aa7Sstroese
11927ebf7443SwdenkDU405_config:	unconfig
1193f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
11947ebf7443Swdenk
11958a316c9bSStefan Roeseebony_config:	unconfig
1196f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
11977ebf7443Swdenk
11987ebf7443SwdenkERIC_config:	unconfig
1199f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
12007ebf7443Swdenk
1201d1cbe85bSwdenkEXBITGEN_config:	unconfig
1202f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1203d1cbe85bSwdenk
1204c419d1d6SstroeseG2000_config:	unconfig
1205f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1206c419d1d6Sstroese
1207ac982ea5SNiklaus Gigerhcu4_config:	unconfig
120835d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1209ac982ea5SNiklaus Giger
1210ac982ea5SNiklaus Gigerhcu5_config:	unconfig
121135d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1212ac982ea5SNiklaus Giger
1213c419d1d6SstroeseHH405_config:	unconfig
1214f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1215c419d1d6Sstroese
121672cd5aa7SstroeseHUB405_config:	unconfig
1217f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
121872cd5aa7Sstroese
1219db01a2eaSwdenkJSE_config:	unconfig
1220f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1221db01a2eaSwdenk
1222b79316f2SStefan RoeseKAREF_config: unconfig
1223f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1224b79316f2SStefan Roese
12254745acaaSStefan Roesekatmai_config:	unconfig
12264745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
12274745acaaSStefan Roese
1228353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR)
1229353f2688SStefan Roesekilauea_config \
1230353f2688SStefan Roesehaleakala_config: unconfig
1231353f2688SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1232566806caSStefan Roese
12333d6cb3b2SStefan Roesekilauea_nand_config \
12343d6cb3b2SStefan Roesehaleakala_nand_config: unconfig
12353d6cb3b2SStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/kilauea
12363d6cb3b2SStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/kilauea
12373d6cb3b2SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
12383d6cb3b2SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
12393d6cb3b2SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
12403d6cb3b2SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
12413d6cb3b2SStefan Roese
1242c591dffeSLarry Johnsonkorat_config:	unconfig
1243c591dffeSLarry Johnson	@$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1244c591dffeSLarry Johnson
12456e7fb6eaSStefan Roeseluan_config:	unconfig
1246f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
12476e7fb6eaSStefan Roese
1248b765ffb7SStefan Roeselwmon5_config:	unconfig
1249b765ffb7SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1250b765ffb7SStefan Roese
1251211ea91aSStefan Roesemakalu_config:	unconfig
1252211ea91aSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1253211ea91aSStefan Roese
1254b79316f2SStefan RoeseMETROBOX_config: unconfig
1255f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1256b79316f2SStefan Roese
12577ebf7443SwdenkMIP405_config:	unconfig
1258f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
12597ebf7443Swdenk
1260f3e0de60SwdenkMIP405T_config:	unconfig
1261f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1262f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1263f3e0de60Swdenk	@echo "Enable subset config for MIP405T"
1264f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1265f3e0de60Swdenk
12667ebf7443SwdenkML2_config:	unconfig
1267f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
12687ebf7443Swdenk
1269028ab6b5Swdenkml300_config:	unconfig
1270f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1271028ab6b5Swdenk
12728a316c9bSStefan Roeseocotea_config:	unconfig
1273f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
12740e6d798cSwdenk
12757ebf7443SwdenkOCRTC_config		\
12767ebf7443SwdenkORSG_config:	unconfig
1277f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
12787ebf7443Swdenk
12795568e613SStefan Roesep3p440_config:	unconfig
1280f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
12815568e613SStefan Roese
12827ebf7443SwdenkPCI405_config:	unconfig
1283f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
12847ebf7443Swdenk
1285a4c8d138SStefan Roesepcs440ep_config:	unconfig
1286f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1287a4c8d138SStefan Roese
12887ebf7443SwdenkPIP405_config:	unconfig
1289f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
12907ebf7443Swdenk
129172cd5aa7SstroesePLU405_config:	unconfig
1292f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
129372cd5aa7Sstroese
1294549826eaSstroesePMC405_config:	unconfig
1295f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1296549826eaSstroese
12978ba132caSMatthias FuchsPMC440_config:	unconfig
12988ba132caSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
12998ba132caSMatthias Fuchs
1300281e00a3SwdenkPPChameleonEVB_config		\
1301e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1302e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1303e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1304e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1305e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1306e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1307f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1308f9328639SMarian Balakowicz	@ >$(obj)include/config.h
13091d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1310f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1311fbe4b5cbSwdenk		  echo "... BASIC model" ; \
1312fbe4b5cbSwdenk		}
13131d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1314f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1315fbe4b5cbSwdenk		  echo "... MEDIUM model" ; \
1316fbe4b5cbSwdenk		}
13171d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1318f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1319fbe4b5cbSwdenk		  echo "... HIGH-END model" ; \
1320fbe4b5cbSwdenk		}
1321e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1322f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1323e55ca7e2Swdenk		  echo "SysClk = 25MHz" ; \
1324e55ca7e2Swdenk		}
1325e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1326f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1327e55ca7e2Swdenk		  echo "SysClk = 33MHz" ; \
1328e55ca7e2Swdenk		}
1329f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
133012f34241Swdenk
1331430f1b0fSStefan Roesesbc405_config:	unconfig
1332430f1b0fSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1333430f1b0fSStefan Roese
1334430f1b0fSStefan Roesesequoia_config \
1335854bc8daSStefan Roeserainier_config: unconfig
13368318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1337430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1338430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
13392aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1340854bc8daSStefan Roese
1341430f1b0fSStefan Roesesequoia_nand_config \
1342854bc8daSStefan Roeserainier_nand_config: unconfig
134363e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
134463e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/sequoia
13458318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1346430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1347430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1348430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
13498318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
13508318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1351652a10c0Swdenk
13526d3e0107SWolfgang Denksc3_config:unconfig
135335d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1354ca43ba18SHeiko Schocher
1355d4024bb7SJohn Otkentaihu_config:	unconfig
1356d4024bb7SJohn Otken	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1357d4024bb7SJohn Otken
13585fb692caSStefan Roesetaishan_config:	unconfig
13595fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
13605fb692caSStefan Roese
136172cd5aa7SstroeseVOH405_config:	unconfig
1362f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
136372cd5aa7Sstroese
1364c419d1d6SstroeseVOM405_config:	unconfig
1365f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1366c419d1d6Sstroese
1367feaedfcfSStefan RoeseCMS700_config:	unconfig
1368f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1369feaedfcfSStefan Roese
13707ebf7443SwdenkW7OLMC_config	\
13717ebf7443SwdenkW7OLMG_config: unconfig
1372f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
13737ebf7443Swdenk
1374430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR)
1375430f1b0fSStefan Roesewalnut_config \
1376430f1b0fSStefan Roesesycamore_config: unconfig
1377430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
13787ebf7443Swdenk
1379c419d1d6SstroeseWUH405_config:	unconfig
1380f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1381c419d1d6Sstroese
1382ba56f625SwdenkXPEDITE1K_config:	unconfig
1383f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1384ba56f625Swdenk
1385430f1b0fSStefan Roeseyosemite_config \
13868a316c9bSStefan Roeseyellowstone_config: unconfig
1387700200c6SStefan Roese	@mkdir -p $(obj)include
1388430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1389430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
13902aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
13918a316c9bSStefan Roese
13926c5879f3SMarian Balakowiczyucca_config:	unconfig
1393f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
13946c5879f3SMarian Balakowicz
1395779e9751SStefan Roesezeus_config:	unconfig
1396779e9751SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1397779e9751SStefan Roese
13987ebf7443Swdenk#########################################################################
1399983fda83Swdenk## MPC8220 Systems
1400983fda83Swdenk#########################################################################
1401dc17fb6dSWolfgang Denk
1402dc17fb6dSWolfgang DenkAlaska8220_config	\
1403dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1404f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1405983fda83Swdenk
140612b43d51Swdenksorcery_config:		unconfig
1407f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
140812b43d51Swdenk
1409983fda83Swdenk#########################################################################
14107ebf7443Swdenk## MPC824x Systems
14117ebf7443Swdenk#########################################################################
1412efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
14133bac3513Swdenk
14140332990bSwdenkA3000_config: unconfig
1415f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
14160332990bSwdenk
14178e6f1a8eSWolfgang Denkbarco_config: unconfig
1418f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
14198e6f1a8eSWolfgang Denk
14207ebf7443SwdenkBMW_config: unconfig
1421f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
14227ebf7443Swdenk
14233bac3513SwdenkCPC45_config	\
14243bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1425f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1426f9328639SMarian Balakowicz	@cd $(obj)include ;				\
14273bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
14283bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
14293bac3513Swdenk		echo "... booting from 8-bit flash" ; \
14303bac3513Swdenk	else \
14313bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
14323bac3513Swdenk		echo "... booting from 64-bit flash" ; \
14333bac3513Swdenk	fi; \
14343bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
14353bac3513Swdenk
14367ebf7443SwdenkCU824_config: unconfig
1437f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
14387ebf7443Swdenk
14397abf0c58Swdenkdebris_config: unconfig
1440f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
14417abf0c58Swdenk
144280885a9dSwdenkeXalion_config: unconfig
1443f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
144480885a9dSwdenk
1445756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1446f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1447756f586aSwdenk
144853dd6ce4SWolfgang Denkkvme080_config: unconfig
1449f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
145053dd6ce4SWolfgang Denk
14517ebf7443SwdenkMOUSSE_config: unconfig
1452f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
14537ebf7443Swdenk
14547ebf7443SwdenkMUSENKI_config: unconfig
1455f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
14567ebf7443Swdenk
1457b4676a25SwdenkMVBLUE_config:	unconfig
1458f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1459b4676a25Swdenk
14607ebf7443SwdenkOXC_config: unconfig
1461f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
14627ebf7443Swdenk
14637ebf7443SwdenkPN62_config: unconfig
1464f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
14657ebf7443Swdenk
14667ebf7443SwdenkSandpoint8240_config: unconfig
1467f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
14687ebf7443Swdenk
14697ebf7443SwdenkSandpoint8245_config: unconfig
1470f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
14717ebf7443Swdenk
1472466b7410Swdenksbc8240_config: unconfig
1473f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1474466b7410Swdenk
1475d1cbe85bSwdenkSL8245_config: unconfig
1476f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1477d1cbe85bSwdenk
14787ebf7443Swdenkutx8245_config: unconfig
1479f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
14807ebf7443Swdenk
14817ebf7443Swdenk#########################################################################
14827ebf7443Swdenk## MPC8260 Systems
14837ebf7443Swdenk#########################################################################
14847ebf7443Swdenk
148554387ac9Swdenkatc_config:	unconfig
1486f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
148754387ac9Swdenk
14887ebf7443Swdenkcogent_mpc8260_config:	unconfig
1489f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
14907ebf7443Swdenk
14917ebf7443SwdenkCPU86_config	\
14927ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1493f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1494f9328639SMarian Balakowicz	@cd $(obj)include ;				\
14957ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
14967ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
14977ebf7443Swdenk		echo "... booting from 8-bit flash" ; \
14987ebf7443Swdenk	else \
14997ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
15007ebf7443Swdenk		echo "... booting from 64-bit flash" ; \
15017ebf7443Swdenk	fi; \
15027ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
15037ebf7443Swdenk
1504384cc687SwdenkCPU87_config	\
1505384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1506f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1507f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1508384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1509384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1510384cc687Swdenk		echo "... booting from 8-bit flash" ; \
1511384cc687Swdenk	else \
1512384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1513384cc687Swdenk		echo "... booting from 64-bit flash" ; \
1514384cc687Swdenk	fi; \
1515384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1516384cc687Swdenk
1517f901a83bSWolfgang Denkep8248_config	\
1518f901a83bSWolfgang Denkep8248E_config	:	unconfig
1519f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1520f901a83bSWolfgang Denk
15217ebf7443Swdenkep8260_config:	unconfig
1522f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
15237ebf7443Swdenk
15248d4ac794SWolfgang Denkep82xxm_config:	unconfig
152590b1b2d6SGrant Likely	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
15268d4ac794SWolfgang Denk
15277ebf7443Swdenkgw8260_config:	unconfig
1528f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
15297ebf7443Swdenk
15307ebf7443Swdenkhymod_config:	unconfig
1531f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
15327ebf7443Swdenk
15339dd41a7bSwdenkIDS8247_config:	unconfig
1534f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
15359dd41a7bSwdenk
15367ebf7443SwdenkIPHASE4539_config:	unconfig
1537f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
15387ebf7443Swdenk
1539c3c7f861SwdenkISPAN_config		\
1540c3c7f861SwdenkISPAN_REVB_config:	unconfig
1541f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1542c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
1543f9328639SMarian Balakowicz		echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1544c3c7f861Swdenk	fi
1545f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1546c3c7f861Swdenk
154704a85b3bSwdenkMPC8260ADS_config	\
1548901787d6SwdenkMPC8260ADS_lowboot_config	\
154904a85b3bSwdenkMPC8260ADS_33MHz_config	\
1550901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
155104a85b3bSwdenkMPC8260ADS_40MHz_config	\
1552901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
155304a85b3bSwdenkMPC8272ADS_config	\
1554901787d6SwdenkMPC8272ADS_lowboot_config	\
155504a85b3bSwdenkPQ2FADS_config		\
1556901787d6SwdenkPQ2FADS_lowboot_config		\
155704a85b3bSwdenkPQ2FADS-VR_config	\
1558901787d6SwdenkPQ2FADS-VR_lowboot_config	\
155904a85b3bSwdenkPQ2FADS-ZU_config	\
1560901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
156104a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1562901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
156304a85b3bSwdenk	:		unconfig
1564f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1565f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mpc8260ads
156604a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
1567f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1568f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
156904a85b3bSwdenk	$(if $(findstring MHz,$@), \
1570f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
157104a85b3bSwdenk	$(if $(findstring VR,$@), \
1572f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1573901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1574f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1575901787d6Swdenk		  echo "... with lowboot configuration" ; \
1576901787d6Swdenk		}
1577f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
15787ebf7443Swdenk
1579db2f721fSwdenkMPC8266ADS_config:	unconfig
1580f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1581db2f721fSwdenk
1582efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
158310f67017SwdenkPM825_config	\
1584efa329cbSwdenkPM825_ROMBOOT_config	\
1585efa329cbSwdenkPM825_BIGFLASH_config	\
1586efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
15877ebf7443SwdenkPM826_config	\
1588efa329cbSwdenkPM826_ROMBOOT_config	\
1589efa329cbSwdenkPM826_BIGFLASH_config	\
1590efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1591f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1592f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1593efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1594f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
15957ebf7443Swdenk	else \
1596f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1597efa329cbSwdenk	fi
1598efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1599efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
1600f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1601f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1602efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1603efa329cbSwdenk			echo "... with 32 MB Flash" ; \
1604f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
16057ebf7443Swdenk		fi; \
1606efa329cbSwdenk	else \
1607efa329cbSwdenk		echo "... booting from 64-bit flash" ; \
1608efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1609efa329cbSwdenk			echo "... with 32 MB Flash" ; \
1610f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1611f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1612efa329cbSwdenk		else \
1613f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1614efa329cbSwdenk		fi; \
1615efa329cbSwdenk	fi
1616f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1617efa329cbSwdenk
1618efa329cbSwdenkPM828_config	\
1619efa329cbSwdenkPM828_PCI_config	\
1620efa329cbSwdenkPM828_ROMBOOT_config	\
1621efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1622f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1623f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
162417076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1625f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1626efa329cbSwdenk		echo "... with PCI enabled" ; \
1627efa329cbSwdenk	else \
1628f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1629efa329cbSwdenk	fi
1630efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1631efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
1632f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1633f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1634efa329cbSwdenk	fi
1635f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
16367ebf7443Swdenk
16377ebf7443Swdenkppmc8260_config:	unconfig
1638f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
16397ebf7443Swdenk
16408b0bfc68SwdenkRattler8248_config	\
16418b0bfc68SwdenkRattler_config:		unconfig
1642f9328639SMarian Balakowicz	@mkdir -p $(obj)include
16438b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1644f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1645f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
16468b0bfc68Swdenk
16477ebf7443SwdenkRPXsuper_config:	unconfig
1648f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
16497ebf7443Swdenk
16507ebf7443Swdenkrsdproto_config:	unconfig
1651f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
16527ebf7443Swdenk
16537ebf7443Swdenksacsng_config:	unconfig
1654f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
16557ebf7443Swdenk
16567ebf7443Swdenksbc8260_config:	unconfig
1657f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
16587ebf7443Swdenk
16597ebf7443SwdenkSCM_config:		unconfig
1660f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
16617ebf7443Swdenk
166227b207fdSwdenkTQM8255_AA_config \
166327b207fdSwdenkTQM8260_AA_config \
166427b207fdSwdenkTQM8260_AB_config \
166527b207fdSwdenkTQM8260_AC_config \
166627b207fdSwdenkTQM8260_AD_config \
166727b207fdSwdenkTQM8260_AE_config \
166827b207fdSwdenkTQM8260_AF_config \
166927b207fdSwdenkTQM8260_AG_config \
167027b207fdSwdenkTQM8260_AH_config \
16711f62bc2dSWolfgang DenkTQM8260_AI_config \
167227b207fdSwdenkTQM8265_AA_config:  unconfig
1673f9328639SMarian Balakowicz	@mkdir -p $(obj)include
167427b207fdSwdenk	@case "$@" in \
167527b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
167627b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
167727b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
167827b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
167927b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
168027b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
168127b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
168227b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
168327b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
16841f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
168527b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
168627b207fdSwdenk	esac; \
1687f9328639SMarian Balakowicz	>$(obj)include/config.h ; \
168827b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1689f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
169027b207fdSwdenk	fi; \
1691f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
169227b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
16931aaab9bfSWolfgang Denk	if [ "$${CACHE}" = "yes" ] ; then \
1694f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
169527b207fdSwdenk		echo "... with L2 Cache support" ; \
16967ebf7443Swdenk	else \
1697f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
16987ebf7443Swdenk		echo "... without L2 Cache support" ; \
169927b207fdSwdenk	fi; \
17001aaab9bfSWolfgang Denk	if [ "$${BMODE}" = "60x" ] ; then \
1701f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
170227b207fdSwdenk		echo "... with 60x Bus Mode" ; \
170327b207fdSwdenk	else \
1704f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
170527b207fdSwdenk		echo "... without 60x Bus Mode" ; \
17067ebf7443Swdenk	fi
1707f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
17087ebf7443Swdenk
1709fa230445SHeiko SchocherTQM8272_config: unconfig
1710fa230445SHeiko Schocher	@$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1711fa230445SHeiko Schocher
1712ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1713ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1714f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1715f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1716f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1717ba91e26aSwdenk
171854387ac9SwdenkZPC1900_config: unconfig
1719f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
17207aa78614Swdenk
17214e5ca3ebSwdenk#########################################################################
17224e5ca3ebSwdenk## Coldfire
17234e5ca3ebSwdenk#########################################################################
17244e5ca3ebSwdenk
17254a442d31STsiChungLiewM5235EVB_config \
17264a442d31STsiChungLiewM5235EVB_Flash16_config \
17274a442d31STsiChungLiewM5235EVB_Flash32_config:	unconfig
17284a442d31STsiChungLiew	@case "$@" in \
17294a442d31STsiChungLiew	M5235EVB_config)		FLASH=16;; \
17304a442d31STsiChungLiew	M5235EVB_Flash16_config)	FLASH=16;; \
17314a442d31STsiChungLiew	M5235EVB_Flash32_config)	FLASH=32;; \
17324a442d31STsiChungLiew	esac; \
17334a442d31STsiChungLiew	>include/config.h ; \
17344a442d31STsiChungLiew	if [ "$${FLASH}" != "16" ] ; then \
17354a442d31STsiChungLiew		echo "#define NORFLASH_PS32BIT	1" >> include/config.h ; \
17364a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
17374a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
17384a442d31STsiChungLiew	else \
17394a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
17404a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
17414a442d31STsiChungLiew	fi
17424a442d31STsiChungLiew	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
17434a442d31STsiChungLiew
1744a605aacdSTsiChungLiewM5249EVB_config :		unconfig
1745a605aacdSTsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1746a605aacdSTsiChungLiew
1747a1436a84STsiChungLiewM5253EVBE_config :		unconfig
1748a1436a84STsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1749a1436a84STsiChungLiew
17507481266eSWolfgang Denkcobra5272_config :		unconfig
1751f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
17527481266eSWolfgang Denk
17534176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
1754f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1755f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1756f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1757f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1758f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
17594176c799SWolfgang Denk
17604176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
1761f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1762f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1763f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1764f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1765f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
17664176c799SWolfgang Denk
1767daa6e418SBartlomiej Siekaidmr_config :			unconfig
1768daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1769daa6e418SBartlomiej Sieka
17704176c799SWolfgang DenkM5271EVB_config :		unconfig
1771f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
17724176c799SWolfgang Denk
17734e5ca3ebSwdenkM5272C3_config :		unconfig
1774f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
17754e5ca3ebSwdenk
17764e5ca3ebSwdenkM5282EVB_config :		unconfig
1777f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
17784e5ca3ebSwdenk
1779c419d1d6SstroeseTASREG_config :		unconfig
1780f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1781c419d1d6Sstroese
17823a108ed8SZachary P. Landaur5200_config :		unconfig
1783f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
17843a108ed8SZachary P. Landau
17858e585f02STsiChung LiewM5329AFEE_config \
17868e585f02STsiChung LiewM5329BFEE_config :	unconfig
17878e585f02STsiChung Liew	@case "$@" in \
17888e585f02STsiChung Liew	M5329AFEE_config)	NAND=0;; \
17898e585f02STsiChung Liew	M5329BFEE_config)	NAND=16;; \
17908e585f02STsiChung Liew	esac; \
17918e585f02STsiChung Liew	>include/config.h ; \
17928e585f02STsiChung Liew	if [ "$${NAND}" != "0" ] ; then \
1793ab77bc54STsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
17948e585f02STsiChung Liew	fi
17958e585f02STsiChung Liew	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
17968e585f02STsiChung Liew
17978ae158cdSTsiChungLiewM54455EVB_config \
17988ae158cdSTsiChungLiewM54455EVB_atmel_config \
17998ae158cdSTsiChungLiewM54455EVB_intel_config \
18008ae158cdSTsiChungLiewM54455EVB_a33_config \
18018ae158cdSTsiChungLiewM54455EVB_a66_config \
18028ae158cdSTsiChungLiewM54455EVB_i33_config \
18038ae158cdSTsiChungLiewM54455EVB_i66_config :	unconfig
18048ae158cdSTsiChungLiew	@case "$@" in \
18058ae158cdSTsiChungLiew	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
18068ae158cdSTsiChungLiew	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
18078ae158cdSTsiChungLiew	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
18088ae158cdSTsiChungLiew	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
18098ae158cdSTsiChungLiew	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
18108ae158cdSTsiChungLiew	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
18118ae158cdSTsiChungLiew	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
18128ae158cdSTsiChungLiew	esac; \
18138ae158cdSTsiChungLiew	>include/config.h ; \
18141aaab9bfSWolfgang Denk	if [ "$${FLASH}" = "INTEL" ] ; then \
18154a442d31STsiChungLiew		echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1816e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1817e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
18188ae158cdSTsiChungLiew		echo "... with INTEL boot..." ; \
18198ae158cdSTsiChungLiew	else \
18204a442d31STsiChungLiew		echo "#define CFG_ATMEL_BOOT"	>> $(obj)include/config.h ; \
1821e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1822e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
18238ae158cdSTsiChungLiew		echo "... with ATMEL boot..." ; \
18248ae158cdSTsiChungLiew	fi; \
18254a442d31STsiChungLiew	echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
18268ae158cdSTsiChungLiew	echo "... with $${FREQ}Hz input clock"
18278ae158cdSTsiChungLiew	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
18288ae158cdSTsiChungLiew
18297ebf7443Swdenk#########################################################################
1830f046ccd1SEran Liberty## MPC83xx Systems
1831f046ccd1SEran Liberty#########################################################################
1832f046ccd1SEran Liberty
18335c5d3242SKim PhillipsMPC8313ERDB_33_config \
18345c5d3242SKim PhillipsMPC8313ERDB_66_config: unconfig
1835cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1836cdd917a4SWolfgang Denk	@echo "" >$(obj)include/config.h ; \
18375c5d3242SKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
18385c5d3242SKim Phillips		echo -n "...33M ..." ; \
1839cdd917a4SWolfgang Denk		echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
18405c5d3242SKim Phillips	fi ; \
18415c5d3242SKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
18425c5d3242SKim Phillips		echo -n "...66M..." ; \
1843cdd917a4SWolfgang Denk		echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
18445c5d3242SKim Phillips	fi ;
1845e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
18465c5d3242SKim Phillips
18471c274c4eSKim PhillipsMPC8323ERDB_config:	unconfig
18481c274c4eSKim Phillips	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
18491c274c4eSKim Phillips
18504decd84eSKim PhillipsMPC832XEMDS_config \
18514decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
18524decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
1853281df457STony LiMPC832XEMDS_SLAVE_config \
1854281df457STony LiMPC832XEMDS_ATM_config:	unconfig
1855cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1856cdd917a4SWolfgang Denk	@echo "" >$(obj)include/config.h ; \
18574decd84eSKim Phillips	if [ "$(findstring _HOST_,$@)" ] ; then \
18584decd84eSKim Phillips		echo -n "... PCI HOST " ; \
1859cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
18604decd84eSKim Phillips	fi ; \
18614decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
18624decd84eSKim Phillips		echo "...PCI SLAVE 66M"  ; \
1863cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1864cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
18654decd84eSKim Phillips	fi ; \
18664decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
18674decd84eSKim Phillips		echo -n "...33M ..." ; \
1868cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
1869281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
18704decd84eSKim Phillips	fi ; \
18714decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
18724decd84eSKim Phillips		echo -n "...66M..." ; \
1873cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
1874281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1875281df457STony Li	fi ; \
1876281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
1877281df457STony Li		echo -n "...ATM..." ; \
1878281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1879281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM     1" >>$(obj)include/config.h ; \
18804decd84eSKim Phillips	fi ;
1881e58fe957SKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
1882e6f2e902SMarian Balakowicz
1883991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
1884e58fe957SKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
1885991425feSMarian Balakowicz
18867a78f148STimur TabiMPC8349ITX_config \
18877a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
18887a78f148STimur TabiMPC8349ITXGP_config:	unconfig
18897a78f148STimur Tabi	@mkdir -p $(obj)include
1890e21659e3SSam Sparks	@mkdir -p $(obj)board/freescale/mpc8349itx
18917a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
18927a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
1893e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
18947a78f148STimur Tabi	fi
18957a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
1896e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
18977a78f148STimur Tabi	fi
1898e58fe957SKim Phillips	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
18994decd84eSKim Phillips
19005f820439SDave LiuMPC8360EMDS_config \
19015f820439SDave LiuMPC8360EMDS_HOST_33_config \
19025f820439SDave LiuMPC8360EMDS_HOST_66_config \
1903281df457STony LiMPC8360EMDS_SLAVE_config \
1904281df457STony LiMPC8360EMDS_ATM_config: unconfig
1905cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1906cdd917a4SWolfgang Denk	@echo "" >$(obj)include/config.h ; \
19075f820439SDave Liu	if [ "$(findstring _HOST_,$@)" ] ; then \
19085f820439SDave Liu		echo -n "... PCI HOST " ; \
1909cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
19105f820439SDave Liu	fi ; \
19115f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
19125f820439SDave Liu		echo "...PCI SLAVE 66M"  ; \
1913cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1914cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
19155f820439SDave Liu	fi ; \
19165f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
19175f820439SDave Liu		echo -n "...33M ..." ; \
1918cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
1919281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
19205f820439SDave Liu	fi ; \
19215f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
19225f820439SDave Liu		echo -n "...66M..." ; \
1923cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
1924281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1925281df457STony Li	fi ; \
1926281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
1927281df457STony Li		echo -n "...ATM..." ; \
1928281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1929281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM     1" >>$(obj)include/config.h ; \
19305f820439SDave Liu	fi ;
1931e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
19325f820439SDave Liu
1933fab6f556SAnton VorontsovMPC8360ERDK_33_config \
1934fab6f556SAnton VorontsovMPC8360ERDK_66_config \
1935fab6f556SAnton VorontsovMPC8360ERDK_config:
1936fab6f556SAnton Vorontsov	@mkdir -p $(obj)include
1937fab6f556SAnton Vorontsov	@echo "" >$(obj)include/config.h ; \
1938fab6f556SAnton Vorontsov	if [ "$(findstring _33_,$@)" ] ; then \
1939fab6f556SAnton Vorontsov		echo -n "... CLKIN 33MHz " ; \
1940fab6f556SAnton Vorontsov		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
1941fab6f556SAnton Vorontsov	fi ;
1942fab6f556SAnton Vorontsov	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
1943fab6f556SAnton Vorontsov
194419580e66SDave LiuMPC837XEMDS_config \
194519580e66SDave LiuMPC837XEMDS_HOST_config:	unconfig
194619580e66SDave Liu	@mkdir -p $(obj)include
194719580e66SDave Liu	@echo "" >$(obj)include/config.h ; \
194819580e66SDave Liu	if [ "$(findstring _HOST_,$@)" ] ; then \
194919580e66SDave Liu		echo -n "... PCI HOST " ; \
195019580e66SDave Liu		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
195119580e66SDave Liu	fi ;
195219580e66SDave Liu	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
195319580e66SDave Liu
195491e25769SPaul Gortmakersbc8349_config:		unconfig
195591e25769SPaul Gortmaker	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
195691e25769SPaul Gortmaker
19574decd84eSKim PhillipsTQM834x_config:	unconfig
19584decd84eSKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
19594decd84eSKim Phillips
19602ad6b513STimur Tabi
1961f046ccd1SEran Liberty#########################################################################
196242d1f039Swdenk## MPC85xx Systems
196342d1f039Swdenk#########################################################################
196442d1f039Swdenk
19657bd6104bSrobert lazarskiATUM8548_config:	unconfig
19667bd6104bSrobert lazarski	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
19677bd6104bSrobert lazarski
196842d1f039SwdenkMPC8540ADS_config:	unconfig
1969c2d943ffSKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
197042d1f039Swdenk
1971b0e32949SLunsheng WangMPC8540EVAL_config \
1972b0e32949SLunsheng WangMPC8540EVAL_33_config \
1973b0e32949SLunsheng WangMPC8540EVAL_66_config \
1974b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
1975b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:      unconfig
1976f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1977f9328639SMarian Balakowicz	@echo "" >$(obj)include/config.h ; \
1978b0e32949SLunsheng Wang	if [ "$(findstring _33_,$@)" ] ; then \
1979cdd917a4SWolfgang Denk		echo "... 33 MHz PCI" ; \
1980b0e32949SLunsheng Wang	else \
1981f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1982cdd917a4SWolfgang Denk		echo "... 66 MHz PCI" ; \
1983b0e32949SLunsheng Wang	fi ; \
1984b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
1985f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1986b0e32949SLunsheng Wang		echo " slave" ; \
1987b0e32949SLunsheng Wang	else \
1988b0e32949SLunsheng Wang		echo " host" ; \
1989b0e32949SLunsheng Wang	fi
1990f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1991b0e32949SLunsheng Wang
199242d1f039SwdenkMPC8560ADS_config:	unconfig
1993870ceac5SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
199442d1f039Swdenk
19957f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \
199603f5c550SwdenkMPC8541CDS_config:	unconfig
19977f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
19987f3f2bd2SRandy Vinson	@echo "" >$(obj)include/config.h ; \
19997f3f2bd2SRandy Vinson	if [ "$(findstring _legacy_,$@)" ] ; then \
20007f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
20017f3f2bd2SRandy Vinson		echo "... legacy" ; \
20027f3f2bd2SRandy Vinson	fi
2003415a613bSKumar Gala	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
200403f5c550Swdenk
200581f481caSAndy FlemingMPC8544DS_config:	unconfig
200681f481caSAndy Fleming	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
200781f481caSAndy Fleming
20087f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \
2009d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
20107f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
20117f3f2bd2SRandy Vinson	@echo "" >$(obj)include/config.h ; \
20127f3f2bd2SRandy Vinson	if [ "$(findstring _legacy_,$@)" ] ; then \
20137f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
20147f3f2bd2SRandy Vinson		echo "... legacy" ; \
20157f3f2bd2SRandy Vinson	fi
2016415a613bSKumar Gala	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2017d9b94f28SJon Loeliger
20187f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \
201903f5c550SwdenkMPC8555CDS_config:	unconfig
20207f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
20217f3f2bd2SRandy Vinson	@echo "" >$(obj)include/config.h ; \
20227f3f2bd2SRandy Vinson	if [ "$(findstring _legacy_,$@)" ] ; then \
20237f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
20247f3f2bd2SRandy Vinson		echo "... legacy" ; \
20257f3f2bd2SRandy Vinson	fi
2026415a613bSKumar Gala	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
20277abf0c58Swdenk
202867431059SAndy FlemingMPC8568MDS_config:	unconfig
2029acbca876SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
203067431059SAndy Fleming
2031384cc687SwdenkPM854_config:	unconfig
2032f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2033384cc687Swdenk
2034b20d0032SWolfgang DenkPM856_config:	unconfig
2035f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2036b20d0032SWolfgang Denk
2037c15f3120Swdenksbc8540_config \
2038c15f3120Swdenksbc8540_33_config \
2039c15f3120Swdenksbc8540_66_config:	unconfig
2040f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2041c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2042f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2043c15f3120Swdenk		echo "... 66 MHz PCI" ; \
2044c15f3120Swdenk	else \
2045f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
2046c15f3120Swdenk		echo "... 33 MHz PCI" ; \
2047c15f3120Swdenk	fi
2048f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2049c15f3120Swdenk
205011c45ebdSJoe Hammansbc8548_config:		unconfig
205111c45ebdSJoe Hamman	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
205211c45ebdSJoe Hamman
2053466b7410Swdenksbc8560_config \
2054466b7410Swdenksbc8560_33_config \
2055466b7410Swdenksbc8560_66_config:      unconfig
2056f9328639SMarian Balakowicz	@mkdir -p $(obj)include
20578b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2058f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
20598b07a110Swdenk		echo "... 66 MHz PCI" ; \
20608b07a110Swdenk	else \
2061f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
20628b07a110Swdenk		echo "... 33 MHz PCI" ; \
20638b07a110Swdenk	fi
2064f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
20658b07a110Swdenk
206603f5c550Swdenkstxgp3_config:		unconfig
2067f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
206803f5c550Swdenk
2069ee152983SWolfgang Denkstxssa_config		\
2070ee152983SWolfgang Denkstxssa_4M_config:	unconfig
2071ee152983SWolfgang Denk	@mkdir -p $(obj)include
2072ee152983SWolfgang Denk	@if [ "$(findstring _4M_,$@)" ] ; then \
2073ee152983SWolfgang Denk		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2074ee152983SWolfgang Denk		echo "... with 4 MiB flash memory" ; \
2075ee152983SWolfgang Denk	else \
2076ee152983SWolfgang Denk		>$(obj)include/config.h ; \
2077ee152983SWolfgang Denk	fi
2078ee152983SWolfgang Denk	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
207935171dc0SDan Malek
2080d96f41e0SStefan RoeseTQM8540_config		\
2081d96f41e0SStefan RoeseTQM8541_config		\
2082d96f41e0SStefan RoeseTQM8555_config		\
2083f5c5ef4aSwdenkTQM8560_config:		unconfig
2084f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2085a889bd27SWolfgang Denk	@CTYPE=$(subst TQM,,$(@:_config=)); \
2086f9328639SMarian Balakowicz	>$(obj)include/config.h ; \
2087d96f41e0SStefan Roese	echo "... TQM"$${CTYPE}; \
2088f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2089f9328639SMarian Balakowicz	echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2090f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2091f9328639SMarian Balakowicz	echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
20928a783a65SGrant Likely	echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
2093f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
2094f5c5ef4aSwdenk
209542d1f039Swdenk#########################################################################
2096debb7354SJon Loeliger## MPC86xx Systems
2097debb7354SJon Loeliger#########################################################################
2098debb7354SJon Loeliger
20993c89d754SJon LoeligerMPC8610HPCD_config:	unconfig
21003c89d754SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
21013c89d754SJon Loeliger
2102debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
21034ce91774SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2104debb7354SJon Loeliger
2105c646bba6SJoe Hammansbc8641d_config:	unconfig
2106c646bba6SJoe Hamman	@./mkconfig $(@:_config=) ppc mpc86xx sbc8641d
2107debb7354SJon Loeliger
2108debb7354SJon Loeliger#########################################################################
21097ebf7443Swdenk## 74xx/7xx Systems
21107ebf7443Swdenk#########################################################################
21117ebf7443Swdenk
2112c7de829cSwdenkAmigaOneG3SE_config:	unconfig
2113f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2114c7de829cSwdenk
211515647dc7SwdenkBAB7xx_config: unconfig
2116f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
211715647dc7Swdenk
2118c419d1d6SstroeseCPCI750_config:	unconfig
2119f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2120c419d1d6Sstroese
21213a473b2aSwdenkDB64360_config:	unconfig
2122f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
21233a473b2aSwdenk
21243a473b2aSwdenkDB64460_config:	unconfig
2125f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
21263a473b2aSwdenk
212715647dc7SwdenkELPPC_config: unconfig
2128f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
212915647dc7Swdenk
21307ebf7443SwdenkEVB64260_config	\
21317ebf7443SwdenkEVB64260_750CX_config:	unconfig
2132f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
21337ebf7443Swdenk
21344c52783bSroy zangmpc7448hpc2_config:  unconfig
2135ee311214Sroy zang	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
21364c52783bSroy zang
213715647dc7SwdenkP3G4_config: unconfig
2138f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
21397ebf7443Swdenk
21401eac2a71SStefan Roesep3m750_config	\
21411eac2a71SStefan Roesep3m7448_config:		unconfig
21421eac2a71SStefan Roese	@mkdir -p $(obj)include
21431eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
21441eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
21451eac2a71SStefan Roese	else \
21461eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
21471eac2a71SStefan Roese	fi
21481eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
21491eac2a71SStefan Roese
21507ebf7443SwdenkPCIPPC2_config \
21517ebf7443SwdenkPCIPPC6_config: unconfig
2152f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
21537ebf7443Swdenk
215415647dc7SwdenkZUMA_config:	unconfig
2155f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
215612f34241Swdenk
2157f5e0d039SHeiko Schocherppmc7xx_config: unconfig
2158f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2159f5e0d039SHeiko Schocher
21607ebf7443Swdenk#========================================================================
21617ebf7443Swdenk# ARM
21627ebf7443Swdenk#========================================================================
21637ebf7443Swdenk#########################################################################
21647ebf7443Swdenk## StrongARM Systems
21657ebf7443Swdenk#########################################################################
21667ebf7443Swdenk
2167ea66bc88Swdenkassabet_config	:	unconfig
2168f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2169ea66bc88Swdenk
21707ebf7443Swdenkdnp1110_config	:	unconfig
2171f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
21727ebf7443Swdenk
2173855a496fSwdenkgcplus_config	:	unconfig
2174f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2175855a496fSwdenk
2176855a496fSwdenklart_config	:	unconfig
2177f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
2178855a496fSwdenk
21797ebf7443Swdenkshannon_config	:	unconfig
2180f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
21817ebf7443Swdenk
21827ebf7443Swdenk#########################################################################
21832e5983d2Swdenk## ARM92xT Systems
21847ebf7443Swdenk#########################################################################
21857ebf7443Swdenk
2186b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
218743d9616cSwdenk
21883ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
218963e73c9aSwdenk
2190a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2191a56bd922Swdenk
2192a85f9f21Swdenkat91rm9200dk_config	:	unconfig
2193f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
2194a85f9f21Swdenk
2195a85f9f21Swdenkcmc_pu2_config	:	unconfig
2196f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2197a85f9f21Swdenk
2198645da510SWolfgang Denkcsb637_config	:	unconfig
2199f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2200645da510SWolfgang Denk
22010e4018d2SWolfgang Denkmp2usb_config	:	unconfig
2202f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
22030e4018d2SWolfgang Denk
220487cb6862SWolfgang Denk
220574f4304eSWolfgang Denk########################################################################
220687cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
220787cb6862SWolfgang Denkintegratorap_config	\
220887cb6862SWolfgang Denkap_config		\
220987cb6862SWolfgang Denkap966_config		\
221087cb6862SWolfgang Denkap922_config		\
221187cb6862SWolfgang Denkap922_XA10_config	\
221287cb6862SWolfgang Denkap7_config		\
221387cb6862SWolfgang Denkap720t_config		\
221487cb6862SWolfgang Denkap920t_config		\
221587cb6862SWolfgang Denkap926ejs_config		\
221687cb6862SWolfgang Denkap946es_config: unconfig
221796782c63SWolfgang Denk	@board/integratorap/split_by_variant.sh $@
22183d3befa7Swdenk
221987cb6862SWolfgang Denkintegratorcp_config	\
222087cb6862SWolfgang Denkcp_config		\
222187cb6862SWolfgang Denkcp920t_config		\
222287cb6862SWolfgang Denkcp926ejs_config		\
222387cb6862SWolfgang Denkcp946es_config		\
222487cb6862SWolfgang Denkcp1136_config		\
222587cb6862SWolfgang Denkcp966_config		\
222687cb6862SWolfgang Denkcp922_config		\
222787cb6862SWolfgang Denkcp922_XA10_config	\
222887cb6862SWolfgang Denkcp1026_config: unconfig
222996782c63SWolfgang Denk	@board/integratorcp/split_by_variant.sh $@
223025d6712aSwdenk
223199b0d285SWolfgang Denkkb9202_config	:	unconfig
2232f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
223399b0d285SWolfgang Denk
2234f832d8a1Swdenklpd7a400_config \
2235f832d8a1Swdenklpd7a404_config:	unconfig
2236f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
22373d3befa7Swdenk
2238281e00a3Swdenkmx1ads_config	:	unconfig
2239f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2240281e00a3Swdenk
2241281e00a3Swdenkmx1fs2_config	:	unconfig
2242f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2243281e00a3Swdenk
2244ac7eb8a3SWolfgang Denknetstar_32_config	\
2245ac7eb8a3SWolfgang Denknetstar_config:		unconfig
2246f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2247ac7eb8a3SWolfgang Denk	@if [ "$(findstring _32_,$@)" ] ; then \
2248ac7eb8a3SWolfgang Denk		echo "... 32MB SDRAM" ; \
2249f9328639SMarian Balakowicz		echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
2250ac7eb8a3SWolfgang Denk	else \
2251ac7eb8a3SWolfgang Denk		echo "... 64MB SDRAM" ; \
2252f9328639SMarian Balakowicz		echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
2253ac7eb8a3SWolfgang Denk	fi
2254f9328639SMarian Balakowicz	@$(MKCONFIG) -a netstar arm arm925t netstar
2255ac7eb8a3SWolfgang Denk
22562e5983d2Swdenkomap1510inn_config :	unconfig
2257f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
22582e5983d2Swdenk
22591eaeb58eSwdenkomap5912osk_config :	unconfig
2260f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
22611eaeb58eSwdenk
2262c74b2108SSergey Kubushyndavinci_dvevm_config :	unconfig
2263c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2264c74b2108SSergey Kubushyn
2265c74b2108SSergey Kubushyndavinci_schmoogie_config :	unconfig
2266c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2267c74b2108SSergey Kubushyn
2268c74b2108SSergey Kubushyndavinci_sonata_config :	unconfig
2269c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2270c74b2108SSergey Kubushyn
227163e73c9aSwdenkomap1610inn_config \
227263e73c9aSwdenkomap1610inn_cs0boot_config \
227363e73c9aSwdenkomap1610inn_cs3boot_config \
22743ff02c27Swdenkomap1610inn_cs_autoboot_config \
227563e73c9aSwdenkomap1610h2_config \
227663e73c9aSwdenkomap1610h2_cs0boot_config \
22773ff02c27Swdenkomap1610h2_cs3boot_config \
22783ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
2279f9328639SMarian Balakowicz	@mkdir -p $(obj)include
228063e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2281cdd917a4SWolfgang Denk		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2282b79a11ccSwdenk		echo "... configured for CS0 boot"; \
22833ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2284cdd917a4SWolfgang Denk		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
22853ff02c27Swdenk		echo "... configured for CS_AUTO boot"; \
228663e73c9aSwdenk	else \
2287cdd917a4SWolfgang Denk		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2288b79a11ccSwdenk		echo "... configured for CS3 boot"; \
228963e73c9aSwdenk	fi;
2290f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
22916f21347dSwdenk
2292a56bd922Swdenkomap730p2_config \
2293a56bd922Swdenkomap730p2_cs0boot_config \
2294a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
2295f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2296a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2297f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2298a56bd922Swdenk		echo "... configured for CS0 boot"; \
2299a56bd922Swdenk	else \
2300f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2301a56bd922Swdenk		echo "... configured for CS3 boot"; \
2302a56bd922Swdenk	fi;
2303f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2304a56bd922Swdenk
230532cb2c70SWolfgang Denksbc2410x_config: unconfig
2306f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
230732cb2c70SWolfgang Denk
2308281e00a3Swdenkscb9328_config	:	unconfig
2309f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2310281e00a3Swdenk
23117ebf7443Swdenksmdk2400_config	:	unconfig
2312f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
23137ebf7443Swdenk
23147ebf7443Swdenksmdk2410_config	:	unconfig
2315f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
23167ebf7443Swdenk
23172d24a3a7SwdenkSX1_config :		unconfig
2318f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t sx1
23192d24a3a7Swdenk
2320b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
232143d9616cSwdenktrab_config \
2322b0639ca3Swdenktrab_bigram_config \
2323b0639ca3Swdenktrab_bigflash_config \
2324f54ebdfaSwdenktrab_old_config:	unconfig
2325f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2326f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
2327f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2328b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
2329f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2330f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
2331b0639ca3Swdenk		  echo "... with 8 MB Flash, 32 MB RAM" ; \
2332b0639ca3Swdenk		}
2333b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
2334f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2335f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2336b0639ca3Swdenk		  echo "... with 16 MB Flash, 16 MB RAM" ; \
2337f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2338b0639ca3Swdenk		}
2339f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
2340f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2341f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2342b2001f27Swdenk		  echo "... with 8 MB Flash, 16 MB RAM" ; \
2343f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
234443d9616cSwdenk		}
2345f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
23467ebf7443Swdenk
23471cb8e980SwdenkVCMA9_config	:	unconfig
2348f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
23491cb8e980Swdenk
235087cb6862SWolfgang Denk#========================================================================
235187cb6862SWolfgang Denk# ARM supplied Versatile development boards
235287cb6862SWolfgang Denk#========================================================================
235387cb6862SWolfgang Denkversatile_config	\
235487cb6862SWolfgang Denkversatileab_config	\
235587cb6862SWolfgang Denkversatilepb_config :	unconfig
235696782c63SWolfgang Denk	@board/versatile/split_by_variant.sh $@
2357074cff0dSwdenk
23583c2b3d45Swdenkvoiceblue_smallflash_config	\
23593c2b3d45Swdenkvoiceblue_config:	unconfig
2360f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2361f9328639SMarian Balakowicz	@mkdir -p $(obj)board/voiceblue
23623c2b3d45Swdenk	@if [ "$(findstring _smallflash_,$@)" ] ; then \
23633c2b3d45Swdenk		echo "... boot from lower flash bank" ; \
2364f9328639SMarian Balakowicz		echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2365f9328639SMarian Balakowicz		echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
23663c2b3d45Swdenk	else \
23673c2b3d45Swdenk		echo "... boot from upper flash bank" ; \
2368f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
2369f9328639SMarian Balakowicz		echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
23703c2b3d45Swdenk	fi
2371f9328639SMarian Balakowicz	@$(MKCONFIG) -a voiceblue arm arm925t voiceblue
23723c2b3d45Swdenk
237316b013e7Swdenkcm4008_config	:	unconfig
2374f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
237516b013e7Swdenk
237616b013e7Swdenkcm41xx_config	:	unconfig
2377f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
237816b013e7Swdenk
23790c32d96dSWolfgang Denkgth2_config		:	unconfig
2380f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2381f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2382f9328639SMarian Balakowicz	@echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2383f9328639SMarian Balakowicz	@$(MKCONFIG) -a gth2 mips mips gth2
23840c32d96dSWolfgang Denk
2385074cff0dSwdenk#########################################################################
2386074cff0dSwdenk## S3C44B0 Systems
2387074cff0dSwdenk#########################################################################
2388074cff0dSwdenk
2389074cff0dSwdenkB2_config	:	unconfig
2390f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2391074cff0dSwdenk
23927ebf7443Swdenk#########################################################################
23937ebf7443Swdenk## ARM720T Systems
23947ebf7443Swdenk#########################################################################
23957ebf7443Swdenk
2396c570b2fdSWolfgang Denkarmadillo_config:	unconfig
2397f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2398c570b2fdSWolfgang Denk
23997ebf7443Swdenkep7312_config	:	unconfig
2400f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
24017ebf7443Swdenk
24022d24a3a7Swdenkimpa7_config	:	unconfig
2403f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
24042d24a3a7Swdenk
24052d1a537dSwdenkmodnet50_config :	unconfig
2406f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
24072d1a537dSwdenk
240839539887Swdenkevb4510_config :	unconfig
2409f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
241039539887Swdenk
24116bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
2412b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2413b0d8f5bfSPeter Pearse
2414b0d8f5bfSPeter PearseSMN42_config	:	unconfig
2415b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
24166bd2447eSGary Jennejohn
24177ebf7443Swdenk#########################################################################
241843d9616cSwdenk## XScale Systems
24197ebf7443Swdenk#########################################################################
24207ebf7443Swdenk
242120787e23Swdenkadsvix_config	:	unconfig
2422f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa adsvix
242320787e23Swdenk
2424fabd46acSwdenkcerf250_config :	unconfig
2425f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
2426fabd46acSwdenk
24277ebf7443Swdenkcradle_config	:	unconfig
2428f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
24297ebf7443Swdenk
24307ebf7443Swdenkcsb226_config	:	unconfig
2431f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
24327ebf7443Swdenk
24330be248faSWolfgang Denkdelta_config :
2434f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
24350be248faSWolfgang Denk
243643d9616cSwdenkinnokom_config	:	unconfig
2437f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
243843d9616cSwdenk
24392d5b561eSwdenkixdp425_config	:	unconfig
2440f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
24412d5b561eSwdenk
2442ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
2443f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2444ba94a1bbSWolfgang Denk
244543d9616cSwdenklubbock_config	:	unconfig
2446f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
244743d9616cSwdenk
24485720df78SHeiko Schocherpleb2_config	:	unconfig
2449f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
24505720df78SHeiko Schocher
245152f52c14Swdenklogodl_config	:	unconfig
2452f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
245352f52c14Swdenk
24549d8d5a5bSStefan Roesepdnb3_config \
24559d8d5a5bSStefan Roesescpu_config:    unconfig
2456cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
24579d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
2458cdd917a4SWolfgang Denk		echo "#define CONFIG_SCPU"      >>$(obj)include/config.h ; \
24599d8d5a5bSStefan Roese		echo "... on SCPU board variant" ; \
24609d8d5a5bSStefan Roese	else \
2461cdd917a4SWolfgang Denk		>$(obj)include/config.h ; \
24629d8d5a5bSStefan Roese	fi
24639d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2464ba94a1bbSWolfgang Denk
2465f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
2466f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2467f57f70aaSWolfgang Denk
24685e5803e1Sstefano babictrizepsiv_config	:	unconfig
24695e5803e1Sstefano babic	@$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
24705e5803e1Sstefano babic
24713e38691eSwdenkwepep250_config	:	unconfig
2472f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
24733e38691eSwdenk
24744ec3a7f0Swdenkxaeniax_config	:	unconfig
2475f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
24764ec3a7f0Swdenk
2477efa329cbSwdenkxm250_config	:	unconfig
2478f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
2479efa329cbSwdenk
2480ca0e7748Swdenkxsengine_config :	unconfig
2481f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
2482ca0e7748Swdenk
2483e0269579SMarkus Klotzbücherzylonite_config :
2484f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
2485e0269579SMarkus Klotzbücher
24868ed96046Swdenk#########################################################################
24878ed96046Swdenk## ARM1136 Systems
24888ed96046Swdenk#########################################################################
24898ed96046Swdenkomap2420h4_config	: unconfig
2490f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
24915ca9881aSPeter Pearse
24925ca9881aSPeter Pearseapollon_config		: unconfig
24935ca9881aSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon
24948ed96046Swdenk
24952262cfeeSwdenk#========================================================================
24962262cfeeSwdenk# i386
24972262cfeeSwdenk#========================================================================
24982262cfeeSwdenk#########################################################################
24992262cfeeSwdenk## AMD SC520 CDP
25002262cfeeSwdenk#########################################################################
25012262cfeeSwdenksc520_cdp_config	:	unconfig
2502f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
25032262cfeeSwdenk
25047a8e9bedSwdenksc520_spunk_config	:	unconfig
2505f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
25067a8e9bedSwdenk
25077a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
2508f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
25097a8e9bedSwdenk
251043d9616cSwdenk#========================================================================
251143d9616cSwdenk# MIPS
251243d9616cSwdenk#========================================================================
25137ebf7443Swdenk#########################################################################
251443d9616cSwdenk## MIPS32 4Kc
251543d9616cSwdenk#########################################################################
251643d9616cSwdenk
2517e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2518e0ac62d7Swdenk
2519e0ac62d7Swdenkincaip_100MHz_config	\
2520e0ac62d7Swdenkincaip_133MHz_config	\
2521e0ac62d7Swdenkincaip_150MHz_config	\
252243d9616cSwdenkincaip_config: unconfig
2523f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2524f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2525e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
2526f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2527e0ac62d7Swdenk		  echo "... with 100MHz system clock" ; \
2528e0ac62d7Swdenk		}
2529e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
2530f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2531e0ac62d7Swdenk		  echo "... with 133MHz system clock" ; \
2532e0ac62d7Swdenk		}
2533e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
2534f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2535e0ac62d7Swdenk		  echo "... with 150MHz system clock" ; \
2536e0ac62d7Swdenk		}
2537f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2538e0ac62d7Swdenk
2539f4863a7aSwdenktb0229_config: unconfig
2540f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
2541f4863a7aSwdenk
2542e0ac62d7Swdenk#########################################################################
254369459791Swdenk## MIPS32 AU1X00
254469459791Swdenk#########################################################################
254569459791Swdenkdbau1000_config		:	unconfig
2546f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2547f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2548f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2549f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
255069459791Swdenk
255169459791Swdenkdbau1100_config		:	unconfig
2552f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2553f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2554f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2555f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
255669459791Swdenk
255769459791Swdenkdbau1500_config		:	unconfig
2558f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2559f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2560f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2561f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
256269459791Swdenk
2563ff36fd85Swdenkdbau1550_config		:	unconfig
2564f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2565f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2566f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2567f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2568ff36fd85Swdenk
2569ff36fd85Swdenkdbau1550_el_config	:	unconfig
2570f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2571f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2572f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2573f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2574ff36fd85Swdenk
2575265817c7SWolfgang Denkpb1000_config		:	unconfig
2576f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2577f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2578f9328639SMarian Balakowicz	@echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2579f9328639SMarian Balakowicz	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
2580265817c7SWolfgang Denk
258169459791Swdenk#########################################################################
2582e0ac62d7Swdenk## MIPS64 5Kc
2583e0ac62d7Swdenk#########################################################################
258443d9616cSwdenk
25853e38691eSwdenkpurple_config :		unconfig
2586f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
258743d9616cSwdenk
25884a551709Swdenk#========================================================================
25894a551709Swdenk# Nios
25904a551709Swdenk#========================================================================
25914a551709Swdenk#########################################################################
25924a551709Swdenk## Nios32
25934a551709Swdenk#########################################################################
25944a551709Swdenk
2595c935d3bdSwdenkDK1C20_safe_32_config		\
2596c935d3bdSwdenkDK1C20_standard_32_config	\
25974a551709SwdenkDK1C20_config:	unconfig
2598f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2599f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2600c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2601f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2602c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
2603c935d3bdSwdenk		}
2604c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2605f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2606c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
2607c935d3bdSwdenk		}
2608c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
2609f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2610c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2611c935d3bdSwdenk		}
2612f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2613c935d3bdSwdenk
2614c935d3bdSwdenkDK1S10_safe_32_config		\
2615c935d3bdSwdenkDK1S10_standard_32_config	\
2616ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
2617c935d3bdSwdenkDK1S10_config:	unconfig
2618f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2619f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2620c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2621f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2622c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
2623c935d3bdSwdenk		}
2624c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2625f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2626c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
2627c935d3bdSwdenk		}
2628ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2629f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2630ec4c544bSwdenk		  echo "... NIOS 'mtx_ldk_20' configuration" ; \
2631ec4c544bSwdenk		}
2632c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
2633f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2634c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2635c935d3bdSwdenk		}
2636f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
26374a551709Swdenk
2638aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
2639aaf224abSwdenkADNPESC1_base_32_config		\
2640aaf224abSwdenkADNPESC1_config: unconfig
2641f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2642f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2643aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
2644f9328639SMarian Balakowicz		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2645aaf224abSwdenk		  echo "... DNP/EVA2 configuration" ; \
2646aaf224abSwdenk		}
2647aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
2648f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2649aaf224abSwdenk		  echo "... NIOS 'base_32' configuration" ; \
2650aaf224abSwdenk		}
2651aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2652f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2653aaf224abSwdenk		  echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2654aaf224abSwdenk		}
2655f9328639SMarian Balakowicz	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2656aaf224abSwdenk
26575c952cf0Swdenk#########################################################################
26585c952cf0Swdenk## Nios-II
26595c952cf0Swdenk#########################################################################
26605c952cf0Swdenk
26619cc83378SScott McNuttEP1C20_config : unconfig
2662f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
26639cc83378SScott McNutt
26649cc83378SScott McNuttEP1S10_config : unconfig
2665f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
26669cc83378SScott McNutt
26679cc83378SScott McNuttEP1S40_config : unconfig
2668f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
26699cc83378SScott McNutt
26705c952cf0SwdenkPK1C20_config : unconfig
2671f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
26725c952cf0Swdenk
26735c952cf0SwdenkPCI5441_config : unconfig
2674f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
26754a551709Swdenk
2676507bbe3eSwdenk#========================================================================
2677507bbe3eSwdenk# MicroBlaze
2678507bbe3eSwdenk#========================================================================
2679507bbe3eSwdenk#########################################################################
2680507bbe3eSwdenk## Microblaze
2681507bbe3eSwdenk#########################################################################
2682507bbe3eSwdenksuzaku_config:	unconfig
2683f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2684f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2685f9328639SMarian Balakowicz	@echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2686f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2687507bbe3eSwdenk
2688cfc67116SMichal Simekml401_config:	unconfig
2689cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2690cdd917a4SWolfgang Denk	@ >$(obj)include/config.h
2691cdd917a4SWolfgang Denk	@echo "#define CONFIG_ML401 1" >> $(obj)include/config.h
269290b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2693cfc67116SMichal Simek
269417980495SMichal Simekxupv2p_config:	unconfig
2695cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2696cdd917a4SWolfgang Denk	@ >$(obj)include/config.h
2697cdd917a4SWolfgang Denk	@echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h
269890b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
269917980495SMichal Simek
27003e38691eSwdenk#########################################################################
27010afe519aSWolfgang Denk## Blackfin
27020afe519aSWolfgang Denk#########################################################################
2703ef26a08fSAubrey.Libf533-ezkit_config:	unconfig
2704ef26a08fSAubrey.Li	@$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
27050afe519aSWolfgang Denk
2706ef26a08fSAubrey.Libf533-stamp_config:	unconfig
2707ef26a08fSAubrey.Li	@$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
27080afe519aSWolfgang Denk
270926bf7decSAubrey Libf537-stamp_config:	unconfig
271026bf7decSAubrey Li	@$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
271126bf7decSAubrey Li
271265458987SAubrey Libf561-ezkit_config:	unconfig
271365458987SAubrey Li	@$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
27140afe519aSWolfgang Denk
27155e3b0bc1SHaavard Skinnemoen#========================================================================
27165e3b0bc1SHaavard Skinnemoen# AVR32
27175e3b0bc1SHaavard Skinnemoen#========================================================================
27185e3b0bc1SHaavard Skinnemoen#########################################################################
27195e3b0bc1SHaavard Skinnemoen## AT32AP7xxx
27205e3b0bc1SHaavard Skinnemoen#########################################################################
27215e3b0bc1SHaavard Skinnemoen
27225e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
272336f28f8aSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
27245e3b0bc1SHaavard Skinnemoen
2725667568dbSHaavard Skinnemoenatstk1003_config	:	unconfig
2726667568dbSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2727667568dbSHaavard Skinnemoen
272864ff2357SHaavard Skinnemoenatstk1004_config	:	unconfig
272964ff2357SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
27300afe519aSWolfgang Denk
27310afe519aSWolfgang Denk#########################################################################
27320afe519aSWolfgang Denk#########################################################################
27333e38691eSwdenk#########################################################################
27347ebf7443Swdenk
273569df3c4dSNobuhiro Iwamatsu#########################################################################
273669df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH)
273769df3c4dSNobuhiro Iwamatsu#########################################################################
273869df3c4dSNobuhiro Iwamatsums7750se_config: unconfig
273969df3c4dSNobuhiro Iwamatsu	@ >include/config.h
274069df3c4dSNobuhiro Iwamatsu	@echo "#define CONFIG_MS7750SE 1" >> include/config.h
274169df3c4dSNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh4 ms7750se
274269df3c4dSNobuhiro Iwamatsu
2743d91ea45dSNobuhiro Iwamatsums7722se_config :       unconfig
2744d91ea45dSNobuhiro Iwamatsu	@ >include/config.h
2745d91ea45dSNobuhiro Iwamatsu	@echo "#define CONFIG_MS7722SE 1" >> include/config.h
2746d91ea45dSNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh4 ms7722se
27477a8e9bedSwdenk
27487a8e9bedSwdenk#########################################################################
27497ebf7443Swdenk#########################################################################
27507ebf7443Swdenk#########################################################################
27517ebf7443Swdenk
2752228f29acSwdenkclean:
2753f9328639SMarian Balakowicz	find $(OBJTREE) -type f \
27547f70e853Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
27557ebf7443Swdenk		-o -name '*.o'  -o -name '*.a'  \) -print \
27567ebf7443Swdenk		| xargs rm -f
2757f9328639SMarian Balakowicz	rm -f $(obj)examples/hello_world $(obj)examples/timer \
2758f9328639SMarian Balakowicz	      $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2759f9328639SMarian Balakowicz	      $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2760d214fbbdSWolfgang Denk	      $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2761f9328639SMarian Balakowicz	      $(obj)examples/test_burst
2762f9328639SMarian Balakowicz	rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2763566a494fSHeiko Schocher		$(obj)tools/gen_eth_addr $(obj)tools/ubsha1
2764f9328639SMarian Balakowicz	rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2765f9328639SMarian Balakowicz	rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2766f9328639SMarian Balakowicz	rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2767f9328639SMarian Balakowicz	rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2768f9328639SMarian Balakowicz	rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2769f9328639SMarian Balakowicz	rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2770f9328639SMarian Balakowicz	rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2771f9328639SMarian Balakowicz	rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2772f9328639SMarian Balakowicz	rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
27738440bb14SAubrey Li	rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
277465458987SAubrey Li	rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2775f9328639SMarian Balakowicz	rm -f $(obj)include/bmp_logo.h
27768318fbf8SMarian Balakowicz	rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2777500856ebSRafal Jaworowski	rm -f $(obj)api_examples/demo
27787ebf7443Swdenk
27797ebf7443Swdenkclobber:	clean
2780f9328639SMarian Balakowicz	find $(OBJTREE) -type f \( -name .depend \
27814c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
27824c0d4c3bSwdenk		-print0 \
27834c0d4c3bSwdenk		| xargs -0 rm -f
2784f9328639SMarian Balakowicz	rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2785f9328639SMarian Balakowicz	rm -fr $(obj)*.*~
2786f9328639SMarian Balakowicz	rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2787566a494fSHeiko Schocher	rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
2788f9328639SMarian Balakowicz	rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2789f9328639SMarian Balakowicz	rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
27908318fbf8SMarian Balakowicz	[ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2791500856ebSRafal Jaworowski	find $(obj)api_examples -lname "*" -print | xargs rm -f
2792500856ebSRafal Jaworowski	rm -f $(obj)api_examples/demo
27937ebf7443Swdenk
2794f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
27957ebf7443Swdenkmrproper \
27967ebf7443Swdenkdistclean:	clobber unconfig
2797f9328639SMarian Balakowiczelse
2798f9328639SMarian Balakowiczmrproper \
2799f9328639SMarian Balakowiczdistclean:	clobber unconfig
2800f9328639SMarian Balakowicz	rm -rf $(OBJTREE)/*
2801f9328639SMarian Balakowiczendif
28027ebf7443Swdenk
28037ebf7443Swdenkbackup:
28047ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
28057ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
28067ebf7443Swdenk
28077ebf7443Swdenk#########################################################################
2808