xref: /openbmc/u-boot/Makefile (revision 880f6a5d)
17ebf7443Swdenk#
2ae6d1056SWolfgang Denk# (C) Copyright 2000-2008
37ebf7443Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
47ebf7443Swdenk#
57ebf7443Swdenk# See file CREDITS for list of people who contributed to this
67ebf7443Swdenk# project.
77ebf7443Swdenk#
87ebf7443Swdenk# This program is free software; you can redistribute it and/or
97ebf7443Swdenk# modify it under the terms of the GNU General Public License as
1045a212c4SWolfgang Denk# published by the Free Software Foundatio; either version 2 of
117ebf7443Swdenk# the License, or (at your option) any later version.
127ebf7443Swdenk#
137ebf7443Swdenk# This program is distributed in the hope that it will be useful,
147ebf7443Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of
157ebf7443Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the
167ebf7443Swdenk# GNU General Public License for more details.
177ebf7443Swdenk#
187ebf7443Swdenk# You should have received a copy of the GNU General Public License
197ebf7443Swdenk# along with this program; if not, write to the Free Software
207ebf7443Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
217ebf7443Swdenk# MA 02111-1307 USA
227ebf7443Swdenk#
237ebf7443Swdenk
24881a87ecSWolfgang DenkVERSION = 1
25754bac48SWolfgang DenkPATCHLEVEL = 3
26699f0512SWolfgang DenkSUBLEVEL = 4
27cd82919eSWolfgang DenkEXTRAVERSION =
28881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29f9328639SMarian BalakowiczVERSION_FILE = $(obj)include/version_autogenerated.h
30881a87ecSWolfgang Denk
317ebf7443SwdenkHOSTARCH := $(shell uname -m | \
327ebf7443Swdenk	sed -e s/i.86/i386/ \
337ebf7443Swdenk	    -e s/sun4u/sparc64/ \
347ebf7443Swdenk	    -e s/arm.*/arm/ \
357ebf7443Swdenk	    -e s/sa110/arm/ \
367ebf7443Swdenk	    -e s/powerpc/ppc/ \
37a2280646SKumar Gala	    -e s/ppc64/ppc/ \
387ebf7443Swdenk	    -e s/macppc/ppc/)
397ebf7443Swdenk
40f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
417ebf7443Swdenk	    sed -e 's/\(cygwin\).*/cygwin/')
427ebf7443Swdenk
43f9d77ed3SWolfgang Denkexport	HOSTARCH HOSTOS
447ebf7443Swdenk
457ebf7443Swdenk# Deal with colliding definitions from tcsh etc.
467ebf7443SwdenkVENDOR=
477ebf7443Swdenk
487ebf7443Swdenk#########################################################################
49ae6d1056SWolfgang Denk# Allow for silent builds
50ae6d1056SWolfgang Denkifeq (,$(findstring s,$(MAKEFLAGS)))
51ae6d1056SWolfgang DenkXECHO = echo
52ae6d1056SWolfgang Denkelse
53ae6d1056SWolfgang DenkXECHO = :
54ae6d1056SWolfgang Denkendif
55ae6d1056SWolfgang Denk
56ae6d1056SWolfgang Denk#########################################################################
57f9328639SMarian Balakowicz#
58f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external
59f9328639SMarian Balakowicz# directory. Two use cases are supported:
60f9328639SMarian Balakowicz#
61f9328639SMarian Balakowicz# 1) Add O= to the make command line
62f9328639SMarian Balakowicz# 'make O=/tmp/build all'
63f9328639SMarian Balakowicz#
64f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location
65f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
66f9328639SMarian Balakowicz# 'make'
67f9328639SMarian Balakowicz#
68f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script
69f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
70f9328639SMarian Balakowicz# './MAKEALL'
71f9328639SMarian Balakowicz#
72f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable.
73f9328639SMarian Balakowicz#
74f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and
75f9328639SMarian Balakowicz# the object files are placed in the source directory.
76f9328639SMarian Balakowicz#
777ebf7443Swdenk
78f9328639SMarian Balakowiczifdef O
79f9328639SMarian Balakowiczifeq ("$(origin O)", "command line")
80f9328639SMarian BalakowiczBUILD_DIR := $(O)
81f9328639SMarian Balakowiczendif
82f9328639SMarian Balakowiczendif
837ebf7443Swdenk
84f9328639SMarian Balakowiczifneq ($(BUILD_DIR),)
85f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR)
864f0645ebSMarian Balakowicz
874f0645ebSMarian Balakowicz# Attempt to create a output directory.
884f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
894f0645ebSMarian Balakowicz
904f0645ebSMarian Balakowicz# Verify if it was successful.
91f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
92f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
93f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),)
94f9328639SMarian Balakowicz
95f9328639SMarian BalakowiczOBJTREE		:= $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
96f9328639SMarian BalakowiczSRCTREE		:= $(CURDIR)
97f9328639SMarian BalakowiczTOPDIR		:= $(SRCTREE)
98f9328639SMarian BalakowiczLNDIR		:= $(OBJTREE)
99f9328639SMarian Balakowiczexport	TOPDIR SRCTREE OBJTREE
100f9328639SMarian Balakowicz
101f9328639SMarian BalakowiczMKCONFIG	:= $(SRCTREE)/mkconfig
102f9328639SMarian Balakowiczexport MKCONFIG
103f9328639SMarian Balakowicz
104f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
105f9328639SMarian BalakowiczREMOTE_BUILD	:= 1
106f9328639SMarian Balakowiczexport REMOTE_BUILD
107f9328639SMarian Balakowiczendif
108f9328639SMarian Balakowicz
109f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile
110f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for
111f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc.
112f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
113f9328639SMarian Balakowiczobj := $(OBJTREE)/
114f9328639SMarian Balakowiczsrc := $(SRCTREE)/
115f9328639SMarian Balakowiczelse
116f9328639SMarian Balakowiczobj :=
117f9328639SMarian Balakowiczsrc :=
118f9328639SMarian Balakowiczendif
119f9328639SMarian Balakowiczexport obj src
120f9328639SMarian Balakowicz
1215013c09fSWolfgang Denk# Make sure CDPATH settings don't interfere
1225013c09fSWolfgang Denkunexport CDPATH
1235013c09fSWolfgang Denk
124f9328639SMarian Balakowicz#########################################################################
125f9328639SMarian Balakowicz
126f8f9dc98SKumar Galaifeq ($(ARCH),powerpc)
127f8f9dc98SKumar GalaARCH = ppc
128f8f9dc98SKumar Galaendif
129f8f9dc98SKumar Gala
130ae6d1056SWolfgang Denkifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
131f9328639SMarian Balakowicz
1327ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
133ae6d1056SWolfgang Denkinclude $(obj)include/config.mk
1341d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
135f9328639SMarian Balakowicz
1367ebf7443Swdenkifndef CROSS_COMPILE
137a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH))
1387ebf7443SwdenkCROSS_COMPILE =
1397ebf7443Swdenkelse
1407ebf7443Swdenkifeq ($(ARCH),ppc)
14116c8d5e7SWolfgang DenkCROSS_COMPILE = ppc_8xx-
1427ebf7443Swdenkendif
1437ebf7443Swdenkifeq ($(ARCH),arm)
144dc7c9a1aSwdenkCROSS_COMPILE = arm-linux-
1457ebf7443Swdenkendif
1462262cfeeSwdenkifeq ($(ARCH),i386)
1477a8e9bedSwdenkCROSS_COMPILE = i386-linux-
1487a8e9bedSwdenkendif
14943d9616cSwdenkifeq ($(ARCH),mips)
15043d9616cSwdenkCROSS_COMPILE = mips_4KC-
15143d9616cSwdenkendif
1524a551709Swdenkifeq ($(ARCH),nios)
1534a551709SwdenkCROSS_COMPILE = nios-elf-
1544a551709Swdenkendif
1555c952cf0Swdenkifeq ($(ARCH),nios2)
1565c952cf0SwdenkCROSS_COMPILE = nios2-elf-
1575c952cf0Swdenkendif
1584e5ca3ebSwdenkifeq ($(ARCH),m68k)
1594e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
1604e5ca3ebSwdenkendif
161507bbe3eSwdenkifeq ($(ARCH),microblaze)
162507bbe3eSwdenkCROSS_COMPILE = mb-
163507bbe3eSwdenkendif
1640afe519aSWolfgang Denkifeq ($(ARCH),blackfin)
165ef26a08fSAubrey.LiCROSS_COMPILE = bfin-uclinux-
1660afe519aSWolfgang Denkendif
1677b64fef3SWolfgang Denkifeq ($(ARCH),avr32)
1685374b36dSHaavard SkinnemoenCROSS_COMPILE = avr32-linux-
1697b64fef3SWolfgang Denkendif
1700b135cfcSNobuhiro Iwamatsuifeq ($(ARCH),sh)
1710b135cfcSNobuhiro IwamatsuCROSS_COMPILE = sh4-linux-
172c2f02da2SDaniel Hellstromendif
173c2f02da2SDaniel Hellstromifeq ($(ARCH),sparc)
174c2f02da2SDaniel HellstromCROSS_COMPILE = sparc-elf-
175c2f02da2SDaniel Hellstromendif	# sparc
176ae6d1056SWolfgang Denkendif	# HOSTARCH,ARCH
177ae6d1056SWolfgang Denkendif	# CROSS_COMPILE
1787ebf7443Swdenk
1797ebf7443Swdenkexport	CROSS_COMPILE
1807ebf7443Swdenk
18192b197f0SWolfgang Denk# load other configuration
18292b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk
18392b197f0SWolfgang Denk
1847ebf7443Swdenk#########################################################################
1857ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
1867ebf7443Swdenk
1877ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
1882262cfeeSwdenkifeq ($(CPU),i386)
1892262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
1902262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o
1912262cfeeSwdenkendif
1927ebf7443Swdenkifeq ($(CPU),ppc4xx)
1937ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
1947ebf7443Swdenkendif
19542d1f039Swdenkifeq ($(CPU),mpc85xx)
19642d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
19742d1f039Swdenkendif
1987ebf7443Swdenk
199f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS))
200f9328639SMarian Balakowicz
2019fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
2027608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
2037608d75fSKim Phillips	"board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
2047ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
2051d9f4105Swdenkifdef SOC
2061d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
2071d9f4105Swdenkendif
208323bfa8fSStefan Roeseifeq ($(CPU),ixp)
209323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a
210323bfa8fSStefan Roeseendif
2117ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
212518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
21343ea36fbSWilliam Juul	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a
2147ebf7443SwdenkLIBS += net/libnet.a
2157ebf7443SwdenkLIBS += disk/libdisk.a
2160f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a
21733daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a
21857a12720STsiChungLiewLIBS += drivers/dma/libdma.a
219f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a
220080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a
22116b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a
222318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a
2235ce13051SHaavard SkinnemoenLIBS += drivers/mmc/libmmc.a
22459829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a
22559829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a
22659829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a
22759829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a
228d25ce7d2SHaavard SkinnemoenLIBS += drivers/mtd/spi/libspi_flash.a
2298e585f02STsiChung LiewLIBS += drivers/net/libnet.a
23055195773SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/phy/libphy.a
2312439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a
23293a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a
23373646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a
23404a9e118SBen WarrenLIBS += drivers/spi/libspi.a
2357737d5c6SDave Liuifeq ($(CPU),mpc83xx)
2367737d5c6SDave LiuLIBS += drivers/qe/qe.a
2377737d5c6SDave Liuendif
238da9d4610SAndy Flemingifeq ($(CPU),mpc85xx)
239da9d4610SAndy FlemingLIBS += drivers/qe/qe.a
24058e5e9afSKumar GalaLIBS += cpu/mpc8xxx/ddr/libddr.a
24158e5e9afSKumar Galaendif
24258e5e9afSKumar Galaifeq ($(CPU),mpc86xx)
24358e5e9afSKumar GalaLIBS += cpu/mpc8xxx/ddr/libddr.a
244da9d4610SAndy Flemingendif
24559829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a
2468e585f02STsiChung LiewLIBS += drivers/serial/libserial.a
24759829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a
24859829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a
2497ebf7443SwdenkLIBS += common/libcommon.a
2507651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a
251500856ebSRafal JaworowskiLIBS += api/libapi.a
2522d2b994aSYuri TikhonovLIBS += post/libpost.a
253f9328639SMarian Balakowicz
254f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS))
255019895a8SStefano Babic.PHONY : $(LIBS) $(VERSION_FILE)
256a8c7c708Swdenk
257de109d90SWolfgang DenkLIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
258de109d90SWolfgang DenkLIBBOARD := $(addprefix $(obj),$(LIBBOARD))
259de109d90SWolfgang Denk
2604f7cb08eSwdenk# Add GCC lib
2611a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
2623d3befa7Swdenk
263a8c7c708Swdenk# The "tools" are needed early, so put this first
264a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
265a8c7c708SwdenkSUBDIRS	= tools \
2660dc1fc22SRafal Jaworowski	  examples \
2670dc1fc22SRafal Jaworowski	  api_examples
268500856ebSRafal Jaworowski
269b028f715Swdenk.PHONY : $(SUBDIRS)
270a8c7c708Swdenk
271887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y)
272887e2ec9SStefan RoeseNAND_SPL = nand_spl
273887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin
274887e2ec9SStefan Roeseendif
275887e2ec9SStefan Roese
276751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y)
277751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl
278751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin
279751b9b51SKyungmin Parkendif
280751b9b51SKyungmin Park
281f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS))
282de109d90SWolfgang Denk__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
283f9328639SMarian Balakowicz
2847ebf7443Swdenk#########################################################################
285bdccc4feSwdenk#########################################################################
2867ebf7443Swdenk
287751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
28894a91e24SMike Frysingerifeq ($(ARCH),blackfin)
28994a91e24SMike FrysingerALL += $(obj)u-boot.ldr
29094a91e24SMike Frysingerendif
2917ebf7443Swdenk
292bdccc4feSwdenkall:		$(ALL)
2937ebf7443Swdenk
294f9328639SMarian Balakowicz$(obj)u-boot.hex:	$(obj)u-boot
2956310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
2966310eb9dSwdenk
297f9328639SMarian Balakowicz$(obj)u-boot.srec:	$(obj)u-boot
2980817d688SRicardo Ribalda Delgado		$(OBJCOPY) -O srec $< $@
2997ebf7443Swdenk
300f9328639SMarian Balakowicz$(obj)u-boot.bin:	$(obj)u-boot
3017ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
3027ebf7443Swdenk
30394a91e24SMike Frysinger$(obj)u-boot.ldr:	$(obj)u-boot
30494a91e24SMike Frysinger		$(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
30594a91e24SMike Frysinger
30694a91e24SMike Frysinger$(obj)u-boot.ldr.hex:	$(obj)u-boot.ldr
30794a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
30894a91e24SMike Frysinger
30994a91e24SMike Frysinger$(obj)u-boot.ldr.srec:	$(obj)u-boot.ldr
31094a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
31194a91e24SMike Frysinger
312f9328639SMarian Balakowicz$(obj)u-boot.img:	$(obj)u-boot.bin
313bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
314bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
315881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
316bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
317bdccc4feSwdenk		-d $< $@
318bdccc4feSwdenk
319566a494fSHeiko Schocher$(obj)u-boot.sha1:	$(obj)u-boot.bin
32001159530SHeiko Schocher		$(obj)tools/ubsha1 $(obj)u-boot.bin
321566a494fSHeiko Schocher
322f9328639SMarian Balakowicz$(obj)u-boot.dis:	$(obj)u-boot
3237ebf7443Swdenk		$(OBJDUMP) -d $< > $@
3247ebf7443Swdenk
325de109d90SWolfgang Denk$(obj)u-boot:		depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
326de109d90SWolfgang Denk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
327de109d90SWolfgang Denk		sed  -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
328f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
329f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
330b2184c31Swdenk			-Map u-boot.map -o u-boot
3317ebf7443Swdenk
33288f72527SJohannes Stezenbach$(OBJS):	depend $(obj)include/autoconf.mk
333f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
334f9328639SMarian Balakowicz
33588f72527SJohannes Stezenbach$(LIBS):	depend $(obj)include/autoconf.mk
336f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
337a8c7c708Swdenk
338de109d90SWolfgang Denk$(LIBBOARD):	depend $(LIBS) $(obj)include/autoconf.mk
339de109d90SWolfgang Denk		$(MAKE) -C $(dir $(subst $(obj),,$@))
340de109d90SWolfgang Denk
34188f72527SJohannes Stezenbach$(SUBDIRS):	depend $(obj)include/autoconf.mk
342b028f715Swdenk		$(MAKE) -C $@ all
3437ebf7443Swdenk
344f65c9812SMike Frysinger$(LDSCRIPT):	depend $(obj)include/autoconf.mk
345f65c9812SMike Frysinger		$(MAKE) -C $(dir $@) $(notdir $@)
346f65c9812SMike Frysinger
347dd531aacSWolfgang Denk$(NAND_SPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
3488318fbf8SMarian Balakowicz		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
349887e2ec9SStefan Roese
350dd531aacSWolfgang Denk$(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
3518318fbf8SMarian Balakowicz		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
352887e2ec9SStefan Roese
353751b9b51SKyungmin Park$(ONENAND_IPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
354f2302d44SStefan Roese		$(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
355751b9b51SKyungmin Park
356751b9b51SKyungmin Park$(U_BOOT_ONENAND):	$(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
357751b9b51SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
3581bb707c3SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
359751b9b51SKyungmin Park
360ae6d1056SWolfgang Denk$(VERSION_FILE):
361aa737945SMike Frysinger		@( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
362aa737945SMike Frysinger		 '$(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion $(TOPDIR))' \
363aa737945SMike Frysinger		 ) > $@.tmp
3640ec7a061SMike Frysinger		@cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
365881a87ecSWolfgang Denk
3668f713fdfSdzugdbtools:
367f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
368f9328639SMarian Balakowicz
369f9328639SMarian Balakowiczupdater:
370f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
371f9328639SMarian Balakowicz
372f9328639SMarian Balakowiczenv:
37364b3727bSMarkus Klotzbücher		$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
3748f713fdfSdzu
375ae6d1056SWolfgang Denkdepend dep:	$(VERSION_FILE)
376f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
3777ebf7443Swdenk
378a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include
379a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR)
380a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU)
381a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH)
382a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs
383a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat
384a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos
385a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2
38643ea36fbSWilliam JuulTAG_SUBDIRS += fs/yaffs2
387a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net
388a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk
389a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common
390a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator
391a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block
392a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon
393a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c
394a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input
395a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc
3965ce13051SHaavard SkinnemoenTAG_SUBDIRS += drivers/mmc
397a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd
398a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand
399a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy
400a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand
401d25ce7d2SHaavard SkinnemoenTAG_SUBDIRS += drivers/mtd/spi
402a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net
403a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin
404a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci
405a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia
406a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe
407a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc
408a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial
40904a9e118SBen WarrenTAG_SUBDIRS += drivers/spi
410a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb
411a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video
412a340c325SJean-Christophe PLAGNIOL-VILLARD
413f9328639SMarian Balakowicztags ctags:
414ae6d1056SWolfgang Denk		ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
41588fed9a1SWolfgang Denk						-name '*.[ch]' -print`
4167ebf7443Swdenk
4177ebf7443Swdenketags:
418ae6d1056SWolfgang Denk		etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
41988fed9a1SWolfgang Denk						-name '*.[ch]' -print`
420ffda586fSLi Yangcscope:
421ffda586fSLi Yang		find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
422ffda586fSLi Yang						> cscope.files
423ffda586fSLi Yang		cscope -b -q -k
4247ebf7443Swdenk
425f9328639SMarian Balakowicz$(obj)System.map:	$(obj)u-boot
4267ebf7443Swdenk		@$(NM) $< | \
4277ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
428f9328639SMarian Balakowicz		sort > $(obj)System.map
4297ebf7443Swdenk
4302f155f6cSGrant Likely#
4312f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles)
4322f155f6cSGrant Likely#
4332f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
4342f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when
4352f155f6cSGrant Likely# to regenerate the autoconf.mk file.
4361510b82dSWolfgang Denk$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
4371510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
43816fe7775SMike Frysinger	set -e ; \
439ae6d1056SWolfgang Denk	: Generate the dependancies ; \
4401510b82dSWolfgang Denk	$(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
4411510b82dSWolfgang Denk		-MQ $(obj)include/autoconf.mk include/common.h > $@
4421510b82dSWolfgang Denk
4431510b82dSWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h
4441510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
4451510b82dSWolfgang Denk	set -e ; \
446ae6d1056SWolfgang Denk	: Extract the config macros ; \
4471510b82dSWolfgang Denk	$(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
4481510b82dSWolfgang Denk		sed -n -f tools/scripts/define2mk.sed > $@
4492f155f6cSGrant Likely
450ae6d1056SWolfgang Denksinclude $(obj)include/autoconf.mk.dep
4512f155f6cSGrant Likely
4527ebf7443Swdenk#########################################################################
453ae6d1056SWolfgang Denkelse	# !config.mk
454f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
455f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
456ae6d1056SWolfgang Denk$(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
457ffda586fSLi Yangdep tags ctags etags cscope $(obj)System.map:
4587ebf7443Swdenk	@echo "System not configured - see README" >&2
4597ebf7443Swdenk	@ exit 1
460ae6d1056SWolfgang Denkendif	# config.mk
4617ebf7443Swdenk
4624e53a258SWolfgang Denk.PHONY : CHANGELOG
4634e53a258SWolfgang DenkCHANGELOG:
464b985b5d6SBen Warren	git log --no-merges U-Boot-1_1_5.. | \
465b985b5d6SBen Warren	unexpand -a | sed -e 's/\s\s*$$//' > $@
4664e53a258SWolfgang Denk
4670a823aa2SHarald Welteinclude/license.h: tools/bin2header COPYING
4680a823aa2SHarald Welte	 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
4697ebf7443Swdenk#########################################################################
4707ebf7443Swdenk
4717ebf7443Swdenkunconfig:
472887e2ec9SStefan Roese	@rm -f $(obj)include/config.h $(obj)include/config.mk \
4732f155f6cSGrant Likely		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
4742f155f6cSGrant Likely		$(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
4757ebf7443Swdenk
4767ebf7443Swdenk#========================================================================
4777ebf7443Swdenk# PowerPC
4787ebf7443Swdenk#========================================================================
4790db5bca8Swdenk
4800db5bca8Swdenk#########################################################################
4810db5bca8Swdenk## MPC5xx Systems
4820db5bca8Swdenk#########################################################################
4830db5bca8Swdenk
4845e5f9ed2Swdenkcanmb_config:	unconfig
485f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
4865e5f9ed2Swdenk
4870db5bca8Swdenkcmi_mpc5xx_config:	unconfig
488f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
4890db5bca8Swdenk
490b6e4c403SwdenkPATI_config:		unconfig
491f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
492b6e4c403Swdenk
4937ebf7443Swdenk#########################################################################
494945af8d7Swdenk## MPC5xxx Systems
495945af8d7Swdenk#########################################################################
496a87589daSwdenk
497dafba16eSWolfgang Denkaev_config: unconfig
4984677988cSWolfgang Grandegger	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
499dafba16eSWolfgang Denk
5006ca24c64Sdzu@denx.deBC3450_config:	unconfig
501f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
5026ca24c64Sdzu@denx.de
503699f0512SWolfgang Denkcm5200_config:	unconfig
504699f0512SWolfgang Denk	@$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
505699f0512SWolfgang Denk
5065e4b3361SStefan Roesecpci5200_config:  unconfig
507f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
5085e4b3361SStefan Roese
509a87589daSwdenkhmi1001_config:	unconfig
510f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
511a87589daSwdenk
512e35745bbSwdenkLite5200_config				\
513e35745bbSwdenkLite5200_LOWBOOT_config			\
514e35745bbSwdenkLite5200_LOWBOOT08_config		\
515e35745bbSwdenkicecube_5200_config			\
516e35745bbSwdenkicecube_5200_LOWBOOT_config		\
517e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
518b2001f27Swdenkicecube_5200_DDR_config			\
51979d696fcSwdenkicecube_5200_DDR_LOWBOOT_config		\
52079d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
521e35745bbSwdenkicecube_5100_config:			unconfig
522f9328639SMarian Balakowicz	@mkdir -p $(obj)include
523f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
52417d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
52517d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
526f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
527f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
52817d704ebSwdenk		  fi ; \
529ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5305cf9da48Swdenk		}
5315cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
532f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
5335cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
534ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5355cf9da48Swdenk		}
536b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
537f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
538ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
539b2001f27Swdenk		}
540d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
541f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
542ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
543d4ca31c4Swdenk		}
544a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
545f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
546ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
547945af8d7Swdenk		}
548f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
549945af8d7Swdenk
5502605e90bSHeiko Schocherjupiter_config:	unconfig
5512605e90bSHeiko Schocher	@$(MKCONFIG) jupiter ppc mpc5xxx jupiter
5522605e90bSHeiko Schocher
553138ff60cSwdenkinka4x0_config:	unconfig
554f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
555138ff60cSwdenk
55609e4b0c5SWolfgang Denklite5200b_config	\
557d3832e8fSDomen Puncerlite5200b_PM_config	\
55809e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
559f9328639SMarian Balakowicz	@mkdir -p $(obj)include
560f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
561f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
562ae6d1056SWolfgang Denk	@ $(XECHO) "... DDR memory revision"
563f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
564f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
565d3832e8fSDomen Puncer	@[ -z "$(findstring _PM_,$@)" ] || \
566d3832e8fSDomen Puncer		{ echo "#define CONFIG_LITE5200B_PM"	>>$(obj)include/config.h ; \
567ae6d1056SWolfgang Denk		  $(XECHO) "... with power management (low-power mode) support" ; \
568d3832e8fSDomen Puncer		}
56909e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
570f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
571ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
57209e4b0c5SWolfgang Denk		}
573ae6d1056SWolfgang Denk	@ $(XECHO) "... with MPC5200B processor"
574f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
57509e4b0c5SWolfgang Denk
576f1ee9825SStefan Roesemcc200_config	\
577ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
578ed1cf845SWolfgang Denkmcc200_highboot_config	\
579ed1cf845SWolfgang Denkmcc200_COM12_config	\
580ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
581113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
582113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
583ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
584ed1cf845SWolfgang Denkprs200_config	\
585ed1cf845SWolfgang Denkprs200_DDR_config	\
586ed1cf845SWolfgang Denkprs200_highboot_config	\
587ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
588f9328639SMarian Balakowicz	@mkdir -p $(obj)include
589f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
5904819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
591ae6d1056SWolfgang Denk		{ $(XECHO) "... with lowboot configuration" ; \
592f1ee9825SStefan Roese		}
5934819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
594f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
595ae6d1056SWolfgang Denk		  $(XECHO) "... with highboot configuration" ; \
5964819fad9SWolfgang Denk		}
5974819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
598ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
599ed1cf845SWolfgang Denk		  then \
600ae6d1056SWolfgang Denk			$(XECHO) "... with DDR" ; \
601ed1cf845SWolfgang Denk		  else \
602ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
603ed1cf845SWolfgang Denk			then \
604ae6d1056SWolfgang Denk				$(XECHO) "... with DDR" ; \
605ed1cf845SWolfgang Denk			else \
606f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
607ae6d1056SWolfgang Denk				$(XECHO) "... with SDRAM" ; \
608ed1cf845SWolfgang Denk			fi; \
609ed1cf845SWolfgang Denk		  fi; \
6104819fad9SWolfgang Denk		}
6114819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
612f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
613ae6d1056SWolfgang Denk		  $(XECHO) "... with SDRAM" ; \
6144819fad9SWolfgang Denk		}
615463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
616f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
617ae6d1056SWolfgang Denk		  $(XECHO) "... with console on COM12" ; \
618463764c8SWolfgang Denk		}
619ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
620f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"	>>$(obj)include/config.h ;\
621ed1cf845SWolfgang Denk		}
622f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
62386ea5f93SWolfgang Denk
6248b7d1f0aSStefan Roesemecp5200_config:  unconfig
625ae6d1056SWolfgang Denk	@$(MKCONFIG) mecp5200  ppc mpc5xxx mecp5200 esd
6268b7d1f0aSStefan Roese
627699f0512SWolfgang Denkmotionpro_config:	unconfig
628699f0512SWolfgang Denk	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
629699f0512SWolfgang Denk
630258c37b1SHeiko Schochermucmc52_config:		unconfig
631258c37b1SHeiko Schocher	@$(MKCONFIG) mucmc52 ppc mpc5xxx mucmc52
632258c37b1SHeiko Schocher
6336341d9d7SHeiko Schochermunices_config:	unconfig
634ae6d1056SWolfgang Denk	@$(MKCONFIG) munices ppc mpc5xxx munices
6356341d9d7SHeiko Schocher
636699f0512SWolfgang DenkMVBC_P_config: unconfig
637699f0512SWolfgang Denk	@mkdir -p $(obj)include
638699f0512SWolfgang Denk	@mkdir -p $(obj)board/mvbc_p
639699f0512SWolfgang Denk	@ >$(obj)include/config.h
640699f0512SWolfgang Denk	@[ -z "$(findstring MVBC_P,$@)" ] || \
641699f0512SWolfgang Denk	{   	echo "#define CONFIG_MVBC_P" 	>>$(obj)include/config.h; }
642699f0512SWolfgang Denk	@$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
643699f0512SWolfgang Denk
64491c82076SJean-Christophe PLAGNIOL-VILLARDo2dnt_config:	unconfig
645f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
646df04a3dfSWolfgang Denk
6475e4b3361SStefan Roesepf5200_config:	unconfig
648f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
6495e4b3361SStefan Roese
65089394047SwdenkPM520_config \
65189394047SwdenkPM520_DDR_config \
65289394047SwdenkPM520_ROMBOOT_config \
65389394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
654f9328639SMarian Balakowicz	@mkdir -p $(obj)include
65589394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
656f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
657ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
65889394047Swdenk		}
65989394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
660f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
661ae6d1056SWolfgang Denk		  $(XECHO) "... booting from 8-bit flash" ; \
66289394047Swdenk		}
663f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
66489394047Swdenk
6656624b687SWolfgang Denksmmaco4_config: unconfig
6664677988cSWolfgang Grandegger	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
6679cdc8386SWolfgang Denk
6689cdc8386SWolfgang Denkspieval_config:	unconfig
6694677988cSWolfgang Grandegger	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
6709cdc8386SWolfgang Denk
67145a212c4SWolfgang DenkTB5200_B_config \
672b87dfd28SWolfgang DenkTB5200_config:	unconfig
673f9328639SMarian Balakowicz	@mkdir -p $(obj)include
67445a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
675f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
676ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200B processor" ; \
67745a212c4SWolfgang Denk		}
6784677988cSWolfgang Grandegger	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
679b87dfd28SWolfgang Denk
680d4ca31c4SwdenkMINI5200_config	\
681d4ca31c4SwdenkEVAL5200_config	\
682d4ca31c4SwdenkTOP5200_config:	unconfig
683f9328639SMarian Balakowicz	@mkdir -p $(obj)include
684f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
685f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
686d4ca31c4Swdenk
6876c7a1408SwdenkTotal5100_config		\
6886c7a1408SwdenkTotal5200_config		\
6896c7a1408SwdenkTotal5200_lowboot_config	\
6906c7a1408SwdenkTotal5200_Rev2_config		\
6916c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
692f9328639SMarian Balakowicz	@mkdir -p $(obj)include
693f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
6946c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
695f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
696ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
6976c7a1408Swdenk		}
6986c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
699f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
700ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
7016c7a1408Swdenk		}
7026c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
703f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
704ae6d1056SWolfgang Denk		  $(XECHO) "... revision 1 board" ; \
7056c7a1408Swdenk		}
7066c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
707f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
708ae6d1056SWolfgang Denk		  $(XECHO) "... revision 2 board" ; \
7096c7a1408Swdenk		}
7106c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
711f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
712ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
7136c7a1408Swdenk		}
714f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
7156c7a1408Swdenk
7165196a7a0SWolfgang Denkcam5200_config \
717d9384de2SMarian Balakowiczcam5200_niosflash_config \
7185196a7a0SWolfgang Denkfo300_config \
7195196a7a0SWolfgang DenkMiniFAP_config \
7205078cce8SWolfgang DenkTQM5200S_config \
7215078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
7225196a7a0SWolfgang DenkTQM5200_B_config \
7235196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
7245196a7a0SWolfgang DenkTQM5200_config	\
7255196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
726f9328639SMarian Balakowicz	@mkdir -p $(obj)include
7274677988cSWolfgang Grandegger	@mkdir -p $(obj)board/tqc/tqm5200
728135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
729f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
730f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
731f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
732ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200S on Cam5200" ; \
7335078cce8SWolfgang Denk		}
734d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
735d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
736ae6d1056SWolfgang Denk		  $(XECHO) "... with NIOS flash driver" ; \
737d9384de2SMarian Balakowicz		}
7386d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
739f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
740ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200 on FO300" ; \
7416d3bc9b8SMarian Balakowicz		}
742cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
743f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
744ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200_AC on MiniFAP" ; \
745978b1096SWolfgang Denk		}
746cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
747f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
748ae6d1056SWolfgang Denk		  $(XECHO) "... on a STK52XX.100 base board" ; \
74956523f12Swdenk		}
7505078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
751f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
7525078cce8SWolfgang Denk		}
7535078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
754f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
755f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
75645a212c4SWolfgang Denk		}
757978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
758f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
759978b1096SWolfgang Denk		}
7604677988cSWolfgang Grandegger	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
761699f0512SWolfgang Denk
7626dedf3d4SHeiko Schocheruc101_config:		unconfig
7636dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
76453d4a498SBartlomiej Sieka
765699f0512SWolfgang Denkv38b_config: unconfig
766699f0512SWolfgang Denk	@$(MKCONFIG) -a v38b ppc mpc5xxx v38b
76756523f12Swdenk
768945af8d7Swdenk#########################################################################
7698993e54bSRafal Jaworowski## MPC512x Systems
7708993e54bSRafal Jaworowski#########################################################################
771699f0512SWolfgang Denk
7725f91db7fSJohn Rigbyads5121_config \
773f31c49dbSMartha Marxads5121_rev2_config	\
7745f91db7fSJohn Rigby	: unconfig
775210ed200SWolfgang Denk	@mkdir -p $(obj)include
776f31c49dbSMartha Marx	@if [ "$(findstring rev2,$@)" ] ; then \
777f31c49dbSMartha Marx		echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
7785f91db7fSJohn Rigby	fi
7795f91db7fSJohn Rigby	@$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
7808993e54bSRafal Jaworowski
7818993e54bSRafal Jaworowski
7828993e54bSRafal Jaworowski#########################################################################
7837ebf7443Swdenk## MPC8xx Systems
7847ebf7443Swdenk#########################################################################
7857ebf7443Swdenk
7862d24a3a7SwdenkAdder_config	\
7872d24a3a7SwdenkAdder87x_config \
78826238132SwdenkAdderII_config	\
7892d24a3a7Swdenk	:		unconfig
790f9328639SMarian Balakowicz	@mkdir -p $(obj)include
79126238132Swdenk	$(if $(findstring AdderII,$@), \
792f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
793f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
7942d24a3a7Swdenk
79516c8d5e7SWolfgang DenkAdderUSB_config:	unconfig
79691c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
79716c8d5e7SWolfgang Denk
798180d3f74SwdenkADS860_config	  \
799180d3f74SwdenkFADS823_config	  \
800180d3f74SwdenkFADS850SAR_config \
801180d3f74SwdenkMPC86xADS_config  \
8021114257cSwdenkMPC885ADS_config  \
803180d3f74SwdenkFADS860T_config:	unconfig
804f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
8057ebf7443Swdenk
8067ebf7443SwdenkAMX860_config	:	unconfig
807f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
8087ebf7443Swdenk
8097ebf7443Swdenkc2mon_config:		unconfig
810f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
8117ebf7443Swdenk
8127ebf7443SwdenkCCM_config:		unconfig
813f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
8147ebf7443Swdenk
8157ebf7443Swdenkcogent_mpc8xx_config:	unconfig
816f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
8177ebf7443Swdenk
8183bac3513SwdenkELPT860_config:		unconfig
819f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
8203bac3513Swdenk
82184c960ceSWolfgang DenkEP88x_config:		unconfig
822f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
82384c960ceSWolfgang Denk
8247ebf7443SwdenkESTEEM192E_config:	unconfig
825f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
8267ebf7443Swdenk
8277ebf7443SwdenkETX094_config	:	unconfig
828f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
8297ebf7443Swdenk
8307ebf7443SwdenkFLAGADM_config:	unconfig
831f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
8327ebf7443Swdenk
8337aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
8347aa78614Swdenk
8357aa78614SwdenkGEN860T_SC_config	\
8367ebf7443SwdenkGEN860T_config: unconfig
837f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8387aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
839f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
840ae6d1056SWolfgang Denk		  $(XECHO) "With reduced H/W feature set (SC)..." ; \
8417aa78614Swdenk		}
842f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
8437ebf7443Swdenk
8447ebf7443SwdenkGENIETV_config:	unconfig
845f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
8467ebf7443Swdenk
8477ebf7443SwdenkGTH_config:	unconfig
848f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
8497ebf7443Swdenk
8507ebf7443Swdenkhermes_config	:	unconfig
851f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
8527ebf7443Swdenk
853c40b2956SwdenkHMI10_config	:	unconfig
8544677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
855c40b2956Swdenk
8567ebf7443SwdenkIAD210_config: unconfig
857f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
8587ebf7443Swdenk
8597ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
8607ebf7443Swdenk
8617ebf7443SwdenkICU862_100MHz_config	\
8627ebf7443SwdenkICU862_config: unconfig
863f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8647ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
865f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
866ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
8677ebf7443Swdenk		}
868f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
8697ebf7443Swdenk
8707ebf7443SwdenkIP860_config	:	unconfig
871f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
8727ebf7443Swdenk
8737ebf7443SwdenkIVML24_256_config \
8747ebf7443SwdenkIVML24_128_config \
8757ebf7443SwdenkIVML24_config:	unconfig
876f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8777ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
878f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
8797ebf7443Swdenk		 }
8807ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
881f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
8827ebf7443Swdenk		 }
8837ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
884f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
8857ebf7443Swdenk		 }
886f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
8877ebf7443Swdenk
8887ebf7443SwdenkIVMS8_256_config \
8897ebf7443SwdenkIVMS8_128_config \
8907ebf7443SwdenkIVMS8_config:	unconfig
891f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8927ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
893f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
8947ebf7443Swdenk		 }
8957ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
896f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
8977ebf7443Swdenk		 }
8987ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
899f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
9007ebf7443Swdenk		 }
901f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
9027ebf7443Swdenk
90356f94be3SwdenkKUP4K_config	:	unconfig
904f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
9050608e04dSwdenk
9060608e04dSwdenkKUP4X_config	:	unconfig
907f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
90856f94be3Swdenk
9097ebf7443SwdenkLANTEC_config	:	unconfig
910f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
9117ebf7443Swdenk
9127ebf7443Swdenklwmon_config:		unconfig
913f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
9147ebf7443Swdenk
9157ebf7443SwdenkMBX_config	\
9167ebf7443SwdenkMBX860T_config:	unconfig
917f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
9187ebf7443Swdenk
919381e4e63SHeiko Schochermgsuvd_config:		unconfig
920381e4e63SHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
921381e4e63SHeiko Schocher
9227ebf7443SwdenkMHPC_config:		unconfig
923f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
9247ebf7443Swdenk
925993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
926993cad93Swdenk
927993cad93SwdenkNETVIA_V2_config \
9287ebf7443SwdenkNETVIA_config:		unconfig
929f9328639SMarian Balakowicz	@mkdir -p $(obj)include
930993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
931f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
932ae6d1056SWolfgang Denk		  $(XECHO) "... Version 1" ; \
933993cad93Swdenk		 }
934993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
935f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
936ae6d1056SWolfgang Denk		  $(XECHO) "... Version 2" ; \
937993cad93Swdenk		 }
938f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
9397ebf7443Swdenk
940c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
941c26e454dSwdenk
942c26e454dSwdenkNETPHONE_V2_config \
94304a85b3bSwdenkNETPHONE_config:	unconfig
944f9328639SMarian Balakowicz	@mkdir -p $(obj)include
945c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
946f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
947c26e454dSwdenk		 }
948c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
949f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
950c26e454dSwdenk		 }
951f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
95204a85b3bSwdenk
95379fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
95404a85b3bSwdenk
95579fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
95679fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
95779fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
95879fa88f3SwdenkNETTA_SWAPHOOK_config \
95979fa88f3SwdenkNETTA_ISDN_6412_config \
96004a85b3bSwdenkNETTA_ISDN_config \
96179fa88f3SwdenkNETTA_6412_config \
96204a85b3bSwdenkNETTA_config:		unconfig
963f9328639SMarian Balakowicz	@mkdir -p $(obj)include
96479fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
965f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
96604a85b3bSwdenk		 }
96779fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
968f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
96979fa88f3Swdenk		 }
97079fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
971f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
97279fa88f3Swdenk		 }
97379fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
974f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
97579fa88f3Swdenk		 }
97679fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
977f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
97879fa88f3Swdenk		 }
97979fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
980f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
98179fa88f3Swdenk		 }
982f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
98304a85b3bSwdenk
98479fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
98579fa88f3Swdenk
98679fa88f3SwdenkNETTA2_V2_config \
98779fa88f3SwdenkNETTA2_config:		unconfig
988f9328639SMarian Balakowicz	@mkdir -p $(obj)include
98979fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
990f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
99179fa88f3Swdenk		 }
99279fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
993f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
99479fa88f3Swdenk		 }
995f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
99679fa88f3Swdenk
997a367d426Sdzu@denx.deNC650_Rev1_config \
998a367d426Sdzu@denx.deNC650_Rev2_config \
999a367d426Sdzu@denx.deCP850_config:	unconfig
1000f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1001a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
1002f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
1003f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1004a367d426Sdzu@denx.de		 }
1005a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
1006f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1007a367d426Sdzu@denx.de		 }
1008a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
1009f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1010a367d426Sdzu@denx.de		 }
1011f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
10127ca202f5Swdenk
10137ebf7443SwdenkNX823_config:		unconfig
1014f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
10157ebf7443Swdenk
10167ebf7443Swdenkpcu_e_config:		unconfig
1017f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
10187ebf7443Swdenk
10193bbc899fSwdenkQS850_config:	unconfig
1020f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10213bbc899fSwdenk
10223bbc899fSwdenkQS823_config:	unconfig
1023f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10243bbc899fSwdenk
10253bbc899fSwdenkQS860T_config:	unconfig
1026f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
10273bbc899fSwdenk
1028da93ed81Swdenkquantum_config:	unconfig
1029f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1030da93ed81Swdenk
10317ebf7443SwdenkR360MPI_config:	unconfig
1032f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
10337ebf7443Swdenk
1034682011ffSwdenkRBC823_config:	unconfig
1035f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1036682011ffSwdenk
10377ebf7443SwdenkRPXClassic_config:	unconfig
1038f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
10397ebf7443Swdenk
10407ebf7443SwdenkRPXlite_config:		unconfig
1041f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
10427ebf7443Swdenk
1043e63c8ee3SwdenkRPXlite_DW_64_config		\
1044e63c8ee3SwdenkRPXlite_DW_LCD_config		\
1045e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
1046e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
1047e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config	\
1048e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
1049e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config	\
1050e63c8ee3SwdenkRPXlite_DW_config:	unconfig
1051f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1052e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
1053f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
1054ae6d1056SWolfgang Denk		  $(XECHO) "... with 64MHz system clock ..."; \
1055e63c8ee3Swdenk		}
1056e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1057f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1058f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1059ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display ..."; \
1060e63c8ee3Swdenk		}
1061e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
1062f9328639SMarian Balakowicz		{ echo "#define  CFG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
1063ae6d1056SWolfgang Denk		  $(XECHO) "... with ENV in NVRAM ..."; \
1064e63c8ee3Swdenk		}
1065f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1066e63c8ee3Swdenk
106773a8b27cSwdenkrmu_config:	unconfig
1068f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
106973a8b27cSwdenk
10707ebf7443SwdenkRRvision_config:	unconfig
1071f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
10727ebf7443Swdenk
10737ebf7443SwdenkRRvision_LCD_config:	unconfig
1074f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1075f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1076f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1077f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
10787ebf7443Swdenk
10797ebf7443SwdenkSM850_config	:	unconfig
10804677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
10817ebf7443Swdenk
108291c82076SJean-Christophe PLAGNIOL-VILLARDspc1920_config:		unconfig
1083f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1084b02d0177SMarkus Klotzbuecher
10857ebf7443SwdenkSPD823TS_config:	unconfig
1086f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
10877ebf7443Swdenk
10886bdf4306SWolfgang Denkstxxtc_config:	unconfig
1089f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
10906bdf4306SWolfgang Denk
1091dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
1092f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1093dc7c9a1aSwdenk
10947ebf7443SwdenkSXNI855T_config:	unconfig
1095f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
10967ebf7443Swdenk
1097db2f721fSwdenk# EMK MPC8xx based modules
1098db2f721fSwdenkTOP860_config:		unconfig
1099f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1100db2f721fSwdenk
11017ebf7443Swdenk# Play some tricks for configuration selection
1102e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
1103e9132ea9Swdenk# and only 823 boards may have LCD support
1104e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
11057ebf7443Swdenk
11067ebf7443SwdenkFPS850L_config		\
1107384ae025SwdenkFPS860L_config		\
1108f12e568cSwdenkNSCU_config		\
11097ebf7443SwdenkTQM823L_config		\
11107ebf7443SwdenkTQM823L_LCD_config	\
11117ebf7443SwdenkTQM850L_config		\
11127ebf7443SwdenkTQM855L_config		\
11137ebf7443SwdenkTQM860L_config		\
1114d126bfbdSwdenkTQM862L_config		\
1115ae3af05eSwdenkTQM823M_config		\
1116ae3af05eSwdenkTQM850M_config		\
1117f12e568cSwdenkTQM855M_config		\
1118f12e568cSwdenkTQM860M_config		\
1119f12e568cSwdenkTQM862M_config		\
11208cba090cSWolfgang DenkTQM866M_config		\
1121090eb735SMarkus KlotzbuecherTQM885D_config		\
1122efc6f447SGuennadi LiakhovetskiTK885D_config		\
11238cba090cSWolfgang Denkvirtlab2_config:	unconfig
1124f9328639SMarian Balakowicz	@mkdir -p $(obj)include
11257ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1126f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1127f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1128ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display" ; \
11297ebf7443Swdenk		}
11304677988cSWolfgang Grandegger	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
11317ebf7443Swdenk
11327ebf7443SwdenkTTTech_config:	unconfig
1133f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1134f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1135f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
11364677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
11377ebf7443Swdenk
1138ec0aee7bSwdenkuc100_config	:	unconfig
1139f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1140f7d1572bSwdenk
1141608c9146Swdenkv37_config:	unconfig
1142f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1143f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1144f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1145f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1146608c9146Swdenk
114791e940d9Sdzuwtk_config:	unconfig
1148f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1149f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1150f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
11514677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
115291e940d9Sdzu
11537ebf7443Swdenk#########################################################################
11547ebf7443Swdenk## PPC4xx Systems
11557ebf7443Swdenk#########################################################################
1156e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
11577ebf7443Swdenk
115816c0cc1cSStefan Roeseacadia_config:	unconfig
115916c0cc1cSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
116016c0cc1cSStefan Roese
1161c440bfe6SStefan Roeseacadia_nand_config:	unconfig
116263e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/acadia
116363e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/acadia
1164c440bfe6SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1165c440bfe6SStefan Roese	@$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1166c440bfe6SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1167c440bfe6SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1168c440bfe6SStefan Roese
11697ebf7443SwdenkADCIOP_config:	unconfig
1170f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
11717ebf7443Swdenk
1172899620c2SStefan Roesealpr_config:	unconfig
117335d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1174899620c2SStefan Roese
11757521af1cSWolfgang DenkAP1000_config:unconfig
1176f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
11777521af1cSWolfgang Denk
1178c419d1d6SstroeseAPC405_config:	unconfig
1179f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1180c419d1d6Sstroese
11817ebf7443SwdenkAR405_config:	unconfig
1182f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
11837ebf7443Swdenk
1184549826eaSstroeseASH405_config:	unconfig
1185f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1186549826eaSstroese
11878a316c9bSStefan Roesebamboo_config:	unconfig
1188f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
11898a316c9bSStefan Roese
1190cf959c7dSStefan Roesebamboo_nand_config:	unconfig
119163e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/bamboo
119263e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/bamboo
1193cf959c7dSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1194f3679aa1SStefan Roese	@$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1195cf959c7dSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1196cf959c7dSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1197cf959c7dSStefan Roese
11988a316c9bSStefan Roesebubinga_config:	unconfig
1199f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1200549826eaSstroese
12017ebf7443SwdenkCANBT_config:	unconfig
1202f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
12037ebf7443Swdenk
12044c9e8557SStefan Roese# Canyonlands & Glacier use different U-Boot images
12054c9e8557SStefan Roesecanyonlands_config \
12064c9e8557SStefan Roeseglacier_config:	unconfig
12074c9e8557SStefan Roese	@mkdir -p $(obj)include
12084c9e8557SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
12094c9e8557SStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
12104c9e8557SStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1211c813f1f8SStefan Roese
1212fe7c0db6SStefan Roesecanyonlands_nand_config \
1213fe7c0db6SStefan Roeseglacier_nand_config:	unconfig
121471665ebfSStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/canyonlands
121571665ebfSStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/canyonlands
121671665ebfSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1217fe7c0db6SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1218fe7c0db6SStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
121971665ebfSStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
122071665ebfSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
122171665ebfSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
122271665ebfSStefan Roese
12231d6f9720SwdenkCATcenter_config	\
12241d6f9720SwdenkCATcenter_25_config	\
12251d6f9720SwdenkCATcenter_33_config:	unconfig
1226f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1227f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1228f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
12291d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1230f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1231ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
12321d6f9720Swdenk		}
12331d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1234f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1235ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
12361d6f9720Swdenk		}
1237f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
123810767ccbSwdenk
1239699f0512SWolfgang DenkCMS700_config:	unconfig
1240699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1241699f0512SWolfgang Denk
12427644f16fSStefan RoeseCPCI2DP_config:	unconfig
1243f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
12447644f16fSStefan Roese
1245767f9159SMatthias FuchsCPCI405_config:		unconfig
1246767f9159SMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1247767f9159SMatthias Fuchs
1248549826eaSstroeseCPCI4052_config		\
1249c419d1d6SstroeseCPCI405DT_config	\
1250549826eaSstroeseCPCI405AB_config:	unconfig
1251dd794323SMatthias Fuchs	@mkdir -p $(obj)board/esd/cpci405
1252767f9159SMatthias Fuchs	@echo "TEXT_BASE = 0xFFFC0000" > $(obj)board/esd/cpci405/config.tmp
1253f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
12547ebf7443Swdenk
12557ebf7443SwdenkCPCIISER4_config:	unconfig
1256f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
12577ebf7443Swdenk
12587ebf7443SwdenkCRAYL1_config:	unconfig
1259f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
12607ebf7443Swdenk
1261cd0a9de6Swdenkcsb272_config:	unconfig
1262f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1263cd0a9de6Swdenk
1264aa245090Swdenkcsb472_config:	unconfig
1265f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1266aa245090Swdenk
12677ebf7443SwdenkDASA_SIM_config: unconfig
1268f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
12697ebf7443Swdenk
127072cd5aa7SstroeseDP405_config:	unconfig
1271f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
127272cd5aa7Sstroese
12737ebf7443SwdenkDU405_config:	unconfig
1274f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
12757ebf7443Swdenk
12761a3ac86bSMatthias FuchsDU440_config:	unconfig
12771a3ac86bSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
12781a3ac86bSMatthias Fuchs
12798a316c9bSStefan Roeseebony_config:	unconfig
1280f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
12817ebf7443Swdenk
12827ebf7443SwdenkERIC_config:	unconfig
1283f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
12847ebf7443Swdenk
1285d1cbe85bSwdenkEXBITGEN_config:	unconfig
1286f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1287d1cbe85bSwdenk
1288c419d1d6SstroeseG2000_config:	unconfig
1289f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1290c419d1d6Sstroese
1291ac982ea5SNiklaus Gigerhcu4_config:	unconfig
1292b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
129335d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1294ac982ea5SNiklaus Giger
1295ac982ea5SNiklaus Gigerhcu5_config:	unconfig
1296b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
129735d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1298ac982ea5SNiklaus Giger
1299c419d1d6SstroeseHH405_config:	unconfig
1300f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1301c419d1d6Sstroese
130272cd5aa7SstroeseHUB405_config:	unconfig
1303f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
130472cd5aa7Sstroese
1305db01a2eaSwdenkJSE_config:	unconfig
1306f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1307db01a2eaSwdenk
1308b79316f2SStefan RoeseKAREF_config: unconfig
1309f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1310b79316f2SStefan Roese
13114745acaaSStefan Roesekatmai_config:	unconfig
13124745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
13134745acaaSStefan Roese
1314353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR)
1315353f2688SStefan Roesekilauea_config \
1316353f2688SStefan Roesehaleakala_config: unconfig
1317353f2688SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1318566806caSStefan Roese
13193d6cb3b2SStefan Roesekilauea_nand_config \
13203d6cb3b2SStefan Roesehaleakala_nand_config: unconfig
13213d6cb3b2SStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/kilauea
13223d6cb3b2SStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/kilauea
13233d6cb3b2SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
13243d6cb3b2SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
13253d6cb3b2SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
13263d6cb3b2SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
13273d6cb3b2SStefan Roese
1328c591dffeSLarry Johnsonkorat_config:	unconfig
1329c591dffeSLarry Johnson	@$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1330c591dffeSLarry Johnson
13316e7fb6eaSStefan Roeseluan_config:	unconfig
1332f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
13336e7fb6eaSStefan Roese
1334b765ffb7SStefan Roeselwmon5_config:	unconfig
1335b765ffb7SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1336b765ffb7SStefan Roese
1337211ea91aSStefan Roesemakalu_config:	unconfig
1338211ea91aSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1339211ea91aSStefan Roese
1340b05f3543SNiklaus Gigermcu25_config:  unconfig
1341b05f3543SNiklaus Giger	@mkdir -p $(obj)board/netstal/common
1342b05f3543SNiklaus Giger	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1343b05f3543SNiklaus Giger
1344b79316f2SStefan RoeseMETROBOX_config: unconfig
1345f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1346b79316f2SStefan Roese
13477ebf7443SwdenkMIP405_config:	unconfig
1348f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
13497ebf7443Swdenk
1350f3e0de60SwdenkMIP405T_config:	unconfig
1351f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1352f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1353ae6d1056SWolfgang Denk	@$(XECHO) "Enable subset config for MIP405T"
1354f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1355f3e0de60Swdenk
13567ebf7443SwdenkML2_config:	unconfig
1357f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
13587ebf7443Swdenk
1359028ab6b5Swdenkml300_config:	unconfig
1360f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1361028ab6b5Swdenk
136201a00431SRicardo Ribalda Delgadoml507_flash_config: unconfig
1363*880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
136401a00431SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ml507
1365*880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1366*880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ml507/config.tmp
1367*880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
1368*880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ml507/config.tmp
1369e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
137001a00431SRicardo Ribalda Delgado
1371086511fcSRicardo Ribalda Delgadoml507_config: unconfig
1372*880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
137301a00431SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ml507
1374*880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1375*880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ml507/config.tmp
1376*880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000"  \
1377*880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ml507/config.tmp
1378e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) ml507 ppc ppc4xx ml507 xilinx
1379086511fcSRicardo Ribalda Delgado
13808a316c9bSStefan Roeseocotea_config:	unconfig
1381f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
13820e6d798cSwdenk
13837ebf7443SwdenkOCRTC_config		\
13847ebf7443SwdenkORSG_config:	unconfig
1385f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
13867ebf7443Swdenk
13875568e613SStefan Roesep3p440_config:	unconfig
1388f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
13895568e613SStefan Roese
13907ebf7443SwdenkPCI405_config:	unconfig
1391f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
13927ebf7443Swdenk
1393a4c8d138SStefan Roesepcs440ep_config:	unconfig
1394f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1395a4c8d138SStefan Roese
13967ebf7443SwdenkPIP405_config:	unconfig
1397f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
13987ebf7443Swdenk
139972cd5aa7SstroesePLU405_config:	unconfig
1400f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
140172cd5aa7Sstroese
1402549826eaSstroesePMC405_config:	unconfig
1403f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1404549826eaSstroese
14058ba132caSMatthias FuchsPMC440_config:	unconfig
14068ba132caSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
14078ba132caSMatthias Fuchs
1408281e00a3SwdenkPPChameleonEVB_config		\
1409e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1410e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1411e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1412e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1413e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1414e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1415f9328639SMarian Balakowicz	@mkdir -p $(obj)include
14161d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1417f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1418ae6d1056SWolfgang Denk		  $(XECHO) "... BASIC model" ; \
1419fbe4b5cbSwdenk		}
14201d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1421f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1422ae6d1056SWolfgang Denk		  $(XECHO) "... MEDIUM model" ; \
1423fbe4b5cbSwdenk		}
14241d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1425f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1426ae6d1056SWolfgang Denk		  $(XECHO) "... HIGH-END model" ; \
1427fbe4b5cbSwdenk		}
1428e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1429f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1430ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
1431e55ca7e2Swdenk		}
1432e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1433f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1434ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
1435e55ca7e2Swdenk		}
1436f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
143712f34241Swdenk
143873ccb341SGary Jennejohnquad100hd_config:	unconfig
143973ccb341SGary Jennejohn	@$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
144073ccb341SGary Jennejohn
144111188d55SStefan Roeseredwood_config: unconfig
144211188d55SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
144311188d55SStefan Roese
1444430f1b0fSStefan Roesesbc405_config:	unconfig
1445430f1b0fSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1446430f1b0fSStefan Roese
1447699f0512SWolfgang Denksc3_config:unconfig
1448699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1449699f0512SWolfgang Denk
1450430f1b0fSStefan Roesesequoia_config \
1451854bc8daSStefan Roeserainier_config: unconfig
14528318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1453430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1454430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
14552aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1456854bc8daSStefan Roese
1457430f1b0fSStefan Roesesequoia_nand_config \
1458854bc8daSStefan Roeserainier_nand_config: unconfig
145963e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
146063e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/sequoia
14618318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1462430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1463430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1464430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
14658318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
14668318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1467652a10c0Swdenk
1468d4024bb7SJohn Otkentaihu_config:	unconfig
1469d4024bb7SJohn Otken	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1470d4024bb7SJohn Otken
14715fb692caSStefan Roesetaishan_config:	unconfig
14725fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
14735fb692caSStefan Roese
1474e07f4a80SRicardo Ribalda Delgadov5fx30teval_config: unconfig
1475*880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1476e07f4a80SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1477*880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1478*880f6a5dSRicardo Ribalda Delgado		> $(obj)board/avnet/v5fx30teval/config.tmp
1479*880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x03000000" \
1480*880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/avnet/v5fx30teval/config.tmp
1481e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1482e07f4a80SRicardo Ribalda Delgado
1483e07f4a80SRicardo Ribalda Delgadov5fx30teval_flash_config: unconfig
1484*880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1485e07f4a80SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
1486*880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1487*880f6a5dSRicardo Ribalda Delgado		> $(obj)/board/avnet/v5fx30teval/config.tmp
1488*880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFF1C0000" \
1489*880f6a5dSRicardo Ribalda Delgado		>> $(obj)/board/avnet/v5fx30teval/config.tmp
1490e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) v5fx30teval ppc ppc4xx v5fx30teval avnet
1491e07f4a80SRicardo Ribalda Delgado
149272cd5aa7SstroeseVOH405_config:	unconfig
1493f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
149472cd5aa7Sstroese
1495c419d1d6SstroeseVOM405_config:	unconfig
1496f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1497c419d1d6Sstroese
14987ebf7443SwdenkW7OLMC_config	\
14997ebf7443SwdenkW7OLMG_config: unconfig
1500f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
15017ebf7443Swdenk
1502430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR)
1503430f1b0fSStefan Roesewalnut_config \
1504430f1b0fSStefan Roesesycamore_config: unconfig
1505430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
15067ebf7443Swdenk
1507c419d1d6SstroeseWUH405_config:	unconfig
1508f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1509c419d1d6Sstroese
1510e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_flash_config: unconfig
1511*880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1512*880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1513*880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc440-generic/config.tmp
1514*880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0xFE360000" \
1515*880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc440-generic/config.tmp
1516e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1517e07f4a80SRicardo Ribalda Delgado
1518e07f4a80SRicardo Ribalda Delgadoxilinx-ppc440-generic_config: unconfig
1519*880f6a5dSRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1520*880f6a5dSRicardo Ribalda Delgado	@echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1521*880f6a5dSRicardo Ribalda Delgado		> $(obj)board/xilinx/ppc440-generic/config.tmp
1522*880f6a5dSRicardo Ribalda Delgado	@echo "TEXT_BASE := 0x04000000" \
1523*880f6a5dSRicardo Ribalda Delgado		>> $(obj)board/xilinx/ppc440-generic/config.tmp
1524e07f4a80SRicardo Ribalda Delgado	@$(MKCONFIG) xilinx-ppc440-generic ppc ppc4xx ppc440-generic xilinx
1525e07f4a80SRicardo Ribalda Delgado
1526ba56f625SwdenkXPEDITE1K_config:	unconfig
1527f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1528ba56f625Swdenk
1529430f1b0fSStefan Roeseyosemite_config \
15308a316c9bSStefan Roeseyellowstone_config: unconfig
1531700200c6SStefan Roese	@mkdir -p $(obj)include
1532430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1533430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
15342aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
15358a316c9bSStefan Roese
15366c5879f3SMarian Balakowiczyucca_config:	unconfig
1537f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
15386c5879f3SMarian Balakowicz
1539779e9751SStefan Roesezeus_config:	unconfig
1540779e9751SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1541779e9751SStefan Roese
15427ebf7443Swdenk#########################################################################
1543983fda83Swdenk## MPC8220 Systems
1544983fda83Swdenk#########################################################################
1545dc17fb6dSWolfgang Denk
1546dc17fb6dSWolfgang DenkAlaska8220_config	\
1547dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1548f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1549983fda83Swdenk
155012b43d51Swdenksorcery_config:		unconfig
1551f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
155212b43d51Swdenk
1553983fda83Swdenk#########################################################################
15547ebf7443Swdenk## MPC824x Systems
15557ebf7443Swdenk#########################################################################
1556efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
15573bac3513Swdenk
15580332990bSwdenkA3000_config: unconfig
1559f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
15600332990bSwdenk
15618e6f1a8eSWolfgang Denkbarco_config: unconfig
1562f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
15638e6f1a8eSWolfgang Denk
15647ebf7443SwdenkBMW_config: unconfig
1565f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
15667ebf7443Swdenk
15673bac3513SwdenkCPC45_config	\
15683bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1569f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1570f9328639SMarian Balakowicz	@cd $(obj)include ;				\
15713bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
15723bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1573ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
15743bac3513Swdenk	else \
15753bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1576ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
15773bac3513Swdenk	fi; \
15783bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
15793bac3513Swdenk
15807ebf7443SwdenkCU824_config: unconfig
1581f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
15827ebf7443Swdenk
15837abf0c58Swdenkdebris_config: unconfig
1584f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
15857abf0c58Swdenk
158680885a9dSwdenkeXalion_config: unconfig
1587f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
158880885a9dSwdenk
1589756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1590f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1591756f586aSwdenk
159253dd6ce4SWolfgang Denkkvme080_config: unconfig
1593f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
159453dd6ce4SWolfgang Denk
159561525f2fSGuennadi Liakhovetski# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
159661525f2fSGuennadi Liakhovetski# time permits.
159761525f2fSGuennadi Liakhovetski#linkstation_HDLAN_config \
159861525f2fSGuennadi Liakhovetski# Remove this line when HDLAN is fixed
159961525f2fSGuennadi Liakhovetskilinkstation_HGLAN_config: unconfig
160061525f2fSGuennadi Liakhovetski	@mkdir -p $(obj)include
160161525f2fSGuennadi Liakhovetski	@case $@ in \
160261525f2fSGuennadi Liakhovetski		*HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
160361525f2fSGuennadi Liakhovetski		*HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
160461525f2fSGuennadi Liakhovetski	esac
160561525f2fSGuennadi Liakhovetski	@$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
160661525f2fSGuennadi Liakhovetski
16077ebf7443SwdenkMOUSSE_config: unconfig
1608f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
16097ebf7443Swdenk
16107ebf7443SwdenkMUSENKI_config: unconfig
1611f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
16127ebf7443Swdenk
1613b4676a25SwdenkMVBLUE_config:	unconfig
1614f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1615b4676a25Swdenk
16167ebf7443SwdenkOXC_config: unconfig
1617f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
16187ebf7443Swdenk
16197ebf7443SwdenkPN62_config: unconfig
1620f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
16217ebf7443Swdenk
16227ebf7443SwdenkSandpoint8240_config: unconfig
1623f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
16247ebf7443Swdenk
16257ebf7443SwdenkSandpoint8245_config: unconfig
1626f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
16277ebf7443Swdenk
1628466b7410Swdenksbc8240_config: unconfig
1629f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1630466b7410Swdenk
1631d1cbe85bSwdenkSL8245_config: unconfig
1632f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1633d1cbe85bSwdenk
16347ebf7443Swdenkutx8245_config: unconfig
1635f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
16367ebf7443Swdenk
16377ebf7443Swdenk#########################################################################
16387ebf7443Swdenk## MPC8260 Systems
16397ebf7443Swdenk#########################################################################
16407ebf7443Swdenk
164154387ac9Swdenkatc_config:	unconfig
1642f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
164354387ac9Swdenk
16447ebf7443Swdenkcogent_mpc8260_config:	unconfig
1645f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
16467ebf7443Swdenk
16477ebf7443SwdenkCPU86_config	\
16487ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1649f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1650f9328639SMarian Balakowicz	@cd $(obj)include ;				\
16517ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
16527ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1653ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
16547ebf7443Swdenk	else \
16557ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1656ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
16577ebf7443Swdenk	fi; \
16587ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
16597ebf7443Swdenk
1660384cc687SwdenkCPU87_config	\
1661384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1662f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1663f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1664384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1665384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1666ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1667384cc687Swdenk	else \
1668384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1669ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1670384cc687Swdenk	fi; \
1671384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1672384cc687Swdenk
1673f901a83bSWolfgang Denkep8248_config	\
1674f901a83bSWolfgang Denkep8248E_config	:	unconfig
1675f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1676f901a83bSWolfgang Denk
16777ebf7443Swdenkep8260_config:	unconfig
1678f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
16797ebf7443Swdenk
16808d4ac794SWolfgang Denkep82xxm_config:	unconfig
168190b1b2d6SGrant Likely	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
16828d4ac794SWolfgang Denk
16837ebf7443Swdenkgw8260_config:	unconfig
1684f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
16857ebf7443Swdenk
16867ebf7443Swdenkhymod_config:	unconfig
1687f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
16887ebf7443Swdenk
16899dd41a7bSwdenkIDS8247_config:	unconfig
1690f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
16919dd41a7bSwdenk
16927ebf7443SwdenkIPHASE4539_config:	unconfig
1693f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
16947ebf7443Swdenk
1695c3c7f861SwdenkISPAN_config		\
1696c3c7f861SwdenkISPAN_REVB_config:	unconfig
1697f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1698c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
1699f9328639SMarian Balakowicz		echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1700c3c7f861Swdenk	fi
1701f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1702c3c7f861Swdenk
1703ac9db066SHeiko Schochermgcoge_config	:	unconfig
1704ac9db066SHeiko Schocher	@$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1705ac9db066SHeiko Schocher
170604a85b3bSwdenkMPC8260ADS_config	\
1707901787d6SwdenkMPC8260ADS_lowboot_config	\
170804a85b3bSwdenkMPC8260ADS_33MHz_config	\
1709901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
171004a85b3bSwdenkMPC8260ADS_40MHz_config	\
1711901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
171204a85b3bSwdenkMPC8272ADS_config	\
1713901787d6SwdenkMPC8272ADS_lowboot_config	\
171404a85b3bSwdenkPQ2FADS_config		\
1715901787d6SwdenkPQ2FADS_lowboot_config		\
171604a85b3bSwdenkPQ2FADS-VR_config	\
1717901787d6SwdenkPQ2FADS-VR_lowboot_config	\
171804a85b3bSwdenkPQ2FADS-ZU_config	\
1719901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
172004a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1721901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
172204a85b3bSwdenk	:		unconfig
1723f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1724b7e24d28SJon Loeliger	@mkdir -p $(obj)board/freescale/mpc8260ads
172504a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
1726f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1727f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
172804a85b3bSwdenk	$(if $(findstring MHz,$@), \
1729f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
173004a85b3bSwdenk	$(if $(findstring VR,$@), \
1731f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1732901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1733b7e24d28SJon Loeliger		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1734ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
1735901787d6Swdenk		}
1736b7e24d28SJon Loeliger	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
17377ebf7443Swdenk
1738db2f721fSwdenkMPC8266ADS_config:	unconfig
1739aa3511e4SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1740db2f721fSwdenk
1741adf22b66SHeiko Schochermuas3001_dev_config \
1742adf22b66SHeiko Schochermuas3001_config	:	unconfig
1743adf22b66SHeiko Schocher	@mkdir -p $(obj)include
1744adf22b66SHeiko Schocher	@mkdir -p $(obj)board/muas3001
1745adf22b66SHeiko Schocher	@if [ "$(findstring dev,$@)" ] ; then \
1746adf22b66SHeiko Schocher		echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1747adf22b66SHeiko Schocher	fi
1748adf22b66SHeiko Schocher	@$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001
1749adf22b66SHeiko Schocher
1750efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
175110f67017SwdenkPM825_config	\
1752efa329cbSwdenkPM825_ROMBOOT_config	\
1753efa329cbSwdenkPM825_BIGFLASH_config	\
1754efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
17557ebf7443SwdenkPM826_config	\
1756efa329cbSwdenkPM826_ROMBOOT_config	\
1757efa329cbSwdenkPM826_BIGFLASH_config	\
1758efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1759f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1760f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1761efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1762f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
17637ebf7443Swdenk	else \
1764f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1765efa329cbSwdenk	fi
1766efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1767ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1768f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1769f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1770efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1771ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1772f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
17737ebf7443Swdenk		fi; \
1774efa329cbSwdenk	else \
1775ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1776efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1777ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1778f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1779f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1780efa329cbSwdenk		else \
1781f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1782efa329cbSwdenk		fi; \
1783efa329cbSwdenk	fi
1784f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1785efa329cbSwdenk
1786efa329cbSwdenkPM828_config	\
1787efa329cbSwdenkPM828_PCI_config	\
1788efa329cbSwdenkPM828_ROMBOOT_config	\
1789efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1790f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1791f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
179217076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1793f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1794ae6d1056SWolfgang Denk		$(XECHO) "... with PCI enabled" ; \
1795efa329cbSwdenk	fi
1796efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1797ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1798f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1799f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1800efa329cbSwdenk	fi
1801f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
18027ebf7443Swdenk
18037ebf7443Swdenkppmc8260_config:	unconfig
1804f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
18057ebf7443Swdenk
18068b0bfc68SwdenkRattler8248_config	\
18078b0bfc68SwdenkRattler_config:		unconfig
1808f9328639SMarian Balakowicz	@mkdir -p $(obj)include
18098b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1810f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1811f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
18128b0bfc68Swdenk
18137ebf7443SwdenkRPXsuper_config:	unconfig
1814f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
18157ebf7443Swdenk
18167ebf7443Swdenkrsdproto_config:	unconfig
1817f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
18187ebf7443Swdenk
18197ebf7443Swdenksacsng_config:	unconfig
1820f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
18217ebf7443Swdenk
18227ebf7443Swdenksbc8260_config:	unconfig
1823f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
18247ebf7443Swdenk
18257ebf7443SwdenkSCM_config:		unconfig
1826f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
18277ebf7443Swdenk
182827b207fdSwdenkTQM8255_AA_config \
182927b207fdSwdenkTQM8260_AA_config \
183027b207fdSwdenkTQM8260_AB_config \
183127b207fdSwdenkTQM8260_AC_config \
183227b207fdSwdenkTQM8260_AD_config \
183327b207fdSwdenkTQM8260_AE_config \
183427b207fdSwdenkTQM8260_AF_config \
183527b207fdSwdenkTQM8260_AG_config \
183627b207fdSwdenkTQM8260_AH_config \
18371f62bc2dSWolfgang DenkTQM8260_AI_config \
183827b207fdSwdenkTQM8265_AA_config:  unconfig
1839f9328639SMarian Balakowicz	@mkdir -p $(obj)include
184027b207fdSwdenk	@case "$@" in \
184127b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
184227b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
184327b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
184427b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
184527b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
184627b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
184727b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
184827b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
184927b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
18501f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
185127b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
185227b207fdSwdenk	esac; \
185327b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1854f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
185527b207fdSwdenk	fi; \
1856f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
185727b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
18581aaab9bfSWolfgang Denk	if [ "$${CACHE}" = "yes" ] ; then \
1859f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1860ae6d1056SWolfgang Denk		$(XECHO) "... with L2 Cache support" ; \
18617ebf7443Swdenk	else \
1862f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1863ae6d1056SWolfgang Denk		$(XECHO) "... without L2 Cache support" ; \
186427b207fdSwdenk	fi; \
18651aaab9bfSWolfgang Denk	if [ "$${BMODE}" = "60x" ] ; then \
1866f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1867ae6d1056SWolfgang Denk		$(XECHO) "... with 60x Bus Mode" ; \
186827b207fdSwdenk	else \
1869f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
1870ae6d1056SWolfgang Denk		$(XECHO) "... without 60x Bus Mode" ; \
18717ebf7443Swdenk	fi
18724677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
18737ebf7443Swdenk
1874fa230445SHeiko SchocherTQM8272_config: unconfig
18754677988cSWolfgang Grandegger	@$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
1876fa230445SHeiko Schocher
1877ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1878ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1879f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1880f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1881f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1882ba91e26aSwdenk
188354387ac9SwdenkZPC1900_config: unconfig
1884f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
18857aa78614Swdenk
18864e5ca3ebSwdenk#########################################################################
18874e5ca3ebSwdenk## Coldfire
18884e5ca3ebSwdenk#########################################################################
18894e5ca3ebSwdenk
18901552af70STsiChungLiewM52277EVB_config:	unconfig
18911552af70STsiChungLiew	@$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
18921552af70STsiChungLiew
18934a442d31STsiChungLiewM5235EVB_config \
18944a442d31STsiChungLiewM5235EVB_Flash16_config \
18954a442d31STsiChungLiewM5235EVB_Flash32_config:	unconfig
18964a442d31STsiChungLiew	@case "$@" in \
18974a442d31STsiChungLiew	M5235EVB_config)		FLASH=16;; \
18984a442d31STsiChungLiew	M5235EVB_Flash16_config)	FLASH=16;; \
18994a442d31STsiChungLiew	M5235EVB_Flash32_config)	FLASH=32;; \
19004a442d31STsiChungLiew	esac; \
19014a442d31STsiChungLiew	if [ "$${FLASH}" != "16" ] ; then \
1902ae6d1056SWolfgang Denk		echo "#define NORFLASH_PS32BIT	1" >> $(obj)include/config.h ; \
19034a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
19044a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
19054a442d31STsiChungLiew	else \
19064a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
19074a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
19084a442d31STsiChungLiew	fi
19094a442d31STsiChungLiew	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
19104a442d31STsiChungLiew
1911a605aacdSTsiChungLiewM5249EVB_config :		unconfig
1912a605aacdSTsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1913a605aacdSTsiChungLiew
19146d33c6acSTsiChung LiewM5253DEMO_config :		unconfig
19156d33c6acSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
19166d33c6acSTsiChung Liew
1917a1436a84STsiChungLiewM5253EVBE_config :		unconfig
1918a1436a84STsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1919a1436a84STsiChungLiew
19207481266eSWolfgang Denkcobra5272_config :		unconfig
1921f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
19227481266eSWolfgang Denk
19234176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
1924f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1925f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1926f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1927f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
19284176c799SWolfgang Denk
19294176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
1930f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1931f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1932f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1933f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
19344176c799SWolfgang Denk
1935daa6e418SBartlomiej Siekaidmr_config :			unconfig
1936daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1937daa6e418SBartlomiej Sieka
19384176c799SWolfgang DenkM5271EVB_config :		unconfig
1939659e9badSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
19404176c799SWolfgang Denk
19414e5ca3ebSwdenkM5272C3_config :		unconfig
194256df091dSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
19434e5ca3ebSwdenk
1944545c8e0aSMatthew FettkeM5275EVB_config :		unconfig
1945545c8e0aSMatthew Fettke	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1946545c8e0aSMatthew Fettke
19474e5ca3ebSwdenkM5282EVB_config :		unconfig
194810db3a17STsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
19494e5ca3ebSwdenk
19508e585f02STsiChung LiewM5329AFEE_config \
19518e585f02STsiChung LiewM5329BFEE_config :	unconfig
19528e585f02STsiChung Liew	@case "$@" in \
19538e585f02STsiChung Liew	M5329AFEE_config)	NAND=0;; \
19548e585f02STsiChung Liew	M5329BFEE_config)	NAND=16;; \
19558e585f02STsiChung Liew	esac; \
19568e585f02STsiChung Liew	if [ "$${NAND}" != "0" ] ; then \
1957ab77bc54STsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
19588e585f02STsiChung Liew	fi
19598e585f02STsiChung Liew	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
19608e585f02STsiChung Liew
1961aa5f1f9dSTsiChungLiewM5373EVB_config :	unconfig
1962aa5f1f9dSTsiChungLiew	@case "$@" in \
1963aa5f1f9dSTsiChungLiew	M5373EVB_config)	NAND=16;; \
1964aa5f1f9dSTsiChungLiew	esac; \
1965aa5f1f9dSTsiChungLiew	if [ "$${NAND}" != "0" ] ; then \
1966aa5f1f9dSTsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
1967aa5f1f9dSTsiChungLiew	fi
1968aa5f1f9dSTsiChungLiew	@$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1969aa5f1f9dSTsiChungLiew
197005316f8eSTsiChung LiewM54451EVB_config \
197105316f8eSTsiChung LiewM54451EVB_spansion_config \
197205316f8eSTsiChung LiewM54451EVB_stmicro_config :	unconfig
197305316f8eSTsiChung Liew	@case "$@" in \
197405316f8eSTsiChung Liew	M54451EVB_config)		FLASH=SPANSION;; \
197505316f8eSTsiChung Liew	M54451EVB_spansion_config)	FLASH=SPANSION;; \
197605316f8eSTsiChung Liew	M54451EVB_stmicro_config)	FLASH=STMICRO;; \
197705316f8eSTsiChung Liew	esac; \
197805316f8eSTsiChung Liew	if [ "$${FLASH}" = "SPANSION" ] ; then \
197905316f8eSTsiChung Liew		echo "#define CFG_SPANSION_BOOT"	>> $(obj)include/config.h ; \
198005316f8eSTsiChung Liew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
198105316f8eSTsiChung Liew		cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
198205316f8eSTsiChung Liew		$(XECHO) "... with SPANSION boot..." ; \
198305316f8eSTsiChung Liew	fi; \
198405316f8eSTsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
198505316f8eSTsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
198605316f8eSTsiChung Liew		echo "#define CFG_STMICRO_BOOT"	>> $(obj)include/config.h ; \
198705316f8eSTsiChung Liew		echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
198805316f8eSTsiChung Liew		cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
198905316f8eSTsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
199005316f8eSTsiChung Liew	fi; \
199105316f8eSTsiChung Liew	echo "#define CFG_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
199205316f8eSTsiChung Liew	@$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
199305316f8eSTsiChung Liew
19948ae158cdSTsiChungLiewM54455EVB_config \
19958ae158cdSTsiChungLiewM54455EVB_atmel_config \
19968ae158cdSTsiChungLiewM54455EVB_intel_config \
19978ae158cdSTsiChungLiewM54455EVB_a33_config \
19988ae158cdSTsiChungLiewM54455EVB_a66_config \
19998ae158cdSTsiChungLiewM54455EVB_i33_config \
20009f751551STsiChung LiewM54455EVB_i66_config \
20019f751551STsiChung LiewM54455EVB_stm33_config :	unconfig
20028ae158cdSTsiChungLiew	@case "$@" in \
20038ae158cdSTsiChungLiew	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
20048ae158cdSTsiChungLiew	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
20058ae158cdSTsiChungLiew	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
20068ae158cdSTsiChungLiew	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
20078ae158cdSTsiChungLiew	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
20088ae158cdSTsiChungLiew	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
20098ae158cdSTsiChungLiew	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
20109f751551STsiChung Liew	M54455EVB_stm33_config)		FLASH=STMICRO; FREQ=33333333;; \
20118ae158cdSTsiChungLiew	esac; \
20121aaab9bfSWolfgang Denk	if [ "$${FLASH}" = "INTEL" ] ; then \
20139f751551STsiChung Liew		echo "#define CFG_INTEL_BOOT" >> $(obj)include/config.h ; \
2014e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2015e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
2016ae6d1056SWolfgang Denk		$(XECHO) "... with INTEL boot..." ; \
20179f751551STsiChung Liew	fi; \
20189f751551STsiChung Liew	if [ "$${FLASH}" = "ATMEL" ] ; then \
20194a442d31STsiChungLiew		echo "#define CFG_ATMEL_BOOT"	>> $(obj)include/config.h ; \
2020e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
2021e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
2022ae6d1056SWolfgang Denk		$(XECHO) "... with ATMEL boot..." ; \
20238ae158cdSTsiChungLiew	fi; \
20249f751551STsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
20259f751551STsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
20269f751551STsiChung Liew		echo "#define CFG_STMICRO_BOOT"	>> $(obj)include/config.h ; \
20279f751551STsiChung Liew		echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
20289f751551STsiChung Liew		cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
20299f751551STsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
20309f751551STsiChung Liew	fi; \
20314a442d31STsiChungLiew	echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
2032ae6d1056SWolfgang Denk	$(XECHO) "... with $${FREQ}Hz input clock"
20338ae158cdSTsiChungLiew	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
20348ae158cdSTsiChungLiew
203557a12720STsiChungLiewM5475AFE_config \
203657a12720STsiChungLiewM5475BFE_config \
203757a12720STsiChungLiewM5475CFE_config \
203857a12720STsiChungLiewM5475DFE_config \
203957a12720STsiChungLiewM5475EFE_config \
204057a12720STsiChungLiewM5475FFE_config \
204157a12720STsiChungLiewM5475GFE_config :	unconfig
204257a12720STsiChungLiew	@case "$@" in \
204357a12720STsiChungLiew	M5475AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
204457a12720STsiChungLiew	M5475BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
204557a12720STsiChungLiew	M5475CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
204657a12720STsiChungLiew	M5475DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
204757a12720STsiChungLiew	M5475EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
204857a12720STsiChungLiew	M5475FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
204957a12720STsiChungLiew	M5475GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
205057a12720STsiChungLiew	esac; \
205157a12720STsiChungLiew	echo "#define CFG_BUSCLK	133333333" > $(obj)include/config.h ; \
205257a12720STsiChungLiew	echo "#define CFG_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
205357a12720STsiChungLiew	echo "#define CFG_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
205457a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
205557a12720STsiChungLiew		echo "#define CFG_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
205657a12720STsiChungLiew	fi; \
205757a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
205857a12720STsiChungLiew		echo "#define CFG_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
205957a12720STsiChungLiew	fi; \
206057a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
206157a12720STsiChungLiew		echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
206257a12720STsiChungLiew	fi; \
206357a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
206457a12720STsiChungLiew		echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
206557a12720STsiChungLiew	fi
206657a12720STsiChungLiew	@$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
206757a12720STsiChungLiew
206857a12720STsiChungLiewM5485AFE_config \
206957a12720STsiChungLiewM5485BFE_config \
207057a12720STsiChungLiewM5485CFE_config \
207157a12720STsiChungLiewM5485DFE_config \
207257a12720STsiChungLiewM5485EFE_config \
207357a12720STsiChungLiewM5485FFE_config \
207457a12720STsiChungLiewM5485GFE_config \
207557a12720STsiChungLiewM5485HFE_config :	unconfig
207657a12720STsiChungLiew	@case "$@" in \
207757a12720STsiChungLiew	M5485AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
207857a12720STsiChungLiew	M5485BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
207957a12720STsiChungLiew	M5485CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
208057a12720STsiChungLiew	M5485DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
208157a12720STsiChungLiew	M5485EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
208257a12720STsiChungLiew	M5485FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
208357a12720STsiChungLiew	M5485GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
20844d264effSTsiChungLiew	M5485HFE_config)	BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
208557a12720STsiChungLiew	esac; \
208657a12720STsiChungLiew	echo "#define CFG_BUSCLK	100000000" > $(obj)include/config.h ; \
208757a12720STsiChungLiew	echo "#define CFG_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
208857a12720STsiChungLiew	echo "#define CFG_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
208957a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
209057a12720STsiChungLiew		echo "#define CFG_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
209157a12720STsiChungLiew	fi; \
209257a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
209357a12720STsiChungLiew		echo "#define CFG_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
209457a12720STsiChungLiew	fi; \
209557a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
209657a12720STsiChungLiew		echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
209757a12720STsiChungLiew	fi; \
209857a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
209957a12720STsiChungLiew		echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
210057a12720STsiChungLiew	fi
210157a12720STsiChungLiew	@$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
210257a12720STsiChungLiew
2103699f0512SWolfgang DenkTASREG_config :		unconfig
2104699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2105699f0512SWolfgang Denk
21067ebf7443Swdenk#########################################################################
2107f046ccd1SEran Liberty## MPC83xx Systems
2108f046ccd1SEran Liberty#########################################################################
2109f046ccd1SEran Liberty
21105c5d3242SKim PhillipsMPC8313ERDB_33_config \
2111e4c09508SScott WoodMPC8313ERDB_66_config \
2112e4c09508SScott WoodMPC8313ERDB_NAND_33_config \
2113e4c09508SScott WoodMPC8313ERDB_NAND_66_config: unconfig
2114cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2115e4c09508SScott Wood	@mkdir -p $(obj)board/freescale/mpc8313erdb
2116c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2117ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2118cdd917a4SWolfgang Denk		echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
21195c5d3242SKim Phillips	fi ; \
21205c5d3242SKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2121ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2122cdd917a4SWolfgang Denk		echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
2123e4c09508SScott Wood	fi ; \
2124e4c09508SScott Wood	if [ "$(findstring _NAND_,$@)" ] ; then \
2125e4c09508SScott Wood		$(XECHO) -n "...NAND..." ; \
2126f4e55a49SKim Phillips		echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2127e4c09508SScott Wood		echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
21285c5d3242SKim Phillips	fi ;
2129e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
213064ac1eb5SNick Spence	@if [ "$(findstring _NAND_,$@)" ] ; then \
213164ac1eb5SNick Spence		echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
213264ac1eb5SNick Spence	fi ;
21335c5d3242SKim Phillips
21348bd522ceSDave LiuMPC8315ERDB_config: unconfig
21358bd522ceSDave Liu	@$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
21368bd522ceSDave Liu
21371c274c4eSKim PhillipsMPC8323ERDB_config:	unconfig
21381c274c4eSKim Phillips	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
21391c274c4eSKim Phillips
21404decd84eSKim PhillipsMPC832XEMDS_config \
21414decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
21424decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
2143281df457STony LiMPC832XEMDS_SLAVE_config \
2144281df457STony LiMPC832XEMDS_ATM_config:	unconfig
2145cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2146c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2147ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2148cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
21494decd84eSKim Phillips	fi ; \
21504decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2151ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2152cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2153cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
21544decd84eSKim Phillips	fi ; \
21554decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
2156ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2157cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2158281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
21594decd84eSKim Phillips	fi ; \
21604decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2161ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2162cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2163281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2164281df457STony Li	fi ; \
2165281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2166ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2167281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2168281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
21694decd84eSKim Phillips	fi ;
2170e58fe957SKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2171e6f2e902SMarian Balakowicz
2172991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
2173e58fe957SKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2174991425feSMarian Balakowicz
21757a78f148STimur TabiMPC8349ITX_config \
21767a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
21777a78f148STimur TabiMPC8349ITXGP_config:	unconfig
21787a78f148STimur Tabi	@mkdir -p $(obj)include
2179e21659e3SSam Sparks	@mkdir -p $(obj)board/freescale/mpc8349itx
21807a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
21817a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
2182e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
21837a78f148STimur Tabi	fi
21847a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
2185e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
21867a78f148STimur Tabi	fi
2187e58fe957SKim Phillips	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
21884decd84eSKim Phillips
21895f820439SDave LiuMPC8360EMDS_config \
21905f820439SDave LiuMPC8360EMDS_HOST_33_config \
21915f820439SDave LiuMPC8360EMDS_HOST_66_config \
2192281df457STony LiMPC8360EMDS_SLAVE_config \
2193281df457STony LiMPC8360EMDS_ATM_config: unconfig
2194cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2195c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2196ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2197cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
21985f820439SDave Liu	fi ; \
21995f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2200ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2201cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2202cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
22035f820439SDave Liu	fi ; \
22045f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
2205ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2206cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2207281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
22085f820439SDave Liu	fi ; \
22095f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
2210ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2211cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2212281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2213281df457STony Li	fi ; \
2214281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2215ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2216281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2217281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
22185f820439SDave Liu	fi ;
2219e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
22205f820439SDave Liu
2221fab6f556SAnton VorontsovMPC8360ERDK_33_config \
2222fab6f556SAnton VorontsovMPC8360ERDK_66_config \
222391c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config:	unconfig
2224fab6f556SAnton Vorontsov	@mkdir -p $(obj)include
2225c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2226ae6d1056SWolfgang Denk		$(XECHO) -n "... CLKIN 33MHz " ; \
2227fab6f556SAnton Vorontsov		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2228fab6f556SAnton Vorontsov	fi ;
2229fab6f556SAnton Vorontsov	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2230fab6f556SAnton Vorontsov
223119580e66SDave LiuMPC837XEMDS_config \
223219580e66SDave LiuMPC837XEMDS_HOST_config:	unconfig
223319580e66SDave Liu	@mkdir -p $(obj)include
2234c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2235ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
223619580e66SDave Liu		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
223719580e66SDave Liu	fi ;
223819580e66SDave Liu	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
223919580e66SDave Liu
22405e918a98SKim PhillipsMPC837XERDB_config:	unconfig
22415e918a98SKim Phillips	@$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
22425e918a98SKim Phillips
2243a1293e54SAndre SchwarzMVBLM7_config: unconfig
22441a9eeb78SAndre Schwarz	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2245a1293e54SAndre Schwarz
224691e25769SPaul Gortmakersbc8349_config:		unconfig
224791e25769SPaul Gortmaker	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
224891e25769SPaul Gortmaker
22494decd84eSKim PhillipsTQM834x_config:	unconfig
22504677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
22514decd84eSKim Phillips
22522ad6b513STimur Tabi
2253f046ccd1SEran Liberty#########################################################################
225442d1f039Swdenk## MPC85xx Systems
225542d1f039Swdenk#########################################################################
225642d1f039Swdenk
22577bd6104bSrobert lazarskiATUM8548_config:	unconfig
22587bd6104bSrobert lazarski	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
22597bd6104bSrobert lazarski
22609490a7f1SKumar GalaMPC8536DS_config:       unconfig
22619490a7f1SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8536ds freescale
22629490a7f1SKumar Gala
226342d1f039SwdenkMPC8540ADS_config:	unconfig
2264c2d943ffSKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
226542d1f039Swdenk
2266b0e32949SLunsheng WangMPC8540EVAL_config \
2267b0e32949SLunsheng WangMPC8540EVAL_33_config \
2268b0e32949SLunsheng WangMPC8540EVAL_66_config \
2269b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
2270b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:	  unconfig
2271f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2272c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2273ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2274b0e32949SLunsheng Wang	else \
2275f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2276ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2277b0e32949SLunsheng Wang	fi ; \
2278b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
2279f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2280ae6d1056SWolfgang Denk		$(XECHO) " slave" ; \
2281b0e32949SLunsheng Wang	else \
2282ae6d1056SWolfgang Denk		$(XECHO) " host" ; \
2283b0e32949SLunsheng Wang	fi
2284f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2285b0e32949SLunsheng Wang
228642d1f039SwdenkMPC8560ADS_config:	unconfig
2287870ceac5SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
228842d1f039Swdenk
22897f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \
229003f5c550SwdenkMPC8541CDS_config:	unconfig
22917f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2292c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
22937f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2294ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
22957f3f2bd2SRandy Vinson	fi
2296415a613bSKumar Gala	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
229703f5c550Swdenk
229881f481caSAndy FlemingMPC8544DS_config:	unconfig
229981f481caSAndy Fleming	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
230081f481caSAndy Fleming
23017f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \
2302d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
23037f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2304c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
23057f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2306ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
23077f3f2bd2SRandy Vinson	fi
2308415a613bSKumar Gala	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2309d9b94f28SJon Loeliger
23107f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \
231103f5c550SwdenkMPC8555CDS_config:	unconfig
23127f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2313c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
23147f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2315ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
23167f3f2bd2SRandy Vinson	fi
2317415a613bSKumar Gala	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
23187abf0c58Swdenk
231967431059SAndy FlemingMPC8568MDS_config:	unconfig
2320acbca876SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
232167431059SAndy Fleming
2322129ba616SKumar GalaMPC8572DS_config:       unconfig
2323129ba616SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8572ds freescale
2324129ba616SKumar Gala
2325384cc687SwdenkPM854_config:	unconfig
2326f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2327384cc687Swdenk
2328b20d0032SWolfgang DenkPM856_config:	unconfig
2329f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2330b20d0032SWolfgang Denk
2331c15f3120Swdenksbc8540_config \
2332c15f3120Swdenksbc8540_33_config \
2333c15f3120Swdenksbc8540_66_config:	unconfig
2334f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2335c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2336f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2337ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2338c15f3120Swdenk	else \
2339ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2340c15f3120Swdenk	fi
2341f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2342c15f3120Swdenk
234311c45ebdSJoe Hammansbc8548_config:		unconfig
234411c45ebdSJoe Hamman	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
234511c45ebdSJoe Hamman
2346466b7410Swdenksbc8560_config \
2347466b7410Swdenksbc8560_33_config \
2348466b7410Swdenksbc8560_66_config:	unconfig
2349f9328639SMarian Balakowicz	@mkdir -p $(obj)include
23508b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2351f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2352ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
23538b07a110Swdenk	else \
2354ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
23558b07a110Swdenk	fi
2356f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
23578b07a110Swdenk
23585d108ac8SSergei Poselenovsocrates_config:	unconfig
23595d108ac8SSergei Poselenov	@$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
23605d108ac8SSergei Poselenov
236103f5c550Swdenkstxgp3_config:		unconfig
2362f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
236303f5c550Swdenk
2364ee152983SWolfgang Denkstxssa_config		\
2365ee152983SWolfgang Denkstxssa_4M_config:	unconfig
2366ee152983SWolfgang Denk	@mkdir -p $(obj)include
2367ee152983SWolfgang Denk	@if [ "$(findstring _4M_,$@)" ] ; then \
2368ee152983SWolfgang Denk		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2369ae6d1056SWolfgang Denk		$(XECHO) "... with 4 MiB flash memory" ; \
2370ee152983SWolfgang Denk	fi
2371ee152983SWolfgang Denk	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
237235171dc0SDan Malek
2373d96f41e0SStefan RoeseTQM8540_config		\
2374d96f41e0SStefan RoeseTQM8541_config		\
23751287e0c5SWolfgang GrandeggerTQM8548_config		\
2376d96f41e0SStefan RoeseTQM8555_config		\
2377f5c5ef4aSwdenkTQM8560_config:		unconfig
2378f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2379a889bd27SWolfgang Denk	@CTYPE=$(subst TQM,,$(@:_config=)); \
2380ae6d1056SWolfgang Denk	$(XECHO) "... TQM"$${CTYPE}; \
2381f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2382f9328639SMarian Balakowicz	echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2383f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
238425991353SWolfgang Grandegger	echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h;
23854677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2386f5c5ef4aSwdenk
238742d1f039Swdenk#########################################################################
2388debb7354SJon Loeliger## MPC86xx Systems
2389debb7354SJon Loeliger#########################################################################
2390debb7354SJon Loeliger
23913c89d754SJon LoeligerMPC8610HPCD_config:	unconfig
23923c89d754SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
23933c89d754SJon Loeliger
2394debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
23954ce91774SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2396debb7354SJon Loeliger
2397c646bba6SJoe Hammansbc8641d_config:	unconfig
239891c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2399debb7354SJon Loeliger
2400debb7354SJon Loeliger#########################################################################
24017ebf7443Swdenk## 74xx/7xx Systems
24027ebf7443Swdenk#########################################################################
24037ebf7443Swdenk
2404c7de829cSwdenkAmigaOneG3SE_config:	unconfig
2405f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2406c7de829cSwdenk
240715647dc7SwdenkBAB7xx_config: unconfig
2408f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
240915647dc7Swdenk
2410c419d1d6SstroeseCPCI750_config:	unconfig
2411f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2412c419d1d6Sstroese
24133a473b2aSwdenkDB64360_config:	unconfig
2414f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
24153a473b2aSwdenk
24163a473b2aSwdenkDB64460_config:	unconfig
2417f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
24183a473b2aSwdenk
241915647dc7SwdenkELPPC_config: unconfig
2420f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
242115647dc7Swdenk
24227ebf7443SwdenkEVB64260_config	\
24237ebf7443SwdenkEVB64260_750CX_config:	unconfig
2424f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
24257ebf7443Swdenk
24264c52783bSroy zangmpc7448hpc2_config:  unconfig
24277f1d846eSJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
24284c52783bSroy zang
242915647dc7SwdenkP3G4_config: unconfig
2430f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
24317ebf7443Swdenk
24321eac2a71SStefan Roesep3m750_config	\
24331eac2a71SStefan Roesep3m7448_config:		unconfig
24341eac2a71SStefan Roese	@mkdir -p $(obj)include
24351eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
24361eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
24371eac2a71SStefan Roese	else \
24381eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
24391eac2a71SStefan Roese	fi
24401eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
24411eac2a71SStefan Roese
24427ebf7443SwdenkPCIPPC2_config \
24437ebf7443SwdenkPCIPPC6_config: unconfig
2444f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
24457ebf7443Swdenk
2446f5e0d039SHeiko Schocherppmc7xx_config: unconfig
2447f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2448f5e0d039SHeiko Schocher
2449699f0512SWolfgang DenkZUMA_config:	unconfig
2450699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2451699f0512SWolfgang Denk
24527ebf7443Swdenk#========================================================================
24537ebf7443Swdenk# ARM
24547ebf7443Swdenk#========================================================================
24557ebf7443Swdenk#########################################################################
24567ebf7443Swdenk## StrongARM Systems
24577ebf7443Swdenk#########################################################################
24587ebf7443Swdenk
2459ea66bc88Swdenkassabet_config	:	unconfig
2460f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2461ea66bc88Swdenk
24627ebf7443Swdenkdnp1110_config	:	unconfig
2463f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
24647ebf7443Swdenk
2465855a496fSwdenkgcplus_config	:	unconfig
2466f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2467855a496fSwdenk
2468855a496fSwdenklart_config	:	unconfig
2469f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
2470855a496fSwdenk
24717ebf7443Swdenkshannon_config	:	unconfig
2472f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
24737ebf7443Swdenk
24747ebf7443Swdenk#########################################################################
24752e5983d2Swdenk## ARM92xT Systems
24767ebf7443Swdenk#########################################################################
24777ebf7443Swdenk
2478a4b46ed6SUlf Samuelsson#########################################################################
2479a4b46ed6SUlf Samuelsson## Atmel AT91RM9200 Systems
2480a4b46ed6SUlf Samuelsson#########################################################################
248120b197c6SStelian Pop
2482a85f9f21Swdenkat91rm9200dk_config	:	unconfig
248365230107SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2484a85f9f21Swdenk
2485d99a8ff6SStelian Popat91sam9261ek_config	:	unconfig
24868ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9261ek atmel at91
2487d99a8ff6SStelian Pop
24888e429b3eSStelian Popat91sam9263ek_config	:	unconfig
24898ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9263ek atmel at91
24908e429b3eSStelian Pop
24912118ebb4SStelian Popat91sam9rlek_config	:	unconfig
24928ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9rlek atmel at91
24932118ebb4SStelian Pop
2494a85f9f21Swdenkcmc_pu2_config	:	unconfig
2495f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2496a85f9f21Swdenk
2497645da510SWolfgang Denkcsb637_config	:	unconfig
2498f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2499645da510SWolfgang Denk
2500a4b46ed6SUlf Samuelssonkb9202_config	:	unconfig
2501a4b46ed6SUlf Samuelsson	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2502a4b46ed6SUlf Samuelsson
2503ea8d989fSTimo Tuunainenm501sk_config	:	unconfig
2504ea8d989fSTimo Tuunainen	@$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
250587cb6862SWolfgang Denk
2506699f0512SWolfgang Denkmp2usb_config	:	unconfig
2507699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2508699f0512SWolfgang Denk
2509a4b46ed6SUlf Samuelsson#########################################################################
2510a4b46ed6SUlf Samuelsson## Atmel ARM926EJ-S Systems
2511a4b46ed6SUlf Samuelsson#########################################################################
2512a4b46ed6SUlf Samuelsson
2513a4b46ed6SUlf Samuelssonat91cap9adk_config	:	unconfig
25148ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2515a4b46ed6SUlf Samuelsson
2516a4b46ed6SUlf Samuelssonat91sam9260ek_config	:	unconfig
25178ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91
2518a4b46ed6SUlf Samuelsson
251974f4304eSWolfgang Denk########################################################################
252087cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
252187cb6862SWolfgang Denkintegratorap_config	\
252287cb6862SWolfgang Denkap_config		\
252387cb6862SWolfgang Denkap966_config		\
252487cb6862SWolfgang Denkap922_config		\
252587cb6862SWolfgang Denkap922_XA10_config	\
252687cb6862SWolfgang Denkap7_config		\
252787cb6862SWolfgang Denkap720t_config		\
252887cb6862SWolfgang Denkap920t_config		\
252987cb6862SWolfgang Denkap926ejs_config		\
253087cb6862SWolfgang Denkap946es_config: unconfig
253196782c63SWolfgang Denk	@board/integratorap/split_by_variant.sh $@
25323d3befa7Swdenk
253387cb6862SWolfgang Denkintegratorcp_config	\
253487cb6862SWolfgang Denkcp_config		\
253587cb6862SWolfgang Denkcp920t_config		\
253687cb6862SWolfgang Denkcp926ejs_config		\
253787cb6862SWolfgang Denkcp946es_config		\
253887cb6862SWolfgang Denkcp1136_config		\
253987cb6862SWolfgang Denkcp966_config		\
254087cb6862SWolfgang Denkcp922_config		\
254187cb6862SWolfgang Denkcp922_XA10_config	\
254287cb6862SWolfgang Denkcp1026_config: unconfig
254396782c63SWolfgang Denk	@board/integratorcp/split_by_variant.sh $@
254425d6712aSwdenk
2545699f0512SWolfgang Denkdavinci_dvevm_config :	unconfig
254689d51d02SHugo Villeneuve	@$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci
2547699f0512SWolfgang Denk
2548699f0512SWolfgang Denkdavinci_schmoogie_config :	unconfig
2549699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2550699f0512SWolfgang Denk
2551699f0512SWolfgang Denkdavinci_sffsdr_config :	unconfig
2552699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2553699f0512SWolfgang Denk
2554699f0512SWolfgang Denkdavinci_sonata_config :	unconfig
2555699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2556699f0512SWolfgang Denk
2557f832d8a1Swdenklpd7a400_config \
2558f832d8a1Swdenklpd7a404_config:	unconfig
2559f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
25603d3befa7Swdenk
2561281e00a3Swdenkmx1ads_config	:	unconfig
2562f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2563281e00a3Swdenk
2564281e00a3Swdenkmx1fs2_config	:	unconfig
2565f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2566281e00a3Swdenk
2567ac7eb8a3SWolfgang Denknetstar_config:		unconfig
2568f4e7cbfcSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm925t netstar
2569ac7eb8a3SWolfgang Denk
25702e5983d2Swdenkomap1510inn_config :	unconfig
2571f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
25722e5983d2Swdenk
2573a4b46ed6SUlf Samuelssonxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2574a4b46ed6SUlf Samuelsson
257563e73c9aSwdenkomap1610inn_config \
257663e73c9aSwdenkomap1610inn_cs0boot_config \
257763e73c9aSwdenkomap1610inn_cs3boot_config \
25783ff02c27Swdenkomap1610inn_cs_autoboot_config \
257963e73c9aSwdenkomap1610h2_config \
258063e73c9aSwdenkomap1610h2_cs0boot_config \
25813ff02c27Swdenkomap1610h2_cs3boot_config \
25823ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
2583f9328639SMarian Balakowicz	@mkdir -p $(obj)include
258463e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2585cdd917a4SWolfgang Denk		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2586ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
25873ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2588cdd917a4SWolfgang Denk		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2589ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS_AUTO boot"; \
259063e73c9aSwdenk	else \
2591cdd917a4SWolfgang Denk		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2592ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
259363e73c9aSwdenk	fi;
2594f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
25956f21347dSwdenk
2596699f0512SWolfgang Denkomap5912osk_config :	unconfig
2597699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2598699f0512SWolfgang Denk
2599a4b46ed6SUlf Samuelssonxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2600a4b46ed6SUlf Samuelsson
2601a56bd922Swdenkomap730p2_config \
2602a56bd922Swdenkomap730p2_cs0boot_config \
2603a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
2604f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2605a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2606f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2607ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
2608a56bd922Swdenk	else \
2609f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2610ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
2611a56bd922Swdenk	fi;
2612f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2613a56bd922Swdenk
261432cb2c70SWolfgang Denksbc2410x_config: unconfig
2615f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
261632cb2c70SWolfgang Denk
2617281e00a3Swdenkscb9328_config	:	unconfig
2618f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2619281e00a3Swdenk
26207ebf7443Swdenksmdk2400_config	:	unconfig
2621f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
26227ebf7443Swdenk
26237ebf7443Swdenksmdk2410_config	:	unconfig
2624f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
26257ebf7443Swdenk
26262d24a3a7SwdenkSX1_config :		unconfig
2627f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t sx1
26282d24a3a7Swdenk
2629b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
2630a4b46ed6SUlf Samuelssonxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2631a4b46ed6SUlf Samuelsson
263243d9616cSwdenktrab_config \
2633b0639ca3Swdenktrab_bigram_config \
2634b0639ca3Swdenktrab_bigflash_config \
2635f54ebdfaSwdenktrab_old_config:	unconfig
2636f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2637f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
2638b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
2639f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2640f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
2641ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2642b0639ca3Swdenk		}
2643b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
2644f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2645f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2646ae6d1056SWolfgang Denk		  $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2647f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2648b0639ca3Swdenk		}
2649f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
2650f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2651f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2652ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2653f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
265443d9616cSwdenk		}
2655f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
26567ebf7443Swdenk
26571cb8e980SwdenkVCMA9_config	:	unconfig
2658f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
26591cb8e980Swdenk
2660699f0512SWolfgang Denk#########################################################################
266187cb6862SWolfgang Denk# ARM supplied Versatile development boards
2662699f0512SWolfgang Denk#########################################################################
2663699f0512SWolfgang Denk
2664699f0512SWolfgang Denkcm4008_config	:	unconfig
2665699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2666699f0512SWolfgang Denk
2667699f0512SWolfgang Denkcm41xx_config	:	unconfig
2668699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2669699f0512SWolfgang Denk
267087cb6862SWolfgang Denkversatile_config	\
267187cb6862SWolfgang Denkversatileab_config	\
267287cb6862SWolfgang Denkversatilepb_config :	unconfig
267396782c63SWolfgang Denk	@board/versatile/split_by_variant.sh $@
2674074cff0dSwdenk
26753c2b3d45Swdenkvoiceblue_config:	unconfig
26764fedfddfSLadislav Michl	@$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
26773c2b3d45Swdenk
2678074cff0dSwdenk#########################################################################
2679074cff0dSwdenk## S3C44B0 Systems
2680074cff0dSwdenk#########################################################################
2681074cff0dSwdenk
2682074cff0dSwdenkB2_config	:	unconfig
2683f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2684074cff0dSwdenk
26857ebf7443Swdenk#########################################################################
26867ebf7443Swdenk## ARM720T Systems
26877ebf7443Swdenk#########################################################################
26887ebf7443Swdenk
2689c570b2fdSWolfgang Denkarmadillo_config:	unconfig
2690f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2691c570b2fdSWolfgang Denk
26927ebf7443Swdenkep7312_config	:	unconfig
2693f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
26947ebf7443Swdenk
26952d24a3a7Swdenkimpa7_config	:	unconfig
2696f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
26972d24a3a7Swdenk
26982d1a537dSwdenkmodnet50_config :	unconfig
2699f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
27002d1a537dSwdenk
270139539887Swdenkevb4510_config :	unconfig
2702f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
270339539887Swdenk
27046bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
2705b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2706b0d8f5bfSPeter Pearse
2707b0d8f5bfSPeter PearseSMN42_config	:	unconfig
2708b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
27096bd2447eSGary Jennejohn
27107ebf7443Swdenk#########################################################################
271143d9616cSwdenk## XScale Systems
27127ebf7443Swdenk#########################################################################
27137ebf7443Swdenk
2714799891efSMichael Schwingenactux1_config	:	unconfig
2715799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux1
2716799891efSMichael Schwingen
2717799891efSMichael Schwingenactux2_config	:	unconfig
2718799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux2
2719799891efSMichael Schwingen
2720799891efSMichael Schwingenactux3_config	:	unconfig
2721799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux3
2722799891efSMichael Schwingen
2723799891efSMichael Schwingenactux4_config	:	unconfig
2724799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux4
2725799891efSMichael Schwingen
2726fabd46acSwdenkcerf250_config :	unconfig
2727f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
2728fabd46acSwdenk
27297ebf7443Swdenkcradle_config	:	unconfig
2730f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
27317ebf7443Swdenk
27327ebf7443Swdenkcsb226_config	:	unconfig
2733f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
27347ebf7443Swdenk
273591c82076SJean-Christophe PLAGNIOL-VILLARDdelta_config :	unconfig
2736f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
27370be248faSWolfgang Denk
273843d9616cSwdenkinnokom_config	:	unconfig
2739f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
274043d9616cSwdenk
27412d5b561eSwdenkixdp425_config	:	unconfig
2742f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
27432d5b561eSwdenk
2744ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
2745f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2746ba94a1bbSWolfgang Denk
274743d9616cSwdenklubbock_config	:	unconfig
2748f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
274943d9616cSwdenk
27505720df78SHeiko Schocherpleb2_config	:	unconfig
2751f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
27525720df78SHeiko Schocher
275352f52c14Swdenklogodl_config	:	unconfig
2754f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
275552f52c14Swdenk
27569d8d5a5bSStefan Roesepdnb3_config \
27579d8d5a5bSStefan Roesescpu_config:	unconfig
2758cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
27599d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
2760cdd917a4SWolfgang Denk		echo "#define CONFIG_SCPU"	>>$(obj)include/config.h ; \
2761ae6d1056SWolfgang Denk		$(XECHO) "... on SCPU board variant" ; \
27629d8d5a5bSStefan Roese	fi
27639d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2764ba94a1bbSWolfgang Denk
2765f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
2766f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2767f57f70aaSWolfgang Denk
27685e5803e1Sstefano babictrizepsiv_config	:	unconfig
27695e5803e1Sstefano babic	@$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
27705e5803e1Sstefano babic
27713e38691eSwdenkwepep250_config	:	unconfig
2772f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
27733e38691eSwdenk
27744ec3a7f0Swdenkxaeniax_config	:	unconfig
2775f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
27764ec3a7f0Swdenk
2777efa329cbSwdenkxm250_config	:	unconfig
2778f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
2779efa329cbSwdenk
2780ca0e7748Swdenkxsengine_config :	unconfig
2781f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
2782ca0e7748Swdenk
2783e0269579SMarkus Klotzbücherzylonite_config :
2784f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
2785e0269579SMarkus Klotzbücher
27868ed96046Swdenk#########################################################################
27878ed96046Swdenk## ARM1136 Systems
27888ed96046Swdenk#########################################################################
27895ca9881aSPeter Pearse
27905ca9881aSPeter Pearseapollon_config		: unconfig
2791c6fe4dabSWolfgang Denk	@mkdir -p $(obj)include
2792f2302d44SStefan Roese	@mkdir -p $(obj)onenand_ipl/board/apollon
2793751b9b51SKyungmin Park	@echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
27945252ed95SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2795751b9b51SKyungmin Park	@echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
27968ed96046Swdenk
2797caebc95bSSascha Hauerimx31_litekit_config	: unconfig
2798caebc95bSSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2799caebc95bSSascha Hauer
28005ad86216SSascha Hauerimx31_phycore_config	: unconfig
28015ad86216SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
28025ad86216SSascha Hauer
2803b5dc9b30SGuennadi Liakhovetskimx31ads_config		: unconfig
2804f5acb9fdSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
2805b5dc9b30SGuennadi Liakhovetski
2806699f0512SWolfgang Denkomap2420h4_config	: unconfig
2807699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2808699f0512SWolfgang Denk
280911edcfe2SGuennadi Liakhovetski#########################################################################
281011edcfe2SGuennadi Liakhovetski## ARM1176 Systems
281111edcfe2SGuennadi Liakhovetski#########################################################################
281211edcfe2SGuennadi Liakhovetskismdk6400_noUSB_config	\
281311edcfe2SGuennadi Liakhovetskismdk6400_config	:	unconfig
281411edcfe2SGuennadi Liakhovetski	@mkdir -p $(obj)include $(obj)board/samsung/smdk6400
281511edcfe2SGuennadi Liakhovetski	@mkdir -p $(obj)nand_spl/board/samsung/smdk6400
281611edcfe2SGuennadi Liakhovetski	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
281711edcfe2SGuennadi Liakhovetski	@if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then			\
281811edcfe2SGuennadi Liakhovetski		echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
281911edcfe2SGuennadi Liakhovetski		$(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx;		\
282011edcfe2SGuennadi Liakhovetski	else										\
282111edcfe2SGuennadi Liakhovetski		echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
282211edcfe2SGuennadi Liakhovetski		$(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx;	\
282311edcfe2SGuennadi Liakhovetski	fi
282411edcfe2SGuennadi Liakhovetski	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
282511edcfe2SGuennadi Liakhovetski
28262262cfeeSwdenk#========================================================================
28272262cfeeSwdenk# i386
28282262cfeeSwdenk#========================================================================
28292262cfeeSwdenk#########################################################################
28302262cfeeSwdenk## AMD SC520 CDP
28312262cfeeSwdenk#########################################################################
28322262cfeeSwdenksc520_cdp_config	:	unconfig
2833f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
28342262cfeeSwdenk
28357a8e9bedSwdenksc520_spunk_config	:	unconfig
2836f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
28377a8e9bedSwdenk
28387a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
2839f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
28407a8e9bedSwdenk
284143d9616cSwdenk#========================================================================
284243d9616cSwdenk# MIPS
284343d9616cSwdenk#========================================================================
28447ebf7443Swdenk#########################################################################
284543d9616cSwdenk## MIPS32 4Kc
284643d9616cSwdenk#########################################################################
284743d9616cSwdenk
2848e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2849e0ac62d7Swdenk
2850e0ac62d7Swdenkincaip_100MHz_config	\
2851e0ac62d7Swdenkincaip_133MHz_config	\
2852e0ac62d7Swdenkincaip_150MHz_config	\
285343d9616cSwdenkincaip_config: unconfig
2854f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2855e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
2856f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2857ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
2858e0ac62d7Swdenk		}
2859e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
2860f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2861ae6d1056SWolfgang Denk		  $(XECHO) "... with 133MHz system clock" ; \
2862e0ac62d7Swdenk		}
2863e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
2864f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2865ae6d1056SWolfgang Denk		  $(XECHO) "... with 150MHz system clock" ; \
2866e0ac62d7Swdenk		}
2867f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2868e0ac62d7Swdenk
2869f4863a7aSwdenktb0229_config: unconfig
2870f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
2871f4863a7aSwdenk
2872e0ac62d7Swdenk#########################################################################
287369459791Swdenk## MIPS32 AU1X00
287469459791Swdenk#########################################################################
2875699f0512SWolfgang Denk
287669459791Swdenkdbau1000_config		:	unconfig
2877f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2878210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2879f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
288069459791Swdenk
288169459791Swdenkdbau1100_config		:	unconfig
2882f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2883210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2884f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
288569459791Swdenk
288669459791Swdenkdbau1500_config		:	unconfig
2887f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2888210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2889f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
289069459791Swdenk
2891ff36fd85Swdenkdbau1550_config		:	unconfig
2892f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2893210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2894f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2895ff36fd85Swdenk
2896ff36fd85Swdenkdbau1550_el_config	:	unconfig
2897f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2898210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2899f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2900ff36fd85Swdenk
29018a773983SShinya Kuribayashigth2_config		:	unconfig
29028a773983SShinya Kuribayashi	@mkdir -p $(obj)include
29038a773983SShinya Kuribayashi	@echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
29048a773983SShinya Kuribayashi	@$(MKCONFIG) -a gth2 mips mips gth2
29058a773983SShinya Kuribayashi
2906699f0512SWolfgang Denkpb1000_config		:	unconfig
2907699f0512SWolfgang Denk	@mkdir -p $(obj)include
2908699f0512SWolfgang Denk	@echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2909699f0512SWolfgang Denk	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
2910699f0512SWolfgang Denk
29110764c164SVlad Lunguqemu_mips_config	: unconfig
29120764c164SVlad Lungu	@mkdir -p $(obj)include
2913210ed200SWolfgang Denk	@echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
29140764c164SVlad Lungu	@$(MKCONFIG) -a qemu-mips mips mips qemu-mips
29150764c164SVlad Lungu
291669459791Swdenk#########################################################################
2917e0ac62d7Swdenk## MIPS64 5Kc
2918e0ac62d7Swdenk#########################################################################
291943d9616cSwdenk
29203e38691eSwdenkpurple_config :		unconfig
2921f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
292243d9616cSwdenk
29234a551709Swdenk#========================================================================
29244a551709Swdenk# Nios
29254a551709Swdenk#========================================================================
29264a551709Swdenk#########################################################################
29274a551709Swdenk## Nios32
29284a551709Swdenk#########################################################################
29294a551709Swdenk
2930699f0512SWolfgang DenkADNPESC1_DNPEVA2_base_32_config	\
2931699f0512SWolfgang DenkADNPESC1_base_32_config		\
2932699f0512SWolfgang DenkADNPESC1_config: unconfig
2933699f0512SWolfgang Denk	@mkdir -p $(obj)include
2934699f0512SWolfgang Denk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
2935699f0512SWolfgang Denk		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2936699f0512SWolfgang Denk		  $(XECHO) "... DNP/EVA2 configuration" ; \
2937699f0512SWolfgang Denk		}
2938699f0512SWolfgang Denk	@[ -z "$(findstring _base_32,$@)" ] || \
2939699f0512SWolfgang Denk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2940699f0512SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration" ; \
2941699f0512SWolfgang Denk		}
2942699f0512SWolfgang Denk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2943699f0512SWolfgang Denk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2944699f0512SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2945699f0512SWolfgang Denk		}
2946699f0512SWolfgang Denk	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2947699f0512SWolfgang Denk
2948c935d3bdSwdenkDK1C20_safe_32_config		\
2949c935d3bdSwdenkDK1C20_standard_32_config	\
29504a551709SwdenkDK1C20_config:	unconfig
2951f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2952c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2953f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2954ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
2955c935d3bdSwdenk		}
2956c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2957f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2958ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
2959c935d3bdSwdenk		}
2960c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
2961f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2962ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2963c935d3bdSwdenk		}
2964f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2965c935d3bdSwdenk
2966c935d3bdSwdenkDK1S10_safe_32_config		\
2967c935d3bdSwdenkDK1S10_standard_32_config	\
2968ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
2969c935d3bdSwdenkDK1S10_config:	unconfig
2970f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2971c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2972f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2973ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
2974c935d3bdSwdenk		}
2975c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2976f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2977ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
2978c935d3bdSwdenk		}
2979ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2980f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2981ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2982ec4c544bSwdenk		}
2983c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
2984f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2985ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2986c935d3bdSwdenk		}
2987f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
29884a551709Swdenk
29895c952cf0Swdenk#########################################################################
29905c952cf0Swdenk## Nios-II
29915c952cf0Swdenk#########################################################################
29925c952cf0Swdenk
29939cc83378SScott McNuttEP1C20_config : unconfig
2994f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
29959cc83378SScott McNutt
29969cc83378SScott McNuttEP1S10_config : unconfig
2997f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
29989cc83378SScott McNutt
29999cc83378SScott McNuttEP1S40_config : unconfig
3000f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
30019cc83378SScott McNutt
30025c952cf0SwdenkPK1C20_config : unconfig
3003f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
30045c952cf0Swdenk
30055c952cf0SwdenkPCI5441_config : unconfig
3006f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
30074a551709Swdenk
3008507bbe3eSwdenk#========================================================================
3009507bbe3eSwdenk## Microblaze
3010699f0512SWolfgang Denk#========================================================================
3011507bbe3eSwdenk
3012cfc67116SMichal Simekml401_config:	unconfig
3013cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
3014210ed200SWolfgang Denk	@echo "#define CONFIG_ML401 1" > $(obj)include/config.h
301590b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
3016cfc67116SMichal Simek
3017699f0512SWolfgang Denksuzaku_config:	unconfig
3018699f0512SWolfgang Denk	@mkdir -p $(obj)include
3019699f0512SWolfgang Denk	@echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
3020699f0512SWolfgang Denk	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
3021699f0512SWolfgang Denk
302217980495SMichal Simekxupv2p_config:	unconfig
3023cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
3024210ed200SWolfgang Denk	@echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
302590b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
302617980495SMichal Simek
302760fa72d6SMike Frysinger#========================================================================
302860fa72d6SMike Frysinger# Blackfin
302960fa72d6SMike Frysinger#========================================================================
30300afe519aSWolfgang Denk
303160fa72d6SMike Frysinger# Analog Devices boards
303260fa72d6SMike FrysingerBFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
30330afe519aSWolfgang Denk
303460fa72d6SMike Frysinger$(BFIN_BOARDS:%=%_config)	: unconfig
30359171fc81SMike Frysinger	@$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
303626bf7decSAubrey Li
303760fa72d6SMike Frysinger$(BFIN_BOARDS):
303860fa72d6SMike Frysinger	$(MAKE) $@_config
303960fa72d6SMike Frysinger	$(MAKE)
30400afe519aSWolfgang Denk
30415e3b0bc1SHaavard Skinnemoen#========================================================================
30425e3b0bc1SHaavard Skinnemoen# AVR32
30435e3b0bc1SHaavard Skinnemoen#========================================================================
3044699f0512SWolfgang Denk
3045699f0512SWolfgang Denkatngw100_config	:	unconfig
3046699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
30475e3b0bc1SHaavard Skinnemoen
30485e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
304936f28f8aSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
30505e3b0bc1SHaavard Skinnemoen
3051667568dbSHaavard Skinnemoenatstk1003_config	:	unconfig
3052667568dbSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3053667568dbSHaavard Skinnemoen
305464ff2357SHaavard Skinnemoenatstk1004_config	:	unconfig
305564ff2357SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
30560afe519aSWolfgang Denk
30570a2e4879SHaavard Skinnemoenatstk1006_config	:	unconfig
30580a2e4879SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
30590a2e4879SHaavard Skinnemoen
30600eb5717aSHans-Christian Egtvedtfavr-32-ezkit_config	:	unconfig
30610eb5717aSHans-Christian Egtvedt	@$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
30620eb5717aSHans-Christian Egtvedt
30635c374c9eSJulien Mayhammerhead_config	:	unconfig
30645c374c9eSJulien May	@$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
30655c374c9eSJulien May
306613b50fe3SMark Jacksonmimc200_config		:	unconfig
306713b50fe3SMark Jackson	@$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
306813b50fe3SMark Jackson
3069699f0512SWolfgang Denk#========================================================================
3070699f0512SWolfgang Denk# SH3 (SuperH)
3071699f0512SWolfgang Denk#========================================================================
30727ebf7443Swdenk
307369df3c4dSNobuhiro Iwamatsu#########################################################################
3074c655fad0SNobuhiro Iwamatsu## sh2 (Renesas SuperH)
3075c655fad0SNobuhiro Iwamatsu#########################################################################
3076c655fad0SNobuhiro Iwamatsursk7203_config: unconfig
3077c655fad0SNobuhiro Iwamatsu	@ >include/config.h
3078c655fad0SNobuhiro Iwamatsu	@echo "#define CONFIG_RSK7203 1" >> include/config.h
3079c655fad0SNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh2 rsk7203
3080c655fad0SNobuhiro Iwamatsu
3081c655fad0SNobuhiro Iwamatsu#########################################################################
3082b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH)
3083b2b5e2bbSYoshihiro Shimoda#########################################################################
3084699f0512SWolfgang Denk
30853313e0e2SMark Jonasmpr2_config: unconfig
30863ab4827cSWolfgang Denk	@mkdir -p $(obj)include
30873ab4827cSWolfgang Denk	@echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
30883313e0e2SMark Jonas	@$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
30893313e0e2SMark Jonas
3090b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig
30913ab4827cSWolfgang Denk	@mkdir -p $(obj)include
30923ab4827cSWolfgang Denk	@echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
309391c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3094b2b5e2bbSYoshihiro Shimoda
3095b2b5e2bbSYoshihiro Shimoda#########################################################################
309669df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH)
309769df3c4dSNobuhiro Iwamatsu#########################################################################
3098699f0512SWolfgang Denk
3099699f0512SWolfgang DenkMigoR_config :       unconfig
3100699f0512SWolfgang Denk	@mkdir -p $(obj)include
3101699f0512SWolfgang Denk	@echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
3102699f0512SWolfgang Denk	@./mkconfig -a $(@:_config=) sh sh4 MigoR
3103699f0512SWolfgang Denk
310469df3c4dSNobuhiro Iwamatsums7750se_config: unconfig
31053ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3106210ed200SWolfgang Denk	@echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
310791c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
310869df3c4dSNobuhiro Iwamatsu
3109d91ea45dSNobuhiro Iwamatsums7722se_config :	unconfig
31103ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3111210ed200SWolfgang Denk	@echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
311291c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
31137a8e9bedSwdenk
3114699f0512SWolfgang Denkr2dplus_config  :   unconfig
31153ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3116699f0512SWolfgang Denk	@echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3117468eae06SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 r2dplus
3118c2042f59Sgoda.yusuke
3119c133c1fbSYusuke Godar7780mp_config: unconfig
31203ab4827cSWolfgang Denk	@mkdir -p $(obj)include
31213ab4827cSWolfgang Denk	@echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3122468eae06SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 r7780mp
3123c133c1fbSYusuke Goda
31247faddaecSNobuhiro Iwamatsush7763rdp_config  :   unconfig
31253ab4827cSWolfgang Denk	@mkdir -p $(obj)include
31263ab4827cSWolfgang Denk	@echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
3127468eae06SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 sh7763rdp
31287faddaecSNobuhiro Iwamatsu
31290d53a47dSNobuhiro Iwamatsush7785lcr_config  :   unconfig
31300d53a47dSNobuhiro Iwamatsu	@ >include/config.h
31310d53a47dSNobuhiro Iwamatsu	@echo "#define CONFIG_SH7785LCR 1" >> include/config.h
31320d53a47dSNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 sh7785lcr
31330d53a47dSNobuhiro Iwamatsu
31346f0da497SNobuhiro Iwamatsuap325rxa_config  :   unconfig
31356f0da497SNobuhiro Iwamatsu	@mkdir -p $(obj)include
31366f0da497SNobuhiro Iwamatsu	@echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
31376f0da497SNobuhiro Iwamatsu	@$(MKCONFIG) -a $(@:_config=) sh sh4 ap325rxa
31386f0da497SNobuhiro Iwamatsu
3139c2f02da2SDaniel Hellstrom#========================================================================
3140c2f02da2SDaniel Hellstrom# SPARC
3141c2f02da2SDaniel Hellstrom#========================================================================
3142699f0512SWolfgang Denk
31431e9a164eSDaniel Hellstrom#########################################################################
31441e9a164eSDaniel Hellstrom## LEON3
31451e9a164eSDaniel Hellstrom#########################################################################
3146c2f02da2SDaniel Hellstrom
314771d7e4c0SDaniel Hellstrom# Gaisler GR-XC3S-1500 board
314871d7e4c0SDaniel Hellstromgr_xc3s_1500_config : unconfig
314971d7e4c0SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
315071d7e4c0SDaniel Hellstrom
31516ed8a43aSDaniel Hellstrom# Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
31526ed8a43aSDaniel Hellstromgr_cpci_ax2000_config : unconfig
31536ed8a43aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
31546ed8a43aSDaniel Hellstrom
31556940383dSDaniel Hellstrom# Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
31566940383dSDaniel Hellstrom# Development board Stratix II edition, FPGA Device EP2S60.
31576940383dSDaniel Hellstromgr_ep2s60_config: unconfig
31586940383dSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
31596940383dSDaniel Hellstrom
3160823edd8aSDaniel Hellstrom# Gaisler LEON3 GRSIM simulator
3161823edd8aSDaniel Hellstromgrsim_config : unconfig
3162823edd8aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3163823edd8aSDaniel Hellstrom
31647ebf7443Swdenk#########################################################################
3165b330990cSDaniel Hellstrom## LEON2
3166b330990cSDaniel Hellstrom#########################################################################
3167b330990cSDaniel Hellstrom
3168ab68f921SDaniel Hellstrom# Gaisler LEON2 GRSIM simulator
3169ab68f921SDaniel Hellstromgrsim_leon2_config : unconfig
3170ab68f921SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3171ab68f921SDaniel Hellstrom
31727ebf7443Swdenk#########################################################################
31737ebf7443Swdenk#########################################################################
31747ebf7443Swdenk#########################################################################
317585ec0bccSwdenk
31763e38691eSwdenkclean:
3177f9301e1cSWolfgang Denk	@rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
3178f9301e1cSWolfgang Denk	       $(obj)examples/hello_world  $(obj)examples/interrupt	  \
3179f9301e1cSWolfgang Denk	       $(obj)examples/mem_to_mem_idma2intr			  \
3180f9301e1cSWolfgang Denk	       $(obj)examples/sched	   $(obj)examples/smc91111_eeprom \
3181f9301e1cSWolfgang Denk	       $(obj)examples/test_burst   $(obj)examples/timer
3182f9301e1cSWolfgang Denk	@rm -f $(obj)tools/bmp_logo	   $(obj)tools/easylogo/easylogo  \
3183f9301e1cSWolfgang Denk	       $(obj)tools/env/{fw_printenv,fw_setenv}			  \
3184f9301e1cSWolfgang Denk	       $(obj)tools/envcrc					  \
3185f9301e1cSWolfgang Denk	       $(obj)tools/gdb/{astest,gdbcont,gdbsend}			  \
3186f9301e1cSWolfgang Denk	       $(obj)tools/gen_eth_addr    $(obj)tools/img2srec		  \
3187f9301e1cSWolfgang Denk	       $(obj)tools/mkimage	   $(obj)tools/mpc86x_clk	  \
3188f9301e1cSWolfgang Denk	       $(obj)tools/ncb		   $(obj)tools/ubsha1
3189f9301e1cSWolfgang Denk	@rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image}	  \
3190f9301e1cSWolfgang Denk	       $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin}	  \
3191f9301e1cSWolfgang Denk	       $(obj)board/trab/trab_fkt   $(obj)board/voiceblue/eeprom   \
3192f9301e1cSWolfgang Denk	       $(obj)board/{integratorap,integratorcp}/u-boot.lds	  \
31939171fc81SMike Frysinger	       $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
31949171fc81SMike Frysinger	       $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3195dc7746d8SWolfgang Denk	@rm -f $(obj)include/bmp_logo.h
3196dc7746d8SWolfgang Denk	@rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
31971bb707c3SKyungmin Park	@rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3198f9301e1cSWolfgang Denk	@rm -f $(obj)api_examples/demo $(VERSION_FILE)
3199ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \
32007ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
32017ebf7443Swdenk		-o -name '*.o'	-o -name '*.a'	\) -print \
32027ebf7443Swdenk		| xargs rm -f
32037ebf7443Swdenk
32047ebf7443Swdenkclobber:	clean
3205ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \( -name .depend \
32064c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
32074c0d4c3bSwdenk		-print0 \
32084c0d4c3bSwdenk		| xargs -0 rm -f
3209ffda586fSLi Yang	@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
32105013c09fSWolfgang Denk		$(obj)cscope.* $(obj)*.*~
3211ae6d1056SWolfgang Denk	@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
3212766529fcSBartlomiej Sieka	@rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
321389cdab78SMike Frysinger	@rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
32147e492d82SMarian Balakowicz	@rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
32155013c09fSWolfgang Denk	@rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3216ae6d1056SWolfgang Denk	@rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3217a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3218a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
3219a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)api_examples ] || find $(obj)api_examples -name "*" -type l -print | xargs rm -f
32207ebf7443Swdenk
3221f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
32227ebf7443Swdenkmrproper \
32237ebf7443Swdenkdistclean:	clobber unconfig
3224f9328639SMarian Balakowiczelse
3225f9328639SMarian Balakowiczmrproper \
3226f9328639SMarian Balakowiczdistclean:	clobber unconfig
3227ae6d1056SWolfgang Denk	rm -rf $(obj)*
3228f9328639SMarian Balakowiczendif
32297ebf7443Swdenk
32307ebf7443Swdenkbackup:
32317ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
32327ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
32337ebf7443Swdenk
32347ebf7443Swdenk#########################################################################
3235