xref: /openbmc/u-boot/Makefile (revision f4e55a49)
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
26699f0512SWolfgang DenkSUBLEVEL = 4
27cd82919eSWolfgang 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
126f8f9dc98SKumar Galaifeq ($(ARCH),powerpc)
127f8f9dc98SKumar GalaARCH = ppc
128f8f9dc98SKumar Galaendif
129f8f9dc98SKumar Gala
130ae6d1056SWolfgang Denkifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
131f9328639SMarian Balakowicz
1327ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
133ae6d1056SWolfgang Denkinclude $(obj)include/config.mk
1341d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
135f9328639SMarian Balakowicz
1367ebf7443Swdenkifndef CROSS_COMPILE
137a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH))
1387ebf7443SwdenkCROSS_COMPILE =
1397ebf7443Swdenkelse
1407ebf7443Swdenkifeq ($(ARCH),ppc)
14116c8d5e7SWolfgang DenkCROSS_COMPILE = ppc_8xx-
1427ebf7443Swdenkendif
1437ebf7443Swdenkifeq ($(ARCH),arm)
144dc7c9a1aSwdenkCROSS_COMPILE = arm-linux-
1457ebf7443Swdenkendif
1462262cfeeSwdenkifeq ($(ARCH),i386)
1477a8e9bedSwdenkCROSS_COMPILE = i386-linux-
1487a8e9bedSwdenkendif
14943d9616cSwdenkifeq ($(ARCH),mips)
15043d9616cSwdenkCROSS_COMPILE = mips_4KC-
15143d9616cSwdenkendif
1524a551709Swdenkifeq ($(ARCH),nios)
1534a551709SwdenkCROSS_COMPILE = nios-elf-
1544a551709Swdenkendif
1555c952cf0Swdenkifeq ($(ARCH),nios2)
1565c952cf0SwdenkCROSS_COMPILE = nios2-elf-
1575c952cf0Swdenkendif
1584e5ca3ebSwdenkifeq ($(ARCH),m68k)
1594e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
1604e5ca3ebSwdenkendif
161507bbe3eSwdenkifeq ($(ARCH),microblaze)
162507bbe3eSwdenkCROSS_COMPILE = mb-
163507bbe3eSwdenkendif
1640afe519aSWolfgang Denkifeq ($(ARCH),blackfin)
165ef26a08fSAubrey.LiCROSS_COMPILE = bfin-uclinux-
1660afe519aSWolfgang Denkendif
1677b64fef3SWolfgang Denkifeq ($(ARCH),avr32)
1685374b36dSHaavard SkinnemoenCROSS_COMPILE = avr32-linux-
1697b64fef3SWolfgang Denkendif
1700b135cfcSNobuhiro Iwamatsuifeq ($(ARCH),sh)
1710b135cfcSNobuhiro IwamatsuCROSS_COMPILE = sh4-linux-
172c2f02da2SDaniel Hellstromendif
173c2f02da2SDaniel Hellstromifeq ($(ARCH),sparc)
174c2f02da2SDaniel HellstromCROSS_COMPILE = sparc-elf-
175c2f02da2SDaniel Hellstromendif	# sparc
176ae6d1056SWolfgang Denkendif	# HOSTARCH,ARCH
177ae6d1056SWolfgang Denkendif	# CROSS_COMPILE
1787ebf7443Swdenk
1797ebf7443Swdenkexport	CROSS_COMPILE
1807ebf7443Swdenk
18192b197f0SWolfgang Denk# load other configuration
18292b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk
18392b197f0SWolfgang Denk
1847ebf7443Swdenk#########################################################################
1857ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
1867ebf7443Swdenk
1877ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
1882262cfeeSwdenkifeq ($(CPU),i386)
1892262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
1902262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o
1912262cfeeSwdenkendif
1927ebf7443Swdenkifeq ($(CPU),ppc4xx)
1937ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
1947ebf7443Swdenkendif
19542d1f039Swdenkifeq ($(CPU),mpc85xx)
19642d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
19742d1f039Swdenkendif
1987ebf7443Swdenk
199f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS))
200f9328639SMarian Balakowicz
2019fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
2027608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
2037608d75fSKim Phillips	"board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
2047ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
2051d9f4105Swdenkifdef SOC
2061d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
2071d9f4105Swdenkendif
208323bfa8fSStefan Roeseifeq ($(CPU),ixp)
209323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a
210323bfa8fSStefan Roeseendif
2117ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
212518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
21343ea36fbSWilliam Juul	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a
2147ebf7443SwdenkLIBS += net/libnet.a
2157ebf7443SwdenkLIBS += disk/libdisk.a
2160f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a
21733daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a
21857a12720STsiChungLiewLIBS += drivers/dma/libdma.a
219f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a
220080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a
22116b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a
222318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a
2235ce13051SHaavard SkinnemoenLIBS += drivers/mmc/libmmc.a
22459829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a
22559829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a
22659829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a
22759829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a
228d25ce7d2SHaavard SkinnemoenLIBS += drivers/mtd/spi/libspi_flash.a
2298e585f02STsiChung LiewLIBS += drivers/net/libnet.a
2302439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a
23193a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a
23273646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a
23304a9e118SBen WarrenLIBS += drivers/spi/libspi.a
2347737d5c6SDave Liuifeq ($(CPU),mpc83xx)
2357737d5c6SDave LiuLIBS += drivers/qe/qe.a
2367737d5c6SDave Liuendif
237da9d4610SAndy Flemingifeq ($(CPU),mpc85xx)
238da9d4610SAndy FlemingLIBS += drivers/qe/qe.a
239da9d4610SAndy Flemingendif
24059829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a
2418e585f02STsiChung LiewLIBS += drivers/serial/libserial.a
24259829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a
24359829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a
2447ebf7443SwdenkLIBS += common/libcommon.a
2457651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a
246500856ebSRafal JaworowskiLIBS += api/libapi.a
2472d2b994aSYuri TikhonovLIBS += post/libpost.a
248f9328639SMarian Balakowicz
249f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS))
250019895a8SStefano Babic.PHONY : $(LIBS) $(VERSION_FILE)
251a8c7c708Swdenk
252de109d90SWolfgang DenkLIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
253de109d90SWolfgang DenkLIBBOARD := $(addprefix $(obj),$(LIBBOARD))
254de109d90SWolfgang Denk
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))
277de109d90SWolfgang Denk__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
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
320de109d90SWolfgang Denk$(obj)u-boot:		depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
321de109d90SWolfgang Denk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
322de109d90SWolfgang Denk		sed  -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
323f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
324f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
325b2184c31Swdenk			-Map u-boot.map -o u-boot
3267ebf7443Swdenk
32788f72527SJohannes Stezenbach$(OBJS):	depend $(obj)include/autoconf.mk
328f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
329f9328639SMarian Balakowicz
33088f72527SJohannes Stezenbach$(LIBS):	depend $(obj)include/autoconf.mk
331f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
332a8c7c708Swdenk
333de109d90SWolfgang Denk$(LIBBOARD):	depend $(LIBS) $(obj)include/autoconf.mk
334de109d90SWolfgang Denk		$(MAKE) -C $(dir $(subst $(obj),,$@))
335de109d90SWolfgang Denk
33688f72527SJohannes Stezenbach$(SUBDIRS):	depend $(obj)include/autoconf.mk
337b028f715Swdenk		$(MAKE) -C $@ all
3387ebf7443Swdenk
339f65c9812SMike Frysinger$(LDSCRIPT):	depend $(obj)include/autoconf.mk
340f65c9812SMike Frysinger		$(MAKE) -C $(dir $@) $(notdir $@)
341f65c9812SMike Frysinger
342dd531aacSWolfgang Denk$(NAND_SPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
3438318fbf8SMarian Balakowicz		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
344887e2ec9SStefan Roese
345dd531aacSWolfgang Denk$(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
3468318fbf8SMarian Balakowicz		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
347887e2ec9SStefan Roese
348751b9b51SKyungmin Park$(ONENAND_IPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
349f2302d44SStefan Roese		$(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
350751b9b51SKyungmin Park
351751b9b51SKyungmin Park$(U_BOOT_ONENAND):	$(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
352751b9b51SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
3531bb707c3SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
354751b9b51SKyungmin Park
355ae6d1056SWolfgang Denk$(VERSION_FILE):
356aa737945SMike Frysinger		@( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
357aa737945SMike Frysinger		 '$(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion $(TOPDIR))' \
358aa737945SMike Frysinger		 ) > $@.tmp
3590ec7a061SMike Frysinger		@cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
360881a87ecSWolfgang Denk
3618f713fdfSdzugdbtools:
362f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
363f9328639SMarian Balakowicz
364f9328639SMarian Balakowiczupdater:
365f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
366f9328639SMarian Balakowicz
367f9328639SMarian Balakowiczenv:
36864b3727bSMarkus Klotzbücher		$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
3698f713fdfSdzu
370ae6d1056SWolfgang Denkdepend dep:	$(VERSION_FILE)
371f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
3727ebf7443Swdenk
373a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include
374a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR)
375a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU)
376a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH)
377a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs
378a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat
379a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos
380a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2
38143ea36fbSWilliam JuulTAG_SUBDIRS += fs/yaffs2
382a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net
383a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk
384a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common
385a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator
386a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block
387a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon
388a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c
389a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input
390a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc
3915ce13051SHaavard SkinnemoenTAG_SUBDIRS += drivers/mmc
392a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd
393a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand
394a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy
395a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand
396d25ce7d2SHaavard SkinnemoenTAG_SUBDIRS += drivers/mtd/spi
397a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net
398a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin
399a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci
400a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia
401a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe
402a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc
403a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial
40404a9e118SBen WarrenTAG_SUBDIRS += drivers/spi
405a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb
406a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video
407a340c325SJean-Christophe PLAGNIOL-VILLARD
408f9328639SMarian Balakowicztags ctags:
409ae6d1056SWolfgang Denk		ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
41088fed9a1SWolfgang Denk						-name '*.[ch]' -print`
4117ebf7443Swdenk
4127ebf7443Swdenketags:
413ae6d1056SWolfgang Denk		etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
41488fed9a1SWolfgang Denk						-name '*.[ch]' -print`
415ffda586fSLi Yangcscope:
416ffda586fSLi Yang		find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
417ffda586fSLi Yang						> cscope.files
418ffda586fSLi Yang		cscope -b -q -k
4197ebf7443Swdenk
420f9328639SMarian Balakowicz$(obj)System.map:	$(obj)u-boot
4217ebf7443Swdenk		@$(NM) $< | \
4227ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
423f9328639SMarian Balakowicz		sort > $(obj)System.map
4247ebf7443Swdenk
4252f155f6cSGrant Likely#
4262f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles)
4272f155f6cSGrant Likely#
4282f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
4292f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when
4302f155f6cSGrant Likely# to regenerate the autoconf.mk file.
4311510b82dSWolfgang Denk$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
4321510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
43316fe7775SMike Frysinger	set -e ; \
434ae6d1056SWolfgang Denk	: Generate the dependancies ; \
4351510b82dSWolfgang Denk	$(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
4361510b82dSWolfgang Denk		-MQ $(obj)include/autoconf.mk include/common.h > $@
4371510b82dSWolfgang Denk
4381510b82dSWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h
4391510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
4401510b82dSWolfgang Denk	set -e ; \
441ae6d1056SWolfgang Denk	: Extract the config macros ; \
4421510b82dSWolfgang Denk	$(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
4431510b82dSWolfgang Denk		sed -n -f tools/scripts/define2mk.sed > $@
4442f155f6cSGrant Likely
445ae6d1056SWolfgang Denksinclude $(obj)include/autoconf.mk.dep
4462f155f6cSGrant Likely
4477ebf7443Swdenk#########################################################################
448ae6d1056SWolfgang Denkelse	# !config.mk
449f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
450f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
451ae6d1056SWolfgang Denk$(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
452ffda586fSLi Yangdep tags ctags etags cscope $(obj)System.map:
4537ebf7443Swdenk	@echo "System not configured - see README" >&2
4547ebf7443Swdenk	@ exit 1
455ae6d1056SWolfgang Denkendif	# config.mk
4567ebf7443Swdenk
4574e53a258SWolfgang Denk.PHONY : CHANGELOG
4584e53a258SWolfgang DenkCHANGELOG:
459b985b5d6SBen Warren	git log --no-merges U-Boot-1_1_5.. | \
460b985b5d6SBen Warren	unexpand -a | sed -e 's/\s\s*$$//' > $@
4614e53a258SWolfgang Denk
4620a823aa2SHarald Welteinclude/license.h: tools/bin2header COPYING
4630a823aa2SHarald Welte	 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
4647ebf7443Swdenk#########################################################################
4657ebf7443Swdenk
4667ebf7443Swdenkunconfig:
467887e2ec9SStefan Roese	@rm -f $(obj)include/config.h $(obj)include/config.mk \
4682f155f6cSGrant Likely		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
4692f155f6cSGrant Likely		$(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
4707ebf7443Swdenk
4717ebf7443Swdenk#========================================================================
4727ebf7443Swdenk# PowerPC
4737ebf7443Swdenk#========================================================================
4740db5bca8Swdenk
4750db5bca8Swdenk#########################################################################
4760db5bca8Swdenk## MPC5xx Systems
4770db5bca8Swdenk#########################################################################
4780db5bca8Swdenk
4795e5f9ed2Swdenkcanmb_config:	unconfig
480f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
4815e5f9ed2Swdenk
4820db5bca8Swdenkcmi_mpc5xx_config:	unconfig
483f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
4840db5bca8Swdenk
485b6e4c403SwdenkPATI_config:		unconfig
486f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
487b6e4c403Swdenk
4887ebf7443Swdenk#########################################################################
489945af8d7Swdenk## MPC5xxx Systems
490945af8d7Swdenk#########################################################################
491a87589daSwdenk
492dafba16eSWolfgang Denkaev_config: unconfig
4934677988cSWolfgang Grandegger	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
494dafba16eSWolfgang Denk
4956ca24c64Sdzu@denx.deBC3450_config:	unconfig
496f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
4976ca24c64Sdzu@denx.de
498699f0512SWolfgang Denkcm5200_config:	unconfig
499699f0512SWolfgang Denk	@$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
500699f0512SWolfgang Denk
5015e4b3361SStefan Roesecpci5200_config:  unconfig
502f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
5035e4b3361SStefan Roese
504a87589daSwdenkhmi1001_config:	unconfig
505f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
506a87589daSwdenk
507e35745bbSwdenkLite5200_config				\
508e35745bbSwdenkLite5200_LOWBOOT_config			\
509e35745bbSwdenkLite5200_LOWBOOT08_config		\
510e35745bbSwdenkicecube_5200_config			\
511e35745bbSwdenkicecube_5200_LOWBOOT_config		\
512e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
513b2001f27Swdenkicecube_5200_DDR_config			\
51479d696fcSwdenkicecube_5200_DDR_LOWBOOT_config		\
51579d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
516e35745bbSwdenkicecube_5100_config:			unconfig
517f9328639SMarian Balakowicz	@mkdir -p $(obj)include
518f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
51917d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
52017d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
521f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
522f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
52317d704ebSwdenk		  fi ; \
524ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5255cf9da48Swdenk		}
5265cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
527f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
5285cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
529ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5305cf9da48Swdenk		}
531b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
532f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
533ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
534b2001f27Swdenk		}
535d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
536f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
537ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
538d4ca31c4Swdenk		}
539a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
540f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
541ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
542945af8d7Swdenk		}
543f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
544945af8d7Swdenk
5452605e90bSHeiko Schocherjupiter_config:	unconfig
5462605e90bSHeiko Schocher	@$(MKCONFIG) jupiter ppc mpc5xxx jupiter
5472605e90bSHeiko Schocher
548138ff60cSwdenkinka4x0_config:	unconfig
549f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
550138ff60cSwdenk
55109e4b0c5SWolfgang Denklite5200b_config	\
552d3832e8fSDomen Puncerlite5200b_PM_config	\
55309e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
554f9328639SMarian Balakowicz	@mkdir -p $(obj)include
555f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
556f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
557ae6d1056SWolfgang Denk	@ $(XECHO) "... DDR memory revision"
558f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
559f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
560d3832e8fSDomen Puncer	@[ -z "$(findstring _PM_,$@)" ] || \
561d3832e8fSDomen Puncer		{ echo "#define CONFIG_LITE5200B_PM"	>>$(obj)include/config.h ; \
562ae6d1056SWolfgang Denk		  $(XECHO) "... with power management (low-power mode) support" ; \
563d3832e8fSDomen Puncer		}
56409e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
565f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
566ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
56709e4b0c5SWolfgang Denk		}
568ae6d1056SWolfgang Denk	@ $(XECHO) "... with MPC5200B processor"
569f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
57009e4b0c5SWolfgang Denk
571f1ee9825SStefan Roesemcc200_config	\
572ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
573ed1cf845SWolfgang Denkmcc200_highboot_config	\
574ed1cf845SWolfgang Denkmcc200_COM12_config	\
575ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
576113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
577113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
578ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
579ed1cf845SWolfgang Denkprs200_config	\
580ed1cf845SWolfgang Denkprs200_DDR_config	\
581ed1cf845SWolfgang Denkprs200_highboot_config	\
582ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
583f9328639SMarian Balakowicz	@mkdir -p $(obj)include
584f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
5854819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
586ae6d1056SWolfgang Denk		{ $(XECHO) "... with lowboot configuration" ; \
587f1ee9825SStefan Roese		}
5884819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
589f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
590ae6d1056SWolfgang Denk		  $(XECHO) "... with highboot configuration" ; \
5914819fad9SWolfgang Denk		}
5924819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
593ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
594ed1cf845SWolfgang Denk		  then \
595ae6d1056SWolfgang Denk			$(XECHO) "... with DDR" ; \
596ed1cf845SWolfgang Denk		  else \
597ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
598ed1cf845SWolfgang Denk			then \
599ae6d1056SWolfgang Denk				$(XECHO) "... with DDR" ; \
600ed1cf845SWolfgang Denk			else \
601f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
602ae6d1056SWolfgang Denk				$(XECHO) "... with SDRAM" ; \
603ed1cf845SWolfgang Denk			fi; \
604ed1cf845SWolfgang Denk		  fi; \
6054819fad9SWolfgang Denk		}
6064819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
607f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
608ae6d1056SWolfgang Denk		  $(XECHO) "... with SDRAM" ; \
6094819fad9SWolfgang Denk		}
610463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
611f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
612ae6d1056SWolfgang Denk		  $(XECHO) "... with console on COM12" ; \
613463764c8SWolfgang Denk		}
614ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
615f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"	>>$(obj)include/config.h ;\
616ed1cf845SWolfgang Denk		}
617f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
61886ea5f93SWolfgang Denk
6198b7d1f0aSStefan Roesemecp5200_config:  unconfig
620ae6d1056SWolfgang Denk	@$(MKCONFIG) mecp5200  ppc mpc5xxx mecp5200 esd
6218b7d1f0aSStefan Roese
622699f0512SWolfgang Denkmotionpro_config:	unconfig
623699f0512SWolfgang Denk	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
624699f0512SWolfgang Denk
6256341d9d7SHeiko Schochermunices_config:	unconfig
626ae6d1056SWolfgang Denk	@$(MKCONFIG) munices ppc mpc5xxx munices
6276341d9d7SHeiko Schocher
628699f0512SWolfgang DenkMVBC_P_config: unconfig
629699f0512SWolfgang Denk	@mkdir -p $(obj)include
630699f0512SWolfgang Denk	@mkdir -p $(obj)board/mvbc_p
631699f0512SWolfgang Denk	@ >$(obj)include/config.h
632699f0512SWolfgang Denk	@[ -z "$(findstring MVBC_P,$@)" ] || \
633699f0512SWolfgang Denk	{   	echo "#define CONFIG_MVBC_P" 	>>$(obj)include/config.h; }
634699f0512SWolfgang Denk	@$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
635699f0512SWolfgang Denk
63691c82076SJean-Christophe PLAGNIOL-VILLARDo2dnt_config:	unconfig
637f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
638df04a3dfSWolfgang Denk
6395e4b3361SStefan Roesepf5200_config:	unconfig
640f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
6415e4b3361SStefan Roese
64289394047SwdenkPM520_config \
64389394047SwdenkPM520_DDR_config \
64489394047SwdenkPM520_ROMBOOT_config \
64589394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
646f9328639SMarian Balakowicz	@mkdir -p $(obj)include
64789394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
648f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
649ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
65089394047Swdenk		}
65189394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
652f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
653ae6d1056SWolfgang Denk		  $(XECHO) "... booting from 8-bit flash" ; \
65489394047Swdenk		}
655f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
65689394047Swdenk
6576624b687SWolfgang Denksmmaco4_config: unconfig
6584677988cSWolfgang Grandegger	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
6599cdc8386SWolfgang Denk
6609cdc8386SWolfgang Denkspieval_config:	unconfig
6614677988cSWolfgang Grandegger	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
6629cdc8386SWolfgang Denk
66345a212c4SWolfgang DenkTB5200_B_config \
664b87dfd28SWolfgang DenkTB5200_config:	unconfig
665f9328639SMarian Balakowicz	@mkdir -p $(obj)include
66645a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
667f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
668ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200B processor" ; \
66945a212c4SWolfgang Denk		}
6704677988cSWolfgang Grandegger	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
671b87dfd28SWolfgang Denk
672d4ca31c4SwdenkMINI5200_config	\
673d4ca31c4SwdenkEVAL5200_config	\
674d4ca31c4SwdenkTOP5200_config:	unconfig
675f9328639SMarian Balakowicz	@mkdir -p $(obj)include
676f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
677f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
678d4ca31c4Swdenk
6796c7a1408SwdenkTotal5100_config		\
6806c7a1408SwdenkTotal5200_config		\
6816c7a1408SwdenkTotal5200_lowboot_config	\
6826c7a1408SwdenkTotal5200_Rev2_config		\
6836c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
684f9328639SMarian Balakowicz	@mkdir -p $(obj)include
685f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
6866c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
687f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
688ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
6896c7a1408Swdenk		}
6906c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
691f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
692ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
6936c7a1408Swdenk		}
6946c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
695f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
696ae6d1056SWolfgang Denk		  $(XECHO) "... revision 1 board" ; \
6976c7a1408Swdenk		}
6986c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
699f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
700ae6d1056SWolfgang Denk		  $(XECHO) "... revision 2 board" ; \
7016c7a1408Swdenk		}
7026c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
703f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
704ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
7056c7a1408Swdenk		}
706f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
7076c7a1408Swdenk
7085196a7a0SWolfgang Denkcam5200_config \
709d9384de2SMarian Balakowiczcam5200_niosflash_config \
7105196a7a0SWolfgang Denkfo300_config \
7115196a7a0SWolfgang DenkMiniFAP_config \
7125078cce8SWolfgang DenkTQM5200S_config \
7135078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
7145196a7a0SWolfgang DenkTQM5200_B_config \
7155196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
7165196a7a0SWolfgang DenkTQM5200_config	\
7175196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
718f9328639SMarian Balakowicz	@mkdir -p $(obj)include
7194677988cSWolfgang Grandegger	@mkdir -p $(obj)board/tqc/tqm5200
720135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
721f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
722f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
723f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
724ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200S on Cam5200" ; \
7255078cce8SWolfgang Denk		}
726d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
727d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
728ae6d1056SWolfgang Denk		  $(XECHO) "... with NIOS flash driver" ; \
729d9384de2SMarian Balakowicz		}
7306d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
731f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
732ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200 on FO300" ; \
7336d3bc9b8SMarian Balakowicz		}
734cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
735f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
736ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200_AC on MiniFAP" ; \
737978b1096SWolfgang Denk		}
738cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
739f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
740ae6d1056SWolfgang Denk		  $(XECHO) "... on a STK52XX.100 base board" ; \
74156523f12Swdenk		}
7425078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
743f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
7445078cce8SWolfgang Denk		}
7455078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
746f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
747f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
74845a212c4SWolfgang Denk		}
749978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
750f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
751978b1096SWolfgang Denk		}
7524677988cSWolfgang Grandegger	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
753699f0512SWolfgang Denk
7546dedf3d4SHeiko Schocheruc101_config:		unconfig
7556dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
75653d4a498SBartlomiej Sieka
757699f0512SWolfgang Denkv38b_config: unconfig
758699f0512SWolfgang Denk	@$(MKCONFIG) -a v38b ppc mpc5xxx v38b
75956523f12Swdenk
760945af8d7Swdenk#########################################################################
7618993e54bSRafal Jaworowski## MPC512x Systems
7628993e54bSRafal Jaworowski#########################################################################
763699f0512SWolfgang Denk
7645f91db7fSJohn Rigbyads5121_config \
765f31c49dbSMartha Marxads5121_rev2_config	\
7665f91db7fSJohn Rigby	: unconfig
767210ed200SWolfgang Denk	@mkdir -p $(obj)include
768f31c49dbSMartha Marx	@if [ "$(findstring rev2,$@)" ] ; then \
769f31c49dbSMartha Marx		echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
7705f91db7fSJohn Rigby	fi
7715f91db7fSJohn Rigby	@$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
7728993e54bSRafal Jaworowski
7738993e54bSRafal Jaworowski
7748993e54bSRafal Jaworowski#########################################################################
7757ebf7443Swdenk## MPC8xx Systems
7767ebf7443Swdenk#########################################################################
7777ebf7443Swdenk
7782d24a3a7SwdenkAdder_config	\
7792d24a3a7SwdenkAdder87x_config \
78026238132SwdenkAdderII_config	\
7812d24a3a7Swdenk	:		unconfig
782f9328639SMarian Balakowicz	@mkdir -p $(obj)include
78326238132Swdenk	$(if $(findstring AdderII,$@), \
784f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
785f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
7862d24a3a7Swdenk
78716c8d5e7SWolfgang DenkAdderUSB_config:	unconfig
78891c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
78916c8d5e7SWolfgang Denk
790180d3f74SwdenkADS860_config	  \
791180d3f74SwdenkFADS823_config	  \
792180d3f74SwdenkFADS850SAR_config \
793180d3f74SwdenkMPC86xADS_config  \
7941114257cSwdenkMPC885ADS_config  \
795180d3f74SwdenkFADS860T_config:	unconfig
796f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
7977ebf7443Swdenk
7987ebf7443SwdenkAMX860_config	:	unconfig
799f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
8007ebf7443Swdenk
8017ebf7443Swdenkc2mon_config:		unconfig
802f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
8037ebf7443Swdenk
8047ebf7443SwdenkCCM_config:		unconfig
805f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
8067ebf7443Swdenk
8077ebf7443Swdenkcogent_mpc8xx_config:	unconfig
808f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
8097ebf7443Swdenk
8103bac3513SwdenkELPT860_config:		unconfig
811f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
8123bac3513Swdenk
81384c960ceSWolfgang DenkEP88x_config:		unconfig
814f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
81584c960ceSWolfgang Denk
8167ebf7443SwdenkESTEEM192E_config:	unconfig
817f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
8187ebf7443Swdenk
8197ebf7443SwdenkETX094_config	:	unconfig
820f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
8217ebf7443Swdenk
8227ebf7443SwdenkFLAGADM_config:	unconfig
823f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
8247ebf7443Swdenk
8257aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
8267aa78614Swdenk
8277aa78614SwdenkGEN860T_SC_config	\
8287ebf7443SwdenkGEN860T_config: unconfig
829f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8307aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
831f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
832ae6d1056SWolfgang Denk		  $(XECHO) "With reduced H/W feature set (SC)..." ; \
8337aa78614Swdenk		}
834f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
8357ebf7443Swdenk
8367ebf7443SwdenkGENIETV_config:	unconfig
837f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
8387ebf7443Swdenk
8397ebf7443SwdenkGTH_config:	unconfig
840f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
8417ebf7443Swdenk
8427ebf7443Swdenkhermes_config	:	unconfig
843f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
8447ebf7443Swdenk
845c40b2956SwdenkHMI10_config	:	unconfig
8464677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
847c40b2956Swdenk
8487ebf7443SwdenkIAD210_config: unconfig
849f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
8507ebf7443Swdenk
8517ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
8527ebf7443Swdenk
8537ebf7443SwdenkICU862_100MHz_config	\
8547ebf7443SwdenkICU862_config: unconfig
855f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8567ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
857f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
858ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
8597ebf7443Swdenk		}
860f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
8617ebf7443Swdenk
8627ebf7443SwdenkIP860_config	:	unconfig
863f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
8647ebf7443Swdenk
8657ebf7443SwdenkIVML24_256_config \
8667ebf7443SwdenkIVML24_128_config \
8677ebf7443SwdenkIVML24_config:	unconfig
868f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8697ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
870f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
8717ebf7443Swdenk		 }
8727ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
873f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
8747ebf7443Swdenk		 }
8757ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
876f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
8777ebf7443Swdenk		 }
878f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
8797ebf7443Swdenk
8807ebf7443SwdenkIVMS8_256_config \
8817ebf7443SwdenkIVMS8_128_config \
8827ebf7443SwdenkIVMS8_config:	unconfig
883f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8847ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
885f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
8867ebf7443Swdenk		 }
8877ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
888f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
8897ebf7443Swdenk		 }
8907ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
891f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
8927ebf7443Swdenk		 }
893f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
8947ebf7443Swdenk
89556f94be3SwdenkKUP4K_config	:	unconfig
896f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
8970608e04dSwdenk
8980608e04dSwdenkKUP4X_config	:	unconfig
899f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
90056f94be3Swdenk
9017ebf7443SwdenkLANTEC_config	:	unconfig
902f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
9037ebf7443Swdenk
9047ebf7443Swdenklwmon_config:		unconfig
905f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
9067ebf7443Swdenk
9077ebf7443SwdenkMBX_config	\
9087ebf7443SwdenkMBX860T_config:	unconfig
909f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
9107ebf7443Swdenk
911381e4e63SHeiko Schochermgsuvd_config:		unconfig
912381e4e63SHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
913381e4e63SHeiko Schocher
9147ebf7443SwdenkMHPC_config:		unconfig
915f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
9167ebf7443Swdenk
9177ebf7443SwdenkMVS1_config :		unconfig
918f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
9197ebf7443Swdenk
920993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
921993cad93Swdenk
922993cad93SwdenkNETVIA_V2_config \
9237ebf7443SwdenkNETVIA_config:		unconfig
924f9328639SMarian Balakowicz	@mkdir -p $(obj)include
925993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
926f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
927ae6d1056SWolfgang Denk		  $(XECHO) "... Version 1" ; \
928993cad93Swdenk		 }
929993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
930f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
931ae6d1056SWolfgang Denk		  $(XECHO) "... Version 2" ; \
932993cad93Swdenk		 }
933f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
9347ebf7443Swdenk
935c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
936c26e454dSwdenk
937c26e454dSwdenkNETPHONE_V2_config \
93804a85b3bSwdenkNETPHONE_config:	unconfig
939f9328639SMarian Balakowicz	@mkdir -p $(obj)include
940c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
941f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
942c26e454dSwdenk		 }
943c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
944f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
945c26e454dSwdenk		 }
946f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
94704a85b3bSwdenk
94879fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
94904a85b3bSwdenk
95079fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
95179fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
95279fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
95379fa88f3SwdenkNETTA_SWAPHOOK_config \
95479fa88f3SwdenkNETTA_ISDN_6412_config \
95504a85b3bSwdenkNETTA_ISDN_config \
95679fa88f3SwdenkNETTA_6412_config \
95704a85b3bSwdenkNETTA_config:		unconfig
958f9328639SMarian Balakowicz	@mkdir -p $(obj)include
95979fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
960f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
96104a85b3bSwdenk		 }
96279fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
963f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
96479fa88f3Swdenk		 }
96579fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
966f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
96779fa88f3Swdenk		 }
96879fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
969f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
97079fa88f3Swdenk		 }
97179fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
972f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
97379fa88f3Swdenk		 }
97479fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
975f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
97679fa88f3Swdenk		 }
977f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
97804a85b3bSwdenk
97979fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
98079fa88f3Swdenk
98179fa88f3SwdenkNETTA2_V2_config \
98279fa88f3SwdenkNETTA2_config:		unconfig
983f9328639SMarian Balakowicz	@mkdir -p $(obj)include
98479fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
985f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
98679fa88f3Swdenk		 }
98779fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
988f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
98979fa88f3Swdenk		 }
990f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
99179fa88f3Swdenk
992a367d426Sdzu@denx.deNC650_Rev1_config \
993a367d426Sdzu@denx.deNC650_Rev2_config \
994a367d426Sdzu@denx.deCP850_config:	unconfig
995f9328639SMarian Balakowicz	@mkdir -p $(obj)include
996a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
997f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
998f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
999a367d426Sdzu@denx.de		 }
1000a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
1001f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1002a367d426Sdzu@denx.de		 }
1003a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
1004f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1005a367d426Sdzu@denx.de		 }
1006f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
10077ca202f5Swdenk
10087ebf7443SwdenkNX823_config:		unconfig
1009f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
10107ebf7443Swdenk
10117ebf7443Swdenkpcu_e_config:		unconfig
1012f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
10137ebf7443Swdenk
10143bbc899fSwdenkQS850_config:	unconfig
1015f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10163bbc899fSwdenk
10173bbc899fSwdenkQS823_config:	unconfig
1018f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10193bbc899fSwdenk
10203bbc899fSwdenkQS860T_config:	unconfig
1021f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
10223bbc899fSwdenk
1023da93ed81Swdenkquantum_config:	unconfig
1024f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1025da93ed81Swdenk
10267ebf7443SwdenkR360MPI_config:	unconfig
1027f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
10287ebf7443Swdenk
1029682011ffSwdenkRBC823_config:	unconfig
1030f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1031682011ffSwdenk
10327ebf7443SwdenkRPXClassic_config:	unconfig
1033f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
10347ebf7443Swdenk
10357ebf7443SwdenkRPXlite_config:		unconfig
1036f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
10377ebf7443Swdenk
1038e63c8ee3SwdenkRPXlite_DW_64_config		\
1039e63c8ee3SwdenkRPXlite_DW_LCD_config		\
1040e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
1041e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
1042e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config	\
1043e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
1044e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config	\
1045e63c8ee3SwdenkRPXlite_DW_config:	unconfig
1046f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1047e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
1048f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
1049ae6d1056SWolfgang Denk		  $(XECHO) "... with 64MHz system clock ..."; \
1050e63c8ee3Swdenk		}
1051e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1052f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1053f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1054ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display ..."; \
1055e63c8ee3Swdenk		}
1056e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
1057f9328639SMarian Balakowicz		{ echo "#define  CFG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
1058ae6d1056SWolfgang Denk		  $(XECHO) "... with ENV in NVRAM ..."; \
1059e63c8ee3Swdenk		}
1060f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1061e63c8ee3Swdenk
106273a8b27cSwdenkrmu_config:	unconfig
1063f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
106473a8b27cSwdenk
10657ebf7443SwdenkRRvision_config:	unconfig
1066f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
10677ebf7443Swdenk
10687ebf7443SwdenkRRvision_LCD_config:	unconfig
1069f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1070f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1071f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1072f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
10737ebf7443Swdenk
10747ebf7443SwdenkSM850_config	:	unconfig
10754677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
10767ebf7443Swdenk
107791c82076SJean-Christophe PLAGNIOL-VILLARDspc1920_config:		unconfig
1078f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1079b02d0177SMarkus Klotzbuecher
10807ebf7443SwdenkSPD823TS_config:	unconfig
1081f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
10827ebf7443Swdenk
10836bdf4306SWolfgang Denkstxxtc_config:	unconfig
1084f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
10856bdf4306SWolfgang Denk
1086dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
1087f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1088dc7c9a1aSwdenk
10897ebf7443SwdenkSXNI855T_config:	unconfig
1090f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
10917ebf7443Swdenk
1092db2f721fSwdenk# EMK MPC8xx based modules
1093db2f721fSwdenkTOP860_config:		unconfig
1094f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1095db2f721fSwdenk
10967ebf7443Swdenk# Play some tricks for configuration selection
1097e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
1098e9132ea9Swdenk# and only 823 boards may have LCD support
1099e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
11007ebf7443Swdenk
11017ebf7443SwdenkFPS850L_config		\
1102384ae025SwdenkFPS860L_config		\
1103f12e568cSwdenkNSCU_config		\
11047ebf7443SwdenkTQM823L_config		\
11057ebf7443SwdenkTQM823L_LCD_config	\
11067ebf7443SwdenkTQM850L_config		\
11077ebf7443SwdenkTQM855L_config		\
11087ebf7443SwdenkTQM860L_config		\
1109d126bfbdSwdenkTQM862L_config		\
1110ae3af05eSwdenkTQM823M_config		\
1111ae3af05eSwdenkTQM850M_config		\
1112f12e568cSwdenkTQM855M_config		\
1113f12e568cSwdenkTQM860M_config		\
1114f12e568cSwdenkTQM862M_config		\
11158cba090cSWolfgang DenkTQM866M_config		\
1116090eb735SMarkus KlotzbuecherTQM885D_config		\
1117efc6f447SGuennadi LiakhovetskiTK885D_config		\
11188cba090cSWolfgang Denkvirtlab2_config:	unconfig
1119f9328639SMarian Balakowicz	@mkdir -p $(obj)include
11207ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1121f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1122f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1123ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display" ; \
11247ebf7443Swdenk		}
11254677988cSWolfgang Grandegger	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
11267ebf7443Swdenk
11277ebf7443SwdenkTTTech_config:	unconfig
1128f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1129f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1130f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
11314677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
11327ebf7443Swdenk
1133ec0aee7bSwdenkuc100_config	:	unconfig
1134f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1135f7d1572bSwdenk
1136608c9146Swdenkv37_config:	unconfig
1137f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1138f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1139f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1140f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1141608c9146Swdenk
114291e940d9Sdzuwtk_config:	unconfig
1143f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1144f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1145f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
11464677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
114791e940d9Sdzu
11487ebf7443Swdenk#########################################################################
11497ebf7443Swdenk## PPC4xx Systems
11507ebf7443Swdenk#########################################################################
1151e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
11527ebf7443Swdenk
115316c0cc1cSStefan Roeseacadia_config:	unconfig
115416c0cc1cSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
115516c0cc1cSStefan Roese
1156c440bfe6SStefan Roeseacadia_nand_config:	unconfig
115763e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/acadia
115863e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/acadia
1159c440bfe6SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1160c440bfe6SStefan Roese	@$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1161c440bfe6SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1162c440bfe6SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1163c440bfe6SStefan Roese
11647ebf7443SwdenkADCIOP_config:	unconfig
1165f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
11667ebf7443Swdenk
1167899620c2SStefan Roesealpr_config:	unconfig
116835d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1169899620c2SStefan Roese
11707521af1cSWolfgang DenkAP1000_config:unconfig
1171f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
11727521af1cSWolfgang Denk
1173c419d1d6SstroeseAPC405_config:	unconfig
1174f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1175c419d1d6Sstroese
11767ebf7443SwdenkAR405_config:	unconfig
1177f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
11787ebf7443Swdenk
1179549826eaSstroeseASH405_config:	unconfig
1180f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1181549826eaSstroese
11828a316c9bSStefan Roesebamboo_config:	unconfig
1183f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
11848a316c9bSStefan Roese
1185cf959c7dSStefan Roesebamboo_nand_config:	unconfig
118663e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/bamboo
118763e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/bamboo
1188cf959c7dSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1189f3679aa1SStefan Roese	@$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1190cf959c7dSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1191cf959c7dSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1192cf959c7dSStefan Roese
11938a316c9bSStefan Roesebubinga_config:	unconfig
1194f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1195549826eaSstroese
11967ebf7443SwdenkCANBT_config:	unconfig
1197f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
11987ebf7443Swdenk
11994c9e8557SStefan Roese# Canyonlands & Glacier use different U-Boot images
12004c9e8557SStefan Roesecanyonlands_config \
12014c9e8557SStefan Roeseglacier_config:	unconfig
12024c9e8557SStefan Roese	@mkdir -p $(obj)include
12034c9e8557SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
12044c9e8557SStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
12054c9e8557SStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1206c813f1f8SStefan Roese
1207fe7c0db6SStefan Roesecanyonlands_nand_config \
1208fe7c0db6SStefan Roeseglacier_nand_config:	unconfig
120971665ebfSStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/canyonlands
121071665ebfSStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/canyonlands
121171665ebfSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1212fe7c0db6SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1213fe7c0db6SStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
121471665ebfSStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
121571665ebfSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
121671665ebfSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
121771665ebfSStefan Roese
12181d6f9720SwdenkCATcenter_config	\
12191d6f9720SwdenkCATcenter_25_config	\
12201d6f9720SwdenkCATcenter_33_config:	unconfig
1221f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1222f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1223f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
12241d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1225f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1226ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
12271d6f9720Swdenk		}
12281d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1229f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1230ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
12311d6f9720Swdenk		}
1232f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
123310767ccbSwdenk
1234699f0512SWolfgang DenkCMS700_config:	unconfig
1235699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1236699f0512SWolfgang Denk
12377644f16fSStefan RoeseCPCI2DP_config:	unconfig
1238f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
12397644f16fSStefan Roese
12407ebf7443SwdenkCPCI405_config	\
1241549826eaSstroeseCPCI4052_config	\
1242c419d1d6SstroeseCPCI405DT_config	\
1243549826eaSstroeseCPCI405AB_config:	unconfig
1244f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1245f9328639SMarian Balakowicz	@echo "BOARD_REVISION = $(@:_config=)"	>> $(obj)include/config.mk
12467ebf7443Swdenk
12477ebf7443SwdenkCPCIISER4_config:	unconfig
1248f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
12497ebf7443Swdenk
12507ebf7443SwdenkCRAYL1_config:	unconfig
1251f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
12527ebf7443Swdenk
1253cd0a9de6Swdenkcsb272_config:	unconfig
1254f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1255cd0a9de6Swdenk
1256aa245090Swdenkcsb472_config:	unconfig
1257f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1258aa245090Swdenk
12597ebf7443SwdenkDASA_SIM_config: unconfig
1260f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
12617ebf7443Swdenk
126272cd5aa7SstroeseDP405_config:	unconfig
1263f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
126472cd5aa7Sstroese
12657ebf7443SwdenkDU405_config:	unconfig
1266f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
12677ebf7443Swdenk
12681a3ac86bSMatthias FuchsDU440_config:	unconfig
12691a3ac86bSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
12701a3ac86bSMatthias Fuchs
12718a316c9bSStefan Roeseebony_config:	unconfig
1272f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
12737ebf7443Swdenk
12747ebf7443SwdenkERIC_config:	unconfig
1275f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
12767ebf7443Swdenk
1277d1cbe85bSwdenkEXBITGEN_config:	unconfig
1278f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1279d1cbe85bSwdenk
1280c419d1d6SstroeseG2000_config:	unconfig
1281f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1282c419d1d6Sstroese
1283ac982ea5SNiklaus Gigerhcu4_config:	unconfig
1284b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
128535d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1286ac982ea5SNiklaus Giger
1287ac982ea5SNiklaus Gigerhcu5_config:	unconfig
1288b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
128935d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1290ac982ea5SNiklaus Giger
1291c419d1d6SstroeseHH405_config:	unconfig
1292f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1293c419d1d6Sstroese
129472cd5aa7SstroeseHUB405_config:	unconfig
1295f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
129672cd5aa7Sstroese
1297db01a2eaSwdenkJSE_config:	unconfig
1298f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1299db01a2eaSwdenk
1300b79316f2SStefan RoeseKAREF_config: unconfig
1301f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1302b79316f2SStefan Roese
13034745acaaSStefan Roesekatmai_config:	unconfig
13044745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
13054745acaaSStefan Roese
1306353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR)
1307353f2688SStefan Roesekilauea_config \
1308353f2688SStefan Roesehaleakala_config: unconfig
1309353f2688SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1310566806caSStefan Roese
13113d6cb3b2SStefan Roesekilauea_nand_config \
13123d6cb3b2SStefan Roesehaleakala_nand_config: unconfig
13133d6cb3b2SStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/kilauea
13143d6cb3b2SStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/kilauea
13153d6cb3b2SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
13163d6cb3b2SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
13173d6cb3b2SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
13183d6cb3b2SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
13193d6cb3b2SStefan Roese
1320c591dffeSLarry Johnsonkorat_config:	unconfig
1321c591dffeSLarry Johnson	@$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1322c591dffeSLarry Johnson
13236e7fb6eaSStefan Roeseluan_config:	unconfig
1324f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
13256e7fb6eaSStefan Roese
1326b765ffb7SStefan Roeselwmon5_config:	unconfig
1327b765ffb7SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1328b765ffb7SStefan Roese
1329211ea91aSStefan Roesemakalu_config:	unconfig
1330211ea91aSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1331211ea91aSStefan Roese
1332b05f3543SNiklaus Gigermcu25_config:  unconfig
1333b05f3543SNiklaus Giger	@mkdir -p $(obj)board/netstal/common
1334b05f3543SNiklaus Giger	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1335b05f3543SNiklaus Giger
1336b79316f2SStefan RoeseMETROBOX_config: unconfig
1337f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1338b79316f2SStefan Roese
13397ebf7443SwdenkMIP405_config:	unconfig
1340f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
13417ebf7443Swdenk
1342f3e0de60SwdenkMIP405T_config:	unconfig
1343f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1344f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1345ae6d1056SWolfgang Denk	@$(XECHO) "Enable subset config for MIP405T"
1346f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1347f3e0de60Swdenk
13487ebf7443SwdenkML2_config:	unconfig
1349f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
13507ebf7443Swdenk
1351028ab6b5Swdenkml300_config:	unconfig
1352f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1353028ab6b5Swdenk
135401a00431SRicardo Ribalda Delgadoml507_flash_config:	unconfig
135501a00431SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ml507
135601a00431SRicardo Ribalda Delgado	@cp $(obj)board/xilinx/ml507/u-boot-rom.lds  $(obj)board/xilinx/ml507/u-boot.lds
13579246f5ecSRicardo Ribalda Delgado	@echo "TEXT_BASE = 0xFE360000" > $(obj)board/xilinx/ml507/config.tmp
135801a00431SRicardo Ribalda Delgado	@$(MKCONFIG) $(@:_flash_config=) ppc ppc4xx ml507 xilinx
135901a00431SRicardo Ribalda Delgado
1360086511fcSRicardo Ribalda Delgadoml507_config:	unconfig
136101a00431SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ml507
136201a00431SRicardo Ribalda Delgado	@cp $(obj)board/xilinx/ml507/u-boot-ram.lds  $(obj)board/xilinx/ml507/u-boot.lds
1363086511fcSRicardo Ribalda Delgado	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml507 xilinx
1364086511fcSRicardo Ribalda Delgado
13658a316c9bSStefan Roeseocotea_config:	unconfig
1366f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
13670e6d798cSwdenk
13687ebf7443SwdenkOCRTC_config		\
13697ebf7443SwdenkORSG_config:	unconfig
1370f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
13717ebf7443Swdenk
13725568e613SStefan Roesep3p440_config:	unconfig
1373f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
13745568e613SStefan Roese
13757ebf7443SwdenkPCI405_config:	unconfig
1376f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
13777ebf7443Swdenk
1378a4c8d138SStefan Roesepcs440ep_config:	unconfig
1379f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1380a4c8d138SStefan Roese
13817ebf7443SwdenkPIP405_config:	unconfig
1382f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
13837ebf7443Swdenk
138472cd5aa7SstroesePLU405_config:	unconfig
1385f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
138672cd5aa7Sstroese
1387549826eaSstroesePMC405_config:	unconfig
1388f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1389549826eaSstroese
13908ba132caSMatthias FuchsPMC440_config:	unconfig
13918ba132caSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
13928ba132caSMatthias Fuchs
1393281e00a3SwdenkPPChameleonEVB_config		\
1394e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1395e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1396e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1397e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1398e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1399e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1400f9328639SMarian Balakowicz	@mkdir -p $(obj)include
14011d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1402f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1403ae6d1056SWolfgang Denk		  $(XECHO) "... BASIC model" ; \
1404fbe4b5cbSwdenk		}
14051d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1406f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1407ae6d1056SWolfgang Denk		  $(XECHO) "... MEDIUM model" ; \
1408fbe4b5cbSwdenk		}
14091d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1410f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1411ae6d1056SWolfgang Denk		  $(XECHO) "... HIGH-END model" ; \
1412fbe4b5cbSwdenk		}
1413e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1414f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1415ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
1416e55ca7e2Swdenk		}
1417e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1418f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1419ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
1420e55ca7e2Swdenk		}
1421f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
142212f34241Swdenk
142373ccb341SGary Jennejohnquad100hd_config:	unconfig
142473ccb341SGary Jennejohn	@$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
142573ccb341SGary Jennejohn
142611188d55SStefan Roeseredwood_config: unconfig
142711188d55SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
142811188d55SStefan Roese
1429430f1b0fSStefan Roesesbc405_config:	unconfig
1430430f1b0fSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1431430f1b0fSStefan Roese
1432699f0512SWolfgang Denksc3_config:unconfig
1433699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1434699f0512SWolfgang Denk
1435430f1b0fSStefan Roesesequoia_config \
1436854bc8daSStefan Roeserainier_config: unconfig
14378318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1438430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1439430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
14402aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1441854bc8daSStefan Roese
1442430f1b0fSStefan Roesesequoia_nand_config \
1443854bc8daSStefan Roeserainier_nand_config: unconfig
144463e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
144563e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/sequoia
14468318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1447430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1448430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1449430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
14508318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
14518318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1452652a10c0Swdenk
1453d4024bb7SJohn Otkentaihu_config:	unconfig
1454d4024bb7SJohn Otken	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1455d4024bb7SJohn Otken
14565fb692caSStefan Roesetaishan_config:	unconfig
14575fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
14585fb692caSStefan Roese
145972cd5aa7SstroeseVOH405_config:	unconfig
1460f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
146172cd5aa7Sstroese
1462c419d1d6SstroeseVOM405_config:	unconfig
1463f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1464c419d1d6Sstroese
14657ebf7443SwdenkW7OLMC_config	\
14667ebf7443SwdenkW7OLMG_config: unconfig
1467f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
14687ebf7443Swdenk
1469430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR)
1470430f1b0fSStefan Roesewalnut_config \
1471430f1b0fSStefan Roesesycamore_config: unconfig
1472430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
14737ebf7443Swdenk
1474c419d1d6SstroeseWUH405_config:	unconfig
1475f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1476c419d1d6Sstroese
1477ba56f625SwdenkXPEDITE1K_config:	unconfig
1478f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1479ba56f625Swdenk
1480430f1b0fSStefan Roeseyosemite_config \
14818a316c9bSStefan Roeseyellowstone_config: unconfig
1482700200c6SStefan Roese	@mkdir -p $(obj)include
1483430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1484430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
14852aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
14868a316c9bSStefan Roese
14876c5879f3SMarian Balakowiczyucca_config:	unconfig
1488f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
14896c5879f3SMarian Balakowicz
1490779e9751SStefan Roesezeus_config:	unconfig
1491779e9751SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1492779e9751SStefan Roese
14937ebf7443Swdenk#########################################################################
1494983fda83Swdenk## MPC8220 Systems
1495983fda83Swdenk#########################################################################
1496dc17fb6dSWolfgang Denk
1497dc17fb6dSWolfgang DenkAlaska8220_config	\
1498dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1499f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1500983fda83Swdenk
150112b43d51Swdenksorcery_config:		unconfig
1502f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
150312b43d51Swdenk
1504983fda83Swdenk#########################################################################
15057ebf7443Swdenk## MPC824x Systems
15067ebf7443Swdenk#########################################################################
1507efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
15083bac3513Swdenk
15090332990bSwdenkA3000_config: unconfig
1510f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
15110332990bSwdenk
15128e6f1a8eSWolfgang Denkbarco_config: unconfig
1513f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
15148e6f1a8eSWolfgang Denk
15157ebf7443SwdenkBMW_config: unconfig
1516f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
15177ebf7443Swdenk
15183bac3513SwdenkCPC45_config	\
15193bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1520f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1521f9328639SMarian Balakowicz	@cd $(obj)include ;				\
15223bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
15233bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1524ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
15253bac3513Swdenk	else \
15263bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1527ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
15283bac3513Swdenk	fi; \
15293bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
15303bac3513Swdenk
15317ebf7443SwdenkCU824_config: unconfig
1532f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
15337ebf7443Swdenk
15347abf0c58Swdenkdebris_config: unconfig
1535f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
15367abf0c58Swdenk
153780885a9dSwdenkeXalion_config: unconfig
1538f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
153980885a9dSwdenk
1540756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1541f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1542756f586aSwdenk
154353dd6ce4SWolfgang Denkkvme080_config: unconfig
1544f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
154553dd6ce4SWolfgang Denk
154661525f2fSGuennadi Liakhovetski# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
154761525f2fSGuennadi Liakhovetski# time permits.
154861525f2fSGuennadi Liakhovetski#linkstation_HDLAN_config \
154961525f2fSGuennadi Liakhovetski# Remove this line when HDLAN is fixed
155061525f2fSGuennadi Liakhovetskilinkstation_HGLAN_config: unconfig
155161525f2fSGuennadi Liakhovetski	@mkdir -p $(obj)include
155261525f2fSGuennadi Liakhovetski	@case $@ in \
155361525f2fSGuennadi Liakhovetski		*HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
155461525f2fSGuennadi Liakhovetski		*HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
155561525f2fSGuennadi Liakhovetski	esac
155661525f2fSGuennadi Liakhovetski	@$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
155761525f2fSGuennadi Liakhovetski
15587ebf7443SwdenkMOUSSE_config: unconfig
1559f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
15607ebf7443Swdenk
15617ebf7443SwdenkMUSENKI_config: unconfig
1562f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
15637ebf7443Swdenk
1564b4676a25SwdenkMVBLUE_config:	unconfig
1565f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1566b4676a25Swdenk
15677ebf7443SwdenkOXC_config: unconfig
1568f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
15697ebf7443Swdenk
15707ebf7443SwdenkPN62_config: unconfig
1571f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
15727ebf7443Swdenk
15737ebf7443SwdenkSandpoint8240_config: unconfig
1574f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
15757ebf7443Swdenk
15767ebf7443SwdenkSandpoint8245_config: unconfig
1577f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
15787ebf7443Swdenk
1579466b7410Swdenksbc8240_config: unconfig
1580f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1581466b7410Swdenk
1582d1cbe85bSwdenkSL8245_config: unconfig
1583f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1584d1cbe85bSwdenk
15857ebf7443Swdenkutx8245_config: unconfig
1586f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
15877ebf7443Swdenk
15887ebf7443Swdenk#########################################################################
15897ebf7443Swdenk## MPC8260 Systems
15907ebf7443Swdenk#########################################################################
15917ebf7443Swdenk
159254387ac9Swdenkatc_config:	unconfig
1593f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
159454387ac9Swdenk
15957ebf7443Swdenkcogent_mpc8260_config:	unconfig
1596f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
15977ebf7443Swdenk
15987ebf7443SwdenkCPU86_config	\
15997ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1600f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1601f9328639SMarian Balakowicz	@cd $(obj)include ;				\
16027ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
16037ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1604ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
16057ebf7443Swdenk	else \
16067ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1607ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
16087ebf7443Swdenk	fi; \
16097ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
16107ebf7443Swdenk
1611384cc687SwdenkCPU87_config	\
1612384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1613f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1614f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1615384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1616384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1617ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1618384cc687Swdenk	else \
1619384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1620ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1621384cc687Swdenk	fi; \
1622384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1623384cc687Swdenk
1624f901a83bSWolfgang Denkep8248_config	\
1625f901a83bSWolfgang Denkep8248E_config	:	unconfig
1626f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1627f901a83bSWolfgang Denk
16287ebf7443Swdenkep8260_config:	unconfig
1629f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
16307ebf7443Swdenk
16318d4ac794SWolfgang Denkep82xxm_config:	unconfig
163290b1b2d6SGrant Likely	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
16338d4ac794SWolfgang Denk
16347ebf7443Swdenkgw8260_config:	unconfig
1635f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
16367ebf7443Swdenk
16377ebf7443Swdenkhymod_config:	unconfig
1638f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
16397ebf7443Swdenk
16409dd41a7bSwdenkIDS8247_config:	unconfig
1641f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
16429dd41a7bSwdenk
16437ebf7443SwdenkIPHASE4539_config:	unconfig
1644f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
16457ebf7443Swdenk
1646c3c7f861SwdenkISPAN_config		\
1647c3c7f861SwdenkISPAN_REVB_config:	unconfig
1648f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1649c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
1650f9328639SMarian Balakowicz		echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1651c3c7f861Swdenk	fi
1652f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1653c3c7f861Swdenk
1654ac9db066SHeiko Schochermgcoge_config	:	unconfig
1655ac9db066SHeiko Schocher	@$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1656ac9db066SHeiko Schocher
165704a85b3bSwdenkMPC8260ADS_config	\
1658901787d6SwdenkMPC8260ADS_lowboot_config	\
165904a85b3bSwdenkMPC8260ADS_33MHz_config	\
1660901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
166104a85b3bSwdenkMPC8260ADS_40MHz_config	\
1662901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
166304a85b3bSwdenkMPC8272ADS_config	\
1664901787d6SwdenkMPC8272ADS_lowboot_config	\
166504a85b3bSwdenkPQ2FADS_config		\
1666901787d6SwdenkPQ2FADS_lowboot_config		\
166704a85b3bSwdenkPQ2FADS-VR_config	\
1668901787d6SwdenkPQ2FADS-VR_lowboot_config	\
166904a85b3bSwdenkPQ2FADS-ZU_config	\
1670901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
167104a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1672901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
167304a85b3bSwdenk	:		unconfig
1674f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1675b7e24d28SJon Loeliger	@mkdir -p $(obj)board/freescale/mpc8260ads
167604a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
1677f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1678f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
167904a85b3bSwdenk	$(if $(findstring MHz,$@), \
1680f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
168104a85b3bSwdenk	$(if $(findstring VR,$@), \
1682f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1683901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1684b7e24d28SJon Loeliger		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1685ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
1686901787d6Swdenk		}
1687b7e24d28SJon Loeliger	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
16887ebf7443Swdenk
1689db2f721fSwdenkMPC8266ADS_config:	unconfig
1690aa3511e4SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1691db2f721fSwdenk
1692efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
169310f67017SwdenkPM825_config	\
1694efa329cbSwdenkPM825_ROMBOOT_config	\
1695efa329cbSwdenkPM825_BIGFLASH_config	\
1696efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
16977ebf7443SwdenkPM826_config	\
1698efa329cbSwdenkPM826_ROMBOOT_config	\
1699efa329cbSwdenkPM826_BIGFLASH_config	\
1700efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1701f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1702f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1703efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1704f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
17057ebf7443Swdenk	else \
1706f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1707efa329cbSwdenk	fi
1708efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1709ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1710f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1711f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1712efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1713ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1714f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
17157ebf7443Swdenk		fi; \
1716efa329cbSwdenk	else \
1717ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1718efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1719ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1720f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1721f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1722efa329cbSwdenk		else \
1723f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1724efa329cbSwdenk		fi; \
1725efa329cbSwdenk	fi
1726f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1727efa329cbSwdenk
1728efa329cbSwdenkPM828_config	\
1729efa329cbSwdenkPM828_PCI_config	\
1730efa329cbSwdenkPM828_ROMBOOT_config	\
1731efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1732f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1733f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
173417076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1735f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1736ae6d1056SWolfgang Denk		$(XECHO) "... with PCI enabled" ; \
1737efa329cbSwdenk	fi
1738efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1739ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1740f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1741f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1742efa329cbSwdenk	fi
1743f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
17447ebf7443Swdenk
17457ebf7443Swdenkppmc8260_config:	unconfig
1746f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
17477ebf7443Swdenk
17488b0bfc68SwdenkRattler8248_config	\
17498b0bfc68SwdenkRattler_config:		unconfig
1750f9328639SMarian Balakowicz	@mkdir -p $(obj)include
17518b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1752f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1753f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
17548b0bfc68Swdenk
17557ebf7443SwdenkRPXsuper_config:	unconfig
1756f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
17577ebf7443Swdenk
17587ebf7443Swdenkrsdproto_config:	unconfig
1759f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
17607ebf7443Swdenk
17617ebf7443Swdenksacsng_config:	unconfig
1762f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
17637ebf7443Swdenk
17647ebf7443Swdenksbc8260_config:	unconfig
1765f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
17667ebf7443Swdenk
17677ebf7443SwdenkSCM_config:		unconfig
1768f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
17697ebf7443Swdenk
177027b207fdSwdenkTQM8255_AA_config \
177127b207fdSwdenkTQM8260_AA_config \
177227b207fdSwdenkTQM8260_AB_config \
177327b207fdSwdenkTQM8260_AC_config \
177427b207fdSwdenkTQM8260_AD_config \
177527b207fdSwdenkTQM8260_AE_config \
177627b207fdSwdenkTQM8260_AF_config \
177727b207fdSwdenkTQM8260_AG_config \
177827b207fdSwdenkTQM8260_AH_config \
17791f62bc2dSWolfgang DenkTQM8260_AI_config \
178027b207fdSwdenkTQM8265_AA_config:  unconfig
1781f9328639SMarian Balakowicz	@mkdir -p $(obj)include
178227b207fdSwdenk	@case "$@" in \
178327b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
178427b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
178527b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
178627b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
178727b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
178827b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
178927b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
179027b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
179127b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
17921f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
179327b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
179427b207fdSwdenk	esac; \
179527b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1796f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
179727b207fdSwdenk	fi; \
1798f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
179927b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
18001aaab9bfSWolfgang Denk	if [ "$${CACHE}" = "yes" ] ; then \
1801f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1802ae6d1056SWolfgang Denk		$(XECHO) "... with L2 Cache support" ; \
18037ebf7443Swdenk	else \
1804f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1805ae6d1056SWolfgang Denk		$(XECHO) "... without L2 Cache support" ; \
180627b207fdSwdenk	fi; \
18071aaab9bfSWolfgang Denk	if [ "$${BMODE}" = "60x" ] ; then \
1808f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1809ae6d1056SWolfgang Denk		$(XECHO) "... with 60x Bus Mode" ; \
181027b207fdSwdenk	else \
1811f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
1812ae6d1056SWolfgang Denk		$(XECHO) "... without 60x Bus Mode" ; \
18137ebf7443Swdenk	fi
18144677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
18157ebf7443Swdenk
1816fa230445SHeiko SchocherTQM8272_config: unconfig
18174677988cSWolfgang Grandegger	@$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
1818fa230445SHeiko Schocher
1819ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1820ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1821f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1822f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1823f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1824ba91e26aSwdenk
182554387ac9SwdenkZPC1900_config: unconfig
1826f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
18277aa78614Swdenk
18284e5ca3ebSwdenk#########################################################################
18294e5ca3ebSwdenk## Coldfire
18304e5ca3ebSwdenk#########################################################################
18314e5ca3ebSwdenk
18321552af70STsiChungLiewM52277EVB_config:	unconfig
18331552af70STsiChungLiew	@$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
18341552af70STsiChungLiew
18354a442d31STsiChungLiewM5235EVB_config \
18364a442d31STsiChungLiewM5235EVB_Flash16_config \
18374a442d31STsiChungLiewM5235EVB_Flash32_config:	unconfig
18384a442d31STsiChungLiew	@case "$@" in \
18394a442d31STsiChungLiew	M5235EVB_config)		FLASH=16;; \
18404a442d31STsiChungLiew	M5235EVB_Flash16_config)	FLASH=16;; \
18414a442d31STsiChungLiew	M5235EVB_Flash32_config)	FLASH=32;; \
18424a442d31STsiChungLiew	esac; \
18434a442d31STsiChungLiew	if [ "$${FLASH}" != "16" ] ; then \
1844ae6d1056SWolfgang Denk		echo "#define NORFLASH_PS32BIT	1" >> $(obj)include/config.h ; \
18454a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
18464a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
18474a442d31STsiChungLiew	else \
18484a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
18494a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
18504a442d31STsiChungLiew	fi
18514a442d31STsiChungLiew	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
18524a442d31STsiChungLiew
1853a605aacdSTsiChungLiewM5249EVB_config :		unconfig
1854a605aacdSTsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1855a605aacdSTsiChungLiew
18566d33c6acSTsiChung LiewM5253DEMO_config :		unconfig
18576d33c6acSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
18586d33c6acSTsiChung Liew
1859a1436a84STsiChungLiewM5253EVBE_config :		unconfig
1860a1436a84STsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1861a1436a84STsiChungLiew
18627481266eSWolfgang Denkcobra5272_config :		unconfig
1863f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
18647481266eSWolfgang Denk
18654176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
1866f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1867f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1868f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1869f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
18704176c799SWolfgang Denk
18714176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
1872f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1873f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1874f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1875f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
18764176c799SWolfgang Denk
1877daa6e418SBartlomiej Siekaidmr_config :			unconfig
1878daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1879daa6e418SBartlomiej Sieka
18804176c799SWolfgang DenkM5271EVB_config :		unconfig
1881659e9badSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
18824176c799SWolfgang Denk
18834e5ca3ebSwdenkM5272C3_config :		unconfig
188456df091dSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
18854e5ca3ebSwdenk
1886545c8e0aSMatthew FettkeM5275EVB_config :		unconfig
1887545c8e0aSMatthew Fettke	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1888545c8e0aSMatthew Fettke
18894e5ca3ebSwdenkM5282EVB_config :		unconfig
189010db3a17STsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
18914e5ca3ebSwdenk
18928e585f02STsiChung LiewM5329AFEE_config \
18938e585f02STsiChung LiewM5329BFEE_config :	unconfig
18948e585f02STsiChung Liew	@case "$@" in \
18958e585f02STsiChung Liew	M5329AFEE_config)	NAND=0;; \
18968e585f02STsiChung Liew	M5329BFEE_config)	NAND=16;; \
18978e585f02STsiChung Liew	esac; \
18988e585f02STsiChung Liew	if [ "$${NAND}" != "0" ] ; then \
1899ab77bc54STsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
19008e585f02STsiChung Liew	fi
19018e585f02STsiChung Liew	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
19028e585f02STsiChung Liew
1903aa5f1f9dSTsiChungLiewM5373EVB_config :	unconfig
1904aa5f1f9dSTsiChungLiew	@case "$@" in \
1905aa5f1f9dSTsiChungLiew	M5373EVB_config)	NAND=16;; \
1906aa5f1f9dSTsiChungLiew	esac; \
1907aa5f1f9dSTsiChungLiew	if [ "$${NAND}" != "0" ] ; then \
1908aa5f1f9dSTsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
1909aa5f1f9dSTsiChungLiew	fi
1910aa5f1f9dSTsiChungLiew	@$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1911aa5f1f9dSTsiChungLiew
191205316f8eSTsiChung LiewM54451EVB_config \
191305316f8eSTsiChung LiewM54451EVB_spansion_config \
191405316f8eSTsiChung LiewM54451EVB_stmicro_config :	unconfig
191505316f8eSTsiChung Liew	@case "$@" in \
191605316f8eSTsiChung Liew	M54451EVB_config)		FLASH=SPANSION;; \
191705316f8eSTsiChung Liew	M54451EVB_spansion_config)	FLASH=SPANSION;; \
191805316f8eSTsiChung Liew	M54451EVB_stmicro_config)	FLASH=STMICRO;; \
191905316f8eSTsiChung Liew	esac; \
192005316f8eSTsiChung Liew	if [ "$${FLASH}" = "SPANSION" ] ; then \
192105316f8eSTsiChung Liew		echo "#define CFG_SPANSION_BOOT"	>> $(obj)include/config.h ; \
192205316f8eSTsiChung Liew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
192305316f8eSTsiChung Liew		cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
192405316f8eSTsiChung Liew		$(XECHO) "... with SPANSION boot..." ; \
192505316f8eSTsiChung Liew	fi; \
192605316f8eSTsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
192705316f8eSTsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
192805316f8eSTsiChung Liew		echo "#define CFG_STMICRO_BOOT"	>> $(obj)include/config.h ; \
192905316f8eSTsiChung Liew		echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
193005316f8eSTsiChung Liew		cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
193105316f8eSTsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
193205316f8eSTsiChung Liew	fi; \
193305316f8eSTsiChung Liew	echo "#define CFG_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
193405316f8eSTsiChung Liew	@$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
193505316f8eSTsiChung Liew
19368ae158cdSTsiChungLiewM54455EVB_config \
19378ae158cdSTsiChungLiewM54455EVB_atmel_config \
19388ae158cdSTsiChungLiewM54455EVB_intel_config \
19398ae158cdSTsiChungLiewM54455EVB_a33_config \
19408ae158cdSTsiChungLiewM54455EVB_a66_config \
19418ae158cdSTsiChungLiewM54455EVB_i33_config \
19429f751551STsiChung LiewM54455EVB_i66_config \
19439f751551STsiChung LiewM54455EVB_stm33_config :	unconfig
19448ae158cdSTsiChungLiew	@case "$@" in \
19458ae158cdSTsiChungLiew	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
19468ae158cdSTsiChungLiew	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
19478ae158cdSTsiChungLiew	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
19488ae158cdSTsiChungLiew	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
19498ae158cdSTsiChungLiew	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
19508ae158cdSTsiChungLiew	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
19518ae158cdSTsiChungLiew	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
19529f751551STsiChung Liew	M54455EVB_stm33_config)		FLASH=STMICRO; FREQ=33333333;; \
19538ae158cdSTsiChungLiew	esac; \
19541aaab9bfSWolfgang Denk	if [ "$${FLASH}" = "INTEL" ] ; then \
19559f751551STsiChung Liew		echo "#define CFG_INTEL_BOOT" >> $(obj)include/config.h ; \
1956e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1957e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1958ae6d1056SWolfgang Denk		$(XECHO) "... with INTEL boot..." ; \
19599f751551STsiChung Liew	fi; \
19609f751551STsiChung Liew	if [ "$${FLASH}" = "ATMEL" ] ; then \
19614a442d31STsiChungLiew		echo "#define CFG_ATMEL_BOOT"	>> $(obj)include/config.h ; \
1962e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1963e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1964ae6d1056SWolfgang Denk		$(XECHO) "... with ATMEL boot..." ; \
19658ae158cdSTsiChungLiew	fi; \
19669f751551STsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
19679f751551STsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
19689f751551STsiChung Liew		echo "#define CFG_STMICRO_BOOT"	>> $(obj)include/config.h ; \
19699f751551STsiChung Liew		echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
19709f751551STsiChung Liew		cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
19719f751551STsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
19729f751551STsiChung Liew	fi; \
19734a442d31STsiChungLiew	echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1974ae6d1056SWolfgang Denk	$(XECHO) "... with $${FREQ}Hz input clock"
19758ae158cdSTsiChungLiew	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
19768ae158cdSTsiChungLiew
197757a12720STsiChungLiewM5475AFE_config \
197857a12720STsiChungLiewM5475BFE_config \
197957a12720STsiChungLiewM5475CFE_config \
198057a12720STsiChungLiewM5475DFE_config \
198157a12720STsiChungLiewM5475EFE_config \
198257a12720STsiChungLiewM5475FFE_config \
198357a12720STsiChungLiewM5475GFE_config :	unconfig
198457a12720STsiChungLiew	@case "$@" in \
198557a12720STsiChungLiew	M5475AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
198657a12720STsiChungLiew	M5475BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
198757a12720STsiChungLiew	M5475CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
198857a12720STsiChungLiew	M5475DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
198957a12720STsiChungLiew	M5475EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
199057a12720STsiChungLiew	M5475FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
199157a12720STsiChungLiew	M5475GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
199257a12720STsiChungLiew	esac; \
199357a12720STsiChungLiew	echo "#define CFG_BUSCLK	133333333" > $(obj)include/config.h ; \
199457a12720STsiChungLiew	echo "#define CFG_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
199557a12720STsiChungLiew	echo "#define CFG_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
199657a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
199757a12720STsiChungLiew		echo "#define CFG_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
199857a12720STsiChungLiew	fi; \
199957a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
200057a12720STsiChungLiew		echo "#define CFG_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
200157a12720STsiChungLiew	fi; \
200257a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
200357a12720STsiChungLiew		echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
200457a12720STsiChungLiew	fi; \
200557a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
200657a12720STsiChungLiew		echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
200757a12720STsiChungLiew	fi
200857a12720STsiChungLiew	@$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
200957a12720STsiChungLiew
201057a12720STsiChungLiewM5485AFE_config \
201157a12720STsiChungLiewM5485BFE_config \
201257a12720STsiChungLiewM5485CFE_config \
201357a12720STsiChungLiewM5485DFE_config \
201457a12720STsiChungLiewM5485EFE_config \
201557a12720STsiChungLiewM5485FFE_config \
201657a12720STsiChungLiewM5485GFE_config \
201757a12720STsiChungLiewM5485HFE_config :	unconfig
201857a12720STsiChungLiew	@case "$@" in \
201957a12720STsiChungLiew	M5485AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
202057a12720STsiChungLiew	M5485BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
202157a12720STsiChungLiew	M5485CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
202257a12720STsiChungLiew	M5485DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
202357a12720STsiChungLiew	M5485EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
202457a12720STsiChungLiew	M5485FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
202557a12720STsiChungLiew	M5485GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
20264d264effSTsiChungLiew	M5485HFE_config)	BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
202757a12720STsiChungLiew	esac; \
202857a12720STsiChungLiew	echo "#define CFG_BUSCLK	100000000" > $(obj)include/config.h ; \
202957a12720STsiChungLiew	echo "#define CFG_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
203057a12720STsiChungLiew	echo "#define CFG_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
203157a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
203257a12720STsiChungLiew		echo "#define CFG_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
203357a12720STsiChungLiew	fi; \
203457a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
203557a12720STsiChungLiew		echo "#define CFG_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
203657a12720STsiChungLiew	fi; \
203757a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
203857a12720STsiChungLiew		echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
203957a12720STsiChungLiew	fi; \
204057a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
204157a12720STsiChungLiew		echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
204257a12720STsiChungLiew	fi
204357a12720STsiChungLiew	@$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
204457a12720STsiChungLiew
2045699f0512SWolfgang DenkTASREG_config :		unconfig
2046699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2047699f0512SWolfgang Denk
20487ebf7443Swdenk#########################################################################
2049f046ccd1SEran Liberty## MPC83xx Systems
2050f046ccd1SEran Liberty#########################################################################
2051f046ccd1SEran Liberty
20525c5d3242SKim PhillipsMPC8313ERDB_33_config \
2053e4c09508SScott WoodMPC8313ERDB_66_config \
2054e4c09508SScott WoodMPC8313ERDB_NAND_33_config \
2055e4c09508SScott WoodMPC8313ERDB_NAND_66_config: unconfig
2056cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2057e4c09508SScott Wood	@mkdir -p $(obj)board/freescale/mpc8313erdb
2058c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2059ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2060cdd917a4SWolfgang Denk		echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
20615c5d3242SKim Phillips	fi ; \
20625c5d3242SKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2063ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2064cdd917a4SWolfgang Denk		echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
2065e4c09508SScott Wood	fi ; \
2066e4c09508SScott Wood	if [ "$(findstring _NAND_,$@)" ] ; then \
2067e4c09508SScott Wood		$(XECHO) -n "...NAND..." ; \
2068*f4e55a49SKim Phillips		echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2069e4c09508SScott Wood		echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
20705c5d3242SKim Phillips	fi ;
2071e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
20725c5d3242SKim Phillips
20738bd522ceSDave LiuMPC8315ERDB_config: unconfig
20748bd522ceSDave Liu	@$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
20758bd522ceSDave Liu
20761c274c4eSKim PhillipsMPC8323ERDB_config:	unconfig
20771c274c4eSKim Phillips	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
20781c274c4eSKim Phillips
20794decd84eSKim PhillipsMPC832XEMDS_config \
20804decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
20814decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
2082281df457STony LiMPC832XEMDS_SLAVE_config \
2083281df457STony LiMPC832XEMDS_ATM_config:	unconfig
2084cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2085c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2086ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2087cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
20884decd84eSKim Phillips	fi ; \
20894decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2090ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2091cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2092cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
20934decd84eSKim Phillips	fi ; \
20944decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
2095ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2096cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2097281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
20984decd84eSKim Phillips	fi ; \
20994decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2100ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2101cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2102281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2103281df457STony Li	fi ; \
2104281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2105ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2106281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2107281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
21084decd84eSKim Phillips	fi ;
2109e58fe957SKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2110e6f2e902SMarian Balakowicz
2111991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
2112e58fe957SKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2113991425feSMarian Balakowicz
21147a78f148STimur TabiMPC8349ITX_config \
21157a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
21167a78f148STimur TabiMPC8349ITXGP_config:	unconfig
21177a78f148STimur Tabi	@mkdir -p $(obj)include
2118e21659e3SSam Sparks	@mkdir -p $(obj)board/freescale/mpc8349itx
21197a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
21207a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
2121e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
21227a78f148STimur Tabi	fi
21237a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
2124e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
21257a78f148STimur Tabi	fi
2126e58fe957SKim Phillips	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
21274decd84eSKim Phillips
21285f820439SDave LiuMPC8360EMDS_config \
21295f820439SDave LiuMPC8360EMDS_HOST_33_config \
21305f820439SDave LiuMPC8360EMDS_HOST_66_config \
2131281df457STony LiMPC8360EMDS_SLAVE_config \
2132281df457STony LiMPC8360EMDS_ATM_config: unconfig
2133cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2134c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2135ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2136cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
21375f820439SDave Liu	fi ; \
21385f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2139ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2140cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2141cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
21425f820439SDave Liu	fi ; \
21435f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
2144ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2145cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2146281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
21475f820439SDave Liu	fi ; \
21485f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
2149ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2150cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2151281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2152281df457STony Li	fi ; \
2153281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2154ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2155281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2156281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
21575f820439SDave Liu	fi ;
2158e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
21595f820439SDave Liu
2160fab6f556SAnton VorontsovMPC8360ERDK_33_config \
2161fab6f556SAnton VorontsovMPC8360ERDK_66_config \
216291c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config:	unconfig
2163fab6f556SAnton Vorontsov	@mkdir -p $(obj)include
2164c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2165ae6d1056SWolfgang Denk		$(XECHO) -n "... CLKIN 33MHz " ; \
2166fab6f556SAnton Vorontsov		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2167fab6f556SAnton Vorontsov	fi ;
2168fab6f556SAnton Vorontsov	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2169fab6f556SAnton Vorontsov
217019580e66SDave LiuMPC837XEMDS_config \
217119580e66SDave LiuMPC837XEMDS_HOST_config:	unconfig
217219580e66SDave Liu	@mkdir -p $(obj)include
2173c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2174ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
217519580e66SDave Liu		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
217619580e66SDave Liu	fi ;
217719580e66SDave Liu	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
217819580e66SDave Liu
21795e918a98SKim PhillipsMPC837XERDB_config:	unconfig
21805e918a98SKim Phillips	@$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
21815e918a98SKim Phillips
2182a1293e54SAndre SchwarzMVBLM7_config: unconfig
2183a1293e54SAndre Schwarz	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7
2184a1293e54SAndre Schwarz
218591e25769SPaul Gortmakersbc8349_config:		unconfig
218691e25769SPaul Gortmaker	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
218791e25769SPaul Gortmaker
21884decd84eSKim PhillipsTQM834x_config:	unconfig
21894677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
21904decd84eSKim Phillips
21912ad6b513STimur Tabi
2192f046ccd1SEran Liberty#########################################################################
219342d1f039Swdenk## MPC85xx Systems
219442d1f039Swdenk#########################################################################
219542d1f039Swdenk
21967bd6104bSrobert lazarskiATUM8548_config:	unconfig
21977bd6104bSrobert lazarski	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
21987bd6104bSrobert lazarski
219942d1f039SwdenkMPC8540ADS_config:	unconfig
2200c2d943ffSKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
220142d1f039Swdenk
2202b0e32949SLunsheng WangMPC8540EVAL_config \
2203b0e32949SLunsheng WangMPC8540EVAL_33_config \
2204b0e32949SLunsheng WangMPC8540EVAL_66_config \
2205b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
2206b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:	  unconfig
2207f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2208c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2209ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2210b0e32949SLunsheng Wang	else \
2211f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2212ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2213b0e32949SLunsheng Wang	fi ; \
2214b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
2215f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2216ae6d1056SWolfgang Denk		$(XECHO) " slave" ; \
2217b0e32949SLunsheng Wang	else \
2218ae6d1056SWolfgang Denk		$(XECHO) " host" ; \
2219b0e32949SLunsheng Wang	fi
2220f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2221b0e32949SLunsheng Wang
222242d1f039SwdenkMPC8560ADS_config:	unconfig
2223870ceac5SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
222442d1f039Swdenk
22257f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \
222603f5c550SwdenkMPC8541CDS_config:	unconfig
22277f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2228c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
22297f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2230ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
22317f3f2bd2SRandy Vinson	fi
2232415a613bSKumar Gala	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
223303f5c550Swdenk
223481f481caSAndy FlemingMPC8544DS_config:	unconfig
223581f481caSAndy Fleming	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
223681f481caSAndy Fleming
22377f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \
2238d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
22397f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2240c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
22417f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2242ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
22437f3f2bd2SRandy Vinson	fi
2244415a613bSKumar Gala	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2245d9b94f28SJon Loeliger
22467f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \
224703f5c550SwdenkMPC8555CDS_config:	unconfig
22487f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2249c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
22507f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2251ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
22527f3f2bd2SRandy Vinson	fi
2253415a613bSKumar Gala	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
22547abf0c58Swdenk
225567431059SAndy FlemingMPC8568MDS_config:	unconfig
2256acbca876SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
225767431059SAndy Fleming
2258384cc687SwdenkPM854_config:	unconfig
2259f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2260384cc687Swdenk
2261b20d0032SWolfgang DenkPM856_config:	unconfig
2262f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2263b20d0032SWolfgang Denk
2264c15f3120Swdenksbc8540_config \
2265c15f3120Swdenksbc8540_33_config \
2266c15f3120Swdenksbc8540_66_config:	unconfig
2267f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2268c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2269f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2270ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2271c15f3120Swdenk	else \
2272ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2273c15f3120Swdenk	fi
2274f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2275c15f3120Swdenk
227611c45ebdSJoe Hammansbc8548_config:		unconfig
227711c45ebdSJoe Hamman	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
227811c45ebdSJoe Hamman
2279466b7410Swdenksbc8560_config \
2280466b7410Swdenksbc8560_33_config \
2281466b7410Swdenksbc8560_66_config:	unconfig
2282f9328639SMarian Balakowicz	@mkdir -p $(obj)include
22838b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2284f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2285ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
22868b07a110Swdenk	else \
2287ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
22888b07a110Swdenk	fi
2289f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
22908b07a110Swdenk
22915d108ac8SSergei Poselenovsocrates_config:	unconfig
22925d108ac8SSergei Poselenov	@$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
22935d108ac8SSergei Poselenov
229403f5c550Swdenkstxgp3_config:		unconfig
2295f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
229603f5c550Swdenk
2297ee152983SWolfgang Denkstxssa_config		\
2298ee152983SWolfgang Denkstxssa_4M_config:	unconfig
2299ee152983SWolfgang Denk	@mkdir -p $(obj)include
2300ee152983SWolfgang Denk	@if [ "$(findstring _4M_,$@)" ] ; then \
2301ee152983SWolfgang Denk		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2302ae6d1056SWolfgang Denk		$(XECHO) "... with 4 MiB flash memory" ; \
2303ee152983SWolfgang Denk	fi
2304ee152983SWolfgang Denk	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
230535171dc0SDan Malek
2306d96f41e0SStefan RoeseTQM8540_config		\
2307d96f41e0SStefan RoeseTQM8541_config		\
23081287e0c5SWolfgang GrandeggerTQM8548_config		\
2309d96f41e0SStefan RoeseTQM8555_config		\
2310f5c5ef4aSwdenkTQM8560_config:		unconfig
2311f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2312a889bd27SWolfgang Denk	@CTYPE=$(subst TQM,,$(@:_config=)); \
2313ae6d1056SWolfgang Denk	$(XECHO) "... TQM"$${CTYPE}; \
2314f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2315f9328639SMarian Balakowicz	echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2316f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
231725991353SWolfgang Grandegger	echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h;
23184677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2319f5c5ef4aSwdenk
232042d1f039Swdenk#########################################################################
2321debb7354SJon Loeliger## MPC86xx Systems
2322debb7354SJon Loeliger#########################################################################
2323debb7354SJon Loeliger
23243c89d754SJon LoeligerMPC8610HPCD_config:	unconfig
23253c89d754SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
23263c89d754SJon Loeliger
2327debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
23284ce91774SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2329debb7354SJon Loeliger
2330c646bba6SJoe Hammansbc8641d_config:	unconfig
233191c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2332debb7354SJon Loeliger
2333debb7354SJon Loeliger#########################################################################
23347ebf7443Swdenk## 74xx/7xx Systems
23357ebf7443Swdenk#########################################################################
23367ebf7443Swdenk
2337c7de829cSwdenkAmigaOneG3SE_config:	unconfig
2338f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2339c7de829cSwdenk
234015647dc7SwdenkBAB7xx_config: unconfig
2341f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
234215647dc7Swdenk
2343c419d1d6SstroeseCPCI750_config:	unconfig
2344f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2345c419d1d6Sstroese
23463a473b2aSwdenkDB64360_config:	unconfig
2347f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
23483a473b2aSwdenk
23493a473b2aSwdenkDB64460_config:	unconfig
2350f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
23513a473b2aSwdenk
235215647dc7SwdenkELPPC_config: unconfig
2353f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
235415647dc7Swdenk
23557ebf7443SwdenkEVB64260_config	\
23567ebf7443SwdenkEVB64260_750CX_config:	unconfig
2357f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
23587ebf7443Swdenk
23594c52783bSroy zangmpc7448hpc2_config:  unconfig
23607f1d846eSJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
23614c52783bSroy zang
236215647dc7SwdenkP3G4_config: unconfig
2363f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
23647ebf7443Swdenk
23651eac2a71SStefan Roesep3m750_config	\
23661eac2a71SStefan Roesep3m7448_config:		unconfig
23671eac2a71SStefan Roese	@mkdir -p $(obj)include
23681eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
23691eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
23701eac2a71SStefan Roese	else \
23711eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
23721eac2a71SStefan Roese	fi
23731eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
23741eac2a71SStefan Roese
23757ebf7443SwdenkPCIPPC2_config \
23767ebf7443SwdenkPCIPPC6_config: unconfig
2377f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
23787ebf7443Swdenk
2379f5e0d039SHeiko Schocherppmc7xx_config: unconfig
2380f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2381f5e0d039SHeiko Schocher
2382699f0512SWolfgang DenkZUMA_config:	unconfig
2383699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2384699f0512SWolfgang Denk
23857ebf7443Swdenk#========================================================================
23867ebf7443Swdenk# ARM
23877ebf7443Swdenk#========================================================================
23887ebf7443Swdenk#########################################################################
23897ebf7443Swdenk## StrongARM Systems
23907ebf7443Swdenk#########################################################################
23917ebf7443Swdenk
2392ea66bc88Swdenkassabet_config	:	unconfig
2393f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2394ea66bc88Swdenk
23957ebf7443Swdenkdnp1110_config	:	unconfig
2396f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
23977ebf7443Swdenk
2398855a496fSwdenkgcplus_config	:	unconfig
2399f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2400855a496fSwdenk
2401855a496fSwdenklart_config	:	unconfig
2402f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
2403855a496fSwdenk
24047ebf7443Swdenkshannon_config	:	unconfig
2405f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
24067ebf7443Swdenk
24077ebf7443Swdenk#########################################################################
24082e5983d2Swdenk## ARM92xT Systems
24097ebf7443Swdenk#########################################################################
24107ebf7443Swdenk
2411a4b46ed6SUlf Samuelsson#########################################################################
2412a4b46ed6SUlf Samuelsson## Atmel AT91RM9200 Systems
2413a4b46ed6SUlf Samuelsson#########################################################################
241420b197c6SStelian Pop
2415a85f9f21Swdenkat91rm9200dk_config	:	unconfig
241665230107SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2417a85f9f21Swdenk
2418d99a8ff6SStelian Popat91sam9261ek_config	:	unconfig
24198ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9261ek atmel at91
2420d99a8ff6SStelian Pop
24218e429b3eSStelian Popat91sam9263ek_config	:	unconfig
24228ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9263ek atmel at91
24238e429b3eSStelian Pop
24242118ebb4SStelian Popat91sam9rlek_config	:	unconfig
24258ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9rlek atmel at91
24262118ebb4SStelian Pop
2427a85f9f21Swdenkcmc_pu2_config	:	unconfig
2428f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2429a85f9f21Swdenk
2430645da510SWolfgang Denkcsb637_config	:	unconfig
2431f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2432645da510SWolfgang Denk
2433a4b46ed6SUlf Samuelssonkb9202_config	:	unconfig
2434a4b46ed6SUlf Samuelsson	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2435a4b46ed6SUlf Samuelsson
2436ea8d989fSTimo Tuunainenm501sk_config	:	unconfig
2437ea8d989fSTimo Tuunainen	@$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
243887cb6862SWolfgang Denk
2439699f0512SWolfgang Denkmp2usb_config	:	unconfig
2440699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2441699f0512SWolfgang Denk
2442a4b46ed6SUlf Samuelsson#########################################################################
2443a4b46ed6SUlf Samuelsson## Atmel ARM926EJ-S Systems
2444a4b46ed6SUlf Samuelsson#########################################################################
2445a4b46ed6SUlf Samuelsson
2446a4b46ed6SUlf Samuelssonat91cap9adk_config	:	unconfig
24478ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2448a4b46ed6SUlf Samuelsson
2449a4b46ed6SUlf Samuelssonat91sam9260ek_config	:	unconfig
24508ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91
2451a4b46ed6SUlf Samuelsson
245274f4304eSWolfgang Denk########################################################################
245387cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
245487cb6862SWolfgang Denkintegratorap_config	\
245587cb6862SWolfgang Denkap_config		\
245687cb6862SWolfgang Denkap966_config		\
245787cb6862SWolfgang Denkap922_config		\
245887cb6862SWolfgang Denkap922_XA10_config	\
245987cb6862SWolfgang Denkap7_config		\
246087cb6862SWolfgang Denkap720t_config		\
246187cb6862SWolfgang Denkap920t_config		\
246287cb6862SWolfgang Denkap926ejs_config		\
246387cb6862SWolfgang Denkap946es_config: unconfig
246496782c63SWolfgang Denk	@board/integratorap/split_by_variant.sh $@
24653d3befa7Swdenk
246687cb6862SWolfgang Denkintegratorcp_config	\
246787cb6862SWolfgang Denkcp_config		\
246887cb6862SWolfgang Denkcp920t_config		\
246987cb6862SWolfgang Denkcp926ejs_config		\
247087cb6862SWolfgang Denkcp946es_config		\
247187cb6862SWolfgang Denkcp1136_config		\
247287cb6862SWolfgang Denkcp966_config		\
247387cb6862SWolfgang Denkcp922_config		\
247487cb6862SWolfgang Denkcp922_XA10_config	\
247587cb6862SWolfgang Denkcp1026_config: unconfig
247696782c63SWolfgang Denk	@board/integratorcp/split_by_variant.sh $@
247725d6712aSwdenk
2478699f0512SWolfgang Denkdavinci_dvevm_config :	unconfig
2479699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2480699f0512SWolfgang Denk
2481699f0512SWolfgang Denkdavinci_schmoogie_config :	unconfig
2482699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2483699f0512SWolfgang Denk
2484699f0512SWolfgang Denkdavinci_sffsdr_config :	unconfig
2485699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2486699f0512SWolfgang Denk
2487699f0512SWolfgang Denkdavinci_sonata_config :	unconfig
2488699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2489699f0512SWolfgang Denk
2490f832d8a1Swdenklpd7a400_config \
2491f832d8a1Swdenklpd7a404_config:	unconfig
2492f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
24933d3befa7Swdenk
2494281e00a3Swdenkmx1ads_config	:	unconfig
2495f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2496281e00a3Swdenk
2497281e00a3Swdenkmx1fs2_config	:	unconfig
2498f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2499281e00a3Swdenk
2500ac7eb8a3SWolfgang Denknetstar_config:		unconfig
2501f4e7cbfcSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm925t netstar
2502ac7eb8a3SWolfgang Denk
25032e5983d2Swdenkomap1510inn_config :	unconfig
2504f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
25052e5983d2Swdenk
2506a4b46ed6SUlf Samuelssonxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2507a4b46ed6SUlf Samuelsson
250863e73c9aSwdenkomap1610inn_config \
250963e73c9aSwdenkomap1610inn_cs0boot_config \
251063e73c9aSwdenkomap1610inn_cs3boot_config \
25113ff02c27Swdenkomap1610inn_cs_autoboot_config \
251263e73c9aSwdenkomap1610h2_config \
251363e73c9aSwdenkomap1610h2_cs0boot_config \
25143ff02c27Swdenkomap1610h2_cs3boot_config \
25153ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
2516f9328639SMarian Balakowicz	@mkdir -p $(obj)include
251763e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2518cdd917a4SWolfgang Denk		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2519ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
25203ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2521cdd917a4SWolfgang Denk		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2522ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS_AUTO boot"; \
252363e73c9aSwdenk	else \
2524cdd917a4SWolfgang Denk		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2525ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
252663e73c9aSwdenk	fi;
2527f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
25286f21347dSwdenk
2529699f0512SWolfgang Denkomap5912osk_config :	unconfig
2530699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2531699f0512SWolfgang Denk
2532a4b46ed6SUlf Samuelssonxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2533a4b46ed6SUlf Samuelsson
2534a56bd922Swdenkomap730p2_config \
2535a56bd922Swdenkomap730p2_cs0boot_config \
2536a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
2537f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2538a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2539f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2540ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
2541a56bd922Swdenk	else \
2542f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2543ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
2544a56bd922Swdenk	fi;
2545f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2546a56bd922Swdenk
254732cb2c70SWolfgang Denksbc2410x_config: unconfig
2548f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
254932cb2c70SWolfgang Denk
2550281e00a3Swdenkscb9328_config	:	unconfig
2551f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2552281e00a3Swdenk
25537ebf7443Swdenksmdk2400_config	:	unconfig
2554f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
25557ebf7443Swdenk
25567ebf7443Swdenksmdk2410_config	:	unconfig
2557f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
25587ebf7443Swdenk
25592d24a3a7SwdenkSX1_config :		unconfig
2560f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t sx1
25612d24a3a7Swdenk
2562b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
2563a4b46ed6SUlf Samuelssonxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2564a4b46ed6SUlf Samuelsson
256543d9616cSwdenktrab_config \
2566b0639ca3Swdenktrab_bigram_config \
2567b0639ca3Swdenktrab_bigflash_config \
2568f54ebdfaSwdenktrab_old_config:	unconfig
2569f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2570f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
2571b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
2572f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2573f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
2574ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2575b0639ca3Swdenk		}
2576b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
2577f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2578f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2579ae6d1056SWolfgang Denk		  $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2580f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2581b0639ca3Swdenk		}
2582f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
2583f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2584f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2585ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2586f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
258743d9616cSwdenk		}
2588f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
25897ebf7443Swdenk
25901cb8e980SwdenkVCMA9_config	:	unconfig
2591f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
25921cb8e980Swdenk
2593699f0512SWolfgang Denk#########################################################################
259487cb6862SWolfgang Denk# ARM supplied Versatile development boards
2595699f0512SWolfgang Denk#########################################################################
2596699f0512SWolfgang Denk
2597699f0512SWolfgang Denkcm4008_config	:	unconfig
2598699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2599699f0512SWolfgang Denk
2600699f0512SWolfgang Denkcm41xx_config	:	unconfig
2601699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2602699f0512SWolfgang Denk
260387cb6862SWolfgang Denkversatile_config	\
260487cb6862SWolfgang Denkversatileab_config	\
260587cb6862SWolfgang Denkversatilepb_config :	unconfig
260696782c63SWolfgang Denk	@board/versatile/split_by_variant.sh $@
2607074cff0dSwdenk
26083c2b3d45Swdenkvoiceblue_config:	unconfig
26094fedfddfSLadislav Michl	@$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
26103c2b3d45Swdenk
2611074cff0dSwdenk#########################################################################
2612074cff0dSwdenk## S3C44B0 Systems
2613074cff0dSwdenk#########################################################################
2614074cff0dSwdenk
2615074cff0dSwdenkB2_config	:	unconfig
2616f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2617074cff0dSwdenk
26187ebf7443Swdenk#########################################################################
26197ebf7443Swdenk## ARM720T Systems
26207ebf7443Swdenk#########################################################################
26217ebf7443Swdenk
2622c570b2fdSWolfgang Denkarmadillo_config:	unconfig
2623f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2624c570b2fdSWolfgang Denk
26257ebf7443Swdenkep7312_config	:	unconfig
2626f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
26277ebf7443Swdenk
26282d24a3a7Swdenkimpa7_config	:	unconfig
2629f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
26302d24a3a7Swdenk
26312d1a537dSwdenkmodnet50_config :	unconfig
2632f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
26332d1a537dSwdenk
263439539887Swdenkevb4510_config :	unconfig
2635f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
263639539887Swdenk
26376bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
2638b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2639b0d8f5bfSPeter Pearse
2640b0d8f5bfSPeter PearseSMN42_config	:	unconfig
2641b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
26426bd2447eSGary Jennejohn
26437ebf7443Swdenk#########################################################################
264443d9616cSwdenk## XScale Systems
26457ebf7443Swdenk#########################################################################
26467ebf7443Swdenk
2647799891efSMichael Schwingenactux1_config	:	unconfig
2648799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux1
2649799891efSMichael Schwingen
2650799891efSMichael Schwingenactux2_config	:	unconfig
2651799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux2
2652799891efSMichael Schwingen
2653799891efSMichael Schwingenactux3_config	:	unconfig
2654799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux3
2655799891efSMichael Schwingen
2656799891efSMichael Schwingenactux4_config	:	unconfig
2657799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux4
2658799891efSMichael Schwingen
2659fabd46acSwdenkcerf250_config :	unconfig
2660f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
2661fabd46acSwdenk
26627ebf7443Swdenkcradle_config	:	unconfig
2663f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
26647ebf7443Swdenk
26657ebf7443Swdenkcsb226_config	:	unconfig
2666f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
26677ebf7443Swdenk
266891c82076SJean-Christophe PLAGNIOL-VILLARDdelta_config :	unconfig
2669f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
26700be248faSWolfgang Denk
267143d9616cSwdenkinnokom_config	:	unconfig
2672f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
267343d9616cSwdenk
26742d5b561eSwdenkixdp425_config	:	unconfig
2675f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
26762d5b561eSwdenk
2677ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
2678f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2679ba94a1bbSWolfgang Denk
268043d9616cSwdenklubbock_config	:	unconfig
2681f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
268243d9616cSwdenk
26835720df78SHeiko Schocherpleb2_config	:	unconfig
2684f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
26855720df78SHeiko Schocher
268652f52c14Swdenklogodl_config	:	unconfig
2687f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
268852f52c14Swdenk
26899d8d5a5bSStefan Roesepdnb3_config \
26909d8d5a5bSStefan Roesescpu_config:	unconfig
2691cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
26929d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
2693cdd917a4SWolfgang Denk		echo "#define CONFIG_SCPU"	>>$(obj)include/config.h ; \
2694ae6d1056SWolfgang Denk		$(XECHO) "... on SCPU board variant" ; \
26959d8d5a5bSStefan Roese	fi
26969d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2697ba94a1bbSWolfgang Denk
2698f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
2699f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2700f57f70aaSWolfgang Denk
27015e5803e1Sstefano babictrizepsiv_config	:	unconfig
27025e5803e1Sstefano babic	@$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
27035e5803e1Sstefano babic
27043e38691eSwdenkwepep250_config	:	unconfig
2705f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
27063e38691eSwdenk
27074ec3a7f0Swdenkxaeniax_config	:	unconfig
2708f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
27094ec3a7f0Swdenk
2710efa329cbSwdenkxm250_config	:	unconfig
2711f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
2712efa329cbSwdenk
2713ca0e7748Swdenkxsengine_config :	unconfig
2714f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
2715ca0e7748Swdenk
2716e0269579SMarkus Klotzbücherzylonite_config :
2717f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
2718e0269579SMarkus Klotzbücher
27198ed96046Swdenk#########################################################################
27208ed96046Swdenk## ARM1136 Systems
27218ed96046Swdenk#########################################################################
27225ca9881aSPeter Pearse
27235ca9881aSPeter Pearseapollon_config		: unconfig
2724c6fe4dabSWolfgang Denk	@mkdir -p $(obj)include
2725f2302d44SStefan Roese	@mkdir -p $(obj)onenand_ipl/board/apollon
2726751b9b51SKyungmin Park	@echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
27275252ed95SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2728751b9b51SKyungmin Park	@echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
27298ed96046Swdenk
2730caebc95bSSascha Hauerimx31_litekit_config	: unconfig
2731caebc95bSSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2732caebc95bSSascha Hauer
27335ad86216SSascha Hauerimx31_phycore_config	: unconfig
27345ad86216SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
27355ad86216SSascha Hauer
2736b5dc9b30SGuennadi Liakhovetskimx31ads_config		: unconfig
2737f5acb9fdSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
2738b5dc9b30SGuennadi Liakhovetski
2739699f0512SWolfgang Denkomap2420h4_config	: unconfig
2740699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2741699f0512SWolfgang Denk
27422262cfeeSwdenk#========================================================================
27432262cfeeSwdenk# i386
27442262cfeeSwdenk#========================================================================
27452262cfeeSwdenk#########################################################################
27462262cfeeSwdenk## AMD SC520 CDP
27472262cfeeSwdenk#########################################################################
27482262cfeeSwdenksc520_cdp_config	:	unconfig
2749f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
27502262cfeeSwdenk
27517a8e9bedSwdenksc520_spunk_config	:	unconfig
2752f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
27537a8e9bedSwdenk
27547a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
2755f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
27567a8e9bedSwdenk
275743d9616cSwdenk#========================================================================
275843d9616cSwdenk# MIPS
275943d9616cSwdenk#========================================================================
27607ebf7443Swdenk#########################################################################
276143d9616cSwdenk## MIPS32 4Kc
276243d9616cSwdenk#########################################################################
276343d9616cSwdenk
2764e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2765e0ac62d7Swdenk
2766e0ac62d7Swdenkincaip_100MHz_config	\
2767e0ac62d7Swdenkincaip_133MHz_config	\
2768e0ac62d7Swdenkincaip_150MHz_config	\
276943d9616cSwdenkincaip_config: unconfig
2770f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2771e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
2772f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2773ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
2774e0ac62d7Swdenk		}
2775e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
2776f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2777ae6d1056SWolfgang Denk		  $(XECHO) "... with 133MHz system clock" ; \
2778e0ac62d7Swdenk		}
2779e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
2780f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2781ae6d1056SWolfgang Denk		  $(XECHO) "... with 150MHz system clock" ; \
2782e0ac62d7Swdenk		}
2783f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2784e0ac62d7Swdenk
2785f4863a7aSwdenktb0229_config: unconfig
2786f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
2787f4863a7aSwdenk
2788e0ac62d7Swdenk#########################################################################
278969459791Swdenk## MIPS32 AU1X00
279069459791Swdenk#########################################################################
2791699f0512SWolfgang Denk
279269459791Swdenkdbau1000_config		:	unconfig
2793f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2794210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2795f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
279669459791Swdenk
279769459791Swdenkdbau1100_config		:	unconfig
2798f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2799210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2800f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
280169459791Swdenk
280269459791Swdenkdbau1500_config		:	unconfig
2803f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2804210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2805f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
280669459791Swdenk
2807ff36fd85Swdenkdbau1550_config		:	unconfig
2808f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2809210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2810f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2811ff36fd85Swdenk
2812ff36fd85Swdenkdbau1550_el_config	:	unconfig
2813f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2814210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2815f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2816ff36fd85Swdenk
28178a773983SShinya Kuribayashigth2_config		:	unconfig
28188a773983SShinya Kuribayashi	@mkdir -p $(obj)include
28198a773983SShinya Kuribayashi	@echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
28208a773983SShinya Kuribayashi	@$(MKCONFIG) -a gth2 mips mips gth2
28218a773983SShinya Kuribayashi
2822699f0512SWolfgang Denkpb1000_config		:	unconfig
2823699f0512SWolfgang Denk	@mkdir -p $(obj)include
2824699f0512SWolfgang Denk	@echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2825699f0512SWolfgang Denk	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
2826699f0512SWolfgang Denk
28270764c164SVlad Lunguqemu_mips_config	: unconfig
28280764c164SVlad Lungu	@mkdir -p $(obj)include
2829210ed200SWolfgang Denk	@echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
28300764c164SVlad Lungu	@$(MKCONFIG) -a qemu-mips mips mips qemu-mips
28310764c164SVlad Lungu
283269459791Swdenk#########################################################################
2833e0ac62d7Swdenk## MIPS64 5Kc
2834e0ac62d7Swdenk#########################################################################
283543d9616cSwdenk
28363e38691eSwdenkpurple_config :		unconfig
2837f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
283843d9616cSwdenk
28394a551709Swdenk#========================================================================
28404a551709Swdenk# Nios
28414a551709Swdenk#========================================================================
28424a551709Swdenk#########################################################################
28434a551709Swdenk## Nios32
28444a551709Swdenk#########################################################################
28454a551709Swdenk
2846699f0512SWolfgang DenkADNPESC1_DNPEVA2_base_32_config	\
2847699f0512SWolfgang DenkADNPESC1_base_32_config		\
2848699f0512SWolfgang DenkADNPESC1_config: unconfig
2849699f0512SWolfgang Denk	@mkdir -p $(obj)include
2850699f0512SWolfgang Denk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
2851699f0512SWolfgang Denk		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2852699f0512SWolfgang Denk		  $(XECHO) "... DNP/EVA2 configuration" ; \
2853699f0512SWolfgang Denk		}
2854699f0512SWolfgang Denk	@[ -z "$(findstring _base_32,$@)" ] || \
2855699f0512SWolfgang Denk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2856699f0512SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration" ; \
2857699f0512SWolfgang Denk		}
2858699f0512SWolfgang Denk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2859699f0512SWolfgang Denk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2860699f0512SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2861699f0512SWolfgang Denk		}
2862699f0512SWolfgang Denk	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2863699f0512SWolfgang Denk
2864c935d3bdSwdenkDK1C20_safe_32_config		\
2865c935d3bdSwdenkDK1C20_standard_32_config	\
28664a551709SwdenkDK1C20_config:	unconfig
2867f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2868c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2869f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2870ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
2871c935d3bdSwdenk		}
2872c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2873f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2874ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
2875c935d3bdSwdenk		}
2876c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
2877f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2878ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2879c935d3bdSwdenk		}
2880f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2881c935d3bdSwdenk
2882c935d3bdSwdenkDK1S10_safe_32_config		\
2883c935d3bdSwdenkDK1S10_standard_32_config	\
2884ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
2885c935d3bdSwdenkDK1S10_config:	unconfig
2886f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2887c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2888f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2889ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
2890c935d3bdSwdenk		}
2891c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2892f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2893ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
2894c935d3bdSwdenk		}
2895ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2896f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2897ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2898ec4c544bSwdenk		}
2899c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
2900f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2901ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2902c935d3bdSwdenk		}
2903f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
29044a551709Swdenk
29055c952cf0Swdenk#########################################################################
29065c952cf0Swdenk## Nios-II
29075c952cf0Swdenk#########################################################################
29085c952cf0Swdenk
29099cc83378SScott McNuttEP1C20_config : unconfig
2910f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
29119cc83378SScott McNutt
29129cc83378SScott McNuttEP1S10_config : unconfig
2913f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
29149cc83378SScott McNutt
29159cc83378SScott McNuttEP1S40_config : unconfig
2916f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
29179cc83378SScott McNutt
29185c952cf0SwdenkPK1C20_config : unconfig
2919f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
29205c952cf0Swdenk
29215c952cf0SwdenkPCI5441_config : unconfig
2922f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
29234a551709Swdenk
2924507bbe3eSwdenk#========================================================================
2925507bbe3eSwdenk## Microblaze
2926699f0512SWolfgang Denk#========================================================================
2927507bbe3eSwdenk
2928cfc67116SMichal Simekml401_config:	unconfig
2929cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2930210ed200SWolfgang Denk	@echo "#define CONFIG_ML401 1" > $(obj)include/config.h
293190b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2932cfc67116SMichal Simek
2933699f0512SWolfgang Denksuzaku_config:	unconfig
2934699f0512SWolfgang Denk	@mkdir -p $(obj)include
2935699f0512SWolfgang Denk	@echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
2936699f0512SWolfgang Denk	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2937699f0512SWolfgang Denk
293817980495SMichal Simekxupv2p_config:	unconfig
2939cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2940210ed200SWolfgang Denk	@echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
294190b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
294217980495SMichal Simek
294360fa72d6SMike Frysinger#========================================================================
294460fa72d6SMike Frysinger# Blackfin
294560fa72d6SMike Frysinger#========================================================================
29460afe519aSWolfgang Denk
294760fa72d6SMike Frysinger# Analog Devices boards
294860fa72d6SMike FrysingerBFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
29490afe519aSWolfgang Denk
295060fa72d6SMike Frysinger$(BFIN_BOARDS:%=%_config)	: unconfig
29519171fc81SMike Frysinger	@$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
295226bf7decSAubrey Li
295360fa72d6SMike Frysinger$(BFIN_BOARDS):
295460fa72d6SMike Frysinger	$(MAKE) $@_config
295560fa72d6SMike Frysinger	$(MAKE)
29560afe519aSWolfgang Denk
29575e3b0bc1SHaavard Skinnemoen#========================================================================
29585e3b0bc1SHaavard Skinnemoen# AVR32
29595e3b0bc1SHaavard Skinnemoen#========================================================================
2960699f0512SWolfgang Denk
2961699f0512SWolfgang Denkatngw100_config	:	unconfig
2962699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
29635e3b0bc1SHaavard Skinnemoen
29645e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
296536f28f8aSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
29665e3b0bc1SHaavard Skinnemoen
2967667568dbSHaavard Skinnemoenatstk1003_config	:	unconfig
2968667568dbSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2969667568dbSHaavard Skinnemoen
297064ff2357SHaavard Skinnemoenatstk1004_config	:	unconfig
297164ff2357SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
29720afe519aSWolfgang Denk
29730a2e4879SHaavard Skinnemoenatstk1006_config	:	unconfig
29740a2e4879SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
29750a2e4879SHaavard Skinnemoen
29760eb5717aSHans-Christian Egtvedtfavr-32-ezkit_config	:	unconfig
29770eb5717aSHans-Christian Egtvedt	@$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
29780eb5717aSHans-Christian Egtvedt
29795c374c9eSJulien Mayhammerhead_config	:	unconfig
29805c374c9eSJulien May	@$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
29815c374c9eSJulien May
298213b50fe3SMark Jacksonmimc200_config		:	unconfig
298313b50fe3SMark Jackson	@$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
298413b50fe3SMark Jackson
2985699f0512SWolfgang Denk#========================================================================
2986699f0512SWolfgang Denk# SH3 (SuperH)
2987699f0512SWolfgang Denk#========================================================================
29887ebf7443Swdenk
298969df3c4dSNobuhiro Iwamatsu#########################################################################
2990b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH)
2991b2b5e2bbSYoshihiro Shimoda#########################################################################
2992699f0512SWolfgang Denk
29933313e0e2SMark Jonasmpr2_config: unconfig
29943ab4827cSWolfgang Denk	@mkdir -p $(obj)include
29953ab4827cSWolfgang Denk	@echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
29963313e0e2SMark Jonas	@$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
29973313e0e2SMark Jonas
2998b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig
29993ab4827cSWolfgang Denk	@mkdir -p $(obj)include
30003ab4827cSWolfgang Denk	@echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
300191c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3002b2b5e2bbSYoshihiro Shimoda
3003b2b5e2bbSYoshihiro Shimoda#########################################################################
300469df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH)
300569df3c4dSNobuhiro Iwamatsu#########################################################################
3006699f0512SWolfgang Denk
3007699f0512SWolfgang DenkMigoR_config :       unconfig
3008699f0512SWolfgang Denk	@mkdir -p $(obj)include
3009699f0512SWolfgang Denk	@echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
3010699f0512SWolfgang Denk	@./mkconfig -a $(@:_config=) sh sh4 MigoR
3011699f0512SWolfgang Denk
301269df3c4dSNobuhiro Iwamatsums7750se_config: unconfig
30133ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3014210ed200SWolfgang Denk	@echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
301591c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
301669df3c4dSNobuhiro Iwamatsu
3017d91ea45dSNobuhiro Iwamatsums7722se_config :	unconfig
30183ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3019210ed200SWolfgang Denk	@echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
302091c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
30217a8e9bedSwdenk
3022699f0512SWolfgang Denkr2dplus_config  :   unconfig
30233ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3024699f0512SWolfgang Denk	@echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3025699f0512SWolfgang Denk	@./mkconfig -a $(@:_config=) sh sh4 r2dplus
3026c2042f59Sgoda.yusuke
3027c133c1fbSYusuke Godar7780mp_config: unconfig
30283ab4827cSWolfgang Denk	@mkdir -p $(obj)include
30293ab4827cSWolfgang Denk	@echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3030c133c1fbSYusuke Goda	@./mkconfig -a $(@:_config=) sh sh4 r7780mp
3031c133c1fbSYusuke Goda
30327faddaecSNobuhiro Iwamatsush7763rdp_config  :   unconfig
30333ab4827cSWolfgang Denk	@mkdir -p $(obj)include
30343ab4827cSWolfgang Denk	@echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
30357faddaecSNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh4 sh7763rdp
30367faddaecSNobuhiro Iwamatsu
3037c2f02da2SDaniel Hellstrom#========================================================================
3038c2f02da2SDaniel Hellstrom# SPARC
3039c2f02da2SDaniel Hellstrom#========================================================================
3040699f0512SWolfgang Denk
30411e9a164eSDaniel Hellstrom#########################################################################
30421e9a164eSDaniel Hellstrom## LEON3
30431e9a164eSDaniel Hellstrom#########################################################################
3044c2f02da2SDaniel Hellstrom
304571d7e4c0SDaniel Hellstrom# Gaisler GR-XC3S-1500 board
304671d7e4c0SDaniel Hellstromgr_xc3s_1500_config : unconfig
304771d7e4c0SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
304871d7e4c0SDaniel Hellstrom
30496ed8a43aSDaniel Hellstrom# Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
30506ed8a43aSDaniel Hellstromgr_cpci_ax2000_config : unconfig
30516ed8a43aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
30526ed8a43aSDaniel Hellstrom
30536940383dSDaniel Hellstrom# Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
30546940383dSDaniel Hellstrom# Development board Stratix II edition, FPGA Device EP2S60.
30556940383dSDaniel Hellstromgr_ep2s60_config: unconfig
30566940383dSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
30576940383dSDaniel Hellstrom
3058823edd8aSDaniel Hellstrom# Gaisler LEON3 GRSIM simulator
3059823edd8aSDaniel Hellstromgrsim_config : unconfig
3060823edd8aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3061823edd8aSDaniel Hellstrom
30627ebf7443Swdenk#########################################################################
3063b330990cSDaniel Hellstrom## LEON2
3064b330990cSDaniel Hellstrom#########################################################################
3065b330990cSDaniel Hellstrom
3066ab68f921SDaniel Hellstrom# Gaisler LEON2 GRSIM simulator
3067ab68f921SDaniel Hellstromgrsim_leon2_config : unconfig
3068ab68f921SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3069ab68f921SDaniel Hellstrom
30707ebf7443Swdenk#########################################################################
30717ebf7443Swdenk#########################################################################
30727ebf7443Swdenk#########################################################################
307385ec0bccSwdenk
30743e38691eSwdenkclean:
3075f9301e1cSWolfgang Denk	@rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
3076f9301e1cSWolfgang Denk	       $(obj)examples/hello_world  $(obj)examples/interrupt	  \
3077f9301e1cSWolfgang Denk	       $(obj)examples/mem_to_mem_idma2intr			  \
3078f9301e1cSWolfgang Denk	       $(obj)examples/sched	   $(obj)examples/smc91111_eeprom \
3079f9301e1cSWolfgang Denk	       $(obj)examples/test_burst   $(obj)examples/timer
3080f9301e1cSWolfgang Denk	@rm -f $(obj)tools/bmp_logo	   $(obj)tools/easylogo/easylogo  \
3081f9301e1cSWolfgang Denk	       $(obj)tools/env/{fw_printenv,fw_setenv}			  \
3082f9301e1cSWolfgang Denk	       $(obj)tools/envcrc					  \
3083f9301e1cSWolfgang Denk	       $(obj)tools/gdb/{astest,gdbcont,gdbsend}			  \
3084f9301e1cSWolfgang Denk	       $(obj)tools/gen_eth_addr    $(obj)tools/img2srec		  \
3085f9301e1cSWolfgang Denk	       $(obj)tools/mkimage	   $(obj)tools/mpc86x_clk	  \
3086f9301e1cSWolfgang Denk	       $(obj)tools/ncb		   $(obj)tools/ubsha1
3087f9301e1cSWolfgang Denk	@rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image}	  \
3088f9301e1cSWolfgang Denk	       $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin}	  \
3089f9301e1cSWolfgang Denk	       $(obj)board/trab/trab_fkt   $(obj)board/voiceblue/eeprom   \
3090f9301e1cSWolfgang Denk	       $(obj)board/{integratorap,integratorcp}/u-boot.lds	  \
30919171fc81SMike Frysinger	       $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
30929171fc81SMike Frysinger	       $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3093dc7746d8SWolfgang Denk	@rm -f $(obj)include/bmp_logo.h
3094dc7746d8SWolfgang Denk	@rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
30951bb707c3SKyungmin Park	@rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3096f9301e1cSWolfgang Denk	@rm -f $(obj)api_examples/demo $(VERSION_FILE)
3097ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \
30987ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
30997ebf7443Swdenk		-o -name '*.o'	-o -name '*.a'	\) -print \
31007ebf7443Swdenk		| xargs rm -f
31017ebf7443Swdenk
31027ebf7443Swdenkclobber:	clean
3103ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \( -name .depend \
31044c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
31054c0d4c3bSwdenk		-print0 \
31064c0d4c3bSwdenk		| xargs -0 rm -f
3107ffda586fSLi Yang	@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
31085013c09fSWolfgang Denk		$(obj)cscope.* $(obj)*.*~
3109ae6d1056SWolfgang Denk	@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
3110766529fcSBartlomiej Sieka	@rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
311189cdab78SMike Frysinger	@rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
31127e492d82SMarian Balakowicz	@rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
31135013c09fSWolfgang Denk	@rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3114ae6d1056SWolfgang Denk	@rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3115a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3116a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
3117a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)api_examples ] || find $(obj)api_examples -name "*" -type l -print | xargs rm -f
31187ebf7443Swdenk
3119f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
31207ebf7443Swdenkmrproper \
31217ebf7443Swdenkdistclean:	clobber unconfig
3122f9328639SMarian Balakowiczelse
3123f9328639SMarian Balakowiczmrproper \
3124f9328639SMarian Balakowiczdistclean:	clobber unconfig
3125ae6d1056SWolfgang Denk	rm -rf $(obj)*
3126f9328639SMarian Balakowiczendif
31277ebf7443Swdenk
31287ebf7443Swdenkbackup:
31297ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
31307ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
31317ebf7443Swdenk
31327ebf7443Swdenk#########################################################################
3133