xref: /openbmc/u-boot/Makefile (revision 58be3a10)
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
248b9e4787SWolfgang DenkVERSION = 2008
258b9e4787SWolfgang DenkPATCHLEVEL = 10
268b9e4787SWolfgang DenkSUBLEVEL =
27b59b16caSWolfgang DenkEXTRAVERSION =
288b9e4787SWolfgang Denkifneq "$(SUBLEVEL)" ""
29881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
308b9e4787SWolfgang Denkelse
318b9e4787SWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL)$(EXTRAVERSION)
328b9e4787SWolfgang Denkendif
33f9328639SMarian BalakowiczVERSION_FILE = $(obj)include/version_autogenerated.h
34881a87ecSWolfgang Denk
357ebf7443SwdenkHOSTARCH := $(shell uname -m | \
367ebf7443Swdenk	sed -e s/i.86/i386/ \
377ebf7443Swdenk	    -e s/sun4u/sparc64/ \
387ebf7443Swdenk	    -e s/arm.*/arm/ \
397ebf7443Swdenk	    -e s/sa110/arm/ \
407ebf7443Swdenk	    -e s/powerpc/ppc/ \
41a2280646SKumar Gala	    -e s/ppc64/ppc/ \
427ebf7443Swdenk	    -e s/macppc/ppc/)
437ebf7443Swdenk
44f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
457ebf7443Swdenk	    sed -e 's/\(cygwin\).*/cygwin/')
467ebf7443Swdenk
47f9d77ed3SWolfgang Denkexport	HOSTARCH HOSTOS
487ebf7443Swdenk
497ebf7443Swdenk# Deal with colliding definitions from tcsh etc.
507ebf7443SwdenkVENDOR=
517ebf7443Swdenk
527ebf7443Swdenk#########################################################################
53ae6d1056SWolfgang Denk# Allow for silent builds
54ae6d1056SWolfgang Denkifeq (,$(findstring s,$(MAKEFLAGS)))
55ae6d1056SWolfgang DenkXECHO = echo
56ae6d1056SWolfgang Denkelse
57ae6d1056SWolfgang DenkXECHO = :
58ae6d1056SWolfgang Denkendif
59ae6d1056SWolfgang Denk
60ae6d1056SWolfgang Denk#########################################################################
61f9328639SMarian Balakowicz#
62f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external
63f9328639SMarian Balakowicz# directory. Two use cases are supported:
64f9328639SMarian Balakowicz#
65f9328639SMarian Balakowicz# 1) Add O= to the make command line
66f9328639SMarian Balakowicz# 'make O=/tmp/build all'
67f9328639SMarian Balakowicz#
68f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location
69f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
70f9328639SMarian Balakowicz# 'make'
71f9328639SMarian Balakowicz#
72f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script
73f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
74f9328639SMarian Balakowicz# './MAKEALL'
75f9328639SMarian Balakowicz#
76f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable.
77f9328639SMarian Balakowicz#
78f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and
79f9328639SMarian Balakowicz# the object files are placed in the source directory.
80f9328639SMarian Balakowicz#
817ebf7443Swdenk
82f9328639SMarian Balakowiczifdef O
83f9328639SMarian Balakowiczifeq ("$(origin O)", "command line")
84f9328639SMarian BalakowiczBUILD_DIR := $(O)
85f9328639SMarian Balakowiczendif
86f9328639SMarian Balakowiczendif
877ebf7443Swdenk
88f9328639SMarian Balakowiczifneq ($(BUILD_DIR),)
89f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR)
904f0645ebSMarian Balakowicz
914f0645ebSMarian Balakowicz# Attempt to create a output directory.
924f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
934f0645ebSMarian Balakowicz
944f0645ebSMarian Balakowicz# Verify if it was successful.
95f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
96f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
97f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),)
98f9328639SMarian Balakowicz
99f9328639SMarian BalakowiczOBJTREE		:= $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
100f9328639SMarian BalakowiczSRCTREE		:= $(CURDIR)
101f9328639SMarian BalakowiczTOPDIR		:= $(SRCTREE)
102f9328639SMarian BalakowiczLNDIR		:= $(OBJTREE)
103f9328639SMarian Balakowiczexport	TOPDIR SRCTREE OBJTREE
104f9328639SMarian Balakowicz
105f9328639SMarian BalakowiczMKCONFIG	:= $(SRCTREE)/mkconfig
106f9328639SMarian Balakowiczexport MKCONFIG
107f9328639SMarian Balakowicz
108f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
109f9328639SMarian BalakowiczREMOTE_BUILD	:= 1
110f9328639SMarian Balakowiczexport REMOTE_BUILD
111f9328639SMarian Balakowiczendif
112f9328639SMarian Balakowicz
113f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile
114f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for
115f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc.
116f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
117f9328639SMarian Balakowiczobj := $(OBJTREE)/
118f9328639SMarian Balakowiczsrc := $(SRCTREE)/
119f9328639SMarian Balakowiczelse
120f9328639SMarian Balakowiczobj :=
121f9328639SMarian Balakowiczsrc :=
122f9328639SMarian Balakowiczendif
123f9328639SMarian Balakowiczexport obj src
124f9328639SMarian Balakowicz
1255013c09fSWolfgang Denk# Make sure CDPATH settings don't interfere
1265013c09fSWolfgang Denkunexport CDPATH
1275013c09fSWolfgang Denk
128f9328639SMarian Balakowicz#########################################################################
129f9328639SMarian Balakowicz
130f8f9dc98SKumar Galaifeq ($(ARCH),powerpc)
131f8f9dc98SKumar GalaARCH = ppc
132f8f9dc98SKumar Galaendif
133f8f9dc98SKumar Gala
134ae6d1056SWolfgang Denkifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
135f9328639SMarian Balakowicz
1367ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
137ae6d1056SWolfgang Denkinclude $(obj)include/config.mk
1381d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
139f9328639SMarian Balakowicz
1407ebf7443Swdenkifndef CROSS_COMPILE
141a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH))
1427ebf7443SwdenkCROSS_COMPILE =
1437ebf7443Swdenkelse
1447ebf7443Swdenkifeq ($(ARCH),ppc)
14516c8d5e7SWolfgang DenkCROSS_COMPILE = ppc_8xx-
1467ebf7443Swdenkendif
1477ebf7443Swdenkifeq ($(ARCH),arm)
148dc7c9a1aSwdenkCROSS_COMPILE = arm-linux-
1497ebf7443Swdenkendif
1502262cfeeSwdenkifeq ($(ARCH),i386)
1517a8e9bedSwdenkCROSS_COMPILE = i386-linux-
1527a8e9bedSwdenkendif
15343d9616cSwdenkifeq ($(ARCH),mips)
15443d9616cSwdenkCROSS_COMPILE = mips_4KC-
15543d9616cSwdenkendif
1564a551709Swdenkifeq ($(ARCH),nios)
1574a551709SwdenkCROSS_COMPILE = nios-elf-
1584a551709Swdenkendif
1595c952cf0Swdenkifeq ($(ARCH),nios2)
1605c952cf0SwdenkCROSS_COMPILE = nios2-elf-
1615c952cf0Swdenkendif
1624e5ca3ebSwdenkifeq ($(ARCH),m68k)
1634e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
1644e5ca3ebSwdenkendif
165507bbe3eSwdenkifeq ($(ARCH),microblaze)
166507bbe3eSwdenkCROSS_COMPILE = mb-
167507bbe3eSwdenkendif
1680afe519aSWolfgang Denkifeq ($(ARCH),blackfin)
169ef26a08fSAubrey.LiCROSS_COMPILE = bfin-uclinux-
1700afe519aSWolfgang Denkendif
1717b64fef3SWolfgang Denkifeq ($(ARCH),avr32)
1725374b36dSHaavard SkinnemoenCROSS_COMPILE = avr32-linux-
1737b64fef3SWolfgang Denkendif
1740b135cfcSNobuhiro Iwamatsuifeq ($(ARCH),sh)
1750b135cfcSNobuhiro IwamatsuCROSS_COMPILE = sh4-linux-
176c2f02da2SDaniel Hellstromendif
177c2f02da2SDaniel Hellstromifeq ($(ARCH),sparc)
178c2f02da2SDaniel HellstromCROSS_COMPILE = sparc-elf-
179c2f02da2SDaniel Hellstromendif	# sparc
180ae6d1056SWolfgang Denkendif	# HOSTARCH,ARCH
181ae6d1056SWolfgang Denkendif	# CROSS_COMPILE
1827ebf7443Swdenk
1837ebf7443Swdenkexport	CROSS_COMPILE
1847ebf7443Swdenk
18592b197f0SWolfgang Denk# load other configuration
18692b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk
18792b197f0SWolfgang Denk
1887ebf7443Swdenk#########################################################################
1897ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
1907ebf7443Swdenk
1917ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
1922262cfeeSwdenkifeq ($(CPU),i386)
1932262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
1942262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o
1952262cfeeSwdenkendif
1967ebf7443Swdenkifeq ($(CPU),ppc4xx)
1977ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
1987ebf7443Swdenkendif
19942d1f039Swdenkifeq ($(CPU),mpc85xx)
20042d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
20142d1f039Swdenkendif
2027ebf7443Swdenk
203f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS))
204f9328639SMarian Balakowicz
2059fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
206fc9c1727SLuigi 'Comio' MantelliniLIBS += lib_generic/lzma/liblzma.a
2077608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
2087608d75fSKim Phillips	"board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
2097ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
2101d9f4105Swdenkifdef SOC
2111d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
2121d9f4105Swdenkendif
213323bfa8fSStefan Roeseifeq ($(CPU),ixp)
214323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a
215323bfa8fSStefan Roeseendif
2167ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
217518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
21843ea36fbSWilliam Juul	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a
2197ebf7443SwdenkLIBS += net/libnet.a
2207ebf7443SwdenkLIBS += disk/libdisk.a
2210f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a
22233daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a
22357a12720STsiChungLiewLIBS += drivers/dma/libdma.a
224f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a
225080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a
22616b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a
227318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a
2285ce13051SHaavard SkinnemoenLIBS += drivers/mmc/libmmc.a
22959829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a
23059829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a
23159829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a
23259829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a
233*58be3a10SKyungmin ParkLIBS += drivers/mtd/ubi/libubi.a
234d25ce7d2SHaavard SkinnemoenLIBS += drivers/mtd/spi/libspi_flash.a
2358e585f02STsiChung LiewLIBS += drivers/net/libnet.a
23655195773SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/phy/libphy.a
2372439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a
23893a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a
23973646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a
24004a9e118SBen WarrenLIBS += drivers/spi/libspi.a
2417737d5c6SDave Liuifeq ($(CPU),mpc83xx)
2427737d5c6SDave LiuLIBS += drivers/qe/qe.a
2437737d5c6SDave Liuendif
244da9d4610SAndy Flemingifeq ($(CPU),mpc85xx)
245da9d4610SAndy FlemingLIBS += drivers/qe/qe.a
24658e5e9afSKumar GalaLIBS += cpu/mpc8xxx/ddr/libddr.a
2475e981d68SEd SwarthoutTAG_SUBDIRS += cpu/mpc8xxx
24858e5e9afSKumar Galaendif
24958e5e9afSKumar Galaifeq ($(CPU),mpc86xx)
25058e5e9afSKumar GalaLIBS += cpu/mpc8xxx/ddr/libddr.a
2515e981d68SEd SwarthoutTAG_SUBDIRS += cpu/mpc8xxx
252da9d4610SAndy Flemingendif
25359829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a
2548e585f02STsiChung LiewLIBS += drivers/serial/libserial.a
25559829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a
25659829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a
2577ebf7443SwdenkLIBS += common/libcommon.a
2587651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a
259500856ebSRafal JaworowskiLIBS += api/libapi.a
2602d2b994aSYuri TikhonovLIBS += post/libpost.a
261f9328639SMarian Balakowicz
262f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS))
263019895a8SStefano Babic.PHONY : $(LIBS) $(VERSION_FILE)
264a8c7c708Swdenk
265de109d90SWolfgang DenkLIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
266de109d90SWolfgang DenkLIBBOARD := $(addprefix $(obj),$(LIBBOARD))
267de109d90SWolfgang Denk
2684f7cb08eSwdenk# Add GCC lib
2691a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
2703d3befa7Swdenk
271a8c7c708Swdenk# The "tools" are needed early, so put this first
272a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
273a8c7c708SwdenkSUBDIRS	= tools \
2740dc1fc22SRafal Jaworowski	  examples \
2750dc1fc22SRafal Jaworowski	  api_examples
276500856ebSRafal Jaworowski
277b028f715Swdenk.PHONY : $(SUBDIRS)
278a8c7c708Swdenk
279887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y)
280887e2ec9SStefan RoeseNAND_SPL = nand_spl
281887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin
282887e2ec9SStefan Roeseendif
283887e2ec9SStefan Roese
284751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y)
285751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl
286751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin
287751b9b51SKyungmin Parkendif
288751b9b51SKyungmin Park
289f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS))
290de109d90SWolfgang Denk__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
291f9328639SMarian Balakowicz
2927ebf7443Swdenk#########################################################################
293bdccc4feSwdenk#########################################################################
2947ebf7443Swdenk
295751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
29694a91e24SMike Frysingerifeq ($(ARCH),blackfin)
29794a91e24SMike FrysingerALL += $(obj)u-boot.ldr
29894a91e24SMike Frysingerendif
2997ebf7443Swdenk
300bdccc4feSwdenkall:		$(ALL)
3017ebf7443Swdenk
302f9328639SMarian Balakowicz$(obj)u-boot.hex:	$(obj)u-boot
3036310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
3046310eb9dSwdenk
305f9328639SMarian Balakowicz$(obj)u-boot.srec:	$(obj)u-boot
3060817d688SRicardo Ribalda Delgado		$(OBJCOPY) -O srec $< $@
3077ebf7443Swdenk
308f9328639SMarian Balakowicz$(obj)u-boot.bin:	$(obj)u-boot
3097ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
3107ebf7443Swdenk
31194a91e24SMike Frysinger$(obj)u-boot.ldr:	$(obj)u-boot
31294a91e24SMike Frysinger		$(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
31394a91e24SMike Frysinger
31494a91e24SMike Frysinger$(obj)u-boot.ldr.hex:	$(obj)u-boot.ldr
31594a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
31694a91e24SMike Frysinger
31794a91e24SMike Frysinger$(obj)u-boot.ldr.srec:	$(obj)u-boot.ldr
31894a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
31994a91e24SMike Frysinger
320f9328639SMarian Balakowicz$(obj)u-boot.img:	$(obj)u-boot.bin
321bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
322bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
323881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
324bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
325bdccc4feSwdenk		-d $< $@
326bdccc4feSwdenk
327566a494fSHeiko Schocher$(obj)u-boot.sha1:	$(obj)u-boot.bin
32801159530SHeiko Schocher		$(obj)tools/ubsha1 $(obj)u-boot.bin
329566a494fSHeiko Schocher
330f9328639SMarian Balakowicz$(obj)u-boot.dis:	$(obj)u-boot
3317ebf7443Swdenk		$(OBJDUMP) -d $< > $@
3327ebf7443Swdenk
333de109d90SWolfgang Denk$(obj)u-boot:		depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
334de109d90SWolfgang Denk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
335de109d90SWolfgang Denk		sed  -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
336f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
337f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
338b2184c31Swdenk			-Map u-boot.map -o u-boot
3397ebf7443Swdenk
34088f72527SJohannes Stezenbach$(OBJS):	depend $(obj)include/autoconf.mk
341f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
342f9328639SMarian Balakowicz
34388f72527SJohannes Stezenbach$(LIBS):	depend $(obj)include/autoconf.mk
344f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
345a8c7c708Swdenk
346de109d90SWolfgang Denk$(LIBBOARD):	depend $(LIBS) $(obj)include/autoconf.mk
347de109d90SWolfgang Denk		$(MAKE) -C $(dir $(subst $(obj),,$@))
348de109d90SWolfgang Denk
34988f72527SJohannes Stezenbach$(SUBDIRS):	depend $(obj)include/autoconf.mk
350b028f715Swdenk		$(MAKE) -C $@ all
3517ebf7443Swdenk
352f65c9812SMike Frysinger$(LDSCRIPT):	depend $(obj)include/autoconf.mk
353f65c9812SMike Frysinger		$(MAKE) -C $(dir $@) $(notdir $@)
354f65c9812SMike Frysinger
355dd531aacSWolfgang Denk$(NAND_SPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
3568318fbf8SMarian Balakowicz		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
357887e2ec9SStefan Roese
358dd531aacSWolfgang Denk$(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
3598318fbf8SMarian Balakowicz		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
360887e2ec9SStefan Roese
361751b9b51SKyungmin Park$(ONENAND_IPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
362f2302d44SStefan Roese		$(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
363751b9b51SKyungmin Park
364751b9b51SKyungmin Park$(U_BOOT_ONENAND):	$(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
365751b9b51SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
3661bb707c3SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
367751b9b51SKyungmin Park
368ae6d1056SWolfgang Denk$(VERSION_FILE):
369aa737945SMike Frysinger		@( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
370aa737945SMike Frysinger		 '$(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion $(TOPDIR))' \
371aa737945SMike Frysinger		 ) > $@.tmp
3720ec7a061SMike Frysinger		@cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
373881a87ecSWolfgang Denk
3748f713fdfSdzugdbtools:
375f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
376f9328639SMarian Balakowicz
377f9328639SMarian Balakowiczupdater:
378f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
379f9328639SMarian Balakowicz
380f9328639SMarian Balakowiczenv:
38164b3727bSMarkus Klotzbücher		$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
3828f713fdfSdzu
383ae6d1056SWolfgang Denkdepend dep:	$(VERSION_FILE)
384f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
3857ebf7443Swdenk
386a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include
387a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR)
388a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU)
389a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH)
390a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs
391a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat
392a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos
393a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2
39443ea36fbSWilliam JuulTAG_SUBDIRS += fs/yaffs2
395a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net
396a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk
397a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common
398a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator
399a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block
400a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon
401a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c
402a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input
403a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc
4045ce13051SHaavard SkinnemoenTAG_SUBDIRS += drivers/mmc
405a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd
406a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand
407a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy
408a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand
409d25ce7d2SHaavard SkinnemoenTAG_SUBDIRS += drivers/mtd/spi
410a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net
411a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin
412a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci
413a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia
414a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe
415a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc
416a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial
41704a9e118SBen WarrenTAG_SUBDIRS += drivers/spi
418a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb
419a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video
420a340c325SJean-Christophe PLAGNIOL-VILLARD
421f9328639SMarian Balakowicztags ctags:
422ae6d1056SWolfgang Denk		ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
42388fed9a1SWolfgang Denk						-name '*.[ch]' -print`
4247ebf7443Swdenk
4257ebf7443Swdenketags:
426ae6d1056SWolfgang Denk		etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
42788fed9a1SWolfgang Denk						-name '*.[ch]' -print`
428ffda586fSLi Yangcscope:
429ffda586fSLi Yang		find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
430ffda586fSLi Yang						> cscope.files
431ffda586fSLi Yang		cscope -b -q -k
4327ebf7443Swdenk
433f9328639SMarian Balakowicz$(obj)System.map:	$(obj)u-boot
4347ebf7443Swdenk		@$(NM) $< | \
4357ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
436f9328639SMarian Balakowicz		sort > $(obj)System.map
4377ebf7443Swdenk
4382f155f6cSGrant Likely#
4392f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles)
4402f155f6cSGrant Likely#
4412f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
4422f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when
4432f155f6cSGrant Likely# to regenerate the autoconf.mk file.
4441510b82dSWolfgang Denk$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
4451510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
44616fe7775SMike Frysinger	set -e ; \
447ae6d1056SWolfgang Denk	: Generate the dependancies ; \
4481510b82dSWolfgang Denk	$(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
4491510b82dSWolfgang Denk		-MQ $(obj)include/autoconf.mk include/common.h > $@
4501510b82dSWolfgang Denk
4511510b82dSWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h
4521510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
4531510b82dSWolfgang Denk	set -e ; \
454ae6d1056SWolfgang Denk	: Extract the config macros ; \
4551510b82dSWolfgang Denk	$(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
4561510b82dSWolfgang Denk		sed -n -f tools/scripts/define2mk.sed > $@
4572f155f6cSGrant Likely
458ae6d1056SWolfgang Denksinclude $(obj)include/autoconf.mk.dep
4592f155f6cSGrant Likely
4607ebf7443Swdenk#########################################################################
461ae6d1056SWolfgang Denkelse	# !config.mk
462f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
463f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
464ae6d1056SWolfgang Denk$(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
465ffda586fSLi Yangdep tags ctags etags cscope $(obj)System.map:
4667ebf7443Swdenk	@echo "System not configured - see README" >&2
4677ebf7443Swdenk	@ exit 1
468ae6d1056SWolfgang Denkendif	# config.mk
4697ebf7443Swdenk
4704e53a258SWolfgang Denk.PHONY : CHANGELOG
4714e53a258SWolfgang DenkCHANGELOG:
472b985b5d6SBen Warren	git log --no-merges U-Boot-1_1_5.. | \
473b985b5d6SBen Warren	unexpand -a | sed -e 's/\s\s*$$//' > $@
4744e53a258SWolfgang Denk
4750a823aa2SHarald Welteinclude/license.h: tools/bin2header COPYING
4760a823aa2SHarald Welte	 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
4777ebf7443Swdenk#########################################################################
4787ebf7443Swdenk
4797ebf7443Swdenkunconfig:
480887e2ec9SStefan Roese	@rm -f $(obj)include/config.h $(obj)include/config.mk \
4812f155f6cSGrant Likely		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
4822f155f6cSGrant Likely		$(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
4837ebf7443Swdenk
4847ebf7443Swdenk#========================================================================
4857ebf7443Swdenk# PowerPC
4867ebf7443Swdenk#========================================================================
4870db5bca8Swdenk
4880db5bca8Swdenk#########################################################################
4890db5bca8Swdenk## MPC5xx Systems
4900db5bca8Swdenk#########################################################################
4910db5bca8Swdenk
4925e5f9ed2Swdenkcanmb_config:	unconfig
493f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
4945e5f9ed2Swdenk
4950db5bca8Swdenkcmi_mpc5xx_config:	unconfig
496f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
4970db5bca8Swdenk
498b6e4c403SwdenkPATI_config:		unconfig
499f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
500b6e4c403Swdenk
5017ebf7443Swdenk#########################################################################
502945af8d7Swdenk## MPC5xxx Systems
503945af8d7Swdenk#########################################################################
504a87589daSwdenk
505dafba16eSWolfgang Denkaev_config: unconfig
5064677988cSWolfgang Grandegger	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
507dafba16eSWolfgang Denk
5086ca24c64Sdzu@denx.deBC3450_config:	unconfig
509f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
5106ca24c64Sdzu@denx.de
511699f0512SWolfgang Denkcm5200_config:	unconfig
512699f0512SWolfgang Denk	@$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
513699f0512SWolfgang Denk
5145e4b3361SStefan Roesecpci5200_config:  unconfig
515f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
5165e4b3361SStefan Roese
517a87589daSwdenkhmi1001_config:	unconfig
518f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
519a87589daSwdenk
520e35745bbSwdenkLite5200_config				\
521e35745bbSwdenkLite5200_LOWBOOT_config			\
522e35745bbSwdenkLite5200_LOWBOOT08_config		\
523e35745bbSwdenkicecube_5200_config			\
524e35745bbSwdenkicecube_5200_LOWBOOT_config		\
525e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
526b2001f27Swdenkicecube_5200_DDR_config			\
52779d696fcSwdenkicecube_5200_DDR_LOWBOOT_config		\
52879d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
529e35745bbSwdenkicecube_5100_config:			unconfig
530f9328639SMarian Balakowicz	@mkdir -p $(obj)include
531f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
53217d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
53317d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
534f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
535f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
53617d704ebSwdenk		  fi ; \
537ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5385cf9da48Swdenk		}
5395cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
540f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
5415cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
542ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5435cf9da48Swdenk		}
544b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
545f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
546ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
547b2001f27Swdenk		}
548d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
549f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
550ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
551d4ca31c4Swdenk		}
552a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
553f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
554ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
555945af8d7Swdenk		}
556f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
557945af8d7Swdenk
5582605e90bSHeiko Schocherjupiter_config:	unconfig
5592605e90bSHeiko Schocher	@$(MKCONFIG) jupiter ppc mpc5xxx jupiter
5602605e90bSHeiko Schocher
561138ff60cSwdenkinka4x0_config:	unconfig
562f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
563138ff60cSwdenk
56409e4b0c5SWolfgang Denklite5200b_config	\
565d3832e8fSDomen Puncerlite5200b_PM_config	\
56609e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
567f9328639SMarian Balakowicz	@mkdir -p $(obj)include
568f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
569f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
570ae6d1056SWolfgang Denk	@ $(XECHO) "... DDR memory revision"
571f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
572f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
573d3832e8fSDomen Puncer	@[ -z "$(findstring _PM_,$@)" ] || \
574d3832e8fSDomen Puncer		{ echo "#define CONFIG_LITE5200B_PM"	>>$(obj)include/config.h ; \
575ae6d1056SWolfgang Denk		  $(XECHO) "... with power management (low-power mode) support" ; \
576d3832e8fSDomen Puncer		}
57709e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
578f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
579ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
58009e4b0c5SWolfgang Denk		}
581ae6d1056SWolfgang Denk	@ $(XECHO) "... with MPC5200B processor"
582f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
58309e4b0c5SWolfgang Denk
584f1ee9825SStefan Roesemcc200_config	\
585ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
586ed1cf845SWolfgang Denkmcc200_highboot_config	\
587ed1cf845SWolfgang Denkmcc200_COM12_config	\
588ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
589113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
590113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
591ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
592ed1cf845SWolfgang Denkprs200_config	\
593ed1cf845SWolfgang Denkprs200_DDR_config	\
594ed1cf845SWolfgang Denkprs200_highboot_config	\
595ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
596f9328639SMarian Balakowicz	@mkdir -p $(obj)include
597f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
5984819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
599ae6d1056SWolfgang Denk		{ $(XECHO) "... with lowboot configuration" ; \
600f1ee9825SStefan Roese		}
6014819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
602f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
603ae6d1056SWolfgang Denk		  $(XECHO) "... with highboot configuration" ; \
6044819fad9SWolfgang Denk		}
6054819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
606ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
607ed1cf845SWolfgang Denk		  then \
608ae6d1056SWolfgang Denk			$(XECHO) "... with DDR" ; \
609ed1cf845SWolfgang Denk		  else \
610ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
611ed1cf845SWolfgang Denk			then \
612ae6d1056SWolfgang Denk				$(XECHO) "... with DDR" ; \
613ed1cf845SWolfgang Denk			else \
614f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
615ae6d1056SWolfgang Denk				$(XECHO) "... with SDRAM" ; \
616ed1cf845SWolfgang Denk			fi; \
617ed1cf845SWolfgang Denk		  fi; \
6184819fad9SWolfgang Denk		}
6194819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
620f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
621ae6d1056SWolfgang Denk		  $(XECHO) "... with SDRAM" ; \
6224819fad9SWolfgang Denk		}
623463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
624f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
625ae6d1056SWolfgang Denk		  $(XECHO) "... with console on COM12" ; \
626463764c8SWolfgang Denk		}
627ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
628f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"	>>$(obj)include/config.h ;\
629ed1cf845SWolfgang Denk		}
630f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
63186ea5f93SWolfgang Denk
6328b7d1f0aSStefan Roesemecp5200_config:  unconfig
633ae6d1056SWolfgang Denk	@$(MKCONFIG) mecp5200  ppc mpc5xxx mecp5200 esd
6348b7d1f0aSStefan Roese
635699f0512SWolfgang Denkmotionpro_config:	unconfig
636699f0512SWolfgang Denk	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
637699f0512SWolfgang Denk
638258c37b1SHeiko Schochermucmc52_config:		unconfig
639258c37b1SHeiko Schocher	@$(MKCONFIG) mucmc52 ppc mpc5xxx mucmc52
640258c37b1SHeiko Schocher
6416341d9d7SHeiko Schochermunices_config:	unconfig
642ae6d1056SWolfgang Denk	@$(MKCONFIG) munices ppc mpc5xxx munices
6436341d9d7SHeiko Schocher
644699f0512SWolfgang DenkMVBC_P_config: unconfig
645699f0512SWolfgang Denk	@mkdir -p $(obj)include
646699f0512SWolfgang Denk	@mkdir -p $(obj)board/mvbc_p
647699f0512SWolfgang Denk	@ >$(obj)include/config.h
648699f0512SWolfgang Denk	@[ -z "$(findstring MVBC_P,$@)" ] || \
649699f0512SWolfgang Denk	{   	echo "#define CONFIG_MVBC_P" 	>>$(obj)include/config.h; }
650699f0512SWolfgang Denk	@$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
651699f0512SWolfgang Denk
65291c82076SJean-Christophe PLAGNIOL-VILLARDo2dnt_config:	unconfig
653f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
654df04a3dfSWolfgang Denk
6555e4b3361SStefan Roesepf5200_config:	unconfig
656f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
6575e4b3361SStefan Roese
65889394047SwdenkPM520_config \
65989394047SwdenkPM520_DDR_config \
66089394047SwdenkPM520_ROMBOOT_config \
66189394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
662f9328639SMarian Balakowicz	@mkdir -p $(obj)include
66389394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
664f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
665ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
66689394047Swdenk		}
66789394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
668f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
669ae6d1056SWolfgang Denk		  $(XECHO) "... booting from 8-bit flash" ; \
67089394047Swdenk		}
671f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
67289394047Swdenk
6736624b687SWolfgang Denksmmaco4_config: unconfig
6744677988cSWolfgang Grandegger	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
6759cdc8386SWolfgang Denk
6769cdc8386SWolfgang Denkspieval_config:	unconfig
6774677988cSWolfgang Grandegger	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
6789cdc8386SWolfgang Denk
67945a212c4SWolfgang DenkTB5200_B_config \
680b87dfd28SWolfgang DenkTB5200_config:	unconfig
681f9328639SMarian Balakowicz	@mkdir -p $(obj)include
68245a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
683f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
684ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200B processor" ; \
68545a212c4SWolfgang Denk		}
6864677988cSWolfgang Grandegger	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
687b87dfd28SWolfgang Denk
688d4ca31c4SwdenkMINI5200_config	\
689d4ca31c4SwdenkEVAL5200_config	\
690d4ca31c4SwdenkTOP5200_config:	unconfig
691f9328639SMarian Balakowicz	@mkdir -p $(obj)include
692f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
693f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
694d4ca31c4Swdenk
6956c7a1408SwdenkTotal5100_config		\
6966c7a1408SwdenkTotal5200_config		\
6976c7a1408SwdenkTotal5200_lowboot_config	\
6986c7a1408SwdenkTotal5200_Rev2_config		\
6996c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
700f9328639SMarian Balakowicz	@mkdir -p $(obj)include
701f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
7026c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
703f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
704ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
7056c7a1408Swdenk		}
7066c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
707f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
708ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
7096c7a1408Swdenk		}
7106c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
711f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
712ae6d1056SWolfgang Denk		  $(XECHO) "... revision 1 board" ; \
7136c7a1408Swdenk		}
7146c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
715f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
716ae6d1056SWolfgang Denk		  $(XECHO) "... revision 2 board" ; \
7176c7a1408Swdenk		}
7186c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
719f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
720ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
7216c7a1408Swdenk		}
722f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
7236c7a1408Swdenk
7245196a7a0SWolfgang Denkcam5200_config \
725d9384de2SMarian Balakowiczcam5200_niosflash_config \
7265196a7a0SWolfgang Denkfo300_config \
7275196a7a0SWolfgang DenkMiniFAP_config \
7285078cce8SWolfgang DenkTQM5200S_config \
7295078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
7305196a7a0SWolfgang DenkTQM5200_B_config \
7315196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
7325196a7a0SWolfgang DenkTQM5200_config	\
7335196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
734f9328639SMarian Balakowicz	@mkdir -p $(obj)include
7354677988cSWolfgang Grandegger	@mkdir -p $(obj)board/tqc/tqm5200
736135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
737f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
738f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
739f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
740ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200S on Cam5200" ; \
7415078cce8SWolfgang Denk		}
742d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
743d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
744ae6d1056SWolfgang Denk		  $(XECHO) "... with NIOS flash driver" ; \
745d9384de2SMarian Balakowicz		}
7466d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
747f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
748ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200 on FO300" ; \
7496d3bc9b8SMarian Balakowicz		}
750cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
751f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
752ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200_AC on MiniFAP" ; \
753978b1096SWolfgang Denk		}
754cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
755f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
756ae6d1056SWolfgang Denk		  $(XECHO) "... on a STK52XX.100 base board" ; \
75756523f12Swdenk		}
7585078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
759f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
7605078cce8SWolfgang Denk		}
7615078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
762f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
763f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
76445a212c4SWolfgang Denk		}
765978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
766f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
767978b1096SWolfgang Denk		}
7684677988cSWolfgang Grandegger	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
769699f0512SWolfgang Denk
7706dedf3d4SHeiko Schocheruc101_config:		unconfig
7716dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
77253d4a498SBartlomiej Sieka
773699f0512SWolfgang Denkv38b_config: unconfig
774699f0512SWolfgang Denk	@$(MKCONFIG) -a v38b ppc mpc5xxx v38b
77556523f12Swdenk
776945af8d7Swdenk#########################################################################
7778993e54bSRafal Jaworowski## MPC512x Systems
7788993e54bSRafal Jaworowski#########################################################################
779699f0512SWolfgang Denk
7805f91db7fSJohn Rigbyads5121_config \
781f31c49dbSMartha Marxads5121_rev2_config	\
7825f91db7fSJohn Rigby	: unconfig
783210ed200SWolfgang Denk	@mkdir -p $(obj)include
784f31c49dbSMartha Marx	@if [ "$(findstring rev2,$@)" ] ; then \
785f31c49dbSMartha Marx		echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
7865f91db7fSJohn Rigby	fi
7875f91db7fSJohn Rigby	@$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
7888993e54bSRafal Jaworowski
7898993e54bSRafal Jaworowski
7908993e54bSRafal Jaworowski#########################################################################
7917ebf7443Swdenk## MPC8xx Systems
7927ebf7443Swdenk#########################################################################
7937ebf7443Swdenk
7942d24a3a7SwdenkAdder_config	\
7952d24a3a7SwdenkAdder87x_config \
79626238132SwdenkAdderII_config	\
7972d24a3a7Swdenk	:		unconfig
798f9328639SMarian Balakowicz	@mkdir -p $(obj)include
79926238132Swdenk	$(if $(findstring AdderII,$@), \
800f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
801f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
8022d24a3a7Swdenk
80316c8d5e7SWolfgang DenkAdderUSB_config:	unconfig
80491c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
80516c8d5e7SWolfgang Denk
806180d3f74SwdenkADS860_config	  \
807180d3f74SwdenkFADS823_config	  \
808180d3f74SwdenkFADS850SAR_config \
809180d3f74SwdenkMPC86xADS_config  \
8101114257cSwdenkMPC885ADS_config  \
811180d3f74SwdenkFADS860T_config:	unconfig
812f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
8137ebf7443Swdenk
8147ebf7443SwdenkAMX860_config	:	unconfig
815f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
8167ebf7443Swdenk
8177ebf7443Swdenkc2mon_config:		unconfig
818f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
8197ebf7443Swdenk
8207ebf7443SwdenkCCM_config:		unconfig
821f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
8227ebf7443Swdenk
8237ebf7443Swdenkcogent_mpc8xx_config:	unconfig
824f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
8257ebf7443Swdenk
8263bac3513SwdenkELPT860_config:		unconfig
827f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
8283bac3513Swdenk
82984c960ceSWolfgang DenkEP88x_config:		unconfig
830f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
83184c960ceSWolfgang Denk
8327ebf7443SwdenkESTEEM192E_config:	unconfig
833f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
8347ebf7443Swdenk
8357ebf7443SwdenkETX094_config	:	unconfig
836f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
8377ebf7443Swdenk
8387ebf7443SwdenkFLAGADM_config:	unconfig
839f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
8407ebf7443Swdenk
8417aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
8427aa78614Swdenk
8437aa78614SwdenkGEN860T_SC_config	\
8447ebf7443SwdenkGEN860T_config: unconfig
845f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8467aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
847f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
848ae6d1056SWolfgang Denk		  $(XECHO) "With reduced H/W feature set (SC)..." ; \
8497aa78614Swdenk		}
850f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
8517ebf7443Swdenk
8527ebf7443SwdenkGENIETV_config:	unconfig
853f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
8547ebf7443Swdenk
8557ebf7443SwdenkGTH_config:	unconfig
856f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
8577ebf7443Swdenk
8587ebf7443Swdenkhermes_config	:	unconfig
859f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
8607ebf7443Swdenk
861c40b2956SwdenkHMI10_config	:	unconfig
8624677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
863c40b2956Swdenk
8647ebf7443SwdenkIAD210_config: unconfig
865f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
8667ebf7443Swdenk
8677ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
8687ebf7443Swdenk
8697ebf7443SwdenkICU862_100MHz_config	\
8707ebf7443SwdenkICU862_config: unconfig
871f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8727ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
873f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
874ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
8757ebf7443Swdenk		}
876f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
8777ebf7443Swdenk
8787ebf7443SwdenkIP860_config	:	unconfig
879f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
8807ebf7443Swdenk
8817ebf7443SwdenkIVML24_256_config \
8827ebf7443SwdenkIVML24_128_config \
8837ebf7443SwdenkIVML24_config:	unconfig
884f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8857ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
886f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
8877ebf7443Swdenk		 }
8887ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
889f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
8907ebf7443Swdenk		 }
8917ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
892f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
8937ebf7443Swdenk		 }
894f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
8957ebf7443Swdenk
8967ebf7443SwdenkIVMS8_256_config \
8977ebf7443SwdenkIVMS8_128_config \
8987ebf7443SwdenkIVMS8_config:	unconfig
899f9328639SMarian Balakowicz	@mkdir -p $(obj)include
9007ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
901f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
9027ebf7443Swdenk		 }
9037ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
904f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
9057ebf7443Swdenk		 }
9067ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
907f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
9087ebf7443Swdenk		 }
909f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
9107ebf7443Swdenk
91156f94be3SwdenkKUP4K_config	:	unconfig
912f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
9130608e04dSwdenk
9140608e04dSwdenkKUP4X_config	:	unconfig
915f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
91656f94be3Swdenk
9177ebf7443SwdenkLANTEC_config	:	unconfig
918f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
9197ebf7443Swdenk
9207ebf7443Swdenklwmon_config:		unconfig
921f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
9227ebf7443Swdenk
9237ebf7443SwdenkMBX_config	\
9247ebf7443SwdenkMBX860T_config:	unconfig
925f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
9267ebf7443Swdenk
927381e4e63SHeiko Schochermgsuvd_config:		unconfig
92886e9cdf8SHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd keymile
929381e4e63SHeiko Schocher
9307ebf7443SwdenkMHPC_config:		unconfig
931f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
9327ebf7443Swdenk
933993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
934993cad93Swdenk
935993cad93SwdenkNETVIA_V2_config \
9367ebf7443SwdenkNETVIA_config:		unconfig
937f9328639SMarian Balakowicz	@mkdir -p $(obj)include
938993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
939f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
940ae6d1056SWolfgang Denk		  $(XECHO) "... Version 1" ; \
941993cad93Swdenk		 }
942993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
943f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
944ae6d1056SWolfgang Denk		  $(XECHO) "... Version 2" ; \
945993cad93Swdenk		 }
946f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
9477ebf7443Swdenk
948c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
949c26e454dSwdenk
950c26e454dSwdenkNETPHONE_V2_config \
95104a85b3bSwdenkNETPHONE_config:	unconfig
952f9328639SMarian Balakowicz	@mkdir -p $(obj)include
953c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
954f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
955c26e454dSwdenk		 }
956c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
957f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
958c26e454dSwdenk		 }
959f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
96004a85b3bSwdenk
96179fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
96204a85b3bSwdenk
96379fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
96479fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
96579fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
96679fa88f3SwdenkNETTA_SWAPHOOK_config \
96779fa88f3SwdenkNETTA_ISDN_6412_config \
96804a85b3bSwdenkNETTA_ISDN_config \
96979fa88f3SwdenkNETTA_6412_config \
97004a85b3bSwdenkNETTA_config:		unconfig
971f9328639SMarian Balakowicz	@mkdir -p $(obj)include
97279fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
973f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
97404a85b3bSwdenk		 }
97579fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
976f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
97779fa88f3Swdenk		 }
97879fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
979f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
98079fa88f3Swdenk		 }
98179fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
982f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
98379fa88f3Swdenk		 }
98479fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
985f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
98679fa88f3Swdenk		 }
98779fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
988f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
98979fa88f3Swdenk		 }
990f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
99104a85b3bSwdenk
99279fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
99379fa88f3Swdenk
99479fa88f3SwdenkNETTA2_V2_config \
99579fa88f3SwdenkNETTA2_config:		unconfig
996f9328639SMarian Balakowicz	@mkdir -p $(obj)include
99779fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
998f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
99979fa88f3Swdenk		 }
100079fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
1001f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
100279fa88f3Swdenk		 }
1003f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
100479fa88f3Swdenk
1005a367d426Sdzu@denx.deNC650_Rev1_config \
1006a367d426Sdzu@denx.deNC650_Rev2_config \
1007a367d426Sdzu@denx.deCP850_config:	unconfig
1008f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1009a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
1010f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
1011f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1012a367d426Sdzu@denx.de		 }
1013a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
1014f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1015a367d426Sdzu@denx.de		 }
1016a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
1017f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1018a367d426Sdzu@denx.de		 }
1019f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
10207ca202f5Swdenk
10217ebf7443SwdenkNX823_config:		unconfig
1022f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
10237ebf7443Swdenk
10247ebf7443Swdenkpcu_e_config:		unconfig
1025f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
10267ebf7443Swdenk
10273bbc899fSwdenkQS850_config:	unconfig
1028f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10293bbc899fSwdenk
10303bbc899fSwdenkQS823_config:	unconfig
1031f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10323bbc899fSwdenk
10333bbc899fSwdenkQS860T_config:	unconfig
1034f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
10353bbc899fSwdenk
1036da93ed81Swdenkquantum_config:	unconfig
1037f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1038da93ed81Swdenk
10397ebf7443SwdenkR360MPI_config:	unconfig
1040f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
10417ebf7443Swdenk
1042682011ffSwdenkRBC823_config:	unconfig
1043f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1044682011ffSwdenk
10457ebf7443SwdenkRPXClassic_config:	unconfig
1046f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
10477ebf7443Swdenk
10487ebf7443SwdenkRPXlite_config:		unconfig
1049f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
10507ebf7443Swdenk
1051e63c8ee3SwdenkRPXlite_DW_64_config		\
1052e63c8ee3SwdenkRPXlite_DW_LCD_config		\
1053e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
1054e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
1055e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config	\
1056e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
1057e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config	\
1058e63c8ee3SwdenkRPXlite_DW_config:	unconfig
1059f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1060e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
1061f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
1062ae6d1056SWolfgang Denk		  $(XECHO) "... with 64MHz system clock ..."; \
1063e63c8ee3Swdenk		}
1064e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1065f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1066f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1067ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display ..."; \
1068e63c8ee3Swdenk		}
1069e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
10709314cee6SJean-Christophe PLAGNIOL-VILLARD		{ echo "#define  CONFIG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
1071ae6d1056SWolfgang Denk		  $(XECHO) "... with ENV in NVRAM ..."; \
1072e63c8ee3Swdenk		}
1073f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1074e63c8ee3Swdenk
107573a8b27cSwdenkrmu_config:	unconfig
1076f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
107773a8b27cSwdenk
10787ebf7443SwdenkRRvision_config:	unconfig
1079f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
10807ebf7443Swdenk
10817ebf7443SwdenkRRvision_LCD_config:	unconfig
1082f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1083f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1084f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1085f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
10867ebf7443Swdenk
10877ebf7443SwdenkSM850_config	:	unconfig
10884677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
10897ebf7443Swdenk
109091c82076SJean-Christophe PLAGNIOL-VILLARDspc1920_config:		unconfig
1091f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1092b02d0177SMarkus Klotzbuecher
10937ebf7443SwdenkSPD823TS_config:	unconfig
1094f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
10957ebf7443Swdenk
10966bdf4306SWolfgang Denkstxxtc_config:	unconfig
1097f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
10986bdf4306SWolfgang Denk
1099dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
1100f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1101dc7c9a1aSwdenk
11027ebf7443SwdenkSXNI855T_config:	unconfig
1103f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
11047ebf7443Swdenk
1105db2f721fSwdenk# EMK MPC8xx based modules
1106db2f721fSwdenkTOP860_config:		unconfig
1107f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1108db2f721fSwdenk
11097ebf7443Swdenk# Play some tricks for configuration selection
1110e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
1111e9132ea9Swdenk# and only 823 boards may have LCD support
1112e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
11137ebf7443Swdenk
11147ebf7443SwdenkFPS850L_config		\
1115384ae025SwdenkFPS860L_config		\
1116f12e568cSwdenkNSCU_config		\
11177ebf7443SwdenkTQM823L_config		\
11187ebf7443SwdenkTQM823L_LCD_config	\
11197ebf7443SwdenkTQM850L_config		\
11207ebf7443SwdenkTQM855L_config		\
11217ebf7443SwdenkTQM860L_config		\
1122d126bfbdSwdenkTQM862L_config		\
1123ae3af05eSwdenkTQM823M_config		\
1124ae3af05eSwdenkTQM850M_config		\
1125f12e568cSwdenkTQM855M_config		\
1126f12e568cSwdenkTQM860M_config		\
1127f12e568cSwdenkTQM862M_config		\
11288cba090cSWolfgang DenkTQM866M_config		\
1129090eb735SMarkus KlotzbuecherTQM885D_config		\
1130efc6f447SGuennadi LiakhovetskiTK885D_config		\
11318cba090cSWolfgang Denkvirtlab2_config:	unconfig
1132f9328639SMarian Balakowicz	@mkdir -p $(obj)include
11337ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1134f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1135f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1136ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display" ; \
11377ebf7443Swdenk		}
11384677988cSWolfgang Grandegger	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
11397ebf7443Swdenk
11407ebf7443SwdenkTTTech_config:	unconfig
1141f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1142f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1143f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
11444677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
11457ebf7443Swdenk
1146ec0aee7bSwdenkuc100_config	:	unconfig
1147f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1148f7d1572bSwdenk
1149608c9146Swdenkv37_config:	unconfig
1150f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1151f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1152f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1153f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1154608c9146Swdenk
115591e940d9Sdzuwtk_config:	unconfig
1156f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1157f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1158f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
11594677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
116091e940d9Sdzu
11617ebf7443Swdenk#########################################################################
11627ebf7443Swdenk## PPC4xx Systems
11637ebf7443Swdenk#########################################################################
1164e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
11657ebf7443Swdenk
116616c0cc1cSStefan Roeseacadia_config:	unconfig
116716c0cc1cSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
116816c0cc1cSStefan Roese
1169c440bfe6SStefan Roeseacadia_nand_config:	unconfig
117063e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/acadia
117163e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/acadia
1172c440bfe6SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1173c440bfe6SStefan Roese	@$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1174c440bfe6SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1175c440bfe6SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1176c440bfe6SStefan Roese
11777ebf7443SwdenkADCIOP_config:	unconfig
1178f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
11797ebf7443Swdenk
1180899620c2SStefan Roesealpr_config:	unconfig
118135d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1182899620c2SStefan Roese
11837521af1cSWolfgang DenkAP1000_config:unconfig
1184f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
11857521af1cSWolfgang Denk
1186c419d1d6SstroeseAPC405_config:	unconfig
1187f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1188c419d1d6Sstroese
11897ebf7443SwdenkAR405_config:	unconfig
1190f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
11917ebf7443Swdenk
1192549826eaSstroeseASH405_config:	unconfig
1193f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1194549826eaSstroese
11958a316c9bSStefan Roesebamboo_config:	unconfig
1196f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
11978a316c9bSStefan Roese
1198cf959c7dSStefan Roesebamboo_nand_config:	unconfig
119963e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/bamboo
120063e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/bamboo
1201cf959c7dSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1202f3679aa1SStefan Roese	@$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1203cf959c7dSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1204cf959c7dSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1205cf959c7dSStefan Roese
12068a316c9bSStefan Roesebubinga_config:	unconfig
1207f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1208549826eaSstroese
12097ebf7443SwdenkCANBT_config:	unconfig
1210f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
12117ebf7443Swdenk
1212f09f09d3SAdam Graham# Arches, Canyonlands & Glacier use different U-Boot images
1213f09f09d3SAdam Grahamarches_config \
12144c9e8557SStefan Roesecanyonlands_config \
12154c9e8557SStefan Roeseglacier_config:	unconfig
12164c9e8557SStefan Roese	@mkdir -p $(obj)include
12174c9e8557SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
12184c9e8557SStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
12194c9e8557SStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1220c813f1f8SStefan Roese
1221fe7c0db6SStefan Roesecanyonlands_nand_config \
1222fe7c0db6SStefan Roeseglacier_nand_config:	unconfig
122371665ebfSStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/canyonlands
122471665ebfSStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/canyonlands
122571665ebfSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1226fe7c0db6SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1227fe7c0db6SStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
122871665ebfSStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
122971665ebfSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
123071665ebfSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
123171665ebfSStefan Roese
12321d6f9720SwdenkCATcenter_config	\
12331d6f9720SwdenkCATcenter_25_config	\
12341d6f9720SwdenkCATcenter_33_config:	unconfig
1235f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1236f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1237f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
12381d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1239f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1240ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
12411d6f9720Swdenk		}
12421d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1243f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1244ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
12451d6f9720Swdenk		}
1246f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
124710767ccbSwdenk
1248699f0512SWolfgang DenkCMS700_config:	unconfig
1249699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1250699f0512SWolfgang Denk
12517644f16fSStefan RoeseCPCI2DP_config:	unconfig
1252f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
12537644f16fSStefan Roese
1254767f9159SMatthias FuchsCPCI405_config:		unconfig
1255767f9159SMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1256767f9159SMatthias Fuchs
1257549826eaSstroeseCPCI4052_config		\
1258c419d1d6SstroeseCPCI405DT_config	\
1259549826eaSstroeseCPCI405AB_config:	unconfig
1260dd794323SMatthias Fuchs	@mkdir -p $(obj)board/esd/cpci405
1261767f9159SMatthias Fuchs	@echo "TEXT_BASE = 0xFFFC0000" > $(obj)board/esd/cpci405/config.tmp
1262f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
12637ebf7443Swdenk
12647ebf7443SwdenkCPCIISER4_config:	unconfig
1265f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
12667ebf7443Swdenk
12677ebf7443SwdenkCRAYL1_config:	unconfig
1268f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
12697ebf7443Swdenk
1270cd0a9de6Swdenkcsb272_config:	unconfig
1271f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1272cd0a9de6Swdenk
1273aa245090Swdenkcsb472_config:	unconfig
1274f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1275aa245090Swdenk
12767ebf7443SwdenkDASA_SIM_config: unconfig
1277f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
12787ebf7443Swdenk
127972cd5aa7SstroeseDP405_config:	unconfig
1280f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
128172cd5aa7Sstroese
12827ebf7443SwdenkDU405_config:	unconfig
1283f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
12847ebf7443Swdenk
12851a3ac86bSMatthias FuchsDU440_config:	unconfig
12861a3ac86bSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
12871a3ac86bSMatthias Fuchs
12888a316c9bSStefan Roeseebony_config:	unconfig
1289f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
12907ebf7443Swdenk
12917ebf7443SwdenkERIC_config:	unconfig
1292f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
12937ebf7443Swdenk
1294d1cbe85bSwdenkEXBITGEN_config:	unconfig
1295f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1296d1cbe85bSwdenk
12975deb8022SGeorg Schardtfx12mm_flash_config: unconfig
12985deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
12995deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/avnet/fx12mm
13005deb8022SGeorg Schardt	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
13015deb8022SGeorg Schardt		> $(obj)board/avnet/fx12mm/config.tmp
13025deb8022SGeorg Schardt	@echo "TEXT_BASE := 0xFFCB0000" \
13035deb8022SGeorg Schardt		>> $(obj)board/avnet/fx12mm/config.tmp
13045deb8022SGeorg Schardt	@$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
13055deb8022SGeorg Schardt
13065deb8022SGeorg Schardtfx12mm_config: unconfig
13075deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
13085deb8022SGeorg Schardt	@mkdir -p $(obj)include $(obj)board/avnet/fx12mm
13095deb8022SGeorg Schardt	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
13105deb8022SGeorg Schardt		> $(obj)board/avnet/fx12mm/config.tmp
13115deb8022SGeorg Schardt	@echo "TEXT_BASE := 0x03000000" \
13125deb8022SGeorg Schardt		>> $(obj)board/avnet/fx12mm/config.tmp
13135deb8022SGeorg Schardt	@$(MKCONFIG) fx12mm ppc ppc4xx fx12mm avnet
13145deb8022SGeorg Schardt
1315c419d1d6SstroeseG2000_config:	unconfig
1316f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1317c419d1d6Sstroese
1318ac982ea5SNiklaus Gigerhcu4_config:	unconfig
1319b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
132035d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1321ac982ea5SNiklaus Giger
1322ac982ea5SNiklaus Gigerhcu5_config:	unconfig
1323b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
132435d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1325ac982ea5SNiklaus Giger
1326c419d1d6SstroeseHH405_config:	unconfig
1327f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1328c419d1d6Sstroese
132972cd5aa7SstroeseHUB405_config:	unconfig
1330f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
133172cd5aa7Sstroese
1332db01a2eaSwdenkJSE_config:	unconfig
1333f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1334db01a2eaSwdenk
1335b79316f2SStefan RoeseKAREF_config: unconfig
1336f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1337b79316f2SStefan Roese
13384745acaaSStefan Roesekatmai_config:	unconfig
13394745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
13404745acaaSStefan Roese
1341353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR)
1342353f2688SStefan Roesekilauea_config \
1343353f2688SStefan Roesehaleakala_config: unconfig
1344353f2688SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1345566806caSStefan Roese
13463d6cb3b2SStefan Roesekilauea_nand_config \
13473d6cb3b2SStefan Roesehaleakala_nand_config: unconfig
13483d6cb3b2SStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/kilauea
13493d6cb3b2SStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/kilauea
13503d6cb3b2SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
13513d6cb3b2SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
13523d6cb3b2SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
13533d6cb3b2SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
13543d6cb3b2SStefan Roese
1355c591dffeSLarry Johnsonkorat_config:	unconfig
1356c591dffeSLarry Johnson	@$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1357c591dffeSLarry Johnson
13586e7fb6eaSStefan Roeseluan_config:	unconfig
1359f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
13606e7fb6eaSStefan Roese
1361b765ffb7SStefan Roeselwmon5_config:	unconfig
1362b765ffb7SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1363b765ffb7SStefan Roese
1364211ea91aSStefan Roesemakalu_config:	unconfig
1365211ea91aSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1366211ea91aSStefan Roese
1367b05f3543SNiklaus Gigermcu25_config:  unconfig
1368b05f3543SNiklaus Giger	@mkdir -p $(obj)board/netstal/common
1369b05f3543SNiklaus Giger	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1370b05f3543SNiklaus Giger
1371b79316f2SStefan RoeseMETROBOX_config: unconfig
1372f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1373b79316f2SStefan Roese
13747ebf7443SwdenkMIP405_config:	unconfig
1375f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
13767ebf7443Swdenk
1377f3e0de60SwdenkMIP405T_config:	unconfig
1378f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1379f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1380ae6d1056SWolfgang Denk	@$(XECHO) "Enable subset config for MIP405T"
1381f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1382f3e0de60Swdenk
13837ebf7443SwdenkML2_config:	unconfig
1384f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
13857ebf7443Swdenk
1386028ab6b5Swdenkml300_config:	unconfig
1387f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1388028ab6b5Swdenk
138901a00431SRicardo Ribalda Delgadoml507_flash_config: unconfig
1390880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
139101a00431SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ml507
1392880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1393880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ml507/config.tmp
1394880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
1395880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ml507/config.tmp
1396e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
139701a00431SRicardo Ribalda Delgado
1398086511fcSRicardo Ribalda Delgadoml507_config: unconfig
1399880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
140001a00431SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ml507
1401880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1402880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ml507/config.tmp
1403880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000"  \
1404880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ml507/config.tmp
1405e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1406086511fcSRicardo Ribalda Delgado
1407d7b26d58SDirk Eibachneo_config:	unconfig
1408d7b26d58SDirk Eibach	@$(MKCONFIG) $(@:_config=) ppc ppc4xx neo gdsys
1409d7b26d58SDirk Eibach
14108a316c9bSStefan Roeseocotea_config:	unconfig
1411f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
14120e6d798cSwdenk
14137ebf7443SwdenkOCRTC_config		\
14147ebf7443SwdenkORSG_config:	unconfig
1415f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
14167ebf7443Swdenk
14175568e613SStefan Roesep3p440_config:	unconfig
1418f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
14195568e613SStefan Roese
14207ebf7443SwdenkPCI405_config:	unconfig
1421f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
14227ebf7443Swdenk
1423a4c8d138SStefan Roesepcs440ep_config:	unconfig
1424f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1425a4c8d138SStefan Roese
14267ebf7443SwdenkPIP405_config:	unconfig
1427f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
14287ebf7443Swdenk
142972cd5aa7SstroesePLU405_config:	unconfig
1430f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
143172cd5aa7Sstroese
1432549826eaSstroesePMC405_config:	unconfig
1433f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1434549826eaSstroese
14358ba132caSMatthias FuchsPMC440_config:	unconfig
14368ba132caSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
14378ba132caSMatthias Fuchs
1438281e00a3SwdenkPPChameleonEVB_config		\
1439e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1440e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1441e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1442e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1443e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1444e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1445f9328639SMarian Balakowicz	@mkdir -p $(obj)include
14461d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1447f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1448ae6d1056SWolfgang Denk		  $(XECHO) "... BASIC model" ; \
1449fbe4b5cbSwdenk		}
14501d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1451f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1452ae6d1056SWolfgang Denk		  $(XECHO) "... MEDIUM model" ; \
1453fbe4b5cbSwdenk		}
14541d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1455f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1456ae6d1056SWolfgang Denk		  $(XECHO) "... HIGH-END model" ; \
1457fbe4b5cbSwdenk		}
1458e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1459f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1460ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
1461e55ca7e2Swdenk		}
1462e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1463f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1464ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
1465e55ca7e2Swdenk		}
1466f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
146712f34241Swdenk
146873ccb341SGary Jennejohnquad100hd_config:	unconfig
146973ccb341SGary Jennejohn	@$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
147073ccb341SGary Jennejohn
147111188d55SStefan Roeseredwood_config: unconfig
147211188d55SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
147311188d55SStefan Roese
1474430f1b0fSStefan Roesesbc405_config:	unconfig
1475430f1b0fSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1476430f1b0fSStefan Roese
1477699f0512SWolfgang Denksc3_config:unconfig
1478699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1479699f0512SWolfgang Denk
1480430f1b0fSStefan Roesesequoia_config \
1481854bc8daSStefan Roeserainier_config: unconfig
14828318fbf8SMarian Balakowicz	@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 sequoia ppc ppc4xx sequoia amcc
1486854bc8daSStefan Roese
1487430f1b0fSStefan Roesesequoia_nand_config \
1488854bc8daSStefan Roeserainier_nand_config: unconfig
148963e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
149063e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/sequoia
14918318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1492430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1493430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1494430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
14958318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
14968318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1497652a10c0Swdenk
1498d4024bb7SJohn Otkentaihu_config:	unconfig
1499d4024bb7SJohn Otken	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1500d4024bb7SJohn Otken
15015fb692caSStefan Roesetaishan_config:	unconfig
15025fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
15035fb692caSStefan Roese
1504e07f4a80SRicardo Ribalda Delgadov5fx30teval_config: unconfig
1505880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1506e07f4a80SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1507880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1508880f6a5dSRicardo Ribalda Delgado		> $(obj)board/avnet/v5fx30teval/config.tmp
1509880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x03000000" \
1510880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/avnet/v5fx30teval/config.tmp
1511e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1512e07f4a80SRicardo Ribalda Delgado
1513e07f4a80SRicardo Ribalda Delgadov5fx30teval_flash_config: unconfig
1514880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1515e07f4a80SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1516880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
15172bec498eSRicardo Ribalda Delgado		> $(obj)board/avnet/v5fx30teval/config.tmp
1518880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFF1C0000" \
15192bec498eSRicardo Ribalda Delgado		>> $(obj)board/avnet/v5fx30teval/config.tmp
1520e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1521e07f4a80SRicardo Ribalda Delgado
152272cd5aa7SstroeseVOH405_config:	unconfig
1523f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
152472cd5aa7Sstroese
1525c419d1d6SstroeseVOM405_config:	unconfig
1526f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1527c419d1d6Sstroese
15287ebf7443SwdenkW7OLMC_config	\
15297ebf7443SwdenkW7OLMG_config: unconfig
1530f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
15317ebf7443Swdenk
1532430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR)
1533430f1b0fSStefan Roesewalnut_config \
1534430f1b0fSStefan Roesesycamore_config: unconfig
1535430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
15367ebf7443Swdenk
1537c419d1d6SstroeseWUH405_config:	unconfig
1538f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1539c419d1d6Sstroese
15401f4d5326SRicardo Ribalda Delgadoxilinx-ppc405-generic_flash_config: unconfig
15411f4d5326SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
15421f4d5326SRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
15431f4d5326SRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc405-generic/config.tmp
15441f4d5326SRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
15451f4d5326SRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc405-generic/config.tmp
15461f4d5326SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
15471f4d5326SRicardo Ribalda Delgado
15481f4d5326SRicardo Ribalda Delgadoxilinx-ppc405-generic_config: unconfig
15491f4d5326SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
15501f4d5326SRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
15511f4d5326SRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc405-generic/config.tmp
15521f4d5326SRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000" \
15531f4d5326SRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc405-generic/config.tmp
15541f4d5326SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc405-generic ppc ppc4xx ppc405-generic xilinx
15551f4d5326SRicardo Ribalda Delgado
1556e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_flash_config: unconfig
1557880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1558880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1559880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc440-generic/config.tmp
1560880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
1561880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc440-generic/config.tmp
1562e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1563e07f4a80SRicardo Ribalda Delgado
1564e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_config: unconfig
1565880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1566880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1567880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc440-generic/config.tmp
1568880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000" \
1569880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc440-generic/config.tmp
1570e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1571e07f4a80SRicardo Ribalda Delgado
1572ba56f625SwdenkXPEDITE1K_config:	unconfig
1573f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1574ba56f625Swdenk
1575430f1b0fSStefan Roeseyosemite_config \
15768a316c9bSStefan Roeseyellowstone_config: unconfig
1577700200c6SStefan Roese	@mkdir -p $(obj)include
1578430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1579430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
15802aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
15818a316c9bSStefan Roese
15826c5879f3SMarian Balakowiczyucca_config:	unconfig
1583f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
15846c5879f3SMarian Balakowicz
1585779e9751SStefan Roesezeus_config:	unconfig
1586779e9751SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1587779e9751SStefan Roese
15887ebf7443Swdenk#########################################################################
1589983fda83Swdenk## MPC8220 Systems
1590983fda83Swdenk#########################################################################
1591dc17fb6dSWolfgang Denk
1592dc17fb6dSWolfgang DenkAlaska8220_config	\
1593dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1594f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1595983fda83Swdenk
159612b43d51Swdenksorcery_config:		unconfig
1597f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
159812b43d51Swdenk
1599983fda83Swdenk#########################################################################
16007ebf7443Swdenk## MPC824x Systems
16017ebf7443Swdenk#########################################################################
1602efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
16033bac3513Swdenk
16040332990bSwdenkA3000_config: unconfig
1605f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
16060332990bSwdenk
16078e6f1a8eSWolfgang Denkbarco_config: unconfig
1608f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
16098e6f1a8eSWolfgang Denk
16107ebf7443SwdenkBMW_config: unconfig
1611f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
16127ebf7443Swdenk
16133bac3513SwdenkCPC45_config	\
16143bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1615f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1616f9328639SMarian Balakowicz	@cd $(obj)include ;				\
16173bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
16183bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1619ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
16203bac3513Swdenk	else \
16213bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1622ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
16233bac3513Swdenk	fi; \
16243bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
16253bac3513Swdenk
16267ebf7443SwdenkCU824_config: unconfig
1627f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
16287ebf7443Swdenk
16297abf0c58Swdenkdebris_config: unconfig
1630f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
16317abf0c58Swdenk
163280885a9dSwdenkeXalion_config: unconfig
1633f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
163480885a9dSwdenk
1635756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1636f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1637756f586aSwdenk
163853dd6ce4SWolfgang Denkkvme080_config: unconfig
1639f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
164053dd6ce4SWolfgang Denk
164161525f2fSGuennadi Liakhovetski# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
164261525f2fSGuennadi Liakhovetski# time permits.
164361525f2fSGuennadi Liakhovetski#linkstation_HDLAN_config \
164461525f2fSGuennadi Liakhovetski# Remove this line when HDLAN is fixed
164561525f2fSGuennadi Liakhovetskilinkstation_HGLAN_config: unconfig
164661525f2fSGuennadi Liakhovetski	@mkdir -p $(obj)include
164761525f2fSGuennadi Liakhovetski	@case $@ in \
164861525f2fSGuennadi Liakhovetski		*HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
164961525f2fSGuennadi Liakhovetski		*HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
165061525f2fSGuennadi Liakhovetski	esac
165161525f2fSGuennadi Liakhovetski	@$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
165261525f2fSGuennadi Liakhovetski
16537ebf7443SwdenkMOUSSE_config: unconfig
1654f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
16557ebf7443Swdenk
16567ebf7443SwdenkMUSENKI_config: unconfig
1657f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
16587ebf7443Swdenk
1659b4676a25SwdenkMVBLUE_config:	unconfig
1660f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1661b4676a25Swdenk
16627ebf7443SwdenkOXC_config: unconfig
1663f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
16647ebf7443Swdenk
16657ebf7443SwdenkPN62_config: unconfig
1666f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
16677ebf7443Swdenk
16687ebf7443SwdenkSandpoint8240_config: unconfig
1669f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
16707ebf7443Swdenk
16717ebf7443SwdenkSandpoint8245_config: unconfig
1672f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
16737ebf7443Swdenk
1674466b7410Swdenksbc8240_config: unconfig
1675f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1676466b7410Swdenk
1677d1cbe85bSwdenkSL8245_config: unconfig
1678f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1679d1cbe85bSwdenk
16807ebf7443Swdenkutx8245_config: unconfig
1681f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
16827ebf7443Swdenk
16837ebf7443Swdenk#########################################################################
16847ebf7443Swdenk## MPC8260 Systems
16857ebf7443Swdenk#########################################################################
16867ebf7443Swdenk
168754387ac9Swdenkatc_config:	unconfig
1688f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
168954387ac9Swdenk
16907ebf7443Swdenkcogent_mpc8260_config:	unconfig
1691f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
16927ebf7443Swdenk
16937ebf7443SwdenkCPU86_config	\
16947ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1695f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1696f9328639SMarian Balakowicz	@cd $(obj)include ;				\
16977ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
16987ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1699ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
17007ebf7443Swdenk	else \
17017ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1702ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
17037ebf7443Swdenk	fi; \
17047ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
17057ebf7443Swdenk
1706384cc687SwdenkCPU87_config	\
1707384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1708f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1709f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1710384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1711384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1712ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1713384cc687Swdenk	else \
1714384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1715ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1716384cc687Swdenk	fi; \
1717384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1718384cc687Swdenk
1719f901a83bSWolfgang Denkep8248_config	\
1720f901a83bSWolfgang Denkep8248E_config	:	unconfig
1721f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1722f901a83bSWolfgang Denk
17237ebf7443Swdenkep8260_config:	unconfig
1724f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
17257ebf7443Swdenk
17268d4ac794SWolfgang Denkep82xxm_config:	unconfig
172790b1b2d6SGrant Likely	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
17288d4ac794SWolfgang Denk
17297ebf7443Swdenkgw8260_config:	unconfig
1730f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
17317ebf7443Swdenk
17327ebf7443Swdenkhymod_config:	unconfig
1733f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
17347ebf7443Swdenk
17359dd41a7bSwdenkIDS8247_config:	unconfig
1736f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
17379dd41a7bSwdenk
17387ebf7443SwdenkIPHASE4539_config:	unconfig
1739f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
17407ebf7443Swdenk
1741c3c7f861SwdenkISPAN_config		\
1742c3c7f861SwdenkISPAN_REVB_config:	unconfig
1743f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1744c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
17456d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
1746c3c7f861Swdenk	fi
1747f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1748c3c7f861Swdenk
1749ac9db066SHeiko Schochermgcoge_config	:	unconfig
175086e9cdf8SHeiko Schocher	@$(MKCONFIG) mgcoge ppc mpc8260 mgcoge keymile
1751ac9db066SHeiko Schocher
175204a85b3bSwdenkMPC8260ADS_config	\
1753901787d6SwdenkMPC8260ADS_lowboot_config	\
175404a85b3bSwdenkMPC8260ADS_33MHz_config	\
1755901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
175604a85b3bSwdenkMPC8260ADS_40MHz_config	\
1757901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
175804a85b3bSwdenkMPC8272ADS_config	\
1759901787d6SwdenkMPC8272ADS_lowboot_config	\
176004a85b3bSwdenkPQ2FADS_config		\
1761901787d6SwdenkPQ2FADS_lowboot_config		\
176204a85b3bSwdenkPQ2FADS-VR_config	\
1763901787d6SwdenkPQ2FADS-VR_lowboot_config	\
176404a85b3bSwdenkPQ2FADS-ZU_config	\
1765901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
176604a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1767901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
176804a85b3bSwdenk	:		unconfig
1769f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1770b7e24d28SJon Loeliger	@mkdir -p $(obj)board/freescale/mpc8260ads
177104a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
17726d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	@echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \
17736d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	@echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
177404a85b3bSwdenk	$(if $(findstring MHz,$@), \
1775f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
177604a85b3bSwdenk	$(if $(findstring VR,$@), \
1777f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1778901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1779b7e24d28SJon Loeliger		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1780ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
1781901787d6Swdenk		}
1782b7e24d28SJon Loeliger	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
17837ebf7443Swdenk
1784db2f721fSwdenkMPC8266ADS_config:	unconfig
1785aa3511e4SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1786db2f721fSwdenk
1787adf22b66SHeiko Schochermuas3001_dev_config \
1788adf22b66SHeiko Schochermuas3001_config	:	unconfig
1789adf22b66SHeiko Schocher	@mkdir -p $(obj)include
1790adf22b66SHeiko Schocher	@mkdir -p $(obj)board/muas3001
1791adf22b66SHeiko Schocher	@if [ "$(findstring dev,$@)" ] ; then \
1792adf22b66SHeiko Schocher		echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1793adf22b66SHeiko Schocher	fi
1794adf22b66SHeiko Schocher	@$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001
1795adf22b66SHeiko Schocher
1796efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
179710f67017SwdenkPM825_config	\
1798efa329cbSwdenkPM825_ROMBOOT_config	\
1799efa329cbSwdenkPM825_BIGFLASH_config	\
1800efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
18017ebf7443SwdenkPM826_config	\
1802efa329cbSwdenkPM826_ROMBOOT_config	\
1803efa329cbSwdenkPM826_BIGFLASH_config	\
1804efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1805f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1806f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1807efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1808f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
18097ebf7443Swdenk	else \
1810f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1811efa329cbSwdenk	fi
1812efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1813ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1814f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1815f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1816efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1817ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1818f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
18197ebf7443Swdenk		fi; \
1820efa329cbSwdenk	else \
1821ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1822efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1823ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1824f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1825f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1826efa329cbSwdenk		else \
1827f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1828efa329cbSwdenk		fi; \
1829efa329cbSwdenk	fi
1830f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1831efa329cbSwdenk
1832efa329cbSwdenkPM828_config	\
1833efa329cbSwdenkPM828_PCI_config	\
1834efa329cbSwdenkPM828_ROMBOOT_config	\
1835efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1836f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1837f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
183817076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1839f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1840ae6d1056SWolfgang Denk		$(XECHO) "... with PCI enabled" ; \
1841efa329cbSwdenk	fi
1842efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1843ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1844f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1845f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1846efa329cbSwdenk	fi
1847f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
18487ebf7443Swdenk
18497ebf7443Swdenkppmc8260_config:	unconfig
1850f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
18517ebf7443Swdenk
18528b0bfc68SwdenkRattler8248_config	\
18538b0bfc68SwdenkRattler_config:		unconfig
1854f9328639SMarian Balakowicz	@mkdir -p $(obj)include
18558b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1856f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1857f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
18588b0bfc68Swdenk
18597ebf7443SwdenkRPXsuper_config:	unconfig
1860f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
18617ebf7443Swdenk
18627ebf7443Swdenkrsdproto_config:	unconfig
1863f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
18647ebf7443Swdenk
18657ebf7443Swdenksacsng_config:	unconfig
1866f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
18677ebf7443Swdenk
18687ebf7443Swdenksbc8260_config:	unconfig
1869f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
18707ebf7443Swdenk
18717ebf7443SwdenkSCM_config:		unconfig
1872f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
18737ebf7443Swdenk
187427b207fdSwdenkTQM8255_AA_config \
187527b207fdSwdenkTQM8260_AA_config \
187627b207fdSwdenkTQM8260_AB_config \
187727b207fdSwdenkTQM8260_AC_config \
187827b207fdSwdenkTQM8260_AD_config \
187927b207fdSwdenkTQM8260_AE_config \
188027b207fdSwdenkTQM8260_AF_config \
188127b207fdSwdenkTQM8260_AG_config \
188227b207fdSwdenkTQM8260_AH_config \
18831f62bc2dSWolfgang DenkTQM8260_AI_config \
188427b207fdSwdenkTQM8265_AA_config:  unconfig
1885f9328639SMarian Balakowicz	@mkdir -p $(obj)include
188627b207fdSwdenk	@case "$@" in \
188727b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
188827b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
188927b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
189027b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
189127b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
189227b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
189327b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
189427b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
189527b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
18961f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
189727b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
189827b207fdSwdenk	esac; \
189927b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1900f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
190127b207fdSwdenk	fi; \
1902f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
190327b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
19041aaab9bfSWolfgang Denk	if [ "$${CACHE}" = "yes" ] ; then \
1905f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1906ae6d1056SWolfgang Denk		$(XECHO) "... with L2 Cache support" ; \
19077ebf7443Swdenk	else \
1908f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1909ae6d1056SWolfgang Denk		$(XECHO) "... without L2 Cache support" ; \
191027b207fdSwdenk	fi; \
19111aaab9bfSWolfgang Denk	if [ "$${BMODE}" = "60x" ] ; then \
1912f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1913ae6d1056SWolfgang Denk		$(XECHO) "... with 60x Bus Mode" ; \
191427b207fdSwdenk	else \
1915f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
1916ae6d1056SWolfgang Denk		$(XECHO) "... without 60x Bus Mode" ; \
19177ebf7443Swdenk	fi
19184677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
19197ebf7443Swdenk
1920fa230445SHeiko SchocherTQM8272_config: unconfig
19214677988cSWolfgang Grandegger	@$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
1922fa230445SHeiko Schocher
1923ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1924ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1925f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1926f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1927f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1928ba91e26aSwdenk
192954387ac9SwdenkZPC1900_config: unconfig
1930f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
19317aa78614Swdenk
19324e5ca3ebSwdenk#########################################################################
19334e5ca3ebSwdenk## Coldfire
19344e5ca3ebSwdenk#########################################################################
19354e5ca3ebSwdenk
1936a21d0c2cSTsiChung LiewM52277EVB_config \
1937a21d0c2cSTsiChung LiewM52277EVB_spansion_config \
1938a21d0c2cSTsiChung LiewM52277EVB_stmicro_config :	unconfig
1939a21d0c2cSTsiChung Liew	@case "$@" in \
1940a21d0c2cSTsiChung Liew	M52277EVB_config)		FLASH=SPANSION;; \
1941a21d0c2cSTsiChung Liew	M52277EVB_spansion_config)	FLASH=SPANSION;; \
1942a21d0c2cSTsiChung Liew	M52277EVB_stmicro_config)	FLASH=STMICRO;; \
1943a21d0c2cSTsiChung Liew	esac; \
1944a21d0c2cSTsiChung Liew	if [ "$${FLASH}" = "SPANSION" ] ; then \
1945a21d0c2cSTsiChung Liew		echo "#define CONFIG_SYS_SPANSION_BOOT"	>> $(obj)include/config.h ; \
1946a21d0c2cSTsiChung Liew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1947a21d0c2cSTsiChung Liew		cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \
1948a21d0c2cSTsiChung Liew		$(XECHO) "... with SPANSION boot..." ; \
1949a21d0c2cSTsiChung Liew	fi; \
1950a21d0c2cSTsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
1951a21d0c2cSTsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
1952a21d0c2cSTsiChung Liew		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
1953a21d0c2cSTsiChung Liew		echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1954a21d0c2cSTsiChung Liew		cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \
1955a21d0c2cSTsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
1956a21d0c2cSTsiChung Liew	fi
19571552af70STsiChungLiew	@$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
19581552af70STsiChungLiew
19594a442d31STsiChungLiewM5235EVB_config \
19604a442d31STsiChungLiewM5235EVB_Flash16_config \
19614a442d31STsiChungLiewM5235EVB_Flash32_config:	unconfig
19624a442d31STsiChungLiew	@case "$@" in \
19634a442d31STsiChungLiew	M5235EVB_config)		FLASH=16;; \
19644a442d31STsiChungLiew	M5235EVB_Flash16_config)	FLASH=16;; \
19654a442d31STsiChungLiew	M5235EVB_Flash32_config)	FLASH=32;; \
19664a442d31STsiChungLiew	esac; \
19674a442d31STsiChungLiew	if [ "$${FLASH}" != "16" ] ; then \
1968ae6d1056SWolfgang Denk		echo "#define NORFLASH_PS32BIT	1" >> $(obj)include/config.h ; \
19694a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
19704a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
19714a442d31STsiChungLiew	else \
19724a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
19734a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
19744a442d31STsiChungLiew	fi
19754a442d31STsiChungLiew	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
19764a442d31STsiChungLiew
1977a605aacdSTsiChungLiewM5249EVB_config :		unconfig
1978a605aacdSTsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1979a605aacdSTsiChungLiew
19806d33c6acSTsiChung LiewM5253DEMO_config :		unconfig
19816d33c6acSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
19826d33c6acSTsiChung Liew
1983a1436a84STsiChungLiewM5253EVBE_config :		unconfig
1984a1436a84STsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1985a1436a84STsiChungLiew
19867481266eSWolfgang Denkcobra5272_config :		unconfig
1987f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
19887481266eSWolfgang Denk
19894176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
1990f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1991f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1992f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1993f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
19944176c799SWolfgang Denk
19954176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
1996f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1997f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1998f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1999f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
20004176c799SWolfgang Denk
2001daa6e418SBartlomiej Siekaidmr_config :			unconfig
2002daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
2003daa6e418SBartlomiej Sieka
20044176c799SWolfgang DenkM5271EVB_config :		unconfig
2005659e9badSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
20064176c799SWolfgang Denk
20074e5ca3ebSwdenkM5272C3_config :		unconfig
200856df091dSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
20094e5ca3ebSwdenk
2010545c8e0aSMatthew FettkeM5275EVB_config :		unconfig
2011545c8e0aSMatthew Fettke	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
2012545c8e0aSMatthew Fettke
20134e5ca3ebSwdenkM5282EVB_config :		unconfig
201410db3a17STsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
20154e5ca3ebSwdenk
2016536e7dacSTsiChung LiewM53017EVB_config :		unconfig
2017536e7dacSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf532x m53017evb freescale
2018536e7dacSTsiChung Liew
20198e585f02STsiChung LiewM5329AFEE_config \
20208e585f02STsiChung LiewM5329BFEE_config :	unconfig
20218e585f02STsiChung Liew	@case "$@" in \
20228e585f02STsiChung Liew	M5329AFEE_config)	NAND=0;; \
20238e585f02STsiChung Liew	M5329BFEE_config)	NAND=16;; \
20248e585f02STsiChung Liew	esac; \
20258e585f02STsiChung Liew	if [ "$${NAND}" != "0" ] ; then \
2026ab77bc54STsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
20278e585f02STsiChung Liew	fi
20288e585f02STsiChung Liew	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
20298e585f02STsiChung Liew
2030aa5f1f9dSTsiChungLiewM5373EVB_config :	unconfig
2031aa5f1f9dSTsiChungLiew	@case "$@" in \
2032aa5f1f9dSTsiChungLiew	M5373EVB_config)	NAND=16;; \
2033aa5f1f9dSTsiChungLiew	esac; \
2034aa5f1f9dSTsiChungLiew	if [ "$${NAND}" != "0" ] ; then \
2035aa5f1f9dSTsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
2036aa5f1f9dSTsiChungLiew	fi
2037aa5f1f9dSTsiChungLiew	@$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
2038aa5f1f9dSTsiChungLiew
203905316f8eSTsiChung LiewM54451EVB_config \
204005316f8eSTsiChung LiewM54451EVB_spansion_config \
204105316f8eSTsiChung LiewM54451EVB_stmicro_config :	unconfig
204205316f8eSTsiChung Liew	@case "$@" in \
204305316f8eSTsiChung Liew	M54451EVB_config)		FLASH=SPANSION;; \
204405316f8eSTsiChung Liew	M54451EVB_spansion_config)	FLASH=SPANSION;; \
204505316f8eSTsiChung Liew	M54451EVB_stmicro_config)	FLASH=STMICRO;; \
204605316f8eSTsiChung Liew	esac; \
204705316f8eSTsiChung Liew	if [ "$${FLASH}" = "SPANSION" ] ; then \
20486d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_SPANSION_BOOT"	>> $(obj)include/config.h ; \
204905316f8eSTsiChung Liew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
205005316f8eSTsiChung Liew		cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
205105316f8eSTsiChung Liew		$(XECHO) "... with SPANSION boot..." ; \
205205316f8eSTsiChung Liew	fi; \
205305316f8eSTsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
205405316f8eSTsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
20556d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
205605316f8eSTsiChung Liew		echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
205705316f8eSTsiChung Liew		cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
205805316f8eSTsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
205905316f8eSTsiChung Liew	fi; \
20606d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
206105316f8eSTsiChung Liew	@$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
206205316f8eSTsiChung Liew
20638ae158cdSTsiChungLiewM54455EVB_config \
20648ae158cdSTsiChungLiewM54455EVB_atmel_config \
20658ae158cdSTsiChungLiewM54455EVB_intel_config \
20668ae158cdSTsiChungLiewM54455EVB_a33_config \
20678ae158cdSTsiChungLiewM54455EVB_a66_config \
20688ae158cdSTsiChungLiewM54455EVB_i33_config \
20699f751551STsiChung LiewM54455EVB_i66_config \
20709f751551STsiChung LiewM54455EVB_stm33_config :	unconfig
20718ae158cdSTsiChungLiew	@case "$@" in \
20728ae158cdSTsiChungLiew	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
20738ae158cdSTsiChungLiew	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
20748ae158cdSTsiChungLiew	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
20758ae158cdSTsiChungLiew	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
20768ae158cdSTsiChungLiew	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
20778ae158cdSTsiChungLiew	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
20788ae158cdSTsiChungLiew	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
20799f751551STsiChung Liew	M54455EVB_stm33_config)		FLASH=STMICRO; FREQ=33333333;; \
20808ae158cdSTsiChungLiew	esac; \
20811aaab9bfSWolfgang Denk	if [ "$${FLASH}" = "INTEL" ] ; then \
20826d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
2083e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2084e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
2085ae6d1056SWolfgang Denk		$(XECHO) "... with INTEL boot..." ; \
20869f751551STsiChung Liew	fi; \
20879f751551STsiChung Liew	if [ "$${FLASH}" = "ATMEL" ] ; then \
20886d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_ATMEL_BOOT"	>> $(obj)include/config.h ; \
2089e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2090e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2091ae6d1056SWolfgang Denk		$(XECHO) "... with ATMEL boot..." ; \
20928ae158cdSTsiChungLiew	fi; \
20939f751551STsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
20949f751551STsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
20956d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_STMICRO_BOOT"	>> $(obj)include/config.h ; \
20969f751551STsiChung Liew		echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
20979f751551STsiChung Liew		cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
20989f751551STsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
20999f751551STsiChung Liew	fi; \
21006d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
2101ae6d1056SWolfgang Denk	$(XECHO) "... with $${FREQ}Hz input clock"
21028ae158cdSTsiChungLiew	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
21038ae158cdSTsiChungLiew
210457a12720STsiChungLiewM5475AFE_config \
210557a12720STsiChungLiewM5475BFE_config \
210657a12720STsiChungLiewM5475CFE_config \
210757a12720STsiChungLiewM5475DFE_config \
210857a12720STsiChungLiewM5475EFE_config \
210957a12720STsiChungLiewM5475FFE_config \
211057a12720STsiChungLiewM5475GFE_config :	unconfig
211157a12720STsiChungLiew	@case "$@" in \
211257a12720STsiChungLiew	M5475AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
211357a12720STsiChungLiew	M5475BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
211457a12720STsiChungLiew	M5475CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
211557a12720STsiChungLiew	M5475DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
211657a12720STsiChungLiew	M5475EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
211757a12720STsiChungLiew	M5475FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
211857a12720STsiChungLiew	M5475GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
211957a12720STsiChungLiew	esac; \
21206d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BUSCLK	133333333" > $(obj)include/config.h ; \
21216d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
21226d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
212357a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
21246d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
212557a12720STsiChungLiew	fi; \
212657a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
21276d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
212857a12720STsiChungLiew	fi; \
212957a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
21306d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
213157a12720STsiChungLiew	fi; \
213257a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
21336d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
213457a12720STsiChungLiew	fi
213557a12720STsiChungLiew	@$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
213657a12720STsiChungLiew
213757a12720STsiChungLiewM5485AFE_config \
213857a12720STsiChungLiewM5485BFE_config \
213957a12720STsiChungLiewM5485CFE_config \
214057a12720STsiChungLiewM5485DFE_config \
214157a12720STsiChungLiewM5485EFE_config \
214257a12720STsiChungLiewM5485FFE_config \
214357a12720STsiChungLiewM5485GFE_config \
214457a12720STsiChungLiewM5485HFE_config :	unconfig
214557a12720STsiChungLiew	@case "$@" in \
214657a12720STsiChungLiew	M5485AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
214757a12720STsiChungLiew	M5485BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
214857a12720STsiChungLiew	M5485CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
214957a12720STsiChungLiew	M5485DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
215057a12720STsiChungLiew	M5485EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
215157a12720STsiChungLiew	M5485FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
215257a12720STsiChungLiew	M5485GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
21534d264effSTsiChungLiew	M5485HFE_config)	BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
215457a12720STsiChungLiew	esac; \
21556d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BUSCLK	100000000" > $(obj)include/config.h ; \
21566d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
21576d0f6bcfSJean-Christophe PLAGNIOL-VILLARD	echo "#define CONFIG_SYS_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
215857a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
21596d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
216057a12720STsiChungLiew	fi; \
216157a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
21626d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
216357a12720STsiChungLiew	fi; \
216457a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
21656d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
216657a12720STsiChungLiew	fi; \
216757a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
21686d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
216957a12720STsiChungLiew	fi
217057a12720STsiChungLiew	@$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
217157a12720STsiChungLiew
2172699f0512SWolfgang DenkTASREG_config :		unconfig
2173699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2174699f0512SWolfgang Denk
21757ebf7443Swdenk#########################################################################
2176f046ccd1SEran Liberty## MPC83xx Systems
2177f046ccd1SEran Liberty#########################################################################
2178f046ccd1SEran Liberty
21795c5d3242SKim PhillipsMPC8313ERDB_33_config \
2180e4c09508SScott WoodMPC8313ERDB_66_config \
2181e4c09508SScott WoodMPC8313ERDB_NAND_33_config \
2182e4c09508SScott WoodMPC8313ERDB_NAND_66_config: unconfig
2183cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2184e4c09508SScott Wood	@mkdir -p $(obj)board/freescale/mpc8313erdb
2185c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2186ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
21876d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
21885c5d3242SKim Phillips	fi ; \
21895c5d3242SKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2190ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
21916d0f6bcfSJean-Christophe PLAGNIOL-VILLARD		echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
2192e4c09508SScott Wood	fi ; \
2193e4c09508SScott Wood	if [ "$(findstring _NAND_,$@)" ] ; then \
2194e4c09508SScott Wood		$(XECHO) -n "...NAND..." ; \
2195f4e55a49SKim Phillips		echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2196e4c09508SScott Wood		echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
21975c5d3242SKim Phillips	fi ;
2198e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
219964ac1eb5SNick Spence	@if [ "$(findstring _NAND_,$@)" ] ; then \
220064ac1eb5SNick Spence		echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
220164ac1eb5SNick Spence	fi ;
22025c5d3242SKim Phillips
22038bd522ceSDave LiuMPC8315ERDB_config: unconfig
22048bd522ceSDave Liu	@$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
22058bd522ceSDave Liu
22061c274c4eSKim PhillipsMPC8323ERDB_config:	unconfig
22071c274c4eSKim Phillips	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
22081c274c4eSKim Phillips
22094decd84eSKim PhillipsMPC832XEMDS_config \
22104decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
22114decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
2212281df457STony LiMPC832XEMDS_SLAVE_config \
2213281df457STony LiMPC832XEMDS_ATM_config:	unconfig
2214cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2215c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2216ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2217cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
22184decd84eSKim Phillips	fi ; \
22194decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2220ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2221cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2222cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
22234decd84eSKim Phillips	fi ; \
22244decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
2225ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2226cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2227281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
22284decd84eSKim Phillips	fi ; \
22294decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2230ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2231cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2232281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2233281df457STony Li	fi ; \
2234281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2235ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2236281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2237281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
22384decd84eSKim Phillips	fi ;
2239e58fe957SKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2240e6f2e902SMarian Balakowicz
2241991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
2242e58fe957SKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2243991425feSMarian Balakowicz
22447a78f148STimur TabiMPC8349ITX_config \
22457a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
22467a78f148STimur TabiMPC8349ITXGP_config:	unconfig
22477a78f148STimur Tabi	@mkdir -p $(obj)include
2248e21659e3SSam Sparks	@mkdir -p $(obj)board/freescale/mpc8349itx
22497a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
22507a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
2251e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
22527a78f148STimur Tabi	fi
22537a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
2254e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
22557a78f148STimur Tabi	fi
2256e58fe957SKim Phillips	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
22574decd84eSKim Phillips
22585f820439SDave LiuMPC8360EMDS_config \
22595f820439SDave LiuMPC8360EMDS_HOST_33_config \
22605f820439SDave LiuMPC8360EMDS_HOST_66_config \
2261281df457STony LiMPC8360EMDS_SLAVE_config \
2262281df457STony LiMPC8360EMDS_ATM_config: unconfig
2263cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2264c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2265ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2266cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
22675f820439SDave Liu	fi ; \
22685f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2269ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2270cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2271cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
22725f820439SDave Liu	fi ; \
22735f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
2274ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2275cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2276281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
22775f820439SDave Liu	fi ; \
22785f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
2279ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2280cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2281281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2282281df457STony Li	fi ; \
2283281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2284ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2285281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2286281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
22875f820439SDave Liu	fi ;
2288e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
22895f820439SDave Liu
2290fab6f556SAnton VorontsovMPC8360ERDK_33_config \
2291fab6f556SAnton VorontsovMPC8360ERDK_66_config \
229291c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config:	unconfig
2293fab6f556SAnton Vorontsov	@mkdir -p $(obj)include
2294c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2295ae6d1056SWolfgang Denk		$(XECHO) -n "... CLKIN 33MHz " ; \
2296fab6f556SAnton Vorontsov		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2297fab6f556SAnton Vorontsov	fi ;
2298fab6f556SAnton Vorontsov	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2299fab6f556SAnton Vorontsov
230019580e66SDave LiuMPC837XEMDS_config \
230119580e66SDave LiuMPC837XEMDS_HOST_config:	unconfig
230219580e66SDave Liu	@mkdir -p $(obj)include
2303c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2304ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
230519580e66SDave Liu		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
230619580e66SDave Liu	fi ;
230719580e66SDave Liu	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
230819580e66SDave Liu
23095e918a98SKim PhillipsMPC837XERDB_config:	unconfig
23105e918a98SKim Phillips	@$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
23115e918a98SKim Phillips
2312a1293e54SAndre SchwarzMVBLM7_config: unconfig
23131a9eeb78SAndre Schwarz	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2314a1293e54SAndre Schwarz
231591e25769SPaul Gortmakersbc8349_config:		unconfig
231691e25769SPaul Gortmaker	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
231791e25769SPaul Gortmaker
23184decd84eSKim PhillipsTQM834x_config:	unconfig
23194677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
23204decd84eSKim Phillips
23212ad6b513STimur Tabi
2322f046ccd1SEran Liberty#########################################################################
232342d1f039Swdenk## MPC85xx Systems
232442d1f039Swdenk#########################################################################
232542d1f039Swdenk
23267bd6104bSrobert lazarskiATUM8548_config:	unconfig
23277bd6104bSrobert lazarski	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
23287bd6104bSrobert lazarski
23299490a7f1SKumar GalaMPC8536DS_config:       unconfig
23309490a7f1SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8536ds freescale
23319490a7f1SKumar Gala
233242d1f039SwdenkMPC8540ADS_config:	unconfig
2333c2d943ffSKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
233442d1f039Swdenk
2335b0e32949SLunsheng WangMPC8540EVAL_config \
2336b0e32949SLunsheng WangMPC8540EVAL_33_config \
2337b0e32949SLunsheng WangMPC8540EVAL_66_config \
2338b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
2339b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:	  unconfig
2340f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2341c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2342ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2343b0e32949SLunsheng Wang	else \
2344f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2345ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2346b0e32949SLunsheng Wang	fi ; \
2347b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
2348f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2349ae6d1056SWolfgang Denk		$(XECHO) " slave" ; \
2350b0e32949SLunsheng Wang	else \
2351ae6d1056SWolfgang Denk		$(XECHO) " host" ; \
2352b0e32949SLunsheng Wang	fi
2353f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2354b0e32949SLunsheng Wang
235542d1f039SwdenkMPC8560ADS_config:	unconfig
2356870ceac5SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
235742d1f039Swdenk
23587f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \
235903f5c550SwdenkMPC8541CDS_config:	unconfig
23607f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2361c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
23627f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2363ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
23647f3f2bd2SRandy Vinson	fi
2365415a613bSKumar Gala	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
236603f5c550Swdenk
236781f481caSAndy FlemingMPC8544DS_config:	unconfig
236881f481caSAndy Fleming	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
236981f481caSAndy Fleming
23707f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \
2371d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
23727f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2373c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
23747f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2375ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
23767f3f2bd2SRandy Vinson	fi
2377415a613bSKumar Gala	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2378d9b94f28SJon Loeliger
23797f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \
238003f5c550SwdenkMPC8555CDS_config:	unconfig
23817f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2382c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
23837f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2384ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
23857f3f2bd2SRandy Vinson	fi
2386415a613bSKumar Gala	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
23877abf0c58Swdenk
238867431059SAndy FlemingMPC8568MDS_config:	unconfig
2389acbca876SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
239067431059SAndy Fleming
2391129ba616SKumar GalaMPC8572DS_config:       unconfig
2392129ba616SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8572ds freescale
2393129ba616SKumar Gala
2394384cc687SwdenkPM854_config:	unconfig
2395f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2396384cc687Swdenk
2397b20d0032SWolfgang DenkPM856_config:	unconfig
2398f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2399b20d0032SWolfgang Denk
2400c15f3120Swdenksbc8540_config \
2401c15f3120Swdenksbc8540_33_config \
2402c15f3120Swdenksbc8540_66_config:	unconfig
2403f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2404c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2405f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2406ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2407c15f3120Swdenk	else \
2408ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2409c15f3120Swdenk	fi
2410f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2411c15f3120Swdenk
241211c45ebdSJoe Hammansbc8548_config:		unconfig
241311c45ebdSJoe Hamman	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
241411c45ebdSJoe Hamman
2415466b7410Swdenksbc8560_config \
2416466b7410Swdenksbc8560_33_config \
2417466b7410Swdenksbc8560_66_config:	unconfig
2418f9328639SMarian Balakowicz	@mkdir -p $(obj)include
24198b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2420f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2421ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
24228b07a110Swdenk	else \
2423ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
24248b07a110Swdenk	fi
2425f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
24268b07a110Swdenk
24275d108ac8SSergei Poselenovsocrates_config:	unconfig
24285d108ac8SSergei Poselenov	@$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
24295d108ac8SSergei Poselenov
243003f5c550Swdenkstxgp3_config:		unconfig
2431f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
243203f5c550Swdenk
2433ee152983SWolfgang Denkstxssa_config		\
2434ee152983SWolfgang Denkstxssa_4M_config:	unconfig
2435ee152983SWolfgang Denk	@mkdir -p $(obj)include
2436ee152983SWolfgang Denk	@if [ "$(findstring _4M_,$@)" ] ; then \
2437ee152983SWolfgang Denk		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2438ae6d1056SWolfgang Denk		$(XECHO) "... with 4 MiB flash memory" ; \
2439ee152983SWolfgang Denk	fi
2440ee152983SWolfgang Denk	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
244135171dc0SDan Malek
2442d96f41e0SStefan RoeseTQM8540_config		\
2443d96f41e0SStefan RoeseTQM8541_config		\
24441287e0c5SWolfgang GrandeggerTQM8548_config		\
2445d96f41e0SStefan RoeseTQM8555_config		\
2446f5c5ef4aSwdenkTQM8560_config:		unconfig
2447f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2448a889bd27SWolfgang Denk	@CTYPE=$(subst TQM,,$(@:_config=)); \
2449ae6d1056SWolfgang Denk	$(XECHO) "... TQM"$${CTYPE}; \
2450f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2451f9328639SMarian Balakowicz	echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2452f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
245325991353SWolfgang Grandegger	echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h;
24544677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2455f5c5ef4aSwdenk
245642d1f039Swdenk#########################################################################
2457debb7354SJon Loeliger## MPC86xx Systems
2458debb7354SJon Loeliger#########################################################################
2459debb7354SJon Loeliger
24603c89d754SJon LoeligerMPC8610HPCD_config:	unconfig
24613c89d754SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
24623c89d754SJon Loeliger
24638db0400aSBecky BruceMPC8641HPCN_36BIT_config \
2464debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
24658db0400aSBecky Bruce	@mkdir -p $(obj)include
24668db0400aSBecky Bruce	@if [ "$(findstring _36BIT_,$@)" ] ; then \
24678db0400aSBecky Bruce		echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
24688db0400aSBecky Bruce		$(XECHO) "... enabling 36-bit physical addressing." ; \
24698db0400aSBecky Bruce	fi
24708db0400aSBecky Bruce	@$(MKCONFIG) -a MPC8641HPCN ppc mpc86xx mpc8641hpcn freescale
2471debb7354SJon Loeliger
2472c646bba6SJoe Hammansbc8641d_config:	unconfig
247391c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2474debb7354SJon Loeliger
2475debb7354SJon Loeliger#########################################################################
24767ebf7443Swdenk## 74xx/7xx Systems
24777ebf7443Swdenk#########################################################################
24787ebf7443Swdenk
2479c7de829cSwdenkAmigaOneG3SE_config:	unconfig
2480f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2481c7de829cSwdenk
248215647dc7SwdenkBAB7xx_config: unconfig
2483f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
248415647dc7Swdenk
2485c419d1d6SstroeseCPCI750_config:	unconfig
2486f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2487c419d1d6Sstroese
24883a473b2aSwdenkDB64360_config:	unconfig
2489f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
24903a473b2aSwdenk
24913a473b2aSwdenkDB64460_config:	unconfig
2492f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
24933a473b2aSwdenk
249415647dc7SwdenkELPPC_config: unconfig
2495f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
249615647dc7Swdenk
24977ebf7443SwdenkEVB64260_config	\
24987ebf7443SwdenkEVB64260_750CX_config:	unconfig
2499f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
25007ebf7443Swdenk
25014c52783bSroy zangmpc7448hpc2_config:  unconfig
25027f1d846eSJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
25034c52783bSroy zang
250415647dc7SwdenkP3G4_config: unconfig
2505f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
25067ebf7443Swdenk
25071eac2a71SStefan Roesep3m750_config	\
25081eac2a71SStefan Roesep3m7448_config:		unconfig
25091eac2a71SStefan Roese	@mkdir -p $(obj)include
25101eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
25111eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
25121eac2a71SStefan Roese	else \
25131eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
25141eac2a71SStefan Roese	fi
25151eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
25161eac2a71SStefan Roese
25177ebf7443SwdenkPCIPPC2_config \
25187ebf7443SwdenkPCIPPC6_config: unconfig
2519f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
25207ebf7443Swdenk
2521f5e0d039SHeiko Schocherppmc7xx_config: unconfig
2522f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2523f5e0d039SHeiko Schocher
2524699f0512SWolfgang DenkZUMA_config:	unconfig
2525699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2526699f0512SWolfgang Denk
25277ebf7443Swdenk#========================================================================
25287ebf7443Swdenk# ARM
25297ebf7443Swdenk#========================================================================
25307ebf7443Swdenk#########################################################################
25317ebf7443Swdenk## StrongARM Systems
25327ebf7443Swdenk#########################################################################
25337ebf7443Swdenk
2534ea66bc88Swdenkassabet_config	:	unconfig
2535f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2536ea66bc88Swdenk
25377ebf7443Swdenkdnp1110_config	:	unconfig
2538f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
25397ebf7443Swdenk
2540855a496fSwdenkgcplus_config	:	unconfig
2541f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2542855a496fSwdenk
2543855a496fSwdenklart_config	:	unconfig
2544f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
2545855a496fSwdenk
25467ebf7443Swdenkshannon_config	:	unconfig
2547f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
25487ebf7443Swdenk
25497ebf7443Swdenk#########################################################################
25502e5983d2Swdenk## ARM92xT Systems
25517ebf7443Swdenk#########################################################################
25527ebf7443Swdenk
2553a4b46ed6SUlf Samuelsson#########################################################################
2554a4b46ed6SUlf Samuelsson## Atmel AT91RM9200 Systems
2555a4b46ed6SUlf Samuelsson#########################################################################
255620b197c6SStelian Pop
2557a85f9f21Swdenkat91rm9200dk_config	:	unconfig
255865230107SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2559a85f9f21Swdenk
2560a85f9f21Swdenkcmc_pu2_config	:	unconfig
2561f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2562a85f9f21Swdenk
2563645da510SWolfgang Denkcsb637_config	:	unconfig
2564f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2565645da510SWolfgang Denk
2566a4b46ed6SUlf Samuelssonkb9202_config	:	unconfig
2567a4b46ed6SUlf Samuelsson	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2568a4b46ed6SUlf Samuelsson
2569ea8d989fSTimo Tuunainenm501sk_config	:	unconfig
2570ea8d989fSTimo Tuunainen	@$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
257187cb6862SWolfgang Denk
2572699f0512SWolfgang Denkmp2usb_config	:	unconfig
2573699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2574699f0512SWolfgang Denk
2575a4b46ed6SUlf Samuelsson#########################################################################
2576a4b46ed6SUlf Samuelsson## Atmel ARM926EJ-S Systems
2577a4b46ed6SUlf Samuelsson#########################################################################
2578a4b46ed6SUlf Samuelsson
25791079432eSSergey Lapinafeb9260_config:	unconfig
25801079432eSSergey Lapin	@$(MKCONFIG) $(@:_config=) arm arm926ejs afeb9260 NULL at91
25811079432eSSergey Lapin
2582a4b46ed6SUlf Samuelssonat91cap9adk_config	:	unconfig
25838ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2584a4b46ed6SUlf Samuelsson
2585a4b46ed6SUlf Samuelssonat91sam9260ek_config	:	unconfig
25868ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91
2587a4b46ed6SUlf Samuelsson
258828962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9261ek_config	:	unconfig
258928962f5aSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9261ek atmel at91
259028962f5aSJean-Christophe PLAGNIOL-VILLARD
259128962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9263ek_config	:	unconfig
259228962f5aSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9263ek atmel at91
259328962f5aSJean-Christophe PLAGNIOL-VILLARD
259428962f5aSJean-Christophe PLAGNIOL-VILLARDat91sam9rlek_config	:	unconfig
259528962f5aSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9rlek atmel at91
259628962f5aSJean-Christophe PLAGNIOL-VILLARD
259774f4304eSWolfgang Denk########################################################################
259887cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
259987cb6862SWolfgang Denkintegratorap_config	\
260087cb6862SWolfgang Denkap_config		\
260187cb6862SWolfgang Denkap966_config		\
260287cb6862SWolfgang Denkap922_config		\
260387cb6862SWolfgang Denkap922_XA10_config	\
260487cb6862SWolfgang Denkap7_config		\
260587cb6862SWolfgang Denkap720t_config		\
260687cb6862SWolfgang Denkap920t_config		\
260787cb6862SWolfgang Denkap926ejs_config		\
260887cb6862SWolfgang Denkap946es_config: unconfig
260996782c63SWolfgang Denk	@board/integratorap/split_by_variant.sh $@
26103d3befa7Swdenk
261187cb6862SWolfgang Denkintegratorcp_config	\
261287cb6862SWolfgang Denkcp_config		\
261387cb6862SWolfgang Denkcp920t_config		\
261487cb6862SWolfgang Denkcp926ejs_config		\
261587cb6862SWolfgang Denkcp946es_config		\
261687cb6862SWolfgang Denkcp1136_config		\
261787cb6862SWolfgang Denkcp966_config		\
261887cb6862SWolfgang Denkcp922_config		\
261987cb6862SWolfgang Denkcp922_XA10_config	\
262087cb6862SWolfgang Denkcp1026_config: unconfig
262196782c63SWolfgang Denk	@board/integratorcp/split_by_variant.sh $@
262225d6712aSwdenk
2623699f0512SWolfgang Denkdavinci_dvevm_config :	unconfig
262489d51d02SHugo Villeneuve	@$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci
2625699f0512SWolfgang Denk
2626699f0512SWolfgang Denkdavinci_schmoogie_config :	unconfig
2627699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2628699f0512SWolfgang Denk
2629699f0512SWolfgang Denkdavinci_sffsdr_config :	unconfig
2630699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2631699f0512SWolfgang Denk
2632699f0512SWolfgang Denkdavinci_sonata_config :	unconfig
2633699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2634699f0512SWolfgang Denk
2635f832d8a1Swdenklpd7a400_config \
2636f832d8a1Swdenklpd7a404_config:	unconfig
2637f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
26383d3befa7Swdenk
2639281e00a3Swdenkmx1ads_config	:	unconfig
2640f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2641281e00a3Swdenk
2642281e00a3Swdenkmx1fs2_config	:	unconfig
2643f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2644281e00a3Swdenk
2645ac7eb8a3SWolfgang Denknetstar_config:		unconfig
2646f4e7cbfcSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm925t netstar
2647ac7eb8a3SWolfgang Denk
26482e5983d2Swdenkomap1510inn_config :	unconfig
2649f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
26502e5983d2Swdenk
2651a4b46ed6SUlf Samuelssonxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2652a4b46ed6SUlf Samuelsson
265363e73c9aSwdenkomap1610inn_config \
265463e73c9aSwdenkomap1610inn_cs0boot_config \
265563e73c9aSwdenkomap1610inn_cs3boot_config \
26563ff02c27Swdenkomap1610inn_cs_autoboot_config \
265763e73c9aSwdenkomap1610h2_config \
265863e73c9aSwdenkomap1610h2_cs0boot_config \
26593ff02c27Swdenkomap1610h2_cs3boot_config \
26603ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
2661f9328639SMarian Balakowicz	@mkdir -p $(obj)include
266263e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2663cdd917a4SWolfgang Denk		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2664ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
26653ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2666cdd917a4SWolfgang Denk		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2667ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS_AUTO boot"; \
266863e73c9aSwdenk	else \
2669cdd917a4SWolfgang Denk		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2670ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
267163e73c9aSwdenk	fi;
2672f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
26736f21347dSwdenk
2674699f0512SWolfgang Denkomap5912osk_config :	unconfig
2675699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2676699f0512SWolfgang Denk
2677a4b46ed6SUlf Samuelssonxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2678a4b46ed6SUlf Samuelsson
2679a56bd922Swdenkomap730p2_config \
2680a56bd922Swdenkomap730p2_cs0boot_config \
2681a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
2682f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2683a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2684f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2685ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
2686a56bd922Swdenk	else \
2687f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2688ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
2689a56bd922Swdenk	fi;
2690f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2691a56bd922Swdenk
269232cb2c70SWolfgang Denksbc2410x_config: unconfig
2693f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
269432cb2c70SWolfgang Denk
2695281e00a3Swdenkscb9328_config	:	unconfig
2696f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2697281e00a3Swdenk
26987ebf7443Swdenksmdk2400_config	:	unconfig
2699f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
27007ebf7443Swdenk
27017ebf7443Swdenksmdk2410_config	:	unconfig
2702f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
27037ebf7443Swdenk
27042d24a3a7SwdenkSX1_config :		unconfig
2705f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t sx1
27062d24a3a7Swdenk
2707b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
2708a4b46ed6SUlf Samuelssonxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2709a4b46ed6SUlf Samuelsson
271043d9616cSwdenktrab_config \
2711b0639ca3Swdenktrab_bigram_config \
2712b0639ca3Swdenktrab_bigflash_config \
2713f54ebdfaSwdenktrab_old_config:	unconfig
2714f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2715f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
2716b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
2717f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2718f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
2719ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2720b0639ca3Swdenk		}
2721b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
2722f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2723f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2724ae6d1056SWolfgang Denk		  $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2725f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2726b0639ca3Swdenk		}
2727f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
2728f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2729f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2730ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2731f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
273243d9616cSwdenk		}
2733f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
27347ebf7443Swdenk
27351cb8e980SwdenkVCMA9_config	:	unconfig
2736f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
27371cb8e980Swdenk
2738699f0512SWolfgang Denk#########################################################################
273987cb6862SWolfgang Denk# ARM supplied Versatile development boards
2740699f0512SWolfgang Denk#########################################################################
2741699f0512SWolfgang Denk
2742699f0512SWolfgang Denkcm4008_config	:	unconfig
2743699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2744699f0512SWolfgang Denk
2745699f0512SWolfgang Denkcm41xx_config	:	unconfig
2746699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2747699f0512SWolfgang Denk
274887cb6862SWolfgang Denkversatile_config	\
274987cb6862SWolfgang Denkversatileab_config	\
275087cb6862SWolfgang Denkversatilepb_config :	unconfig
275196782c63SWolfgang Denk	@board/versatile/split_by_variant.sh $@
2752074cff0dSwdenk
27533c2b3d45Swdenkvoiceblue_config:	unconfig
27544fedfddfSLadislav Michl	@$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
27553c2b3d45Swdenk
2756074cff0dSwdenk#########################################################################
2757074cff0dSwdenk## S3C44B0 Systems
2758074cff0dSwdenk#########################################################################
2759074cff0dSwdenk
2760074cff0dSwdenkB2_config	:	unconfig
2761f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2762074cff0dSwdenk
27637ebf7443Swdenk#########################################################################
27647ebf7443Swdenk## ARM720T Systems
27657ebf7443Swdenk#########################################################################
27667ebf7443Swdenk
2767c570b2fdSWolfgang Denkarmadillo_config:	unconfig
2768f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2769c570b2fdSWolfgang Denk
27707ebf7443Swdenkep7312_config	:	unconfig
2771f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
27727ebf7443Swdenk
27732d24a3a7Swdenkimpa7_config	:	unconfig
2774f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
27752d24a3a7Swdenk
27762d1a537dSwdenkmodnet50_config :	unconfig
2777f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
27782d1a537dSwdenk
277939539887Swdenkevb4510_config :	unconfig
2780f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
278139539887Swdenk
27826bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
2783b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2784b0d8f5bfSPeter Pearse
2785b0d8f5bfSPeter PearseSMN42_config	:	unconfig
2786b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
27876bd2447eSGary Jennejohn
27887ebf7443Swdenk#########################################################################
278943d9616cSwdenk## XScale Systems
27907ebf7443Swdenk#########################################################################
27917ebf7443Swdenk
2792799891efSMichael Schwingenactux1_config	:	unconfig
2793799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux1
2794799891efSMichael Schwingen
2795799891efSMichael Schwingenactux2_config	:	unconfig
2796799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux2
2797799891efSMichael Schwingen
2798799891efSMichael Schwingenactux3_config	:	unconfig
2799799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux3
2800799891efSMichael Schwingen
2801799891efSMichael Schwingenactux4_config	:	unconfig
2802799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux4
2803799891efSMichael Schwingen
2804fabd46acSwdenkcerf250_config :	unconfig
2805f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
2806fabd46acSwdenk
28077ebf7443Swdenkcradle_config	:	unconfig
2808f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
28097ebf7443Swdenk
28107ebf7443Swdenkcsb226_config	:	unconfig
2811f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
28127ebf7443Swdenk
281391c82076SJean-Christophe PLAGNIOL-VILLARDdelta_config :	unconfig
2814f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
28150be248faSWolfgang Denk
281643d9616cSwdenkinnokom_config	:	unconfig
2817f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
281843d9616cSwdenk
28192d5b561eSwdenkixdp425_config	:	unconfig
2820f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
28212d5b561eSwdenk
2822ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
2823f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2824ba94a1bbSWolfgang Denk
282543d9616cSwdenklubbock_config	:	unconfig
2826f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
282743d9616cSwdenk
28285720df78SHeiko Schocherpleb2_config	:	unconfig
2829f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
28305720df78SHeiko Schocher
283152f52c14Swdenklogodl_config	:	unconfig
2832f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
283352f52c14Swdenk
28349d8d5a5bSStefan Roesepdnb3_config \
28359d8d5a5bSStefan Roesescpu_config:	unconfig
2836cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
28379d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
2838cdd917a4SWolfgang Denk		echo "#define CONFIG_SCPU"	>>$(obj)include/config.h ; \
2839ae6d1056SWolfgang Denk		$(XECHO) "... on SCPU board variant" ; \
28409d8d5a5bSStefan Roese	fi
28419d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2842ba94a1bbSWolfgang Denk
2843f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
2844f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2845f57f70aaSWolfgang Denk
28465e5803e1Sstefano babictrizepsiv_config	:	unconfig
28475e5803e1Sstefano babic	@$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
28485e5803e1Sstefano babic
28493e38691eSwdenkwepep250_config	:	unconfig
2850f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
28513e38691eSwdenk
28524ec3a7f0Swdenkxaeniax_config	:	unconfig
2853f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
28544ec3a7f0Swdenk
2855efa329cbSwdenkxm250_config	:	unconfig
2856f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
2857efa329cbSwdenk
2858ca0e7748Swdenkxsengine_config :	unconfig
2859f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
2860ca0e7748Swdenk
2861e0269579SMarkus Klotzbücherzylonite_config :
2862f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
2863e0269579SMarkus Klotzbücher
28648ed96046Swdenk#########################################################################
28658ed96046Swdenk## ARM1136 Systems
28668ed96046Swdenk#########################################################################
28675ca9881aSPeter Pearse
28685ca9881aSPeter Pearseapollon_config		: unconfig
2869c6fe4dabSWolfgang Denk	@mkdir -p $(obj)include
2870f2302d44SStefan Roese	@mkdir -p $(obj)onenand_ipl/board/apollon
2871751b9b51SKyungmin Park	@echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
28725252ed95SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2873751b9b51SKyungmin Park	@echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
28748ed96046Swdenk
2875caebc95bSSascha Hauerimx31_litekit_config	: unconfig
2876caebc95bSSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2877caebc95bSSascha Hauer
28785ad86216SSascha Hauerimx31_phycore_config	: unconfig
28795ad86216SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
28805ad86216SSascha Hauer
2881b5dc9b30SGuennadi Liakhovetskimx31ads_config		: unconfig
2882f5acb9fdSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
2883b5dc9b30SGuennadi Liakhovetski
2884699f0512SWolfgang Denkomap2420h4_config	: unconfig
2885699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2886699f0512SWolfgang Denk
288711edcfe2SGuennadi Liakhovetski#########################################################################
288811edcfe2SGuennadi Liakhovetski## ARM1176 Systems
288911edcfe2SGuennadi Liakhovetski#########################################################################
289011edcfe2SGuennadi Liakhovetskismdk6400_noUSB_config	\
289111edcfe2SGuennadi Liakhovetskismdk6400_config	:	unconfig
289211edcfe2SGuennadi Liakhovetski	@mkdir -p $(obj)include $(obj)board/samsung/smdk6400
289311edcfe2SGuennadi Liakhovetski	@mkdir -p $(obj)nand_spl/board/samsung/smdk6400
289411edcfe2SGuennadi Liakhovetski	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
289511edcfe2SGuennadi Liakhovetski	@if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then			\
289611edcfe2SGuennadi Liakhovetski		echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
289711edcfe2SGuennadi Liakhovetski		$(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx;		\
289811edcfe2SGuennadi Liakhovetski	else										\
289911edcfe2SGuennadi Liakhovetski		echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
290011edcfe2SGuennadi Liakhovetski		$(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx;	\
290111edcfe2SGuennadi Liakhovetski	fi
290211edcfe2SGuennadi Liakhovetski	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
290311edcfe2SGuennadi Liakhovetski
29042262cfeeSwdenk#========================================================================
29052262cfeeSwdenk# i386
29062262cfeeSwdenk#========================================================================
29072262cfeeSwdenk#########################################################################
29082262cfeeSwdenk## AMD SC520 CDP
29092262cfeeSwdenk#########################################################################
29102262cfeeSwdenksc520_cdp_config	:	unconfig
2911f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
29122262cfeeSwdenk
29137a8e9bedSwdenksc520_spunk_config	:	unconfig
2914f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
29157a8e9bedSwdenk
29167a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
2917f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
29187a8e9bedSwdenk
291943d9616cSwdenk#========================================================================
292043d9616cSwdenk# MIPS
292143d9616cSwdenk#========================================================================
29227ebf7443Swdenk#########################################################################
292343d9616cSwdenk## MIPS32 4Kc
292443d9616cSwdenk#########################################################################
292543d9616cSwdenk
2926e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2927e0ac62d7Swdenk
2928e0ac62d7Swdenkincaip_100MHz_config	\
2929e0ac62d7Swdenkincaip_133MHz_config	\
2930e0ac62d7Swdenkincaip_150MHz_config	\
293143d9616cSwdenkincaip_config: unconfig
2932f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2933e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
2934f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2935ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
2936e0ac62d7Swdenk		}
2937e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
2938f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2939ae6d1056SWolfgang Denk		  $(XECHO) "... with 133MHz system clock" ; \
2940e0ac62d7Swdenk		}
2941e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
2942f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2943ae6d1056SWolfgang Denk		  $(XECHO) "... with 150MHz system clock" ; \
2944e0ac62d7Swdenk		}
2945f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2946e0ac62d7Swdenk
2947f4863a7aSwdenktb0229_config: unconfig
2948f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
2949f4863a7aSwdenk
2950e0ac62d7Swdenk#########################################################################
295169459791Swdenk## MIPS32 AU1X00
295269459791Swdenk#########################################################################
2953699f0512SWolfgang Denk
295469459791Swdenkdbau1000_config		:	unconfig
2955f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2956210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2957f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
295869459791Swdenk
295969459791Swdenkdbau1100_config		:	unconfig
2960f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2961210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2962f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
296369459791Swdenk
296469459791Swdenkdbau1500_config		:	unconfig
2965f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2966210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2967f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
296869459791Swdenk
2969ff36fd85Swdenkdbau1550_config		:	unconfig
2970f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2971210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2972f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2973ff36fd85Swdenk
2974ff36fd85Swdenkdbau1550_el_config	:	unconfig
2975f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2976210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2977f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2978ff36fd85Swdenk
29798a773983SShinya Kuribayashigth2_config		:	unconfig
29808a773983SShinya Kuribayashi	@mkdir -p $(obj)include
29818a773983SShinya Kuribayashi	@echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
29828a773983SShinya Kuribayashi	@$(MKCONFIG) -a gth2 mips mips gth2
29838a773983SShinya Kuribayashi
2984699f0512SWolfgang Denkpb1000_config		:	unconfig
2985699f0512SWolfgang Denk	@mkdir -p $(obj)include
2986699f0512SWolfgang Denk	@echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2987699f0512SWolfgang Denk	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
2988699f0512SWolfgang Denk
29890764c164SVlad Lunguqemu_mips_config	: unconfig
29900764c164SVlad Lungu	@mkdir -p $(obj)include
2991210ed200SWolfgang Denk	@echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
29920764c164SVlad Lungu	@$(MKCONFIG) -a qemu-mips mips mips qemu-mips
29930764c164SVlad Lungu
299469459791Swdenk#########################################################################
2995e0ac62d7Swdenk## MIPS64 5Kc
2996e0ac62d7Swdenk#########################################################################
299743d9616cSwdenk
29983e38691eSwdenkpurple_config :		unconfig
2999f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
300043d9616cSwdenk
30014a551709Swdenk#========================================================================
30024a551709Swdenk# Nios
30034a551709Swdenk#========================================================================
30044a551709Swdenk#########################################################################
30054a551709Swdenk## Nios32
30064a551709Swdenk#########################################################################
30074a551709Swdenk
3008699f0512SWolfgang DenkADNPESC1_DNPEVA2_base_32_config	\
3009699f0512SWolfgang DenkADNPESC1_base_32_config		\
3010699f0512SWolfgang DenkADNPESC1_config: unconfig
3011699f0512SWolfgang Denk	@mkdir -p $(obj)include
3012699f0512SWolfgang Denk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
3013699f0512SWolfgang Denk		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
3014699f0512SWolfgang Denk		  $(XECHO) "... DNP/EVA2 configuration" ; \
3015699f0512SWolfgang Denk		}
3016699f0512SWolfgang Denk	@[ -z "$(findstring _base_32,$@)" ] || \
3017699f0512SWolfgang Denk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3018699f0512SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration" ; \
3019699f0512SWolfgang Denk		}
3020699f0512SWolfgang Denk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
3021699f0512SWolfgang Denk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
3022699f0512SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
3023699f0512SWolfgang Denk		}
3024699f0512SWolfgang Denk	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
3025699f0512SWolfgang Denk
3026c935d3bdSwdenkDK1C20_safe_32_config		\
3027c935d3bdSwdenkDK1C20_standard_32_config	\
30284a551709SwdenkDK1C20_config:	unconfig
3029f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3030c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
3031f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3032ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
3033c935d3bdSwdenk		}
3034c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
3035f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3036ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
3037c935d3bdSwdenk		}
3038c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
3039f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3040ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3041c935d3bdSwdenk		}
3042f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
3043c935d3bdSwdenk
3044c935d3bdSwdenkDK1S10_safe_32_config		\
3045c935d3bdSwdenkDK1S10_standard_32_config	\
3046ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
3047c935d3bdSwdenkDK1S10_config:	unconfig
3048f9328639SMarian Balakowicz	@mkdir -p $(obj)include
3049c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
3050f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
3051ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
3052c935d3bdSwdenk		}
3053c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
3054f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3055ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
3056c935d3bdSwdenk		}
3057ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
3058f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
3059ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
3060ec4c544bSwdenk		}
3061c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
3062f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
3063ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
3064c935d3bdSwdenk		}
3065f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
30664a551709Swdenk
30675c952cf0Swdenk#########################################################################
30685c952cf0Swdenk## Nios-II
30695c952cf0Swdenk#########################################################################
30705c952cf0Swdenk
30719cc83378SScott McNuttEP1C20_config : unconfig
3072f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
30739cc83378SScott McNutt
30749cc83378SScott McNuttEP1S10_config : unconfig
3075f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
30769cc83378SScott McNutt
30779cc83378SScott McNuttEP1S40_config : unconfig
3078f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
30799cc83378SScott McNutt
30805c952cf0SwdenkPK1C20_config : unconfig
3081f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
30825c952cf0Swdenk
30835c952cf0SwdenkPCI5441_config : unconfig
3084f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
30854a551709Swdenk
3086507bbe3eSwdenk#========================================================================
3087507bbe3eSwdenk## Microblaze
3088699f0512SWolfgang Denk#========================================================================
3089507bbe3eSwdenk
3090cfc67116SMichal Simekml401_config:	unconfig
3091cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
3092210ed200SWolfgang Denk	@echo "#define CONFIG_ML401 1" > $(obj)include/config.h
309390b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
3094cfc67116SMichal Simek
3095699f0512SWolfgang Denksuzaku_config:	unconfig
3096699f0512SWolfgang Denk	@mkdir -p $(obj)include
3097699f0512SWolfgang Denk	@echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
3098699f0512SWolfgang Denk	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
3099699f0512SWolfgang Denk
310017980495SMichal Simekxupv2p_config:	unconfig
3101cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
3102210ed200SWolfgang Denk	@echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
310390b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
310417980495SMichal Simek
310560fa72d6SMike Frysinger#========================================================================
310660fa72d6SMike Frysinger# Blackfin
310760fa72d6SMike Frysinger#========================================================================
31080afe519aSWolfgang Denk
310960fa72d6SMike Frysinger# Analog Devices boards
311060fa72d6SMike FrysingerBFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
31110afe519aSWolfgang Denk
311260fa72d6SMike Frysinger$(BFIN_BOARDS:%=%_config)	: unconfig
31139171fc81SMike Frysinger	@$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
311426bf7decSAubrey Li
311560fa72d6SMike Frysinger$(BFIN_BOARDS):
311660fa72d6SMike Frysinger	$(MAKE) $@_config
311760fa72d6SMike Frysinger	$(MAKE)
31180afe519aSWolfgang Denk
31195e3b0bc1SHaavard Skinnemoen#========================================================================
31205e3b0bc1SHaavard Skinnemoen# AVR32
31215e3b0bc1SHaavard Skinnemoen#========================================================================
3122699f0512SWolfgang Denk
3123699f0512SWolfgang Denkatngw100_config	:	unconfig
3124699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
31255e3b0bc1SHaavard Skinnemoen
31265e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
312736f28f8aSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
31285e3b0bc1SHaavard Skinnemoen
3129667568dbSHaavard Skinnemoenatstk1003_config	:	unconfig
3130667568dbSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3131667568dbSHaavard Skinnemoen
313264ff2357SHaavard Skinnemoenatstk1004_config	:	unconfig
313364ff2357SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
31340afe519aSWolfgang Denk
31350a2e4879SHaavard Skinnemoenatstk1006_config	:	unconfig
31360a2e4879SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
31370a2e4879SHaavard Skinnemoen
31380eb5717aSHans-Christian Egtvedtfavr-32-ezkit_config	:	unconfig
31390eb5717aSHans-Christian Egtvedt	@$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
31400eb5717aSHans-Christian Egtvedt
31415c374c9eSJulien Mayhammerhead_config	:	unconfig
31425c374c9eSJulien May	@$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
31435c374c9eSJulien May
314413b50fe3SMark Jacksonmimc200_config		:	unconfig
314513b50fe3SMark Jackson	@$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
314613b50fe3SMark Jackson
3147699f0512SWolfgang Denk#========================================================================
3148699f0512SWolfgang Denk# SH3 (SuperH)
3149699f0512SWolfgang Denk#========================================================================
31507ebf7443Swdenk
315169df3c4dSNobuhiro Iwamatsu#########################################################################
3152c655fad0SNobuhiro Iwamatsu## sh2 (Renesas SuperH)
3153c655fad0SNobuhiro Iwamatsu#########################################################################
3154c655fad0SNobuhiro Iwamatsursk7203_config: unconfig
3155c655fad0SNobuhiro Iwamatsu	@ >include/config.h
3156c655fad0SNobuhiro Iwamatsu	@echo "#define CONFIG_RSK7203 1" >> include/config.h
315751b572a8SNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh2 rsk7203 renesas
3158c655fad0SNobuhiro Iwamatsu
3159c655fad0SNobuhiro Iwamatsu#########################################################################
3160b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH)
3161b2b5e2bbSYoshihiro Shimoda#########################################################################
3162699f0512SWolfgang Denk
31633313e0e2SMark Jonasmpr2_config: unconfig
31643ab4827cSWolfgang Denk	@mkdir -p $(obj)include
31653ab4827cSWolfgang Denk	@echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
31663313e0e2SMark Jonas	@$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
31673313e0e2SMark Jonas
3168b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig
31693ab4827cSWolfgang Denk	@mkdir -p $(obj)include
31703ab4827cSWolfgang Denk	@echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
317191c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3172b2b5e2bbSYoshihiro Shimoda
3173b2b5e2bbSYoshihiro Shimoda#########################################################################
317469df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH)
317569df3c4dSNobuhiro Iwamatsu#########################################################################
3176699f0512SWolfgang Denk
3177699f0512SWolfgang DenkMigoR_config :       unconfig
3178699f0512SWolfgang Denk	@mkdir -p $(obj)include
3179699f0512SWolfgang Denk	@echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
318058453b00SNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh4 MigoR renesas
3181699f0512SWolfgang Denk
318269df3c4dSNobuhiro Iwamatsums7750se_config: unconfig
31833ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3184210ed200SWolfgang Denk	@echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
318591c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
318669df3c4dSNobuhiro Iwamatsu
3187d91ea45dSNobuhiro Iwamatsums7722se_config :	unconfig
31883ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3189210ed200SWolfgang Denk	@echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
319091c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
31917a8e9bedSwdenk
3192699f0512SWolfgang Denkr2dplus_config  :   unconfig
31933ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3194699f0512SWolfgang Denk	@echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3195c1da2a22SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus renesas
3196c2042f59Sgoda.yusuke
3197c133c1fbSYusuke Godar7780mp_config: unconfig
31983ab4827cSWolfgang Denk	@mkdir -p $(obj)include
31993ab4827cSWolfgang Denk	@echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3200acd3e30dSNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp renesas
3201c133c1fbSYusuke Goda
32027faddaecSNobuhiro Iwamatsush7763rdp_config  :   unconfig
32033ab4827cSWolfgang Denk	@mkdir -p $(obj)include
32043ab4827cSWolfgang Denk	@echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
320578385bf2SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp renesas
32067faddaecSNobuhiro Iwamatsu
32070d53a47dSNobuhiro Iwamatsush7785lcr_config  :   unconfig
32080d53a47dSNobuhiro Iwamatsu	@ >include/config.h
32090d53a47dSNobuhiro Iwamatsu	@echo "#define CONFIG_SH7785LCR 1" >> include/config.h
3210c6525d45SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 sh7785lcr renesas
32110d53a47dSNobuhiro Iwamatsu
32126f0da497SNobuhiro Iwamatsuap325rxa_config  :   unconfig
32136f0da497SNobuhiro Iwamatsu	@mkdir -p $(obj)include
32146f0da497SNobuhiro Iwamatsu	@echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
3215f84e6ea2SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa renesas
32166f0da497SNobuhiro Iwamatsu
3217c2f02da2SDaniel Hellstrom#========================================================================
3218c2f02da2SDaniel Hellstrom# SPARC
3219c2f02da2SDaniel Hellstrom#========================================================================
3220699f0512SWolfgang Denk
32211e9a164eSDaniel Hellstrom#########################################################################
32221e9a164eSDaniel Hellstrom## LEON3
32231e9a164eSDaniel Hellstrom#########################################################################
3224c2f02da2SDaniel Hellstrom
322571d7e4c0SDaniel Hellstrom# Gaisler GR-XC3S-1500 board
322671d7e4c0SDaniel Hellstromgr_xc3s_1500_config : unconfig
322771d7e4c0SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
322871d7e4c0SDaniel Hellstrom
32296ed8a43aSDaniel Hellstrom# Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
32306ed8a43aSDaniel Hellstromgr_cpci_ax2000_config : unconfig
32316ed8a43aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
32326ed8a43aSDaniel Hellstrom
32336940383dSDaniel Hellstrom# Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
32346940383dSDaniel Hellstrom# Development board Stratix II edition, FPGA Device EP2S60.
32356940383dSDaniel Hellstromgr_ep2s60_config: unconfig
32366940383dSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
32376940383dSDaniel Hellstrom
3238823edd8aSDaniel Hellstrom# Gaisler LEON3 GRSIM simulator
3239823edd8aSDaniel Hellstromgrsim_config : unconfig
3240823edd8aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3241823edd8aSDaniel Hellstrom
32427ebf7443Swdenk#########################################################################
3243b330990cSDaniel Hellstrom## LEON2
3244b330990cSDaniel Hellstrom#########################################################################
3245b330990cSDaniel Hellstrom
3246ab68f921SDaniel Hellstrom# Gaisler LEON2 GRSIM simulator
3247ab68f921SDaniel Hellstromgrsim_leon2_config : unconfig
3248ab68f921SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3249ab68f921SDaniel Hellstrom
32507ebf7443Swdenk#########################################################################
32517ebf7443Swdenk#########################################################################
32527ebf7443Swdenk#########################################################################
325385ec0bccSwdenk
32543e38691eSwdenkclean:
3255f9301e1cSWolfgang Denk	@rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
3256f9301e1cSWolfgang Denk	       $(obj)examples/hello_world  $(obj)examples/interrupt	  \
3257f9301e1cSWolfgang Denk	       $(obj)examples/mem_to_mem_idma2intr			  \
3258f9301e1cSWolfgang Denk	       $(obj)examples/sched	   $(obj)examples/smc91111_eeprom \
3259f9301e1cSWolfgang Denk	       $(obj)examples/test_burst   $(obj)examples/timer
3260f9301e1cSWolfgang Denk	@rm -f $(obj)tools/bmp_logo	   $(obj)tools/easylogo/easylogo  \
3261f9301e1cSWolfgang Denk	       $(obj)tools/env/{fw_printenv,fw_setenv}			  \
3262f9301e1cSWolfgang Denk	       $(obj)tools/envcrc					  \
3263f9301e1cSWolfgang Denk	       $(obj)tools/gdb/{astest,gdbcont,gdbsend}			  \
3264f9301e1cSWolfgang Denk	       $(obj)tools/gen_eth_addr    $(obj)tools/img2srec		  \
3265f9301e1cSWolfgang Denk	       $(obj)tools/mkimage	   $(obj)tools/mpc86x_clk	  \
3266f9301e1cSWolfgang Denk	       $(obj)tools/ncb		   $(obj)tools/ubsha1
3267f9301e1cSWolfgang Denk	@rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image}	  \
3268f9301e1cSWolfgang Denk	       $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin}	  \
3269f9301e1cSWolfgang Denk	       $(obj)board/trab/trab_fkt   $(obj)board/voiceblue/eeprom   \
3270f9301e1cSWolfgang Denk	       $(obj)board/{integratorap,integratorcp}/u-boot.lds	  \
32719171fc81SMike Frysinger	       $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
32729171fc81SMike Frysinger	       $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3273dc7746d8SWolfgang Denk	@rm -f $(obj)include/bmp_logo.h
3274dc7746d8SWolfgang Denk	@rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
32751bb707c3SKyungmin Park	@rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3276f9301e1cSWolfgang Denk	@rm -f $(obj)api_examples/demo $(VERSION_FILE)
3277ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \
32787ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
32797ebf7443Swdenk		-o -name '*.o'	-o -name '*.a'	\) -print \
32807ebf7443Swdenk		| xargs rm -f
32817ebf7443Swdenk
32827ebf7443Swdenkclobber:	clean
3283ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \( -name .depend \
32844c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
32854c0d4c3bSwdenk		-print0 \
32864c0d4c3bSwdenk		| xargs -0 rm -f
3287ffda586fSLi Yang	@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
32885013c09fSWolfgang Denk		$(obj)cscope.* $(obj)*.*~
3289ae6d1056SWolfgang Denk	@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
32900cf4fd3cSJean-Christophe PLAGNIOL-VILLARD	@rm -f $(obj)tools/{crc32.c,env_embedded.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
329189cdab78SMike Frysinger	@rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
32927e492d82SMarian Balakowicz	@rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
32935013c09fSWolfgang Denk	@rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3294ae6d1056SWolfgang Denk	@rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3295a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3296a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
3297a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)api_examples ] || find $(obj)api_examples -name "*" -type l -print | xargs rm -f
32987ebf7443Swdenk
3299f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
33007ebf7443Swdenkmrproper \
33017ebf7443Swdenkdistclean:	clobber unconfig
3302f9328639SMarian Balakowiczelse
3303f9328639SMarian Balakowiczmrproper \
3304f9328639SMarian Balakowiczdistclean:	clobber unconfig
3305ae6d1056SWolfgang Denk	rm -rf $(obj)*
3306f9328639SMarian Balakowiczendif
33077ebf7443Swdenk
33087ebf7443Swdenkbackup:
33097ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
33107ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
33117ebf7443Swdenk
33127ebf7443Swdenk#########################################################################
3313