xref: /openbmc/u-boot/Makefile (revision 61525f2f)
17ebf7443Swdenk#
2ae6d1056SWolfgang Denk# (C) Copyright 2000-2008
37ebf7443Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
47ebf7443Swdenk#
57ebf7443Swdenk# See file CREDITS for list of people who contributed to this
67ebf7443Swdenk# project.
77ebf7443Swdenk#
87ebf7443Swdenk# This program is free software; you can redistribute it and/or
97ebf7443Swdenk# modify it under the terms of the GNU General Public License as
1045a212c4SWolfgang Denk# published by the Free Software Foundatio; either version 2 of
117ebf7443Swdenk# the License, or (at your option) any later version.
127ebf7443Swdenk#
137ebf7443Swdenk# This program is distributed in the hope that it will be useful,
147ebf7443Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of
157ebf7443Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the
167ebf7443Swdenk# GNU General Public License for more details.
177ebf7443Swdenk#
187ebf7443Swdenk# You should have received a copy of the GNU General Public License
197ebf7443Swdenk# along with this program; if not, write to the Free Software
207ebf7443Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
217ebf7443Swdenk# MA 02111-1307 USA
227ebf7443Swdenk#
237ebf7443Swdenk
24881a87ecSWolfgang DenkVERSION = 1
25754bac48SWolfgang DenkPATCHLEVEL = 3
2667a4389eSWolfgang DenkSUBLEVEL = 2
2746cb5074SWolfgang DenkEXTRAVERSION =
28881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29f9328639SMarian BalakowiczVERSION_FILE = $(obj)include/version_autogenerated.h
30881a87ecSWolfgang Denk
317ebf7443SwdenkHOSTARCH := $(shell uname -m | \
327ebf7443Swdenk	sed -e s/i.86/i386/ \
337ebf7443Swdenk	    -e s/sun4u/sparc64/ \
347ebf7443Swdenk	    -e s/arm.*/arm/ \
357ebf7443Swdenk	    -e s/sa110/arm/ \
367ebf7443Swdenk	    -e s/powerpc/ppc/ \
37a2280646SKumar Gala	    -e s/ppc64/ppc/ \
387ebf7443Swdenk	    -e s/macppc/ppc/)
397ebf7443Swdenk
40f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
417ebf7443Swdenk	    sed -e 's/\(cygwin\).*/cygwin/')
427ebf7443Swdenk
43f9d77ed3SWolfgang Denkexport	HOSTARCH HOSTOS
447ebf7443Swdenk
457ebf7443Swdenk# Deal with colliding definitions from tcsh etc.
467ebf7443SwdenkVENDOR=
477ebf7443Swdenk
487ebf7443Swdenk#########################################################################
49ae6d1056SWolfgang Denk# Allow for silent builds
50ae6d1056SWolfgang Denkifeq (,$(findstring s,$(MAKEFLAGS)))
51ae6d1056SWolfgang DenkXECHO = echo
52ae6d1056SWolfgang Denkelse
53ae6d1056SWolfgang DenkXECHO = :
54ae6d1056SWolfgang Denkendif
55ae6d1056SWolfgang Denk
56ae6d1056SWolfgang Denk#########################################################################
57f9328639SMarian Balakowicz#
58f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external
59f9328639SMarian Balakowicz# directory. Two use cases are supported:
60f9328639SMarian Balakowicz#
61f9328639SMarian Balakowicz# 1) Add O= to the make command line
62f9328639SMarian Balakowicz# 'make O=/tmp/build all'
63f9328639SMarian Balakowicz#
64f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location
65f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
66f9328639SMarian Balakowicz# 'make'
67f9328639SMarian Balakowicz#
68f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script
69f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
70f9328639SMarian Balakowicz# './MAKEALL'
71f9328639SMarian Balakowicz#
72f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable.
73f9328639SMarian Balakowicz#
74f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and
75f9328639SMarian Balakowicz# the object files are placed in the source directory.
76f9328639SMarian Balakowicz#
777ebf7443Swdenk
78f9328639SMarian Balakowiczifdef O
79f9328639SMarian Balakowiczifeq ("$(origin O)", "command line")
80f9328639SMarian BalakowiczBUILD_DIR := $(O)
81f9328639SMarian Balakowiczendif
82f9328639SMarian Balakowiczendif
837ebf7443Swdenk
84f9328639SMarian Balakowiczifneq ($(BUILD_DIR),)
85f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR)
864f0645ebSMarian Balakowicz
874f0645ebSMarian Balakowicz# Attempt to create a output directory.
884f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
894f0645ebSMarian Balakowicz
904f0645ebSMarian Balakowicz# Verify if it was successful.
91f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
92f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
93f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),)
94f9328639SMarian Balakowicz
95f9328639SMarian BalakowiczOBJTREE		:= $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
96f9328639SMarian BalakowiczSRCTREE		:= $(CURDIR)
97f9328639SMarian BalakowiczTOPDIR		:= $(SRCTREE)
98f9328639SMarian BalakowiczLNDIR		:= $(OBJTREE)
99f9328639SMarian Balakowiczexport	TOPDIR SRCTREE OBJTREE
100f9328639SMarian Balakowicz
101f9328639SMarian BalakowiczMKCONFIG	:= $(SRCTREE)/mkconfig
102f9328639SMarian Balakowiczexport MKCONFIG
103f9328639SMarian Balakowicz
104f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
105f9328639SMarian BalakowiczREMOTE_BUILD	:= 1
106f9328639SMarian Balakowiczexport REMOTE_BUILD
107f9328639SMarian Balakowiczendif
108f9328639SMarian Balakowicz
109f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile
110f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for
111f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc.
112f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
113f9328639SMarian Balakowiczobj := $(OBJTREE)/
114f9328639SMarian Balakowiczsrc := $(SRCTREE)/
115f9328639SMarian Balakowiczelse
116f9328639SMarian Balakowiczobj :=
117f9328639SMarian Balakowiczsrc :=
118f9328639SMarian Balakowiczendif
119f9328639SMarian Balakowiczexport obj src
120f9328639SMarian Balakowicz
1215013c09fSWolfgang Denk# Make sure CDPATH settings don't interfere
1225013c09fSWolfgang Denkunexport CDPATH
1235013c09fSWolfgang Denk
124f9328639SMarian Balakowicz#########################################################################
125f9328639SMarian Balakowicz
126ae6d1056SWolfgang Denkifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
127f9328639SMarian Balakowicz
1287ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
129ae6d1056SWolfgang Denkinclude $(obj)include/config.mk
1301d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
131f9328639SMarian Balakowicz
1327ebf7443Swdenkifndef CROSS_COMPILE
133a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH))
1347ebf7443SwdenkCROSS_COMPILE =
1357ebf7443Swdenkelse
1367ebf7443Swdenkifeq ($(ARCH),ppc)
13716c8d5e7SWolfgang DenkCROSS_COMPILE = ppc_8xx-
1387ebf7443Swdenkendif
1397ebf7443Swdenkifeq ($(ARCH),arm)
140dc7c9a1aSwdenkCROSS_COMPILE = arm-linux-
1417ebf7443Swdenkendif
1422262cfeeSwdenkifeq ($(ARCH),i386)
1437a8e9bedSwdenkCROSS_COMPILE = i386-linux-
1447a8e9bedSwdenkendif
14543d9616cSwdenkifeq ($(ARCH),mips)
14643d9616cSwdenkCROSS_COMPILE = mips_4KC-
14743d9616cSwdenkendif
1484a551709Swdenkifeq ($(ARCH),nios)
1494a551709SwdenkCROSS_COMPILE = nios-elf-
1504a551709Swdenkendif
1515c952cf0Swdenkifeq ($(ARCH),nios2)
1525c952cf0SwdenkCROSS_COMPILE = nios2-elf-
1535c952cf0Swdenkendif
1544e5ca3ebSwdenkifeq ($(ARCH),m68k)
1554e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
1564e5ca3ebSwdenkendif
157507bbe3eSwdenkifeq ($(ARCH),microblaze)
158507bbe3eSwdenkCROSS_COMPILE = mb-
159507bbe3eSwdenkendif
1600afe519aSWolfgang Denkifeq ($(ARCH),blackfin)
161ef26a08fSAubrey.LiCROSS_COMPILE = bfin-uclinux-
1620afe519aSWolfgang Denkendif
1637b64fef3SWolfgang Denkifeq ($(ARCH),avr32)
1645374b36dSHaavard SkinnemoenCROSS_COMPILE = avr32-linux-
1657b64fef3SWolfgang Denkendif
1660b135cfcSNobuhiro Iwamatsuifeq ($(ARCH),sh)
1670b135cfcSNobuhiro IwamatsuCROSS_COMPILE = sh4-linux-
168c2f02da2SDaniel Hellstromendif
169c2f02da2SDaniel Hellstromifeq ($(ARCH),sparc)
170c2f02da2SDaniel HellstromCROSS_COMPILE = sparc-elf-
171c2f02da2SDaniel Hellstromendif	# sparc
172ae6d1056SWolfgang Denkendif	# HOSTARCH,ARCH
173ae6d1056SWolfgang Denkendif	# CROSS_COMPILE
1747ebf7443Swdenk
1757ebf7443Swdenkexport	CROSS_COMPILE
1767ebf7443Swdenk
17792b197f0SWolfgang Denk# load other configuration
17892b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk
17992b197f0SWolfgang Denk
1807ebf7443Swdenk#########################################################################
1817ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
1827ebf7443Swdenk
1837ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
1842262cfeeSwdenkifeq ($(CPU),i386)
1852262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
1862262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o
1872262cfeeSwdenkendif
1887ebf7443Swdenkifeq ($(CPU),ppc4xx)
1897ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
1907ebf7443Swdenkendif
19142d1f039Swdenkifeq ($(CPU),mpc85xx)
19242d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
19342d1f039Swdenkendif
1947ebf7443Swdenk
195f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS))
196f9328639SMarian Balakowicz
1979fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
1987608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
1997608d75fSKim Phillips	"board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
2009fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a
2017ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
2021d9f4105Swdenkifdef SOC
2031d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
2041d9f4105Swdenkendif
205323bfa8fSStefan Roeseifeq ($(CPU),ixp)
206323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a
207323bfa8fSStefan Roeseendif
2087ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
209518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
210c419d1d6Sstroese	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
2117ebf7443SwdenkLIBS += net/libnet.a
2127ebf7443SwdenkLIBS += disk/libdisk.a
2130f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a
21433daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a
21557a12720STsiChungLiewLIBS += drivers/dma/libdma.a
216f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a
217080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a
21816b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a
219318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a
22059829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a
22159829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a
22259829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a
22359829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a
2248e585f02STsiChung LiewLIBS += drivers/net/libnet.a
2252439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a
22693a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a
22773646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a
22804a9e118SBen WarrenLIBS += drivers/spi/libspi.a
2297737d5c6SDave Liuifeq ($(CPU),mpc83xx)
2307737d5c6SDave LiuLIBS += drivers/qe/qe.a
2317737d5c6SDave Liuendif
232da9d4610SAndy Flemingifeq ($(CPU),mpc85xx)
233da9d4610SAndy FlemingLIBS += drivers/qe/qe.a
234da9d4610SAndy Flemingendif
23559829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a
2368e585f02STsiChung LiewLIBS += drivers/serial/libserial.a
23759829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a
23859829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a
239ad5bb451SWolfgang DenkLIBS += post/libpost.a post/drivers/libpostdrivers.a
240ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
241ad5bb451SWolfgang Denk	"post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
242b4489621SSergei PoselenovLIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
243b4489621SSergei Poselenov	"post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
244ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
245ad5bb451SWolfgang Denk	"post/cpu/$(CPU)/libpost$(CPU).a"; fi)
246ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
247ad5bb451SWolfgang Denk	"post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
2487ebf7443SwdenkLIBS += common/libcommon.a
2497651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a
250500856ebSRafal JaworowskiLIBS += api/libapi.a
251f9328639SMarian Balakowicz
252f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS))
253019895a8SStefano Babic.PHONY : $(LIBS) $(VERSION_FILE)
254a8c7c708Swdenk
2554f7cb08eSwdenk# Add GCC lib
2561a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
2573d3befa7Swdenk
258a8c7c708Swdenk# The "tools" are needed early, so put this first
259a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
260a8c7c708SwdenkSUBDIRS	= tools \
2610dc1fc22SRafal Jaworowski	  examples \
2620dc1fc22SRafal Jaworowski	  api_examples
263500856ebSRafal Jaworowski
264b028f715Swdenk.PHONY : $(SUBDIRS)
265a8c7c708Swdenk
266887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y)
267887e2ec9SStefan RoeseNAND_SPL = nand_spl
268887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin
269887e2ec9SStefan Roeseendif
270887e2ec9SStefan Roese
271751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y)
272751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl
273751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin
274751b9b51SKyungmin Parkendif
275751b9b51SKyungmin Park
276f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS))
277f9328639SMarian Balakowicz__LIBS := $(subst $(obj),,$(LIBS))
278f9328639SMarian Balakowicz
2797ebf7443Swdenk#########################################################################
280bdccc4feSwdenk#########################################################################
2817ebf7443Swdenk
282751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
28394a91e24SMike Frysingerifeq ($(ARCH),blackfin)
28494a91e24SMike FrysingerALL += $(obj)u-boot.ldr
28594a91e24SMike Frysingerendif
2867ebf7443Swdenk
287bdccc4feSwdenkall:		$(ALL)
2887ebf7443Swdenk
289f9328639SMarian Balakowicz$(obj)u-boot.hex:	$(obj)u-boot
2906310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
2916310eb9dSwdenk
292f9328639SMarian Balakowicz$(obj)u-boot.srec:	$(obj)u-boot
2937ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
2947ebf7443Swdenk
295f9328639SMarian Balakowicz$(obj)u-boot.bin:	$(obj)u-boot
2967ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
2977ebf7443Swdenk
29894a91e24SMike Frysinger$(obj)u-boot.ldr:	$(obj)u-boot
29994a91e24SMike Frysinger		$(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
30094a91e24SMike Frysinger
30194a91e24SMike Frysinger$(obj)u-boot.ldr.hex:	$(obj)u-boot.ldr
30294a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
30394a91e24SMike Frysinger
30494a91e24SMike Frysinger$(obj)u-boot.ldr.srec:	$(obj)u-boot.ldr
30594a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
30694a91e24SMike Frysinger
307f9328639SMarian Balakowicz$(obj)u-boot.img:	$(obj)u-boot.bin
308bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
309bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
310881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
311bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
312bdccc4feSwdenk		-d $< $@
313bdccc4feSwdenk
314566a494fSHeiko Schocher$(obj)u-boot.sha1:	$(obj)u-boot.bin
31501159530SHeiko Schocher		$(obj)tools/ubsha1 $(obj)u-boot.bin
316566a494fSHeiko Schocher
317f9328639SMarian Balakowicz$(obj)u-boot.dis:	$(obj)u-boot
3187ebf7443Swdenk		$(OBJDUMP) -d $< > $@
3197ebf7443Swdenk
320dd531aacSWolfgang Denk$(obj)u-boot:		depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
3210858b835SMike Frysinger		UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
322f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
323f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
324b2184c31Swdenk			-Map u-boot.map -o u-boot
3257ebf7443Swdenk
32688f72527SJohannes Stezenbach$(OBJS):	depend $(obj)include/autoconf.mk
327f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
328f9328639SMarian Balakowicz
32988f72527SJohannes Stezenbach$(LIBS):	depend $(obj)include/autoconf.mk
330f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
331a8c7c708Swdenk
33288f72527SJohannes Stezenbach$(SUBDIRS):	depend $(obj)include/autoconf.mk
333b028f715Swdenk		$(MAKE) -C $@ all
3347ebf7443Swdenk
335f65c9812SMike Frysinger$(LDSCRIPT):	depend $(obj)include/autoconf.mk
336f65c9812SMike Frysinger		$(MAKE) -C $(dir $@) $(notdir $@)
337f65c9812SMike Frysinger
338dd531aacSWolfgang Denk$(NAND_SPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
3398318fbf8SMarian Balakowicz		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
340887e2ec9SStefan Roese
341dd531aacSWolfgang Denk$(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
3428318fbf8SMarian Balakowicz		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
343887e2ec9SStefan Roese
344751b9b51SKyungmin Park$(ONENAND_IPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
3451bb707c3SKyungmin Park		$(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
346751b9b51SKyungmin Park
347751b9b51SKyungmin Park$(U_BOOT_ONENAND):	$(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
3481bb707c3SKyungmin Park		$(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
349751b9b51SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
3501bb707c3SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
351751b9b51SKyungmin Park
352ae6d1056SWolfgang Denk$(VERSION_FILE):
353ae6d1056SWolfgang Denk		@( echo -n "#define U_BOOT_VERSION \"U-Boot " ; \
354ae6d1056SWolfgang Denk		echo -n "$(U_BOOT_VERSION)" ; \
355881a87ecSWolfgang Denk		echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
356ae6d1056SWolfgang Denk			 $(TOPDIR)) ; \
3570ec7a061SMike Frysinger		echo "\"" ) > $@.tmp
3580ec7a061SMike Frysinger		@cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
359881a87ecSWolfgang Denk
3608f713fdfSdzugdbtools:
361f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
362f9328639SMarian Balakowicz
363f9328639SMarian Balakowiczupdater:
364f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
365f9328639SMarian Balakowicz
366f9328639SMarian Balakowiczenv:
36764b3727bSMarkus Klotzbücher		$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
3688f713fdfSdzu
369ae6d1056SWolfgang Denkdepend dep:	$(VERSION_FILE)
370f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
3717ebf7443Swdenk
372a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include
373a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR)
374a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU)
375a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH)
376a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs
377a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat
378a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos
379a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2
380a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net
381a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk
382a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common
383a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator
384a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block
385a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon
386a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c
387a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input
388a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc
389a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd
390a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand
391a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy
392a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand
393a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net
394a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin
395a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci
396a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia
397a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe
398a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc
399a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial
40004a9e118SBen WarrenTAG_SUBDIRS += drivers/spi
401a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb
402a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video
403a340c325SJean-Christophe PLAGNIOL-VILLARD
404f9328639SMarian Balakowicztags ctags:
405ae6d1056SWolfgang Denk		ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
40688fed9a1SWolfgang Denk						-name '*.[ch]' -print`
4077ebf7443Swdenk
4087ebf7443Swdenketags:
409ae6d1056SWolfgang Denk		etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
41088fed9a1SWolfgang Denk						-name '*.[ch]' -print`
411ffda586fSLi Yangcscope:
412ffda586fSLi Yang		find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
413ffda586fSLi Yang						> cscope.files
414ffda586fSLi Yang		cscope -b -q -k
4157ebf7443Swdenk
416f9328639SMarian Balakowicz$(obj)System.map:	$(obj)u-boot
4177ebf7443Swdenk		@$(NM) $< | \
4187ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
419f9328639SMarian Balakowicz		sort > $(obj)System.map
4207ebf7443Swdenk
4212f155f6cSGrant Likely#
4222f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles)
4232f155f6cSGrant Likely#
4242f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
4252f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when
4262f155f6cSGrant Likely# to regenerate the autoconf.mk file.
427ae6d1056SWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE)
428ae6d1056SWolfgang Denk	@$(XECHO) Generating include/autoconf.mk ; \
42916fe7775SMike Frysinger	set -e ; \
430ae6d1056SWolfgang Denk	: Generate the dependancies ; \
431ae6d1056SWolfgang Denk	$(CC) -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \
432ae6d1056SWolfgang Denk	: Extract the config macros ; \
433ae6d1056SWolfgang Denk	$(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@
4342f155f6cSGrant Likely
435ae6d1056SWolfgang Denksinclude $(obj)include/autoconf.mk.dep
4362f155f6cSGrant Likely
4377ebf7443Swdenk#########################################################################
438ae6d1056SWolfgang Denkelse	# !config.mk
439f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
440f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
441ae6d1056SWolfgang Denk$(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
442ffda586fSLi Yangdep tags ctags etags cscope $(obj)System.map:
4437ebf7443Swdenk	@echo "System not configured - see README" >&2
4447ebf7443Swdenk	@ exit 1
445ae6d1056SWolfgang Denkendif	# config.mk
4467ebf7443Swdenk
4474e53a258SWolfgang Denk.PHONY : CHANGELOG
4484e53a258SWolfgang DenkCHANGELOG:
449b985b5d6SBen Warren	git log --no-merges U-Boot-1_1_5.. | \
450b985b5d6SBen Warren	unexpand -a | sed -e 's/\s\s*$$//' > $@
4514e53a258SWolfgang Denk
4527ebf7443Swdenk#########################################################################
4537ebf7443Swdenk
4547ebf7443Swdenkunconfig:
455887e2ec9SStefan Roese	@rm -f $(obj)include/config.h $(obj)include/config.mk \
4562f155f6cSGrant Likely		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
4572f155f6cSGrant Likely		$(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
4587ebf7443Swdenk
4597ebf7443Swdenk#========================================================================
4607ebf7443Swdenk# PowerPC
4617ebf7443Swdenk#========================================================================
4620db5bca8Swdenk
4630db5bca8Swdenk#########################################################################
4640db5bca8Swdenk## MPC5xx Systems
4650db5bca8Swdenk#########################################################################
4660db5bca8Swdenk
4675e5f9ed2Swdenkcanmb_config:	unconfig
468f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
4695e5f9ed2Swdenk
4700db5bca8Swdenkcmi_mpc5xx_config:	unconfig
471f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
4720db5bca8Swdenk
473b6e4c403SwdenkPATI_config:		unconfig
474f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
475b6e4c403Swdenk
4767ebf7443Swdenk#########################################################################
477945af8d7Swdenk## MPC5xxx Systems
478945af8d7Swdenk#########################################################################
479a87589daSwdenk
480dafba16eSWolfgang Denkaev_config: unconfig
481f9328639SMarian Balakowicz	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
482dafba16eSWolfgang Denk
4836ca24c64Sdzu@denx.deBC3450_config:	unconfig
484f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
4856ca24c64Sdzu@denx.de
4865e4b3361SStefan Roesecpci5200_config:  unconfig
487f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
4885e4b3361SStefan Roese
489a87589daSwdenkhmi1001_config:	unconfig
490f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
491a87589daSwdenk
492e35745bbSwdenkLite5200_config				\
493e35745bbSwdenkLite5200_LOWBOOT_config			\
494e35745bbSwdenkLite5200_LOWBOOT08_config		\
495e35745bbSwdenkicecube_5200_config			\
496e35745bbSwdenkicecube_5200_LOWBOOT_config		\
497e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
498b2001f27Swdenkicecube_5200_DDR_config			\
49979d696fcSwdenkicecube_5200_DDR_LOWBOOT_config		\
50079d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
501e35745bbSwdenkicecube_5100_config:			unconfig
502f9328639SMarian Balakowicz	@mkdir -p $(obj)include
503f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
50417d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
50517d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
506f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
507f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
50817d704ebSwdenk		  fi ; \
509ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5105cf9da48Swdenk		}
5115cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
512f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
5135cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
514ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5155cf9da48Swdenk		}
516b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
517f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
518ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
519b2001f27Swdenk		}
520d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
521f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
522ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
523d4ca31c4Swdenk		}
524a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
525f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
526ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
527945af8d7Swdenk		}
528f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
529945af8d7Swdenk
5302605e90bSHeiko Schocherjupiter_config:	unconfig
5312605e90bSHeiko Schocher	@$(MKCONFIG) jupiter ppc mpc5xxx jupiter
5322605e90bSHeiko Schocher
5334707fb50SBartlomiej Siekav38b_config: unconfig
53490b1b2d6SGrant Likely	@$(MKCONFIG) -a v38b ppc mpc5xxx v38b
5354707fb50SBartlomiej Sieka
536138ff60cSwdenkinka4x0_config:	unconfig
537f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
538138ff60cSwdenk
53909e4b0c5SWolfgang Denklite5200b_config	\
540d3832e8fSDomen Puncerlite5200b_PM_config	\
54109e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
542f9328639SMarian Balakowicz	@mkdir -p $(obj)include
543f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
544f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
545ae6d1056SWolfgang Denk	@ $(XECHO) "... DDR memory revision"
546f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
547f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
548d3832e8fSDomen Puncer	@[ -z "$(findstring _PM_,$@)" ] || \
549d3832e8fSDomen Puncer		{ echo "#define CONFIG_LITE5200B_PM"	>>$(obj)include/config.h ; \
550ae6d1056SWolfgang Denk		  $(XECHO) "... with power management (low-power mode) support" ; \
551d3832e8fSDomen Puncer		}
55209e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
553f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
554ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
55509e4b0c5SWolfgang Denk		}
556ae6d1056SWolfgang Denk	@ $(XECHO) "... with MPC5200B processor"
557f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
55809e4b0c5SWolfgang Denk
559f1ee9825SStefan Roesemcc200_config	\
560ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
561ed1cf845SWolfgang Denkmcc200_highboot_config	\
562ed1cf845SWolfgang Denkmcc200_COM12_config	\
563ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
564113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
565113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
566ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
567ed1cf845SWolfgang Denkprs200_config	\
568ed1cf845SWolfgang Denkprs200_DDR_config	\
569ed1cf845SWolfgang Denkprs200_highboot_config	\
570ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
571f9328639SMarian Balakowicz	@mkdir -p $(obj)include
572f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
5734819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
574ae6d1056SWolfgang Denk		{ $(XECHO) "... with lowboot configuration" ; \
575f1ee9825SStefan Roese		}
5764819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
577f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
578ae6d1056SWolfgang Denk		  $(XECHO) "... with highboot configuration" ; \
5794819fad9SWolfgang Denk		}
5804819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
581ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
582ed1cf845SWolfgang Denk		  then \
583ae6d1056SWolfgang Denk			$(XECHO) "... with DDR" ; \
584ed1cf845SWolfgang Denk		  else \
585ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
586ed1cf845SWolfgang Denk			then \
587ae6d1056SWolfgang Denk				$(XECHO) "... with DDR" ; \
588ed1cf845SWolfgang Denk			else \
589f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
590ae6d1056SWolfgang Denk				$(XECHO) "... with SDRAM" ; \
591ed1cf845SWolfgang Denk			fi; \
592ed1cf845SWolfgang Denk		  fi; \
5934819fad9SWolfgang Denk		}
5944819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
595f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
596ae6d1056SWolfgang Denk		  $(XECHO) "... with SDRAM" ; \
5974819fad9SWolfgang Denk		}
598463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
599f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
600ae6d1056SWolfgang Denk		  $(XECHO) "... with console on COM12" ; \
601463764c8SWolfgang Denk		}
602ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
603f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"	>>$(obj)include/config.h ;\
604ed1cf845SWolfgang Denk		}
605f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
60686ea5f93SWolfgang Denk
6078b7d1f0aSStefan Roesemecp5200_config:  unconfig
608ae6d1056SWolfgang Denk	@$(MKCONFIG) mecp5200  ppc mpc5xxx mecp5200 esd
6098b7d1f0aSStefan Roese
6106341d9d7SHeiko Schochermunices_config:	unconfig
611ae6d1056SWolfgang Denk	@$(MKCONFIG) munices ppc mpc5xxx munices
6126341d9d7SHeiko Schocher
61391c82076SJean-Christophe PLAGNIOL-VILLARDo2dnt_config:	unconfig
614f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
615df04a3dfSWolfgang Denk
6165e4b3361SStefan Roesepf5200_config:	unconfig
617f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
6185e4b3361SStefan Roese
61989394047SwdenkPM520_config \
62089394047SwdenkPM520_DDR_config \
62189394047SwdenkPM520_ROMBOOT_config \
62289394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
623f9328639SMarian Balakowicz	@mkdir -p $(obj)include
62489394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
625f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
626ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
62789394047Swdenk		}
62889394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
629f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
630ae6d1056SWolfgang Denk		  $(XECHO) "... booting from 8-bit flash" ; \
63189394047Swdenk		}
632f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
63389394047Swdenk
6346624b687SWolfgang Denksmmaco4_config: unconfig
635f9328639SMarian Balakowicz	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
6369cdc8386SWolfgang Denk
63786b116b1SBartlomiej Siekacm5200_config:	unconfig
63891c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
639fa1df308SBartlomiej Sieka
6409cdc8386SWolfgang Denkspieval_config:	unconfig
641f9328639SMarian Balakowicz	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
6429cdc8386SWolfgang Denk
64345a212c4SWolfgang DenkTB5200_B_config \
644b87dfd28SWolfgang DenkTB5200_config:	unconfig
645f9328639SMarian Balakowicz	@mkdir -p $(obj)include
64645a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
647f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
648ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200B processor" ; \
64945a212c4SWolfgang Denk		}
650f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
651b87dfd28SWolfgang Denk
652d4ca31c4SwdenkMINI5200_config	\
653d4ca31c4SwdenkEVAL5200_config	\
654d4ca31c4SwdenkTOP5200_config:	unconfig
655f9328639SMarian Balakowicz	@mkdir -p $(obj)include
656f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
657f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
658d4ca31c4Swdenk
6596c7a1408SwdenkTotal5100_config		\
6606c7a1408SwdenkTotal5200_config		\
6616c7a1408SwdenkTotal5200_lowboot_config	\
6626c7a1408SwdenkTotal5200_Rev2_config		\
6636c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
664f9328639SMarian Balakowicz	@mkdir -p $(obj)include
665f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
6666c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
667f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
668ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
6696c7a1408Swdenk		}
6706c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
671f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
672ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
6736c7a1408Swdenk		}
6746c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
675f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
676ae6d1056SWolfgang Denk		  $(XECHO) "... revision 1 board" ; \
6776c7a1408Swdenk		}
6786c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
679f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
680ae6d1056SWolfgang Denk		  $(XECHO) "... revision 2 board" ; \
6816c7a1408Swdenk		}
6826c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
683f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
684ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
6856c7a1408Swdenk		}
686f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
6876c7a1408Swdenk
6885196a7a0SWolfgang Denkcam5200_config \
689d9384de2SMarian Balakowiczcam5200_niosflash_config \
6905196a7a0SWolfgang Denkfo300_config \
6915196a7a0SWolfgang DenkMiniFAP_config \
6925078cce8SWolfgang DenkTQM5200S_config \
6935078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
6945196a7a0SWolfgang DenkTQM5200_B_config \
6955196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
6965196a7a0SWolfgang DenkTQM5200_config	\
6975196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
698f9328639SMarian Balakowicz	@mkdir -p $(obj)include
699f9328639SMarian Balakowicz	@mkdir -p $(obj)board/tqm5200
700135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
701f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
702f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
703f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
704ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200S on Cam5200" ; \
7055078cce8SWolfgang Denk		}
706d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
707d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
708ae6d1056SWolfgang Denk		  $(XECHO) "... with NIOS flash driver" ; \
709d9384de2SMarian Balakowicz		}
7106d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
711f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
712ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200 on FO300" ; \
7136d3bc9b8SMarian Balakowicz		}
714cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
715f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
716ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200_AC on MiniFAP" ; \
717978b1096SWolfgang Denk		}
718cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
719f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
720ae6d1056SWolfgang Denk		  $(XECHO) "... on a STK52XX.100 base board" ; \
72156523f12Swdenk		}
7225078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
723f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
7245078cce8SWolfgang Denk		}
7255078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
726f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
727f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
72845a212c4SWolfgang Denk		}
729978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
730f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
731978b1096SWolfgang Denk		}
732f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
7336dedf3d4SHeiko Schocheruc101_config:		unconfig
7346dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
73553d4a498SBartlomiej Siekamotionpro_config:	unconfig
73653d4a498SBartlomiej Sieka	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
73753d4a498SBartlomiej Sieka
73856523f12Swdenk
739945af8d7Swdenk#########################################################################
7408993e54bSRafal Jaworowski## MPC512x Systems
7418993e54bSRafal Jaworowski#########################################################################
7425f91db7fSJohn Rigbyads5121_config \
7435f91db7fSJohn Rigbyads5121_PCI_config \
7445f91db7fSJohn Rigby	:		 unconfig
745210ed200SWolfgang Denk	@mkdir -p $(obj)include
7465f91db7fSJohn Rigby	@if [ "$(findstring _PCI_,$@)" ] ; then \
7475f91db7fSJohn Rigby		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
7485f91db7fSJohn Rigby		$(XECHO) "... with PCI enabled" ; \
7495f91db7fSJohn Rigby	fi
7505f91db7fSJohn Rigby	@$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
7518993e54bSRafal Jaworowski
7528993e54bSRafal Jaworowski
7538993e54bSRafal Jaworowski#########################################################################
7547ebf7443Swdenk## MPC8xx Systems
7557ebf7443Swdenk#########################################################################
7567ebf7443Swdenk
7572d24a3a7SwdenkAdder_config	\
7582d24a3a7SwdenkAdder87x_config \
75926238132SwdenkAdderII_config	\
7602d24a3a7Swdenk	:		unconfig
761f9328639SMarian Balakowicz	@mkdir -p $(obj)include
76226238132Swdenk	$(if $(findstring AdderII,$@), \
763f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
764f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
7652d24a3a7Swdenk
76616c8d5e7SWolfgang DenkAdderUSB_config:	unconfig
76791c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
76816c8d5e7SWolfgang Denk
769180d3f74SwdenkADS860_config	  \
770180d3f74SwdenkFADS823_config	  \
771180d3f74SwdenkFADS850SAR_config \
772180d3f74SwdenkMPC86xADS_config  \
7731114257cSwdenkMPC885ADS_config  \
774180d3f74SwdenkFADS860T_config:	unconfig
775f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
7767ebf7443Swdenk
7777ebf7443SwdenkAMX860_config	:	unconfig
778f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
7797ebf7443Swdenk
7807ebf7443Swdenkc2mon_config:		unconfig
781f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
7827ebf7443Swdenk
7837ebf7443SwdenkCCM_config:		unconfig
784f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
7857ebf7443Swdenk
7867ebf7443Swdenkcogent_mpc8xx_config:	unconfig
787f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
7887ebf7443Swdenk
7893bac3513SwdenkELPT860_config:		unconfig
790f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
7913bac3513Swdenk
79284c960ceSWolfgang DenkEP88x_config:		unconfig
793f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
79484c960ceSWolfgang Denk
7957ebf7443SwdenkESTEEM192E_config:	unconfig
796f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
7977ebf7443Swdenk
7987ebf7443SwdenkETX094_config	:	unconfig
799f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
8007ebf7443Swdenk
8017ebf7443SwdenkFLAGADM_config:	unconfig
802f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
8037ebf7443Swdenk
8047aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
8057aa78614Swdenk
8067aa78614SwdenkGEN860T_SC_config	\
8077ebf7443SwdenkGEN860T_config: unconfig
808f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8097aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
810f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
811ae6d1056SWolfgang Denk		  $(XECHO) "With reduced H/W feature set (SC)..." ; \
8127aa78614Swdenk		}
813f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
8147ebf7443Swdenk
8157ebf7443SwdenkGENIETV_config:	unconfig
816f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
8177ebf7443Swdenk
8187ebf7443SwdenkGTH_config:	unconfig
819f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
8207ebf7443Swdenk
8217ebf7443Swdenkhermes_config	:	unconfig
822f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
8237ebf7443Swdenk
824c40b2956SwdenkHMI10_config	:	unconfig
825f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
826c40b2956Swdenk
8277ebf7443SwdenkIAD210_config: unconfig
828f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
8297ebf7443Swdenk
8307ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
8317ebf7443Swdenk
8327ebf7443SwdenkICU862_100MHz_config	\
8337ebf7443SwdenkICU862_config: unconfig
834f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8357ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
836f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
837ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
8387ebf7443Swdenk		}
839f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
8407ebf7443Swdenk
8417ebf7443SwdenkIP860_config	:	unconfig
842f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
8437ebf7443Swdenk
8447ebf7443SwdenkIVML24_256_config \
8457ebf7443SwdenkIVML24_128_config \
8467ebf7443SwdenkIVML24_config:	unconfig
847f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8487ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
849f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
8507ebf7443Swdenk		 }
8517ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
852f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
8537ebf7443Swdenk		 }
8547ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
855f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
8567ebf7443Swdenk		 }
857f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
8587ebf7443Swdenk
8597ebf7443SwdenkIVMS8_256_config \
8607ebf7443SwdenkIVMS8_128_config \
8617ebf7443SwdenkIVMS8_config:	unconfig
862f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8637ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
864f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
8657ebf7443Swdenk		 }
8667ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
867f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
8687ebf7443Swdenk		 }
8697ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
870f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
8717ebf7443Swdenk		 }
872f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
8737ebf7443Swdenk
87456f94be3SwdenkKUP4K_config	:	unconfig
875f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
8760608e04dSwdenk
8770608e04dSwdenkKUP4X_config	:	unconfig
878f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
87956f94be3Swdenk
8807ebf7443SwdenkLANTEC_config	:	unconfig
881f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
8827ebf7443Swdenk
8837ebf7443Swdenklwmon_config:		unconfig
884f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
8857ebf7443Swdenk
8867ebf7443SwdenkMBX_config	\
8877ebf7443SwdenkMBX860T_config:	unconfig
888f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
8897ebf7443Swdenk
890381e4e63SHeiko Schochermgsuvd_config:		unconfig
891381e4e63SHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
892381e4e63SHeiko Schocher
8937ebf7443SwdenkMHPC_config:		unconfig
894f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
8957ebf7443Swdenk
8967ebf7443SwdenkMVS1_config :		unconfig
897f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
8987ebf7443Swdenk
899993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
900993cad93Swdenk
901993cad93SwdenkNETVIA_V2_config \
9027ebf7443SwdenkNETVIA_config:		unconfig
903f9328639SMarian Balakowicz	@mkdir -p $(obj)include
904993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
905f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
906ae6d1056SWolfgang Denk		  $(XECHO) "... Version 1" ; \
907993cad93Swdenk		 }
908993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
909f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
910ae6d1056SWolfgang Denk		  $(XECHO) "... Version 2" ; \
911993cad93Swdenk		 }
912f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
9137ebf7443Swdenk
914c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
915c26e454dSwdenk
916c26e454dSwdenkNETPHONE_V2_config \
91704a85b3bSwdenkNETPHONE_config:	unconfig
918f9328639SMarian Balakowicz	@mkdir -p $(obj)include
919c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
920f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
921c26e454dSwdenk		 }
922c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
923f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
924c26e454dSwdenk		 }
925f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
92604a85b3bSwdenk
92779fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
92804a85b3bSwdenk
92979fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
93079fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
93179fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
93279fa88f3SwdenkNETTA_SWAPHOOK_config \
93379fa88f3SwdenkNETTA_ISDN_6412_config \
93404a85b3bSwdenkNETTA_ISDN_config \
93579fa88f3SwdenkNETTA_6412_config \
93604a85b3bSwdenkNETTA_config:		unconfig
937f9328639SMarian Balakowicz	@mkdir -p $(obj)include
93879fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
939f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
94004a85b3bSwdenk		 }
94179fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
942f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
94379fa88f3Swdenk		 }
94479fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
945f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
94679fa88f3Swdenk		 }
94779fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
948f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
94979fa88f3Swdenk		 }
95079fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
951f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
95279fa88f3Swdenk		 }
95379fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
954f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
95579fa88f3Swdenk		 }
956f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
95704a85b3bSwdenk
95879fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
95979fa88f3Swdenk
96079fa88f3SwdenkNETTA2_V2_config \
96179fa88f3SwdenkNETTA2_config:		unconfig
962f9328639SMarian Balakowicz	@mkdir -p $(obj)include
96379fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
964f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
96579fa88f3Swdenk		 }
96679fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
967f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
96879fa88f3Swdenk		 }
969f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
97079fa88f3Swdenk
971a367d426Sdzu@denx.deNC650_Rev1_config \
972a367d426Sdzu@denx.deNC650_Rev2_config \
973a367d426Sdzu@denx.deCP850_config:	unconfig
974f9328639SMarian Balakowicz	@mkdir -p $(obj)include
975a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
976f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
977f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
978a367d426Sdzu@denx.de		 }
979a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
980f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
981a367d426Sdzu@denx.de		 }
982a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
983f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
984a367d426Sdzu@denx.de		 }
985f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
9867ca202f5Swdenk
9877ebf7443SwdenkNX823_config:		unconfig
988f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
9897ebf7443Swdenk
9907ebf7443Swdenkpcu_e_config:		unconfig
991f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
9927ebf7443Swdenk
9933bbc899fSwdenkQS850_config:	unconfig
994f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
9953bbc899fSwdenk
9963bbc899fSwdenkQS823_config:	unconfig
997f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
9983bbc899fSwdenk
9993bbc899fSwdenkQS860T_config:	unconfig
1000f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
10013bbc899fSwdenk
1002da93ed81Swdenkquantum_config:	unconfig
1003f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1004da93ed81Swdenk
10057ebf7443SwdenkR360MPI_config:	unconfig
1006f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
10077ebf7443Swdenk
1008682011ffSwdenkRBC823_config:	unconfig
1009f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1010682011ffSwdenk
10117ebf7443SwdenkRPXClassic_config:	unconfig
1012f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
10137ebf7443Swdenk
10147ebf7443SwdenkRPXlite_config:		unconfig
1015f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
10167ebf7443Swdenk
1017e63c8ee3SwdenkRPXlite_DW_64_config		\
1018e63c8ee3SwdenkRPXlite_DW_LCD_config		\
1019e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
1020e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
1021e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config	\
1022e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
1023e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config	\
1024e63c8ee3SwdenkRPXlite_DW_config:	unconfig
1025f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1026e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
1027f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
1028ae6d1056SWolfgang Denk		  $(XECHO) "... with 64MHz system clock ..."; \
1029e63c8ee3Swdenk		}
1030e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1031f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1032f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1033ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display ..."; \
1034e63c8ee3Swdenk		}
1035e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
1036f9328639SMarian Balakowicz		{ echo "#define  CFG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
1037ae6d1056SWolfgang Denk		  $(XECHO) "... with ENV in NVRAM ..."; \
1038e63c8ee3Swdenk		}
1039f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1040e63c8ee3Swdenk
104173a8b27cSwdenkrmu_config:	unconfig
1042f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
104373a8b27cSwdenk
10447ebf7443SwdenkRRvision_config:	unconfig
1045f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
10467ebf7443Swdenk
10477ebf7443SwdenkRRvision_LCD_config:	unconfig
1048f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1049f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1050f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1051f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
10527ebf7443Swdenk
10537ebf7443SwdenkSM850_config	:	unconfig
1054f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
10557ebf7443Swdenk
105691c82076SJean-Christophe PLAGNIOL-VILLARDspc1920_config:		unconfig
1057f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1058b02d0177SMarkus Klotzbuecher
10597ebf7443SwdenkSPD823TS_config:	unconfig
1060f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
10617ebf7443Swdenk
10626bdf4306SWolfgang Denkstxxtc_config:	unconfig
1063f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
10646bdf4306SWolfgang Denk
1065dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
1066f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1067dc7c9a1aSwdenk
10687ebf7443SwdenkSXNI855T_config:	unconfig
1069f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
10707ebf7443Swdenk
1071db2f721fSwdenk# EMK MPC8xx based modules
1072db2f721fSwdenkTOP860_config:		unconfig
1073f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1074db2f721fSwdenk
10757ebf7443Swdenk# Play some tricks for configuration selection
1076e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
1077e9132ea9Swdenk# and only 823 boards may have LCD support
1078e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
10797ebf7443Swdenk
10807ebf7443SwdenkFPS850L_config		\
1081384ae025SwdenkFPS860L_config		\
1082f12e568cSwdenkNSCU_config		\
10837ebf7443SwdenkTQM823L_config		\
10847ebf7443SwdenkTQM823L_LCD_config	\
10857ebf7443SwdenkTQM850L_config		\
10867ebf7443SwdenkTQM855L_config		\
10877ebf7443SwdenkTQM860L_config		\
1088d126bfbdSwdenkTQM862L_config		\
1089ae3af05eSwdenkTQM823M_config		\
1090ae3af05eSwdenkTQM850M_config		\
1091f12e568cSwdenkTQM855M_config		\
1092f12e568cSwdenkTQM860M_config		\
1093f12e568cSwdenkTQM862M_config		\
10948cba090cSWolfgang DenkTQM866M_config		\
1095090eb735SMarkus KlotzbuecherTQM885D_config		\
1096efc6f447SGuennadi LiakhovetskiTK885D_config		\
10978cba090cSWolfgang Denkvirtlab2_config:	unconfig
1098f9328639SMarian Balakowicz	@mkdir -p $(obj)include
10997ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1100f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1101f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1102ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display" ; \
11037ebf7443Swdenk		}
1104f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
11057ebf7443Swdenk
11067ebf7443SwdenkTTTech_config:	unconfig
1107f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1108f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1109f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1110f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
11117ebf7443Swdenk
1112ec0aee7bSwdenkuc100_config	:	unconfig
1113f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1114f7d1572bSwdenk
1115608c9146Swdenkv37_config:	unconfig
1116f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1117f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1118f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1119f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1120608c9146Swdenk
112191e940d9Sdzuwtk_config:	unconfig
1122f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1123f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1124f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1125f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
112691e940d9Sdzu
11277ebf7443Swdenk#########################################################################
11287ebf7443Swdenk## PPC4xx Systems
11297ebf7443Swdenk#########################################################################
1130e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
11317ebf7443Swdenk
113216c0cc1cSStefan Roeseacadia_config:	unconfig
113316c0cc1cSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
113416c0cc1cSStefan Roese
1135c440bfe6SStefan Roeseacadia_nand_config:	unconfig
113663e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/acadia
113763e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/acadia
1138c440bfe6SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1139c440bfe6SStefan Roese	@$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1140c440bfe6SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1141c440bfe6SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1142c440bfe6SStefan Roese
11437ebf7443SwdenkADCIOP_config:	unconfig
1144f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
11457ebf7443Swdenk
1146899620c2SStefan Roesealpr_config:	unconfig
114735d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1148899620c2SStefan Roese
11497521af1cSWolfgang DenkAP1000_config:unconfig
1150f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
11517521af1cSWolfgang Denk
1152c419d1d6SstroeseAPC405_config:	unconfig
1153f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1154c419d1d6Sstroese
11557ebf7443SwdenkAR405_config:	unconfig
1156f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
11577ebf7443Swdenk
1158549826eaSstroeseASH405_config:	unconfig
1159f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1160549826eaSstroese
11618a316c9bSStefan Roesebamboo_config:	unconfig
1162f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
11638a316c9bSStefan Roese
1164cf959c7dSStefan Roesebamboo_nand_config:	unconfig
116563e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/bamboo
116663e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/bamboo
1167cf959c7dSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1168f3679aa1SStefan Roese	@$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1169cf959c7dSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1170cf959c7dSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1171cf959c7dSStefan Roese
11728a316c9bSStefan Roesebubinga_config:	unconfig
1173f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1174549826eaSstroese
11757ebf7443SwdenkCANBT_config:	unconfig
1176f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
11777ebf7443Swdenk
11784c9e8557SStefan Roese# Canyonlands & Glacier use different U-Boot images
11794c9e8557SStefan Roesecanyonlands_config \
11804c9e8557SStefan Roeseglacier_config:	unconfig
11814c9e8557SStefan Roese	@mkdir -p $(obj)include
11824c9e8557SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
11834c9e8557SStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
11844c9e8557SStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1185c813f1f8SStefan Roese
118671665ebfSStefan Roesecanyonlands_nand_config:	unconfig
118771665ebfSStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/canyonlands
118871665ebfSStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/canyonlands
118971665ebfSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
119071665ebfSStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
119171665ebfSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
119271665ebfSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
119371665ebfSStefan Roese
11941d6f9720SwdenkCATcenter_config	\
11951d6f9720SwdenkCATcenter_25_config	\
11961d6f9720SwdenkCATcenter_33_config:	unconfig
1197f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1198f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1199f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
12001d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1201f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1202ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
12031d6f9720Swdenk		}
12041d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1205f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1206ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
12071d6f9720Swdenk		}
1208f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
120910767ccbSwdenk
12107644f16fSStefan RoeseCPCI2DP_config:	unconfig
1211f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
12127644f16fSStefan Roese
12137ebf7443SwdenkCPCI405_config	\
1214549826eaSstroeseCPCI4052_config	\
1215c419d1d6SstroeseCPCI405DT_config	\
1216549826eaSstroeseCPCI405AB_config:	unconfig
1217f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1218f9328639SMarian Balakowicz	@echo "BOARD_REVISION = $(@:_config=)"	>> $(obj)include/config.mk
12197ebf7443Swdenk
12207ebf7443SwdenkCPCIISER4_config:	unconfig
1221f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
12227ebf7443Swdenk
12237ebf7443SwdenkCRAYL1_config:	unconfig
1224f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
12257ebf7443Swdenk
1226cd0a9de6Swdenkcsb272_config:	unconfig
1227f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1228cd0a9de6Swdenk
1229aa245090Swdenkcsb472_config:	unconfig
1230f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1231aa245090Swdenk
12327ebf7443SwdenkDASA_SIM_config: unconfig
1233f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
12347ebf7443Swdenk
123572cd5aa7SstroeseDP405_config:	unconfig
1236f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
123772cd5aa7Sstroese
12387ebf7443SwdenkDU405_config:	unconfig
1239f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
12407ebf7443Swdenk
12411a3ac86bSMatthias FuchsDU440_config:	unconfig
12421a3ac86bSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
12431a3ac86bSMatthias Fuchs
12448a316c9bSStefan Roeseebony_config:	unconfig
1245f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
12467ebf7443Swdenk
12477ebf7443SwdenkERIC_config:	unconfig
1248f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
12497ebf7443Swdenk
1250d1cbe85bSwdenkEXBITGEN_config:	unconfig
1251f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1252d1cbe85bSwdenk
1253c419d1d6SstroeseG2000_config:	unconfig
1254f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1255c419d1d6Sstroese
1256ac982ea5SNiklaus Gigerhcu4_config:	unconfig
1257b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
125835d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1259ac982ea5SNiklaus Giger
1260ac982ea5SNiklaus Gigerhcu5_config:	unconfig
1261b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
126235d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1263ac982ea5SNiklaus Giger
1264c419d1d6SstroeseHH405_config:	unconfig
1265f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1266c419d1d6Sstroese
126772cd5aa7SstroeseHUB405_config:	unconfig
1268f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
126972cd5aa7Sstroese
1270db01a2eaSwdenkJSE_config:	unconfig
1271f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1272db01a2eaSwdenk
1273b79316f2SStefan RoeseKAREF_config: unconfig
1274f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1275b79316f2SStefan Roese
12764745acaaSStefan Roesekatmai_config:	unconfig
12774745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
12784745acaaSStefan Roese
1279353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR)
1280353f2688SStefan Roesekilauea_config \
1281353f2688SStefan Roesehaleakala_config: unconfig
1282353f2688SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1283566806caSStefan Roese
12843d6cb3b2SStefan Roesekilauea_nand_config \
12853d6cb3b2SStefan Roesehaleakala_nand_config: unconfig
12863d6cb3b2SStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/kilauea
12873d6cb3b2SStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/kilauea
12883d6cb3b2SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
12893d6cb3b2SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
12903d6cb3b2SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
12913d6cb3b2SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
12923d6cb3b2SStefan Roese
1293c591dffeSLarry Johnsonkorat_config:	unconfig
1294c591dffeSLarry Johnson	@$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1295c591dffeSLarry Johnson
12966e7fb6eaSStefan Roeseluan_config:	unconfig
1297f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
12986e7fb6eaSStefan Roese
1299b765ffb7SStefan Roeselwmon5_config:	unconfig
1300b765ffb7SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1301b765ffb7SStefan Roese
1302211ea91aSStefan Roesemakalu_config:	unconfig
1303211ea91aSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1304211ea91aSStefan Roese
1305b05f3543SNiklaus Gigermcu25_config:  unconfig
1306b05f3543SNiklaus Giger	@mkdir -p $(obj)board/netstal/common
1307b05f3543SNiklaus Giger	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1308b05f3543SNiklaus Giger
1309b79316f2SStefan RoeseMETROBOX_config: unconfig
1310f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1311b79316f2SStefan Roese
13127ebf7443SwdenkMIP405_config:	unconfig
1313f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
13147ebf7443Swdenk
1315f3e0de60SwdenkMIP405T_config:	unconfig
1316f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1317f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1318ae6d1056SWolfgang Denk	@$(XECHO) "Enable subset config for MIP405T"
1319f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1320f3e0de60Swdenk
13217ebf7443SwdenkML2_config:	unconfig
1322f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
13237ebf7443Swdenk
1324028ab6b5Swdenkml300_config:	unconfig
1325f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1326028ab6b5Swdenk
13278a316c9bSStefan Roeseocotea_config:	unconfig
1328f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
13290e6d798cSwdenk
13307ebf7443SwdenkOCRTC_config		\
13317ebf7443SwdenkORSG_config:	unconfig
1332f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
13337ebf7443Swdenk
13345568e613SStefan Roesep3p440_config:	unconfig
1335f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
13365568e613SStefan Roese
13377ebf7443SwdenkPCI405_config:	unconfig
1338f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
13397ebf7443Swdenk
1340a4c8d138SStefan Roesepcs440ep_config:	unconfig
1341f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1342a4c8d138SStefan Roese
13437ebf7443SwdenkPIP405_config:	unconfig
1344f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
13457ebf7443Swdenk
134672cd5aa7SstroesePLU405_config:	unconfig
1347f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
134872cd5aa7Sstroese
1349549826eaSstroesePMC405_config:	unconfig
1350f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1351549826eaSstroese
13528ba132caSMatthias FuchsPMC440_config:	unconfig
13538ba132caSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
13548ba132caSMatthias Fuchs
1355281e00a3SwdenkPPChameleonEVB_config		\
1356e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1357e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1358e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1359e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1360e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1361e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1362f9328639SMarian Balakowicz	@mkdir -p $(obj)include
13631d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1364f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1365ae6d1056SWolfgang Denk		  $(XECHO) "... BASIC model" ; \
1366fbe4b5cbSwdenk		}
13671d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1368f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1369ae6d1056SWolfgang Denk		  $(XECHO) "... MEDIUM model" ; \
1370fbe4b5cbSwdenk		}
13711d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1372f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1373ae6d1056SWolfgang Denk		  $(XECHO) "... HIGH-END model" ; \
1374fbe4b5cbSwdenk		}
1375e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1376f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1377ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
1378e55ca7e2Swdenk		}
1379e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1380f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1381ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
1382e55ca7e2Swdenk		}
1383f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
138412f34241Swdenk
1385430f1b0fSStefan Roesesbc405_config:	unconfig
1386430f1b0fSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1387430f1b0fSStefan Roese
1388430f1b0fSStefan Roesesequoia_config \
1389854bc8daSStefan Roeserainier_config: unconfig
13908318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1391430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1392430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
13932aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1394854bc8daSStefan Roese
1395430f1b0fSStefan Roesesequoia_nand_config \
1396854bc8daSStefan Roeserainier_nand_config: unconfig
139763e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
139863e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/sequoia
13998318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1400430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1401430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1402430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
14038318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
14048318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1405652a10c0Swdenk
14066d3e0107SWolfgang Denksc3_config:unconfig
140735d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1408ca43ba18SHeiko Schocher
1409d4024bb7SJohn Otkentaihu_config:	unconfig
1410d4024bb7SJohn Otken	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1411d4024bb7SJohn Otken
14125fb692caSStefan Roesetaishan_config:	unconfig
14135fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
14145fb692caSStefan Roese
141572cd5aa7SstroeseVOH405_config:	unconfig
1416f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
141772cd5aa7Sstroese
1418c419d1d6SstroeseVOM405_config:	unconfig
1419f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1420c419d1d6Sstroese
1421feaedfcfSStefan RoeseCMS700_config:	unconfig
1422f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1423feaedfcfSStefan Roese
14247ebf7443SwdenkW7OLMC_config	\
14257ebf7443SwdenkW7OLMG_config: unconfig
1426f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
14277ebf7443Swdenk
1428430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR)
1429430f1b0fSStefan Roesewalnut_config \
1430430f1b0fSStefan Roesesycamore_config: unconfig
1431430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
14327ebf7443Swdenk
1433c419d1d6SstroeseWUH405_config:	unconfig
1434f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1435c419d1d6Sstroese
1436ba56f625SwdenkXPEDITE1K_config:	unconfig
1437f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1438ba56f625Swdenk
1439430f1b0fSStefan Roeseyosemite_config \
14408a316c9bSStefan Roeseyellowstone_config: unconfig
1441700200c6SStefan Roese	@mkdir -p $(obj)include
1442430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1443430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
14442aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
14458a316c9bSStefan Roese
14466c5879f3SMarian Balakowiczyucca_config:	unconfig
1447f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
14486c5879f3SMarian Balakowicz
1449779e9751SStefan Roesezeus_config:	unconfig
1450779e9751SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1451779e9751SStefan Roese
14527ebf7443Swdenk#########################################################################
1453983fda83Swdenk## MPC8220 Systems
1454983fda83Swdenk#########################################################################
1455dc17fb6dSWolfgang Denk
1456dc17fb6dSWolfgang DenkAlaska8220_config	\
1457dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1458f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1459983fda83Swdenk
146012b43d51Swdenksorcery_config:		unconfig
1461f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
146212b43d51Swdenk
1463983fda83Swdenk#########################################################################
14647ebf7443Swdenk## MPC824x Systems
14657ebf7443Swdenk#########################################################################
1466efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
14673bac3513Swdenk
14680332990bSwdenkA3000_config: unconfig
1469f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
14700332990bSwdenk
14718e6f1a8eSWolfgang Denkbarco_config: unconfig
1472f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
14738e6f1a8eSWolfgang Denk
14747ebf7443SwdenkBMW_config: unconfig
1475f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
14767ebf7443Swdenk
14773bac3513SwdenkCPC45_config	\
14783bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1479f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1480f9328639SMarian Balakowicz	@cd $(obj)include ;				\
14813bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
14823bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1483ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
14843bac3513Swdenk	else \
14853bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1486ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
14873bac3513Swdenk	fi; \
14883bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
14893bac3513Swdenk
14907ebf7443SwdenkCU824_config: unconfig
1491f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
14927ebf7443Swdenk
14937abf0c58Swdenkdebris_config: unconfig
1494f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
14957abf0c58Swdenk
149680885a9dSwdenkeXalion_config: unconfig
1497f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
149880885a9dSwdenk
1499756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1500f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1501756f586aSwdenk
150253dd6ce4SWolfgang Denkkvme080_config: unconfig
1503f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
150453dd6ce4SWolfgang Denk
1505*61525f2fSGuennadi Liakhovetski# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1506*61525f2fSGuennadi Liakhovetski# time permits.
1507*61525f2fSGuennadi Liakhovetski#linkstation_HDLAN_config \
1508*61525f2fSGuennadi Liakhovetski# Remove this line when HDLAN is fixed
1509*61525f2fSGuennadi Liakhovetskilinkstation_HGLAN_config: unconfig
1510*61525f2fSGuennadi Liakhovetski	@mkdir -p $(obj)include
1511*61525f2fSGuennadi Liakhovetski	@case $@ in \
1512*61525f2fSGuennadi Liakhovetski		*HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1513*61525f2fSGuennadi Liakhovetski		*HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1514*61525f2fSGuennadi Liakhovetski	esac
1515*61525f2fSGuennadi Liakhovetski	@$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
1516*61525f2fSGuennadi Liakhovetski
15177ebf7443SwdenkMOUSSE_config: unconfig
1518f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
15197ebf7443Swdenk
15207ebf7443SwdenkMUSENKI_config: unconfig
1521f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
15227ebf7443Swdenk
1523b4676a25SwdenkMVBLUE_config:	unconfig
1524f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1525b4676a25Swdenk
15267ebf7443SwdenkOXC_config: unconfig
1527f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
15287ebf7443Swdenk
15297ebf7443SwdenkPN62_config: unconfig
1530f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
15317ebf7443Swdenk
15327ebf7443SwdenkSandpoint8240_config: unconfig
1533f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
15347ebf7443Swdenk
15357ebf7443SwdenkSandpoint8245_config: unconfig
1536f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
15377ebf7443Swdenk
1538466b7410Swdenksbc8240_config: unconfig
1539f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1540466b7410Swdenk
1541d1cbe85bSwdenkSL8245_config: unconfig
1542f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1543d1cbe85bSwdenk
15447ebf7443Swdenkutx8245_config: unconfig
1545f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
15467ebf7443Swdenk
15477ebf7443Swdenk#########################################################################
15487ebf7443Swdenk## MPC8260 Systems
15497ebf7443Swdenk#########################################################################
15507ebf7443Swdenk
155154387ac9Swdenkatc_config:	unconfig
1552f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
155354387ac9Swdenk
15547ebf7443Swdenkcogent_mpc8260_config:	unconfig
1555f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
15567ebf7443Swdenk
15577ebf7443SwdenkCPU86_config	\
15587ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1559f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1560f9328639SMarian Balakowicz	@cd $(obj)include ;				\
15617ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
15627ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1563ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
15647ebf7443Swdenk	else \
15657ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1566ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
15677ebf7443Swdenk	fi; \
15687ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
15697ebf7443Swdenk
1570384cc687SwdenkCPU87_config	\
1571384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1572f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1573f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1574384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1575384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1576ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1577384cc687Swdenk	else \
1578384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1579ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1580384cc687Swdenk	fi; \
1581384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1582384cc687Swdenk
1583f901a83bSWolfgang Denkep8248_config	\
1584f901a83bSWolfgang Denkep8248E_config	:	unconfig
1585f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1586f901a83bSWolfgang Denk
15877ebf7443Swdenkep8260_config:	unconfig
1588f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
15897ebf7443Swdenk
15908d4ac794SWolfgang Denkep82xxm_config:	unconfig
159190b1b2d6SGrant Likely	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
15928d4ac794SWolfgang Denk
15937ebf7443Swdenkgw8260_config:	unconfig
1594f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
15957ebf7443Swdenk
15967ebf7443Swdenkhymod_config:	unconfig
1597f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
15987ebf7443Swdenk
15999dd41a7bSwdenkIDS8247_config:	unconfig
1600f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
16019dd41a7bSwdenk
16027ebf7443SwdenkIPHASE4539_config:	unconfig
1603f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
16047ebf7443Swdenk
1605c3c7f861SwdenkISPAN_config		\
1606c3c7f861SwdenkISPAN_REVB_config:	unconfig
1607f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1608c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
1609f9328639SMarian Balakowicz		echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1610c3c7f861Swdenk	fi
1611f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1612c3c7f861Swdenk
1613ac9db066SHeiko Schochermgcoge_config	:	unconfig
1614ac9db066SHeiko Schocher	@$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1615ac9db066SHeiko Schocher
161604a85b3bSwdenkMPC8260ADS_config	\
1617901787d6SwdenkMPC8260ADS_lowboot_config	\
161804a85b3bSwdenkMPC8260ADS_33MHz_config	\
1619901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
162004a85b3bSwdenkMPC8260ADS_40MHz_config	\
1621901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
162204a85b3bSwdenkMPC8272ADS_config	\
1623901787d6SwdenkMPC8272ADS_lowboot_config	\
162404a85b3bSwdenkPQ2FADS_config		\
1625901787d6SwdenkPQ2FADS_lowboot_config		\
162604a85b3bSwdenkPQ2FADS-VR_config	\
1627901787d6SwdenkPQ2FADS-VR_lowboot_config	\
162804a85b3bSwdenkPQ2FADS-ZU_config	\
1629901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
163004a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1631901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
163204a85b3bSwdenk	:		unconfig
1633f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1634b7e24d28SJon Loeliger	@mkdir -p $(obj)board/freescale/mpc8260ads
163504a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
1636f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1637f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
163804a85b3bSwdenk	$(if $(findstring MHz,$@), \
1639f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
164004a85b3bSwdenk	$(if $(findstring VR,$@), \
1641f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1642901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1643b7e24d28SJon Loeliger		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1644ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
1645901787d6Swdenk		}
1646b7e24d28SJon Loeliger	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
16477ebf7443Swdenk
1648db2f721fSwdenkMPC8266ADS_config:	unconfig
1649aa3511e4SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1650db2f721fSwdenk
1651efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
165210f67017SwdenkPM825_config	\
1653efa329cbSwdenkPM825_ROMBOOT_config	\
1654efa329cbSwdenkPM825_BIGFLASH_config	\
1655efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
16567ebf7443SwdenkPM826_config	\
1657efa329cbSwdenkPM826_ROMBOOT_config	\
1658efa329cbSwdenkPM826_BIGFLASH_config	\
1659efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1660f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1661f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1662efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1663f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
16647ebf7443Swdenk	else \
1665f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1666efa329cbSwdenk	fi
1667efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1668ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1669f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1670f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1671efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1672ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1673f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
16747ebf7443Swdenk		fi; \
1675efa329cbSwdenk	else \
1676ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1677efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1678ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1679f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1680f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1681efa329cbSwdenk		else \
1682f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1683efa329cbSwdenk		fi; \
1684efa329cbSwdenk	fi
1685f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1686efa329cbSwdenk
1687efa329cbSwdenkPM828_config	\
1688efa329cbSwdenkPM828_PCI_config	\
1689efa329cbSwdenkPM828_ROMBOOT_config	\
1690efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1691f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1692f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
169317076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1694f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1695ae6d1056SWolfgang Denk		$(XECHO) "... with PCI enabled" ; \
1696efa329cbSwdenk	fi
1697efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1698ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1699f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1700f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1701efa329cbSwdenk	fi
1702f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
17037ebf7443Swdenk
17047ebf7443Swdenkppmc8260_config:	unconfig
1705f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
17067ebf7443Swdenk
17078b0bfc68SwdenkRattler8248_config	\
17088b0bfc68SwdenkRattler_config:		unconfig
1709f9328639SMarian Balakowicz	@mkdir -p $(obj)include
17108b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1711f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1712f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
17138b0bfc68Swdenk
17147ebf7443SwdenkRPXsuper_config:	unconfig
1715f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
17167ebf7443Swdenk
17177ebf7443Swdenkrsdproto_config:	unconfig
1718f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
17197ebf7443Swdenk
17207ebf7443Swdenksacsng_config:	unconfig
1721f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
17227ebf7443Swdenk
17237ebf7443Swdenksbc8260_config:	unconfig
1724f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
17257ebf7443Swdenk
17267ebf7443SwdenkSCM_config:		unconfig
1727f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
17287ebf7443Swdenk
172927b207fdSwdenkTQM8255_AA_config \
173027b207fdSwdenkTQM8260_AA_config \
173127b207fdSwdenkTQM8260_AB_config \
173227b207fdSwdenkTQM8260_AC_config \
173327b207fdSwdenkTQM8260_AD_config \
173427b207fdSwdenkTQM8260_AE_config \
173527b207fdSwdenkTQM8260_AF_config \
173627b207fdSwdenkTQM8260_AG_config \
173727b207fdSwdenkTQM8260_AH_config \
17381f62bc2dSWolfgang DenkTQM8260_AI_config \
173927b207fdSwdenkTQM8265_AA_config:  unconfig
1740f9328639SMarian Balakowicz	@mkdir -p $(obj)include
174127b207fdSwdenk	@case "$@" in \
174227b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
174327b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
174427b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
174527b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
174627b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
174727b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
174827b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
174927b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
175027b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
17511f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
175227b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
175327b207fdSwdenk	esac; \
175427b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1755f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
175627b207fdSwdenk	fi; \
1757f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
175827b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
17591aaab9bfSWolfgang Denk	if [ "$${CACHE}" = "yes" ] ; then \
1760f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1761ae6d1056SWolfgang Denk		$(XECHO) "... with L2 Cache support" ; \
17627ebf7443Swdenk	else \
1763f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1764ae6d1056SWolfgang Denk		$(XECHO) "... without L2 Cache support" ; \
176527b207fdSwdenk	fi; \
17661aaab9bfSWolfgang Denk	if [ "$${BMODE}" = "60x" ] ; then \
1767f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1768ae6d1056SWolfgang Denk		$(XECHO) "... with 60x Bus Mode" ; \
176927b207fdSwdenk	else \
1770f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
1771ae6d1056SWolfgang Denk		$(XECHO) "... without 60x Bus Mode" ; \
17727ebf7443Swdenk	fi
1773f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
17747ebf7443Swdenk
1775fa230445SHeiko SchocherTQM8272_config: unconfig
1776210ed200SWolfgang Denk	@$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272
1777fa230445SHeiko Schocher
1778ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1779ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1780f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1781f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1782f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1783ba91e26aSwdenk
178454387ac9SwdenkZPC1900_config: unconfig
1785f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
17867aa78614Swdenk
17874e5ca3ebSwdenk#########################################################################
17884e5ca3ebSwdenk## Coldfire
17894e5ca3ebSwdenk#########################################################################
17904e5ca3ebSwdenk
17911552af70STsiChungLiewM52277EVB_config:	unconfig
17921552af70STsiChungLiew	@$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
17931552af70STsiChungLiew
17944a442d31STsiChungLiewM5235EVB_config \
17954a442d31STsiChungLiewM5235EVB_Flash16_config \
17964a442d31STsiChungLiewM5235EVB_Flash32_config:	unconfig
17974a442d31STsiChungLiew	@case "$@" in \
17984a442d31STsiChungLiew	M5235EVB_config)		FLASH=16;; \
17994a442d31STsiChungLiew	M5235EVB_Flash16_config)	FLASH=16;; \
18004a442d31STsiChungLiew	M5235EVB_Flash32_config)	FLASH=32;; \
18014a442d31STsiChungLiew	esac; \
18024a442d31STsiChungLiew	if [ "$${FLASH}" != "16" ] ; then \
1803ae6d1056SWolfgang Denk		echo "#define NORFLASH_PS32BIT	1" >> $(obj)include/config.h ; \
18044a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
18054a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
18064a442d31STsiChungLiew	else \
18074a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
18084a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
18094a442d31STsiChungLiew	fi
18104a442d31STsiChungLiew	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
18114a442d31STsiChungLiew
1812a605aacdSTsiChungLiewM5249EVB_config :		unconfig
1813a605aacdSTsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1814a605aacdSTsiChungLiew
1815a1436a84STsiChungLiewM5253EVBE_config :		unconfig
1816a1436a84STsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1817a1436a84STsiChungLiew
18187481266eSWolfgang Denkcobra5272_config :		unconfig
1819f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
18207481266eSWolfgang Denk
18214176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
1822f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1823f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1824f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1825f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
18264176c799SWolfgang Denk
18274176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
1828f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1829f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1830f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1831f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
18324176c799SWolfgang Denk
1833daa6e418SBartlomiej Siekaidmr_config :			unconfig
1834daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1835daa6e418SBartlomiej Sieka
18364176c799SWolfgang DenkM5271EVB_config :		unconfig
1837f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
18384176c799SWolfgang Denk
18394e5ca3ebSwdenkM5272C3_config :		unconfig
1840f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
18414e5ca3ebSwdenk
1842545c8e0aSMatthew FettkeM5275EVB_config :		unconfig
1843545c8e0aSMatthew Fettke	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1844545c8e0aSMatthew Fettke
18454e5ca3ebSwdenkM5282EVB_config :		unconfig
1846f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
18474e5ca3ebSwdenk
1848c419d1d6SstroeseTASREG_config :		unconfig
1849f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1850c419d1d6Sstroese
18518e585f02STsiChung LiewM5329AFEE_config \
18528e585f02STsiChung LiewM5329BFEE_config :	unconfig
18538e585f02STsiChung Liew	@case "$@" in \
18548e585f02STsiChung Liew	M5329AFEE_config)	NAND=0;; \
18558e585f02STsiChung Liew	M5329BFEE_config)	NAND=16;; \
18568e585f02STsiChung Liew	esac; \
18578e585f02STsiChung Liew	if [ "$${NAND}" != "0" ] ; then \
1858ab77bc54STsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
18598e585f02STsiChung Liew	fi
18608e585f02STsiChung Liew	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
18618e585f02STsiChung Liew
1862aa5f1f9dSTsiChungLiewM5373EVB_config :	unconfig
1863aa5f1f9dSTsiChungLiew	@case "$@" in \
1864aa5f1f9dSTsiChungLiew	M5373EVB_config)	NAND=16;; \
1865aa5f1f9dSTsiChungLiew	esac; \
1866aa5f1f9dSTsiChungLiew	if [ "$${NAND}" != "0" ] ; then \
1867aa5f1f9dSTsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
1868aa5f1f9dSTsiChungLiew	fi
1869aa5f1f9dSTsiChungLiew	@$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1870aa5f1f9dSTsiChungLiew
18718ae158cdSTsiChungLiewM54455EVB_config \
18728ae158cdSTsiChungLiewM54455EVB_atmel_config \
18738ae158cdSTsiChungLiewM54455EVB_intel_config \
18748ae158cdSTsiChungLiewM54455EVB_a33_config \
18758ae158cdSTsiChungLiewM54455EVB_a66_config \
18768ae158cdSTsiChungLiewM54455EVB_i33_config \
18778ae158cdSTsiChungLiewM54455EVB_i66_config :	unconfig
18788ae158cdSTsiChungLiew	@case "$@" in \
18798ae158cdSTsiChungLiew	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
18808ae158cdSTsiChungLiew	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
18818ae158cdSTsiChungLiew	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
18828ae158cdSTsiChungLiew	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
18838ae158cdSTsiChungLiew	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
18848ae158cdSTsiChungLiew	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
18858ae158cdSTsiChungLiew	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
18868ae158cdSTsiChungLiew	esac; \
18871aaab9bfSWolfgang Denk	if [ "$${FLASH}" = "INTEL" ] ; then \
18884a442d31STsiChungLiew		echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1889e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1890e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1891ae6d1056SWolfgang Denk		$(XECHO) "... with INTEL boot..." ; \
18928ae158cdSTsiChungLiew	else \
18934a442d31STsiChungLiew		echo "#define CFG_ATMEL_BOOT"	>> $(obj)include/config.h ; \
1894e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1895e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1896ae6d1056SWolfgang Denk		$(XECHO) "... with ATMEL boot..." ; \
18978ae158cdSTsiChungLiew	fi; \
18984a442d31STsiChungLiew	echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1899ae6d1056SWolfgang Denk	$(XECHO) "... with $${FREQ}Hz input clock"
19008ae158cdSTsiChungLiew	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
19018ae158cdSTsiChungLiew
190257a12720STsiChungLiewM5475AFE_config \
190357a12720STsiChungLiewM5475BFE_config \
190457a12720STsiChungLiewM5475CFE_config \
190557a12720STsiChungLiewM5475DFE_config \
190657a12720STsiChungLiewM5475EFE_config \
190757a12720STsiChungLiewM5475FFE_config \
190857a12720STsiChungLiewM5475GFE_config :	unconfig
190957a12720STsiChungLiew	@case "$@" in \
191057a12720STsiChungLiew	M5475AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
191157a12720STsiChungLiew	M5475BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
191257a12720STsiChungLiew	M5475CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
191357a12720STsiChungLiew	M5475DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
191457a12720STsiChungLiew	M5475EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
191557a12720STsiChungLiew	M5475FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
191657a12720STsiChungLiew	M5475GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
191757a12720STsiChungLiew	esac; \
191857a12720STsiChungLiew	echo "#define CFG_BUSCLK	133333333" > $(obj)include/config.h ; \
191957a12720STsiChungLiew	echo "#define CFG_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
192057a12720STsiChungLiew	echo "#define CFG_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
192157a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
192257a12720STsiChungLiew		echo "#define CFG_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
192357a12720STsiChungLiew	fi; \
192457a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
192557a12720STsiChungLiew		echo "#define CFG_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
192657a12720STsiChungLiew	fi; \
192757a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
192857a12720STsiChungLiew		echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
192957a12720STsiChungLiew	fi; \
193057a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
193157a12720STsiChungLiew		echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
193257a12720STsiChungLiew	fi
193357a12720STsiChungLiew	@$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
193457a12720STsiChungLiew
193557a12720STsiChungLiewM5485AFE_config \
193657a12720STsiChungLiewM5485BFE_config \
193757a12720STsiChungLiewM5485CFE_config \
193857a12720STsiChungLiewM5485DFE_config \
193957a12720STsiChungLiewM5485EFE_config \
194057a12720STsiChungLiewM5485FFE_config \
194157a12720STsiChungLiewM5485GFE_config \
194257a12720STsiChungLiewM5485HFE_config :	unconfig
194357a12720STsiChungLiew	@case "$@" in \
194457a12720STsiChungLiew	M5485AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
194557a12720STsiChungLiew	M5485BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
194657a12720STsiChungLiew	M5485CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
194757a12720STsiChungLiew	M5485DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
194857a12720STsiChungLiew	M5485EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
194957a12720STsiChungLiew	M5485FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
195057a12720STsiChungLiew	M5485GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
19514d264effSTsiChungLiew	M5485HFE_config)	BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
195257a12720STsiChungLiew	esac; \
195357a12720STsiChungLiew	echo "#define CFG_BUSCLK	100000000" > $(obj)include/config.h ; \
195457a12720STsiChungLiew	echo "#define CFG_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
195557a12720STsiChungLiew	echo "#define CFG_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
195657a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
195757a12720STsiChungLiew		echo "#define CFG_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
195857a12720STsiChungLiew	fi; \
195957a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
196057a12720STsiChungLiew		echo "#define CFG_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
196157a12720STsiChungLiew	fi; \
196257a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
196357a12720STsiChungLiew		echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
196457a12720STsiChungLiew	fi; \
196557a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
196657a12720STsiChungLiew		echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
196757a12720STsiChungLiew	fi
196857a12720STsiChungLiew	@$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
196957a12720STsiChungLiew
19707ebf7443Swdenk#########################################################################
1971f046ccd1SEran Liberty## MPC83xx Systems
1972f046ccd1SEran Liberty#########################################################################
1973f046ccd1SEran Liberty
19745c5d3242SKim PhillipsMPC8313ERDB_33_config \
19755c5d3242SKim PhillipsMPC8313ERDB_66_config: unconfig
1976cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1977c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
1978ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
1979cdd917a4SWolfgang Denk		echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
19805c5d3242SKim Phillips	fi ; \
19815c5d3242SKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
1982ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
1983cdd917a4SWolfgang Denk		echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
19845c5d3242SKim Phillips	fi ;
1985e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
19865c5d3242SKim Phillips
19878bd522ceSDave LiuMPC8315ERDB_config: unconfig
19888bd522ceSDave Liu	@$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
19898bd522ceSDave Liu
19901c274c4eSKim PhillipsMPC8323ERDB_config:	unconfig
19911c274c4eSKim Phillips	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
19921c274c4eSKim Phillips
19934decd84eSKim PhillipsMPC832XEMDS_config \
19944decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
19954decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
1996281df457STony LiMPC832XEMDS_SLAVE_config \
1997281df457STony LiMPC832XEMDS_ATM_config:	unconfig
1998cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1999c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2000ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2001cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
20024decd84eSKim Phillips	fi ; \
20034decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2004ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2005cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2006cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
20074decd84eSKim Phillips	fi ; \
20084decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
2009ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2010cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2011281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
20124decd84eSKim Phillips	fi ; \
20134decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2014ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2015cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2016281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2017281df457STony Li	fi ; \
2018281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2019ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2020281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2021281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
20224decd84eSKim Phillips	fi ;
2023e58fe957SKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2024e6f2e902SMarian Balakowicz
2025991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
2026e58fe957SKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2027991425feSMarian Balakowicz
20287a78f148STimur TabiMPC8349ITX_config \
20297a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
20307a78f148STimur TabiMPC8349ITXGP_config:	unconfig
20317a78f148STimur Tabi	@mkdir -p $(obj)include
2032e21659e3SSam Sparks	@mkdir -p $(obj)board/freescale/mpc8349itx
20337a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
20347a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
2035e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
20367a78f148STimur Tabi	fi
20377a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
2038e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
20397a78f148STimur Tabi	fi
2040e58fe957SKim Phillips	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
20414decd84eSKim Phillips
20425f820439SDave LiuMPC8360EMDS_config \
20435f820439SDave LiuMPC8360EMDS_HOST_33_config \
20445f820439SDave LiuMPC8360EMDS_HOST_66_config \
2045281df457STony LiMPC8360EMDS_SLAVE_config \
2046281df457STony LiMPC8360EMDS_ATM_config: unconfig
2047cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2048c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2049ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2050cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
20515f820439SDave Liu	fi ; \
20525f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2053ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2054cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2055cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
20565f820439SDave Liu	fi ; \
20575f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
2058ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2059cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2060281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
20615f820439SDave Liu	fi ; \
20625f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
2063ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2064cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2065281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2066281df457STony Li	fi ; \
2067281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2068ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2069281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2070281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
20715f820439SDave Liu	fi ;
2072e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
20735f820439SDave Liu
2074fab6f556SAnton VorontsovMPC8360ERDK_33_config \
2075fab6f556SAnton VorontsovMPC8360ERDK_66_config \
207691c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config:	unconfig
2077fab6f556SAnton Vorontsov	@mkdir -p $(obj)include
2078c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2079ae6d1056SWolfgang Denk		$(XECHO) -n "... CLKIN 33MHz " ; \
2080fab6f556SAnton Vorontsov		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2081fab6f556SAnton Vorontsov	fi ;
2082fab6f556SAnton Vorontsov	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2083fab6f556SAnton Vorontsov
208419580e66SDave LiuMPC837XEMDS_config \
208519580e66SDave LiuMPC837XEMDS_HOST_config:	unconfig
208619580e66SDave Liu	@mkdir -p $(obj)include
2087c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2088ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
208919580e66SDave Liu		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
209019580e66SDave Liu	fi ;
209119580e66SDave Liu	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
209219580e66SDave Liu
20935e918a98SKim PhillipsMPC837XERDB_config:	unconfig
20945e918a98SKim Phillips	@$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
20955e918a98SKim Phillips
209691e25769SPaul Gortmakersbc8349_config:		unconfig
209791e25769SPaul Gortmaker	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
209891e25769SPaul Gortmaker
20994decd84eSKim PhillipsTQM834x_config:	unconfig
21004decd84eSKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
21014decd84eSKim Phillips
21022ad6b513STimur Tabi
2103f046ccd1SEran Liberty#########################################################################
210442d1f039Swdenk## MPC85xx Systems
210542d1f039Swdenk#########################################################################
210642d1f039Swdenk
21077bd6104bSrobert lazarskiATUM8548_config:	unconfig
21087bd6104bSrobert lazarski	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
21097bd6104bSrobert lazarski
211042d1f039SwdenkMPC8540ADS_config:	unconfig
2111c2d943ffSKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
211242d1f039Swdenk
2113b0e32949SLunsheng WangMPC8540EVAL_config \
2114b0e32949SLunsheng WangMPC8540EVAL_33_config \
2115b0e32949SLunsheng WangMPC8540EVAL_66_config \
2116b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
2117b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:	  unconfig
2118f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2119c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2120ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2121b0e32949SLunsheng Wang	else \
2122f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2123ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2124b0e32949SLunsheng Wang	fi ; \
2125b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
2126f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2127ae6d1056SWolfgang Denk		$(XECHO) " slave" ; \
2128b0e32949SLunsheng Wang	else \
2129ae6d1056SWolfgang Denk		$(XECHO) " host" ; \
2130b0e32949SLunsheng Wang	fi
2131f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2132b0e32949SLunsheng Wang
213342d1f039SwdenkMPC8560ADS_config:	unconfig
2134870ceac5SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
213542d1f039Swdenk
21367f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \
213703f5c550SwdenkMPC8541CDS_config:	unconfig
21387f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2139c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
21407f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2141ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
21427f3f2bd2SRandy Vinson	fi
2143415a613bSKumar Gala	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
214403f5c550Swdenk
214581f481caSAndy FlemingMPC8544DS_config:	unconfig
214681f481caSAndy Fleming	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
214781f481caSAndy Fleming
21487f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \
2149d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
21507f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2151c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
21527f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2153ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
21547f3f2bd2SRandy Vinson	fi
2155415a613bSKumar Gala	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2156d9b94f28SJon Loeliger
21577f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \
215803f5c550SwdenkMPC8555CDS_config:	unconfig
21597f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2160c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
21617f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2162ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
21637f3f2bd2SRandy Vinson	fi
2164415a613bSKumar Gala	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
21657abf0c58Swdenk
216667431059SAndy FlemingMPC8568MDS_config:	unconfig
2167acbca876SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
216867431059SAndy Fleming
2169384cc687SwdenkPM854_config:	unconfig
2170f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2171384cc687Swdenk
2172b20d0032SWolfgang DenkPM856_config:	unconfig
2173f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2174b20d0032SWolfgang Denk
2175c15f3120Swdenksbc8540_config \
2176c15f3120Swdenksbc8540_33_config \
2177c15f3120Swdenksbc8540_66_config:	unconfig
2178f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2179c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2180f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2181ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2182c15f3120Swdenk	else \
2183ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2184c15f3120Swdenk	fi
2185f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2186c15f3120Swdenk
218711c45ebdSJoe Hammansbc8548_config:		unconfig
218811c45ebdSJoe Hamman	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
218911c45ebdSJoe Hamman
2190466b7410Swdenksbc8560_config \
2191466b7410Swdenksbc8560_33_config \
2192466b7410Swdenksbc8560_66_config:	unconfig
2193f9328639SMarian Balakowicz	@mkdir -p $(obj)include
21948b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2195f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2196ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
21978b07a110Swdenk	else \
2198ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
21998b07a110Swdenk	fi
2200f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
22018b07a110Swdenk
220203f5c550Swdenkstxgp3_config:		unconfig
2203f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
220403f5c550Swdenk
2205ee152983SWolfgang Denkstxssa_config		\
2206ee152983SWolfgang Denkstxssa_4M_config:	unconfig
2207ee152983SWolfgang Denk	@mkdir -p $(obj)include
2208ee152983SWolfgang Denk	@if [ "$(findstring _4M_,$@)" ] ; then \
2209ee152983SWolfgang Denk		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2210ae6d1056SWolfgang Denk		$(XECHO) "... with 4 MiB flash memory" ; \
2211ee152983SWolfgang Denk	fi
2212ee152983SWolfgang Denk	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
221335171dc0SDan Malek
2214d96f41e0SStefan RoeseTQM8540_config		\
2215d96f41e0SStefan RoeseTQM8541_config		\
2216d96f41e0SStefan RoeseTQM8555_config		\
2217f5c5ef4aSwdenkTQM8560_config:		unconfig
2218f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2219a889bd27SWolfgang Denk	@CTYPE=$(subst TQM,,$(@:_config=)); \
2220ae6d1056SWolfgang Denk	$(XECHO) "... TQM"$${CTYPE}; \
2221f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2222f9328639SMarian Balakowicz	echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2223f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2224f9328639SMarian Balakowicz	echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
22258a783a65SGrant Likely	echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
2226f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
2227f5c5ef4aSwdenk
222842d1f039Swdenk#########################################################################
2229debb7354SJon Loeliger## MPC86xx Systems
2230debb7354SJon Loeliger#########################################################################
2231debb7354SJon Loeliger
22323c89d754SJon LoeligerMPC8610HPCD_config:	unconfig
22333c89d754SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
22343c89d754SJon Loeliger
2235debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
22364ce91774SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2237debb7354SJon Loeliger
2238c646bba6SJoe Hammansbc8641d_config:	unconfig
223991c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2240debb7354SJon Loeliger
2241debb7354SJon Loeliger#########################################################################
22427ebf7443Swdenk## 74xx/7xx Systems
22437ebf7443Swdenk#########################################################################
22447ebf7443Swdenk
2245c7de829cSwdenkAmigaOneG3SE_config:	unconfig
2246f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2247c7de829cSwdenk
224815647dc7SwdenkBAB7xx_config: unconfig
2249f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
225015647dc7Swdenk
2251c419d1d6SstroeseCPCI750_config:	unconfig
2252f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2253c419d1d6Sstroese
22543a473b2aSwdenkDB64360_config:	unconfig
2255f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
22563a473b2aSwdenk
22573a473b2aSwdenkDB64460_config:	unconfig
2258f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
22593a473b2aSwdenk
226015647dc7SwdenkELPPC_config: unconfig
2261f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
226215647dc7Swdenk
22637ebf7443SwdenkEVB64260_config	\
22647ebf7443SwdenkEVB64260_750CX_config:	unconfig
2265f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
22667ebf7443Swdenk
22674c52783bSroy zangmpc7448hpc2_config:  unconfig
22687f1d846eSJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
22694c52783bSroy zang
227015647dc7SwdenkP3G4_config: unconfig
2271f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
22727ebf7443Swdenk
22731eac2a71SStefan Roesep3m750_config	\
22741eac2a71SStefan Roesep3m7448_config:		unconfig
22751eac2a71SStefan Roese	@mkdir -p $(obj)include
22761eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
22771eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
22781eac2a71SStefan Roese	else \
22791eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
22801eac2a71SStefan Roese	fi
22811eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
22821eac2a71SStefan Roese
22837ebf7443SwdenkPCIPPC2_config \
22847ebf7443SwdenkPCIPPC6_config: unconfig
2285f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
22867ebf7443Swdenk
228715647dc7SwdenkZUMA_config:	unconfig
2288f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
228912f34241Swdenk
2290f5e0d039SHeiko Schocherppmc7xx_config: unconfig
2291f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2292f5e0d039SHeiko Schocher
22937ebf7443Swdenk#========================================================================
22947ebf7443Swdenk# ARM
22957ebf7443Swdenk#========================================================================
22967ebf7443Swdenk#########################################################################
22977ebf7443Swdenk## StrongARM Systems
22987ebf7443Swdenk#########################################################################
22997ebf7443Swdenk
2300ea66bc88Swdenkassabet_config	:	unconfig
2301f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2302ea66bc88Swdenk
23037ebf7443Swdenkdnp1110_config	:	unconfig
2304f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
23057ebf7443Swdenk
2306855a496fSwdenkgcplus_config	:	unconfig
2307f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2308855a496fSwdenk
2309855a496fSwdenklart_config	:	unconfig
2310f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
2311855a496fSwdenk
23127ebf7443Swdenkshannon_config	:	unconfig
2313f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
23147ebf7443Swdenk
23157ebf7443Swdenk#########################################################################
23162e5983d2Swdenk## ARM92xT Systems
23177ebf7443Swdenk#########################################################################
23187ebf7443Swdenk
2319b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
232043d9616cSwdenk
23213ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
232263e73c9aSwdenk
2323a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2324a56bd922Swdenk
232520b197c6SStelian Popat91cap9adk_config	:	unconfig
2326a8a78f2dSStelian Pop	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91sam9
232720b197c6SStelian Pop
2328a85f9f21Swdenkat91rm9200dk_config	:	unconfig
232965230107SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2330a85f9f21Swdenk
23310176d43eSStelian Popat91sam9260ek_config	:	unconfig
23320176d43eSStelian Pop	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91sam9
23330176d43eSStelian Pop
2334a85f9f21Swdenkcmc_pu2_config	:	unconfig
2335f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2336a85f9f21Swdenk
2337645da510SWolfgang Denkcsb637_config	:	unconfig
2338f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2339645da510SWolfgang Denk
23400e4018d2SWolfgang Denkmp2usb_config	:	unconfig
2341f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
23420e4018d2SWolfgang Denk
2343ea8d989fSTimo Tuunainenm501sk_config	:	unconfig
2344ea8d989fSTimo Tuunainen	@$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
234587cb6862SWolfgang Denk
234674f4304eSWolfgang Denk########################################################################
234787cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
234887cb6862SWolfgang Denkintegratorap_config	\
234987cb6862SWolfgang Denkap_config		\
235087cb6862SWolfgang Denkap966_config		\
235187cb6862SWolfgang Denkap922_config		\
235287cb6862SWolfgang Denkap922_XA10_config	\
235387cb6862SWolfgang Denkap7_config		\
235487cb6862SWolfgang Denkap720t_config		\
235587cb6862SWolfgang Denkap920t_config		\
235687cb6862SWolfgang Denkap926ejs_config		\
235787cb6862SWolfgang Denkap946es_config: unconfig
235896782c63SWolfgang Denk	@board/integratorap/split_by_variant.sh $@
23593d3befa7Swdenk
236087cb6862SWolfgang Denkintegratorcp_config	\
236187cb6862SWolfgang Denkcp_config		\
236287cb6862SWolfgang Denkcp920t_config		\
236387cb6862SWolfgang Denkcp926ejs_config		\
236487cb6862SWolfgang Denkcp946es_config		\
236587cb6862SWolfgang Denkcp1136_config		\
236687cb6862SWolfgang Denkcp966_config		\
236787cb6862SWolfgang Denkcp922_config		\
236887cb6862SWolfgang Denkcp922_XA10_config	\
236987cb6862SWolfgang Denkcp1026_config: unconfig
237096782c63SWolfgang Denk	@board/integratorcp/split_by_variant.sh $@
237125d6712aSwdenk
237299b0d285SWolfgang Denkkb9202_config	:	unconfig
2373f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
237499b0d285SWolfgang Denk
2375f832d8a1Swdenklpd7a400_config \
2376f832d8a1Swdenklpd7a404_config:	unconfig
2377f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
23783d3befa7Swdenk
2379281e00a3Swdenkmx1ads_config	:	unconfig
2380f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2381281e00a3Swdenk
2382281e00a3Swdenkmx1fs2_config	:	unconfig
2383f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2384281e00a3Swdenk
2385ac7eb8a3SWolfgang Denknetstar_config:		unconfig
2386f4e7cbfcSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm925t netstar
2387ac7eb8a3SWolfgang Denk
23882e5983d2Swdenkomap1510inn_config :	unconfig
2389f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
23902e5983d2Swdenk
23911eaeb58eSwdenkomap5912osk_config :	unconfig
2392f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
23931eaeb58eSwdenk
2394c74b2108SSergey Kubushyndavinci_dvevm_config :	unconfig
2395c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2396c74b2108SSergey Kubushyn
2397c74b2108SSergey Kubushyndavinci_schmoogie_config :	unconfig
2398c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2399c74b2108SSergey Kubushyn
2400c74b2108SSergey Kubushyndavinci_sonata_config :	unconfig
2401c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2402c74b2108SSergey Kubushyn
240363e73c9aSwdenkomap1610inn_config \
240463e73c9aSwdenkomap1610inn_cs0boot_config \
240563e73c9aSwdenkomap1610inn_cs3boot_config \
24063ff02c27Swdenkomap1610inn_cs_autoboot_config \
240763e73c9aSwdenkomap1610h2_config \
240863e73c9aSwdenkomap1610h2_cs0boot_config \
24093ff02c27Swdenkomap1610h2_cs3boot_config \
24103ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
2411f9328639SMarian Balakowicz	@mkdir -p $(obj)include
241263e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2413cdd917a4SWolfgang Denk		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2414ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
24153ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2416cdd917a4SWolfgang Denk		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2417ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS_AUTO boot"; \
241863e73c9aSwdenk	else \
2419cdd917a4SWolfgang Denk		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2420ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
242163e73c9aSwdenk	fi;
2422f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
24236f21347dSwdenk
2424a56bd922Swdenkomap730p2_config \
2425a56bd922Swdenkomap730p2_cs0boot_config \
2426a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
2427f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2428a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2429f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2430ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
2431a56bd922Swdenk	else \
2432f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2433ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
2434a56bd922Swdenk	fi;
2435f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2436a56bd922Swdenk
243732cb2c70SWolfgang Denksbc2410x_config: unconfig
2438f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
243932cb2c70SWolfgang Denk
2440281e00a3Swdenkscb9328_config	:	unconfig
2441f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2442281e00a3Swdenk
24437ebf7443Swdenksmdk2400_config	:	unconfig
2444f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
24457ebf7443Swdenk
24467ebf7443Swdenksmdk2410_config	:	unconfig
2447f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
24487ebf7443Swdenk
24492d24a3a7SwdenkSX1_config :		unconfig
2450f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t sx1
24512d24a3a7Swdenk
2452b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
245343d9616cSwdenktrab_config \
2454b0639ca3Swdenktrab_bigram_config \
2455b0639ca3Swdenktrab_bigflash_config \
2456f54ebdfaSwdenktrab_old_config:	unconfig
2457f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2458f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
2459b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
2460f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2461f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
2462ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2463b0639ca3Swdenk		}
2464b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
2465f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2466f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2467ae6d1056SWolfgang Denk		  $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2468f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2469b0639ca3Swdenk		}
2470f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
2471f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2472f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2473ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2474f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
247543d9616cSwdenk		}
2476f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
24777ebf7443Swdenk
24781cb8e980SwdenkVCMA9_config	:	unconfig
2479f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
24801cb8e980Swdenk
248187cb6862SWolfgang Denk#========================================================================
248287cb6862SWolfgang Denk# ARM supplied Versatile development boards
248387cb6862SWolfgang Denk#========================================================================
248487cb6862SWolfgang Denkversatile_config	\
248587cb6862SWolfgang Denkversatileab_config	\
248687cb6862SWolfgang Denkversatilepb_config :	unconfig
248796782c63SWolfgang Denk	@board/versatile/split_by_variant.sh $@
2488074cff0dSwdenk
24893c2b3d45Swdenkvoiceblue_config:	unconfig
24904fedfddfSLadislav Michl	@$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
24913c2b3d45Swdenk
249216b013e7Swdenkcm4008_config	:	unconfig
2493f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
249416b013e7Swdenk
249516b013e7Swdenkcm41xx_config	:	unconfig
2496f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
249716b013e7Swdenk
2498074cff0dSwdenk#########################################################################
2499074cff0dSwdenk## S3C44B0 Systems
2500074cff0dSwdenk#########################################################################
2501074cff0dSwdenk
2502074cff0dSwdenkB2_config	:	unconfig
2503f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2504074cff0dSwdenk
25057ebf7443Swdenk#########################################################################
25067ebf7443Swdenk## ARM720T Systems
25077ebf7443Swdenk#########################################################################
25087ebf7443Swdenk
2509c570b2fdSWolfgang Denkarmadillo_config:	unconfig
2510f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2511c570b2fdSWolfgang Denk
25127ebf7443Swdenkep7312_config	:	unconfig
2513f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
25147ebf7443Swdenk
25152d24a3a7Swdenkimpa7_config	:	unconfig
2516f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
25172d24a3a7Swdenk
25182d1a537dSwdenkmodnet50_config :	unconfig
2519f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
25202d1a537dSwdenk
252139539887Swdenkevb4510_config :	unconfig
2522f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
252339539887Swdenk
25246bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
2525b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2526b0d8f5bfSPeter Pearse
2527b0d8f5bfSPeter PearseSMN42_config	:	unconfig
2528b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
25296bd2447eSGary Jennejohn
25307ebf7443Swdenk#########################################################################
253143d9616cSwdenk## XScale Systems
25327ebf7443Swdenk#########################################################################
25337ebf7443Swdenk
2534799891efSMichael Schwingenactux1_config	:	unconfig
2535799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux1
2536799891efSMichael Schwingen
2537799891efSMichael Schwingenactux2_config	:	unconfig
2538799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux2
2539799891efSMichael Schwingen
2540799891efSMichael Schwingenactux3_config	:	unconfig
2541799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux3
2542799891efSMichael Schwingen
2543799891efSMichael Schwingenactux4_config	:	unconfig
2544799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux4
2545799891efSMichael Schwingen
254620787e23Swdenkadsvix_config	:	unconfig
2547f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa adsvix
254820787e23Swdenk
2549fabd46acSwdenkcerf250_config :	unconfig
2550f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
2551fabd46acSwdenk
25527ebf7443Swdenkcradle_config	:	unconfig
2553f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
25547ebf7443Swdenk
25557ebf7443Swdenkcsb226_config	:	unconfig
2556f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
25577ebf7443Swdenk
255891c82076SJean-Christophe PLAGNIOL-VILLARDdelta_config :	unconfig
2559f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
25600be248faSWolfgang Denk
256143d9616cSwdenkinnokom_config	:	unconfig
2562f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
256343d9616cSwdenk
25642d5b561eSwdenkixdp425_config	:	unconfig
2565f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
25662d5b561eSwdenk
2567ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
2568f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2569ba94a1bbSWolfgang Denk
257043d9616cSwdenklubbock_config	:	unconfig
2571f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
257243d9616cSwdenk
25735720df78SHeiko Schocherpleb2_config	:	unconfig
2574f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
25755720df78SHeiko Schocher
257652f52c14Swdenklogodl_config	:	unconfig
2577f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
257852f52c14Swdenk
25799d8d5a5bSStefan Roesepdnb3_config \
25809d8d5a5bSStefan Roesescpu_config:	unconfig
2581cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
25829d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
2583cdd917a4SWolfgang Denk		echo "#define CONFIG_SCPU"	>>$(obj)include/config.h ; \
2584ae6d1056SWolfgang Denk		$(XECHO) "... on SCPU board variant" ; \
25859d8d5a5bSStefan Roese	fi
25869d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2587ba94a1bbSWolfgang Denk
2588f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
2589f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2590f57f70aaSWolfgang Denk
25915e5803e1Sstefano babictrizepsiv_config	:	unconfig
25925e5803e1Sstefano babic	@$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
25935e5803e1Sstefano babic
25943e38691eSwdenkwepep250_config	:	unconfig
2595f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
25963e38691eSwdenk
25974ec3a7f0Swdenkxaeniax_config	:	unconfig
2598f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
25994ec3a7f0Swdenk
2600efa329cbSwdenkxm250_config	:	unconfig
2601f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
2602efa329cbSwdenk
2603ca0e7748Swdenkxsengine_config :	unconfig
2604f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
2605ca0e7748Swdenk
2606e0269579SMarkus Klotzbücherzylonite_config :
2607f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
2608e0269579SMarkus Klotzbücher
26098ed96046Swdenk#########################################################################
26108ed96046Swdenk## ARM1136 Systems
26118ed96046Swdenk#########################################################################
26128ed96046Swdenkomap2420h4_config	: unconfig
26135252ed95SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
26145ca9881aSPeter Pearse
26155ca9881aSPeter Pearseapollon_config		: unconfig
2616c6fe4dabSWolfgang Denk	@mkdir -p $(obj)include
2617751b9b51SKyungmin Park	@echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
26185252ed95SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2619751b9b51SKyungmin Park	@echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
26208ed96046Swdenk
2621caebc95bSSascha Hauerimx31_litekit_config	: unconfig
2622caebc95bSSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2623caebc95bSSascha Hauer
26245ad86216SSascha Hauerimx31_phycore_config	: unconfig
26255ad86216SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
26265ad86216SSascha Hauer
26272262cfeeSwdenk#========================================================================
26282262cfeeSwdenk# i386
26292262cfeeSwdenk#========================================================================
26302262cfeeSwdenk#########################################################################
26312262cfeeSwdenk## AMD SC520 CDP
26322262cfeeSwdenk#########################################################################
26332262cfeeSwdenksc520_cdp_config	:	unconfig
2634f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
26352262cfeeSwdenk
26367a8e9bedSwdenksc520_spunk_config	:	unconfig
2637f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
26387a8e9bedSwdenk
26397a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
2640f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
26417a8e9bedSwdenk
264243d9616cSwdenk#========================================================================
264343d9616cSwdenk# MIPS
264443d9616cSwdenk#========================================================================
26457ebf7443Swdenk#########################################################################
264643d9616cSwdenk## MIPS32 4Kc
264743d9616cSwdenk#########################################################################
264843d9616cSwdenk
2649e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2650e0ac62d7Swdenk
2651e0ac62d7Swdenkincaip_100MHz_config	\
2652e0ac62d7Swdenkincaip_133MHz_config	\
2653e0ac62d7Swdenkincaip_150MHz_config	\
265443d9616cSwdenkincaip_config: unconfig
2655f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2656e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
2657f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2658ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
2659e0ac62d7Swdenk		}
2660e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
2661f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2662ae6d1056SWolfgang Denk		  $(XECHO) "... with 133MHz system clock" ; \
2663e0ac62d7Swdenk		}
2664e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
2665f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2666ae6d1056SWolfgang Denk		  $(XECHO) "... with 150MHz system clock" ; \
2667e0ac62d7Swdenk		}
2668f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2669e0ac62d7Swdenk
2670f4863a7aSwdenktb0229_config: unconfig
2671f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
2672f4863a7aSwdenk
2673e0ac62d7Swdenk#########################################################################
267469459791Swdenk## MIPS32 AU1X00
267569459791Swdenk#########################################################################
267669459791Swdenkdbau1000_config		:	unconfig
2677f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2678210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2679f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
268069459791Swdenk
268169459791Swdenkdbau1100_config		:	unconfig
2682f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2683210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2684f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
268569459791Swdenk
268669459791Swdenkdbau1500_config		:	unconfig
2687f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2688210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2689f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
269069459791Swdenk
2691ff36fd85Swdenkdbau1550_config		:	unconfig
2692f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2693210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2694f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2695ff36fd85Swdenk
2696ff36fd85Swdenkdbau1550_el_config	:	unconfig
2697f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2698210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2699f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2700ff36fd85Swdenk
2701265817c7SWolfgang Denkpb1000_config		:	unconfig
2702f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2703210ed200SWolfgang Denk	@echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2704f9328639SMarian Balakowicz	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
2705265817c7SWolfgang Denk
27068a773983SShinya Kuribayashigth2_config:	unconfig
27078a773983SShinya Kuribayashi	@mkdir -p $(obj)include
27088a773983SShinya Kuribayashi	@echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
27098a773983SShinya Kuribayashi	@$(MKCONFIG) -a gth2 mips mips gth2
27108a773983SShinya Kuribayashi
27110764c164SVlad Lunguqemu_mips_config: unconfig
27120764c164SVlad Lungu	@mkdir -p $(obj)include
2713210ed200SWolfgang Denk	@echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
27140764c164SVlad Lungu	@$(MKCONFIG) -a qemu-mips mips mips qemu-mips
27150764c164SVlad Lungu
271669459791Swdenk#########################################################################
2717e0ac62d7Swdenk## MIPS64 5Kc
2718e0ac62d7Swdenk#########################################################################
271943d9616cSwdenk
27203e38691eSwdenkpurple_config :		unconfig
2721f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
272243d9616cSwdenk
27234a551709Swdenk#========================================================================
27244a551709Swdenk# Nios
27254a551709Swdenk#========================================================================
27264a551709Swdenk#########################################################################
27274a551709Swdenk## Nios32
27284a551709Swdenk#########################################################################
27294a551709Swdenk
2730c935d3bdSwdenkDK1C20_safe_32_config		\
2731c935d3bdSwdenkDK1C20_standard_32_config	\
27324a551709SwdenkDK1C20_config:	unconfig
2733f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2734c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2735f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2736ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
2737c935d3bdSwdenk		}
2738c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2739f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2740ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
2741c935d3bdSwdenk		}
2742c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
2743f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2744ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2745c935d3bdSwdenk		}
2746f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2747c935d3bdSwdenk
2748c935d3bdSwdenkDK1S10_safe_32_config		\
2749c935d3bdSwdenkDK1S10_standard_32_config	\
2750ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
2751c935d3bdSwdenkDK1S10_config:	unconfig
2752f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2753c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2754f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2755ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
2756c935d3bdSwdenk		}
2757c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2758f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2759ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
2760c935d3bdSwdenk		}
2761ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2762f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2763ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2764ec4c544bSwdenk		}
2765c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
2766f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2767ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2768c935d3bdSwdenk		}
2769f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
27704a551709Swdenk
2771aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
2772aaf224abSwdenkADNPESC1_base_32_config		\
2773aaf224abSwdenkADNPESC1_config: unconfig
2774f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2775aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
2776f9328639SMarian Balakowicz		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2777ae6d1056SWolfgang Denk		  $(XECHO) "... DNP/EVA2 configuration" ; \
2778aaf224abSwdenk		}
2779aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
2780f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2781ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration" ; \
2782aaf224abSwdenk		}
2783aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2784f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2785ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2786aaf224abSwdenk		}
2787f9328639SMarian Balakowicz	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2788aaf224abSwdenk
27895c952cf0Swdenk#########################################################################
27905c952cf0Swdenk## Nios-II
27915c952cf0Swdenk#########################################################################
27925c952cf0Swdenk
27939cc83378SScott McNuttEP1C20_config : unconfig
2794f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
27959cc83378SScott McNutt
27969cc83378SScott McNuttEP1S10_config : unconfig
2797f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
27989cc83378SScott McNutt
27999cc83378SScott McNuttEP1S40_config : unconfig
2800f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
28019cc83378SScott McNutt
28025c952cf0SwdenkPK1C20_config : unconfig
2803f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
28045c952cf0Swdenk
28055c952cf0SwdenkPCI5441_config : unconfig
2806f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
28074a551709Swdenk
2808507bbe3eSwdenk#========================================================================
2809507bbe3eSwdenk# MicroBlaze
2810507bbe3eSwdenk#========================================================================
2811507bbe3eSwdenk#########################################################################
2812507bbe3eSwdenk## Microblaze
2813507bbe3eSwdenk#########################################################################
2814507bbe3eSwdenksuzaku_config:	unconfig
2815f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2816210ed200SWolfgang Denk	@echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
2817f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2818507bbe3eSwdenk
2819cfc67116SMichal Simekml401_config:	unconfig
2820cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2821210ed200SWolfgang Denk	@echo "#define CONFIG_ML401 1" > $(obj)include/config.h
282290b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2823cfc67116SMichal Simek
282417980495SMichal Simekxupv2p_config:	unconfig
2825cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2826210ed200SWolfgang Denk	@echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
282790b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
282817980495SMichal Simek
282960fa72d6SMike Frysinger#========================================================================
283060fa72d6SMike Frysinger# Blackfin
283160fa72d6SMike Frysinger#========================================================================
28320afe519aSWolfgang Denk
283360fa72d6SMike Frysinger# Analog Devices boards
283460fa72d6SMike FrysingerBFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
28350afe519aSWolfgang Denk
283660fa72d6SMike Frysinger$(BFIN_BOARDS:%=%_config)	: unconfig
28379171fc81SMike Frysinger	@$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
283826bf7decSAubrey Li
283960fa72d6SMike Frysinger$(BFIN_BOARDS):
284060fa72d6SMike Frysinger	$(MAKE) $@_config
284160fa72d6SMike Frysinger	$(MAKE)
28420afe519aSWolfgang Denk
28435e3b0bc1SHaavard Skinnemoen#========================================================================
28445e3b0bc1SHaavard Skinnemoen# AVR32
28455e3b0bc1SHaavard Skinnemoen#========================================================================
28465e3b0bc1SHaavard Skinnemoen#########################################################################
28475e3b0bc1SHaavard Skinnemoen## AT32AP7xxx
28485e3b0bc1SHaavard Skinnemoen#########################################################################
28495e3b0bc1SHaavard Skinnemoen
28505e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
285136f28f8aSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
28525e3b0bc1SHaavard Skinnemoen
2853667568dbSHaavard Skinnemoenatstk1003_config	:	unconfig
2854667568dbSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2855667568dbSHaavard Skinnemoen
285664ff2357SHaavard Skinnemoenatstk1004_config	:	unconfig
285764ff2357SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
28580afe519aSWolfgang Denk
28596b443944SHaavard Skinnemoenatngw100_config	:	unconfig
28606b443944SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
28616b443944SHaavard Skinnemoen
28620afe519aSWolfgang Denk#########################################################################
28630afe519aSWolfgang Denk#########################################################################
28643e38691eSwdenk#########################################################################
28657ebf7443Swdenk
286669df3c4dSNobuhiro Iwamatsu#########################################################################
2867b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH)
2868b2b5e2bbSYoshihiro Shimoda#########################################################################
28693313e0e2SMark Jonasmpr2_config: unconfig
28703313e0e2SMark Jonas	@ >include/config.h
28713313e0e2SMark Jonas	@echo "#define CONFIG_MPR2 1" >> include/config.h
28723313e0e2SMark Jonas	@$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
28733313e0e2SMark Jonas
2874b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig
2875210ed200SWolfgang Denk	@echo "#define CONFIG_MS7720SE 1" > include/config.h
287691c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
2877b2b5e2bbSYoshihiro Shimoda
2878b2b5e2bbSYoshihiro Shimoda#########################################################################
287969df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH)
288069df3c4dSNobuhiro Iwamatsu#########################################################################
288169df3c4dSNobuhiro Iwamatsums7750se_config: unconfig
2882210ed200SWolfgang Denk	@echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
288391c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
288469df3c4dSNobuhiro Iwamatsu
2885d91ea45dSNobuhiro Iwamatsums7722se_config :	unconfig
2886210ed200SWolfgang Denk	@echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
288791c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
28887a8e9bedSwdenk
2889c2042f59Sgoda.yusukeMigoR_config :       unconfig
2890c2042f59Sgoda.yusuke	@ >include/config.h
2891c2042f59Sgoda.yusuke	@echo "#define CONFIG_MIGO_R 1" >> include/config.h
2892c2042f59Sgoda.yusuke	@./mkconfig -a $(@:_config=) sh sh4 MigoR
2893c2042f59Sgoda.yusuke
2894c133c1fbSYusuke Godar7780mp_config: unconfig
2895c133c1fbSYusuke Goda	@ >include/config.h
2896c133c1fbSYusuke Goda	@echo "#define CONFIG_R7780MP 1" >> include/config.h
2897c133c1fbSYusuke Goda	@./mkconfig -a $(@:_config=) sh sh4 r7780mp
2898c133c1fbSYusuke Goda
2899f5e2466fSNobuhiro Iwamatsur2dplus_config  :   unconfig
2900f5e2466fSNobuhiro Iwamatsu	@ >include/config.h
2901f5e2466fSNobuhiro Iwamatsu	@echo "#define CONFIG_R2DPLUS 1" >> include/config.h
2902f5e2466fSNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh4 r2dplus
2903f5e2466fSNobuhiro Iwamatsu
2904c2f02da2SDaniel Hellstrom#========================================================================
2905c2f02da2SDaniel Hellstrom# SPARC
2906c2f02da2SDaniel Hellstrom#========================================================================
29071e9a164eSDaniel Hellstrom#########################################################################
29081e9a164eSDaniel Hellstrom## LEON3
29091e9a164eSDaniel Hellstrom#########################################################################
2910c2f02da2SDaniel Hellstrom
291171d7e4c0SDaniel Hellstrom# Gaisler GR-XC3S-1500 board
291271d7e4c0SDaniel Hellstromgr_xc3s_1500_config : unconfig
291371d7e4c0SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
291471d7e4c0SDaniel Hellstrom
29156ed8a43aSDaniel Hellstrom# Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
29166ed8a43aSDaniel Hellstromgr_cpci_ax2000_config : unconfig
29176ed8a43aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
29186ed8a43aSDaniel Hellstrom
29196940383dSDaniel Hellstrom# Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
29206940383dSDaniel Hellstrom# Development board Stratix II edition, FPGA Device EP2S60.
29216940383dSDaniel Hellstromgr_ep2s60_config: unconfig
29226940383dSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
29236940383dSDaniel Hellstrom
2924823edd8aSDaniel Hellstrom# Gaisler LEON3 GRSIM simulator
2925823edd8aSDaniel Hellstromgrsim_config : unconfig
2926823edd8aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
2927823edd8aSDaniel Hellstrom
29287ebf7443Swdenk#########################################################################
2929b330990cSDaniel Hellstrom## LEON2
2930b330990cSDaniel Hellstrom#########################################################################
2931b330990cSDaniel Hellstrom
2932ab68f921SDaniel Hellstrom# Gaisler LEON2 GRSIM simulator
2933ab68f921SDaniel Hellstromgrsim_leon2_config : unconfig
2934ab68f921SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
2935ab68f921SDaniel Hellstrom
29367ebf7443Swdenk#########################################################################
29377ebf7443Swdenk#########################################################################
29387ebf7443Swdenk#########################################################################
293985ec0bccSwdenk
29403e38691eSwdenkclean:
2941f9301e1cSWolfgang Denk	@rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
2942f9301e1cSWolfgang Denk	       $(obj)examples/hello_world  $(obj)examples/interrupt	  \
2943f9301e1cSWolfgang Denk	       $(obj)examples/mem_to_mem_idma2intr			  \
2944f9301e1cSWolfgang Denk	       $(obj)examples/sched	   $(obj)examples/smc91111_eeprom \
2945f9301e1cSWolfgang Denk	       $(obj)examples/test_burst   $(obj)examples/timer
2946f9301e1cSWolfgang Denk	@rm -f $(obj)tools/bmp_logo	   $(obj)tools/easylogo/easylogo  \
2947f9301e1cSWolfgang Denk	       $(obj)tools/env/{fw_printenv,fw_setenv}			  \
2948f9301e1cSWolfgang Denk	       $(obj)tools/envcrc					  \
2949f9301e1cSWolfgang Denk	       $(obj)tools/gdb/{astest,gdbcont,gdbsend}			  \
2950f9301e1cSWolfgang Denk	       $(obj)tools/gen_eth_addr    $(obj)tools/img2srec		  \
2951f9301e1cSWolfgang Denk	       $(obj)tools/mkimage	   $(obj)tools/mpc86x_clk	  \
2952f9301e1cSWolfgang Denk	       $(obj)tools/ncb		   $(obj)tools/ubsha1
2953f9301e1cSWolfgang Denk	@rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image}	  \
2954f9301e1cSWolfgang Denk	       $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin}	  \
2955f9301e1cSWolfgang Denk	       $(obj)board/trab/trab_fkt   $(obj)board/voiceblue/eeprom   \
2956f9301e1cSWolfgang Denk	       $(obj)board/{integratorap,integratorcp}/u-boot.lds	  \
29579171fc81SMike Frysinger	       $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
29589171fc81SMike Frysinger	       $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
2959f9301e1cSWolfgang Denk	@rm -f $(obj)include/bmp_logo.h $(obj)nand_spl/{u-boot-spl,u-boot-spl.map}
29601bb707c3SKyungmin Park	@rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
2961f9301e1cSWolfgang Denk	@rm -f $(obj)api_examples/demo $(VERSION_FILE)
2962ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \
29637ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
29647ebf7443Swdenk		-o -name '*.o'	-o -name '*.a'	\) -print \
29657ebf7443Swdenk		| xargs rm -f
29667ebf7443Swdenk
29677ebf7443Swdenkclobber:	clean
2968ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \( -name .depend \
29694c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
29704c0d4c3bSwdenk		-print0 \
29714c0d4c3bSwdenk		| xargs -0 rm -f
2972ffda586fSLi Yang	@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
29735013c09fSWolfgang Denk		$(obj)cscope.* $(obj)*.*~
2974ae6d1056SWolfgang Denk	@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2975766529fcSBartlomiej Sieka	@rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
29767e492d82SMarian Balakowicz	@rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c}
29777e492d82SMarian Balakowicz	@rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
29785013c09fSWolfgang Denk	@rm -f $(obj)cpu/mpc824x/bedbug_603e.c
2979ae6d1056SWolfgang Denk	@rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2980ae6d1056SWolfgang Denk	@[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2981751b9b51SKyungmin Park	@[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -lname "*" -print | xargs rm -f
2982ae6d1056SWolfgang Denk	@[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f
29837ebf7443Swdenk
2984f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
29857ebf7443Swdenkmrproper \
29867ebf7443Swdenkdistclean:	clobber unconfig
2987f9328639SMarian Balakowiczelse
2988f9328639SMarian Balakowiczmrproper \
2989f9328639SMarian Balakowiczdistclean:	clobber unconfig
2990ae6d1056SWolfgang Denk	rm -rf $(obj)*
2991f9328639SMarian Balakowiczendif
29927ebf7443Swdenk
29937ebf7443Swdenkbackup:
29947ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
29957ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
29967ebf7443Swdenk
29977ebf7443Swdenk#########################################################################
2998