xref: /openbmc/u-boot/Makefile (revision 7faddaec)
17ebf7443Swdenk#
2ae6d1056SWolfgang Denk# (C) Copyright 2000-2008
37ebf7443Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
47ebf7443Swdenk#
57ebf7443Swdenk# See file CREDITS for list of people who contributed to this
67ebf7443Swdenk# project.
77ebf7443Swdenk#
87ebf7443Swdenk# This program is free software; you can redistribute it and/or
97ebf7443Swdenk# modify it under the terms of the GNU General Public License as
1045a212c4SWolfgang Denk# published by the Free Software Foundatio; either version 2 of
117ebf7443Swdenk# the License, or (at your option) any later version.
127ebf7443Swdenk#
137ebf7443Swdenk# This program is distributed in the hope that it will be useful,
147ebf7443Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of
157ebf7443Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the
167ebf7443Swdenk# GNU General Public License for more details.
177ebf7443Swdenk#
187ebf7443Swdenk# You should have received a copy of the GNU General Public License
197ebf7443Swdenk# along with this program; if not, write to the Free Software
207ebf7443Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
217ebf7443Swdenk# MA 02111-1307 USA
227ebf7443Swdenk#
237ebf7443Swdenk
24881a87ecSWolfgang DenkVERSION = 1
25754bac48SWolfgang DenkPATCHLEVEL = 3
26fd7531c1SWolfgang DenkSUBLEVEL = 3
27180a90abSWolfgang DenkEXTRAVERSION =
28881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29f9328639SMarian BalakowiczVERSION_FILE = $(obj)include/version_autogenerated.h
30881a87ecSWolfgang Denk
317ebf7443SwdenkHOSTARCH := $(shell uname -m | \
327ebf7443Swdenk	sed -e s/i.86/i386/ \
337ebf7443Swdenk	    -e s/sun4u/sparc64/ \
347ebf7443Swdenk	    -e s/arm.*/arm/ \
357ebf7443Swdenk	    -e s/sa110/arm/ \
367ebf7443Swdenk	    -e s/powerpc/ppc/ \
37a2280646SKumar Gala	    -e s/ppc64/ppc/ \
387ebf7443Swdenk	    -e s/macppc/ppc/)
397ebf7443Swdenk
40f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
417ebf7443Swdenk	    sed -e 's/\(cygwin\).*/cygwin/')
427ebf7443Swdenk
43f9d77ed3SWolfgang Denkexport	HOSTARCH HOSTOS
447ebf7443Swdenk
457ebf7443Swdenk# Deal with colliding definitions from tcsh etc.
467ebf7443SwdenkVENDOR=
477ebf7443Swdenk
487ebf7443Swdenk#########################################################################
49ae6d1056SWolfgang Denk# Allow for silent builds
50ae6d1056SWolfgang Denkifeq (,$(findstring s,$(MAKEFLAGS)))
51ae6d1056SWolfgang DenkXECHO = echo
52ae6d1056SWolfgang Denkelse
53ae6d1056SWolfgang DenkXECHO = :
54ae6d1056SWolfgang Denkendif
55ae6d1056SWolfgang Denk
56ae6d1056SWolfgang Denk#########################################################################
57f9328639SMarian Balakowicz#
58f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external
59f9328639SMarian Balakowicz# directory. Two use cases are supported:
60f9328639SMarian Balakowicz#
61f9328639SMarian Balakowicz# 1) Add O= to the make command line
62f9328639SMarian Balakowicz# 'make O=/tmp/build all'
63f9328639SMarian Balakowicz#
64f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location
65f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
66f9328639SMarian Balakowicz# 'make'
67f9328639SMarian Balakowicz#
68f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script
69f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
70f9328639SMarian Balakowicz# './MAKEALL'
71f9328639SMarian Balakowicz#
72f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable.
73f9328639SMarian Balakowicz#
74f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and
75f9328639SMarian Balakowicz# the object files are placed in the source directory.
76f9328639SMarian Balakowicz#
777ebf7443Swdenk
78f9328639SMarian Balakowiczifdef O
79f9328639SMarian Balakowiczifeq ("$(origin O)", "command line")
80f9328639SMarian BalakowiczBUILD_DIR := $(O)
81f9328639SMarian Balakowiczendif
82f9328639SMarian Balakowiczendif
837ebf7443Swdenk
84f9328639SMarian Balakowiczifneq ($(BUILD_DIR),)
85f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR)
864f0645ebSMarian Balakowicz
874f0645ebSMarian Balakowicz# Attempt to create a output directory.
884f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
894f0645ebSMarian Balakowicz
904f0645ebSMarian Balakowicz# Verify if it was successful.
91f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
92f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
93f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),)
94f9328639SMarian Balakowicz
95f9328639SMarian BalakowiczOBJTREE		:= $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
96f9328639SMarian BalakowiczSRCTREE		:= $(CURDIR)
97f9328639SMarian BalakowiczTOPDIR		:= $(SRCTREE)
98f9328639SMarian BalakowiczLNDIR		:= $(OBJTREE)
99f9328639SMarian Balakowiczexport	TOPDIR SRCTREE OBJTREE
100f9328639SMarian Balakowicz
101f9328639SMarian BalakowiczMKCONFIG	:= $(SRCTREE)/mkconfig
102f9328639SMarian Balakowiczexport MKCONFIG
103f9328639SMarian Balakowicz
104f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
105f9328639SMarian BalakowiczREMOTE_BUILD	:= 1
106f9328639SMarian Balakowiczexport REMOTE_BUILD
107f9328639SMarian Balakowiczendif
108f9328639SMarian Balakowicz
109f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile
110f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for
111f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc.
112f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
113f9328639SMarian Balakowiczobj := $(OBJTREE)/
114f9328639SMarian Balakowiczsrc := $(SRCTREE)/
115f9328639SMarian Balakowiczelse
116f9328639SMarian Balakowiczobj :=
117f9328639SMarian Balakowiczsrc :=
118f9328639SMarian Balakowiczendif
119f9328639SMarian Balakowiczexport obj src
120f9328639SMarian Balakowicz
1215013c09fSWolfgang Denk# Make sure CDPATH settings don't interfere
1225013c09fSWolfgang Denkunexport CDPATH
1235013c09fSWolfgang Denk
124f9328639SMarian Balakowicz#########################################################################
125f9328639SMarian Balakowicz
126f8f9dc98SKumar Galaifeq ($(ARCH),powerpc)
127f8f9dc98SKumar GalaARCH = ppc
128f8f9dc98SKumar Galaendif
129f8f9dc98SKumar Gala
130ae6d1056SWolfgang Denkifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
131f9328639SMarian Balakowicz
1327ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
133ae6d1056SWolfgang Denkinclude $(obj)include/config.mk
1341d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
135f9328639SMarian Balakowicz
1367ebf7443Swdenkifndef CROSS_COMPILE
137a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH))
1387ebf7443SwdenkCROSS_COMPILE =
1397ebf7443Swdenkelse
1407ebf7443Swdenkifeq ($(ARCH),ppc)
14116c8d5e7SWolfgang DenkCROSS_COMPILE = ppc_8xx-
1427ebf7443Swdenkendif
1437ebf7443Swdenkifeq ($(ARCH),arm)
144dc7c9a1aSwdenkCROSS_COMPILE = arm-linux-
1457ebf7443Swdenkendif
1462262cfeeSwdenkifeq ($(ARCH),i386)
1477a8e9bedSwdenkCROSS_COMPILE = i386-linux-
1487a8e9bedSwdenkendif
14943d9616cSwdenkifeq ($(ARCH),mips)
15043d9616cSwdenkCROSS_COMPILE = mips_4KC-
15143d9616cSwdenkendif
1524a551709Swdenkifeq ($(ARCH),nios)
1534a551709SwdenkCROSS_COMPILE = nios-elf-
1544a551709Swdenkendif
1555c952cf0Swdenkifeq ($(ARCH),nios2)
1565c952cf0SwdenkCROSS_COMPILE = nios2-elf-
1575c952cf0Swdenkendif
1584e5ca3ebSwdenkifeq ($(ARCH),m68k)
1594e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
1604e5ca3ebSwdenkendif
161507bbe3eSwdenkifeq ($(ARCH),microblaze)
162507bbe3eSwdenkCROSS_COMPILE = mb-
163507bbe3eSwdenkendif
1640afe519aSWolfgang Denkifeq ($(ARCH),blackfin)
165ef26a08fSAubrey.LiCROSS_COMPILE = bfin-uclinux-
1660afe519aSWolfgang Denkendif
1677b64fef3SWolfgang Denkifeq ($(ARCH),avr32)
1685374b36dSHaavard SkinnemoenCROSS_COMPILE = avr32-linux-
1697b64fef3SWolfgang Denkendif
1700b135cfcSNobuhiro Iwamatsuifeq ($(ARCH),sh)
1710b135cfcSNobuhiro IwamatsuCROSS_COMPILE = sh4-linux-
172c2f02da2SDaniel Hellstromendif
173c2f02da2SDaniel Hellstromifeq ($(ARCH),sparc)
174c2f02da2SDaniel HellstromCROSS_COMPILE = sparc-elf-
175c2f02da2SDaniel Hellstromendif	# sparc
176ae6d1056SWolfgang Denkendif	# HOSTARCH,ARCH
177ae6d1056SWolfgang Denkendif	# CROSS_COMPILE
1787ebf7443Swdenk
1797ebf7443Swdenkexport	CROSS_COMPILE
1807ebf7443Swdenk
18192b197f0SWolfgang Denk# load other configuration
18292b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk
18392b197f0SWolfgang Denk
1847ebf7443Swdenk#########################################################################
1857ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
1867ebf7443Swdenk
1877ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
1882262cfeeSwdenkifeq ($(CPU),i386)
1892262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
1902262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o
1912262cfeeSwdenkendif
1927ebf7443Swdenkifeq ($(CPU),ppc4xx)
1937ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
1947ebf7443Swdenkendif
19542d1f039Swdenkifeq ($(CPU),mpc85xx)
19642d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
19742d1f039Swdenkendif
1987ebf7443Swdenk
199f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS))
200f9328639SMarian Balakowicz
2019fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
2027608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
2037608d75fSKim Phillips	"board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
2047ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
2051d9f4105Swdenkifdef SOC
2061d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
2071d9f4105Swdenkendif
208323bfa8fSStefan Roeseifeq ($(CPU),ixp)
209323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a
210323bfa8fSStefan Roeseendif
2117ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
212518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
213c419d1d6Sstroese	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
2147ebf7443SwdenkLIBS += net/libnet.a
2157ebf7443SwdenkLIBS += disk/libdisk.a
2160f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a
21733daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a
21857a12720STsiChungLiewLIBS += drivers/dma/libdma.a
219f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a
220080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a
22116b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a
222318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a
22359829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a
22459829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a
22559829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a
22659829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a
227d25ce7d2SHaavard SkinnemoenLIBS += drivers/mtd/spi/libspi_flash.a
2288e585f02STsiChung LiewLIBS += drivers/net/libnet.a
2292439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a
23093a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a
23173646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a
23204a9e118SBen WarrenLIBS += drivers/spi/libspi.a
2337737d5c6SDave Liuifeq ($(CPU),mpc83xx)
2347737d5c6SDave LiuLIBS += drivers/qe/qe.a
2357737d5c6SDave Liuendif
236da9d4610SAndy Flemingifeq ($(CPU),mpc85xx)
237da9d4610SAndy FlemingLIBS += drivers/qe/qe.a
238da9d4610SAndy Flemingendif
23959829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a
2408e585f02STsiChung LiewLIBS += drivers/serial/libserial.a
24159829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a
24259829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a
2437ebf7443SwdenkLIBS += common/libcommon.a
2447651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a
245500856ebSRafal JaworowskiLIBS += api/libapi.a
2462d2b994aSYuri TikhonovLIBS += post/libpost.a
247f9328639SMarian Balakowicz
248f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS))
249019895a8SStefano Babic.PHONY : $(LIBS) $(VERSION_FILE)
250a8c7c708Swdenk
251de109d90SWolfgang DenkLIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
252de109d90SWolfgang DenkLIBBOARD := $(addprefix $(obj),$(LIBBOARD))
253de109d90SWolfgang Denk
2544f7cb08eSwdenk# Add GCC lib
2551a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
2563d3befa7Swdenk
257a8c7c708Swdenk# The "tools" are needed early, so put this first
258a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
259a8c7c708SwdenkSUBDIRS	= tools \
2600dc1fc22SRafal Jaworowski	  examples \
2610dc1fc22SRafal Jaworowski	  api_examples
262500856ebSRafal Jaworowski
263b028f715Swdenk.PHONY : $(SUBDIRS)
264a8c7c708Swdenk
265887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y)
266887e2ec9SStefan RoeseNAND_SPL = nand_spl
267887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin
268887e2ec9SStefan Roeseendif
269887e2ec9SStefan Roese
270751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y)
271751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl
272751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin
273751b9b51SKyungmin Parkendif
274751b9b51SKyungmin Park
275f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS))
276de109d90SWolfgang Denk__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
277f9328639SMarian Balakowicz
2787ebf7443Swdenk#########################################################################
279bdccc4feSwdenk#########################################################################
2807ebf7443Swdenk
281751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
28294a91e24SMike Frysingerifeq ($(ARCH),blackfin)
28394a91e24SMike FrysingerALL += $(obj)u-boot.ldr
28494a91e24SMike Frysingerendif
2857ebf7443Swdenk
286bdccc4feSwdenkall:		$(ALL)
2877ebf7443Swdenk
288f9328639SMarian Balakowicz$(obj)u-boot.hex:	$(obj)u-boot
2896310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
2906310eb9dSwdenk
291f9328639SMarian Balakowicz$(obj)u-boot.srec:	$(obj)u-boot
2927ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
2937ebf7443Swdenk
294f9328639SMarian Balakowicz$(obj)u-boot.bin:	$(obj)u-boot
2957ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
2967ebf7443Swdenk
29794a91e24SMike Frysinger$(obj)u-boot.ldr:	$(obj)u-boot
29894a91e24SMike Frysinger		$(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
29994a91e24SMike Frysinger
30094a91e24SMike Frysinger$(obj)u-boot.ldr.hex:	$(obj)u-boot.ldr
30194a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
30294a91e24SMike Frysinger
30394a91e24SMike Frysinger$(obj)u-boot.ldr.srec:	$(obj)u-boot.ldr
30494a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
30594a91e24SMike Frysinger
306f9328639SMarian Balakowicz$(obj)u-boot.img:	$(obj)u-boot.bin
307bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
308bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
309881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
310bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
311bdccc4feSwdenk		-d $< $@
312bdccc4feSwdenk
313566a494fSHeiko Schocher$(obj)u-boot.sha1:	$(obj)u-boot.bin
31401159530SHeiko Schocher		$(obj)tools/ubsha1 $(obj)u-boot.bin
315566a494fSHeiko Schocher
316f9328639SMarian Balakowicz$(obj)u-boot.dis:	$(obj)u-boot
3177ebf7443Swdenk		$(OBJDUMP) -d $< > $@
3187ebf7443Swdenk
319de109d90SWolfgang Denk$(obj)u-boot:		depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
320de109d90SWolfgang Denk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
321de109d90SWolfgang Denk		sed  -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
322f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
323f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
324b2184c31Swdenk			-Map u-boot.map -o u-boot
3257ebf7443Swdenk
32688f72527SJohannes Stezenbach$(OBJS):	depend $(obj)include/autoconf.mk
327f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
328f9328639SMarian Balakowicz
32988f72527SJohannes Stezenbach$(LIBS):	depend $(obj)include/autoconf.mk
330f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
331a8c7c708Swdenk
332de109d90SWolfgang Denk$(LIBBOARD):	depend $(LIBS) $(obj)include/autoconf.mk
333de109d90SWolfgang Denk		$(MAKE) -C $(dir $(subst $(obj),,$@))
334de109d90SWolfgang Denk
33588f72527SJohannes Stezenbach$(SUBDIRS):	depend $(obj)include/autoconf.mk
336b028f715Swdenk		$(MAKE) -C $@ all
3377ebf7443Swdenk
338f65c9812SMike Frysinger$(LDSCRIPT):	depend $(obj)include/autoconf.mk
339f65c9812SMike Frysinger		$(MAKE) -C $(dir $@) $(notdir $@)
340f65c9812SMike Frysinger
341dd531aacSWolfgang Denk$(NAND_SPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
3428318fbf8SMarian Balakowicz		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
343887e2ec9SStefan Roese
344dd531aacSWolfgang Denk$(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
3458318fbf8SMarian Balakowicz		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
346887e2ec9SStefan Roese
347751b9b51SKyungmin Park$(ONENAND_IPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
3481bb707c3SKyungmin Park		$(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
349751b9b51SKyungmin Park
350751b9b51SKyungmin Park$(U_BOOT_ONENAND):	$(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
3511bb707c3SKyungmin Park		$(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
352751b9b51SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
3531bb707c3SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
354751b9b51SKyungmin Park
355ae6d1056SWolfgang Denk$(VERSION_FILE):
356aa737945SMike Frysinger		@( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
357aa737945SMike Frysinger		 '$(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion $(TOPDIR))' \
358aa737945SMike Frysinger		 ) > $@.tmp
3590ec7a061SMike Frysinger		@cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
360881a87ecSWolfgang Denk
3618f713fdfSdzugdbtools:
362f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
363f9328639SMarian Balakowicz
364f9328639SMarian Balakowiczupdater:
365f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
366f9328639SMarian Balakowicz
367f9328639SMarian Balakowiczenv:
36864b3727bSMarkus Klotzbücher		$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
3698f713fdfSdzu
370ae6d1056SWolfgang Denkdepend dep:	$(VERSION_FILE)
371f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
3727ebf7443Swdenk
373a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include
374a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR)
375a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU)
376a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH)
377a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs
378a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat
379a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos
380a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2
381a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net
382a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk
383a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common
384a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator
385a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block
386a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon
387a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c
388a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input
389a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc
390a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd
391a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand
392a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy
393a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand
394d25ce7d2SHaavard SkinnemoenTAG_SUBDIRS += drivers/mtd/spi
395a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net
396a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin
397a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci
398a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia
399a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe
400a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc
401a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial
40204a9e118SBen WarrenTAG_SUBDIRS += drivers/spi
403a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb
404a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video
405a340c325SJean-Christophe PLAGNIOL-VILLARD
406f9328639SMarian Balakowicztags ctags:
407ae6d1056SWolfgang Denk		ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
40888fed9a1SWolfgang Denk						-name '*.[ch]' -print`
4097ebf7443Swdenk
4107ebf7443Swdenketags:
411ae6d1056SWolfgang Denk		etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
41288fed9a1SWolfgang Denk						-name '*.[ch]' -print`
413ffda586fSLi Yangcscope:
414ffda586fSLi Yang		find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
415ffda586fSLi Yang						> cscope.files
416ffda586fSLi Yang		cscope -b -q -k
4177ebf7443Swdenk
418f9328639SMarian Balakowicz$(obj)System.map:	$(obj)u-boot
4197ebf7443Swdenk		@$(NM) $< | \
4207ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
421f9328639SMarian Balakowicz		sort > $(obj)System.map
4227ebf7443Swdenk
4232f155f6cSGrant Likely#
4242f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles)
4252f155f6cSGrant Likely#
4262f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
4272f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when
4282f155f6cSGrant Likely# to regenerate the autoconf.mk file.
4291510b82dSWolfgang Denk$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
4301510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
43116fe7775SMike Frysinger	set -e ; \
432ae6d1056SWolfgang Denk	: Generate the dependancies ; \
4331510b82dSWolfgang Denk	$(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
4341510b82dSWolfgang Denk		-MQ $(obj)include/autoconf.mk include/common.h > $@
4351510b82dSWolfgang Denk
4361510b82dSWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h
4371510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
4381510b82dSWolfgang Denk	set -e ; \
439ae6d1056SWolfgang Denk	: Extract the config macros ; \
4401510b82dSWolfgang Denk	$(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
4411510b82dSWolfgang Denk		sed -n -f tools/scripts/define2mk.sed > $@
4422f155f6cSGrant Likely
443ae6d1056SWolfgang Denksinclude $(obj)include/autoconf.mk.dep
4442f155f6cSGrant Likely
4457ebf7443Swdenk#########################################################################
446ae6d1056SWolfgang Denkelse	# !config.mk
447f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
448f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
449ae6d1056SWolfgang Denk$(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
450ffda586fSLi Yangdep tags ctags etags cscope $(obj)System.map:
4517ebf7443Swdenk	@echo "System not configured - see README" >&2
4527ebf7443Swdenk	@ exit 1
453ae6d1056SWolfgang Denkendif	# config.mk
4547ebf7443Swdenk
4554e53a258SWolfgang Denk.PHONY : CHANGELOG
4564e53a258SWolfgang DenkCHANGELOG:
457b985b5d6SBen Warren	git log --no-merges U-Boot-1_1_5.. | \
458b985b5d6SBen Warren	unexpand -a | sed -e 's/\s\s*$$//' > $@
4594e53a258SWolfgang Denk
4607ebf7443Swdenk#########################################################################
4617ebf7443Swdenk
4627ebf7443Swdenkunconfig:
463887e2ec9SStefan Roese	@rm -f $(obj)include/config.h $(obj)include/config.mk \
4642f155f6cSGrant Likely		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
4652f155f6cSGrant Likely		$(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
4667ebf7443Swdenk
4677ebf7443Swdenk#========================================================================
4687ebf7443Swdenk# PowerPC
4697ebf7443Swdenk#========================================================================
4700db5bca8Swdenk
4710db5bca8Swdenk#########################################################################
4720db5bca8Swdenk## MPC5xx Systems
4730db5bca8Swdenk#########################################################################
4740db5bca8Swdenk
4755e5f9ed2Swdenkcanmb_config:	unconfig
476f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
4775e5f9ed2Swdenk
4780db5bca8Swdenkcmi_mpc5xx_config:	unconfig
479f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
4800db5bca8Swdenk
481b6e4c403SwdenkPATI_config:		unconfig
482f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
483b6e4c403Swdenk
4847ebf7443Swdenk#########################################################################
485945af8d7Swdenk## MPC5xxx Systems
486945af8d7Swdenk#########################################################################
487a87589daSwdenk
488dafba16eSWolfgang Denkaev_config: unconfig
489f9328639SMarian Balakowicz	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
490dafba16eSWolfgang Denk
4916ca24c64Sdzu@denx.deBC3450_config:	unconfig
492f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
4936ca24c64Sdzu@denx.de
4945e4b3361SStefan Roesecpci5200_config:  unconfig
495f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
4965e4b3361SStefan Roese
497a87589daSwdenkhmi1001_config:	unconfig
498f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
499a87589daSwdenk
500e35745bbSwdenkLite5200_config				\
501e35745bbSwdenkLite5200_LOWBOOT_config			\
502e35745bbSwdenkLite5200_LOWBOOT08_config		\
503e35745bbSwdenkicecube_5200_config			\
504e35745bbSwdenkicecube_5200_LOWBOOT_config		\
505e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
506b2001f27Swdenkicecube_5200_DDR_config			\
50779d696fcSwdenkicecube_5200_DDR_LOWBOOT_config		\
50879d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
509e35745bbSwdenkicecube_5100_config:			unconfig
510f9328639SMarian Balakowicz	@mkdir -p $(obj)include
511f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
51217d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
51317d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
514f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
515f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
51617d704ebSwdenk		  fi ; \
517ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5185cf9da48Swdenk		}
5195cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
520f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
5215cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
522ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5235cf9da48Swdenk		}
524b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
525f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
526ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
527b2001f27Swdenk		}
528d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
529f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
530ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
531d4ca31c4Swdenk		}
532a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
533f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
534ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
535945af8d7Swdenk		}
536f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
537945af8d7Swdenk
5382605e90bSHeiko Schocherjupiter_config:	unconfig
5392605e90bSHeiko Schocher	@$(MKCONFIG) jupiter ppc mpc5xxx jupiter
5402605e90bSHeiko Schocher
5414707fb50SBartlomiej Siekav38b_config: unconfig
54290b1b2d6SGrant Likely	@$(MKCONFIG) -a v38b ppc mpc5xxx v38b
5434707fb50SBartlomiej Sieka
544138ff60cSwdenkinka4x0_config:	unconfig
545f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
546138ff60cSwdenk
54709e4b0c5SWolfgang Denklite5200b_config	\
548d3832e8fSDomen Puncerlite5200b_PM_config	\
54909e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
550f9328639SMarian Balakowicz	@mkdir -p $(obj)include
551f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
552f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
553ae6d1056SWolfgang Denk	@ $(XECHO) "... DDR memory revision"
554f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
555f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
556d3832e8fSDomen Puncer	@[ -z "$(findstring _PM_,$@)" ] || \
557d3832e8fSDomen Puncer		{ echo "#define CONFIG_LITE5200B_PM"	>>$(obj)include/config.h ; \
558ae6d1056SWolfgang Denk		  $(XECHO) "... with power management (low-power mode) support" ; \
559d3832e8fSDomen Puncer		}
56009e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
561f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
562ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
56309e4b0c5SWolfgang Denk		}
564ae6d1056SWolfgang Denk	@ $(XECHO) "... with MPC5200B processor"
565f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
56609e4b0c5SWolfgang Denk
567f1ee9825SStefan Roesemcc200_config	\
568ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
569ed1cf845SWolfgang Denkmcc200_highboot_config	\
570ed1cf845SWolfgang Denkmcc200_COM12_config	\
571ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
572113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
573113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
574ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
575ed1cf845SWolfgang Denkprs200_config	\
576ed1cf845SWolfgang Denkprs200_DDR_config	\
577ed1cf845SWolfgang Denkprs200_highboot_config	\
578ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
579f9328639SMarian Balakowicz	@mkdir -p $(obj)include
580f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
5814819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
582ae6d1056SWolfgang Denk		{ $(XECHO) "... with lowboot configuration" ; \
583f1ee9825SStefan Roese		}
5844819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
585f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
586ae6d1056SWolfgang Denk		  $(XECHO) "... with highboot configuration" ; \
5874819fad9SWolfgang Denk		}
5884819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
589ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
590ed1cf845SWolfgang Denk		  then \
591ae6d1056SWolfgang Denk			$(XECHO) "... with DDR" ; \
592ed1cf845SWolfgang Denk		  else \
593ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
594ed1cf845SWolfgang Denk			then \
595ae6d1056SWolfgang Denk				$(XECHO) "... with DDR" ; \
596ed1cf845SWolfgang Denk			else \
597f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
598ae6d1056SWolfgang Denk				$(XECHO) "... with SDRAM" ; \
599ed1cf845SWolfgang Denk			fi; \
600ed1cf845SWolfgang Denk		  fi; \
6014819fad9SWolfgang Denk		}
6024819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
603f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
604ae6d1056SWolfgang Denk		  $(XECHO) "... with SDRAM" ; \
6054819fad9SWolfgang Denk		}
606463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
607f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
608ae6d1056SWolfgang Denk		  $(XECHO) "... with console on COM12" ; \
609463764c8SWolfgang Denk		}
610ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
611f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"	>>$(obj)include/config.h ;\
612ed1cf845SWolfgang Denk		}
613f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
61486ea5f93SWolfgang Denk
6158b7d1f0aSStefan Roesemecp5200_config:  unconfig
616ae6d1056SWolfgang Denk	@$(MKCONFIG) mecp5200  ppc mpc5xxx mecp5200 esd
6178b7d1f0aSStefan Roese
6186341d9d7SHeiko Schochermunices_config:	unconfig
619ae6d1056SWolfgang Denk	@$(MKCONFIG) munices ppc mpc5xxx munices
6206341d9d7SHeiko Schocher
62191c82076SJean-Christophe PLAGNIOL-VILLARDo2dnt_config:	unconfig
622f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
623df04a3dfSWolfgang Denk
6245e4b3361SStefan Roesepf5200_config:	unconfig
625f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
6265e4b3361SStefan Roese
62789394047SwdenkPM520_config \
62889394047SwdenkPM520_DDR_config \
62989394047SwdenkPM520_ROMBOOT_config \
63089394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
631f9328639SMarian Balakowicz	@mkdir -p $(obj)include
63289394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
633f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
634ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
63589394047Swdenk		}
63689394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
637f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
638ae6d1056SWolfgang Denk		  $(XECHO) "... booting from 8-bit flash" ; \
63989394047Swdenk		}
640f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
64189394047Swdenk
6426624b687SWolfgang Denksmmaco4_config: unconfig
643f9328639SMarian Balakowicz	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
6449cdc8386SWolfgang Denk
64586b116b1SBartlomiej Siekacm5200_config:	unconfig
64691c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
647fa1df308SBartlomiej Sieka
6489cdc8386SWolfgang Denkspieval_config:	unconfig
649f9328639SMarian Balakowicz	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
6509cdc8386SWolfgang Denk
65145a212c4SWolfgang DenkTB5200_B_config \
652b87dfd28SWolfgang DenkTB5200_config:	unconfig
653f9328639SMarian Balakowicz	@mkdir -p $(obj)include
65445a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
655f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
656ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200B processor" ; \
65745a212c4SWolfgang Denk		}
658f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
659b87dfd28SWolfgang Denk
660d4ca31c4SwdenkMINI5200_config	\
661d4ca31c4SwdenkEVAL5200_config	\
662d4ca31c4SwdenkTOP5200_config:	unconfig
663f9328639SMarian Balakowicz	@mkdir -p $(obj)include
664f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
665f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
666d4ca31c4Swdenk
6676c7a1408SwdenkTotal5100_config		\
6686c7a1408SwdenkTotal5200_config		\
6696c7a1408SwdenkTotal5200_lowboot_config	\
6706c7a1408SwdenkTotal5200_Rev2_config		\
6716c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
672f9328639SMarian Balakowicz	@mkdir -p $(obj)include
673f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
6746c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
675f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
676ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
6776c7a1408Swdenk		}
6786c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
679f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
680ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
6816c7a1408Swdenk		}
6826c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
683f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
684ae6d1056SWolfgang Denk		  $(XECHO) "... revision 1 board" ; \
6856c7a1408Swdenk		}
6866c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
687f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
688ae6d1056SWolfgang Denk		  $(XECHO) "... revision 2 board" ; \
6896c7a1408Swdenk		}
6906c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
691f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
692ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
6936c7a1408Swdenk		}
694f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
6956c7a1408Swdenk
6965196a7a0SWolfgang Denkcam5200_config \
697d9384de2SMarian Balakowiczcam5200_niosflash_config \
6985196a7a0SWolfgang Denkfo300_config \
6995196a7a0SWolfgang DenkMiniFAP_config \
7005078cce8SWolfgang DenkTQM5200S_config \
7015078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
7025196a7a0SWolfgang DenkTQM5200_B_config \
7035196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
7045196a7a0SWolfgang DenkTQM5200_config	\
7055196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
706f9328639SMarian Balakowicz	@mkdir -p $(obj)include
707f9328639SMarian Balakowicz	@mkdir -p $(obj)board/tqm5200
708135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
709f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
710f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
711f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
712ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200S on Cam5200" ; \
7135078cce8SWolfgang Denk		}
714d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
715d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
716ae6d1056SWolfgang Denk		  $(XECHO) "... with NIOS flash driver" ; \
717d9384de2SMarian Balakowicz		}
7186d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
719f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
720ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200 on FO300" ; \
7216d3bc9b8SMarian Balakowicz		}
722cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
723f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
724ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200_AC on MiniFAP" ; \
725978b1096SWolfgang Denk		}
726cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
727f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
728ae6d1056SWolfgang Denk		  $(XECHO) "... on a STK52XX.100 base board" ; \
72956523f12Swdenk		}
7305078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
731f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
7325078cce8SWolfgang Denk		}
7335078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
734f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
735f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
73645a212c4SWolfgang Denk		}
737978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
738f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
739978b1096SWolfgang Denk		}
740f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
7416dedf3d4SHeiko Schocheruc101_config:		unconfig
7426dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
74353d4a498SBartlomiej Siekamotionpro_config:	unconfig
74453d4a498SBartlomiej Sieka	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
74553d4a498SBartlomiej Sieka
74656523f12Swdenk
747945af8d7Swdenk#########################################################################
7488993e54bSRafal Jaworowski## MPC512x Systems
7498993e54bSRafal Jaworowski#########################################################################
7505f91db7fSJohn Rigbyads5121_config \
7515f91db7fSJohn Rigbyads5121_PCI_config \
7525f91db7fSJohn Rigby	:		 unconfig
753210ed200SWolfgang Denk	@mkdir -p $(obj)include
7545f91db7fSJohn Rigby	@if [ "$(findstring _PCI_,$@)" ] ; then \
7555f91db7fSJohn Rigby		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
7565f91db7fSJohn Rigby		$(XECHO) "... with PCI enabled" ; \
7575f91db7fSJohn Rigby	fi
7585f91db7fSJohn Rigby	@$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
7598993e54bSRafal Jaworowski
7608993e54bSRafal Jaworowski
7618993e54bSRafal Jaworowski#########################################################################
7627ebf7443Swdenk## MPC8xx Systems
7637ebf7443Swdenk#########################################################################
7647ebf7443Swdenk
7652d24a3a7SwdenkAdder_config	\
7662d24a3a7SwdenkAdder87x_config \
76726238132SwdenkAdderII_config	\
7682d24a3a7Swdenk	:		unconfig
769f9328639SMarian Balakowicz	@mkdir -p $(obj)include
77026238132Swdenk	$(if $(findstring AdderII,$@), \
771f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
772f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
7732d24a3a7Swdenk
77416c8d5e7SWolfgang DenkAdderUSB_config:	unconfig
77591c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
77616c8d5e7SWolfgang Denk
777180d3f74SwdenkADS860_config	  \
778180d3f74SwdenkFADS823_config	  \
779180d3f74SwdenkFADS850SAR_config \
780180d3f74SwdenkMPC86xADS_config  \
7811114257cSwdenkMPC885ADS_config  \
782180d3f74SwdenkFADS860T_config:	unconfig
783f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
7847ebf7443Swdenk
7857ebf7443SwdenkAMX860_config	:	unconfig
786f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
7877ebf7443Swdenk
7887ebf7443Swdenkc2mon_config:		unconfig
789f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
7907ebf7443Swdenk
7917ebf7443SwdenkCCM_config:		unconfig
792f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
7937ebf7443Swdenk
7947ebf7443Swdenkcogent_mpc8xx_config:	unconfig
795f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
7967ebf7443Swdenk
7973bac3513SwdenkELPT860_config:		unconfig
798f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
7993bac3513Swdenk
80084c960ceSWolfgang DenkEP88x_config:		unconfig
801f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
80284c960ceSWolfgang Denk
8037ebf7443SwdenkESTEEM192E_config:	unconfig
804f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
8057ebf7443Swdenk
8067ebf7443SwdenkETX094_config	:	unconfig
807f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
8087ebf7443Swdenk
8097ebf7443SwdenkFLAGADM_config:	unconfig
810f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
8117ebf7443Swdenk
8127aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
8137aa78614Swdenk
8147aa78614SwdenkGEN860T_SC_config	\
8157ebf7443SwdenkGEN860T_config: unconfig
816f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8177aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
818f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
819ae6d1056SWolfgang Denk		  $(XECHO) "With reduced H/W feature set (SC)..." ; \
8207aa78614Swdenk		}
821f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
8227ebf7443Swdenk
8237ebf7443SwdenkGENIETV_config:	unconfig
824f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
8257ebf7443Swdenk
8267ebf7443SwdenkGTH_config:	unconfig
827f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
8287ebf7443Swdenk
8297ebf7443Swdenkhermes_config	:	unconfig
830f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
8317ebf7443Swdenk
832c40b2956SwdenkHMI10_config	:	unconfig
833f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
834c40b2956Swdenk
8357ebf7443SwdenkIAD210_config: unconfig
836f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
8377ebf7443Swdenk
8387ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
8397ebf7443Swdenk
8407ebf7443SwdenkICU862_100MHz_config	\
8417ebf7443SwdenkICU862_config: unconfig
842f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8437ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
844f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
845ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
8467ebf7443Swdenk		}
847f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
8487ebf7443Swdenk
8497ebf7443SwdenkIP860_config	:	unconfig
850f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
8517ebf7443Swdenk
8527ebf7443SwdenkIVML24_256_config \
8537ebf7443SwdenkIVML24_128_config \
8547ebf7443SwdenkIVML24_config:	unconfig
855f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8567ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
857f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
8587ebf7443Swdenk		 }
8597ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
860f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
8617ebf7443Swdenk		 }
8627ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
863f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
8647ebf7443Swdenk		 }
865f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
8667ebf7443Swdenk
8677ebf7443SwdenkIVMS8_256_config \
8687ebf7443SwdenkIVMS8_128_config \
8697ebf7443SwdenkIVMS8_config:	unconfig
870f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8717ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
872f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
8737ebf7443Swdenk		 }
8747ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
875f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
8767ebf7443Swdenk		 }
8777ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
878f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
8797ebf7443Swdenk		 }
880f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
8817ebf7443Swdenk
88256f94be3SwdenkKUP4K_config	:	unconfig
883f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
8840608e04dSwdenk
8850608e04dSwdenkKUP4X_config	:	unconfig
886f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
88756f94be3Swdenk
8887ebf7443SwdenkLANTEC_config	:	unconfig
889f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
8907ebf7443Swdenk
8917ebf7443Swdenklwmon_config:		unconfig
892f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
8937ebf7443Swdenk
8947ebf7443SwdenkMBX_config	\
8957ebf7443SwdenkMBX860T_config:	unconfig
896f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
8977ebf7443Swdenk
898381e4e63SHeiko Schochermgsuvd_config:		unconfig
899381e4e63SHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
900381e4e63SHeiko Schocher
9017ebf7443SwdenkMHPC_config:		unconfig
902f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
9037ebf7443Swdenk
9047ebf7443SwdenkMVS1_config :		unconfig
905f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
9067ebf7443Swdenk
907993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
908993cad93Swdenk
909993cad93SwdenkNETVIA_V2_config \
9107ebf7443SwdenkNETVIA_config:		unconfig
911f9328639SMarian Balakowicz	@mkdir -p $(obj)include
912993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
913f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
914ae6d1056SWolfgang Denk		  $(XECHO) "... Version 1" ; \
915993cad93Swdenk		 }
916993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
917f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
918ae6d1056SWolfgang Denk		  $(XECHO) "... Version 2" ; \
919993cad93Swdenk		 }
920f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
9217ebf7443Swdenk
922c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
923c26e454dSwdenk
924c26e454dSwdenkNETPHONE_V2_config \
92504a85b3bSwdenkNETPHONE_config:	unconfig
926f9328639SMarian Balakowicz	@mkdir -p $(obj)include
927c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
928f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
929c26e454dSwdenk		 }
930c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
931f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
932c26e454dSwdenk		 }
933f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
93404a85b3bSwdenk
93579fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
93604a85b3bSwdenk
93779fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
93879fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
93979fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
94079fa88f3SwdenkNETTA_SWAPHOOK_config \
94179fa88f3SwdenkNETTA_ISDN_6412_config \
94204a85b3bSwdenkNETTA_ISDN_config \
94379fa88f3SwdenkNETTA_6412_config \
94404a85b3bSwdenkNETTA_config:		unconfig
945f9328639SMarian Balakowicz	@mkdir -p $(obj)include
94679fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
947f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
94804a85b3bSwdenk		 }
94979fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
950f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
95179fa88f3Swdenk		 }
95279fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
953f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
95479fa88f3Swdenk		 }
95579fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
956f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
95779fa88f3Swdenk		 }
95879fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
959f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
96079fa88f3Swdenk		 }
96179fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
962f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
96379fa88f3Swdenk		 }
964f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
96504a85b3bSwdenk
96679fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
96779fa88f3Swdenk
96879fa88f3SwdenkNETTA2_V2_config \
96979fa88f3SwdenkNETTA2_config:		unconfig
970f9328639SMarian Balakowicz	@mkdir -p $(obj)include
97179fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
972f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
97379fa88f3Swdenk		 }
97479fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
975f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
97679fa88f3Swdenk		 }
977f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
97879fa88f3Swdenk
979a367d426Sdzu@denx.deNC650_Rev1_config \
980a367d426Sdzu@denx.deNC650_Rev2_config \
981a367d426Sdzu@denx.deCP850_config:	unconfig
982f9328639SMarian Balakowicz	@mkdir -p $(obj)include
983a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
984f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
985f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
986a367d426Sdzu@denx.de		 }
987a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
988f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
989a367d426Sdzu@denx.de		 }
990a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
991f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
992a367d426Sdzu@denx.de		 }
993f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
9947ca202f5Swdenk
9957ebf7443SwdenkNX823_config:		unconfig
996f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
9977ebf7443Swdenk
9987ebf7443Swdenkpcu_e_config:		unconfig
999f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
10007ebf7443Swdenk
10013bbc899fSwdenkQS850_config:	unconfig
1002f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10033bbc899fSwdenk
10043bbc899fSwdenkQS823_config:	unconfig
1005f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10063bbc899fSwdenk
10073bbc899fSwdenkQS860T_config:	unconfig
1008f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
10093bbc899fSwdenk
1010da93ed81Swdenkquantum_config:	unconfig
1011f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1012da93ed81Swdenk
10137ebf7443SwdenkR360MPI_config:	unconfig
1014f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
10157ebf7443Swdenk
1016682011ffSwdenkRBC823_config:	unconfig
1017f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1018682011ffSwdenk
10197ebf7443SwdenkRPXClassic_config:	unconfig
1020f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
10217ebf7443Swdenk
10227ebf7443SwdenkRPXlite_config:		unconfig
1023f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
10247ebf7443Swdenk
1025e63c8ee3SwdenkRPXlite_DW_64_config		\
1026e63c8ee3SwdenkRPXlite_DW_LCD_config		\
1027e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
1028e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
1029e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config	\
1030e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
1031e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config	\
1032e63c8ee3SwdenkRPXlite_DW_config:	unconfig
1033f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1034e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
1035f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
1036ae6d1056SWolfgang Denk		  $(XECHO) "... with 64MHz system clock ..."; \
1037e63c8ee3Swdenk		}
1038e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1039f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1040f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1041ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display ..."; \
1042e63c8ee3Swdenk		}
1043e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
1044f9328639SMarian Balakowicz		{ echo "#define  CFG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
1045ae6d1056SWolfgang Denk		  $(XECHO) "... with ENV in NVRAM ..."; \
1046e63c8ee3Swdenk		}
1047f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1048e63c8ee3Swdenk
104973a8b27cSwdenkrmu_config:	unconfig
1050f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
105173a8b27cSwdenk
10527ebf7443SwdenkRRvision_config:	unconfig
1053f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
10547ebf7443Swdenk
10557ebf7443SwdenkRRvision_LCD_config:	unconfig
1056f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1057f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1058f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1059f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
10607ebf7443Swdenk
10617ebf7443SwdenkSM850_config	:	unconfig
1062f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
10637ebf7443Swdenk
106491c82076SJean-Christophe PLAGNIOL-VILLARDspc1920_config:		unconfig
1065f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1066b02d0177SMarkus Klotzbuecher
10677ebf7443SwdenkSPD823TS_config:	unconfig
1068f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
10697ebf7443Swdenk
10706bdf4306SWolfgang Denkstxxtc_config:	unconfig
1071f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
10726bdf4306SWolfgang Denk
1073dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
1074f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1075dc7c9a1aSwdenk
10767ebf7443SwdenkSXNI855T_config:	unconfig
1077f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
10787ebf7443Swdenk
1079db2f721fSwdenk# EMK MPC8xx based modules
1080db2f721fSwdenkTOP860_config:		unconfig
1081f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1082db2f721fSwdenk
10837ebf7443Swdenk# Play some tricks for configuration selection
1084e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
1085e9132ea9Swdenk# and only 823 boards may have LCD support
1086e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
10877ebf7443Swdenk
10887ebf7443SwdenkFPS850L_config		\
1089384ae025SwdenkFPS860L_config		\
1090f12e568cSwdenkNSCU_config		\
10917ebf7443SwdenkTQM823L_config		\
10927ebf7443SwdenkTQM823L_LCD_config	\
10937ebf7443SwdenkTQM850L_config		\
10947ebf7443SwdenkTQM855L_config		\
10957ebf7443SwdenkTQM860L_config		\
1096d126bfbdSwdenkTQM862L_config		\
1097ae3af05eSwdenkTQM823M_config		\
1098ae3af05eSwdenkTQM850M_config		\
1099f12e568cSwdenkTQM855M_config		\
1100f12e568cSwdenkTQM860M_config		\
1101f12e568cSwdenkTQM862M_config		\
11028cba090cSWolfgang DenkTQM866M_config		\
1103090eb735SMarkus KlotzbuecherTQM885D_config		\
1104efc6f447SGuennadi LiakhovetskiTK885D_config		\
11058cba090cSWolfgang Denkvirtlab2_config:	unconfig
1106f9328639SMarian Balakowicz	@mkdir -p $(obj)include
11077ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1108f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1109f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1110ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display" ; \
11117ebf7443Swdenk		}
1112f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
11137ebf7443Swdenk
11147ebf7443SwdenkTTTech_config:	unconfig
1115f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1116f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1117f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1118f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
11197ebf7443Swdenk
1120ec0aee7bSwdenkuc100_config	:	unconfig
1121f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1122f7d1572bSwdenk
1123608c9146Swdenkv37_config:	unconfig
1124f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1125f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1126f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1127f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1128608c9146Swdenk
112991e940d9Sdzuwtk_config:	unconfig
1130f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1131f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1132f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1133f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
113491e940d9Sdzu
11357ebf7443Swdenk#########################################################################
11367ebf7443Swdenk## PPC4xx Systems
11377ebf7443Swdenk#########################################################################
1138e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
11397ebf7443Swdenk
114016c0cc1cSStefan Roeseacadia_config:	unconfig
114116c0cc1cSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
114216c0cc1cSStefan Roese
1143c440bfe6SStefan Roeseacadia_nand_config:	unconfig
114463e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/acadia
114563e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/acadia
1146c440bfe6SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1147c440bfe6SStefan Roese	@$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1148c440bfe6SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1149c440bfe6SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1150c440bfe6SStefan Roese
11517ebf7443SwdenkADCIOP_config:	unconfig
1152f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
11537ebf7443Swdenk
1154899620c2SStefan Roesealpr_config:	unconfig
115535d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1156899620c2SStefan Roese
11577521af1cSWolfgang DenkAP1000_config:unconfig
1158f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
11597521af1cSWolfgang Denk
1160c419d1d6SstroeseAPC405_config:	unconfig
1161f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1162c419d1d6Sstroese
11637ebf7443SwdenkAR405_config:	unconfig
1164f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
11657ebf7443Swdenk
1166549826eaSstroeseASH405_config:	unconfig
1167f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1168549826eaSstroese
11698a316c9bSStefan Roesebamboo_config:	unconfig
1170f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
11718a316c9bSStefan Roese
1172cf959c7dSStefan Roesebamboo_nand_config:	unconfig
117363e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/bamboo
117463e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/bamboo
1175cf959c7dSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1176f3679aa1SStefan Roese	@$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1177cf959c7dSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1178cf959c7dSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1179cf959c7dSStefan Roese
11808a316c9bSStefan Roesebubinga_config:	unconfig
1181f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1182549826eaSstroese
11837ebf7443SwdenkCANBT_config:	unconfig
1184f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
11857ebf7443Swdenk
11864c9e8557SStefan Roese# Canyonlands & Glacier use different U-Boot images
11874c9e8557SStefan Roesecanyonlands_config \
11884c9e8557SStefan Roeseglacier_config:	unconfig
11894c9e8557SStefan Roese	@mkdir -p $(obj)include
11904c9e8557SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
11914c9e8557SStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
11924c9e8557SStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1193c813f1f8SStefan Roese
1194fe7c0db6SStefan Roesecanyonlands_nand_config \
1195fe7c0db6SStefan Roeseglacier_nand_config:	unconfig
119671665ebfSStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/canyonlands
119771665ebfSStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/canyonlands
119871665ebfSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1199fe7c0db6SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1200fe7c0db6SStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
120171665ebfSStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
120271665ebfSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
120371665ebfSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
120471665ebfSStefan Roese
12051d6f9720SwdenkCATcenter_config	\
12061d6f9720SwdenkCATcenter_25_config	\
12071d6f9720SwdenkCATcenter_33_config:	unconfig
1208f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1209f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1210f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
12111d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1212f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1213ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
12141d6f9720Swdenk		}
12151d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1216f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1217ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
12181d6f9720Swdenk		}
1219f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
122010767ccbSwdenk
12217644f16fSStefan RoeseCPCI2DP_config:	unconfig
1222f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
12237644f16fSStefan Roese
12247ebf7443SwdenkCPCI405_config	\
1225549826eaSstroeseCPCI4052_config	\
1226c419d1d6SstroeseCPCI405DT_config	\
1227549826eaSstroeseCPCI405AB_config:	unconfig
1228f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1229f9328639SMarian Balakowicz	@echo "BOARD_REVISION = $(@:_config=)"	>> $(obj)include/config.mk
12307ebf7443Swdenk
12317ebf7443SwdenkCPCIISER4_config:	unconfig
1232f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
12337ebf7443Swdenk
12347ebf7443SwdenkCRAYL1_config:	unconfig
1235f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
12367ebf7443Swdenk
1237cd0a9de6Swdenkcsb272_config:	unconfig
1238f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1239cd0a9de6Swdenk
1240aa245090Swdenkcsb472_config:	unconfig
1241f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1242aa245090Swdenk
12437ebf7443SwdenkDASA_SIM_config: unconfig
1244f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
12457ebf7443Swdenk
124672cd5aa7SstroeseDP405_config:	unconfig
1247f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
124872cd5aa7Sstroese
12497ebf7443SwdenkDU405_config:	unconfig
1250f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
12517ebf7443Swdenk
12521a3ac86bSMatthias FuchsDU440_config:	unconfig
12531a3ac86bSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
12541a3ac86bSMatthias Fuchs
12558a316c9bSStefan Roeseebony_config:	unconfig
1256f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
12577ebf7443Swdenk
12587ebf7443SwdenkERIC_config:	unconfig
1259f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
12607ebf7443Swdenk
1261d1cbe85bSwdenkEXBITGEN_config:	unconfig
1262f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1263d1cbe85bSwdenk
1264c419d1d6SstroeseG2000_config:	unconfig
1265f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1266c419d1d6Sstroese
1267ac982ea5SNiklaus Gigerhcu4_config:	unconfig
1268b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
126935d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1270ac982ea5SNiklaus Giger
1271ac982ea5SNiklaus Gigerhcu5_config:	unconfig
1272b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
127335d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1274ac982ea5SNiklaus Giger
1275c419d1d6SstroeseHH405_config:	unconfig
1276f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1277c419d1d6Sstroese
127872cd5aa7SstroeseHUB405_config:	unconfig
1279f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
128072cd5aa7Sstroese
1281db01a2eaSwdenkJSE_config:	unconfig
1282f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1283db01a2eaSwdenk
1284b79316f2SStefan RoeseKAREF_config: unconfig
1285f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1286b79316f2SStefan Roese
12874745acaaSStefan Roesekatmai_config:	unconfig
12884745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
12894745acaaSStefan Roese
1290353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR)
1291353f2688SStefan Roesekilauea_config \
1292353f2688SStefan Roesehaleakala_config: unconfig
1293353f2688SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1294566806caSStefan Roese
12953d6cb3b2SStefan Roesekilauea_nand_config \
12963d6cb3b2SStefan Roesehaleakala_nand_config: unconfig
12973d6cb3b2SStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/kilauea
12983d6cb3b2SStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/kilauea
12993d6cb3b2SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
13003d6cb3b2SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
13013d6cb3b2SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
13023d6cb3b2SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
13033d6cb3b2SStefan Roese
1304c591dffeSLarry Johnsonkorat_config:	unconfig
1305c591dffeSLarry Johnson	@$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1306c591dffeSLarry Johnson
13076e7fb6eaSStefan Roeseluan_config:	unconfig
1308f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
13096e7fb6eaSStefan Roese
1310b765ffb7SStefan Roeselwmon5_config:	unconfig
1311b765ffb7SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1312b765ffb7SStefan Roese
1313211ea91aSStefan Roesemakalu_config:	unconfig
1314211ea91aSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1315211ea91aSStefan Roese
1316b05f3543SNiklaus Gigermcu25_config:  unconfig
1317b05f3543SNiklaus Giger	@mkdir -p $(obj)board/netstal/common
1318b05f3543SNiklaus Giger	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1319b05f3543SNiklaus Giger
1320b79316f2SStefan RoeseMETROBOX_config: unconfig
1321f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1322b79316f2SStefan Roese
13237ebf7443SwdenkMIP405_config:	unconfig
1324f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
13257ebf7443Swdenk
1326f3e0de60SwdenkMIP405T_config:	unconfig
1327f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1328f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1329ae6d1056SWolfgang Denk	@$(XECHO) "Enable subset config for MIP405T"
1330f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1331f3e0de60Swdenk
13327ebf7443SwdenkML2_config:	unconfig
1333f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
13347ebf7443Swdenk
1335028ab6b5Swdenkml300_config:	unconfig
1336f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1337028ab6b5Swdenk
13388a316c9bSStefan Roeseocotea_config:	unconfig
1339f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
13400e6d798cSwdenk
13417ebf7443SwdenkOCRTC_config		\
13427ebf7443SwdenkORSG_config:	unconfig
1343f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
13447ebf7443Swdenk
13455568e613SStefan Roesep3p440_config:	unconfig
1346f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
13475568e613SStefan Roese
13487ebf7443SwdenkPCI405_config:	unconfig
1349f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
13507ebf7443Swdenk
1351a4c8d138SStefan Roesepcs440ep_config:	unconfig
1352f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1353a4c8d138SStefan Roese
13547ebf7443SwdenkPIP405_config:	unconfig
1355f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
13567ebf7443Swdenk
135772cd5aa7SstroesePLU405_config:	unconfig
1358f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
135972cd5aa7Sstroese
1360549826eaSstroesePMC405_config:	unconfig
1361f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1362549826eaSstroese
13638ba132caSMatthias FuchsPMC440_config:	unconfig
13648ba132caSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
13658ba132caSMatthias Fuchs
1366281e00a3SwdenkPPChameleonEVB_config		\
1367e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1368e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1369e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1370e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1371e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1372e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1373f9328639SMarian Balakowicz	@mkdir -p $(obj)include
13741d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1375f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1376ae6d1056SWolfgang Denk		  $(XECHO) "... BASIC model" ; \
1377fbe4b5cbSwdenk		}
13781d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1379f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1380ae6d1056SWolfgang Denk		  $(XECHO) "... MEDIUM model" ; \
1381fbe4b5cbSwdenk		}
13821d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1383f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1384ae6d1056SWolfgang Denk		  $(XECHO) "... HIGH-END model" ; \
1385fbe4b5cbSwdenk		}
1386e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1387f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1388ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
1389e55ca7e2Swdenk		}
1390e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1391f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1392ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
1393e55ca7e2Swdenk		}
1394f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
139512f34241Swdenk
139673ccb341SGary Jennejohnquad100hd_config:	unconfig
139773ccb341SGary Jennejohn	@$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
139873ccb341SGary Jennejohn
1399430f1b0fSStefan Roesesbc405_config:	unconfig
1400430f1b0fSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1401430f1b0fSStefan Roese
1402430f1b0fSStefan Roesesequoia_config \
1403854bc8daSStefan Roeserainier_config: unconfig
14048318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1405430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1406430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
14072aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1408854bc8daSStefan Roese
1409430f1b0fSStefan Roesesequoia_nand_config \
1410854bc8daSStefan Roeserainier_nand_config: unconfig
141163e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
141263e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/sequoia
14138318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1414430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1415430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1416430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
14178318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
14188318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1419652a10c0Swdenk
14206d3e0107SWolfgang Denksc3_config:unconfig
142135d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1422ca43ba18SHeiko Schocher
1423d4024bb7SJohn Otkentaihu_config:	unconfig
1424d4024bb7SJohn Otken	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1425d4024bb7SJohn Otken
14265fb692caSStefan Roesetaishan_config:	unconfig
14275fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
14285fb692caSStefan Roese
142972cd5aa7SstroeseVOH405_config:	unconfig
1430f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
143172cd5aa7Sstroese
1432c419d1d6SstroeseVOM405_config:	unconfig
1433f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1434c419d1d6Sstroese
1435feaedfcfSStefan RoeseCMS700_config:	unconfig
1436f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1437feaedfcfSStefan Roese
14387ebf7443SwdenkW7OLMC_config	\
14397ebf7443SwdenkW7OLMG_config: unconfig
1440f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
14417ebf7443Swdenk
1442430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR)
1443430f1b0fSStefan Roesewalnut_config \
1444430f1b0fSStefan Roesesycamore_config: unconfig
1445430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
14467ebf7443Swdenk
1447c419d1d6SstroeseWUH405_config:	unconfig
1448f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1449c419d1d6Sstroese
1450ba56f625SwdenkXPEDITE1K_config:	unconfig
1451f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1452ba56f625Swdenk
1453430f1b0fSStefan Roeseyosemite_config \
14548a316c9bSStefan Roeseyellowstone_config: unconfig
1455700200c6SStefan Roese	@mkdir -p $(obj)include
1456430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1457430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
14582aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
14598a316c9bSStefan Roese
14606c5879f3SMarian Balakowiczyucca_config:	unconfig
1461f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
14626c5879f3SMarian Balakowicz
1463779e9751SStefan Roesezeus_config:	unconfig
1464779e9751SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1465779e9751SStefan Roese
14667ebf7443Swdenk#########################################################################
1467983fda83Swdenk## MPC8220 Systems
1468983fda83Swdenk#########################################################################
1469dc17fb6dSWolfgang Denk
1470dc17fb6dSWolfgang DenkAlaska8220_config	\
1471dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1472f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1473983fda83Swdenk
147412b43d51Swdenksorcery_config:		unconfig
1475f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
147612b43d51Swdenk
1477983fda83Swdenk#########################################################################
14787ebf7443Swdenk## MPC824x Systems
14797ebf7443Swdenk#########################################################################
1480efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
14813bac3513Swdenk
14820332990bSwdenkA3000_config: unconfig
1483f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
14840332990bSwdenk
14858e6f1a8eSWolfgang Denkbarco_config: unconfig
1486f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
14878e6f1a8eSWolfgang Denk
14887ebf7443SwdenkBMW_config: unconfig
1489f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
14907ebf7443Swdenk
14913bac3513SwdenkCPC45_config	\
14923bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1493f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1494f9328639SMarian Balakowicz	@cd $(obj)include ;				\
14953bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
14963bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1497ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
14983bac3513Swdenk	else \
14993bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1500ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
15013bac3513Swdenk	fi; \
15023bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
15033bac3513Swdenk
15047ebf7443SwdenkCU824_config: unconfig
1505f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
15067ebf7443Swdenk
15077abf0c58Swdenkdebris_config: unconfig
1508f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
15097abf0c58Swdenk
151080885a9dSwdenkeXalion_config: unconfig
1511f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
151280885a9dSwdenk
1513756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1514f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1515756f586aSwdenk
151653dd6ce4SWolfgang Denkkvme080_config: unconfig
1517f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
151853dd6ce4SWolfgang Denk
151961525f2fSGuennadi Liakhovetski# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
152061525f2fSGuennadi Liakhovetski# time permits.
152161525f2fSGuennadi Liakhovetski#linkstation_HDLAN_config \
152261525f2fSGuennadi Liakhovetski# Remove this line when HDLAN is fixed
152361525f2fSGuennadi Liakhovetskilinkstation_HGLAN_config: unconfig
152461525f2fSGuennadi Liakhovetski	@mkdir -p $(obj)include
152561525f2fSGuennadi Liakhovetski	@case $@ in \
152661525f2fSGuennadi Liakhovetski		*HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
152761525f2fSGuennadi Liakhovetski		*HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
152861525f2fSGuennadi Liakhovetski	esac
152961525f2fSGuennadi Liakhovetski	@$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
153061525f2fSGuennadi Liakhovetski
15317ebf7443SwdenkMOUSSE_config: unconfig
1532f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
15337ebf7443Swdenk
15347ebf7443SwdenkMUSENKI_config: unconfig
1535f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
15367ebf7443Swdenk
1537b4676a25SwdenkMVBLUE_config:	unconfig
1538f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1539b4676a25Swdenk
15407ebf7443SwdenkOXC_config: unconfig
1541f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
15427ebf7443Swdenk
15437ebf7443SwdenkPN62_config: unconfig
1544f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
15457ebf7443Swdenk
15467ebf7443SwdenkSandpoint8240_config: unconfig
1547f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
15487ebf7443Swdenk
15497ebf7443SwdenkSandpoint8245_config: unconfig
1550f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
15517ebf7443Swdenk
1552466b7410Swdenksbc8240_config: unconfig
1553f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1554466b7410Swdenk
1555d1cbe85bSwdenkSL8245_config: unconfig
1556f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1557d1cbe85bSwdenk
15587ebf7443Swdenkutx8245_config: unconfig
1559f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
15607ebf7443Swdenk
15617ebf7443Swdenk#########################################################################
15627ebf7443Swdenk## MPC8260 Systems
15637ebf7443Swdenk#########################################################################
15647ebf7443Swdenk
156554387ac9Swdenkatc_config:	unconfig
1566f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
156754387ac9Swdenk
15687ebf7443Swdenkcogent_mpc8260_config:	unconfig
1569f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
15707ebf7443Swdenk
15717ebf7443SwdenkCPU86_config	\
15727ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1573f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1574f9328639SMarian Balakowicz	@cd $(obj)include ;				\
15757ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
15767ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1577ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
15787ebf7443Swdenk	else \
15797ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1580ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
15817ebf7443Swdenk	fi; \
15827ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
15837ebf7443Swdenk
1584384cc687SwdenkCPU87_config	\
1585384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1586f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1587f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1588384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1589384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1590ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1591384cc687Swdenk	else \
1592384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1593ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1594384cc687Swdenk	fi; \
1595384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1596384cc687Swdenk
1597f901a83bSWolfgang Denkep8248_config	\
1598f901a83bSWolfgang Denkep8248E_config	:	unconfig
1599f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1600f901a83bSWolfgang Denk
16017ebf7443Swdenkep8260_config:	unconfig
1602f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
16037ebf7443Swdenk
16048d4ac794SWolfgang Denkep82xxm_config:	unconfig
160590b1b2d6SGrant Likely	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
16068d4ac794SWolfgang Denk
16077ebf7443Swdenkgw8260_config:	unconfig
1608f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
16097ebf7443Swdenk
16107ebf7443Swdenkhymod_config:	unconfig
1611f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
16127ebf7443Swdenk
16139dd41a7bSwdenkIDS8247_config:	unconfig
1614f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
16159dd41a7bSwdenk
16167ebf7443SwdenkIPHASE4539_config:	unconfig
1617f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
16187ebf7443Swdenk
1619c3c7f861SwdenkISPAN_config		\
1620c3c7f861SwdenkISPAN_REVB_config:	unconfig
1621f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1622c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
1623f9328639SMarian Balakowicz		echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1624c3c7f861Swdenk	fi
1625f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1626c3c7f861Swdenk
1627ac9db066SHeiko Schochermgcoge_config	:	unconfig
1628ac9db066SHeiko Schocher	@$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1629ac9db066SHeiko Schocher
163004a85b3bSwdenkMPC8260ADS_config	\
1631901787d6SwdenkMPC8260ADS_lowboot_config	\
163204a85b3bSwdenkMPC8260ADS_33MHz_config	\
1633901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
163404a85b3bSwdenkMPC8260ADS_40MHz_config	\
1635901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
163604a85b3bSwdenkMPC8272ADS_config	\
1637901787d6SwdenkMPC8272ADS_lowboot_config	\
163804a85b3bSwdenkPQ2FADS_config		\
1639901787d6SwdenkPQ2FADS_lowboot_config		\
164004a85b3bSwdenkPQ2FADS-VR_config	\
1641901787d6SwdenkPQ2FADS-VR_lowboot_config	\
164204a85b3bSwdenkPQ2FADS-ZU_config	\
1643901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
164404a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1645901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
164604a85b3bSwdenk	:		unconfig
1647f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1648b7e24d28SJon Loeliger	@mkdir -p $(obj)board/freescale/mpc8260ads
164904a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
1650f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1651f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
165204a85b3bSwdenk	$(if $(findstring MHz,$@), \
1653f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
165404a85b3bSwdenk	$(if $(findstring VR,$@), \
1655f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1656901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1657b7e24d28SJon Loeliger		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1658ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
1659901787d6Swdenk		}
1660b7e24d28SJon Loeliger	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
16617ebf7443Swdenk
1662db2f721fSwdenkMPC8266ADS_config:	unconfig
1663aa3511e4SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1664db2f721fSwdenk
1665efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
166610f67017SwdenkPM825_config	\
1667efa329cbSwdenkPM825_ROMBOOT_config	\
1668efa329cbSwdenkPM825_BIGFLASH_config	\
1669efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
16707ebf7443SwdenkPM826_config	\
1671efa329cbSwdenkPM826_ROMBOOT_config	\
1672efa329cbSwdenkPM826_BIGFLASH_config	\
1673efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1674f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1675f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1676efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1677f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
16787ebf7443Swdenk	else \
1679f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1680efa329cbSwdenk	fi
1681efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1682ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1683f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1684f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1685efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1686ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1687f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
16887ebf7443Swdenk		fi; \
1689efa329cbSwdenk	else \
1690ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1691efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1692ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1693f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1694f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1695efa329cbSwdenk		else \
1696f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1697efa329cbSwdenk		fi; \
1698efa329cbSwdenk	fi
1699f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1700efa329cbSwdenk
1701efa329cbSwdenkPM828_config	\
1702efa329cbSwdenkPM828_PCI_config	\
1703efa329cbSwdenkPM828_ROMBOOT_config	\
1704efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1705f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1706f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
170717076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1708f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1709ae6d1056SWolfgang Denk		$(XECHO) "... with PCI enabled" ; \
1710efa329cbSwdenk	fi
1711efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1712ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1713f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1714f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1715efa329cbSwdenk	fi
1716f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
17177ebf7443Swdenk
17187ebf7443Swdenkppmc8260_config:	unconfig
1719f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
17207ebf7443Swdenk
17218b0bfc68SwdenkRattler8248_config	\
17228b0bfc68SwdenkRattler_config:		unconfig
1723f9328639SMarian Balakowicz	@mkdir -p $(obj)include
17248b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1725f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1726f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
17278b0bfc68Swdenk
17287ebf7443SwdenkRPXsuper_config:	unconfig
1729f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
17307ebf7443Swdenk
17317ebf7443Swdenkrsdproto_config:	unconfig
1732f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
17337ebf7443Swdenk
17347ebf7443Swdenksacsng_config:	unconfig
1735f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
17367ebf7443Swdenk
17377ebf7443Swdenksbc8260_config:	unconfig
1738f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
17397ebf7443Swdenk
17407ebf7443SwdenkSCM_config:		unconfig
1741f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
17427ebf7443Swdenk
174327b207fdSwdenkTQM8255_AA_config \
174427b207fdSwdenkTQM8260_AA_config \
174527b207fdSwdenkTQM8260_AB_config \
174627b207fdSwdenkTQM8260_AC_config \
174727b207fdSwdenkTQM8260_AD_config \
174827b207fdSwdenkTQM8260_AE_config \
174927b207fdSwdenkTQM8260_AF_config \
175027b207fdSwdenkTQM8260_AG_config \
175127b207fdSwdenkTQM8260_AH_config \
17521f62bc2dSWolfgang DenkTQM8260_AI_config \
175327b207fdSwdenkTQM8265_AA_config:  unconfig
1754f9328639SMarian Balakowicz	@mkdir -p $(obj)include
175527b207fdSwdenk	@case "$@" in \
175627b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
175727b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
175827b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
175927b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
176027b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
176127b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
176227b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
176327b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
176427b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
17651f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
176627b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
176727b207fdSwdenk	esac; \
176827b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1769f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
177027b207fdSwdenk	fi; \
1771f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
177227b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
17731aaab9bfSWolfgang Denk	if [ "$${CACHE}" = "yes" ] ; then \
1774f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1775ae6d1056SWolfgang Denk		$(XECHO) "... with L2 Cache support" ; \
17767ebf7443Swdenk	else \
1777f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1778ae6d1056SWolfgang Denk		$(XECHO) "... without L2 Cache support" ; \
177927b207fdSwdenk	fi; \
17801aaab9bfSWolfgang Denk	if [ "$${BMODE}" = "60x" ] ; then \
1781f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1782ae6d1056SWolfgang Denk		$(XECHO) "... with 60x Bus Mode" ; \
178327b207fdSwdenk	else \
1784f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
1785ae6d1056SWolfgang Denk		$(XECHO) "... without 60x Bus Mode" ; \
17867ebf7443Swdenk	fi
1787f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
17887ebf7443Swdenk
1789fa230445SHeiko SchocherTQM8272_config: unconfig
1790210ed200SWolfgang Denk	@$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272
1791fa230445SHeiko Schocher
1792ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1793ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1794f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1795f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1796f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1797ba91e26aSwdenk
179854387ac9SwdenkZPC1900_config: unconfig
1799f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
18007aa78614Swdenk
18014e5ca3ebSwdenk#########################################################################
18024e5ca3ebSwdenk## Coldfire
18034e5ca3ebSwdenk#########################################################################
18044e5ca3ebSwdenk
18051552af70STsiChungLiewM52277EVB_config:	unconfig
18061552af70STsiChungLiew	@$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
18071552af70STsiChungLiew
18084a442d31STsiChungLiewM5235EVB_config \
18094a442d31STsiChungLiewM5235EVB_Flash16_config \
18104a442d31STsiChungLiewM5235EVB_Flash32_config:	unconfig
18114a442d31STsiChungLiew	@case "$@" in \
18124a442d31STsiChungLiew	M5235EVB_config)		FLASH=16;; \
18134a442d31STsiChungLiew	M5235EVB_Flash16_config)	FLASH=16;; \
18144a442d31STsiChungLiew	M5235EVB_Flash32_config)	FLASH=32;; \
18154a442d31STsiChungLiew	esac; \
18164a442d31STsiChungLiew	if [ "$${FLASH}" != "16" ] ; then \
1817ae6d1056SWolfgang Denk		echo "#define NORFLASH_PS32BIT	1" >> $(obj)include/config.h ; \
18184a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
18194a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
18204a442d31STsiChungLiew	else \
18214a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
18224a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
18234a442d31STsiChungLiew	fi
18244a442d31STsiChungLiew	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
18254a442d31STsiChungLiew
1826a605aacdSTsiChungLiewM5249EVB_config :		unconfig
1827a605aacdSTsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1828a605aacdSTsiChungLiew
1829a1436a84STsiChungLiewM5253EVBE_config :		unconfig
1830a1436a84STsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1831a1436a84STsiChungLiew
18327481266eSWolfgang Denkcobra5272_config :		unconfig
1833f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
18347481266eSWolfgang Denk
18354176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
1836f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1837f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1838f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1839f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
18404176c799SWolfgang Denk
18414176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
1842f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1843f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1844f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1845f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
18464176c799SWolfgang Denk
1847daa6e418SBartlomiej Siekaidmr_config :			unconfig
1848daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1849daa6e418SBartlomiej Sieka
18504176c799SWolfgang DenkM5271EVB_config :		unconfig
1851f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
18524176c799SWolfgang Denk
18534e5ca3ebSwdenkM5272C3_config :		unconfig
1854f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
18554e5ca3ebSwdenk
1856545c8e0aSMatthew FettkeM5275EVB_config :		unconfig
1857545c8e0aSMatthew Fettke	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1858545c8e0aSMatthew Fettke
18594e5ca3ebSwdenkM5282EVB_config :		unconfig
1860f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
18614e5ca3ebSwdenk
1862c419d1d6SstroeseTASREG_config :		unconfig
1863f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1864c419d1d6Sstroese
18658e585f02STsiChung LiewM5329AFEE_config \
18668e585f02STsiChung LiewM5329BFEE_config :	unconfig
18678e585f02STsiChung Liew	@case "$@" in \
18688e585f02STsiChung Liew	M5329AFEE_config)	NAND=0;; \
18698e585f02STsiChung Liew	M5329BFEE_config)	NAND=16;; \
18708e585f02STsiChung Liew	esac; \
18718e585f02STsiChung Liew	if [ "$${NAND}" != "0" ] ; then \
1872ab77bc54STsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
18738e585f02STsiChung Liew	fi
18748e585f02STsiChung Liew	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
18758e585f02STsiChung Liew
1876aa5f1f9dSTsiChungLiewM5373EVB_config :	unconfig
1877aa5f1f9dSTsiChungLiew	@case "$@" in \
1878aa5f1f9dSTsiChungLiew	M5373EVB_config)	NAND=16;; \
1879aa5f1f9dSTsiChungLiew	esac; \
1880aa5f1f9dSTsiChungLiew	if [ "$${NAND}" != "0" ] ; then \
1881aa5f1f9dSTsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
1882aa5f1f9dSTsiChungLiew	fi
1883aa5f1f9dSTsiChungLiew	@$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1884aa5f1f9dSTsiChungLiew
18858ae158cdSTsiChungLiewM54455EVB_config \
18868ae158cdSTsiChungLiewM54455EVB_atmel_config \
18878ae158cdSTsiChungLiewM54455EVB_intel_config \
18888ae158cdSTsiChungLiewM54455EVB_a33_config \
18898ae158cdSTsiChungLiewM54455EVB_a66_config \
18908ae158cdSTsiChungLiewM54455EVB_i33_config \
18918ae158cdSTsiChungLiewM54455EVB_i66_config :	unconfig
18928ae158cdSTsiChungLiew	@case "$@" in \
18938ae158cdSTsiChungLiew	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
18948ae158cdSTsiChungLiew	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
18958ae158cdSTsiChungLiew	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
18968ae158cdSTsiChungLiew	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
18978ae158cdSTsiChungLiew	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
18988ae158cdSTsiChungLiew	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
18998ae158cdSTsiChungLiew	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
19008ae158cdSTsiChungLiew	esac; \
19011aaab9bfSWolfgang Denk	if [ "$${FLASH}" = "INTEL" ] ; then \
19024a442d31STsiChungLiew		echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1903e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1904e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1905ae6d1056SWolfgang Denk		$(XECHO) "... with INTEL boot..." ; \
19068ae158cdSTsiChungLiew	else \
19074a442d31STsiChungLiew		echo "#define CFG_ATMEL_BOOT"	>> $(obj)include/config.h ; \
1908e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1909e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1910ae6d1056SWolfgang Denk		$(XECHO) "... with ATMEL boot..." ; \
19118ae158cdSTsiChungLiew	fi; \
19124a442d31STsiChungLiew	echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1913ae6d1056SWolfgang Denk	$(XECHO) "... with $${FREQ}Hz input clock"
19148ae158cdSTsiChungLiew	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
19158ae158cdSTsiChungLiew
191657a12720STsiChungLiewM5475AFE_config \
191757a12720STsiChungLiewM5475BFE_config \
191857a12720STsiChungLiewM5475CFE_config \
191957a12720STsiChungLiewM5475DFE_config \
192057a12720STsiChungLiewM5475EFE_config \
192157a12720STsiChungLiewM5475FFE_config \
192257a12720STsiChungLiewM5475GFE_config :	unconfig
192357a12720STsiChungLiew	@case "$@" in \
192457a12720STsiChungLiew	M5475AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
192557a12720STsiChungLiew	M5475BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
192657a12720STsiChungLiew	M5475CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
192757a12720STsiChungLiew	M5475DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
192857a12720STsiChungLiew	M5475EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
192957a12720STsiChungLiew	M5475FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
193057a12720STsiChungLiew	M5475GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
193157a12720STsiChungLiew	esac; \
193257a12720STsiChungLiew	echo "#define CFG_BUSCLK	133333333" > $(obj)include/config.h ; \
193357a12720STsiChungLiew	echo "#define CFG_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
193457a12720STsiChungLiew	echo "#define CFG_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
193557a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
193657a12720STsiChungLiew		echo "#define CFG_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
193757a12720STsiChungLiew	fi; \
193857a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
193957a12720STsiChungLiew		echo "#define CFG_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
194057a12720STsiChungLiew	fi; \
194157a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
194257a12720STsiChungLiew		echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
194357a12720STsiChungLiew	fi; \
194457a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
194557a12720STsiChungLiew		echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
194657a12720STsiChungLiew	fi
194757a12720STsiChungLiew	@$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
194857a12720STsiChungLiew
194957a12720STsiChungLiewM5485AFE_config \
195057a12720STsiChungLiewM5485BFE_config \
195157a12720STsiChungLiewM5485CFE_config \
195257a12720STsiChungLiewM5485DFE_config \
195357a12720STsiChungLiewM5485EFE_config \
195457a12720STsiChungLiewM5485FFE_config \
195557a12720STsiChungLiewM5485GFE_config \
195657a12720STsiChungLiewM5485HFE_config :	unconfig
195757a12720STsiChungLiew	@case "$@" in \
195857a12720STsiChungLiew	M5485AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
195957a12720STsiChungLiew	M5485BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
196057a12720STsiChungLiew	M5485CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
196157a12720STsiChungLiew	M5485DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
196257a12720STsiChungLiew	M5485EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
196357a12720STsiChungLiew	M5485FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
196457a12720STsiChungLiew	M5485GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
19654d264effSTsiChungLiew	M5485HFE_config)	BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
196657a12720STsiChungLiew	esac; \
196757a12720STsiChungLiew	echo "#define CFG_BUSCLK	100000000" > $(obj)include/config.h ; \
196857a12720STsiChungLiew	echo "#define CFG_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
196957a12720STsiChungLiew	echo "#define CFG_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
197057a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
197157a12720STsiChungLiew		echo "#define CFG_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
197257a12720STsiChungLiew	fi; \
197357a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
197457a12720STsiChungLiew		echo "#define CFG_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
197557a12720STsiChungLiew	fi; \
197657a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
197757a12720STsiChungLiew		echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
197857a12720STsiChungLiew	fi; \
197957a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
198057a12720STsiChungLiew		echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
198157a12720STsiChungLiew	fi
198257a12720STsiChungLiew	@$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
198357a12720STsiChungLiew
19847ebf7443Swdenk#########################################################################
1985f046ccd1SEran Liberty## MPC83xx Systems
1986f046ccd1SEran Liberty#########################################################################
1987f046ccd1SEran Liberty
19885c5d3242SKim PhillipsMPC8313ERDB_33_config \
19895c5d3242SKim PhillipsMPC8313ERDB_66_config: unconfig
1990cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1991c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
1992ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
1993cdd917a4SWolfgang Denk		echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
19945c5d3242SKim Phillips	fi ; \
19955c5d3242SKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
1996ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
1997cdd917a4SWolfgang Denk		echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
19985c5d3242SKim Phillips	fi ;
1999e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
20005c5d3242SKim Phillips
20018bd522ceSDave LiuMPC8315ERDB_config: unconfig
20028bd522ceSDave Liu	@$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
20038bd522ceSDave Liu
20041c274c4eSKim PhillipsMPC8323ERDB_config:	unconfig
20051c274c4eSKim Phillips	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
20061c274c4eSKim Phillips
20074decd84eSKim PhillipsMPC832XEMDS_config \
20084decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
20094decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
2010281df457STony LiMPC832XEMDS_SLAVE_config \
2011281df457STony LiMPC832XEMDS_ATM_config:	unconfig
2012cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2013c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2014ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2015cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
20164decd84eSKim Phillips	fi ; \
20174decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2018ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2019cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2020cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
20214decd84eSKim Phillips	fi ; \
20224decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
2023ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2024cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2025281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
20264decd84eSKim Phillips	fi ; \
20274decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2028ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2029cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2030281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2031281df457STony Li	fi ; \
2032281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2033ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2034281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2035281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
20364decd84eSKim Phillips	fi ;
2037e58fe957SKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2038e6f2e902SMarian Balakowicz
2039991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
2040e58fe957SKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2041991425feSMarian Balakowicz
20427a78f148STimur TabiMPC8349ITX_config \
20437a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
20447a78f148STimur TabiMPC8349ITXGP_config:	unconfig
20457a78f148STimur Tabi	@mkdir -p $(obj)include
2046e21659e3SSam Sparks	@mkdir -p $(obj)board/freescale/mpc8349itx
20477a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
20487a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
2049e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
20507a78f148STimur Tabi	fi
20517a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
2052e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
20537a78f148STimur Tabi	fi
2054e58fe957SKim Phillips	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
20554decd84eSKim Phillips
20565f820439SDave LiuMPC8360EMDS_config \
20575f820439SDave LiuMPC8360EMDS_HOST_33_config \
20585f820439SDave LiuMPC8360EMDS_HOST_66_config \
2059281df457STony LiMPC8360EMDS_SLAVE_config \
2060281df457STony LiMPC8360EMDS_ATM_config: unconfig
2061cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2062c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2063ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2064cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
20655f820439SDave Liu	fi ; \
20665f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2067ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2068cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2069cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
20705f820439SDave Liu	fi ; \
20715f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
2072ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2073cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2074281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
20755f820439SDave Liu	fi ; \
20765f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
2077ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2078cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2079281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2080281df457STony Li	fi ; \
2081281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2082ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2083281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2084281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
20855f820439SDave Liu	fi ;
2086e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
20875f820439SDave Liu
2088fab6f556SAnton VorontsovMPC8360ERDK_33_config \
2089fab6f556SAnton VorontsovMPC8360ERDK_66_config \
209091c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config:	unconfig
2091fab6f556SAnton Vorontsov	@mkdir -p $(obj)include
2092c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2093ae6d1056SWolfgang Denk		$(XECHO) -n "... CLKIN 33MHz " ; \
2094fab6f556SAnton Vorontsov		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2095fab6f556SAnton Vorontsov	fi ;
2096fab6f556SAnton Vorontsov	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2097fab6f556SAnton Vorontsov
209819580e66SDave LiuMPC837XEMDS_config \
209919580e66SDave LiuMPC837XEMDS_HOST_config:	unconfig
210019580e66SDave Liu	@mkdir -p $(obj)include
2101c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2102ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
210319580e66SDave Liu		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
210419580e66SDave Liu	fi ;
210519580e66SDave Liu	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
210619580e66SDave Liu
21075e918a98SKim PhillipsMPC837XERDB_config:	unconfig
21085e918a98SKim Phillips	@$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
21095e918a98SKim Phillips
211091e25769SPaul Gortmakersbc8349_config:		unconfig
211191e25769SPaul Gortmaker	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
211291e25769SPaul Gortmaker
21134decd84eSKim PhillipsTQM834x_config:	unconfig
21144decd84eSKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
21154decd84eSKim Phillips
21162ad6b513STimur Tabi
2117f046ccd1SEran Liberty#########################################################################
211842d1f039Swdenk## MPC85xx Systems
211942d1f039Swdenk#########################################################################
212042d1f039Swdenk
21217bd6104bSrobert lazarskiATUM8548_config:	unconfig
21227bd6104bSrobert lazarski	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
21237bd6104bSrobert lazarski
212442d1f039SwdenkMPC8540ADS_config:	unconfig
2125c2d943ffSKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
212642d1f039Swdenk
2127b0e32949SLunsheng WangMPC8540EVAL_config \
2128b0e32949SLunsheng WangMPC8540EVAL_33_config \
2129b0e32949SLunsheng WangMPC8540EVAL_66_config \
2130b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
2131b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:	  unconfig
2132f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2133c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2134ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2135b0e32949SLunsheng Wang	else \
2136f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2137ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2138b0e32949SLunsheng Wang	fi ; \
2139b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
2140f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2141ae6d1056SWolfgang Denk		$(XECHO) " slave" ; \
2142b0e32949SLunsheng Wang	else \
2143ae6d1056SWolfgang Denk		$(XECHO) " host" ; \
2144b0e32949SLunsheng Wang	fi
2145f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2146b0e32949SLunsheng Wang
214742d1f039SwdenkMPC8560ADS_config:	unconfig
2148870ceac5SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
214942d1f039Swdenk
21507f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \
215103f5c550SwdenkMPC8541CDS_config:	unconfig
21527f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2153c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
21547f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2155ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
21567f3f2bd2SRandy Vinson	fi
2157415a613bSKumar Gala	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
215803f5c550Swdenk
215981f481caSAndy FlemingMPC8544DS_config:	unconfig
216081f481caSAndy Fleming	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
216181f481caSAndy Fleming
21627f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \
2163d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
21647f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2165c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
21667f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2167ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
21687f3f2bd2SRandy Vinson	fi
2169415a613bSKumar Gala	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2170d9b94f28SJon Loeliger
21717f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \
217203f5c550SwdenkMPC8555CDS_config:	unconfig
21737f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2174c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
21757f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2176ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
21777f3f2bd2SRandy Vinson	fi
2178415a613bSKumar Gala	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
21797abf0c58Swdenk
218067431059SAndy FlemingMPC8568MDS_config:	unconfig
2181acbca876SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
218267431059SAndy Fleming
2183384cc687SwdenkPM854_config:	unconfig
2184f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2185384cc687Swdenk
2186b20d0032SWolfgang DenkPM856_config:	unconfig
2187f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2188b20d0032SWolfgang Denk
2189c15f3120Swdenksbc8540_config \
2190c15f3120Swdenksbc8540_33_config \
2191c15f3120Swdenksbc8540_66_config:	unconfig
2192f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2193c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2194f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2195ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2196c15f3120Swdenk	else \
2197ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2198c15f3120Swdenk	fi
2199f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2200c15f3120Swdenk
220111c45ebdSJoe Hammansbc8548_config:		unconfig
220211c45ebdSJoe Hamman	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
220311c45ebdSJoe Hamman
2204466b7410Swdenksbc8560_config \
2205466b7410Swdenksbc8560_33_config \
2206466b7410Swdenksbc8560_66_config:	unconfig
2207f9328639SMarian Balakowicz	@mkdir -p $(obj)include
22088b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2209f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2210ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
22118b07a110Swdenk	else \
2212ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
22138b07a110Swdenk	fi
2214f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
22158b07a110Swdenk
22165d108ac8SSergei Poselenovsocrates_config:	unconfig
22175d108ac8SSergei Poselenov	@$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
22185d108ac8SSergei Poselenov
221903f5c550Swdenkstxgp3_config:		unconfig
2220f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
222103f5c550Swdenk
2222ee152983SWolfgang Denkstxssa_config		\
2223ee152983SWolfgang Denkstxssa_4M_config:	unconfig
2224ee152983SWolfgang Denk	@mkdir -p $(obj)include
2225ee152983SWolfgang Denk	@if [ "$(findstring _4M_,$@)" ] ; then \
2226ee152983SWolfgang Denk		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2227ae6d1056SWolfgang Denk		$(XECHO) "... with 4 MiB flash memory" ; \
2228ee152983SWolfgang Denk	fi
2229ee152983SWolfgang Denk	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
223035171dc0SDan Malek
2231d96f41e0SStefan RoeseTQM8540_config		\
2232d96f41e0SStefan RoeseTQM8541_config		\
2233d96f41e0SStefan RoeseTQM8555_config		\
2234f5c5ef4aSwdenkTQM8560_config:		unconfig
2235f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2236a889bd27SWolfgang Denk	@CTYPE=$(subst TQM,,$(@:_config=)); \
2237ae6d1056SWolfgang Denk	$(XECHO) "... TQM"$${CTYPE}; \
2238f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2239f9328639SMarian Balakowicz	echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2240f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2241f9328639SMarian Balakowicz	echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
22428a783a65SGrant Likely	echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
2243f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
2244f5c5ef4aSwdenk
224542d1f039Swdenk#########################################################################
2246debb7354SJon Loeliger## MPC86xx Systems
2247debb7354SJon Loeliger#########################################################################
2248debb7354SJon Loeliger
22493c89d754SJon LoeligerMPC8610HPCD_config:	unconfig
22503c89d754SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
22513c89d754SJon Loeliger
2252debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
22534ce91774SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2254debb7354SJon Loeliger
2255c646bba6SJoe Hammansbc8641d_config:	unconfig
225691c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2257debb7354SJon Loeliger
2258debb7354SJon Loeliger#########################################################################
22597ebf7443Swdenk## 74xx/7xx Systems
22607ebf7443Swdenk#########################################################################
22617ebf7443Swdenk
2262c7de829cSwdenkAmigaOneG3SE_config:	unconfig
2263f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2264c7de829cSwdenk
226515647dc7SwdenkBAB7xx_config: unconfig
2266f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
226715647dc7Swdenk
2268c419d1d6SstroeseCPCI750_config:	unconfig
2269f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2270c419d1d6Sstroese
22713a473b2aSwdenkDB64360_config:	unconfig
2272f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
22733a473b2aSwdenk
22743a473b2aSwdenkDB64460_config:	unconfig
2275f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
22763a473b2aSwdenk
227715647dc7SwdenkELPPC_config: unconfig
2278f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
227915647dc7Swdenk
22807ebf7443SwdenkEVB64260_config	\
22817ebf7443SwdenkEVB64260_750CX_config:	unconfig
2282f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
22837ebf7443Swdenk
22844c52783bSroy zangmpc7448hpc2_config:  unconfig
22857f1d846eSJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
22864c52783bSroy zang
228715647dc7SwdenkP3G4_config: unconfig
2288f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
22897ebf7443Swdenk
22901eac2a71SStefan Roesep3m750_config	\
22911eac2a71SStefan Roesep3m7448_config:		unconfig
22921eac2a71SStefan Roese	@mkdir -p $(obj)include
22931eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
22941eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
22951eac2a71SStefan Roese	else \
22961eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
22971eac2a71SStefan Roese	fi
22981eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
22991eac2a71SStefan Roese
23007ebf7443SwdenkPCIPPC2_config \
23017ebf7443SwdenkPCIPPC6_config: unconfig
2302f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
23037ebf7443Swdenk
230415647dc7SwdenkZUMA_config:	unconfig
2305f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
230612f34241Swdenk
2307f5e0d039SHeiko Schocherppmc7xx_config: unconfig
2308f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2309f5e0d039SHeiko Schocher
23107ebf7443Swdenk#========================================================================
23117ebf7443Swdenk# ARM
23127ebf7443Swdenk#========================================================================
23137ebf7443Swdenk#########################################################################
23147ebf7443Swdenk## StrongARM Systems
23157ebf7443Swdenk#########################################################################
23167ebf7443Swdenk
2317ea66bc88Swdenkassabet_config	:	unconfig
2318f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2319ea66bc88Swdenk
23207ebf7443Swdenkdnp1110_config	:	unconfig
2321f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
23227ebf7443Swdenk
2323855a496fSwdenkgcplus_config	:	unconfig
2324f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2325855a496fSwdenk
2326855a496fSwdenklart_config	:	unconfig
2327f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
2328855a496fSwdenk
23297ebf7443Swdenkshannon_config	:	unconfig
2330f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
23317ebf7443Swdenk
23327ebf7443Swdenk#########################################################################
23332e5983d2Swdenk## ARM92xT Systems
23347ebf7443Swdenk#########################################################################
23357ebf7443Swdenk
2336a4b46ed6SUlf Samuelsson#########################################################################
2337a4b46ed6SUlf Samuelsson## Atmel AT91RM9200 Systems
2338a4b46ed6SUlf Samuelsson#########################################################################
233920b197c6SStelian Pop
2340a85f9f21Swdenkat91rm9200dk_config	:	unconfig
234165230107SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2342a85f9f21Swdenk
2343d99a8ff6SStelian Popat91sam9261ek_config	:	unconfig
2344d99a8ff6SStelian Pop	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9261ek atmel at91sam9
2345d99a8ff6SStelian Pop
23468e429b3eSStelian Popat91sam9263ek_config	:	unconfig
23478e429b3eSStelian Pop	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9263ek atmel at91sam9
23488e429b3eSStelian Pop
23492118ebb4SStelian Popat91sam9rlek_config	:	unconfig
23502118ebb4SStelian Pop	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9rlek atmel at91sam9
23512118ebb4SStelian Pop
2352a85f9f21Swdenkcmc_pu2_config	:	unconfig
2353f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2354a85f9f21Swdenk
2355645da510SWolfgang Denkcsb637_config	:	unconfig
2356f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2357645da510SWolfgang Denk
2358a4b46ed6SUlf Samuelssonkb9202_config	:	unconfig
2359a4b46ed6SUlf Samuelsson	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2360a4b46ed6SUlf Samuelsson
23610e4018d2SWolfgang Denkmp2usb_config	:	unconfig
2362f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
23630e4018d2SWolfgang Denk
2364ea8d989fSTimo Tuunainenm501sk_config	:	unconfig
2365ea8d989fSTimo Tuunainen	@$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
236687cb6862SWolfgang Denk
2367a4b46ed6SUlf Samuelsson#########################################################################
2368a4b46ed6SUlf Samuelsson## Atmel ARM926EJ-S Systems
2369a4b46ed6SUlf Samuelsson#########################################################################
2370a4b46ed6SUlf Samuelsson
2371a4b46ed6SUlf Samuelssonat91cap9adk_config	:	unconfig
2372a4b46ed6SUlf Samuelsson	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91sam9
2373a4b46ed6SUlf Samuelsson
2374a4b46ed6SUlf Samuelssonat91sam9260ek_config	:	unconfig
2375a4b46ed6SUlf Samuelsson	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91sam9
2376a4b46ed6SUlf Samuelsson
237774f4304eSWolfgang Denk########################################################################
237887cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
237987cb6862SWolfgang Denkintegratorap_config	\
238087cb6862SWolfgang Denkap_config		\
238187cb6862SWolfgang Denkap966_config		\
238287cb6862SWolfgang Denkap922_config		\
238387cb6862SWolfgang Denkap922_XA10_config	\
238487cb6862SWolfgang Denkap7_config		\
238587cb6862SWolfgang Denkap720t_config		\
238687cb6862SWolfgang Denkap920t_config		\
238787cb6862SWolfgang Denkap926ejs_config		\
238887cb6862SWolfgang Denkap946es_config: unconfig
238996782c63SWolfgang Denk	@board/integratorap/split_by_variant.sh $@
23903d3befa7Swdenk
239187cb6862SWolfgang Denkintegratorcp_config	\
239287cb6862SWolfgang Denkcp_config		\
239387cb6862SWolfgang Denkcp920t_config		\
239487cb6862SWolfgang Denkcp926ejs_config		\
239587cb6862SWolfgang Denkcp946es_config		\
239687cb6862SWolfgang Denkcp1136_config		\
239787cb6862SWolfgang Denkcp966_config		\
239887cb6862SWolfgang Denkcp922_config		\
239987cb6862SWolfgang Denkcp922_XA10_config	\
240087cb6862SWolfgang Denkcp1026_config: unconfig
240196782c63SWolfgang Denk	@board/integratorcp/split_by_variant.sh $@
240225d6712aSwdenk
2403f832d8a1Swdenklpd7a400_config \
2404f832d8a1Swdenklpd7a404_config:	unconfig
2405f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
24063d3befa7Swdenk
2407281e00a3Swdenkmx1ads_config	:	unconfig
2408f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2409281e00a3Swdenk
2410281e00a3Swdenkmx1fs2_config	:	unconfig
2411f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2412281e00a3Swdenk
2413ac7eb8a3SWolfgang Denknetstar_config:		unconfig
2414f4e7cbfcSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm925t netstar
2415ac7eb8a3SWolfgang Denk
24162e5983d2Swdenkomap1510inn_config :	unconfig
2417f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
24182e5983d2Swdenk
24191eaeb58eSwdenkomap5912osk_config :	unconfig
2420f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
24211eaeb58eSwdenk
2422c74b2108SSergey Kubushyndavinci_dvevm_config :	unconfig
2423c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2424c74b2108SSergey Kubushyn
2425c74b2108SSergey Kubushyndavinci_schmoogie_config :	unconfig
2426c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2427c74b2108SSergey Kubushyn
2428c74b2108SSergey Kubushyndavinci_sonata_config :	unconfig
2429c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2430c74b2108SSergey Kubushyn
2431a4b46ed6SUlf Samuelssonxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2432a4b46ed6SUlf Samuelsson
243363e73c9aSwdenkomap1610inn_config \
243463e73c9aSwdenkomap1610inn_cs0boot_config \
243563e73c9aSwdenkomap1610inn_cs3boot_config \
24363ff02c27Swdenkomap1610inn_cs_autoboot_config \
243763e73c9aSwdenkomap1610h2_config \
243863e73c9aSwdenkomap1610h2_cs0boot_config \
24393ff02c27Swdenkomap1610h2_cs3boot_config \
24403ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
2441f9328639SMarian Balakowicz	@mkdir -p $(obj)include
244263e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2443cdd917a4SWolfgang Denk		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2444ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
24453ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2446cdd917a4SWolfgang Denk		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2447ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS_AUTO boot"; \
244863e73c9aSwdenk	else \
2449cdd917a4SWolfgang Denk		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2450ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
245163e73c9aSwdenk	fi;
2452f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
24536f21347dSwdenk
2454a4b46ed6SUlf Samuelssonxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2455a4b46ed6SUlf Samuelsson
2456a56bd922Swdenkomap730p2_config \
2457a56bd922Swdenkomap730p2_cs0boot_config \
2458a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
2459f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2460a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2461f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2462ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
2463a56bd922Swdenk	else \
2464f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2465ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
2466a56bd922Swdenk	fi;
2467f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2468a56bd922Swdenk
246932cb2c70SWolfgang Denksbc2410x_config: unconfig
2470f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
247132cb2c70SWolfgang Denk
2472281e00a3Swdenkscb9328_config	:	unconfig
2473f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2474281e00a3Swdenk
24757ebf7443Swdenksmdk2400_config	:	unconfig
2476f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
24777ebf7443Swdenk
24787ebf7443Swdenksmdk2410_config	:	unconfig
2479f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
24807ebf7443Swdenk
24812d24a3a7SwdenkSX1_config :		unconfig
2482f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t sx1
24832d24a3a7Swdenk
2484b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
2485a4b46ed6SUlf Samuelssonxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2486a4b46ed6SUlf Samuelsson
248743d9616cSwdenktrab_config \
2488b0639ca3Swdenktrab_bigram_config \
2489b0639ca3Swdenktrab_bigflash_config \
2490f54ebdfaSwdenktrab_old_config:	unconfig
2491f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2492f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
2493b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
2494f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2495f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
2496ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2497b0639ca3Swdenk		}
2498b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
2499f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2500f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2501ae6d1056SWolfgang Denk		  $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2502f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2503b0639ca3Swdenk		}
2504f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
2505f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2506f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2507ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2508f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
250943d9616cSwdenk		}
2510f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
25117ebf7443Swdenk
25121cb8e980SwdenkVCMA9_config	:	unconfig
2513f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
25141cb8e980Swdenk
251587cb6862SWolfgang Denk#========================================================================
251687cb6862SWolfgang Denk# ARM supplied Versatile development boards
251787cb6862SWolfgang Denk#========================================================================
251887cb6862SWolfgang Denkversatile_config	\
251987cb6862SWolfgang Denkversatileab_config	\
252087cb6862SWolfgang Denkversatilepb_config :	unconfig
252196782c63SWolfgang Denk	@board/versatile/split_by_variant.sh $@
2522074cff0dSwdenk
25233c2b3d45Swdenkvoiceblue_config:	unconfig
25244fedfddfSLadislav Michl	@$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
25253c2b3d45Swdenk
252616b013e7Swdenkcm4008_config	:	unconfig
2527f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
252816b013e7Swdenk
252916b013e7Swdenkcm41xx_config	:	unconfig
2530f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
253116b013e7Swdenk
2532074cff0dSwdenk#########################################################################
2533074cff0dSwdenk## S3C44B0 Systems
2534074cff0dSwdenk#########################################################################
2535074cff0dSwdenk
2536074cff0dSwdenkB2_config	:	unconfig
2537f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2538074cff0dSwdenk
25397ebf7443Swdenk#########################################################################
25407ebf7443Swdenk## ARM720T Systems
25417ebf7443Swdenk#########################################################################
25427ebf7443Swdenk
2543c570b2fdSWolfgang Denkarmadillo_config:	unconfig
2544f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2545c570b2fdSWolfgang Denk
25467ebf7443Swdenkep7312_config	:	unconfig
2547f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
25487ebf7443Swdenk
25492d24a3a7Swdenkimpa7_config	:	unconfig
2550f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
25512d24a3a7Swdenk
25522d1a537dSwdenkmodnet50_config :	unconfig
2553f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
25542d1a537dSwdenk
255539539887Swdenkevb4510_config :	unconfig
2556f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
255739539887Swdenk
25586bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
2559b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2560b0d8f5bfSPeter Pearse
2561b0d8f5bfSPeter PearseSMN42_config	:	unconfig
2562b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
25636bd2447eSGary Jennejohn
25647ebf7443Swdenk#########################################################################
256543d9616cSwdenk## XScale Systems
25667ebf7443Swdenk#########################################################################
25677ebf7443Swdenk
2568799891efSMichael Schwingenactux1_config	:	unconfig
2569799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux1
2570799891efSMichael Schwingen
2571799891efSMichael Schwingenactux2_config	:	unconfig
2572799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux2
2573799891efSMichael Schwingen
2574799891efSMichael Schwingenactux3_config	:	unconfig
2575799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux3
2576799891efSMichael Schwingen
2577799891efSMichael Schwingenactux4_config	:	unconfig
2578799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux4
2579799891efSMichael Schwingen
258020787e23Swdenkadsvix_config	:	unconfig
2581f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa adsvix
258220787e23Swdenk
2583fabd46acSwdenkcerf250_config :	unconfig
2584f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
2585fabd46acSwdenk
25867ebf7443Swdenkcradle_config	:	unconfig
2587f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
25887ebf7443Swdenk
25897ebf7443Swdenkcsb226_config	:	unconfig
2590f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
25917ebf7443Swdenk
259291c82076SJean-Christophe PLAGNIOL-VILLARDdelta_config :	unconfig
2593f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
25940be248faSWolfgang Denk
259543d9616cSwdenkinnokom_config	:	unconfig
2596f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
259743d9616cSwdenk
25982d5b561eSwdenkixdp425_config	:	unconfig
2599f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
26002d5b561eSwdenk
2601ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
2602f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2603ba94a1bbSWolfgang Denk
260443d9616cSwdenklubbock_config	:	unconfig
2605f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
260643d9616cSwdenk
26075720df78SHeiko Schocherpleb2_config	:	unconfig
2608f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
26095720df78SHeiko Schocher
261052f52c14Swdenklogodl_config	:	unconfig
2611f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
261252f52c14Swdenk
26139d8d5a5bSStefan Roesepdnb3_config \
26149d8d5a5bSStefan Roesescpu_config:	unconfig
2615cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
26169d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
2617cdd917a4SWolfgang Denk		echo "#define CONFIG_SCPU"	>>$(obj)include/config.h ; \
2618ae6d1056SWolfgang Denk		$(XECHO) "... on SCPU board variant" ; \
26199d8d5a5bSStefan Roese	fi
26209d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2621ba94a1bbSWolfgang Denk
2622f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
2623f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2624f57f70aaSWolfgang Denk
26255e5803e1Sstefano babictrizepsiv_config	:	unconfig
26265e5803e1Sstefano babic	@$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
26275e5803e1Sstefano babic
26283e38691eSwdenkwepep250_config	:	unconfig
2629f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
26303e38691eSwdenk
26314ec3a7f0Swdenkxaeniax_config	:	unconfig
2632f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
26334ec3a7f0Swdenk
2634efa329cbSwdenkxm250_config	:	unconfig
2635f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
2636efa329cbSwdenk
2637ca0e7748Swdenkxsengine_config :	unconfig
2638f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
2639ca0e7748Swdenk
2640e0269579SMarkus Klotzbücherzylonite_config :
2641f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
2642e0269579SMarkus Klotzbücher
26438ed96046Swdenk#########################################################################
26448ed96046Swdenk## ARM1136 Systems
26458ed96046Swdenk#########################################################################
26468ed96046Swdenkomap2420h4_config	: unconfig
26475252ed95SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
26485ca9881aSPeter Pearse
26495ca9881aSPeter Pearseapollon_config		: unconfig
2650c6fe4dabSWolfgang Denk	@mkdir -p $(obj)include
2651751b9b51SKyungmin Park	@echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
26525252ed95SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2653751b9b51SKyungmin Park	@echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
26548ed96046Swdenk
2655caebc95bSSascha Hauerimx31_litekit_config	: unconfig
2656caebc95bSSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2657caebc95bSSascha Hauer
26585ad86216SSascha Hauerimx31_phycore_config	: unconfig
26595ad86216SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
26605ad86216SSascha Hauer
2661b5dc9b30SGuennadi Liakhovetskimx31ads_config		: unconfig
2662b5dc9b30SGuennadi Liakhovetski	@$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads NULL mx31
2663b5dc9b30SGuennadi Liakhovetski
26642262cfeeSwdenk#========================================================================
26652262cfeeSwdenk# i386
26662262cfeeSwdenk#========================================================================
26672262cfeeSwdenk#########################################################################
26682262cfeeSwdenk## AMD SC520 CDP
26692262cfeeSwdenk#########################################################################
26702262cfeeSwdenksc520_cdp_config	:	unconfig
2671f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
26722262cfeeSwdenk
26737a8e9bedSwdenksc520_spunk_config	:	unconfig
2674f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
26757a8e9bedSwdenk
26767a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
2677f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
26787a8e9bedSwdenk
267943d9616cSwdenk#========================================================================
268043d9616cSwdenk# MIPS
268143d9616cSwdenk#========================================================================
26827ebf7443Swdenk#########################################################################
268343d9616cSwdenk## MIPS32 4Kc
268443d9616cSwdenk#########################################################################
268543d9616cSwdenk
2686e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2687e0ac62d7Swdenk
2688e0ac62d7Swdenkincaip_100MHz_config	\
2689e0ac62d7Swdenkincaip_133MHz_config	\
2690e0ac62d7Swdenkincaip_150MHz_config	\
269143d9616cSwdenkincaip_config: unconfig
2692f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2693e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
2694f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2695ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
2696e0ac62d7Swdenk		}
2697e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
2698f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2699ae6d1056SWolfgang Denk		  $(XECHO) "... with 133MHz system clock" ; \
2700e0ac62d7Swdenk		}
2701e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
2702f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2703ae6d1056SWolfgang Denk		  $(XECHO) "... with 150MHz system clock" ; \
2704e0ac62d7Swdenk		}
2705f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2706e0ac62d7Swdenk
2707f4863a7aSwdenktb0229_config: unconfig
2708f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
2709f4863a7aSwdenk
2710e0ac62d7Swdenk#########################################################################
271169459791Swdenk## MIPS32 AU1X00
271269459791Swdenk#########################################################################
271369459791Swdenkdbau1000_config		:	unconfig
2714f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2715210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2716f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
271769459791Swdenk
271869459791Swdenkdbau1100_config		:	unconfig
2719f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2720210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2721f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
272269459791Swdenk
272369459791Swdenkdbau1500_config		:	unconfig
2724f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2725210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2726f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
272769459791Swdenk
2728ff36fd85Swdenkdbau1550_config		:	unconfig
2729f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2730210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2731f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2732ff36fd85Swdenk
2733ff36fd85Swdenkdbau1550_el_config	:	unconfig
2734f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2735210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2736f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2737ff36fd85Swdenk
2738265817c7SWolfgang Denkpb1000_config		:	unconfig
2739f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2740210ed200SWolfgang Denk	@echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2741f9328639SMarian Balakowicz	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
2742265817c7SWolfgang Denk
27438a773983SShinya Kuribayashigth2_config:	unconfig
27448a773983SShinya Kuribayashi	@mkdir -p $(obj)include
27458a773983SShinya Kuribayashi	@echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
27468a773983SShinya Kuribayashi	@$(MKCONFIG) -a gth2 mips mips gth2
27478a773983SShinya Kuribayashi
27480764c164SVlad Lunguqemu_mips_config: unconfig
27490764c164SVlad Lungu	@mkdir -p $(obj)include
2750210ed200SWolfgang Denk	@echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
27510764c164SVlad Lungu	@$(MKCONFIG) -a qemu-mips mips mips qemu-mips
27520764c164SVlad Lungu
275369459791Swdenk#########################################################################
2754e0ac62d7Swdenk## MIPS64 5Kc
2755e0ac62d7Swdenk#########################################################################
275643d9616cSwdenk
27573e38691eSwdenkpurple_config :		unconfig
2758f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
275943d9616cSwdenk
27604a551709Swdenk#========================================================================
27614a551709Swdenk# Nios
27624a551709Swdenk#========================================================================
27634a551709Swdenk#########################################################################
27644a551709Swdenk## Nios32
27654a551709Swdenk#########################################################################
27664a551709Swdenk
2767c935d3bdSwdenkDK1C20_safe_32_config		\
2768c935d3bdSwdenkDK1C20_standard_32_config	\
27694a551709SwdenkDK1C20_config:	unconfig
2770f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2771c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2772f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2773ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
2774c935d3bdSwdenk		}
2775c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2776f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2777ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
2778c935d3bdSwdenk		}
2779c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
2780f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2781ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2782c935d3bdSwdenk		}
2783f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2784c935d3bdSwdenk
2785c935d3bdSwdenkDK1S10_safe_32_config		\
2786c935d3bdSwdenkDK1S10_standard_32_config	\
2787ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
2788c935d3bdSwdenkDK1S10_config:	unconfig
2789f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2790c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2791f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2792ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
2793c935d3bdSwdenk		}
2794c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2795f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2796ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
2797c935d3bdSwdenk		}
2798ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2799f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2800ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2801ec4c544bSwdenk		}
2802c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
2803f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2804ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2805c935d3bdSwdenk		}
2806f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
28074a551709Swdenk
2808aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
2809aaf224abSwdenkADNPESC1_base_32_config		\
2810aaf224abSwdenkADNPESC1_config: unconfig
2811f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2812aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
2813f9328639SMarian Balakowicz		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2814ae6d1056SWolfgang Denk		  $(XECHO) "... DNP/EVA2 configuration" ; \
2815aaf224abSwdenk		}
2816aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
2817f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2818ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration" ; \
2819aaf224abSwdenk		}
2820aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2821f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2822ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2823aaf224abSwdenk		}
2824f9328639SMarian Balakowicz	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2825aaf224abSwdenk
28265c952cf0Swdenk#########################################################################
28275c952cf0Swdenk## Nios-II
28285c952cf0Swdenk#########################################################################
28295c952cf0Swdenk
28309cc83378SScott McNuttEP1C20_config : unconfig
2831f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
28329cc83378SScott McNutt
28339cc83378SScott McNuttEP1S10_config : unconfig
2834f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
28359cc83378SScott McNutt
28369cc83378SScott McNuttEP1S40_config : unconfig
2837f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
28389cc83378SScott McNutt
28395c952cf0SwdenkPK1C20_config : unconfig
2840f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
28415c952cf0Swdenk
28425c952cf0SwdenkPCI5441_config : unconfig
2843f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
28444a551709Swdenk
2845507bbe3eSwdenk#========================================================================
2846507bbe3eSwdenk# MicroBlaze
2847507bbe3eSwdenk#========================================================================
2848507bbe3eSwdenk#########################################################################
2849507bbe3eSwdenk## Microblaze
2850507bbe3eSwdenk#########################################################################
2851507bbe3eSwdenksuzaku_config:	unconfig
2852f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2853210ed200SWolfgang Denk	@echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
2854f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2855507bbe3eSwdenk
2856cfc67116SMichal Simekml401_config:	unconfig
2857cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2858210ed200SWolfgang Denk	@echo "#define CONFIG_ML401 1" > $(obj)include/config.h
285990b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2860cfc67116SMichal Simek
286117980495SMichal Simekxupv2p_config:	unconfig
2862cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2863210ed200SWolfgang Denk	@echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
286490b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
286517980495SMichal Simek
286660fa72d6SMike Frysinger#========================================================================
286760fa72d6SMike Frysinger# Blackfin
286860fa72d6SMike Frysinger#========================================================================
28690afe519aSWolfgang Denk
287060fa72d6SMike Frysinger# Analog Devices boards
287160fa72d6SMike FrysingerBFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
28720afe519aSWolfgang Denk
287360fa72d6SMike Frysinger$(BFIN_BOARDS:%=%_config)	: unconfig
28749171fc81SMike Frysinger	@$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
287526bf7decSAubrey Li
287660fa72d6SMike Frysinger$(BFIN_BOARDS):
287760fa72d6SMike Frysinger	$(MAKE) $@_config
287860fa72d6SMike Frysinger	$(MAKE)
28790afe519aSWolfgang Denk
28805e3b0bc1SHaavard Skinnemoen#========================================================================
28815e3b0bc1SHaavard Skinnemoen# AVR32
28825e3b0bc1SHaavard Skinnemoen#========================================================================
28835e3b0bc1SHaavard Skinnemoen#########################################################################
2884a4b46ed6SUlf Samuelsson## AT32AP70xx
28855e3b0bc1SHaavard Skinnemoen#########################################################################
28865e3b0bc1SHaavard Skinnemoen
28875e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
288836f28f8aSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
28895e3b0bc1SHaavard Skinnemoen
2890667568dbSHaavard Skinnemoenatstk1003_config	:	unconfig
2891667568dbSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2892667568dbSHaavard Skinnemoen
289364ff2357SHaavard Skinnemoenatstk1004_config	:	unconfig
289464ff2357SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
28950afe519aSWolfgang Denk
28960a2e4879SHaavard Skinnemoenatstk1006_config	:	unconfig
28970a2e4879SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
28980a2e4879SHaavard Skinnemoen
28996b443944SHaavard Skinnemoenatngw100_config	:	unconfig
29006b443944SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
29016b443944SHaavard Skinnemoen
29020afe519aSWolfgang Denk#########################################################################
29030afe519aSWolfgang Denk#########################################################################
29043e38691eSwdenk#########################################################################
29057ebf7443Swdenk
290669df3c4dSNobuhiro Iwamatsu#########################################################################
2907b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH)
2908b2b5e2bbSYoshihiro Shimoda#########################################################################
29093313e0e2SMark Jonasmpr2_config: unconfig
29103313e0e2SMark Jonas	@ >include/config.h
29113313e0e2SMark Jonas	@echo "#define CONFIG_MPR2 1" >> include/config.h
29123313e0e2SMark Jonas	@$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
29133313e0e2SMark Jonas
2914b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig
2915210ed200SWolfgang Denk	@echo "#define CONFIG_MS7720SE 1" > include/config.h
291691c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
2917b2b5e2bbSYoshihiro Shimoda
2918b2b5e2bbSYoshihiro Shimoda#########################################################################
291969df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH)
292069df3c4dSNobuhiro Iwamatsu#########################################################################
292169df3c4dSNobuhiro Iwamatsums7750se_config: unconfig
2922210ed200SWolfgang Denk	@echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
292391c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
292469df3c4dSNobuhiro Iwamatsu
2925d91ea45dSNobuhiro Iwamatsums7722se_config :	unconfig
2926210ed200SWolfgang Denk	@echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
292791c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
29287a8e9bedSwdenk
2929c2042f59Sgoda.yusukeMigoR_config :       unconfig
2930c2042f59Sgoda.yusuke	@ >include/config.h
2931c2042f59Sgoda.yusuke	@echo "#define CONFIG_MIGO_R 1" >> include/config.h
2932c2042f59Sgoda.yusuke	@./mkconfig -a $(@:_config=) sh sh4 MigoR
2933c2042f59Sgoda.yusuke
2934c133c1fbSYusuke Godar7780mp_config: unconfig
2935c133c1fbSYusuke Goda	@ >include/config.h
2936c133c1fbSYusuke Goda	@echo "#define CONFIG_R7780MP 1" >> include/config.h
2937c133c1fbSYusuke Goda	@./mkconfig -a $(@:_config=) sh sh4 r7780mp
2938c133c1fbSYusuke Goda
2939f5e2466fSNobuhiro Iwamatsur2dplus_config  :   unconfig
2940f5e2466fSNobuhiro Iwamatsu	@ >include/config.h
2941f5e2466fSNobuhiro Iwamatsu	@echo "#define CONFIG_R2DPLUS 1" >> include/config.h
2942f5e2466fSNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh4 r2dplus
2943f5e2466fSNobuhiro Iwamatsu
2944*7faddaecSNobuhiro Iwamatsush7763rdp_config  :   unconfig
2945*7faddaecSNobuhiro Iwamatsu	@ >include/config.h
2946*7faddaecSNobuhiro Iwamatsu	@echo "#define CONFIG_SH7763RDP 1" >> include/config.h
2947*7faddaecSNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh4 sh7763rdp
2948*7faddaecSNobuhiro Iwamatsu
2949c2f02da2SDaniel Hellstrom#========================================================================
2950c2f02da2SDaniel Hellstrom# SPARC
2951c2f02da2SDaniel Hellstrom#========================================================================
29521e9a164eSDaniel Hellstrom#########################################################################
29531e9a164eSDaniel Hellstrom## LEON3
29541e9a164eSDaniel Hellstrom#########################################################################
2955c2f02da2SDaniel Hellstrom
295671d7e4c0SDaniel Hellstrom# Gaisler GR-XC3S-1500 board
295771d7e4c0SDaniel Hellstromgr_xc3s_1500_config : unconfig
295871d7e4c0SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
295971d7e4c0SDaniel Hellstrom
29606ed8a43aSDaniel Hellstrom# Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
29616ed8a43aSDaniel Hellstromgr_cpci_ax2000_config : unconfig
29626ed8a43aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
29636ed8a43aSDaniel Hellstrom
29646940383dSDaniel Hellstrom# Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
29656940383dSDaniel Hellstrom# Development board Stratix II edition, FPGA Device EP2S60.
29666940383dSDaniel Hellstromgr_ep2s60_config: unconfig
29676940383dSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
29686940383dSDaniel Hellstrom
2969823edd8aSDaniel Hellstrom# Gaisler LEON3 GRSIM simulator
2970823edd8aSDaniel Hellstromgrsim_config : unconfig
2971823edd8aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
2972823edd8aSDaniel Hellstrom
29737ebf7443Swdenk#########################################################################
2974b330990cSDaniel Hellstrom## LEON2
2975b330990cSDaniel Hellstrom#########################################################################
2976b330990cSDaniel Hellstrom
2977ab68f921SDaniel Hellstrom# Gaisler LEON2 GRSIM simulator
2978ab68f921SDaniel Hellstromgrsim_leon2_config : unconfig
2979ab68f921SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
2980ab68f921SDaniel Hellstrom
29817ebf7443Swdenk#########################################################################
29827ebf7443Swdenk#########################################################################
29837ebf7443Swdenk#########################################################################
298485ec0bccSwdenk
29853e38691eSwdenkclean:
2986f9301e1cSWolfgang Denk	@rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
2987f9301e1cSWolfgang Denk	       $(obj)examples/hello_world  $(obj)examples/interrupt	  \
2988f9301e1cSWolfgang Denk	       $(obj)examples/mem_to_mem_idma2intr			  \
2989f9301e1cSWolfgang Denk	       $(obj)examples/sched	   $(obj)examples/smc91111_eeprom \
2990f9301e1cSWolfgang Denk	       $(obj)examples/test_burst   $(obj)examples/timer
2991f9301e1cSWolfgang Denk	@rm -f $(obj)tools/bmp_logo	   $(obj)tools/easylogo/easylogo  \
2992f9301e1cSWolfgang Denk	       $(obj)tools/env/{fw_printenv,fw_setenv}			  \
2993f9301e1cSWolfgang Denk	       $(obj)tools/envcrc					  \
2994f9301e1cSWolfgang Denk	       $(obj)tools/gdb/{astest,gdbcont,gdbsend}			  \
2995f9301e1cSWolfgang Denk	       $(obj)tools/gen_eth_addr    $(obj)tools/img2srec		  \
2996f9301e1cSWolfgang Denk	       $(obj)tools/mkimage	   $(obj)tools/mpc86x_clk	  \
2997f9301e1cSWolfgang Denk	       $(obj)tools/ncb		   $(obj)tools/ubsha1
2998f9301e1cSWolfgang Denk	@rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image}	  \
2999f9301e1cSWolfgang Denk	       $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin}	  \
3000f9301e1cSWolfgang Denk	       $(obj)board/trab/trab_fkt   $(obj)board/voiceblue/eeprom   \
3001f9301e1cSWolfgang Denk	       $(obj)board/{integratorap,integratorcp}/u-boot.lds	  \
30029171fc81SMike Frysinger	       $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
30039171fc81SMike Frysinger	       $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3004dc7746d8SWolfgang Denk	@rm -f $(obj)include/bmp_logo.h
3005dc7746d8SWolfgang Denk	@rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
30061bb707c3SKyungmin Park	@rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3007f9301e1cSWolfgang Denk	@rm -f $(obj)api_examples/demo $(VERSION_FILE)
3008ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \
30097ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
30107ebf7443Swdenk		-o -name '*.o'	-o -name '*.a'	\) -print \
30117ebf7443Swdenk		| xargs rm -f
30127ebf7443Swdenk
30137ebf7443Swdenkclobber:	clean
3014ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \( -name .depend \
30154c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
30164c0d4c3bSwdenk		-print0 \
30174c0d4c3bSwdenk		| xargs -0 rm -f
3018ffda586fSLi Yang	@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
30195013c09fSWolfgang Denk		$(obj)cscope.* $(obj)*.*~
3020ae6d1056SWolfgang Denk	@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
3021766529fcSBartlomiej Sieka	@rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
302289cdab78SMike Frysinger	@rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
30237e492d82SMarian Balakowicz	@rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
30245013c09fSWolfgang Denk	@rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3025ae6d1056SWolfgang Denk	@rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3026ae6d1056SWolfgang Denk	@[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
3027751b9b51SKyungmin Park	@[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -lname "*" -print | xargs rm -f
3028ae6d1056SWolfgang Denk	@[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f
30297ebf7443Swdenk
3030f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
30317ebf7443Swdenkmrproper \
30327ebf7443Swdenkdistclean:	clobber unconfig
3033f9328639SMarian Balakowiczelse
3034f9328639SMarian Balakowiczmrproper \
3035f9328639SMarian Balakowiczdistclean:	clobber unconfig
3036ae6d1056SWolfgang Denk	rm -rf $(obj)*
3037f9328639SMarian Balakowiczendif
30387ebf7443Swdenk
30397ebf7443Swdenkbackup:
30407ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
30417ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
30427ebf7443Swdenk
30437ebf7443Swdenk#########################################################################
3044