xref: /openbmc/u-boot/Makefile (revision 89cdab78)
17ebf7443Swdenk#
2ae6d1056SWolfgang Denk# (C) Copyright 2000-2008
37ebf7443Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
47ebf7443Swdenk#
57ebf7443Swdenk# See file CREDITS for list of people who contributed to this
67ebf7443Swdenk# project.
77ebf7443Swdenk#
87ebf7443Swdenk# This program is free software; you can redistribute it and/or
97ebf7443Swdenk# modify it under the terms of the GNU General Public License as
1045a212c4SWolfgang Denk# published by the Free Software Foundatio; either version 2 of
117ebf7443Swdenk# the License, or (at your option) any later version.
127ebf7443Swdenk#
137ebf7443Swdenk# This program is distributed in the hope that it will be useful,
147ebf7443Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of
157ebf7443Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the
167ebf7443Swdenk# GNU General Public License for more details.
177ebf7443Swdenk#
187ebf7443Swdenk# You should have received a copy of the GNU General Public License
197ebf7443Swdenk# along with this program; if not, write to the Free Software
207ebf7443Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
217ebf7443Swdenk# MA 02111-1307 USA
227ebf7443Swdenk#
237ebf7443Swdenk
24881a87ecSWolfgang DenkVERSION = 1
25754bac48SWolfgang DenkPATCHLEVEL = 3
2667a4389eSWolfgang DenkSUBLEVEL = 2
2746cb5074SWolfgang DenkEXTRAVERSION =
28881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29f9328639SMarian BalakowiczVERSION_FILE = $(obj)include/version_autogenerated.h
30881a87ecSWolfgang Denk
317ebf7443SwdenkHOSTARCH := $(shell uname -m | \
327ebf7443Swdenk	sed -e s/i.86/i386/ \
337ebf7443Swdenk	    -e s/sun4u/sparc64/ \
347ebf7443Swdenk	    -e s/arm.*/arm/ \
357ebf7443Swdenk	    -e s/sa110/arm/ \
367ebf7443Swdenk	    -e s/powerpc/ppc/ \
37a2280646SKumar Gala	    -e s/ppc64/ppc/ \
387ebf7443Swdenk	    -e s/macppc/ppc/)
397ebf7443Swdenk
40f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
417ebf7443Swdenk	    sed -e 's/\(cygwin\).*/cygwin/')
427ebf7443Swdenk
43f9d77ed3SWolfgang Denkexport	HOSTARCH HOSTOS
447ebf7443Swdenk
457ebf7443Swdenk# Deal with colliding definitions from tcsh etc.
467ebf7443SwdenkVENDOR=
477ebf7443Swdenk
487ebf7443Swdenk#########################################################################
49ae6d1056SWolfgang Denk# Allow for silent builds
50ae6d1056SWolfgang Denkifeq (,$(findstring s,$(MAKEFLAGS)))
51ae6d1056SWolfgang DenkXECHO = echo
52ae6d1056SWolfgang Denkelse
53ae6d1056SWolfgang DenkXECHO = :
54ae6d1056SWolfgang Denkendif
55ae6d1056SWolfgang Denk
56ae6d1056SWolfgang Denk#########################################################################
57f9328639SMarian Balakowicz#
58f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external
59f9328639SMarian Balakowicz# directory. Two use cases are supported:
60f9328639SMarian Balakowicz#
61f9328639SMarian Balakowicz# 1) Add O= to the make command line
62f9328639SMarian Balakowicz# 'make O=/tmp/build all'
63f9328639SMarian Balakowicz#
64f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location
65f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
66f9328639SMarian Balakowicz# 'make'
67f9328639SMarian Balakowicz#
68f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script
69f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
70f9328639SMarian Balakowicz# './MAKEALL'
71f9328639SMarian Balakowicz#
72f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable.
73f9328639SMarian Balakowicz#
74f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and
75f9328639SMarian Balakowicz# the object files are placed in the source directory.
76f9328639SMarian Balakowicz#
777ebf7443Swdenk
78f9328639SMarian Balakowiczifdef O
79f9328639SMarian Balakowiczifeq ("$(origin O)", "command line")
80f9328639SMarian BalakowiczBUILD_DIR := $(O)
81f9328639SMarian Balakowiczendif
82f9328639SMarian Balakowiczendif
837ebf7443Swdenk
84f9328639SMarian Balakowiczifneq ($(BUILD_DIR),)
85f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR)
864f0645ebSMarian Balakowicz
874f0645ebSMarian Balakowicz# Attempt to create a output directory.
884f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
894f0645ebSMarian Balakowicz
904f0645ebSMarian Balakowicz# Verify if it was successful.
91f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
92f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
93f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),)
94f9328639SMarian Balakowicz
95f9328639SMarian BalakowiczOBJTREE		:= $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
96f9328639SMarian BalakowiczSRCTREE		:= $(CURDIR)
97f9328639SMarian BalakowiczTOPDIR		:= $(SRCTREE)
98f9328639SMarian BalakowiczLNDIR		:= $(OBJTREE)
99f9328639SMarian Balakowiczexport	TOPDIR SRCTREE OBJTREE
100f9328639SMarian Balakowicz
101f9328639SMarian BalakowiczMKCONFIG	:= $(SRCTREE)/mkconfig
102f9328639SMarian Balakowiczexport MKCONFIG
103f9328639SMarian Balakowicz
104f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
105f9328639SMarian BalakowiczREMOTE_BUILD	:= 1
106f9328639SMarian Balakowiczexport REMOTE_BUILD
107f9328639SMarian Balakowiczendif
108f9328639SMarian Balakowicz
109f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile
110f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for
111f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc.
112f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
113f9328639SMarian Balakowiczobj := $(OBJTREE)/
114f9328639SMarian Balakowiczsrc := $(SRCTREE)/
115f9328639SMarian Balakowiczelse
116f9328639SMarian Balakowiczobj :=
117f9328639SMarian Balakowiczsrc :=
118f9328639SMarian Balakowiczendif
119f9328639SMarian Balakowiczexport obj src
120f9328639SMarian Balakowicz
1215013c09fSWolfgang Denk# Make sure CDPATH settings don't interfere
1225013c09fSWolfgang Denkunexport CDPATH
1235013c09fSWolfgang Denk
124f9328639SMarian Balakowicz#########################################################################
125f9328639SMarian Balakowicz
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)
2049fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a
2057ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
2061d9f4105Swdenkifdef SOC
2071d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
2081d9f4105Swdenkendif
209323bfa8fSStefan Roeseifeq ($(CPU),ixp)
210323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a
211323bfa8fSStefan Roeseendif
2127ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
213518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
214c419d1d6Sstroese	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
2157ebf7443SwdenkLIBS += net/libnet.a
2167ebf7443SwdenkLIBS += disk/libdisk.a
2170f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a
21833daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a
21957a12720STsiChungLiewLIBS += drivers/dma/libdma.a
220f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a
221080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a
22216b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a
223318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a
22459829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a
22559829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a
22659829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a
22759829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a
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
243ad5bb451SWolfgang DenkLIBS += post/libpost.a post/drivers/libpostdrivers.a
244ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
245ad5bb451SWolfgang Denk	"post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
246b4489621SSergei PoselenovLIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
247b4489621SSergei Poselenov	"post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
248ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
249ad5bb451SWolfgang Denk	"post/cpu/$(CPU)/libpost$(CPU).a"; fi)
250ad5bb451SWolfgang DenkLIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
251ad5bb451SWolfgang Denk	"post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
2527ebf7443SwdenkLIBS += common/libcommon.a
2537651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a
254500856ebSRafal JaworowskiLIBS += api/libapi.a
255f9328639SMarian Balakowicz
256f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS))
257019895a8SStefano Babic.PHONY : $(LIBS) $(VERSION_FILE)
258a8c7c708Swdenk
2594f7cb08eSwdenk# Add GCC lib
2601a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
2613d3befa7Swdenk
262a8c7c708Swdenk# The "tools" are needed early, so put this first
263a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
264a8c7c708SwdenkSUBDIRS	= tools \
2650dc1fc22SRafal Jaworowski	  examples \
2660dc1fc22SRafal Jaworowski	  api_examples
267500856ebSRafal Jaworowski
268b028f715Swdenk.PHONY : $(SUBDIRS)
269a8c7c708Swdenk
270887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y)
271887e2ec9SStefan RoeseNAND_SPL = nand_spl
272887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin
273887e2ec9SStefan Roeseendif
274887e2ec9SStefan Roese
275751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y)
276751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl
277751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin
278751b9b51SKyungmin Parkendif
279751b9b51SKyungmin Park
280f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS))
281f9328639SMarian Balakowicz__LIBS := $(subst $(obj),,$(LIBS))
282f9328639SMarian Balakowicz
2837ebf7443Swdenk#########################################################################
284bdccc4feSwdenk#########################################################################
2857ebf7443Swdenk
286751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
28794a91e24SMike Frysingerifeq ($(ARCH),blackfin)
28894a91e24SMike FrysingerALL += $(obj)u-boot.ldr
28994a91e24SMike Frysingerendif
2907ebf7443Swdenk
291bdccc4feSwdenkall:		$(ALL)
2927ebf7443Swdenk
293f9328639SMarian Balakowicz$(obj)u-boot.hex:	$(obj)u-boot
2946310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
2956310eb9dSwdenk
296f9328639SMarian Balakowicz$(obj)u-boot.srec:	$(obj)u-boot
2977ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
2987ebf7443Swdenk
299f9328639SMarian Balakowicz$(obj)u-boot.bin:	$(obj)u-boot
3007ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
3017ebf7443Swdenk
30294a91e24SMike Frysinger$(obj)u-boot.ldr:	$(obj)u-boot
30394a91e24SMike Frysinger		$(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
30494a91e24SMike Frysinger
30594a91e24SMike Frysinger$(obj)u-boot.ldr.hex:	$(obj)u-boot.ldr
30694a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
30794a91e24SMike Frysinger
30894a91e24SMike Frysinger$(obj)u-boot.ldr.srec:	$(obj)u-boot.ldr
30994a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
31094a91e24SMike Frysinger
311f9328639SMarian Balakowicz$(obj)u-boot.img:	$(obj)u-boot.bin
312bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
313bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
314881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
315bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
316bdccc4feSwdenk		-d $< $@
317bdccc4feSwdenk
318566a494fSHeiko Schocher$(obj)u-boot.sha1:	$(obj)u-boot.bin
31901159530SHeiko Schocher		$(obj)tools/ubsha1 $(obj)u-boot.bin
320566a494fSHeiko Schocher
321f9328639SMarian Balakowicz$(obj)u-boot.dis:	$(obj)u-boot
3227ebf7443Swdenk		$(OBJDUMP) -d $< > $@
3237ebf7443Swdenk
324dd531aacSWolfgang Denk$(obj)u-boot:		depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
3250858b835SMike Frysinger		UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
326f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
327f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
328b2184c31Swdenk			-Map u-boot.map -o u-boot
3297ebf7443Swdenk
33088f72527SJohannes Stezenbach$(OBJS):	depend $(obj)include/autoconf.mk
331f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
332f9328639SMarian Balakowicz
33388f72527SJohannes Stezenbach$(LIBS):	depend $(obj)include/autoconf.mk
334f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
335a8c7c708Swdenk
33688f72527SJohannes Stezenbach$(SUBDIRS):	depend $(obj)include/autoconf.mk
337b028f715Swdenk		$(MAKE) -C $@ all
3387ebf7443Swdenk
339f65c9812SMike Frysinger$(LDSCRIPT):	depend $(obj)include/autoconf.mk
340f65c9812SMike Frysinger		$(MAKE) -C $(dir $@) $(notdir $@)
341f65c9812SMike Frysinger
342dd531aacSWolfgang Denk$(NAND_SPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
3438318fbf8SMarian Balakowicz		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
344887e2ec9SStefan Roese
345dd531aacSWolfgang Denk$(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
3468318fbf8SMarian Balakowicz		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
347887e2ec9SStefan Roese
348751b9b51SKyungmin Park$(ONENAND_IPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
3491bb707c3SKyungmin Park		$(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
350751b9b51SKyungmin Park
351751b9b51SKyungmin Park$(U_BOOT_ONENAND):	$(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
3521bb707c3SKyungmin Park		$(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
353751b9b51SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
3541bb707c3SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
355751b9b51SKyungmin Park
356ae6d1056SWolfgang Denk$(VERSION_FILE):
357ae6d1056SWolfgang Denk		@( echo -n "#define U_BOOT_VERSION \"U-Boot " ; \
358ae6d1056SWolfgang Denk		echo -n "$(U_BOOT_VERSION)" ; \
359881a87ecSWolfgang Denk		echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
360ae6d1056SWolfgang Denk			 $(TOPDIR)) ; \
3610ec7a061SMike Frysinger		echo "\"" ) > $@.tmp
3620ec7a061SMike Frysinger		@cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
363881a87ecSWolfgang Denk
3648f713fdfSdzugdbtools:
365f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
366f9328639SMarian Balakowicz
367f9328639SMarian Balakowiczupdater:
368f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
369f9328639SMarian Balakowicz
370f9328639SMarian Balakowiczenv:
37164b3727bSMarkus Klotzbücher		$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
3728f713fdfSdzu
373ae6d1056SWolfgang Denkdepend dep:	$(VERSION_FILE)
374f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
3757ebf7443Swdenk
376a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include
377a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR)
378a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU)
379a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH)
380a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs
381a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat
382a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos
383a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2
384a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net
385a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk
386a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common
387a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator
388a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block
389a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon
390a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c
391a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input
392a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc
393a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd
394a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand
395a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy
396a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand
397a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net
398a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin
399a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci
400a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia
401a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe
402a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc
403a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial
40404a9e118SBen WarrenTAG_SUBDIRS += drivers/spi
405a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb
406a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video
407a340c325SJean-Christophe PLAGNIOL-VILLARD
408f9328639SMarian Balakowicztags ctags:
409ae6d1056SWolfgang Denk		ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
41088fed9a1SWolfgang Denk						-name '*.[ch]' -print`
4117ebf7443Swdenk
4127ebf7443Swdenketags:
413ae6d1056SWolfgang Denk		etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
41488fed9a1SWolfgang Denk						-name '*.[ch]' -print`
415ffda586fSLi Yangcscope:
416ffda586fSLi Yang		find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
417ffda586fSLi Yang						> cscope.files
418ffda586fSLi Yang		cscope -b -q -k
4197ebf7443Swdenk
420f9328639SMarian Balakowicz$(obj)System.map:	$(obj)u-boot
4217ebf7443Swdenk		@$(NM) $< | \
4227ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
423f9328639SMarian Balakowicz		sort > $(obj)System.map
4247ebf7443Swdenk
4252f155f6cSGrant Likely#
4262f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles)
4272f155f6cSGrant Likely#
4282f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
4292f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when
4302f155f6cSGrant Likely# to regenerate the autoconf.mk file.
431ae6d1056SWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE)
432ae6d1056SWolfgang Denk	@$(XECHO) Generating include/autoconf.mk ; \
43316fe7775SMike Frysinger	set -e ; \
434ae6d1056SWolfgang Denk	: Generate the dependancies ; \
435c3aafd8cSVlad Lungu	$(CC) -x c -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \
436ae6d1056SWolfgang Denk	: Extract the config macros ; \
437ae6d1056SWolfgang Denk	$(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@
4382f155f6cSGrant Likely
439ae6d1056SWolfgang Denksinclude $(obj)include/autoconf.mk.dep
4402f155f6cSGrant Likely
4417ebf7443Swdenk#########################################################################
442ae6d1056SWolfgang Denkelse	# !config.mk
443f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
444f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
445ae6d1056SWolfgang Denk$(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
446ffda586fSLi Yangdep tags ctags etags cscope $(obj)System.map:
4477ebf7443Swdenk	@echo "System not configured - see README" >&2
4487ebf7443Swdenk	@ exit 1
449ae6d1056SWolfgang Denkendif	# config.mk
4507ebf7443Swdenk
4514e53a258SWolfgang Denk.PHONY : CHANGELOG
4524e53a258SWolfgang DenkCHANGELOG:
453b985b5d6SBen Warren	git log --no-merges U-Boot-1_1_5.. | \
454b985b5d6SBen Warren	unexpand -a | sed -e 's/\s\s*$$//' > $@
4554e53a258SWolfgang Denk
4567ebf7443Swdenk#########################################################################
4577ebf7443Swdenk
4587ebf7443Swdenkunconfig:
459887e2ec9SStefan Roese	@rm -f $(obj)include/config.h $(obj)include/config.mk \
4602f155f6cSGrant Likely		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
4612f155f6cSGrant Likely		$(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
4627ebf7443Swdenk
4637ebf7443Swdenk#========================================================================
4647ebf7443Swdenk# PowerPC
4657ebf7443Swdenk#========================================================================
4660db5bca8Swdenk
4670db5bca8Swdenk#########################################################################
4680db5bca8Swdenk## MPC5xx Systems
4690db5bca8Swdenk#########################################################################
4700db5bca8Swdenk
4715e5f9ed2Swdenkcanmb_config:	unconfig
472f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
4735e5f9ed2Swdenk
4740db5bca8Swdenkcmi_mpc5xx_config:	unconfig
475f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
4760db5bca8Swdenk
477b6e4c403SwdenkPATI_config:		unconfig
478f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
479b6e4c403Swdenk
4807ebf7443Swdenk#########################################################################
481945af8d7Swdenk## MPC5xxx Systems
482945af8d7Swdenk#########################################################################
483a87589daSwdenk
484dafba16eSWolfgang Denkaev_config: unconfig
485f9328639SMarian Balakowicz	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
486dafba16eSWolfgang Denk
4876ca24c64Sdzu@denx.deBC3450_config:	unconfig
488f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
4896ca24c64Sdzu@denx.de
4905e4b3361SStefan Roesecpci5200_config:  unconfig
491f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
4925e4b3361SStefan Roese
493a87589daSwdenkhmi1001_config:	unconfig
494f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
495a87589daSwdenk
496e35745bbSwdenkLite5200_config				\
497e35745bbSwdenkLite5200_LOWBOOT_config			\
498e35745bbSwdenkLite5200_LOWBOOT08_config		\
499e35745bbSwdenkicecube_5200_config			\
500e35745bbSwdenkicecube_5200_LOWBOOT_config		\
501e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
502b2001f27Swdenkicecube_5200_DDR_config			\
50379d696fcSwdenkicecube_5200_DDR_LOWBOOT_config		\
50479d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
505e35745bbSwdenkicecube_5100_config:			unconfig
506f9328639SMarian Balakowicz	@mkdir -p $(obj)include
507f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
50817d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
50917d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
510f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
511f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
51217d704ebSwdenk		  fi ; \
513ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5145cf9da48Swdenk		}
5155cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
516f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
5175cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
518ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5195cf9da48Swdenk		}
520b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
521f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
522ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
523b2001f27Swdenk		}
524d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
525f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
526ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
527d4ca31c4Swdenk		}
528a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
529f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
530ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
531945af8d7Swdenk		}
532f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
533945af8d7Swdenk
5342605e90bSHeiko Schocherjupiter_config:	unconfig
5352605e90bSHeiko Schocher	@$(MKCONFIG) jupiter ppc mpc5xxx jupiter
5362605e90bSHeiko Schocher
5374707fb50SBartlomiej Siekav38b_config: unconfig
53890b1b2d6SGrant Likely	@$(MKCONFIG) -a v38b ppc mpc5xxx v38b
5394707fb50SBartlomiej Sieka
540138ff60cSwdenkinka4x0_config:	unconfig
541f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
542138ff60cSwdenk
54309e4b0c5SWolfgang Denklite5200b_config	\
544d3832e8fSDomen Puncerlite5200b_PM_config	\
54509e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
546f9328639SMarian Balakowicz	@mkdir -p $(obj)include
547f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
548f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
549ae6d1056SWolfgang Denk	@ $(XECHO) "... DDR memory revision"
550f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
551f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
552d3832e8fSDomen Puncer	@[ -z "$(findstring _PM_,$@)" ] || \
553d3832e8fSDomen Puncer		{ echo "#define CONFIG_LITE5200B_PM"	>>$(obj)include/config.h ; \
554ae6d1056SWolfgang Denk		  $(XECHO) "... with power management (low-power mode) support" ; \
555d3832e8fSDomen Puncer		}
55609e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
557f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
558ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
55909e4b0c5SWolfgang Denk		}
560ae6d1056SWolfgang Denk	@ $(XECHO) "... with MPC5200B processor"
561f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
56209e4b0c5SWolfgang Denk
563f1ee9825SStefan Roesemcc200_config	\
564ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
565ed1cf845SWolfgang Denkmcc200_highboot_config	\
566ed1cf845SWolfgang Denkmcc200_COM12_config	\
567ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
568113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
569113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
570ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
571ed1cf845SWolfgang Denkprs200_config	\
572ed1cf845SWolfgang Denkprs200_DDR_config	\
573ed1cf845SWolfgang Denkprs200_highboot_config	\
574ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
575f9328639SMarian Balakowicz	@mkdir -p $(obj)include
576f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
5774819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
578ae6d1056SWolfgang Denk		{ $(XECHO) "... with lowboot configuration" ; \
579f1ee9825SStefan Roese		}
5804819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
581f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
582ae6d1056SWolfgang Denk		  $(XECHO) "... with highboot configuration" ; \
5834819fad9SWolfgang Denk		}
5844819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
585ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
586ed1cf845SWolfgang Denk		  then \
587ae6d1056SWolfgang Denk			$(XECHO) "... with DDR" ; \
588ed1cf845SWolfgang Denk		  else \
589ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
590ed1cf845SWolfgang Denk			then \
591ae6d1056SWolfgang Denk				$(XECHO) "... with DDR" ; \
592ed1cf845SWolfgang Denk			else \
593f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
594ae6d1056SWolfgang Denk				$(XECHO) "... with SDRAM" ; \
595ed1cf845SWolfgang Denk			fi; \
596ed1cf845SWolfgang Denk		  fi; \
5974819fad9SWolfgang Denk		}
5984819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
599f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
600ae6d1056SWolfgang Denk		  $(XECHO) "... with SDRAM" ; \
6014819fad9SWolfgang Denk		}
602463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
603f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
604ae6d1056SWolfgang Denk		  $(XECHO) "... with console on COM12" ; \
605463764c8SWolfgang Denk		}
606ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
607f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"	>>$(obj)include/config.h ;\
608ed1cf845SWolfgang Denk		}
609f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
61086ea5f93SWolfgang Denk
6118b7d1f0aSStefan Roesemecp5200_config:  unconfig
612ae6d1056SWolfgang Denk	@$(MKCONFIG) mecp5200  ppc mpc5xxx mecp5200 esd
6138b7d1f0aSStefan Roese
6146341d9d7SHeiko Schochermunices_config:	unconfig
615ae6d1056SWolfgang Denk	@$(MKCONFIG) munices ppc mpc5xxx munices
6166341d9d7SHeiko Schocher
61791c82076SJean-Christophe PLAGNIOL-VILLARDo2dnt_config:	unconfig
618f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
619df04a3dfSWolfgang Denk
6205e4b3361SStefan Roesepf5200_config:	unconfig
621f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
6225e4b3361SStefan Roese
62389394047SwdenkPM520_config \
62489394047SwdenkPM520_DDR_config \
62589394047SwdenkPM520_ROMBOOT_config \
62689394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
627f9328639SMarian Balakowicz	@mkdir -p $(obj)include
62889394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
629f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
630ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
63189394047Swdenk		}
63289394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
633f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
634ae6d1056SWolfgang Denk		  $(XECHO) "... booting from 8-bit flash" ; \
63589394047Swdenk		}
636f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
63789394047Swdenk
6386624b687SWolfgang Denksmmaco4_config: unconfig
639f9328639SMarian Balakowicz	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
6409cdc8386SWolfgang Denk
64186b116b1SBartlomiej Siekacm5200_config:	unconfig
64291c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
643fa1df308SBartlomiej Sieka
6449cdc8386SWolfgang Denkspieval_config:	unconfig
645f9328639SMarian Balakowicz	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
6469cdc8386SWolfgang Denk
64745a212c4SWolfgang DenkTB5200_B_config \
648b87dfd28SWolfgang DenkTB5200_config:	unconfig
649f9328639SMarian Balakowicz	@mkdir -p $(obj)include
65045a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
651f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
652ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200B processor" ; \
65345a212c4SWolfgang Denk		}
654f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
655b87dfd28SWolfgang Denk
656d4ca31c4SwdenkMINI5200_config	\
657d4ca31c4SwdenkEVAL5200_config	\
658d4ca31c4SwdenkTOP5200_config:	unconfig
659f9328639SMarian Balakowicz	@mkdir -p $(obj)include
660f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
661f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
662d4ca31c4Swdenk
6636c7a1408SwdenkTotal5100_config		\
6646c7a1408SwdenkTotal5200_config		\
6656c7a1408SwdenkTotal5200_lowboot_config	\
6666c7a1408SwdenkTotal5200_Rev2_config		\
6676c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
668f9328639SMarian Balakowicz	@mkdir -p $(obj)include
669f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
6706c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
671f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
672ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
6736c7a1408Swdenk		}
6746c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
675f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
676ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
6776c7a1408Swdenk		}
6786c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
679f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
680ae6d1056SWolfgang Denk		  $(XECHO) "... revision 1 board" ; \
6816c7a1408Swdenk		}
6826c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
683f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
684ae6d1056SWolfgang Denk		  $(XECHO) "... revision 2 board" ; \
6856c7a1408Swdenk		}
6866c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
687f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
688ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
6896c7a1408Swdenk		}
690f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
6916c7a1408Swdenk
6925196a7a0SWolfgang Denkcam5200_config \
693d9384de2SMarian Balakowiczcam5200_niosflash_config \
6945196a7a0SWolfgang Denkfo300_config \
6955196a7a0SWolfgang DenkMiniFAP_config \
6965078cce8SWolfgang DenkTQM5200S_config \
6975078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
6985196a7a0SWolfgang DenkTQM5200_B_config \
6995196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
7005196a7a0SWolfgang DenkTQM5200_config	\
7015196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
702f9328639SMarian Balakowicz	@mkdir -p $(obj)include
703f9328639SMarian Balakowicz	@mkdir -p $(obj)board/tqm5200
704135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
705f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
706f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
707f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
708ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200S on Cam5200" ; \
7095078cce8SWolfgang Denk		}
710d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
711d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
712ae6d1056SWolfgang Denk		  $(XECHO) "... with NIOS flash driver" ; \
713d9384de2SMarian Balakowicz		}
7146d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
715f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
716ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200 on FO300" ; \
7176d3bc9b8SMarian Balakowicz		}
718cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
719f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
720ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200_AC on MiniFAP" ; \
721978b1096SWolfgang Denk		}
722cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
723f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
724ae6d1056SWolfgang Denk		  $(XECHO) "... on a STK52XX.100 base board" ; \
72556523f12Swdenk		}
7265078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
727f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
7285078cce8SWolfgang Denk		}
7295078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
730f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
731f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
73245a212c4SWolfgang Denk		}
733978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
734f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
735978b1096SWolfgang Denk		}
736f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
7376dedf3d4SHeiko Schocheruc101_config:		unconfig
7386dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
73953d4a498SBartlomiej Siekamotionpro_config:	unconfig
74053d4a498SBartlomiej Sieka	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
74153d4a498SBartlomiej Sieka
74256523f12Swdenk
743945af8d7Swdenk#########################################################################
7448993e54bSRafal Jaworowski## MPC512x Systems
7458993e54bSRafal Jaworowski#########################################################################
7465f91db7fSJohn Rigbyads5121_config \
7475f91db7fSJohn Rigbyads5121_PCI_config \
7485f91db7fSJohn Rigby	:		 unconfig
749210ed200SWolfgang Denk	@mkdir -p $(obj)include
7505f91db7fSJohn Rigby	@if [ "$(findstring _PCI_,$@)" ] ; then \
7515f91db7fSJohn Rigby		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
7525f91db7fSJohn Rigby		$(XECHO) "... with PCI enabled" ; \
7535f91db7fSJohn Rigby	fi
7545f91db7fSJohn Rigby	@$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
7558993e54bSRafal Jaworowski
7568993e54bSRafal Jaworowski
7578993e54bSRafal Jaworowski#########################################################################
7587ebf7443Swdenk## MPC8xx Systems
7597ebf7443Swdenk#########################################################################
7607ebf7443Swdenk
7612d24a3a7SwdenkAdder_config	\
7622d24a3a7SwdenkAdder87x_config \
76326238132SwdenkAdderII_config	\
7642d24a3a7Swdenk	:		unconfig
765f9328639SMarian Balakowicz	@mkdir -p $(obj)include
76626238132Swdenk	$(if $(findstring AdderII,$@), \
767f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
768f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
7692d24a3a7Swdenk
77016c8d5e7SWolfgang DenkAdderUSB_config:	unconfig
77191c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
77216c8d5e7SWolfgang Denk
773180d3f74SwdenkADS860_config	  \
774180d3f74SwdenkFADS823_config	  \
775180d3f74SwdenkFADS850SAR_config \
776180d3f74SwdenkMPC86xADS_config  \
7771114257cSwdenkMPC885ADS_config  \
778180d3f74SwdenkFADS860T_config:	unconfig
779f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
7807ebf7443Swdenk
7817ebf7443SwdenkAMX860_config	:	unconfig
782f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
7837ebf7443Swdenk
7847ebf7443Swdenkc2mon_config:		unconfig
785f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
7867ebf7443Swdenk
7877ebf7443SwdenkCCM_config:		unconfig
788f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
7897ebf7443Swdenk
7907ebf7443Swdenkcogent_mpc8xx_config:	unconfig
791f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
7927ebf7443Swdenk
7933bac3513SwdenkELPT860_config:		unconfig
794f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
7953bac3513Swdenk
79684c960ceSWolfgang DenkEP88x_config:		unconfig
797f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
79884c960ceSWolfgang Denk
7997ebf7443SwdenkESTEEM192E_config:	unconfig
800f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
8017ebf7443Swdenk
8027ebf7443SwdenkETX094_config	:	unconfig
803f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
8047ebf7443Swdenk
8057ebf7443SwdenkFLAGADM_config:	unconfig
806f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
8077ebf7443Swdenk
8087aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
8097aa78614Swdenk
8107aa78614SwdenkGEN860T_SC_config	\
8117ebf7443SwdenkGEN860T_config: unconfig
812f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8137aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
814f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
815ae6d1056SWolfgang Denk		  $(XECHO) "With reduced H/W feature set (SC)..." ; \
8167aa78614Swdenk		}
817f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
8187ebf7443Swdenk
8197ebf7443SwdenkGENIETV_config:	unconfig
820f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
8217ebf7443Swdenk
8227ebf7443SwdenkGTH_config:	unconfig
823f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
8247ebf7443Swdenk
8257ebf7443Swdenkhermes_config	:	unconfig
826f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
8277ebf7443Swdenk
828c40b2956SwdenkHMI10_config	:	unconfig
829f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
830c40b2956Swdenk
8317ebf7443SwdenkIAD210_config: unconfig
832f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
8337ebf7443Swdenk
8347ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
8357ebf7443Swdenk
8367ebf7443SwdenkICU862_100MHz_config	\
8377ebf7443SwdenkICU862_config: unconfig
838f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8397ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
840f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
841ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
8427ebf7443Swdenk		}
843f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
8447ebf7443Swdenk
8457ebf7443SwdenkIP860_config	:	unconfig
846f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
8477ebf7443Swdenk
8487ebf7443SwdenkIVML24_256_config \
8497ebf7443SwdenkIVML24_128_config \
8507ebf7443SwdenkIVML24_config:	unconfig
851f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8527ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
853f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
8547ebf7443Swdenk		 }
8557ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
856f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
8577ebf7443Swdenk		 }
8587ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
859f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
8607ebf7443Swdenk		 }
861f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
8627ebf7443Swdenk
8637ebf7443SwdenkIVMS8_256_config \
8647ebf7443SwdenkIVMS8_128_config \
8657ebf7443SwdenkIVMS8_config:	unconfig
866f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8677ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
868f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
8697ebf7443Swdenk		 }
8707ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
871f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
8727ebf7443Swdenk		 }
8737ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
874f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
8757ebf7443Swdenk		 }
876f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
8777ebf7443Swdenk
87856f94be3SwdenkKUP4K_config	:	unconfig
879f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
8800608e04dSwdenk
8810608e04dSwdenkKUP4X_config	:	unconfig
882f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
88356f94be3Swdenk
8847ebf7443SwdenkLANTEC_config	:	unconfig
885f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
8867ebf7443Swdenk
8877ebf7443Swdenklwmon_config:		unconfig
888f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
8897ebf7443Swdenk
8907ebf7443SwdenkMBX_config	\
8917ebf7443SwdenkMBX860T_config:	unconfig
892f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
8937ebf7443Swdenk
894381e4e63SHeiko Schochermgsuvd_config:		unconfig
895381e4e63SHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
896381e4e63SHeiko Schocher
8977ebf7443SwdenkMHPC_config:		unconfig
898f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
8997ebf7443Swdenk
9007ebf7443SwdenkMVS1_config :		unconfig
901f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
9027ebf7443Swdenk
903993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
904993cad93Swdenk
905993cad93SwdenkNETVIA_V2_config \
9067ebf7443SwdenkNETVIA_config:		unconfig
907f9328639SMarian Balakowicz	@mkdir -p $(obj)include
908993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
909f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
910ae6d1056SWolfgang Denk		  $(XECHO) "... Version 1" ; \
911993cad93Swdenk		 }
912993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
913f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
914ae6d1056SWolfgang Denk		  $(XECHO) "... Version 2" ; \
915993cad93Swdenk		 }
916f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
9177ebf7443Swdenk
918c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
919c26e454dSwdenk
920c26e454dSwdenkNETPHONE_V2_config \
92104a85b3bSwdenkNETPHONE_config:	unconfig
922f9328639SMarian Balakowicz	@mkdir -p $(obj)include
923c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
924f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
925c26e454dSwdenk		 }
926c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
927f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
928c26e454dSwdenk		 }
929f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
93004a85b3bSwdenk
93179fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
93204a85b3bSwdenk
93379fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
93479fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
93579fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
93679fa88f3SwdenkNETTA_SWAPHOOK_config \
93779fa88f3SwdenkNETTA_ISDN_6412_config \
93804a85b3bSwdenkNETTA_ISDN_config \
93979fa88f3SwdenkNETTA_6412_config \
94004a85b3bSwdenkNETTA_config:		unconfig
941f9328639SMarian Balakowicz	@mkdir -p $(obj)include
94279fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
943f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
94404a85b3bSwdenk		 }
94579fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
946f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
94779fa88f3Swdenk		 }
94879fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
949f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
95079fa88f3Swdenk		 }
95179fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
952f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
95379fa88f3Swdenk		 }
95479fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
955f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
95679fa88f3Swdenk		 }
95779fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
958f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
95979fa88f3Swdenk		 }
960f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
96104a85b3bSwdenk
96279fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
96379fa88f3Swdenk
96479fa88f3SwdenkNETTA2_V2_config \
96579fa88f3SwdenkNETTA2_config:		unconfig
966f9328639SMarian Balakowicz	@mkdir -p $(obj)include
96779fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
968f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
96979fa88f3Swdenk		 }
97079fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
971f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
97279fa88f3Swdenk		 }
973f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
97479fa88f3Swdenk
975a367d426Sdzu@denx.deNC650_Rev1_config \
976a367d426Sdzu@denx.deNC650_Rev2_config \
977a367d426Sdzu@denx.deCP850_config:	unconfig
978f9328639SMarian Balakowicz	@mkdir -p $(obj)include
979a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
980f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
981f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
982a367d426Sdzu@denx.de		 }
983a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
984f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
985a367d426Sdzu@denx.de		 }
986a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
987f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
988a367d426Sdzu@denx.de		 }
989f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
9907ca202f5Swdenk
9917ebf7443SwdenkNX823_config:		unconfig
992f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
9937ebf7443Swdenk
9947ebf7443Swdenkpcu_e_config:		unconfig
995f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
9967ebf7443Swdenk
9973bbc899fSwdenkQS850_config:	unconfig
998f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
9993bbc899fSwdenk
10003bbc899fSwdenkQS823_config:	unconfig
1001f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10023bbc899fSwdenk
10033bbc899fSwdenkQS860T_config:	unconfig
1004f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
10053bbc899fSwdenk
1006da93ed81Swdenkquantum_config:	unconfig
1007f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1008da93ed81Swdenk
10097ebf7443SwdenkR360MPI_config:	unconfig
1010f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
10117ebf7443Swdenk
1012682011ffSwdenkRBC823_config:	unconfig
1013f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1014682011ffSwdenk
10157ebf7443SwdenkRPXClassic_config:	unconfig
1016f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
10177ebf7443Swdenk
10187ebf7443SwdenkRPXlite_config:		unconfig
1019f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
10207ebf7443Swdenk
1021e63c8ee3SwdenkRPXlite_DW_64_config		\
1022e63c8ee3SwdenkRPXlite_DW_LCD_config		\
1023e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
1024e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
1025e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config	\
1026e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
1027e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config	\
1028e63c8ee3SwdenkRPXlite_DW_config:	unconfig
1029f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1030e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
1031f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
1032ae6d1056SWolfgang Denk		  $(XECHO) "... with 64MHz system clock ..."; \
1033e63c8ee3Swdenk		}
1034e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1035f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1036f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1037ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display ..."; \
1038e63c8ee3Swdenk		}
1039e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
1040f9328639SMarian Balakowicz		{ echo "#define  CFG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
1041ae6d1056SWolfgang Denk		  $(XECHO) "... with ENV in NVRAM ..."; \
1042e63c8ee3Swdenk		}
1043f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1044e63c8ee3Swdenk
104573a8b27cSwdenkrmu_config:	unconfig
1046f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
104773a8b27cSwdenk
10487ebf7443SwdenkRRvision_config:	unconfig
1049f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
10507ebf7443Swdenk
10517ebf7443SwdenkRRvision_LCD_config:	unconfig
1052f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1053f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1054f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1055f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
10567ebf7443Swdenk
10577ebf7443SwdenkSM850_config	:	unconfig
1058f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
10597ebf7443Swdenk
106091c82076SJean-Christophe PLAGNIOL-VILLARDspc1920_config:		unconfig
1061f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1062b02d0177SMarkus Klotzbuecher
10637ebf7443SwdenkSPD823TS_config:	unconfig
1064f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
10657ebf7443Swdenk
10666bdf4306SWolfgang Denkstxxtc_config:	unconfig
1067f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
10686bdf4306SWolfgang Denk
1069dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
1070f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1071dc7c9a1aSwdenk
10727ebf7443SwdenkSXNI855T_config:	unconfig
1073f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
10747ebf7443Swdenk
1075db2f721fSwdenk# EMK MPC8xx based modules
1076db2f721fSwdenkTOP860_config:		unconfig
1077f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1078db2f721fSwdenk
10797ebf7443Swdenk# Play some tricks for configuration selection
1080e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
1081e9132ea9Swdenk# and only 823 boards may have LCD support
1082e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
10837ebf7443Swdenk
10847ebf7443SwdenkFPS850L_config		\
1085384ae025SwdenkFPS860L_config		\
1086f12e568cSwdenkNSCU_config		\
10877ebf7443SwdenkTQM823L_config		\
10887ebf7443SwdenkTQM823L_LCD_config	\
10897ebf7443SwdenkTQM850L_config		\
10907ebf7443SwdenkTQM855L_config		\
10917ebf7443SwdenkTQM860L_config		\
1092d126bfbdSwdenkTQM862L_config		\
1093ae3af05eSwdenkTQM823M_config		\
1094ae3af05eSwdenkTQM850M_config		\
1095f12e568cSwdenkTQM855M_config		\
1096f12e568cSwdenkTQM860M_config		\
1097f12e568cSwdenkTQM862M_config		\
10988cba090cSWolfgang DenkTQM866M_config		\
1099090eb735SMarkus KlotzbuecherTQM885D_config		\
1100efc6f447SGuennadi LiakhovetskiTK885D_config		\
11018cba090cSWolfgang Denkvirtlab2_config:	unconfig
1102f9328639SMarian Balakowicz	@mkdir -p $(obj)include
11037ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1104f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1105f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1106ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display" ; \
11077ebf7443Swdenk		}
1108f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
11097ebf7443Swdenk
11107ebf7443SwdenkTTTech_config:	unconfig
1111f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1112f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1113f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1114f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
11157ebf7443Swdenk
1116ec0aee7bSwdenkuc100_config	:	unconfig
1117f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1118f7d1572bSwdenk
1119608c9146Swdenkv37_config:	unconfig
1120f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1121f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1122f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1123f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1124608c9146Swdenk
112591e940d9Sdzuwtk_config:	unconfig
1126f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1127f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1128f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1129f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
113091e940d9Sdzu
11317ebf7443Swdenk#########################################################################
11327ebf7443Swdenk## PPC4xx Systems
11337ebf7443Swdenk#########################################################################
1134e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
11357ebf7443Swdenk
113616c0cc1cSStefan Roeseacadia_config:	unconfig
113716c0cc1cSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
113816c0cc1cSStefan Roese
1139c440bfe6SStefan Roeseacadia_nand_config:	unconfig
114063e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/acadia
114163e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/acadia
1142c440bfe6SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1143c440bfe6SStefan Roese	@$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1144c440bfe6SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1145c440bfe6SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1146c440bfe6SStefan Roese
11477ebf7443SwdenkADCIOP_config:	unconfig
1148f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
11497ebf7443Swdenk
1150899620c2SStefan Roesealpr_config:	unconfig
115135d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1152899620c2SStefan Roese
11537521af1cSWolfgang DenkAP1000_config:unconfig
1154f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
11557521af1cSWolfgang Denk
1156c419d1d6SstroeseAPC405_config:	unconfig
1157f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1158c419d1d6Sstroese
11597ebf7443SwdenkAR405_config:	unconfig
1160f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
11617ebf7443Swdenk
1162549826eaSstroeseASH405_config:	unconfig
1163f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1164549826eaSstroese
11658a316c9bSStefan Roesebamboo_config:	unconfig
1166f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
11678a316c9bSStefan Roese
1168cf959c7dSStefan Roesebamboo_nand_config:	unconfig
116963e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/bamboo
117063e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/bamboo
1171cf959c7dSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1172f3679aa1SStefan Roese	@$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1173cf959c7dSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1174cf959c7dSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1175cf959c7dSStefan Roese
11768a316c9bSStefan Roesebubinga_config:	unconfig
1177f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1178549826eaSstroese
11797ebf7443SwdenkCANBT_config:	unconfig
1180f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
11817ebf7443Swdenk
11824c9e8557SStefan Roese# Canyonlands & Glacier use different U-Boot images
11834c9e8557SStefan Roesecanyonlands_config \
11844c9e8557SStefan Roeseglacier_config:	unconfig
11854c9e8557SStefan Roese	@mkdir -p $(obj)include
11864c9e8557SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
11874c9e8557SStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
11884c9e8557SStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1189c813f1f8SStefan Roese
1190fe7c0db6SStefan Roesecanyonlands_nand_config \
1191fe7c0db6SStefan Roeseglacier_nand_config:	unconfig
119271665ebfSStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/canyonlands
119371665ebfSStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/canyonlands
119471665ebfSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1195fe7c0db6SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1196fe7c0db6SStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
119771665ebfSStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
119871665ebfSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
119971665ebfSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
120071665ebfSStefan Roese
12011d6f9720SwdenkCATcenter_config	\
12021d6f9720SwdenkCATcenter_25_config	\
12031d6f9720SwdenkCATcenter_33_config:	unconfig
1204f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1205f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1206f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
12071d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1208f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1209ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
12101d6f9720Swdenk		}
12111d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1212f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1213ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
12141d6f9720Swdenk		}
1215f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
121610767ccbSwdenk
12177644f16fSStefan RoeseCPCI2DP_config:	unconfig
1218f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
12197644f16fSStefan Roese
12207ebf7443SwdenkCPCI405_config	\
1221549826eaSstroeseCPCI4052_config	\
1222c419d1d6SstroeseCPCI405DT_config	\
1223549826eaSstroeseCPCI405AB_config:	unconfig
1224f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1225f9328639SMarian Balakowicz	@echo "BOARD_REVISION = $(@:_config=)"	>> $(obj)include/config.mk
12267ebf7443Swdenk
12277ebf7443SwdenkCPCIISER4_config:	unconfig
1228f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
12297ebf7443Swdenk
12307ebf7443SwdenkCRAYL1_config:	unconfig
1231f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
12327ebf7443Swdenk
1233cd0a9de6Swdenkcsb272_config:	unconfig
1234f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1235cd0a9de6Swdenk
1236aa245090Swdenkcsb472_config:	unconfig
1237f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1238aa245090Swdenk
12397ebf7443SwdenkDASA_SIM_config: unconfig
1240f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
12417ebf7443Swdenk
124272cd5aa7SstroeseDP405_config:	unconfig
1243f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
124472cd5aa7Sstroese
12457ebf7443SwdenkDU405_config:	unconfig
1246f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
12477ebf7443Swdenk
12481a3ac86bSMatthias FuchsDU440_config:	unconfig
12491a3ac86bSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
12501a3ac86bSMatthias Fuchs
12518a316c9bSStefan Roeseebony_config:	unconfig
1252f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
12537ebf7443Swdenk
12547ebf7443SwdenkERIC_config:	unconfig
1255f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
12567ebf7443Swdenk
1257d1cbe85bSwdenkEXBITGEN_config:	unconfig
1258f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1259d1cbe85bSwdenk
1260c419d1d6SstroeseG2000_config:	unconfig
1261f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1262c419d1d6Sstroese
1263ac982ea5SNiklaus Gigerhcu4_config:	unconfig
1264b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
126535d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1266ac982ea5SNiklaus Giger
1267ac982ea5SNiklaus Gigerhcu5_config:	unconfig
1268b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
126935d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1270ac982ea5SNiklaus Giger
1271c419d1d6SstroeseHH405_config:	unconfig
1272f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1273c419d1d6Sstroese
127472cd5aa7SstroeseHUB405_config:	unconfig
1275f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
127672cd5aa7Sstroese
1277db01a2eaSwdenkJSE_config:	unconfig
1278f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1279db01a2eaSwdenk
1280b79316f2SStefan RoeseKAREF_config: unconfig
1281f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1282b79316f2SStefan Roese
12834745acaaSStefan Roesekatmai_config:	unconfig
12844745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
12854745acaaSStefan Roese
1286353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR)
1287353f2688SStefan Roesekilauea_config \
1288353f2688SStefan Roesehaleakala_config: unconfig
1289353f2688SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1290566806caSStefan Roese
12913d6cb3b2SStefan Roesekilauea_nand_config \
12923d6cb3b2SStefan Roesehaleakala_nand_config: unconfig
12933d6cb3b2SStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/kilauea
12943d6cb3b2SStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/kilauea
12953d6cb3b2SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
12963d6cb3b2SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
12973d6cb3b2SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
12983d6cb3b2SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
12993d6cb3b2SStefan Roese
1300c591dffeSLarry Johnsonkorat_config:	unconfig
1301c591dffeSLarry Johnson	@$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1302c591dffeSLarry Johnson
13036e7fb6eaSStefan Roeseluan_config:	unconfig
1304f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
13056e7fb6eaSStefan Roese
1306b765ffb7SStefan Roeselwmon5_config:	unconfig
1307b765ffb7SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1308b765ffb7SStefan Roese
1309211ea91aSStefan Roesemakalu_config:	unconfig
1310211ea91aSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1311211ea91aSStefan Roese
1312b05f3543SNiklaus Gigermcu25_config:  unconfig
1313b05f3543SNiklaus Giger	@mkdir -p $(obj)board/netstal/common
1314b05f3543SNiklaus Giger	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1315b05f3543SNiklaus Giger
1316b79316f2SStefan RoeseMETROBOX_config: unconfig
1317f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1318b79316f2SStefan Roese
13197ebf7443SwdenkMIP405_config:	unconfig
1320f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
13217ebf7443Swdenk
1322f3e0de60SwdenkMIP405T_config:	unconfig
1323f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1324f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1325ae6d1056SWolfgang Denk	@$(XECHO) "Enable subset config for MIP405T"
1326f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1327f3e0de60Swdenk
13287ebf7443SwdenkML2_config:	unconfig
1329f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
13307ebf7443Swdenk
1331028ab6b5Swdenkml300_config:	unconfig
1332f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1333028ab6b5Swdenk
13348a316c9bSStefan Roeseocotea_config:	unconfig
1335f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
13360e6d798cSwdenk
13377ebf7443SwdenkOCRTC_config		\
13387ebf7443SwdenkORSG_config:	unconfig
1339f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
13407ebf7443Swdenk
13415568e613SStefan Roesep3p440_config:	unconfig
1342f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
13435568e613SStefan Roese
13447ebf7443SwdenkPCI405_config:	unconfig
1345f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
13467ebf7443Swdenk
1347a4c8d138SStefan Roesepcs440ep_config:	unconfig
1348f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1349a4c8d138SStefan Roese
13507ebf7443SwdenkPIP405_config:	unconfig
1351f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
13527ebf7443Swdenk
135372cd5aa7SstroesePLU405_config:	unconfig
1354f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
135572cd5aa7Sstroese
1356549826eaSstroesePMC405_config:	unconfig
1357f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1358549826eaSstroese
13598ba132caSMatthias FuchsPMC440_config:	unconfig
13608ba132caSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
13618ba132caSMatthias Fuchs
1362281e00a3SwdenkPPChameleonEVB_config		\
1363e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1364e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1365e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1366e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1367e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1368e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1369f9328639SMarian Balakowicz	@mkdir -p $(obj)include
13701d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1371f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1372ae6d1056SWolfgang Denk		  $(XECHO) "... BASIC model" ; \
1373fbe4b5cbSwdenk		}
13741d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1375f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1376ae6d1056SWolfgang Denk		  $(XECHO) "... MEDIUM model" ; \
1377fbe4b5cbSwdenk		}
13781d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1379f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1380ae6d1056SWolfgang Denk		  $(XECHO) "... HIGH-END model" ; \
1381fbe4b5cbSwdenk		}
1382e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1383f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1384ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
1385e55ca7e2Swdenk		}
1386e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1387f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1388ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
1389e55ca7e2Swdenk		}
1390f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
139112f34241Swdenk
1392430f1b0fSStefan Roesesbc405_config:	unconfig
1393430f1b0fSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1394430f1b0fSStefan Roese
1395430f1b0fSStefan Roesesequoia_config \
1396854bc8daSStefan Roeserainier_config: unconfig
13978318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1398430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1399430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
14002aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1401854bc8daSStefan Roese
1402430f1b0fSStefan Roesesequoia_nand_config \
1403854bc8daSStefan Roeserainier_nand_config: unconfig
140463e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
140563e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/sequoia
14068318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1407430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1408430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1409430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
14108318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
14118318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1412652a10c0Swdenk
14136d3e0107SWolfgang Denksc3_config:unconfig
141435d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1415ca43ba18SHeiko Schocher
1416d4024bb7SJohn Otkentaihu_config:	unconfig
1417d4024bb7SJohn Otken	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1418d4024bb7SJohn Otken
14195fb692caSStefan Roesetaishan_config:	unconfig
14205fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
14215fb692caSStefan Roese
142272cd5aa7SstroeseVOH405_config:	unconfig
1423f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
142472cd5aa7Sstroese
1425c419d1d6SstroeseVOM405_config:	unconfig
1426f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1427c419d1d6Sstroese
1428feaedfcfSStefan RoeseCMS700_config:	unconfig
1429f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1430feaedfcfSStefan Roese
14317ebf7443SwdenkW7OLMC_config	\
14327ebf7443SwdenkW7OLMG_config: unconfig
1433f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
14347ebf7443Swdenk
1435430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR)
1436430f1b0fSStefan Roesewalnut_config \
1437430f1b0fSStefan Roesesycamore_config: unconfig
1438430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
14397ebf7443Swdenk
1440c419d1d6SstroeseWUH405_config:	unconfig
1441f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1442c419d1d6Sstroese
1443ba56f625SwdenkXPEDITE1K_config:	unconfig
1444f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1445ba56f625Swdenk
1446430f1b0fSStefan Roeseyosemite_config \
14478a316c9bSStefan Roeseyellowstone_config: unconfig
1448700200c6SStefan Roese	@mkdir -p $(obj)include
1449430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1450430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
14512aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
14528a316c9bSStefan Roese
14536c5879f3SMarian Balakowiczyucca_config:	unconfig
1454f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
14556c5879f3SMarian Balakowicz
1456779e9751SStefan Roesezeus_config:	unconfig
1457779e9751SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1458779e9751SStefan Roese
14597ebf7443Swdenk#########################################################################
1460983fda83Swdenk## MPC8220 Systems
1461983fda83Swdenk#########################################################################
1462dc17fb6dSWolfgang Denk
1463dc17fb6dSWolfgang DenkAlaska8220_config	\
1464dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1465f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1466983fda83Swdenk
146712b43d51Swdenksorcery_config:		unconfig
1468f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
146912b43d51Swdenk
1470983fda83Swdenk#########################################################################
14717ebf7443Swdenk## MPC824x Systems
14727ebf7443Swdenk#########################################################################
1473efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
14743bac3513Swdenk
14750332990bSwdenkA3000_config: unconfig
1476f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
14770332990bSwdenk
14788e6f1a8eSWolfgang Denkbarco_config: unconfig
1479f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
14808e6f1a8eSWolfgang Denk
14817ebf7443SwdenkBMW_config: unconfig
1482f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
14837ebf7443Swdenk
14843bac3513SwdenkCPC45_config	\
14853bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1486f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1487f9328639SMarian Balakowicz	@cd $(obj)include ;				\
14883bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
14893bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1490ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
14913bac3513Swdenk	else \
14923bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1493ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
14943bac3513Swdenk	fi; \
14953bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
14963bac3513Swdenk
14977ebf7443SwdenkCU824_config: unconfig
1498f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
14997ebf7443Swdenk
15007abf0c58Swdenkdebris_config: unconfig
1501f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
15027abf0c58Swdenk
150380885a9dSwdenkeXalion_config: unconfig
1504f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
150580885a9dSwdenk
1506756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1507f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1508756f586aSwdenk
150953dd6ce4SWolfgang Denkkvme080_config: unconfig
1510f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
151153dd6ce4SWolfgang Denk
151261525f2fSGuennadi Liakhovetski# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
151361525f2fSGuennadi Liakhovetski# time permits.
151461525f2fSGuennadi Liakhovetski#linkstation_HDLAN_config \
151561525f2fSGuennadi Liakhovetski# Remove this line when HDLAN is fixed
151661525f2fSGuennadi Liakhovetskilinkstation_HGLAN_config: unconfig
151761525f2fSGuennadi Liakhovetski	@mkdir -p $(obj)include
151861525f2fSGuennadi Liakhovetski	@case $@ in \
151961525f2fSGuennadi Liakhovetski		*HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
152061525f2fSGuennadi Liakhovetski		*HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
152161525f2fSGuennadi Liakhovetski	esac
152261525f2fSGuennadi Liakhovetski	@$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
152361525f2fSGuennadi Liakhovetski
15247ebf7443SwdenkMOUSSE_config: unconfig
1525f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
15267ebf7443Swdenk
15277ebf7443SwdenkMUSENKI_config: unconfig
1528f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
15297ebf7443Swdenk
1530b4676a25SwdenkMVBLUE_config:	unconfig
1531f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1532b4676a25Swdenk
15337ebf7443SwdenkOXC_config: unconfig
1534f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
15357ebf7443Swdenk
15367ebf7443SwdenkPN62_config: unconfig
1537f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
15387ebf7443Swdenk
15397ebf7443SwdenkSandpoint8240_config: unconfig
1540f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
15417ebf7443Swdenk
15427ebf7443SwdenkSandpoint8245_config: unconfig
1543f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
15447ebf7443Swdenk
1545466b7410Swdenksbc8240_config: unconfig
1546f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1547466b7410Swdenk
1548d1cbe85bSwdenkSL8245_config: unconfig
1549f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1550d1cbe85bSwdenk
15517ebf7443Swdenkutx8245_config: unconfig
1552f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
15537ebf7443Swdenk
15547ebf7443Swdenk#########################################################################
15557ebf7443Swdenk## MPC8260 Systems
15567ebf7443Swdenk#########################################################################
15577ebf7443Swdenk
155854387ac9Swdenkatc_config:	unconfig
1559f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
156054387ac9Swdenk
15617ebf7443Swdenkcogent_mpc8260_config:	unconfig
1562f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
15637ebf7443Swdenk
15647ebf7443SwdenkCPU86_config	\
15657ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1566f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1567f9328639SMarian Balakowicz	@cd $(obj)include ;				\
15687ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
15697ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1570ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
15717ebf7443Swdenk	else \
15727ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1573ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
15747ebf7443Swdenk	fi; \
15757ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
15767ebf7443Swdenk
1577384cc687SwdenkCPU87_config	\
1578384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1579f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1580f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1581384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1582384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1583ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1584384cc687Swdenk	else \
1585384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1586ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1587384cc687Swdenk	fi; \
1588384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1589384cc687Swdenk
1590f901a83bSWolfgang Denkep8248_config	\
1591f901a83bSWolfgang Denkep8248E_config	:	unconfig
1592f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1593f901a83bSWolfgang Denk
15947ebf7443Swdenkep8260_config:	unconfig
1595f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
15967ebf7443Swdenk
15978d4ac794SWolfgang Denkep82xxm_config:	unconfig
159890b1b2d6SGrant Likely	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
15998d4ac794SWolfgang Denk
16007ebf7443Swdenkgw8260_config:	unconfig
1601f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
16027ebf7443Swdenk
16037ebf7443Swdenkhymod_config:	unconfig
1604f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
16057ebf7443Swdenk
16069dd41a7bSwdenkIDS8247_config:	unconfig
1607f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
16089dd41a7bSwdenk
16097ebf7443SwdenkIPHASE4539_config:	unconfig
1610f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
16117ebf7443Swdenk
1612c3c7f861SwdenkISPAN_config		\
1613c3c7f861SwdenkISPAN_REVB_config:	unconfig
1614f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1615c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
1616f9328639SMarian Balakowicz		echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1617c3c7f861Swdenk	fi
1618f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1619c3c7f861Swdenk
1620ac9db066SHeiko Schochermgcoge_config	:	unconfig
1621ac9db066SHeiko Schocher	@$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1622ac9db066SHeiko Schocher
162304a85b3bSwdenkMPC8260ADS_config	\
1624901787d6SwdenkMPC8260ADS_lowboot_config	\
162504a85b3bSwdenkMPC8260ADS_33MHz_config	\
1626901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
162704a85b3bSwdenkMPC8260ADS_40MHz_config	\
1628901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
162904a85b3bSwdenkMPC8272ADS_config	\
1630901787d6SwdenkMPC8272ADS_lowboot_config	\
163104a85b3bSwdenkPQ2FADS_config		\
1632901787d6SwdenkPQ2FADS_lowboot_config		\
163304a85b3bSwdenkPQ2FADS-VR_config	\
1634901787d6SwdenkPQ2FADS-VR_lowboot_config	\
163504a85b3bSwdenkPQ2FADS-ZU_config	\
1636901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
163704a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1638901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
163904a85b3bSwdenk	:		unconfig
1640f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1641b7e24d28SJon Loeliger	@mkdir -p $(obj)board/freescale/mpc8260ads
164204a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
1643f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1644f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
164504a85b3bSwdenk	$(if $(findstring MHz,$@), \
1646f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
164704a85b3bSwdenk	$(if $(findstring VR,$@), \
1648f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1649901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1650b7e24d28SJon Loeliger		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1651ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
1652901787d6Swdenk		}
1653b7e24d28SJon Loeliger	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
16547ebf7443Swdenk
1655db2f721fSwdenkMPC8266ADS_config:	unconfig
1656aa3511e4SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1657db2f721fSwdenk
1658efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
165910f67017SwdenkPM825_config	\
1660efa329cbSwdenkPM825_ROMBOOT_config	\
1661efa329cbSwdenkPM825_BIGFLASH_config	\
1662efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
16637ebf7443SwdenkPM826_config	\
1664efa329cbSwdenkPM826_ROMBOOT_config	\
1665efa329cbSwdenkPM826_BIGFLASH_config	\
1666efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1667f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1668f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1669efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1670f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
16717ebf7443Swdenk	else \
1672f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1673efa329cbSwdenk	fi
1674efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1675ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1676f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1677f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1678efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1679ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1680f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
16817ebf7443Swdenk		fi; \
1682efa329cbSwdenk	else \
1683ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1684efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1685ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1686f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1687f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1688efa329cbSwdenk		else \
1689f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1690efa329cbSwdenk		fi; \
1691efa329cbSwdenk	fi
1692f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1693efa329cbSwdenk
1694efa329cbSwdenkPM828_config	\
1695efa329cbSwdenkPM828_PCI_config	\
1696efa329cbSwdenkPM828_ROMBOOT_config	\
1697efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1698f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1699f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
170017076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1701f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1702ae6d1056SWolfgang Denk		$(XECHO) "... with PCI enabled" ; \
1703efa329cbSwdenk	fi
1704efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1705ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1706f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1707f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1708efa329cbSwdenk	fi
1709f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
17107ebf7443Swdenk
17117ebf7443Swdenkppmc8260_config:	unconfig
1712f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
17137ebf7443Swdenk
17148b0bfc68SwdenkRattler8248_config	\
17158b0bfc68SwdenkRattler_config:		unconfig
1716f9328639SMarian Balakowicz	@mkdir -p $(obj)include
17178b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1718f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1719f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
17208b0bfc68Swdenk
17217ebf7443SwdenkRPXsuper_config:	unconfig
1722f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
17237ebf7443Swdenk
17247ebf7443Swdenkrsdproto_config:	unconfig
1725f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
17267ebf7443Swdenk
17277ebf7443Swdenksacsng_config:	unconfig
1728f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
17297ebf7443Swdenk
17307ebf7443Swdenksbc8260_config:	unconfig
1731f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
17327ebf7443Swdenk
17337ebf7443SwdenkSCM_config:		unconfig
1734f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
17357ebf7443Swdenk
173627b207fdSwdenkTQM8255_AA_config \
173727b207fdSwdenkTQM8260_AA_config \
173827b207fdSwdenkTQM8260_AB_config \
173927b207fdSwdenkTQM8260_AC_config \
174027b207fdSwdenkTQM8260_AD_config \
174127b207fdSwdenkTQM8260_AE_config \
174227b207fdSwdenkTQM8260_AF_config \
174327b207fdSwdenkTQM8260_AG_config \
174427b207fdSwdenkTQM8260_AH_config \
17451f62bc2dSWolfgang DenkTQM8260_AI_config \
174627b207fdSwdenkTQM8265_AA_config:  unconfig
1747f9328639SMarian Balakowicz	@mkdir -p $(obj)include
174827b207fdSwdenk	@case "$@" in \
174927b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
175027b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
175127b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
175227b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
175327b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
175427b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
175527b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
175627b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
175727b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
17581f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
175927b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
176027b207fdSwdenk	esac; \
176127b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1762f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
176327b207fdSwdenk	fi; \
1764f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
176527b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
17661aaab9bfSWolfgang Denk	if [ "$${CACHE}" = "yes" ] ; then \
1767f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1768ae6d1056SWolfgang Denk		$(XECHO) "... with L2 Cache support" ; \
17697ebf7443Swdenk	else \
1770f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1771ae6d1056SWolfgang Denk		$(XECHO) "... without L2 Cache support" ; \
177227b207fdSwdenk	fi; \
17731aaab9bfSWolfgang Denk	if [ "$${BMODE}" = "60x" ] ; then \
1774f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1775ae6d1056SWolfgang Denk		$(XECHO) "... with 60x Bus Mode" ; \
177627b207fdSwdenk	else \
1777f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
1778ae6d1056SWolfgang Denk		$(XECHO) "... without 60x Bus Mode" ; \
17797ebf7443Swdenk	fi
1780f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
17817ebf7443Swdenk
1782fa230445SHeiko SchocherTQM8272_config: unconfig
1783210ed200SWolfgang Denk	@$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272
1784fa230445SHeiko Schocher
1785ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1786ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1787f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1788f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1789f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1790ba91e26aSwdenk
179154387ac9SwdenkZPC1900_config: unconfig
1792f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
17937aa78614Swdenk
17944e5ca3ebSwdenk#########################################################################
17954e5ca3ebSwdenk## Coldfire
17964e5ca3ebSwdenk#########################################################################
17974e5ca3ebSwdenk
17981552af70STsiChungLiewM52277EVB_config:	unconfig
17991552af70STsiChungLiew	@$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
18001552af70STsiChungLiew
18014a442d31STsiChungLiewM5235EVB_config \
18024a442d31STsiChungLiewM5235EVB_Flash16_config \
18034a442d31STsiChungLiewM5235EVB_Flash32_config:	unconfig
18044a442d31STsiChungLiew	@case "$@" in \
18054a442d31STsiChungLiew	M5235EVB_config)		FLASH=16;; \
18064a442d31STsiChungLiew	M5235EVB_Flash16_config)	FLASH=16;; \
18074a442d31STsiChungLiew	M5235EVB_Flash32_config)	FLASH=32;; \
18084a442d31STsiChungLiew	esac; \
18094a442d31STsiChungLiew	if [ "$${FLASH}" != "16" ] ; then \
1810ae6d1056SWolfgang Denk		echo "#define NORFLASH_PS32BIT	1" >> $(obj)include/config.h ; \
18114a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
18124a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
18134a442d31STsiChungLiew	else \
18144a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
18154a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
18164a442d31STsiChungLiew	fi
18174a442d31STsiChungLiew	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
18184a442d31STsiChungLiew
1819a605aacdSTsiChungLiewM5249EVB_config :		unconfig
1820a605aacdSTsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1821a605aacdSTsiChungLiew
1822a1436a84STsiChungLiewM5253EVBE_config :		unconfig
1823a1436a84STsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1824a1436a84STsiChungLiew
18257481266eSWolfgang Denkcobra5272_config :		unconfig
1826f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
18277481266eSWolfgang Denk
18284176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
1829f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1830f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1831f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1832f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
18334176c799SWolfgang Denk
18344176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
1835f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1836f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1837f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1838f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
18394176c799SWolfgang Denk
1840daa6e418SBartlomiej Siekaidmr_config :			unconfig
1841daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1842daa6e418SBartlomiej Sieka
18434176c799SWolfgang DenkM5271EVB_config :		unconfig
1844f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
18454176c799SWolfgang Denk
18464e5ca3ebSwdenkM5272C3_config :		unconfig
1847f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
18484e5ca3ebSwdenk
1849545c8e0aSMatthew FettkeM5275EVB_config :		unconfig
1850545c8e0aSMatthew Fettke	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1851545c8e0aSMatthew Fettke
18524e5ca3ebSwdenkM5282EVB_config :		unconfig
1853f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
18544e5ca3ebSwdenk
1855c419d1d6SstroeseTASREG_config :		unconfig
1856f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1857c419d1d6Sstroese
18588e585f02STsiChung LiewM5329AFEE_config \
18598e585f02STsiChung LiewM5329BFEE_config :	unconfig
18608e585f02STsiChung Liew	@case "$@" in \
18618e585f02STsiChung Liew	M5329AFEE_config)	NAND=0;; \
18628e585f02STsiChung Liew	M5329BFEE_config)	NAND=16;; \
18638e585f02STsiChung Liew	esac; \
18648e585f02STsiChung Liew	if [ "$${NAND}" != "0" ] ; then \
1865ab77bc54STsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
18668e585f02STsiChung Liew	fi
18678e585f02STsiChung Liew	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
18688e585f02STsiChung Liew
1869aa5f1f9dSTsiChungLiewM5373EVB_config :	unconfig
1870aa5f1f9dSTsiChungLiew	@case "$@" in \
1871aa5f1f9dSTsiChungLiew	M5373EVB_config)	NAND=16;; \
1872aa5f1f9dSTsiChungLiew	esac; \
1873aa5f1f9dSTsiChungLiew	if [ "$${NAND}" != "0" ] ; then \
1874aa5f1f9dSTsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
1875aa5f1f9dSTsiChungLiew	fi
1876aa5f1f9dSTsiChungLiew	@$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1877aa5f1f9dSTsiChungLiew
18788ae158cdSTsiChungLiewM54455EVB_config \
18798ae158cdSTsiChungLiewM54455EVB_atmel_config \
18808ae158cdSTsiChungLiewM54455EVB_intel_config \
18818ae158cdSTsiChungLiewM54455EVB_a33_config \
18828ae158cdSTsiChungLiewM54455EVB_a66_config \
18838ae158cdSTsiChungLiewM54455EVB_i33_config \
18848ae158cdSTsiChungLiewM54455EVB_i66_config :	unconfig
18858ae158cdSTsiChungLiew	@case "$@" in \
18868ae158cdSTsiChungLiew	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
18878ae158cdSTsiChungLiew	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
18888ae158cdSTsiChungLiew	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
18898ae158cdSTsiChungLiew	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
18908ae158cdSTsiChungLiew	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
18918ae158cdSTsiChungLiew	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
18928ae158cdSTsiChungLiew	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
18938ae158cdSTsiChungLiew	esac; \
18941aaab9bfSWolfgang Denk	if [ "$${FLASH}" = "INTEL" ] ; then \
18954a442d31STsiChungLiew		echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
1896e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1897e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1898ae6d1056SWolfgang Denk		$(XECHO) "... with INTEL boot..." ; \
18998ae158cdSTsiChungLiew	else \
19004a442d31STsiChungLiew		echo "#define CFG_ATMEL_BOOT"	>> $(obj)include/config.h ; \
1901e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1902e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1903ae6d1056SWolfgang Denk		$(XECHO) "... with ATMEL boot..." ; \
19048ae158cdSTsiChungLiew	fi; \
19054a442d31STsiChungLiew	echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1906ae6d1056SWolfgang Denk	$(XECHO) "... with $${FREQ}Hz input clock"
19078ae158cdSTsiChungLiew	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
19088ae158cdSTsiChungLiew
190957a12720STsiChungLiewM5475AFE_config \
191057a12720STsiChungLiewM5475BFE_config \
191157a12720STsiChungLiewM5475CFE_config \
191257a12720STsiChungLiewM5475DFE_config \
191357a12720STsiChungLiewM5475EFE_config \
191457a12720STsiChungLiewM5475FFE_config \
191557a12720STsiChungLiewM5475GFE_config :	unconfig
191657a12720STsiChungLiew	@case "$@" in \
191757a12720STsiChungLiew	M5475AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
191857a12720STsiChungLiew	M5475BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
191957a12720STsiChungLiew	M5475CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
192057a12720STsiChungLiew	M5475DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
192157a12720STsiChungLiew	M5475EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
192257a12720STsiChungLiew	M5475FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
192357a12720STsiChungLiew	M5475GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
192457a12720STsiChungLiew	esac; \
192557a12720STsiChungLiew	echo "#define CFG_BUSCLK	133333333" > $(obj)include/config.h ; \
192657a12720STsiChungLiew	echo "#define CFG_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
192757a12720STsiChungLiew	echo "#define CFG_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
192857a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
192957a12720STsiChungLiew		echo "#define CFG_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
193057a12720STsiChungLiew	fi; \
193157a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
193257a12720STsiChungLiew		echo "#define CFG_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
193357a12720STsiChungLiew	fi; \
193457a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
193557a12720STsiChungLiew		echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
193657a12720STsiChungLiew	fi; \
193757a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
193857a12720STsiChungLiew		echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
193957a12720STsiChungLiew	fi
194057a12720STsiChungLiew	@$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
194157a12720STsiChungLiew
194257a12720STsiChungLiewM5485AFE_config \
194357a12720STsiChungLiewM5485BFE_config \
194457a12720STsiChungLiewM5485CFE_config \
194557a12720STsiChungLiewM5485DFE_config \
194657a12720STsiChungLiewM5485EFE_config \
194757a12720STsiChungLiewM5485FFE_config \
194857a12720STsiChungLiewM5485GFE_config \
194957a12720STsiChungLiewM5485HFE_config :	unconfig
195057a12720STsiChungLiew	@case "$@" in \
195157a12720STsiChungLiew	M5485AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
195257a12720STsiChungLiew	M5485BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
195357a12720STsiChungLiew	M5485CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
195457a12720STsiChungLiew	M5485DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
195557a12720STsiChungLiew	M5485EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
195657a12720STsiChungLiew	M5485FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
195757a12720STsiChungLiew	M5485GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
19584d264effSTsiChungLiew	M5485HFE_config)	BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
195957a12720STsiChungLiew	esac; \
196057a12720STsiChungLiew	echo "#define CFG_BUSCLK	100000000" > $(obj)include/config.h ; \
196157a12720STsiChungLiew	echo "#define CFG_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
196257a12720STsiChungLiew	echo "#define CFG_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
196357a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
196457a12720STsiChungLiew		echo "#define CFG_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
196557a12720STsiChungLiew	fi; \
196657a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
196757a12720STsiChungLiew		echo "#define CFG_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
196857a12720STsiChungLiew	fi; \
196957a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
197057a12720STsiChungLiew		echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
197157a12720STsiChungLiew	fi; \
197257a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
197357a12720STsiChungLiew		echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
197457a12720STsiChungLiew	fi
197557a12720STsiChungLiew	@$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
197657a12720STsiChungLiew
19777ebf7443Swdenk#########################################################################
1978f046ccd1SEran Liberty## MPC83xx Systems
1979f046ccd1SEran Liberty#########################################################################
1980f046ccd1SEran Liberty
19815c5d3242SKim PhillipsMPC8313ERDB_33_config \
19825c5d3242SKim PhillipsMPC8313ERDB_66_config: unconfig
1983cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
1984c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
1985ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
1986cdd917a4SWolfgang Denk		echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
19875c5d3242SKim Phillips	fi ; \
19885c5d3242SKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
1989ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
1990cdd917a4SWolfgang Denk		echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
19915c5d3242SKim Phillips	fi ;
1992e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
19935c5d3242SKim Phillips
19948bd522ceSDave LiuMPC8315ERDB_config: unconfig
19958bd522ceSDave Liu	@$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
19968bd522ceSDave Liu
19971c274c4eSKim PhillipsMPC8323ERDB_config:	unconfig
19981c274c4eSKim Phillips	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
19991c274c4eSKim Phillips
20004decd84eSKim PhillipsMPC832XEMDS_config \
20014decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
20024decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
2003281df457STony LiMPC832XEMDS_SLAVE_config \
2004281df457STony LiMPC832XEMDS_ATM_config:	unconfig
2005cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2006c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2007ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2008cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
20094decd84eSKim Phillips	fi ; \
20104decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2011ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2012cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2013cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
20144decd84eSKim Phillips	fi ; \
20154decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
2016ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2017cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2018281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
20194decd84eSKim Phillips	fi ; \
20204decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2021ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2022cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2023281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2024281df457STony Li	fi ; \
2025281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2026ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2027281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2028281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
20294decd84eSKim Phillips	fi ;
2030e58fe957SKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2031e6f2e902SMarian Balakowicz
2032991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
2033e58fe957SKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2034991425feSMarian Balakowicz
20357a78f148STimur TabiMPC8349ITX_config \
20367a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
20377a78f148STimur TabiMPC8349ITXGP_config:	unconfig
20387a78f148STimur Tabi	@mkdir -p $(obj)include
2039e21659e3SSam Sparks	@mkdir -p $(obj)board/freescale/mpc8349itx
20407a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
20417a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
2042e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
20437a78f148STimur Tabi	fi
20447a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
2045e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
20467a78f148STimur Tabi	fi
2047e58fe957SKim Phillips	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
20484decd84eSKim Phillips
20495f820439SDave LiuMPC8360EMDS_config \
20505f820439SDave LiuMPC8360EMDS_HOST_33_config \
20515f820439SDave LiuMPC8360EMDS_HOST_66_config \
2052281df457STony LiMPC8360EMDS_SLAVE_config \
2053281df457STony LiMPC8360EMDS_ATM_config: unconfig
2054cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2055c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2056ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2057cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
20585f820439SDave Liu	fi ; \
20595f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2060ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2061cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2062cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
20635f820439SDave Liu	fi ; \
20645f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
2065ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2066cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2067281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
20685f820439SDave Liu	fi ; \
20695f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
2070ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2071cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2072281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2073281df457STony Li	fi ; \
2074281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2075ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2076281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2077281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
20785f820439SDave Liu	fi ;
2079e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
20805f820439SDave Liu
2081fab6f556SAnton VorontsovMPC8360ERDK_33_config \
2082fab6f556SAnton VorontsovMPC8360ERDK_66_config \
208391c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config:	unconfig
2084fab6f556SAnton Vorontsov	@mkdir -p $(obj)include
2085c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2086ae6d1056SWolfgang Denk		$(XECHO) -n "... CLKIN 33MHz " ; \
2087fab6f556SAnton Vorontsov		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2088fab6f556SAnton Vorontsov	fi ;
2089fab6f556SAnton Vorontsov	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2090fab6f556SAnton Vorontsov
209119580e66SDave LiuMPC837XEMDS_config \
209219580e66SDave LiuMPC837XEMDS_HOST_config:	unconfig
209319580e66SDave Liu	@mkdir -p $(obj)include
2094c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2095ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
209619580e66SDave Liu		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
209719580e66SDave Liu	fi ;
209819580e66SDave Liu	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
209919580e66SDave Liu
21005e918a98SKim PhillipsMPC837XERDB_config:	unconfig
21015e918a98SKim Phillips	@$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
21025e918a98SKim Phillips
210391e25769SPaul Gortmakersbc8349_config:		unconfig
210491e25769SPaul Gortmaker	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
210591e25769SPaul Gortmaker
21064decd84eSKim PhillipsTQM834x_config:	unconfig
21074decd84eSKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
21084decd84eSKim Phillips
21092ad6b513STimur Tabi
2110f046ccd1SEran Liberty#########################################################################
211142d1f039Swdenk## MPC85xx Systems
211242d1f039Swdenk#########################################################################
211342d1f039Swdenk
21147bd6104bSrobert lazarskiATUM8548_config:	unconfig
21157bd6104bSrobert lazarski	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
21167bd6104bSrobert lazarski
211742d1f039SwdenkMPC8540ADS_config:	unconfig
2118c2d943ffSKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
211942d1f039Swdenk
2120b0e32949SLunsheng WangMPC8540EVAL_config \
2121b0e32949SLunsheng WangMPC8540EVAL_33_config \
2122b0e32949SLunsheng WangMPC8540EVAL_66_config \
2123b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
2124b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:	  unconfig
2125f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2126c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2127ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2128b0e32949SLunsheng Wang	else \
2129f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2130ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2131b0e32949SLunsheng Wang	fi ; \
2132b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
2133f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2134ae6d1056SWolfgang Denk		$(XECHO) " slave" ; \
2135b0e32949SLunsheng Wang	else \
2136ae6d1056SWolfgang Denk		$(XECHO) " host" ; \
2137b0e32949SLunsheng Wang	fi
2138f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2139b0e32949SLunsheng Wang
214042d1f039SwdenkMPC8560ADS_config:	unconfig
2141870ceac5SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
214242d1f039Swdenk
21437f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \
214403f5c550SwdenkMPC8541CDS_config:	unconfig
21457f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2146c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
21477f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2148ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
21497f3f2bd2SRandy Vinson	fi
2150415a613bSKumar Gala	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
215103f5c550Swdenk
215281f481caSAndy FlemingMPC8544DS_config:	unconfig
215381f481caSAndy Fleming	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
215481f481caSAndy Fleming
21557f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \
2156d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
21577f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2158c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
21597f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2160ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
21617f3f2bd2SRandy Vinson	fi
2162415a613bSKumar Gala	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2163d9b94f28SJon Loeliger
21647f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \
216503f5c550SwdenkMPC8555CDS_config:	unconfig
21667f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2167c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
21687f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2169ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
21707f3f2bd2SRandy Vinson	fi
2171415a613bSKumar Gala	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
21727abf0c58Swdenk
217367431059SAndy FlemingMPC8568MDS_config:	unconfig
2174acbca876SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
217567431059SAndy Fleming
2176384cc687SwdenkPM854_config:	unconfig
2177f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2178384cc687Swdenk
2179b20d0032SWolfgang DenkPM856_config:	unconfig
2180f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2181b20d0032SWolfgang Denk
2182c15f3120Swdenksbc8540_config \
2183c15f3120Swdenksbc8540_33_config \
2184c15f3120Swdenksbc8540_66_config:	unconfig
2185f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2186c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2187f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2188ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2189c15f3120Swdenk	else \
2190ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2191c15f3120Swdenk	fi
2192f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2193c15f3120Swdenk
219411c45ebdSJoe Hammansbc8548_config:		unconfig
219511c45ebdSJoe Hamman	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
219611c45ebdSJoe Hamman
2197466b7410Swdenksbc8560_config \
2198466b7410Swdenksbc8560_33_config \
2199466b7410Swdenksbc8560_66_config:	unconfig
2200f9328639SMarian Balakowicz	@mkdir -p $(obj)include
22018b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2202f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2203ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
22048b07a110Swdenk	else \
2205ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
22068b07a110Swdenk	fi
2207f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
22088b07a110Swdenk
220903f5c550Swdenkstxgp3_config:		unconfig
2210f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
221103f5c550Swdenk
2212ee152983SWolfgang Denkstxssa_config		\
2213ee152983SWolfgang Denkstxssa_4M_config:	unconfig
2214ee152983SWolfgang Denk	@mkdir -p $(obj)include
2215ee152983SWolfgang Denk	@if [ "$(findstring _4M_,$@)" ] ; then \
2216ee152983SWolfgang Denk		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2217ae6d1056SWolfgang Denk		$(XECHO) "... with 4 MiB flash memory" ; \
2218ee152983SWolfgang Denk	fi
2219ee152983SWolfgang Denk	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
222035171dc0SDan Malek
2221d96f41e0SStefan RoeseTQM8540_config		\
2222d96f41e0SStefan RoeseTQM8541_config		\
2223d96f41e0SStefan RoeseTQM8555_config		\
2224f5c5ef4aSwdenkTQM8560_config:		unconfig
2225f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2226a889bd27SWolfgang Denk	@CTYPE=$(subst TQM,,$(@:_config=)); \
2227ae6d1056SWolfgang Denk	$(XECHO) "... TQM"$${CTYPE}; \
2228f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2229f9328639SMarian Balakowicz	echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2230f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2231f9328639SMarian Balakowicz	echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
22328a783a65SGrant Likely	echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
2233f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
2234f5c5ef4aSwdenk
223542d1f039Swdenk#########################################################################
2236debb7354SJon Loeliger## MPC86xx Systems
2237debb7354SJon Loeliger#########################################################################
2238debb7354SJon Loeliger
22393c89d754SJon LoeligerMPC8610HPCD_config:	unconfig
22403c89d754SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
22413c89d754SJon Loeliger
2242debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
22434ce91774SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2244debb7354SJon Loeliger
2245c646bba6SJoe Hammansbc8641d_config:	unconfig
224691c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2247debb7354SJon Loeliger
2248debb7354SJon Loeliger#########################################################################
22497ebf7443Swdenk## 74xx/7xx Systems
22507ebf7443Swdenk#########################################################################
22517ebf7443Swdenk
2252c7de829cSwdenkAmigaOneG3SE_config:	unconfig
2253f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2254c7de829cSwdenk
225515647dc7SwdenkBAB7xx_config: unconfig
2256f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
225715647dc7Swdenk
2258c419d1d6SstroeseCPCI750_config:	unconfig
2259f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2260c419d1d6Sstroese
22613a473b2aSwdenkDB64360_config:	unconfig
2262f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
22633a473b2aSwdenk
22643a473b2aSwdenkDB64460_config:	unconfig
2265f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
22663a473b2aSwdenk
226715647dc7SwdenkELPPC_config: unconfig
2268f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
226915647dc7Swdenk
22707ebf7443SwdenkEVB64260_config	\
22717ebf7443SwdenkEVB64260_750CX_config:	unconfig
2272f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
22737ebf7443Swdenk
22744c52783bSroy zangmpc7448hpc2_config:  unconfig
22757f1d846eSJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
22764c52783bSroy zang
227715647dc7SwdenkP3G4_config: unconfig
2278f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
22797ebf7443Swdenk
22801eac2a71SStefan Roesep3m750_config	\
22811eac2a71SStefan Roesep3m7448_config:		unconfig
22821eac2a71SStefan Roese	@mkdir -p $(obj)include
22831eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
22841eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
22851eac2a71SStefan Roese	else \
22861eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
22871eac2a71SStefan Roese	fi
22881eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
22891eac2a71SStefan Roese
22907ebf7443SwdenkPCIPPC2_config \
22917ebf7443SwdenkPCIPPC6_config: unconfig
2292f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
22937ebf7443Swdenk
229415647dc7SwdenkZUMA_config:	unconfig
2295f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
229612f34241Swdenk
2297f5e0d039SHeiko Schocherppmc7xx_config: unconfig
2298f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2299f5e0d039SHeiko Schocher
23007ebf7443Swdenk#========================================================================
23017ebf7443Swdenk# ARM
23027ebf7443Swdenk#========================================================================
23037ebf7443Swdenk#########################################################################
23047ebf7443Swdenk## StrongARM Systems
23057ebf7443Swdenk#########################################################################
23067ebf7443Swdenk
2307ea66bc88Swdenkassabet_config	:	unconfig
2308f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2309ea66bc88Swdenk
23107ebf7443Swdenkdnp1110_config	:	unconfig
2311f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
23127ebf7443Swdenk
2313855a496fSwdenkgcplus_config	:	unconfig
2314f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2315855a496fSwdenk
2316855a496fSwdenklart_config	:	unconfig
2317f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
2318855a496fSwdenk
23197ebf7443Swdenkshannon_config	:	unconfig
2320f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
23217ebf7443Swdenk
23227ebf7443Swdenk#########################################################################
23232e5983d2Swdenk## ARM92xT Systems
23247ebf7443Swdenk#########################################################################
23257ebf7443Swdenk
2326a4b46ed6SUlf Samuelsson#########################################################################
2327a4b46ed6SUlf Samuelsson## Atmel AT91RM9200 Systems
2328a4b46ed6SUlf Samuelsson#########################################################################
232920b197c6SStelian Pop
2330a85f9f21Swdenkat91rm9200dk_config	:	unconfig
233165230107SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2332a85f9f21Swdenk
2333a85f9f21Swdenkcmc_pu2_config	:	unconfig
2334f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2335a85f9f21Swdenk
2336645da510SWolfgang Denkcsb637_config	:	unconfig
2337f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2338645da510SWolfgang Denk
2339a4b46ed6SUlf Samuelssonkb9202_config	:	unconfig
2340a4b46ed6SUlf Samuelsson	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2341a4b46ed6SUlf Samuelsson
23420e4018d2SWolfgang Denkmp2usb_config	:	unconfig
2343f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
23440e4018d2SWolfgang Denk
2345ea8d989fSTimo Tuunainenm501sk_config	:	unconfig
2346ea8d989fSTimo Tuunainen	@$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
234787cb6862SWolfgang Denk
2348a4b46ed6SUlf Samuelsson#########################################################################
2349a4b46ed6SUlf Samuelsson## Atmel ARM926EJ-S Systems
2350a4b46ed6SUlf Samuelsson#########################################################################
2351a4b46ed6SUlf Samuelsson
2352a4b46ed6SUlf Samuelssonat91cap9adk_config	:	unconfig
2353a4b46ed6SUlf Samuelsson	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91sam9
2354a4b46ed6SUlf Samuelsson
2355a4b46ed6SUlf Samuelssonat91sam9260ek_config	:	unconfig
2356a4b46ed6SUlf Samuelsson	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91sam9
2357a4b46ed6SUlf Samuelsson
235874f4304eSWolfgang Denk########################################################################
235987cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
236087cb6862SWolfgang Denkintegratorap_config	\
236187cb6862SWolfgang Denkap_config		\
236287cb6862SWolfgang Denkap966_config		\
236387cb6862SWolfgang Denkap922_config		\
236487cb6862SWolfgang Denkap922_XA10_config	\
236587cb6862SWolfgang Denkap7_config		\
236687cb6862SWolfgang Denkap720t_config		\
236787cb6862SWolfgang Denkap920t_config		\
236887cb6862SWolfgang Denkap926ejs_config		\
236987cb6862SWolfgang Denkap946es_config: unconfig
237096782c63SWolfgang Denk	@board/integratorap/split_by_variant.sh $@
23713d3befa7Swdenk
237287cb6862SWolfgang Denkintegratorcp_config	\
237387cb6862SWolfgang Denkcp_config		\
237487cb6862SWolfgang Denkcp920t_config		\
237587cb6862SWolfgang Denkcp926ejs_config		\
237687cb6862SWolfgang Denkcp946es_config		\
237787cb6862SWolfgang Denkcp1136_config		\
237887cb6862SWolfgang Denkcp966_config		\
237987cb6862SWolfgang Denkcp922_config		\
238087cb6862SWolfgang Denkcp922_XA10_config	\
238187cb6862SWolfgang Denkcp1026_config: unconfig
238296782c63SWolfgang Denk	@board/integratorcp/split_by_variant.sh $@
238325d6712aSwdenk
2384f832d8a1Swdenklpd7a400_config \
2385f832d8a1Swdenklpd7a404_config:	unconfig
2386f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
23873d3befa7Swdenk
2388281e00a3Swdenkmx1ads_config	:	unconfig
2389f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2390281e00a3Swdenk
2391281e00a3Swdenkmx1fs2_config	:	unconfig
2392f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2393281e00a3Swdenk
2394ac7eb8a3SWolfgang Denknetstar_config:		unconfig
2395f4e7cbfcSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm925t netstar
2396ac7eb8a3SWolfgang Denk
23972e5983d2Swdenkomap1510inn_config :	unconfig
2398f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
23992e5983d2Swdenk
24001eaeb58eSwdenkomap5912osk_config :	unconfig
2401f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
24021eaeb58eSwdenk
2403c74b2108SSergey Kubushyndavinci_dvevm_config :	unconfig
2404c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2405c74b2108SSergey Kubushyn
2406c74b2108SSergey Kubushyndavinci_schmoogie_config :	unconfig
2407c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2408c74b2108SSergey Kubushyn
2409c74b2108SSergey Kubushyndavinci_sonata_config :	unconfig
2410c74b2108SSergey Kubushyn	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2411c74b2108SSergey Kubushyn
2412a4b46ed6SUlf Samuelssonxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2413a4b46ed6SUlf Samuelsson
241463e73c9aSwdenkomap1610inn_config \
241563e73c9aSwdenkomap1610inn_cs0boot_config \
241663e73c9aSwdenkomap1610inn_cs3boot_config \
24173ff02c27Swdenkomap1610inn_cs_autoboot_config \
241863e73c9aSwdenkomap1610h2_config \
241963e73c9aSwdenkomap1610h2_cs0boot_config \
24203ff02c27Swdenkomap1610h2_cs3boot_config \
24213ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
2422f9328639SMarian Balakowicz	@mkdir -p $(obj)include
242363e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2424cdd917a4SWolfgang Denk		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2425ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
24263ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2427cdd917a4SWolfgang Denk		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2428ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS_AUTO boot"; \
242963e73c9aSwdenk	else \
2430cdd917a4SWolfgang Denk		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2431ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
243263e73c9aSwdenk	fi;
2433f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
24346f21347dSwdenk
2435a4b46ed6SUlf Samuelssonxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2436a4b46ed6SUlf Samuelsson
2437a56bd922Swdenkomap730p2_config \
2438a56bd922Swdenkomap730p2_cs0boot_config \
2439a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
2440f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2441a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2442f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2443ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
2444a56bd922Swdenk	else \
2445f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2446ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
2447a56bd922Swdenk	fi;
2448f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2449a56bd922Swdenk
245032cb2c70SWolfgang Denksbc2410x_config: unconfig
2451f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
245232cb2c70SWolfgang Denk
2453281e00a3Swdenkscb9328_config	:	unconfig
2454f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2455281e00a3Swdenk
24567ebf7443Swdenksmdk2400_config	:	unconfig
2457f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
24587ebf7443Swdenk
24597ebf7443Swdenksmdk2410_config	:	unconfig
2460f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
24617ebf7443Swdenk
24622d24a3a7SwdenkSX1_config :		unconfig
2463f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t sx1
24642d24a3a7Swdenk
2465b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
2466a4b46ed6SUlf Samuelssonxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2467a4b46ed6SUlf Samuelsson
246843d9616cSwdenktrab_config \
2469b0639ca3Swdenktrab_bigram_config \
2470b0639ca3Swdenktrab_bigflash_config \
2471f54ebdfaSwdenktrab_old_config:	unconfig
2472f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2473f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
2474b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
2475f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2476f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
2477ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2478b0639ca3Swdenk		}
2479b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
2480f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2481f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2482ae6d1056SWolfgang Denk		  $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2483f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2484b0639ca3Swdenk		}
2485f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
2486f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2487f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2488ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2489f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
249043d9616cSwdenk		}
2491f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
24927ebf7443Swdenk
24931cb8e980SwdenkVCMA9_config	:	unconfig
2494f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
24951cb8e980Swdenk
249687cb6862SWolfgang Denk#========================================================================
249787cb6862SWolfgang Denk# ARM supplied Versatile development boards
249887cb6862SWolfgang Denk#========================================================================
249987cb6862SWolfgang Denkversatile_config	\
250087cb6862SWolfgang Denkversatileab_config	\
250187cb6862SWolfgang Denkversatilepb_config :	unconfig
250296782c63SWolfgang Denk	@board/versatile/split_by_variant.sh $@
2503074cff0dSwdenk
25043c2b3d45Swdenkvoiceblue_config:	unconfig
25054fedfddfSLadislav Michl	@$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
25063c2b3d45Swdenk
250716b013e7Swdenkcm4008_config	:	unconfig
2508f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
250916b013e7Swdenk
251016b013e7Swdenkcm41xx_config	:	unconfig
2511f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
251216b013e7Swdenk
2513074cff0dSwdenk#########################################################################
2514074cff0dSwdenk## S3C44B0 Systems
2515074cff0dSwdenk#########################################################################
2516074cff0dSwdenk
2517074cff0dSwdenkB2_config	:	unconfig
2518f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2519074cff0dSwdenk
25207ebf7443Swdenk#########################################################################
25217ebf7443Swdenk## ARM720T Systems
25227ebf7443Swdenk#########################################################################
25237ebf7443Swdenk
2524c570b2fdSWolfgang Denkarmadillo_config:	unconfig
2525f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2526c570b2fdSWolfgang Denk
25277ebf7443Swdenkep7312_config	:	unconfig
2528f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
25297ebf7443Swdenk
25302d24a3a7Swdenkimpa7_config	:	unconfig
2531f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
25322d24a3a7Swdenk
25332d1a537dSwdenkmodnet50_config :	unconfig
2534f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
25352d1a537dSwdenk
253639539887Swdenkevb4510_config :	unconfig
2537f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
253839539887Swdenk
25396bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
2540b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2541b0d8f5bfSPeter Pearse
2542b0d8f5bfSPeter PearseSMN42_config	:	unconfig
2543b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
25446bd2447eSGary Jennejohn
25457ebf7443Swdenk#########################################################################
254643d9616cSwdenk## XScale Systems
25477ebf7443Swdenk#########################################################################
25487ebf7443Swdenk
2549799891efSMichael Schwingenactux1_config	:	unconfig
2550799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux1
2551799891efSMichael Schwingen
2552799891efSMichael Schwingenactux2_config	:	unconfig
2553799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux2
2554799891efSMichael Schwingen
2555799891efSMichael Schwingenactux3_config	:	unconfig
2556799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux3
2557799891efSMichael Schwingen
2558799891efSMichael Schwingenactux4_config	:	unconfig
2559799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux4
2560799891efSMichael Schwingen
256120787e23Swdenkadsvix_config	:	unconfig
2562f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa adsvix
256320787e23Swdenk
2564fabd46acSwdenkcerf250_config :	unconfig
2565f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
2566fabd46acSwdenk
25677ebf7443Swdenkcradle_config	:	unconfig
2568f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
25697ebf7443Swdenk
25707ebf7443Swdenkcsb226_config	:	unconfig
2571f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
25727ebf7443Swdenk
257391c82076SJean-Christophe PLAGNIOL-VILLARDdelta_config :	unconfig
2574f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
25750be248faSWolfgang Denk
257643d9616cSwdenkinnokom_config	:	unconfig
2577f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
257843d9616cSwdenk
25792d5b561eSwdenkixdp425_config	:	unconfig
2580f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
25812d5b561eSwdenk
2582ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
2583f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2584ba94a1bbSWolfgang Denk
258543d9616cSwdenklubbock_config	:	unconfig
2586f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
258743d9616cSwdenk
25885720df78SHeiko Schocherpleb2_config	:	unconfig
2589f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
25905720df78SHeiko Schocher
259152f52c14Swdenklogodl_config	:	unconfig
2592f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
259352f52c14Swdenk
25949d8d5a5bSStefan Roesepdnb3_config \
25959d8d5a5bSStefan Roesescpu_config:	unconfig
2596cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
25979d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
2598cdd917a4SWolfgang Denk		echo "#define CONFIG_SCPU"	>>$(obj)include/config.h ; \
2599ae6d1056SWolfgang Denk		$(XECHO) "... on SCPU board variant" ; \
26009d8d5a5bSStefan Roese	fi
26019d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2602ba94a1bbSWolfgang Denk
2603f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
2604f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2605f57f70aaSWolfgang Denk
26065e5803e1Sstefano babictrizepsiv_config	:	unconfig
26075e5803e1Sstefano babic	@$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
26085e5803e1Sstefano babic
26093e38691eSwdenkwepep250_config	:	unconfig
2610f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
26113e38691eSwdenk
26124ec3a7f0Swdenkxaeniax_config	:	unconfig
2613f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
26144ec3a7f0Swdenk
2615efa329cbSwdenkxm250_config	:	unconfig
2616f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
2617efa329cbSwdenk
2618ca0e7748Swdenkxsengine_config :	unconfig
2619f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
2620ca0e7748Swdenk
2621e0269579SMarkus Klotzbücherzylonite_config :
2622f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
2623e0269579SMarkus Klotzbücher
26248ed96046Swdenk#########################################################################
26258ed96046Swdenk## ARM1136 Systems
26268ed96046Swdenk#########################################################################
26278ed96046Swdenkomap2420h4_config	: unconfig
26285252ed95SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
26295ca9881aSPeter Pearse
26305ca9881aSPeter Pearseapollon_config		: unconfig
2631c6fe4dabSWolfgang Denk	@mkdir -p $(obj)include
2632751b9b51SKyungmin Park	@echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
26335252ed95SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2634751b9b51SKyungmin Park	@echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
26358ed96046Swdenk
2636caebc95bSSascha Hauerimx31_litekit_config	: unconfig
2637caebc95bSSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2638caebc95bSSascha Hauer
26395ad86216SSascha Hauerimx31_phycore_config	: unconfig
26405ad86216SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
26415ad86216SSascha Hauer
2642b5dc9b30SGuennadi Liakhovetskimx31ads_config		: unconfig
2643b5dc9b30SGuennadi Liakhovetski	@$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads NULL mx31
2644b5dc9b30SGuennadi Liakhovetski
26452262cfeeSwdenk#========================================================================
26462262cfeeSwdenk# i386
26472262cfeeSwdenk#========================================================================
26482262cfeeSwdenk#########################################################################
26492262cfeeSwdenk## AMD SC520 CDP
26502262cfeeSwdenk#########################################################################
26512262cfeeSwdenksc520_cdp_config	:	unconfig
2652f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
26532262cfeeSwdenk
26547a8e9bedSwdenksc520_spunk_config	:	unconfig
2655f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
26567a8e9bedSwdenk
26577a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
2658f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
26597a8e9bedSwdenk
266043d9616cSwdenk#========================================================================
266143d9616cSwdenk# MIPS
266243d9616cSwdenk#========================================================================
26637ebf7443Swdenk#########################################################################
266443d9616cSwdenk## MIPS32 4Kc
266543d9616cSwdenk#########################################################################
266643d9616cSwdenk
2667e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2668e0ac62d7Swdenk
2669e0ac62d7Swdenkincaip_100MHz_config	\
2670e0ac62d7Swdenkincaip_133MHz_config	\
2671e0ac62d7Swdenkincaip_150MHz_config	\
267243d9616cSwdenkincaip_config: unconfig
2673f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2674e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
2675f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2676ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
2677e0ac62d7Swdenk		}
2678e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
2679f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2680ae6d1056SWolfgang Denk		  $(XECHO) "... with 133MHz system clock" ; \
2681e0ac62d7Swdenk		}
2682e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
2683f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2684ae6d1056SWolfgang Denk		  $(XECHO) "... with 150MHz system clock" ; \
2685e0ac62d7Swdenk		}
2686f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2687e0ac62d7Swdenk
2688f4863a7aSwdenktb0229_config: unconfig
2689f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
2690f4863a7aSwdenk
2691e0ac62d7Swdenk#########################################################################
269269459791Swdenk## MIPS32 AU1X00
269369459791Swdenk#########################################################################
269469459791Swdenkdbau1000_config		:	unconfig
2695f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2696210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2697f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
269869459791Swdenk
269969459791Swdenkdbau1100_config		:	unconfig
2700f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2701210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2702f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
270369459791Swdenk
270469459791Swdenkdbau1500_config		:	unconfig
2705f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2706210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2707f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
270869459791Swdenk
2709ff36fd85Swdenkdbau1550_config		:	unconfig
2710f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2711210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2712f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2713ff36fd85Swdenk
2714ff36fd85Swdenkdbau1550_el_config	:	unconfig
2715f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2716210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2717f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2718ff36fd85Swdenk
2719265817c7SWolfgang Denkpb1000_config		:	unconfig
2720f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2721210ed200SWolfgang Denk	@echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2722f9328639SMarian Balakowicz	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
2723265817c7SWolfgang Denk
27248a773983SShinya Kuribayashigth2_config:	unconfig
27258a773983SShinya Kuribayashi	@mkdir -p $(obj)include
27268a773983SShinya Kuribayashi	@echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
27278a773983SShinya Kuribayashi	@$(MKCONFIG) -a gth2 mips mips gth2
27288a773983SShinya Kuribayashi
27290764c164SVlad Lunguqemu_mips_config: unconfig
27300764c164SVlad Lungu	@mkdir -p $(obj)include
2731210ed200SWolfgang Denk	@echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
27320764c164SVlad Lungu	@$(MKCONFIG) -a qemu-mips mips mips qemu-mips
27330764c164SVlad Lungu
273469459791Swdenk#########################################################################
2735e0ac62d7Swdenk## MIPS64 5Kc
2736e0ac62d7Swdenk#########################################################################
273743d9616cSwdenk
27383e38691eSwdenkpurple_config :		unconfig
2739f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
274043d9616cSwdenk
27414a551709Swdenk#========================================================================
27424a551709Swdenk# Nios
27434a551709Swdenk#========================================================================
27444a551709Swdenk#########################################################################
27454a551709Swdenk## Nios32
27464a551709Swdenk#########################################################################
27474a551709Swdenk
2748c935d3bdSwdenkDK1C20_safe_32_config		\
2749c935d3bdSwdenkDK1C20_standard_32_config	\
27504a551709SwdenkDK1C20_config:	unconfig
2751f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2752c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2753f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2754ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
2755c935d3bdSwdenk		}
2756c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2757f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2758ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
2759c935d3bdSwdenk		}
2760c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
2761f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2762ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2763c935d3bdSwdenk		}
2764f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2765c935d3bdSwdenk
2766c935d3bdSwdenkDK1S10_safe_32_config		\
2767c935d3bdSwdenkDK1S10_standard_32_config	\
2768ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
2769c935d3bdSwdenkDK1S10_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		}
2779ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2780f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2781ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2782ec4c544bSwdenk		}
2783c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
2784f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2785ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2786c935d3bdSwdenk		}
2787f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
27884a551709Swdenk
2789aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
2790aaf224abSwdenkADNPESC1_base_32_config		\
2791aaf224abSwdenkADNPESC1_config: unconfig
2792f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2793aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
2794f9328639SMarian Balakowicz		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2795ae6d1056SWolfgang Denk		  $(XECHO) "... DNP/EVA2 configuration" ; \
2796aaf224abSwdenk		}
2797aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
2798f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2799ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration" ; \
2800aaf224abSwdenk		}
2801aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2802f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2803ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2804aaf224abSwdenk		}
2805f9328639SMarian Balakowicz	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2806aaf224abSwdenk
28075c952cf0Swdenk#########################################################################
28085c952cf0Swdenk## Nios-II
28095c952cf0Swdenk#########################################################################
28105c952cf0Swdenk
28119cc83378SScott McNuttEP1C20_config : unconfig
2812f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
28139cc83378SScott McNutt
28149cc83378SScott McNuttEP1S10_config : unconfig
2815f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
28169cc83378SScott McNutt
28179cc83378SScott McNuttEP1S40_config : unconfig
2818f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
28199cc83378SScott McNutt
28205c952cf0SwdenkPK1C20_config : unconfig
2821f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
28225c952cf0Swdenk
28235c952cf0SwdenkPCI5441_config : unconfig
2824f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
28254a551709Swdenk
2826507bbe3eSwdenk#========================================================================
2827507bbe3eSwdenk# MicroBlaze
2828507bbe3eSwdenk#========================================================================
2829507bbe3eSwdenk#########################################################################
2830507bbe3eSwdenk## Microblaze
2831507bbe3eSwdenk#########################################################################
2832507bbe3eSwdenksuzaku_config:	unconfig
2833f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2834210ed200SWolfgang Denk	@echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
2835f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2836507bbe3eSwdenk
2837cfc67116SMichal Simekml401_config:	unconfig
2838cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2839210ed200SWolfgang Denk	@echo "#define CONFIG_ML401 1" > $(obj)include/config.h
284090b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2841cfc67116SMichal Simek
284217980495SMichal Simekxupv2p_config:	unconfig
2843cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2844210ed200SWolfgang Denk	@echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
284590b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
284617980495SMichal Simek
284760fa72d6SMike Frysinger#========================================================================
284860fa72d6SMike Frysinger# Blackfin
284960fa72d6SMike Frysinger#========================================================================
28500afe519aSWolfgang Denk
285160fa72d6SMike Frysinger# Analog Devices boards
285260fa72d6SMike FrysingerBFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
28530afe519aSWolfgang Denk
285460fa72d6SMike Frysinger$(BFIN_BOARDS:%=%_config)	: unconfig
28559171fc81SMike Frysinger	@$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
285626bf7decSAubrey Li
285760fa72d6SMike Frysinger$(BFIN_BOARDS):
285860fa72d6SMike Frysinger	$(MAKE) $@_config
285960fa72d6SMike Frysinger	$(MAKE)
28600afe519aSWolfgang Denk
28615e3b0bc1SHaavard Skinnemoen#========================================================================
28625e3b0bc1SHaavard Skinnemoen# AVR32
28635e3b0bc1SHaavard Skinnemoen#========================================================================
28645e3b0bc1SHaavard Skinnemoen#########################################################################
2865a4b46ed6SUlf Samuelsson## AT32AP70xx
28665e3b0bc1SHaavard Skinnemoen#########################################################################
28675e3b0bc1SHaavard Skinnemoen
28685e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
286936f28f8aSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
28705e3b0bc1SHaavard Skinnemoen
2871667568dbSHaavard Skinnemoenatstk1003_config	:	unconfig
2872667568dbSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
2873667568dbSHaavard Skinnemoen
287464ff2357SHaavard Skinnemoenatstk1004_config	:	unconfig
287564ff2357SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
28760afe519aSWolfgang Denk
28776b443944SHaavard Skinnemoenatngw100_config	:	unconfig
28786b443944SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
28796b443944SHaavard Skinnemoen
28800afe519aSWolfgang Denk#########################################################################
28810afe519aSWolfgang Denk#########################################################################
28823e38691eSwdenk#########################################################################
28837ebf7443Swdenk
288469df3c4dSNobuhiro Iwamatsu#########################################################################
2885b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH)
2886b2b5e2bbSYoshihiro Shimoda#########################################################################
28873313e0e2SMark Jonasmpr2_config: unconfig
28883313e0e2SMark Jonas	@ >include/config.h
28893313e0e2SMark Jonas	@echo "#define CONFIG_MPR2 1" >> include/config.h
28903313e0e2SMark Jonas	@$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
28913313e0e2SMark Jonas
2892b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig
2893210ed200SWolfgang Denk	@echo "#define CONFIG_MS7720SE 1" > include/config.h
289491c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
2895b2b5e2bbSYoshihiro Shimoda
2896b2b5e2bbSYoshihiro Shimoda#########################################################################
289769df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH)
289869df3c4dSNobuhiro Iwamatsu#########################################################################
289969df3c4dSNobuhiro Iwamatsums7750se_config: unconfig
2900210ed200SWolfgang Denk	@echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
290191c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
290269df3c4dSNobuhiro Iwamatsu
2903d91ea45dSNobuhiro Iwamatsums7722se_config :	unconfig
2904210ed200SWolfgang Denk	@echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
290591c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
29067a8e9bedSwdenk
2907c2042f59Sgoda.yusukeMigoR_config :       unconfig
2908c2042f59Sgoda.yusuke	@ >include/config.h
2909c2042f59Sgoda.yusuke	@echo "#define CONFIG_MIGO_R 1" >> include/config.h
2910c2042f59Sgoda.yusuke	@./mkconfig -a $(@:_config=) sh sh4 MigoR
2911c2042f59Sgoda.yusuke
2912c133c1fbSYusuke Godar7780mp_config: unconfig
2913c133c1fbSYusuke Goda	@ >include/config.h
2914c133c1fbSYusuke Goda	@echo "#define CONFIG_R7780MP 1" >> include/config.h
2915c133c1fbSYusuke Goda	@./mkconfig -a $(@:_config=) sh sh4 r7780mp
2916c133c1fbSYusuke Goda
2917f5e2466fSNobuhiro Iwamatsur2dplus_config  :   unconfig
2918f5e2466fSNobuhiro Iwamatsu	@ >include/config.h
2919f5e2466fSNobuhiro Iwamatsu	@echo "#define CONFIG_R2DPLUS 1" >> include/config.h
2920f5e2466fSNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh4 r2dplus
2921f5e2466fSNobuhiro Iwamatsu
2922c2f02da2SDaniel Hellstrom#========================================================================
2923c2f02da2SDaniel Hellstrom# SPARC
2924c2f02da2SDaniel Hellstrom#========================================================================
29251e9a164eSDaniel Hellstrom#########################################################################
29261e9a164eSDaniel Hellstrom## LEON3
29271e9a164eSDaniel Hellstrom#########################################################################
2928c2f02da2SDaniel Hellstrom
292971d7e4c0SDaniel Hellstrom# Gaisler GR-XC3S-1500 board
293071d7e4c0SDaniel Hellstromgr_xc3s_1500_config : unconfig
293171d7e4c0SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
293271d7e4c0SDaniel Hellstrom
29336ed8a43aSDaniel Hellstrom# Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
29346ed8a43aSDaniel Hellstromgr_cpci_ax2000_config : unconfig
29356ed8a43aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
29366ed8a43aSDaniel Hellstrom
29376940383dSDaniel Hellstrom# Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
29386940383dSDaniel Hellstrom# Development board Stratix II edition, FPGA Device EP2S60.
29396940383dSDaniel Hellstromgr_ep2s60_config: unconfig
29406940383dSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
29416940383dSDaniel Hellstrom
2942823edd8aSDaniel Hellstrom# Gaisler LEON3 GRSIM simulator
2943823edd8aSDaniel Hellstromgrsim_config : unconfig
2944823edd8aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
2945823edd8aSDaniel Hellstrom
29467ebf7443Swdenk#########################################################################
2947b330990cSDaniel Hellstrom## LEON2
2948b330990cSDaniel Hellstrom#########################################################################
2949b330990cSDaniel Hellstrom
2950ab68f921SDaniel Hellstrom# Gaisler LEON2 GRSIM simulator
2951ab68f921SDaniel Hellstromgrsim_leon2_config : unconfig
2952ab68f921SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
2953ab68f921SDaniel Hellstrom
29547ebf7443Swdenk#########################################################################
29557ebf7443Swdenk#########################################################################
29567ebf7443Swdenk#########################################################################
295785ec0bccSwdenk
29583e38691eSwdenkclean:
2959f9301e1cSWolfgang Denk	@rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
2960f9301e1cSWolfgang Denk	       $(obj)examples/hello_world  $(obj)examples/interrupt	  \
2961f9301e1cSWolfgang Denk	       $(obj)examples/mem_to_mem_idma2intr			  \
2962f9301e1cSWolfgang Denk	       $(obj)examples/sched	   $(obj)examples/smc91111_eeprom \
2963f9301e1cSWolfgang Denk	       $(obj)examples/test_burst   $(obj)examples/timer
2964f9301e1cSWolfgang Denk	@rm -f $(obj)tools/bmp_logo	   $(obj)tools/easylogo/easylogo  \
2965f9301e1cSWolfgang Denk	       $(obj)tools/env/{fw_printenv,fw_setenv}			  \
2966f9301e1cSWolfgang Denk	       $(obj)tools/envcrc					  \
2967f9301e1cSWolfgang Denk	       $(obj)tools/gdb/{astest,gdbcont,gdbsend}			  \
2968f9301e1cSWolfgang Denk	       $(obj)tools/gen_eth_addr    $(obj)tools/img2srec		  \
2969f9301e1cSWolfgang Denk	       $(obj)tools/mkimage	   $(obj)tools/mpc86x_clk	  \
2970f9301e1cSWolfgang Denk	       $(obj)tools/ncb		   $(obj)tools/ubsha1
2971f9301e1cSWolfgang Denk	@rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image}	  \
2972f9301e1cSWolfgang Denk	       $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin}	  \
2973f9301e1cSWolfgang Denk	       $(obj)board/trab/trab_fkt   $(obj)board/voiceblue/eeprom   \
2974f9301e1cSWolfgang Denk	       $(obj)board/{integratorap,integratorcp}/u-boot.lds	  \
29759171fc81SMike Frysinger	       $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
29769171fc81SMike Frysinger	       $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
2977dc7746d8SWolfgang Denk	@rm -f $(obj)include/bmp_logo.h
2978dc7746d8SWolfgang Denk	@rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
29791bb707c3SKyungmin Park	@rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
2980f9301e1cSWolfgang Denk	@rm -f $(obj)api_examples/demo $(VERSION_FILE)
2981ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \
29827ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
29837ebf7443Swdenk		-o -name '*.o'	-o -name '*.a'	\) -print \
29847ebf7443Swdenk		| xargs rm -f
29857ebf7443Swdenk
29867ebf7443Swdenkclobber:	clean
2987ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \( -name .depend \
29884c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
29894c0d4c3bSwdenk		-print0 \
29904c0d4c3bSwdenk		| xargs -0 rm -f
2991ffda586fSLi Yang	@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
29925013c09fSWolfgang Denk		$(obj)cscope.* $(obj)*.*~
2993ae6d1056SWolfgang Denk	@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2994766529fcSBartlomiej Sieka	@rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
2995*89cdab78SMike Frysinger	@rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
29967e492d82SMarian Balakowicz	@rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
29975013c09fSWolfgang Denk	@rm -f $(obj)cpu/mpc824x/bedbug_603e.c
2998ae6d1056SWolfgang Denk	@rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2999ae6d1056SWolfgang Denk	@[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
3000751b9b51SKyungmin Park	@[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -lname "*" -print | xargs rm -f
3001ae6d1056SWolfgang Denk	@[ ! -d $(obj)api_examples ] || find $(obj)api_examples -lname "*" -print | xargs rm -f
30027ebf7443Swdenk
3003f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
30047ebf7443Swdenkmrproper \
30057ebf7443Swdenkdistclean:	clobber unconfig
3006f9328639SMarian Balakowiczelse
3007f9328639SMarian Balakowiczmrproper \
3008f9328639SMarian Balakowiczdistclean:	clobber unconfig
3009ae6d1056SWolfgang Denk	rm -rf $(obj)*
3010f9328639SMarian Balakowiczendif
30117ebf7443Swdenk
30127ebf7443Swdenkbackup:
30137ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
30147ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
30157ebf7443Swdenk
30167ebf7443Swdenk#########################################################################
3017