xref: /openbmc/u-boot/Makefile (revision 6341d9d7)
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
579*6341d9d7SHeiko Schochermunices_config:	unconfig
580*6341d9d7SHeiko Schocher	@ >include/config.h
581*6341d9d7SHeiko Schocher	@$(MKCONFIG) -a munices ppc mpc5xxx munices
582*6341d9d7SHeiko Schocher
583df04a3dfSWolfgang Denko2dnt_config:
584f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
585df04a3dfSWolfgang Denk
5865e4b3361SStefan Roesepf5200_config:  unconfig
587f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
5885e4b3361SStefan Roese
58989394047SwdenkPM520_config \
59089394047SwdenkPM520_DDR_config \
59189394047SwdenkPM520_ROMBOOT_config \
59289394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
593f9328639SMarian Balakowicz	@mkdir -p $(obj)include
594f9328639SMarian Balakowicz	@ >$(obj)include/config.h
59589394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
596f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
59789394047Swdenk		  echo "... DDR memory revision" ; \
59889394047Swdenk		}
59989394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
600f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
60189394047Swdenk		  echo "... booting from 8-bit flash" ; \
60289394047Swdenk		}
603f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
60489394047Swdenk
6056624b687SWolfgang Denksmmaco4_config: unconfig
606f9328639SMarian Balakowicz	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
6079cdc8386SWolfgang Denk
60886b116b1SBartlomiej Siekacm5200_config:	unconfig
60986b116b1SBartlomiej Sieka	@./mkconfig -a cm5200 ppc mpc5xxx cm5200
610fa1df308SBartlomiej Sieka
6119cdc8386SWolfgang Denkspieval_config:	unconfig
612f9328639SMarian Balakowicz	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
6139cdc8386SWolfgang Denk
61445a212c4SWolfgang DenkTB5200_B_config \
615b87dfd28SWolfgang DenkTB5200_config:	unconfig
616f9328639SMarian Balakowicz	@mkdir -p $(obj)include
61745a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
618f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
61945a212c4SWolfgang Denk		  echo "... with MPC5200B processor" ; \
62045a212c4SWolfgang Denk		}
621f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
622b87dfd28SWolfgang Denk
623d4ca31c4SwdenkMINI5200_config	\
624d4ca31c4SwdenkEVAL5200_config	\
625d4ca31c4SwdenkTOP5200_config:	unconfig
626f9328639SMarian Balakowicz	@mkdir -p $(obj)include
627f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
628f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
629d4ca31c4Swdenk
6306c7a1408SwdenkTotal5100_config		\
6316c7a1408SwdenkTotal5200_config		\
6326c7a1408SwdenkTotal5200_lowboot_config	\
6336c7a1408SwdenkTotal5200_Rev2_config		\
6346c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
635f9328639SMarian Balakowicz	@mkdir -p $(obj)include
636f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
637f9328639SMarian Balakowicz	@ >$(obj)include/config.h
6386c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
639f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
6406c7a1408Swdenk		  echo "... with MGT5100 processor" ; \
6416c7a1408Swdenk		}
6426c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
643f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
6446c7a1408Swdenk		  echo "... with MPC5200 processor" ; \
6456c7a1408Swdenk		}
6466c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
647f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
6486c7a1408Swdenk		  echo "... revision 1 board" ; \
6496c7a1408Swdenk		}
6506c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
651f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
6526c7a1408Swdenk		  echo "... revision 2 board" ; \
6536c7a1408Swdenk		}
6546c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
655f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
6566c7a1408Swdenk		  echo "... with lowboot configuration" ; \
6576c7a1408Swdenk		}
658f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
6596c7a1408Swdenk
6605196a7a0SWolfgang Denkcam5200_config \
661d9384de2SMarian Balakowiczcam5200_niosflash_config \
6625196a7a0SWolfgang Denkfo300_config \
6635196a7a0SWolfgang DenkMiniFAP_config \
6645078cce8SWolfgang DenkTQM5200S_config \
6655078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
6665196a7a0SWolfgang DenkTQM5200_B_config \
6675196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
6685196a7a0SWolfgang DenkTQM5200_config	\
6695196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
670f9328639SMarian Balakowicz	@mkdir -p $(obj)include
671f9328639SMarian Balakowicz	@mkdir -p $(obj)board/tqm5200
672f9328639SMarian Balakowicz	@ >$(obj)include/config.h
673135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
674f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
675f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
676f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
677135ae006SWolfgang Denk		  echo "... TQM5200S on Cam5200" ; \
6785078cce8SWolfgang Denk		}
679d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
680d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
681d9384de2SMarian Balakowicz		  echo "... with NIOS flash driver" ; \
682d9384de2SMarian Balakowicz		}
6836d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
684f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
6856d3bc9b8SMarian Balakowicz		  echo "... TQM5200 on FO300" ; \
6866d3bc9b8SMarian Balakowicz		}
687cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
688f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
68945a212c4SWolfgang Denk		  echo "... TQM5200_AC on MiniFAP" ; \
690978b1096SWolfgang Denk		}
691cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
692f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
693cd65a3dcSWolfgang Denk		  echo "... on a STK52XX.100 base board" ; \
69456523f12Swdenk		}
6955078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
696f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
6975078cce8SWolfgang Denk		}
6985078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
699f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
700f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
70145a212c4SWolfgang Denk		}
702978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
703f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
704978b1096SWolfgang Denk		}
705f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
7066dedf3d4SHeiko Schocheruc101_config:		unconfig
7076dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
70853d4a498SBartlomiej Siekamotionpro_config:	unconfig
70953d4a498SBartlomiej Sieka	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
71053d4a498SBartlomiej Sieka
71156523f12Swdenk
712945af8d7Swdenk#########################################################################
7138993e54bSRafal Jaworowski## MPC512x Systems
7148993e54bSRafal Jaworowski#########################################################################
7158993e54bSRafal Jaworowskiads5121_config: unconfig
7168993e54bSRafal Jaworowski	@$(MKCONFIG) ads5121 ppc mpc512x ads5121
7178993e54bSRafal Jaworowski
7188993e54bSRafal Jaworowski
7198993e54bSRafal Jaworowski#########################################################################
7207ebf7443Swdenk## MPC8xx Systems
7217ebf7443Swdenk#########################################################################
7227ebf7443Swdenk
7232d24a3a7SwdenkAdder_config    \
7242d24a3a7SwdenkAdder87x_config \
72526238132SwdenkAdderII_config  \
7262d24a3a7Swdenk	:		unconfig
727f9328639SMarian Balakowicz	@mkdir -p $(obj)include
72826238132Swdenk	$(if $(findstring AdderII,$@), \
729f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
730f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
7312d24a3a7Swdenk
73216c8d5e7SWolfgang DenkAdderUSB_config:	unconfig
73316c8d5e7SWolfgang Denk	@./mkconfig -a AdderUSB ppc mpc8xx adder
73416c8d5e7SWolfgang Denk
735180d3f74SwdenkADS860_config     \
736180d3f74SwdenkFADS823_config    \
737180d3f74SwdenkFADS850SAR_config \
738180d3f74SwdenkMPC86xADS_config  \
7391114257cSwdenkMPC885ADS_config  \
740180d3f74SwdenkFADS860T_config:	unconfig
741f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
7427ebf7443Swdenk
7437ebf7443SwdenkAMX860_config	:	unconfig
744f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
7457ebf7443Swdenk
7467ebf7443Swdenkc2mon_config:		unconfig
747f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
7487ebf7443Swdenk
7497ebf7443SwdenkCCM_config:		unconfig
750f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
7517ebf7443Swdenk
7527ebf7443Swdenkcogent_mpc8xx_config:	unconfig
753f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
7547ebf7443Swdenk
7553bac3513SwdenkELPT860_config:		unconfig
756f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
7573bac3513Swdenk
75884c960ceSWolfgang DenkEP88x_config:		unconfig
759f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
76084c960ceSWolfgang Denk
7617ebf7443SwdenkESTEEM192E_config:	unconfig
762f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
7637ebf7443Swdenk
7647ebf7443SwdenkETX094_config	:	unconfig
765f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
7667ebf7443Swdenk
7677ebf7443SwdenkFLAGADM_config:	unconfig
768f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
7697ebf7443Swdenk
7707aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
7717aa78614Swdenk
7727aa78614SwdenkGEN860T_SC_config	\
7737ebf7443SwdenkGEN860T_config: unconfig
774f9328639SMarian Balakowicz	@mkdir -p $(obj)include
775f9328639SMarian Balakowicz	@ >$(obj)include/config.h
7767aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
777f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
7787aa78614Swdenk		  echo "With reduced H/W feature set (SC)..." ; \
7797aa78614Swdenk		}
780f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
7817ebf7443Swdenk
7827ebf7443SwdenkGENIETV_config:	unconfig
783f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
7847ebf7443Swdenk
7857ebf7443SwdenkGTH_config:	unconfig
786f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
7877ebf7443Swdenk
7887ebf7443Swdenkhermes_config	:	unconfig
789f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
7907ebf7443Swdenk
791c40b2956SwdenkHMI10_config	:	unconfig
792f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
793c40b2956Swdenk
7947ebf7443SwdenkIAD210_config: unconfig
795f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
7967ebf7443Swdenk
7977ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
7987ebf7443Swdenk
7997ebf7443SwdenkICU862_100MHz_config	\
8007ebf7443SwdenkICU862_config: unconfig
801f9328639SMarian Balakowicz	@mkdir -p $(obj)include
802f9328639SMarian Balakowicz	@ >$(obj)include/config.h
8037ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
804f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
8057ebf7443Swdenk		  echo "... with 100MHz system clock" ; \
8067ebf7443Swdenk		}
807f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
8087ebf7443Swdenk
8097ebf7443SwdenkIP860_config	:	unconfig
810f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
8117ebf7443Swdenk
8127ebf7443SwdenkIVML24_256_config \
8137ebf7443SwdenkIVML24_128_config \
8147ebf7443SwdenkIVML24_config:	unconfig
815f9328639SMarian Balakowicz	@mkdir -p $(obj)include
816f9328639SMarian Balakowicz	@ >$(obj)include/config.h
8177ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
818f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
8197ebf7443Swdenk		 }
8207ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
821f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
8227ebf7443Swdenk		 }
8237ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
824f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
8257ebf7443Swdenk		 }
826f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
8277ebf7443Swdenk
8287ebf7443SwdenkIVMS8_256_config \
8297ebf7443SwdenkIVMS8_128_config \
8307ebf7443SwdenkIVMS8_config:	unconfig
831f9328639SMarian Balakowicz	@mkdir -p $(obj)include
832f9328639SMarian Balakowicz	@ >$(obj)include/config.h
8337ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
834f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
8357ebf7443Swdenk		 }
8367ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
837f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
8387ebf7443Swdenk		 }
8397ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
840f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
8417ebf7443Swdenk		 }
842f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
8437ebf7443Swdenk
84456f94be3SwdenkKUP4K_config	:	unconfig
845f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
8460608e04dSwdenk
8470608e04dSwdenkKUP4X_config    :       unconfig
848f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
84956f94be3Swdenk
8507ebf7443SwdenkLANTEC_config	:	unconfig
851f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
8527ebf7443Swdenk
8537ebf7443Swdenklwmon_config:		unconfig
854f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
8557ebf7443Swdenk
8567ebf7443SwdenkMBX_config	\
8577ebf7443SwdenkMBX860T_config:	unconfig
858f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
8597ebf7443Swdenk
860381e4e63SHeiko Schochermgsuvd_config:		unconfig
861381e4e63SHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
862381e4e63SHeiko Schocher
8637ebf7443SwdenkMHPC_config:		unconfig
864f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
8657ebf7443Swdenk
8667ebf7443SwdenkMVS1_config :		unconfig
867f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
8687ebf7443Swdenk
869993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
870993cad93Swdenk
871993cad93SwdenkNETVIA_V2_config \
8727ebf7443SwdenkNETVIA_config:		unconfig
873f9328639SMarian Balakowicz	@mkdir -p $(obj)include
874f9328639SMarian Balakowicz	@ >$(obj)include/config.h
875993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
876f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
877993cad93Swdenk		  echo "... Version 1" ; \
878993cad93Swdenk		 }
879993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
880f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
881993cad93Swdenk		  echo "... Version 2" ; \
882993cad93Swdenk		 }
883f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
8847ebf7443Swdenk
885c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
886c26e454dSwdenk
887c26e454dSwdenkNETPHONE_V2_config \
88804a85b3bSwdenkNETPHONE_config:	unconfig
889f9328639SMarian Balakowicz	@mkdir -p $(obj)include
890f9328639SMarian Balakowicz	@ >$(obj)include/config.h
891c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
892f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
893c26e454dSwdenk		 }
894c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
895f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
896c26e454dSwdenk		 }
897f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
89804a85b3bSwdenk
89979fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
90004a85b3bSwdenk
90179fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
90279fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
90379fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
90479fa88f3SwdenkNETTA_SWAPHOOK_config \
90579fa88f3SwdenkNETTA_ISDN_6412_config \
90604a85b3bSwdenkNETTA_ISDN_config \
90779fa88f3SwdenkNETTA_6412_config \
90804a85b3bSwdenkNETTA_config:		unconfig
909f9328639SMarian Balakowicz	@mkdir -p $(obj)include
910f9328639SMarian Balakowicz	@ >$(obj)include/config.h
91179fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
912f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
91304a85b3bSwdenk		 }
91479fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
915f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
91679fa88f3Swdenk		 }
91779fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
918f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
91979fa88f3Swdenk		 }
92079fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
921f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
92279fa88f3Swdenk		 }
92379fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
924f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
92579fa88f3Swdenk		 }
92679fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
927f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
92879fa88f3Swdenk		 }
929f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
93004a85b3bSwdenk
93179fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
93279fa88f3Swdenk
93379fa88f3SwdenkNETTA2_V2_config \
93479fa88f3SwdenkNETTA2_config:		unconfig
935f9328639SMarian Balakowicz	@mkdir -p $(obj)include
936f9328639SMarian Balakowicz	@ >$(obj)include/config.h
93779fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
938f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
93979fa88f3Swdenk		 }
94079fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
941f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
94279fa88f3Swdenk		 }
943f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
94479fa88f3Swdenk
945a367d426Sdzu@denx.deNC650_Rev1_config \
946a367d426Sdzu@denx.deNC650_Rev2_config \
947a367d426Sdzu@denx.deCP850_config:	unconfig
948f9328639SMarian Balakowicz	@mkdir -p $(obj)include
949f9328639SMarian Balakowicz	@ >$(obj)include/config.h
950a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
951f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
952f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
953a367d426Sdzu@denx.de		 }
954a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
955f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
956a367d426Sdzu@denx.de		 }
957a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
958f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
959a367d426Sdzu@denx.de		 }
960f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
9617ca202f5Swdenk
9627ebf7443SwdenkNX823_config:		unconfig
963f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
9647ebf7443Swdenk
9657ebf7443Swdenkpcu_e_config:		unconfig
966f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
9677ebf7443Swdenk
9683bbc899fSwdenkQS850_config:	unconfig
969f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
9703bbc899fSwdenk
9713bbc899fSwdenkQS823_config:	unconfig
972f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
9733bbc899fSwdenk
9743bbc899fSwdenkQS860T_config:	unconfig
975f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
9763bbc899fSwdenk
977da93ed81Swdenkquantum_config:	unconfig
978f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
979da93ed81Swdenk
9807ebf7443SwdenkR360MPI_config:	unconfig
981f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
9827ebf7443Swdenk
983682011ffSwdenkRBC823_config:	unconfig
984f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
985682011ffSwdenk
9867ebf7443SwdenkRPXClassic_config:	unconfig
987f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
9887ebf7443Swdenk
9897ebf7443SwdenkRPXlite_config:		unconfig
990f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
9917ebf7443Swdenk
992e63c8ee3SwdenkRPXlite_DW_64_config		\
993e63c8ee3SwdenkRPXlite_DW_LCD_config		\
994e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
995e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
996e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config      \
997e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
998e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config  \
999e63c8ee3SwdenkRPXlite_DW_config:	unconfig
1000f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1001f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1002e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
1003f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
1004e63c8ee3Swdenk		  echo "... with 64MHz system clock ..."; \
1005e63c8ee3Swdenk		}
1006e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1007f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1008f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1009e63c8ee3Swdenk		  echo "... with LCD display ..."; \
1010e63c8ee3Swdenk		}
1011e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
1012f9328639SMarian Balakowicz		{ echo "#define  CFG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
1013e63c8ee3Swdenk		  echo "... with ENV in NVRAM ..."; \
1014e63c8ee3Swdenk		}
1015f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1016e63c8ee3Swdenk
101773a8b27cSwdenkrmu_config:	unconfig
1018f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
101973a8b27cSwdenk
10207ebf7443SwdenkRRvision_config:	unconfig
1021f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
10227ebf7443Swdenk
10237ebf7443SwdenkRRvision_LCD_config:	unconfig
1024f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1025f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1026f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1027f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
10287ebf7443Swdenk
10297ebf7443SwdenkSM850_config	:	unconfig
1030f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
10317ebf7443Swdenk
1032b02d0177SMarkus Klotzbuecherspc1920_config:
1033f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1034b02d0177SMarkus Klotzbuecher
10357ebf7443SwdenkSPD823TS_config:	unconfig
1036f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
10377ebf7443Swdenk
10386bdf4306SWolfgang Denkstxxtc_config:	unconfig
1039f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
10406bdf4306SWolfgang Denk
1041dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
1042f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1043dc7c9a1aSwdenk
10447ebf7443SwdenkSXNI855T_config:	unconfig
1045f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
10467ebf7443Swdenk
1047db2f721fSwdenk# EMK MPC8xx based modules
1048db2f721fSwdenkTOP860_config:		unconfig
1049f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1050db2f721fSwdenk
10517ebf7443Swdenk# Play some tricks for configuration selection
1052e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
1053e9132ea9Swdenk# and only 823 boards may have LCD support
1054e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
10557ebf7443Swdenk
10567ebf7443SwdenkFPS850L_config		\
1057384ae025SwdenkFPS860L_config		\
1058f12e568cSwdenkNSCU_config		\
10597ebf7443SwdenkTQM823L_config		\
10607ebf7443SwdenkTQM823L_LCD_config	\
10617ebf7443SwdenkTQM850L_config		\
10627ebf7443SwdenkTQM855L_config		\
10637ebf7443SwdenkTQM860L_config		\
1064d126bfbdSwdenkTQM862L_config		\
1065ae3af05eSwdenkTQM823M_config		\
1066ae3af05eSwdenkTQM850M_config		\
1067f12e568cSwdenkTQM855M_config		\
1068f12e568cSwdenkTQM860M_config		\
1069f12e568cSwdenkTQM862M_config		\
10708cba090cSWolfgang DenkTQM866M_config		\
1071090eb735SMarkus KlotzbuecherTQM885D_config		\
1072efc6f447SGuennadi LiakhovetskiTK885D_config		\
10738cba090cSWolfgang Denkvirtlab2_config:	unconfig
1074f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1075f9328639SMarian Balakowicz	@ >$(obj)include/config.h
10767ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1077f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1078f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
10797ebf7443Swdenk		  echo "... with LCD display" ; \
10807ebf7443Swdenk		}
1081f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
10827ebf7443Swdenk
10837ebf7443SwdenkTTTech_config:	unconfig
1084f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1085f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1086f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1087f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
10887ebf7443Swdenk
1089ec0aee7bSwdenkuc100_config	:	unconfig
1090f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1091f7d1572bSwdenk
1092608c9146Swdenkv37_config:	unconfig
1093f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1094f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1095f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1096f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1097608c9146Swdenk
109891e940d9Sdzuwtk_config:	unconfig
1099f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1100f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1101f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1102f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
110391e940d9Sdzu
11047ebf7443Swdenk#########################################################################
11057ebf7443Swdenk## PPC4xx Systems
11067ebf7443Swdenk#########################################################################
1107e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
11087ebf7443Swdenk
110916c0cc1cSStefan Roeseacadia_config:	unconfig
111016c0cc1cSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
111116c0cc1cSStefan Roese
1112c440bfe6SStefan Roeseacadia_nand_config:	unconfig
111363e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/acadia
111463e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/acadia
1115c440bfe6SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1116c440bfe6SStefan Roese	@$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1117c440bfe6SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1118c440bfe6SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1119c440bfe6SStefan Roese
11207ebf7443SwdenkADCIOP_config:	unconfig
1121f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
11227ebf7443Swdenk
1123899620c2SStefan Roesealpr_config:	unconfig
112435d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1125899620c2SStefan Roese
11267521af1cSWolfgang DenkAP1000_config:unconfig
1127f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
11287521af1cSWolfgang Denk
1129c419d1d6SstroeseAPC405_config:	unconfig
1130f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1131c419d1d6Sstroese
11327ebf7443SwdenkAR405_config:	unconfig
1133f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
11347ebf7443Swdenk
1135549826eaSstroeseASH405_config:	unconfig
1136f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1137549826eaSstroese
11388a316c9bSStefan Roesebamboo_config:	unconfig
1139f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
11408a316c9bSStefan Roese
1141cf959c7dSStefan Roesebamboo_nand_config:	unconfig
114263e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/bamboo
114363e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/bamboo
1144cf959c7dSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1145f3679aa1SStefan Roese	@$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1146cf959c7dSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1147cf959c7dSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1148cf959c7dSStefan Roese
11498a316c9bSStefan Roesebubinga_config:	unconfig
1150f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1151549826eaSstroese
11527ebf7443SwdenkCANBT_config:	unconfig
1153f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
11547ebf7443Swdenk
11551d6f9720SwdenkCATcenter_config	\
11561d6f9720SwdenkCATcenter_25_config	\
11571d6f9720SwdenkCATcenter_33_config:	unconfig
1158f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1159f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1160f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
11611d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1162f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
11631d6f9720Swdenk		  echo "SysClk = 25MHz" ; \
11641d6f9720Swdenk		}
11651d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1166f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
11671d6f9720Swdenk		  echo "SysClk = 33MHz" ; \
11681d6f9720Swdenk		}
1169f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
117010767ccbSwdenk
11717644f16fSStefan RoeseCPCI2DP_config:	unconfig
1172f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
11737644f16fSStefan Roese
11747ebf7443SwdenkCPCI405_config	\
1175549826eaSstroeseCPCI4052_config	\
1176c419d1d6SstroeseCPCI405DT_config	\
1177549826eaSstroeseCPCI405AB_config:	unconfig
1178f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1179f9328639SMarian Balakowicz	@echo "BOARD_REVISION = $(@:_config=)"	>> $(obj)include/config.mk
11807ebf7443Swdenk
11817ebf7443SwdenkCPCIISER4_config:	unconfig
1182f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
11837ebf7443Swdenk
11847ebf7443SwdenkCRAYL1_config:	unconfig
1185f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
11867ebf7443Swdenk
1187cd0a9de6Swdenkcsb272_config:	unconfig
1188f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1189cd0a9de6Swdenk
1190aa245090Swdenkcsb472_config:	unconfig
1191f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1192aa245090Swdenk
11937ebf7443SwdenkDASA_SIM_config: unconfig
1194f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
11957ebf7443Swdenk
119672cd5aa7SstroeseDP405_config:	unconfig
1197f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
119872cd5aa7Sstroese
11997ebf7443SwdenkDU405_config:	unconfig
1200f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
12017ebf7443Swdenk
12028a316c9bSStefan Roeseebony_config:	unconfig
1203f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
12047ebf7443Swdenk
12057ebf7443SwdenkERIC_config:	unconfig
1206f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
12077ebf7443Swdenk
1208d1cbe85bSwdenkEXBITGEN_config:	unconfig
1209f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1210d1cbe85bSwdenk
1211c419d1d6SstroeseG2000_config:	unconfig
1212f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1213c419d1d6Sstroese
1214ac982ea5SNiklaus Gigerhcu4_config:	unconfig
121535d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1216ac982ea5SNiklaus Giger
1217ac982ea5SNiklaus Gigerhcu5_config:	unconfig
121835d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1219ac982ea5SNiklaus Giger
1220c419d1d6SstroeseHH405_config:	unconfig
1221f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1222c419d1d6Sstroese
122372cd5aa7SstroeseHUB405_config:	unconfig
1224f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
122572cd5aa7Sstroese
1226db01a2eaSwdenkJSE_config:	unconfig
1227f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1228db01a2eaSwdenk
1229b79316f2SStefan RoeseKAREF_config: unconfig
1230f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1231b79316f2SStefan Roese
12324745acaaSStefan Roesekatmai_config:	unconfig
12334745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
12344745acaaSStefan Roese
1235353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR)
1236353f2688SStefan Roesekilauea_config \
1237353f2688SStefan Roesehaleakala_config: unconfig
1238353f2688SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1239566806caSStefan Roese
12403d6cb3b2SStefan Roesekilauea_nand_config \
12413d6cb3b2SStefan Roesehaleakala_nand_config: unconfig
12423d6cb3b2SStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/kilauea
12433d6cb3b2SStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/kilauea
12443d6cb3b2SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
12453d6cb3b2SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
12463d6cb3b2SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
12473d6cb3b2SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
12483d6cb3b2SStefan Roese
1249c591dffeSLarry Johnsonkorat_config:	unconfig
1250c591dffeSLarry Johnson	@$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1251c591dffeSLarry Johnson
12526e7fb6eaSStefan Roeseluan_config:	unconfig
1253f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
12546e7fb6eaSStefan Roese
1255b765ffb7SStefan Roeselwmon5_config:	unconfig
1256b765ffb7SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1257b765ffb7SStefan Roese
1258211ea91aSStefan Roesemakalu_config:	unconfig
1259211ea91aSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1260211ea91aSStefan Roese
1261b79316f2SStefan RoeseMETROBOX_config: unconfig
1262f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1263b79316f2SStefan Roese
12647ebf7443SwdenkMIP405_config:	unconfig
1265f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
12667ebf7443Swdenk
1267f3e0de60SwdenkMIP405T_config:	unconfig
1268f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1269f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1270f3e0de60Swdenk	@echo "Enable subset config for MIP405T"
1271f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1272f3e0de60Swdenk
12737ebf7443SwdenkML2_config:	unconfig
1274f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
12757ebf7443Swdenk
1276028ab6b5Swdenkml300_config:	unconfig
1277f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1278028ab6b5Swdenk
12798a316c9bSStefan Roeseocotea_config:	unconfig
1280f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
12810e6d798cSwdenk
12827ebf7443SwdenkOCRTC_config		\
12837ebf7443SwdenkORSG_config:	unconfig
1284f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
12857ebf7443Swdenk
12865568e613SStefan Roesep3p440_config:	unconfig
1287f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
12885568e613SStefan Roese
12897ebf7443SwdenkPCI405_config:	unconfig
1290f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
12917ebf7443Swdenk
1292a4c8d138SStefan Roesepcs440ep_config:	unconfig
1293f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1294a4c8d138SStefan Roese
12957ebf7443SwdenkPIP405_config:	unconfig
1296f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
12977ebf7443Swdenk
129872cd5aa7SstroesePLU405_config:	unconfig
1299f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
130072cd5aa7Sstroese
1301549826eaSstroesePMC405_config:	unconfig
1302f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1303549826eaSstroese
13048ba132caSMatthias FuchsPMC440_config:	unconfig
13058ba132caSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
13068ba132caSMatthias Fuchs
1307281e00a3SwdenkPPChameleonEVB_config		\
1308e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1309e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1310e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1311e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1312e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1313e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1314f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1315f9328639SMarian Balakowicz	@ >$(obj)include/config.h
13161d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1317f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1318fbe4b5cbSwdenk		  echo "... BASIC model" ; \
1319fbe4b5cbSwdenk		}
13201d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1321f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1322fbe4b5cbSwdenk		  echo "... MEDIUM model" ; \
1323fbe4b5cbSwdenk		}
13241d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1325f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1326fbe4b5cbSwdenk		  echo "... HIGH-END model" ; \
1327fbe4b5cbSwdenk		}
1328e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1329f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1330e55ca7e2Swdenk		  echo "SysClk = 25MHz" ; \
1331e55ca7e2Swdenk		}
1332e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1333f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1334e55ca7e2Swdenk		  echo "SysClk = 33MHz" ; \
1335e55ca7e2Swdenk		}
1336f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
133712f34241Swdenk
1338430f1b0fSStefan Roesesbc405_config:	unconfig
1339430f1b0fSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1340430f1b0fSStefan Roese
1341430f1b0fSStefan Roesesequoia_config \
1342854bc8daSStefan Roeserainier_config: unconfig
13438318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1344430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1345430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
13462aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1347854bc8daSStefan Roese
1348430f1b0fSStefan Roesesequoia_nand_config \
1349854bc8daSStefan Roeserainier_nand_config: unconfig
135063e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
135163e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/sequoia
13528318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1353430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1354430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1355430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
13568318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
13578318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1358652a10c0Swdenk
13596d3e0107SWolfgang Denksc3_config:unconfig
136035d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1361ca43ba18SHeiko Schocher
1362d4024bb7SJohn Otkentaihu_config:	unconfig
1363d4024bb7SJohn Otken	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1364d4024bb7SJohn Otken
13655fb692caSStefan Roesetaishan_config:	unconfig
13665fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
13675fb692caSStefan Roese
136872cd5aa7SstroeseVOH405_config:	unconfig
1369f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
137072cd5aa7Sstroese
1371c419d1d6SstroeseVOM405_config:	unconfig
1372f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1373c419d1d6Sstroese
1374feaedfcfSStefan RoeseCMS700_config:	unconfig
1375f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1376feaedfcfSStefan Roese
13777ebf7443SwdenkW7OLMC_config	\
13787ebf7443SwdenkW7OLMG_config: unconfig
1379f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
13807ebf7443Swdenk
1381430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR)
1382430f1b0fSStefan Roesewalnut_config \
1383430f1b0fSStefan Roesesycamore_config: unconfig
1384430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
13857ebf7443Swdenk
1386c419d1d6SstroeseWUH405_config:	unconfig
1387f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1388c419d1d6Sstroese
1389ba56f625SwdenkXPEDITE1K_config:	unconfig
1390f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1391ba56f625Swdenk
1392430f1b0fSStefan Roeseyosemite_config \
13938a316c9bSStefan Roeseyellowstone_config: unconfig
1394700200c6SStefan Roese	@mkdir -p $(obj)include
1395430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1396430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
13972aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
13988a316c9bSStefan Roese
13996c5879f3SMarian Balakowiczyucca_config:	unconfig
1400f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
14016c5879f3SMarian Balakowicz
1402779e9751SStefan Roesezeus_config:	unconfig
1403779e9751SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1404779e9751SStefan Roese
14057ebf7443Swdenk#########################################################################
1406983fda83Swdenk## MPC8220 Systems
1407983fda83Swdenk#########################################################################
1408dc17fb6dSWolfgang Denk
1409dc17fb6dSWolfgang DenkAlaska8220_config	\
1410dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1411f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1412983fda83Swdenk
141312b43d51Swdenksorcery_config:		unconfig
1414f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
141512b43d51Swdenk
1416983fda83Swdenk#########################################################################
14177ebf7443Swdenk## MPC824x Systems
14187ebf7443Swdenk#########################################################################
1419efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
14203bac3513Swdenk
14210332990bSwdenkA3000_config: unconfig
1422f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
14230332990bSwdenk
14248e6f1a8eSWolfgang Denkbarco_config: unconfig
1425f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
14268e6f1a8eSWolfgang Denk
14277ebf7443SwdenkBMW_config: unconfig
1428f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
14297ebf7443Swdenk
14303bac3513SwdenkCPC45_config	\
14313bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1432f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1433f9328639SMarian Balakowicz	@cd $(obj)include ;				\
14343bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
14353bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
14363bac3513Swdenk		echo "... booting from 8-bit flash" ; \
14373bac3513Swdenk	else \
14383bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
14393bac3513Swdenk		echo "... booting from 64-bit flash" ; \
14403bac3513Swdenk	fi; \
14413bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
14423bac3513Swdenk
14437ebf7443SwdenkCU824_config: unconfig
1444f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
14457ebf7443Swdenk
14467abf0c58Swdenkdebris_config: unconfig
1447f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
14487abf0c58Swdenk
144980885a9dSwdenkeXalion_config: unconfig
1450f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
145180885a9dSwdenk
1452756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1453f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1454756f586aSwdenk
145553dd6ce4SWolfgang Denkkvme080_config: unconfig
1456f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
145753dd6ce4SWolfgang Denk
14587ebf7443SwdenkMOUSSE_config: unconfig
1459f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
14607ebf7443Swdenk
14617ebf7443SwdenkMUSENKI_config: unconfig
1462f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
14637ebf7443Swdenk
1464b4676a25SwdenkMVBLUE_config:	unconfig
1465f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1466b4676a25Swdenk
14677ebf7443SwdenkOXC_config: unconfig
1468f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
14697ebf7443Swdenk
14707ebf7443SwdenkPN62_config: unconfig
1471f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
14727ebf7443Swdenk
14737ebf7443SwdenkSandpoint8240_config: unconfig
1474f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
14757ebf7443Swdenk
14767ebf7443SwdenkSandpoint8245_config: unconfig
1477f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
14787ebf7443Swdenk
1479466b7410Swdenksbc8240_config: unconfig
1480f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1481466b7410Swdenk
1482d1cbe85bSwdenkSL8245_config: unconfig
1483f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1484d1cbe85bSwdenk
14857ebf7443Swdenkutx8245_config: unconfig
1486f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
14877ebf7443Swdenk
14887ebf7443Swdenk#########################################################################
14897ebf7443Swdenk## MPC8260 Systems
14907ebf7443Swdenk#########################################################################
14917ebf7443Swdenk
149254387ac9Swdenkatc_config:	unconfig
1493f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
149454387ac9Swdenk
14957ebf7443Swdenkcogent_mpc8260_config:	unconfig
1496f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
14977ebf7443Swdenk
14987ebf7443SwdenkCPU86_config	\
14997ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1500f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1501f9328639SMarian Balakowicz	@cd $(obj)include ;				\
15027ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
15037ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
15047ebf7443Swdenk		echo "... booting from 8-bit flash" ; \
15057ebf7443Swdenk	else \
15067ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
15077ebf7443Swdenk		echo "... booting from 64-bit flash" ; \
15087ebf7443Swdenk	fi; \
15097ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
15107ebf7443Swdenk
1511384cc687SwdenkCPU87_config	\
1512384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1513f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1514f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1515384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1516384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1517384cc687Swdenk		echo "... booting from 8-bit flash" ; \
1518384cc687Swdenk	else \
1519384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1520384cc687Swdenk		echo "... booting from 64-bit flash" ; \
1521384cc687Swdenk	fi; \
1522384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1523384cc687Swdenk
1524f901a83bSWolfgang Denkep8248_config	\
1525f901a83bSWolfgang Denkep8248E_config	:	unconfig
1526f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1527f901a83bSWolfgang Denk
15287ebf7443Swdenkep8260_config:	unconfig
1529f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
15307ebf7443Swdenk
15318d4ac794SWolfgang Denkep82xxm_config:	unconfig
153290b1b2d6SGrant Likely	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
15338d4ac794SWolfgang Denk
15347ebf7443Swdenkgw8260_config:	unconfig
1535f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
15367ebf7443Swdenk
15377ebf7443Swdenkhymod_config:	unconfig
1538f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
15397ebf7443Swdenk
15409dd41a7bSwdenkIDS8247_config:	unconfig
1541f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
15429dd41a7bSwdenk
15437ebf7443SwdenkIPHASE4539_config:	unconfig
1544f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
15457ebf7443Swdenk
1546c3c7f861SwdenkISPAN_config		\
1547c3c7f861SwdenkISPAN_REVB_config:	unconfig
1548f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1549c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
1550f9328639SMarian Balakowicz		echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1551c3c7f861Swdenk	fi
1552f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1553c3c7f861Swdenk
1554ac9db066SHeiko Schochermgcoge_config	:	unconfig
1555ac9db066SHeiko Schocher	@$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1556ac9db066SHeiko Schocher
155704a85b3bSwdenkMPC8260ADS_config	\
1558901787d6SwdenkMPC8260ADS_lowboot_config	\
155904a85b3bSwdenkMPC8260ADS_33MHz_config	\
1560901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
156104a85b3bSwdenkMPC8260ADS_40MHz_config	\
1562901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
156304a85b3bSwdenkMPC8272ADS_config	\
1564901787d6SwdenkMPC8272ADS_lowboot_config	\
156504a85b3bSwdenkPQ2FADS_config		\
1566901787d6SwdenkPQ2FADS_lowboot_config		\
156704a85b3bSwdenkPQ2FADS-VR_config	\
1568901787d6SwdenkPQ2FADS-VR_lowboot_config	\
156904a85b3bSwdenkPQ2FADS-ZU_config	\
1570901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
157104a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1572901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
157304a85b3bSwdenk	:		unconfig
1574f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1575f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mpc8260ads
157604a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
1577f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1578f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
157904a85b3bSwdenk	$(if $(findstring MHz,$@), \
1580f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
158104a85b3bSwdenk	$(if $(findstring VR,$@), \
1582f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1583901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1584f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1585901787d6Swdenk		  echo "... with lowboot configuration" ; \
1586901787d6Swdenk		}
1587f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
15887ebf7443Swdenk
1589db2f721fSwdenkMPC8266ADS_config:	unconfig
1590f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1591db2f721fSwdenk
1592efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
159310f67017SwdenkPM825_config	\
1594efa329cbSwdenkPM825_ROMBOOT_config	\
1595efa329cbSwdenkPM825_BIGFLASH_config	\
1596efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
15977ebf7443SwdenkPM826_config	\
1598efa329cbSwdenkPM826_ROMBOOT_config	\
1599efa329cbSwdenkPM826_BIGFLASH_config	\
1600efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1601f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1602f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1603efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1604f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
16057ebf7443Swdenk	else \
1606f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1607efa329cbSwdenk	fi
1608efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1609efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
1610f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1611f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1612efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1613efa329cbSwdenk			echo "... with 32 MB Flash" ; \
1614f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
16157ebf7443Swdenk		fi; \
1616efa329cbSwdenk	else \
1617efa329cbSwdenk		echo "... booting from 64-bit flash" ; \
1618efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1619efa329cbSwdenk			echo "... with 32 MB Flash" ; \
1620f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1621f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1622efa329cbSwdenk		else \
1623f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1624efa329cbSwdenk		fi; \
1625efa329cbSwdenk	fi
1626f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1627efa329cbSwdenk
1628efa329cbSwdenkPM828_config	\
1629efa329cbSwdenkPM828_PCI_config	\
1630efa329cbSwdenkPM828_ROMBOOT_config	\
1631efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1632f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1633f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
163417076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1635f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1636efa329cbSwdenk		echo "... with PCI enabled" ; \
1637efa329cbSwdenk	else \
1638f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1639efa329cbSwdenk	fi
1640efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1641efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
1642f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1643f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1644efa329cbSwdenk	fi
1645f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
16467ebf7443Swdenk
16477ebf7443Swdenkppmc8260_config:	unconfig
1648f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
16497ebf7443Swdenk
16508b0bfc68SwdenkRattler8248_config	\
16518b0bfc68SwdenkRattler_config:		unconfig
1652f9328639SMarian Balakowicz	@mkdir -p $(obj)include
16538b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1654f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1655f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
16568b0bfc68Swdenk
16577ebf7443SwdenkRPXsuper_config:	unconfig
1658f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
16597ebf7443Swdenk
16607ebf7443Swdenkrsdproto_config:	unconfig
1661f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
16627ebf7443Swdenk
16637ebf7443Swdenksacsng_config:	unconfig
1664f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
16657ebf7443Swdenk
16667ebf7443Swdenksbc8260_config:	unconfig
1667f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
16687ebf7443Swdenk
16697ebf7443SwdenkSCM_config:		unconfig
1670f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
16717ebf7443Swdenk
167227b207fdSwdenkTQM8255_AA_config \
167327b207fdSwdenkTQM8260_AA_config \
167427b207fdSwdenkTQM8260_AB_config \
167527b207fdSwdenkTQM8260_AC_config \
167627b207fdSwdenkTQM8260_AD_config \
167727b207fdSwdenkTQM8260_AE_config \
167827b207fdSwdenkTQM8260_AF_config \
167927b207fdSwdenkTQM8260_AG_config \
168027b207fdSwdenkTQM8260_AH_config \
16811f62bc2dSWolfgang DenkTQM8260_AI_config \
168227b207fdSwdenkTQM8265_AA_config:  unconfig
1683f9328639SMarian Balakowicz	@mkdir -p $(obj)include
168427b207fdSwdenk	@case "$@" in \
168527b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
168627b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
168727b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
168827b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
168927b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
169027b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
169127b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
169227b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
169327b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
16941f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
169527b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
169627b207fdSwdenk	esac; \
1697f9328639SMarian Balakowicz	>$(obj)include/config.h ; \
169827b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1699f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
170027b207fdSwdenk	fi; \
1701f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
170227b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
17031aaab9bfSWolfgang Denk	if [ "$${CACHE}" = "yes" ] ; then \
1704f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
170527b207fdSwdenk		echo "... with L2 Cache support" ; \
17067ebf7443Swdenk	else \
1707f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
17087ebf7443Swdenk		echo "... without L2 Cache support" ; \
170927b207fdSwdenk	fi; \
17101aaab9bfSWolfgang Denk	if [ "$${BMODE}" = "60x" ] ; then \
1711f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
171227b207fdSwdenk		echo "... with 60x Bus Mode" ; \
171327b207fdSwdenk	else \
1714f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
171527b207fdSwdenk		echo "... without 60x Bus Mode" ; \
17167ebf7443Swdenk	fi
1717f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
17187ebf7443Swdenk
1719fa230445SHeiko SchocherTQM8272_config: unconfig
1720fa230445SHeiko Schocher	@$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1721fa230445SHeiko Schocher
1722ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1723ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1724f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1725f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1726f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1727ba91e26aSwdenk
172854387ac9SwdenkZPC1900_config: unconfig
1729f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
17307aa78614Swdenk
17314e5ca3ebSwdenk#########################################################################
17324e5ca3ebSwdenk## Coldfire
17334e5ca3ebSwdenk#########################################################################
17344e5ca3ebSwdenk
17354a442d31STsiChungLiewM5235EVB_config \
17364a442d31STsiChungLiewM5235EVB_Flash16_config \
17374a442d31STsiChungLiewM5235EVB_Flash32_config:	unconfig
17384a442d31STsiChungLiew	@case "$@" in \
17394a442d31STsiChungLiew	M5235EVB_config)		FLASH=16;; \
17404a442d31STsiChungLiew	M5235EVB_Flash16_config)	FLASH=16;; \
17414a442d31STsiChungLiew	M5235EVB_Flash32_config)	FLASH=32;; \
17424a442d31STsiChungLiew	esac; \
17434a442d31STsiChungLiew	>include/config.h ; \
17444a442d31STsiChungLiew	if [ "$${FLASH}" != "16" ] ; then \
17454a442d31STsiChungLiew		echo "#define NORFLASH_PS32BIT	1" >> include/config.h ; \
17464a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
17474a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
17484a442d31STsiChungLiew	else \
17494a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
17504a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
17514a442d31STsiChungLiew	fi
17524a442d31STsiChungLiew	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
17534a442d31STsiChungLiew
1754a605aacdSTsiChungLiewM5249EVB_config :		unconfig
1755a605aacdSTsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1756a605aacdSTsiChungLiew
1757a1436a84STsiChungLiewM5253EVBE_config :		unconfig
1758a1436a84STsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1759a1436a84STsiChungLiew
17607481266eSWolfgang Denkcobra5272_config :		unconfig
1761f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
17627481266eSWolfgang Denk
17634176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
1764f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1765f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1766f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1767f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1768f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
17694176c799SWolfgang Denk
17704176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
1771f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1772f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1773f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1774f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1775f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
17764176c799SWolfgang Denk
1777daa6e418SBartlomiej Siekaidmr_config :			unconfig
1778daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1779daa6e418SBartlomiej Sieka
17804176c799SWolfgang DenkM5271EVB_config :		unconfig
1781f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
17824176c799SWolfgang Denk
17834e5ca3ebSwdenkM5272C3_config :		unconfig
1784f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
17854e5ca3ebSwdenk
17864e5ca3ebSwdenkM5282EVB_config :		unconfig
1787f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
17884e5ca3ebSwdenk
1789c419d1d6SstroeseTASREG_config :		unconfig
1790f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1791c419d1d6Sstroese
17923a108ed8SZachary P. Landaur5200_config :		unconfig
1793f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
17943a108ed8SZachary P. Landau
17958e585f02STsiChung LiewM5329AFEE_config \
17968e585f02STsiChung LiewM5329BFEE_config :	unconfig
17978e585f02STsiChung Liew	@case "$@" in \
17988e585f02STsiChung Liew	M5329AFEE_config)	NAND=0;; \
17998e585f02STsiChung Liew	M5329BFEE_config)	NAND=16;; \
18008e585f02STsiChung Liew	esac; \
18018e585f02STsiChung Liew	>include/config.h ; \
18028e585f02STsiChung Liew	if [ "$${NAND}" != "0" ] ; then \
1803ab77bc54STsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
18048e585f02STsiChung Liew	fi
18058e585f02STsiChung Liew	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
18068e585f02STsiChung Liew
18078ae158cdSTsiChungLiewM54455EVB_config \
18088ae158cdSTsiChungLiewM54455EVB_atmel_config \
18098ae158cdSTsiChungLiewM54455EVB_intel_config \
18108ae158cdSTsiChungLiewM54455EVB_a33_config \
18118ae158cdSTsiChungLiewM54455EVB_a66_config \
18128ae158cdSTsiChungLiewM54455EVB_i33_config \
18138ae158cdSTsiChungLiewM54455EVB_i66_config :	unconfig
18148ae158cdSTsiChungLiew	@case "$@" in \
18158ae158cdSTsiChungLiew	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
18168ae158cdSTsiChungLiew	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
18178ae158cdSTsiChungLiew	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
18188ae158cdSTsiChungLiew	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
18198ae158cdSTsiChungLiew	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
18208ae158cdSTsiChungLiew	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
18218ae158cdSTsiChungLiew	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
18228ae158cdSTsiChungLiew	esac; \
18238ae158cdSTsiChungLiew	>include/config.h ; \
18241aaab9bfSWolfgang Denk	if [ "$${FLASH}" = "INTEL" ] ; then \
18254a442d31STsiChungLiew		echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1826e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1827e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
18288ae158cdSTsiChungLiew		echo "... with INTEL boot..." ; \
18298ae158cdSTsiChungLiew	else \
18304a442d31STsiChungLiew		echo "#define CFG_ATMEL_BOOT"	>> $(obj)include/config.h ; \
1831e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1832e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
18338ae158cdSTsiChungLiew		echo "... with ATMEL boot..." ; \
18348ae158cdSTsiChungLiew	fi; \
18354a442d31STsiChungLiew	echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
18368ae158cdSTsiChungLiew	echo "... with $${FREQ}Hz input clock"
18378ae158cdSTsiChungLiew	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
18388ae158cdSTsiChungLiew
18397ebf7443Swdenk#########################################################################
1840f046ccd1SEran Liberty## MPC83xx Systems
1841f046ccd1SEran Liberty#########################################################################
1842f046ccd1SEran Liberty
18435c5d3242SKim PhillipsMPC8313ERDB_33_config \
18445c5d3242SKim PhillipsMPC8313ERDB_66_config: unconfig
1845cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1846cdd917a4SWolfgang Denk	@echo "" >$(obj)include/config.h ; \
18475c5d3242SKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
18485c5d3242SKim Phillips		echo -n "...33M ..." ; \
1849cdd917a4SWolfgang Denk		echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
18505c5d3242SKim Phillips	fi ; \
18515c5d3242SKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
18525c5d3242SKim Phillips		echo -n "...66M..." ; \
1853cdd917a4SWolfgang Denk		echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
18545c5d3242SKim Phillips	fi ;
1855e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
18565c5d3242SKim Phillips
18571c274c4eSKim PhillipsMPC8323ERDB_config:	unconfig
18581c274c4eSKim Phillips	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
18591c274c4eSKim Phillips
18604decd84eSKim PhillipsMPC832XEMDS_config \
18614decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
18624decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
1863281df457STony LiMPC832XEMDS_SLAVE_config \
1864281df457STony LiMPC832XEMDS_ATM_config:	unconfig
1865cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1866cdd917a4SWolfgang Denk	@echo "" >$(obj)include/config.h ; \
18674decd84eSKim Phillips	if [ "$(findstring _HOST_,$@)" ] ; then \
18684decd84eSKim Phillips		echo -n "... PCI HOST " ; \
1869cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
18704decd84eSKim Phillips	fi ; \
18714decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
18724decd84eSKim Phillips		echo "...PCI SLAVE 66M"  ; \
1873cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1874cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
18754decd84eSKim Phillips	fi ; \
18764decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
18774decd84eSKim Phillips		echo -n "...33M ..." ; \
1878cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
1879281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
18804decd84eSKim Phillips	fi ; \
18814decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
18824decd84eSKim Phillips		echo -n "...66M..." ; \
1883cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
1884281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1885281df457STony Li	fi ; \
1886281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
1887281df457STony Li		echo -n "...ATM..." ; \
1888281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1889281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM     1" >>$(obj)include/config.h ; \
18904decd84eSKim Phillips	fi ;
1891e58fe957SKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
1892e6f2e902SMarian Balakowicz
1893991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
1894e58fe957SKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
1895991425feSMarian Balakowicz
18967a78f148STimur TabiMPC8349ITX_config \
18977a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
18987a78f148STimur TabiMPC8349ITXGP_config:	unconfig
18997a78f148STimur Tabi	@mkdir -p $(obj)include
1900e21659e3SSam Sparks	@mkdir -p $(obj)board/freescale/mpc8349itx
19017a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
19027a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
1903e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
19047a78f148STimur Tabi	fi
19057a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
1906e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
19077a78f148STimur Tabi	fi
1908e58fe957SKim Phillips	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
19094decd84eSKim Phillips
19105f820439SDave LiuMPC8360EMDS_config \
19115f820439SDave LiuMPC8360EMDS_HOST_33_config \
19125f820439SDave LiuMPC8360EMDS_HOST_66_config \
1913281df457STony LiMPC8360EMDS_SLAVE_config \
1914281df457STony LiMPC8360EMDS_ATM_config: unconfig
1915cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1916cdd917a4SWolfgang Denk	@echo "" >$(obj)include/config.h ; \
19175f820439SDave Liu	if [ "$(findstring _HOST_,$@)" ] ; then \
19185f820439SDave Liu		echo -n "... PCI HOST " ; \
1919cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
19205f820439SDave Liu	fi ; \
19215f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
19225f820439SDave Liu		echo "...PCI SLAVE 66M"  ; \
1923cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1924cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
19255f820439SDave Liu	fi ; \
19265f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
19275f820439SDave Liu		echo -n "...33M ..." ; \
1928cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
1929281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
19305f820439SDave Liu	fi ; \
19315f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
19325f820439SDave Liu		echo -n "...66M..." ; \
1933cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
1934281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1935281df457STony Li	fi ; \
1936281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
1937281df457STony Li		echo -n "...ATM..." ; \
1938281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1939281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM     1" >>$(obj)include/config.h ; \
19405f820439SDave Liu	fi ;
1941e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
19425f820439SDave Liu
1943fab6f556SAnton VorontsovMPC8360ERDK_33_config \
1944fab6f556SAnton VorontsovMPC8360ERDK_66_config \
1945fab6f556SAnton VorontsovMPC8360ERDK_config:
1946fab6f556SAnton Vorontsov	@mkdir -p $(obj)include
1947fab6f556SAnton Vorontsov	@echo "" >$(obj)include/config.h ; \
1948fab6f556SAnton Vorontsov	if [ "$(findstring _33_,$@)" ] ; then \
1949fab6f556SAnton Vorontsov		echo -n "... CLKIN 33MHz " ; \
1950fab6f556SAnton Vorontsov		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
1951fab6f556SAnton Vorontsov	fi ;
1952fab6f556SAnton Vorontsov	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
1953fab6f556SAnton Vorontsov
195419580e66SDave LiuMPC837XEMDS_config \
195519580e66SDave LiuMPC837XEMDS_HOST_config:	unconfig
195619580e66SDave Liu	@mkdir -p $(obj)include
195719580e66SDave Liu	@echo "" >$(obj)include/config.h ; \
195819580e66SDave Liu	if [ "$(findstring _HOST_,$@)" ] ; then \
195919580e66SDave Liu		echo -n "... PCI HOST " ; \
196019580e66SDave Liu		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
196119580e66SDave Liu	fi ;
196219580e66SDave Liu	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
196319580e66SDave Liu
196491e25769SPaul Gortmakersbc8349_config:		unconfig
196591e25769SPaul Gortmaker	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
196691e25769SPaul Gortmaker
19674decd84eSKim PhillipsTQM834x_config:	unconfig
19684decd84eSKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
19694decd84eSKim Phillips
19702ad6b513STimur Tabi
1971f046ccd1SEran Liberty#########################################################################
197242d1f039Swdenk## MPC85xx Systems
197342d1f039Swdenk#########################################################################
197442d1f039Swdenk
19757bd6104bSrobert lazarskiATUM8548_config:	unconfig
19767bd6104bSrobert lazarski	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
19777bd6104bSrobert lazarski
197842d1f039SwdenkMPC8540ADS_config:	unconfig
1979c2d943ffSKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
198042d1f039Swdenk
1981b0e32949SLunsheng WangMPC8540EVAL_config \
1982b0e32949SLunsheng WangMPC8540EVAL_33_config \
1983b0e32949SLunsheng WangMPC8540EVAL_66_config \
1984b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
1985b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:      unconfig
1986f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1987f9328639SMarian Balakowicz	@echo "" >$(obj)include/config.h ; \
1988b0e32949SLunsheng Wang	if [ "$(findstring _33_,$@)" ] ; then \
1989cdd917a4SWolfgang Denk		echo "... 33 MHz PCI" ; \
1990b0e32949SLunsheng Wang	else \
1991f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1992cdd917a4SWolfgang Denk		echo "... 66 MHz PCI" ; \
1993b0e32949SLunsheng Wang	fi ; \
1994b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
1995f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1996b0e32949SLunsheng Wang		echo " slave" ; \
1997b0e32949SLunsheng Wang	else \
1998b0e32949SLunsheng Wang		echo " host" ; \
1999b0e32949SLunsheng Wang	fi
2000f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2001b0e32949SLunsheng Wang
200242d1f039SwdenkMPC8560ADS_config:	unconfig
2003870ceac5SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
200442d1f039Swdenk
20057f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \
200603f5c550SwdenkMPC8541CDS_config:	unconfig
20077f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
20087f3f2bd2SRandy Vinson	@echo "" >$(obj)include/config.h ; \
20097f3f2bd2SRandy Vinson	if [ "$(findstring _legacy_,$@)" ] ; then \
20107f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
20117f3f2bd2SRandy Vinson		echo "... legacy" ; \
20127f3f2bd2SRandy Vinson	fi
2013415a613bSKumar Gala	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
201403f5c550Swdenk
201581f481caSAndy FlemingMPC8544DS_config:	unconfig
201681f481caSAndy Fleming	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
201781f481caSAndy Fleming
20187f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \
2019d9b94f28SJon LoeligerMPC8548CDS_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 MPC8548CDS ppc mpc85xx mpc8548cds freescale
2027d9b94f28SJon Loeliger
20287f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \
202903f5c550SwdenkMPC8555CDS_config:	unconfig
20307f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
20317f3f2bd2SRandy Vinson	@echo "" >$(obj)include/config.h ; \
20327f3f2bd2SRandy Vinson	if [ "$(findstring _legacy_,$@)" ] ; then \
20337f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
20347f3f2bd2SRandy Vinson		echo "... legacy" ; \
20357f3f2bd2SRandy Vinson	fi
2036415a613bSKumar Gala	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
20377abf0c58Swdenk
203867431059SAndy FlemingMPC8568MDS_config:	unconfig
2039acbca876SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
204067431059SAndy Fleming
2041384cc687SwdenkPM854_config:	unconfig
2042f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2043384cc687Swdenk
2044b20d0032SWolfgang DenkPM856_config:	unconfig
2045f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2046b20d0032SWolfgang Denk
2047c15f3120Swdenksbc8540_config \
2048c15f3120Swdenksbc8540_33_config \
2049c15f3120Swdenksbc8540_66_config:	unconfig
2050f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2051c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2052f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2053c15f3120Swdenk		echo "... 66 MHz PCI" ; \
2054c15f3120Swdenk	else \
2055f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
2056c15f3120Swdenk		echo "... 33 MHz PCI" ; \
2057c15f3120Swdenk	fi
2058f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2059c15f3120Swdenk
206011c45ebdSJoe Hammansbc8548_config:		unconfig
206111c45ebdSJoe Hamman	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
206211c45ebdSJoe Hamman
2063466b7410Swdenksbc8560_config \
2064466b7410Swdenksbc8560_33_config \
2065466b7410Swdenksbc8560_66_config:      unconfig
2066f9328639SMarian Balakowicz	@mkdir -p $(obj)include
20678b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2068f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
20698b07a110Swdenk		echo "... 66 MHz PCI" ; \
20708b07a110Swdenk	else \
2071f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
20728b07a110Swdenk		echo "... 33 MHz PCI" ; \
20738b07a110Swdenk	fi
2074f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
20758b07a110Swdenk
207603f5c550Swdenkstxgp3_config:		unconfig
2077f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
207803f5c550Swdenk
2079ee152983SWolfgang Denkstxssa_config		\
2080ee152983SWolfgang Denkstxssa_4M_config:	unconfig
2081ee152983SWolfgang Denk	@mkdir -p $(obj)include
2082ee152983SWolfgang Denk	@if [ "$(findstring _4M_,$@)" ] ; then \
2083ee152983SWolfgang Denk		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2084ee152983SWolfgang Denk		echo "... with 4 MiB flash memory" ; \
2085ee152983SWolfgang Denk	else \
2086ee152983SWolfgang Denk		>$(obj)include/config.h ; \
2087ee152983SWolfgang Denk	fi
2088ee152983SWolfgang Denk	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
208935171dc0SDan Malek
2090d96f41e0SStefan RoeseTQM8540_config		\
2091d96f41e0SStefan RoeseTQM8541_config		\
2092d96f41e0SStefan RoeseTQM8555_config		\
2093f5c5ef4aSwdenkTQM8560_config:		unconfig
2094f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2095a889bd27SWolfgang Denk	@CTYPE=$(subst TQM,,$(@:_config=)); \
2096f9328639SMarian Balakowicz	>$(obj)include/config.h ; \
2097d96f41e0SStefan Roese	echo "... TQM"$${CTYPE}; \
2098f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2099f9328639SMarian Balakowicz	echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2100f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2101f9328639SMarian Balakowicz	echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
21028a783a65SGrant Likely	echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
2103f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
2104f5c5ef4aSwdenk
210542d1f039Swdenk#########################################################################
2106debb7354SJon Loeliger## MPC86xx Systems
2107debb7354SJon Loeliger#########################################################################
2108debb7354SJon Loeliger
21093c89d754SJon LoeligerMPC8610HPCD_config:	unconfig
21103c89d754SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
21113c89d754SJon Loeliger
2112debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
21134ce91774SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2114debb7354SJon Loeliger
2115c646bba6SJoe Hammansbc8641d_config:	unconfig
2116c646bba6SJoe Hamman	@./mkconfig $(@:_config=) ppc mpc86xx sbc8641d
2117debb7354SJon Loeliger
2118debb7354SJon Loeliger#########################################################################
21197ebf7443Swdenk## 74xx/7xx Systems
21207ebf7443Swdenk#########################################################################
21217ebf7443Swdenk
2122c7de829cSwdenkAmigaOneG3SE_config:	unconfig
2123f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2124c7de829cSwdenk
212515647dc7SwdenkBAB7xx_config: unconfig
2126f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
212715647dc7Swdenk
2128c419d1d6SstroeseCPCI750_config:	unconfig
2129f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2130c419d1d6Sstroese
21313a473b2aSwdenkDB64360_config:	unconfig
2132f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
21333a473b2aSwdenk
21343a473b2aSwdenkDB64460_config:	unconfig
2135f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
21363a473b2aSwdenk
213715647dc7SwdenkELPPC_config: unconfig
2138f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
213915647dc7Swdenk
21407ebf7443SwdenkEVB64260_config	\
21417ebf7443SwdenkEVB64260_750CX_config:	unconfig
2142f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
21437ebf7443Swdenk
21444c52783bSroy zangmpc7448hpc2_config:  unconfig
2145ee311214Sroy zang	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2
21464c52783bSroy zang
214715647dc7SwdenkP3G4_config: unconfig
2148f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
21497ebf7443Swdenk
21501eac2a71SStefan Roesep3m750_config	\
21511eac2a71SStefan Roesep3m7448_config:		unconfig
21521eac2a71SStefan Roese	@mkdir -p $(obj)include
21531eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
21541eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
21551eac2a71SStefan Roese	else \
21561eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
21571eac2a71SStefan Roese	fi
21581eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
21591eac2a71SStefan Roese
21607ebf7443SwdenkPCIPPC2_config \
21617ebf7443SwdenkPCIPPC6_config: unconfig
2162f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
21637ebf7443Swdenk
216415647dc7SwdenkZUMA_config:	unconfig
2165f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
216612f34241Swdenk
2167f5e0d039SHeiko Schocherppmc7xx_config: unconfig
2168f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2169f5e0d039SHeiko Schocher
21707ebf7443Swdenk#========================================================================
21717ebf7443Swdenk# ARM
21727ebf7443Swdenk#========================================================================
21737ebf7443Swdenk#########################################################################
21747ebf7443Swdenk## StrongARM Systems
21757ebf7443Swdenk#########################################################################
21767ebf7443Swdenk
2177ea66bc88Swdenkassabet_config	:	unconfig
2178f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2179ea66bc88Swdenk
21807ebf7443Swdenkdnp1110_config	:	unconfig
2181f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
21827ebf7443Swdenk
2183855a496fSwdenkgcplus_config	:	unconfig
2184f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2185855a496fSwdenk
2186855a496fSwdenklart_config	:	unconfig
2187f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
2188855a496fSwdenk
21897ebf7443Swdenkshannon_config	:	unconfig
2190f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
21917ebf7443Swdenk
21927ebf7443Swdenk#########################################################################
21932e5983d2Swdenk## ARM92xT Systems
21947ebf7443Swdenk#########################################################################
21957ebf7443Swdenk
2196b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
219743d9616cSwdenk
21983ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
219963e73c9aSwdenk
2200a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2201a56bd922Swdenk
2202a85f9f21Swdenkat91rm9200dk_config	:	unconfig
2203f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
2204a85f9f21Swdenk
2205a85f9f21Swdenkcmc_pu2_config	:	unconfig
2206f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2207a85f9f21Swdenk
2208645da510SWolfgang Denkcsb637_config	:	unconfig
2209f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2210645da510SWolfgang Denk
22110e4018d2SWolfgang Denkmp2usb_config	:	unconfig
2212f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
22130e4018d2SWolfgang Denk
221487cb6862SWolfgang Denk
221574f4304eSWolfgang Denk########################################################################
221687cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
221787cb6862SWolfgang Denkintegratorap_config	\
221887cb6862SWolfgang Denkap_config		\
221987cb6862SWolfgang Denkap966_config		\
222087cb6862SWolfgang Denkap922_config		\
222187cb6862SWolfgang Denkap922_XA10_config	\
222287cb6862SWolfgang Denkap7_config		\
222387cb6862SWolfgang Denkap720t_config		\
222487cb6862SWolfgang Denkap920t_config		\
222587cb6862SWolfgang Denkap926ejs_config		\
222687cb6862SWolfgang Denkap946es_config: unconfig
222796782c63SWolfgang Denk	@board/integratorap/split_by_variant.sh $@
22283d3befa7Swdenk
222987cb6862SWolfgang Denkintegratorcp_config	\
223087cb6862SWolfgang Denkcp_config		\
223187cb6862SWolfgang Denkcp920t_config		\
223287cb6862SWolfgang Denkcp926ejs_config		\
223387cb6862SWolfgang Denkcp946es_config		\
223487cb6862SWolfgang Denkcp1136_config		\
223587cb6862SWolfgang Denkcp966_config		\
223687cb6862SWolfgang Denkcp922_config		\
223787cb6862SWolfgang Denkcp922_XA10_config	\
223887cb6862SWolfgang Denkcp1026_config: unconfig
223996782c63SWolfgang Denk	@board/integratorcp/split_by_variant.sh $@
224025d6712aSwdenk
224199b0d285SWolfgang Denkkb9202_config	:	unconfig
2242f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
224399b0d285SWolfgang Denk
2244f832d8a1Swdenklpd7a400_config \
2245f832d8a1Swdenklpd7a404_config:	unconfig
2246f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
22473d3befa7Swdenk
2248281e00a3Swdenkmx1ads_config	:	unconfig
2249f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2250281e00a3Swdenk
2251281e00a3Swdenkmx1fs2_config	:	unconfig
2252f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2253281e00a3Swdenk
2254ac7eb8a3SWolfgang Denknetstar_32_config	\
2255ac7eb8a3SWolfgang Denknetstar_config:		unconfig
2256f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2257ac7eb8a3SWolfgang Denk	@if [ "$(findstring _32_,$@)" ] ; then \
2258ac7eb8a3SWolfgang Denk		echo "... 32MB SDRAM" ; \
2259f9328639SMarian Balakowicz		echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
2260ac7eb8a3SWolfgang Denk	else \
2261ac7eb8a3SWolfgang Denk		echo "... 64MB SDRAM" ; \
2262f9328639SMarian Balakowicz		echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
2263ac7eb8a3SWolfgang Denk	fi
2264f9328639SMarian Balakowicz	@$(MKCONFIG) -a netstar arm arm925t netstar
2265ac7eb8a3SWolfgang Denk
22662e5983d2Swdenkomap1510inn_config :	unconfig
2267f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
22682e5983d2Swdenk
22691eaeb58eSwdenkomap5912osk_config :	unconfig
2270f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
22711eaeb58eSwdenk
2272c74b2108SSergey Kubushyndavinci_dvevm_config :	unconfig
2273c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2274c74b2108SSergey Kubushyn
2275c74b2108SSergey Kubushyndavinci_schmoogie_config :	unconfig
2276c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2277c74b2108SSergey Kubushyn
2278c74b2108SSergey Kubushyndavinci_sonata_config :	unconfig
2279c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2280c74b2108SSergey Kubushyn
228163e73c9aSwdenkomap1610inn_config \
228263e73c9aSwdenkomap1610inn_cs0boot_config \
228363e73c9aSwdenkomap1610inn_cs3boot_config \
22843ff02c27Swdenkomap1610inn_cs_autoboot_config \
228563e73c9aSwdenkomap1610h2_config \
228663e73c9aSwdenkomap1610h2_cs0boot_config \
22873ff02c27Swdenkomap1610h2_cs3boot_config \
22883ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
2289f9328639SMarian Balakowicz	@mkdir -p $(obj)include
229063e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2291cdd917a4SWolfgang Denk		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2292b79a11ccSwdenk		echo "... configured for CS0 boot"; \
22933ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2294cdd917a4SWolfgang Denk		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
22953ff02c27Swdenk		echo "... configured for CS_AUTO boot"; \
229663e73c9aSwdenk	else \
2297cdd917a4SWolfgang Denk		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2298b79a11ccSwdenk		echo "... configured for CS3 boot"; \
229963e73c9aSwdenk	fi;
2300f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
23016f21347dSwdenk
2302a56bd922Swdenkomap730p2_config \
2303a56bd922Swdenkomap730p2_cs0boot_config \
2304a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
2305f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2306a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2307f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2308a56bd922Swdenk		echo "... configured for CS0 boot"; \
2309a56bd922Swdenk	else \
2310f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2311a56bd922Swdenk		echo "... configured for CS3 boot"; \
2312a56bd922Swdenk	fi;
2313f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2314a56bd922Swdenk
231532cb2c70SWolfgang Denksbc2410x_config: unconfig
2316f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
231732cb2c70SWolfgang Denk
2318281e00a3Swdenkscb9328_config	:	unconfig
2319f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2320281e00a3Swdenk
23217ebf7443Swdenksmdk2400_config	:	unconfig
2322f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
23237ebf7443Swdenk
23247ebf7443Swdenksmdk2410_config	:	unconfig
2325f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
23267ebf7443Swdenk
23272d24a3a7SwdenkSX1_config :		unconfig
2328f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t sx1
23292d24a3a7Swdenk
2330b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
233143d9616cSwdenktrab_config \
2332b0639ca3Swdenktrab_bigram_config \
2333b0639ca3Swdenktrab_bigflash_config \
2334f54ebdfaSwdenktrab_old_config:	unconfig
2335f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2336f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
2337f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2338b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
2339f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2340f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
2341b0639ca3Swdenk		  echo "... with 8 MB Flash, 32 MB RAM" ; \
2342b0639ca3Swdenk		}
2343b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
2344f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2345f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2346b0639ca3Swdenk		  echo "... with 16 MB Flash, 16 MB RAM" ; \
2347f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2348b0639ca3Swdenk		}
2349f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
2350f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2351f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2352b2001f27Swdenk		  echo "... with 8 MB Flash, 16 MB RAM" ; \
2353f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
235443d9616cSwdenk		}
2355f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
23567ebf7443Swdenk
23571cb8e980SwdenkVCMA9_config	:	unconfig
2358f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
23591cb8e980Swdenk
236087cb6862SWolfgang Denk#========================================================================
236187cb6862SWolfgang Denk# ARM supplied Versatile development boards
236287cb6862SWolfgang Denk#========================================================================
236387cb6862SWolfgang Denkversatile_config	\
236487cb6862SWolfgang Denkversatileab_config	\
236587cb6862SWolfgang Denkversatilepb_config :	unconfig
236696782c63SWolfgang Denk	@board/versatile/split_by_variant.sh $@
2367074cff0dSwdenk
23683c2b3d45Swdenkvoiceblue_smallflash_config	\
23693c2b3d45Swdenkvoiceblue_config:	unconfig
2370f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2371f9328639SMarian Balakowicz	@mkdir -p $(obj)board/voiceblue
23723c2b3d45Swdenk	@if [ "$(findstring _smallflash_,$@)" ] ; then \
23733c2b3d45Swdenk		echo "... boot from lower flash bank" ; \
2374f9328639SMarian Balakowicz		echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2375f9328639SMarian Balakowicz		echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
23763c2b3d45Swdenk	else \
23773c2b3d45Swdenk		echo "... boot from upper flash bank" ; \
2378f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
2379f9328639SMarian Balakowicz		echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
23803c2b3d45Swdenk	fi
2381f9328639SMarian Balakowicz	@$(MKCONFIG) -a voiceblue arm arm925t voiceblue
23823c2b3d45Swdenk
238316b013e7Swdenkcm4008_config	:	unconfig
2384f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
238516b013e7Swdenk
238616b013e7Swdenkcm41xx_config	:	unconfig
2387f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
238816b013e7Swdenk
23890c32d96dSWolfgang Denkgth2_config		:	unconfig
2390f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2391f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2392f9328639SMarian Balakowicz	@echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2393f9328639SMarian Balakowicz	@$(MKCONFIG) -a gth2 mips mips gth2
23940c32d96dSWolfgang Denk
2395074cff0dSwdenk#########################################################################
2396074cff0dSwdenk## S3C44B0 Systems
2397074cff0dSwdenk#########################################################################
2398074cff0dSwdenk
2399074cff0dSwdenkB2_config	:	unconfig
2400f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2401074cff0dSwdenk
24027ebf7443Swdenk#########################################################################
24037ebf7443Swdenk## ARM720T Systems
24047ebf7443Swdenk#########################################################################
24057ebf7443Swdenk
2406c570b2fdSWolfgang Denkarmadillo_config:	unconfig
2407f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2408c570b2fdSWolfgang Denk
24097ebf7443Swdenkep7312_config	:	unconfig
2410f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
24117ebf7443Swdenk
24122d24a3a7Swdenkimpa7_config	:	unconfig
2413f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
24142d24a3a7Swdenk
24152d1a537dSwdenkmodnet50_config :	unconfig
2416f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
24172d1a537dSwdenk
241839539887Swdenkevb4510_config :	unconfig
2419f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
242039539887Swdenk
24216bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
2422b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2423b0d8f5bfSPeter Pearse
2424b0d8f5bfSPeter PearseSMN42_config	:	unconfig
2425b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
24266bd2447eSGary Jennejohn
24277ebf7443Swdenk#########################################################################
242843d9616cSwdenk## XScale Systems
24297ebf7443Swdenk#########################################################################
24307ebf7443Swdenk
243120787e23Swdenkadsvix_config	:	unconfig
2432f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa adsvix
243320787e23Swdenk
2434fabd46acSwdenkcerf250_config :	unconfig
2435f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
2436fabd46acSwdenk
24377ebf7443Swdenkcradle_config	:	unconfig
2438f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
24397ebf7443Swdenk
24407ebf7443Swdenkcsb226_config	:	unconfig
2441f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
24427ebf7443Swdenk
24430be248faSWolfgang Denkdelta_config :
2444f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
24450be248faSWolfgang Denk
244643d9616cSwdenkinnokom_config	:	unconfig
2447f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
244843d9616cSwdenk
24492d5b561eSwdenkixdp425_config	:	unconfig
2450f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
24512d5b561eSwdenk
2452ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
2453f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2454ba94a1bbSWolfgang Denk
245543d9616cSwdenklubbock_config	:	unconfig
2456f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
245743d9616cSwdenk
24585720df78SHeiko Schocherpleb2_config	:	unconfig
2459f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
24605720df78SHeiko Schocher
246152f52c14Swdenklogodl_config	:	unconfig
2462f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
246352f52c14Swdenk
24649d8d5a5bSStefan Roesepdnb3_config \
24659d8d5a5bSStefan Roesescpu_config:    unconfig
2466cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
24679d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
2468cdd917a4SWolfgang Denk		echo "#define CONFIG_SCPU"      >>$(obj)include/config.h ; \
24699d8d5a5bSStefan Roese		echo "... on SCPU board variant" ; \
24709d8d5a5bSStefan Roese	else \
2471cdd917a4SWolfgang Denk		>$(obj)include/config.h ; \
24729d8d5a5bSStefan Roese	fi
24739d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2474ba94a1bbSWolfgang Denk
2475f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
2476f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2477f57f70aaSWolfgang Denk
24785e5803e1Sstefano babictrizepsiv_config	:	unconfig
24795e5803e1Sstefano babic	@$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
24805e5803e1Sstefano babic
24813e38691eSwdenkwepep250_config	:	unconfig
2482f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
24833e38691eSwdenk
24844ec3a7f0Swdenkxaeniax_config	:	unconfig
2485f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
24864ec3a7f0Swdenk
2487efa329cbSwdenkxm250_config	:	unconfig
2488f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
2489efa329cbSwdenk
2490ca0e7748Swdenkxsengine_config :	unconfig
2491f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
2492ca0e7748Swdenk
2493e0269579SMarkus Klotzbücherzylonite_config :
2494f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
2495e0269579SMarkus Klotzbücher
24968ed96046Swdenk#########################################################################
24978ed96046Swdenk## ARM1136 Systems
24988ed96046Swdenk#########################################################################
24998ed96046Swdenkomap2420h4_config	: unconfig
2500f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
25015ca9881aSPeter Pearse
25025ca9881aSPeter Pearseapollon_config		: unconfig
25035ca9881aSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon
25048ed96046Swdenk
25052262cfeeSwdenk#========================================================================
25062262cfeeSwdenk# i386
25072262cfeeSwdenk#========================================================================
25082262cfeeSwdenk#########################################################################
25092262cfeeSwdenk## AMD SC520 CDP
25102262cfeeSwdenk#########################################################################
25112262cfeeSwdenksc520_cdp_config	:	unconfig
2512f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
25132262cfeeSwdenk
25147a8e9bedSwdenksc520_spunk_config	:	unconfig
2515f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
25167a8e9bedSwdenk
25177a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
2518f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
25197a8e9bedSwdenk
252043d9616cSwdenk#========================================================================
252143d9616cSwdenk# MIPS
252243d9616cSwdenk#========================================================================
25237ebf7443Swdenk#########################################################################
252443d9616cSwdenk## MIPS32 4Kc
252543d9616cSwdenk#########################################################################
252643d9616cSwdenk
2527e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2528e0ac62d7Swdenk
2529e0ac62d7Swdenkincaip_100MHz_config	\
2530e0ac62d7Swdenkincaip_133MHz_config	\
2531e0ac62d7Swdenkincaip_150MHz_config	\
253243d9616cSwdenkincaip_config: unconfig
2533f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2534f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2535e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
2536f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2537e0ac62d7Swdenk		  echo "... with 100MHz system clock" ; \
2538e0ac62d7Swdenk		}
2539e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
2540f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2541e0ac62d7Swdenk		  echo "... with 133MHz system clock" ; \
2542e0ac62d7Swdenk		}
2543e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
2544f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2545e0ac62d7Swdenk		  echo "... with 150MHz system clock" ; \
2546e0ac62d7Swdenk		}
2547f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2548e0ac62d7Swdenk
2549f4863a7aSwdenktb0229_config: unconfig
2550f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
2551f4863a7aSwdenk
2552e0ac62d7Swdenk#########################################################################
255369459791Swdenk## MIPS32 AU1X00
255469459791Swdenk#########################################################################
255569459791Swdenkdbau1000_config		:	unconfig
2556f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2557f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2558f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2559f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
256069459791Swdenk
256169459791Swdenkdbau1100_config		:	unconfig
2562f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2563f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2564f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2565f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
256669459791Swdenk
256769459791Swdenkdbau1500_config		:	unconfig
2568f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2569f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2570f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2571f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
257269459791Swdenk
2573ff36fd85Swdenkdbau1550_config		:	unconfig
2574f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2575f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2576f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2577f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2578ff36fd85Swdenk
2579ff36fd85Swdenkdbau1550_el_config	:	unconfig
2580f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2581f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2582f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2583f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2584ff36fd85Swdenk
2585265817c7SWolfgang Denkpb1000_config		:	unconfig
2586f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2587f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2588f9328639SMarian Balakowicz	@echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2589f9328639SMarian Balakowicz	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
2590265817c7SWolfgang Denk
259169459791Swdenk#########################################################################
2592e0ac62d7Swdenk## MIPS64 5Kc
2593e0ac62d7Swdenk#########################################################################
259443d9616cSwdenk
25953e38691eSwdenkpurple_config :		unconfig
2596f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
259743d9616cSwdenk
25984a551709Swdenk#========================================================================
25994a551709Swdenk# Nios
26004a551709Swdenk#========================================================================
26014a551709Swdenk#########################################################################
26024a551709Swdenk## Nios32
26034a551709Swdenk#########################################################################
26044a551709Swdenk
2605c935d3bdSwdenkDK1C20_safe_32_config		\
2606c935d3bdSwdenkDK1C20_standard_32_config	\
26074a551709SwdenkDK1C20_config:	unconfig
2608f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2609f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2610c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2611f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2612c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
2613c935d3bdSwdenk		}
2614c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2615f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2616c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
2617c935d3bdSwdenk		}
2618c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
2619f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2620c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2621c935d3bdSwdenk		}
2622f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2623c935d3bdSwdenk
2624c935d3bdSwdenkDK1S10_safe_32_config		\
2625c935d3bdSwdenkDK1S10_standard_32_config	\
2626ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
2627c935d3bdSwdenkDK1S10_config:	unconfig
2628f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2629f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2630c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2631f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2632c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
2633c935d3bdSwdenk		}
2634c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2635f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2636c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
2637c935d3bdSwdenk		}
2638ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2639f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2640ec4c544bSwdenk		  echo "... NIOS 'mtx_ldk_20' configuration" ; \
2641ec4c544bSwdenk		}
2642c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
2643f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2644c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2645c935d3bdSwdenk		}
2646f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
26474a551709Swdenk
2648aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
2649aaf224abSwdenkADNPESC1_base_32_config		\
2650aaf224abSwdenkADNPESC1_config: unconfig
2651f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2652f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2653aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
2654f9328639SMarian Balakowicz		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2655aaf224abSwdenk		  echo "... DNP/EVA2 configuration" ; \
2656aaf224abSwdenk		}
2657aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
2658f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2659aaf224abSwdenk		  echo "... NIOS 'base_32' configuration" ; \
2660aaf224abSwdenk		}
2661aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2662f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2663aaf224abSwdenk		  echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2664aaf224abSwdenk		}
2665f9328639SMarian Balakowicz	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2666aaf224abSwdenk
26675c952cf0Swdenk#########################################################################
26685c952cf0Swdenk## Nios-II
26695c952cf0Swdenk#########################################################################
26705c952cf0Swdenk
26719cc83378SScott McNuttEP1C20_config : unconfig
2672f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
26739cc83378SScott McNutt
26749cc83378SScott McNuttEP1S10_config : unconfig
2675f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
26769cc83378SScott McNutt
26779cc83378SScott McNuttEP1S40_config : unconfig
2678f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
26799cc83378SScott McNutt
26805c952cf0SwdenkPK1C20_config : unconfig
2681f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
26825c952cf0Swdenk
26835c952cf0SwdenkPCI5441_config : unconfig
2684f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
26854a551709Swdenk
2686507bbe3eSwdenk#========================================================================
2687507bbe3eSwdenk# MicroBlaze
2688507bbe3eSwdenk#========================================================================
2689507bbe3eSwdenk#########################################################################
2690507bbe3eSwdenk## Microblaze
2691507bbe3eSwdenk#########################################################################
2692507bbe3eSwdenksuzaku_config:	unconfig
2693f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2694f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2695f9328639SMarian Balakowicz	@echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2696f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2697507bbe3eSwdenk
2698cfc67116SMichal Simekml401_config:	unconfig
2699cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2700cdd917a4SWolfgang Denk	@ >$(obj)include/config.h
2701cdd917a4SWolfgang Denk	@echo "#define CONFIG_ML401 1" >> $(obj)include/config.h
270290b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2703cfc67116SMichal Simek
270417980495SMichal Simekxupv2p_config:	unconfig
2705cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2706cdd917a4SWolfgang Denk	@ >$(obj)include/config.h
2707cdd917a4SWolfgang Denk	@echo "#define CONFIG_XUPV2P 1" >> $(obj)include/config.h
270890b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
270917980495SMichal Simek
27103e38691eSwdenk#########################################################################
27110afe519aSWolfgang Denk## Blackfin
27120afe519aSWolfgang Denk#########################################################################
2713ef26a08fSAubrey.Libf533-ezkit_config:	unconfig
2714ef26a08fSAubrey.Li	@$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-ezkit
27150afe519aSWolfgang Denk
2716ef26a08fSAubrey.Libf533-stamp_config:	unconfig
2717ef26a08fSAubrey.Li	@$(MKCONFIG) $(@:_config=) blackfin bf533 bf533-stamp
27180afe519aSWolfgang Denk
271926bf7decSAubrey Libf537-stamp_config:	unconfig
272026bf7decSAubrey Li	@$(MKCONFIG) $(@:_config=) blackfin bf537 bf537-stamp
272126bf7decSAubrey Li
272265458987SAubrey Libf561-ezkit_config:	unconfig
272365458987SAubrey Li	@$(MKCONFIG) $(@:_config=) blackfin bf561 bf561-ezkit
27240afe519aSWolfgang Denk
27255e3b0bc1SHaavard Skinnemoen#========================================================================
27265e3b0bc1SHaavard Skinnemoen# AVR32
27275e3b0bc1SHaavard Skinnemoen#========================================================================
27285e3b0bc1SHaavard Skinnemoen#########################################################################
27295e3b0bc1SHaavard Skinnemoen## AT32AP7xxx
27305e3b0bc1SHaavard Skinnemoen#########################################################################
27315e3b0bc1SHaavard Skinnemoen
27325e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
273336f28f8aSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
27345e3b0bc1SHaavard Skinnemoen
2735667568dbSHaavard Skinnemoenatstk1003_config	:	unconfig
2736667568dbSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2737667568dbSHaavard Skinnemoen
273864ff2357SHaavard Skinnemoenatstk1004_config	:	unconfig
273964ff2357SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
27400afe519aSWolfgang Denk
27410afe519aSWolfgang Denk#########################################################################
27420afe519aSWolfgang Denk#########################################################################
27433e38691eSwdenk#########################################################################
27447ebf7443Swdenk
274569df3c4dSNobuhiro Iwamatsu#########################################################################
274669df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH)
274769df3c4dSNobuhiro Iwamatsu#########################################################################
274869df3c4dSNobuhiro Iwamatsums7750se_config: unconfig
274969df3c4dSNobuhiro Iwamatsu	@ >include/config.h
275069df3c4dSNobuhiro Iwamatsu	@echo "#define CONFIG_MS7750SE 1" >> include/config.h
275169df3c4dSNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh4 ms7750se
275269df3c4dSNobuhiro Iwamatsu
2753d91ea45dSNobuhiro Iwamatsums7722se_config :       unconfig
2754d91ea45dSNobuhiro Iwamatsu	@ >include/config.h
2755d91ea45dSNobuhiro Iwamatsu	@echo "#define CONFIG_MS7722SE 1" >> include/config.h
2756d91ea45dSNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh4 ms7722se
27577a8e9bedSwdenk
27587a8e9bedSwdenk#########################################################################
27597ebf7443Swdenk#########################################################################
27607ebf7443Swdenk#########################################################################
27617ebf7443Swdenk
2762228f29acSwdenkclean:
2763f9328639SMarian Balakowicz	find $(OBJTREE) -type f \
27647f70e853Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
27657ebf7443Swdenk		-o -name '*.o'  -o -name '*.a'  \) -print \
27667ebf7443Swdenk		| xargs rm -f
2767f9328639SMarian Balakowicz	rm -f $(obj)examples/hello_world $(obj)examples/timer \
2768f9328639SMarian Balakowicz	      $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2769f9328639SMarian Balakowicz	      $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2770d214fbbdSWolfgang Denk	      $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2771f9328639SMarian Balakowicz	      $(obj)examples/test_burst
2772f9328639SMarian Balakowicz	rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2773566a494fSHeiko Schocher		$(obj)tools/gen_eth_addr $(obj)tools/ubsha1
2774f9328639SMarian Balakowicz	rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2775f9328639SMarian Balakowicz	rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2776f9328639SMarian Balakowicz	rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2777f9328639SMarian Balakowicz	rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2778f9328639SMarian Balakowicz	rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2779f9328639SMarian Balakowicz	rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2780f9328639SMarian Balakowicz	rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2781f9328639SMarian Balakowicz	rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2782f9328639SMarian Balakowicz	rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
27838440bb14SAubrey Li	rm -f $(obj)board/bf533-ezkit/u-boot.lds $(obj)board/bf533-stamp/u-boot.lds
278465458987SAubrey Li	rm -f $(obj)board/bf537-stamp/u-boot.lds $(obj)board/bf561-ezkit/u-boot.lds
2785f9328639SMarian Balakowicz	rm -f $(obj)include/bmp_logo.h
27868318fbf8SMarian Balakowicz	rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2787500856ebSRafal Jaworowski	rm -f $(obj)api_examples/demo
27887ebf7443Swdenk
27897ebf7443Swdenkclobber:	clean
2790f9328639SMarian Balakowicz	find $(OBJTREE) -type f \( -name .depend \
27914c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
27924c0d4c3bSwdenk		-print0 \
27934c0d4c3bSwdenk		| xargs -0 rm -f
2794f9328639SMarian Balakowicz	rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2795f9328639SMarian Balakowicz	rm -fr $(obj)*.*~
2796f9328639SMarian Balakowicz	rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2797566a494fSHeiko Schocher	rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c $(obj)tools/sha1.c
2798f9328639SMarian Balakowicz	rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2799f9328639SMarian Balakowicz	rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
28008318fbf8SMarian Balakowicz	[ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2801500856ebSRafal Jaworowski	find $(obj)api_examples -lname "*" -print | xargs rm -f
2802500856ebSRafal Jaworowski	rm -f $(obj)api_examples/demo
28037ebf7443Swdenk
2804f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
28057ebf7443Swdenkmrproper \
28067ebf7443Swdenkdistclean:	clobber unconfig
2807f9328639SMarian Balakowiczelse
2808f9328639SMarian Balakowiczmrproper \
2809f9328639SMarian Balakowiczdistclean:	clobber unconfig
2810f9328639SMarian Balakowicz	rm -rf $(OBJTREE)/*
2811f9328639SMarian Balakowiczendif
28127ebf7443Swdenk
28137ebf7443Swdenkbackup:
28147ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
28157ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
28167ebf7443Swdenk
28177ebf7443Swdenk#########################################################################
2818