xref: /openbmc/u-boot/Makefile (revision 11edcfe2)
17ebf7443Swdenk#
2ae6d1056SWolfgang Denk# (C) Copyright 2000-2008
37ebf7443Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
47ebf7443Swdenk#
57ebf7443Swdenk# See file CREDITS for list of people who contributed to this
67ebf7443Swdenk# project.
77ebf7443Swdenk#
87ebf7443Swdenk# This program is free software; you can redistribute it and/or
97ebf7443Swdenk# modify it under the terms of the GNU General Public License as
1045a212c4SWolfgang Denk# published by the Free Software Foundatio; either version 2 of
117ebf7443Swdenk# the License, or (at your option) any later version.
127ebf7443Swdenk#
137ebf7443Swdenk# This program is distributed in the hope that it will be useful,
147ebf7443Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of
157ebf7443Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	See the
167ebf7443Swdenk# GNU General Public License for more details.
177ebf7443Swdenk#
187ebf7443Swdenk# You should have received a copy of the GNU General Public License
197ebf7443Swdenk# along with this program; if not, write to the Free Software
207ebf7443Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
217ebf7443Swdenk# MA 02111-1307 USA
227ebf7443Swdenk#
237ebf7443Swdenk
24881a87ecSWolfgang DenkVERSION = 1
25754bac48SWolfgang DenkPATCHLEVEL = 3
26699f0512SWolfgang DenkSUBLEVEL = 4
27cd82919eSWolfgang DenkEXTRAVERSION =
28881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29f9328639SMarian BalakowiczVERSION_FILE = $(obj)include/version_autogenerated.h
30881a87ecSWolfgang Denk
317ebf7443SwdenkHOSTARCH := $(shell uname -m | \
327ebf7443Swdenk	sed -e s/i.86/i386/ \
337ebf7443Swdenk	    -e s/sun4u/sparc64/ \
347ebf7443Swdenk	    -e s/arm.*/arm/ \
357ebf7443Swdenk	    -e s/sa110/arm/ \
367ebf7443Swdenk	    -e s/powerpc/ppc/ \
37a2280646SKumar Gala	    -e s/ppc64/ppc/ \
387ebf7443Swdenk	    -e s/macppc/ppc/)
397ebf7443Swdenk
40f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
417ebf7443Swdenk	    sed -e 's/\(cygwin\).*/cygwin/')
427ebf7443Swdenk
43f9d77ed3SWolfgang Denkexport	HOSTARCH HOSTOS
447ebf7443Swdenk
457ebf7443Swdenk# Deal with colliding definitions from tcsh etc.
467ebf7443SwdenkVENDOR=
477ebf7443Swdenk
487ebf7443Swdenk#########################################################################
49ae6d1056SWolfgang Denk# Allow for silent builds
50ae6d1056SWolfgang Denkifeq (,$(findstring s,$(MAKEFLAGS)))
51ae6d1056SWolfgang DenkXECHO = echo
52ae6d1056SWolfgang Denkelse
53ae6d1056SWolfgang DenkXECHO = :
54ae6d1056SWolfgang Denkendif
55ae6d1056SWolfgang Denk
56ae6d1056SWolfgang Denk#########################################################################
57f9328639SMarian Balakowicz#
58f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external
59f9328639SMarian Balakowicz# directory. Two use cases are supported:
60f9328639SMarian Balakowicz#
61f9328639SMarian Balakowicz# 1) Add O= to the make command line
62f9328639SMarian Balakowicz# 'make O=/tmp/build all'
63f9328639SMarian Balakowicz#
64f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location
65f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
66f9328639SMarian Balakowicz# 'make'
67f9328639SMarian Balakowicz#
68f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script
69f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
70f9328639SMarian Balakowicz# './MAKEALL'
71f9328639SMarian Balakowicz#
72f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable.
73f9328639SMarian Balakowicz#
74f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and
75f9328639SMarian Balakowicz# the object files are placed in the source directory.
76f9328639SMarian Balakowicz#
777ebf7443Swdenk
78f9328639SMarian Balakowiczifdef O
79f9328639SMarian Balakowiczifeq ("$(origin O)", "command line")
80f9328639SMarian BalakowiczBUILD_DIR := $(O)
81f9328639SMarian Balakowiczendif
82f9328639SMarian Balakowiczendif
837ebf7443Swdenk
84f9328639SMarian Balakowiczifneq ($(BUILD_DIR),)
85f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR)
864f0645ebSMarian Balakowicz
874f0645ebSMarian Balakowicz# Attempt to create a output directory.
884f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
894f0645ebSMarian Balakowicz
904f0645ebSMarian Balakowicz# Verify if it was successful.
91f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
92f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
93f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),)
94f9328639SMarian Balakowicz
95f9328639SMarian BalakowiczOBJTREE		:= $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
96f9328639SMarian BalakowiczSRCTREE		:= $(CURDIR)
97f9328639SMarian BalakowiczTOPDIR		:= $(SRCTREE)
98f9328639SMarian BalakowiczLNDIR		:= $(OBJTREE)
99f9328639SMarian Balakowiczexport	TOPDIR SRCTREE OBJTREE
100f9328639SMarian Balakowicz
101f9328639SMarian BalakowiczMKCONFIG	:= $(SRCTREE)/mkconfig
102f9328639SMarian Balakowiczexport MKCONFIG
103f9328639SMarian Balakowicz
104f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
105f9328639SMarian BalakowiczREMOTE_BUILD	:= 1
106f9328639SMarian Balakowiczexport REMOTE_BUILD
107f9328639SMarian Balakowiczendif
108f9328639SMarian Balakowicz
109f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile
110f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for
111f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc.
112f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
113f9328639SMarian Balakowiczobj := $(OBJTREE)/
114f9328639SMarian Balakowiczsrc := $(SRCTREE)/
115f9328639SMarian Balakowiczelse
116f9328639SMarian Balakowiczobj :=
117f9328639SMarian Balakowiczsrc :=
118f9328639SMarian Balakowiczendif
119f9328639SMarian Balakowiczexport obj src
120f9328639SMarian Balakowicz
1215013c09fSWolfgang Denk# Make sure CDPATH settings don't interfere
1225013c09fSWolfgang Denkunexport CDPATH
1235013c09fSWolfgang Denk
124f9328639SMarian Balakowicz#########################################################################
125f9328639SMarian Balakowicz
126f8f9dc98SKumar Galaifeq ($(ARCH),powerpc)
127f8f9dc98SKumar GalaARCH = ppc
128f8f9dc98SKumar Galaendif
129f8f9dc98SKumar Gala
130ae6d1056SWolfgang Denkifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
131f9328639SMarian Balakowicz
1327ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
133ae6d1056SWolfgang Denkinclude $(obj)include/config.mk
1341d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
135f9328639SMarian Balakowicz
1367ebf7443Swdenkifndef CROSS_COMPILE
137a5284efdSWolfgang Denkifeq ($(HOSTARCH),$(ARCH))
1387ebf7443SwdenkCROSS_COMPILE =
1397ebf7443Swdenkelse
1407ebf7443Swdenkifeq ($(ARCH),ppc)
14116c8d5e7SWolfgang DenkCROSS_COMPILE = ppc_8xx-
1427ebf7443Swdenkendif
1437ebf7443Swdenkifeq ($(ARCH),arm)
144dc7c9a1aSwdenkCROSS_COMPILE = arm-linux-
1457ebf7443Swdenkendif
1462262cfeeSwdenkifeq ($(ARCH),i386)
1477a8e9bedSwdenkCROSS_COMPILE = i386-linux-
1487a8e9bedSwdenkendif
14943d9616cSwdenkifeq ($(ARCH),mips)
15043d9616cSwdenkCROSS_COMPILE = mips_4KC-
15143d9616cSwdenkendif
1524a551709Swdenkifeq ($(ARCH),nios)
1534a551709SwdenkCROSS_COMPILE = nios-elf-
1544a551709Swdenkendif
1555c952cf0Swdenkifeq ($(ARCH),nios2)
1565c952cf0SwdenkCROSS_COMPILE = nios2-elf-
1575c952cf0Swdenkendif
1584e5ca3ebSwdenkifeq ($(ARCH),m68k)
1594e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
1604e5ca3ebSwdenkendif
161507bbe3eSwdenkifeq ($(ARCH),microblaze)
162507bbe3eSwdenkCROSS_COMPILE = mb-
163507bbe3eSwdenkendif
1640afe519aSWolfgang Denkifeq ($(ARCH),blackfin)
165ef26a08fSAubrey.LiCROSS_COMPILE = bfin-uclinux-
1660afe519aSWolfgang Denkendif
1677b64fef3SWolfgang Denkifeq ($(ARCH),avr32)
1685374b36dSHaavard SkinnemoenCROSS_COMPILE = avr32-linux-
1697b64fef3SWolfgang Denkendif
1700b135cfcSNobuhiro Iwamatsuifeq ($(ARCH),sh)
1710b135cfcSNobuhiro IwamatsuCROSS_COMPILE = sh4-linux-
172c2f02da2SDaniel Hellstromendif
173c2f02da2SDaniel Hellstromifeq ($(ARCH),sparc)
174c2f02da2SDaniel HellstromCROSS_COMPILE = sparc-elf-
175c2f02da2SDaniel Hellstromendif	# sparc
176ae6d1056SWolfgang Denkendif	# HOSTARCH,ARCH
177ae6d1056SWolfgang Denkendif	# CROSS_COMPILE
1787ebf7443Swdenk
1797ebf7443Swdenkexport	CROSS_COMPILE
1807ebf7443Swdenk
18192b197f0SWolfgang Denk# load other configuration
18292b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk
18392b197f0SWolfgang Denk
1847ebf7443Swdenk#########################################################################
1857ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
1867ebf7443Swdenk
1877ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
1882262cfeeSwdenkifeq ($(CPU),i386)
1892262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
1902262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o
1912262cfeeSwdenkendif
1927ebf7443Swdenkifeq ($(CPU),ppc4xx)
1937ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
1947ebf7443Swdenkendif
19542d1f039Swdenkifeq ($(CPU),mpc85xx)
19642d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
19742d1f039Swdenkendif
1987ebf7443Swdenk
199f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS))
200f9328639SMarian Balakowicz
2019fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
2027608d75fSKim PhillipsLIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
2037608d75fSKim Phillips	"board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
2047ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
2051d9f4105Swdenkifdef SOC
2061d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
2071d9f4105Swdenkendif
208323bfa8fSStefan Roeseifeq ($(CPU),ixp)
209323bfa8fSStefan RoeseLIBS += cpu/ixp/npe/libnpe.a
210323bfa8fSStefan Roeseendif
2117ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
212518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
21343ea36fbSWilliam Juul	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a
2147ebf7443SwdenkLIBS += net/libnet.a
2157ebf7443SwdenkLIBS += disk/libdisk.a
2160f460a1eSJason JinLIBS += drivers/bios_emulator/libatibiosemu.a
21733daf5b7SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/block/libblock.a
21857a12720STsiChungLiewLIBS += drivers/dma/libdma.a
219f868cc5aSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/hwmon/libhwmon.a
220080c646dSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/i2c/libi2c.a
22116b195c8SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/input/libinput.a
222318c0b90SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/misc/libmisc.a
2235ce13051SHaavard SkinnemoenLIBS += drivers/mmc/libmmc.a
22459829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/libmtd.a
22559829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand/libnand.a
22659829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/nand_legacy/libnand_legacy.a
22759829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/mtd/onenand/libonenand.a
228d25ce7d2SHaavard SkinnemoenLIBS += drivers/mtd/spi/libspi_flash.a
2298e585f02STsiChung LiewLIBS += drivers/net/libnet.a
2302439e4bfSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/net/sk98lin/libsk98lin.a
23193a686eeSJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pci/libpci.a
23273646217SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/pcmcia/libpcmcia.a
23304a9e118SBen WarrenLIBS += drivers/spi/libspi.a
2347737d5c6SDave Liuifeq ($(CPU),mpc83xx)
2357737d5c6SDave LiuLIBS += drivers/qe/qe.a
2367737d5c6SDave Liuendif
237da9d4610SAndy Flemingifeq ($(CPU),mpc85xx)
238da9d4610SAndy FlemingLIBS += drivers/qe/qe.a
23958e5e9afSKumar GalaLIBS += cpu/mpc8xxx/ddr/libddr.a
24058e5e9afSKumar Galaendif
24158e5e9afSKumar Galaifeq ($(CPU),mpc86xx)
24258e5e9afSKumar GalaLIBS += cpu/mpc8xxx/ddr/libddr.a
243da9d4610SAndy Flemingendif
24459829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/rtc/librtc.a
2458e585f02STsiChung LiewLIBS += drivers/serial/libserial.a
24659829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/usb/libusb.a
24759829cc1SJean-Christophe PLAGNIOL-VILLARDLIBS += drivers/video/libvideo.a
2487ebf7443SwdenkLIBS += common/libcommon.a
2497651f8bdSGerald Van BarenLIBS += libfdt/libfdt.a
250500856ebSRafal JaworowskiLIBS += api/libapi.a
2512d2b994aSYuri TikhonovLIBS += post/libpost.a
252f9328639SMarian Balakowicz
253f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS))
254019895a8SStefano Babic.PHONY : $(LIBS) $(VERSION_FILE)
255a8c7c708Swdenk
256de109d90SWolfgang DenkLIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
257de109d90SWolfgang DenkLIBBOARD := $(addprefix $(obj),$(LIBBOARD))
258de109d90SWolfgang Denk
2594f7cb08eSwdenk# Add GCC lib
2601a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
2613d3befa7Swdenk
262a8c7c708Swdenk# The "tools" are needed early, so put this first
263a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
264a8c7c708SwdenkSUBDIRS	= tools \
2650dc1fc22SRafal Jaworowski	  examples \
2660dc1fc22SRafal Jaworowski	  api_examples
267500856ebSRafal Jaworowski
268b028f715Swdenk.PHONY : $(SUBDIRS)
269a8c7c708Swdenk
270887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y)
271887e2ec9SStefan RoeseNAND_SPL = nand_spl
272887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin
273887e2ec9SStefan Roeseendif
274887e2ec9SStefan Roese
275751b9b51SKyungmin Parkifeq ($(CONFIG_ONENAND_U_BOOT),y)
276751b9b51SKyungmin ParkONENAND_IPL = onenand_ipl
277751b9b51SKyungmin ParkU_BOOT_ONENAND = $(obj)u-boot-onenand.bin
278751b9b51SKyungmin Parkendif
279751b9b51SKyungmin Park
280f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS))
281de109d90SWolfgang Denk__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
282f9328639SMarian Balakowicz
2837ebf7443Swdenk#########################################################################
284bdccc4feSwdenk#########################################################################
2857ebf7443Swdenk
286751b9b51SKyungmin ParkALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
28794a91e24SMike Frysingerifeq ($(ARCH),blackfin)
28894a91e24SMike FrysingerALL += $(obj)u-boot.ldr
28994a91e24SMike Frysingerendif
2907ebf7443Swdenk
291bdccc4feSwdenkall:		$(ALL)
2927ebf7443Swdenk
293f9328639SMarian Balakowicz$(obj)u-boot.hex:	$(obj)u-boot
2946310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
2956310eb9dSwdenk
296f9328639SMarian Balakowicz$(obj)u-boot.srec:	$(obj)u-boot
2977ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
2987ebf7443Swdenk
299f9328639SMarian Balakowicz$(obj)u-boot.bin:	$(obj)u-boot
3007ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
3017ebf7443Swdenk
30294a91e24SMike Frysinger$(obj)u-boot.ldr:	$(obj)u-boot
30394a91e24SMike Frysinger		$(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
30494a91e24SMike Frysinger
30594a91e24SMike Frysinger$(obj)u-boot.ldr.hex:	$(obj)u-boot.ldr
30694a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
30794a91e24SMike Frysinger
30894a91e24SMike Frysinger$(obj)u-boot.ldr.srec:	$(obj)u-boot.ldr
30994a91e24SMike Frysinger		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
31094a91e24SMike Frysinger
311f9328639SMarian Balakowicz$(obj)u-boot.img:	$(obj)u-boot.bin
312bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
313bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
314881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
315bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
316bdccc4feSwdenk		-d $< $@
317bdccc4feSwdenk
318566a494fSHeiko Schocher$(obj)u-boot.sha1:	$(obj)u-boot.bin
31901159530SHeiko Schocher		$(obj)tools/ubsha1 $(obj)u-boot.bin
320566a494fSHeiko Schocher
321f9328639SMarian Balakowicz$(obj)u-boot.dis:	$(obj)u-boot
3227ebf7443Swdenk		$(OBJDUMP) -d $< > $@
3237ebf7443Swdenk
324de109d90SWolfgang Denk$(obj)u-boot:		depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT)
325de109d90SWolfgang Denk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
326de109d90SWolfgang Denk		sed  -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
327f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
328f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
329b2184c31Swdenk			-Map u-boot.map -o u-boot
3307ebf7443Swdenk
33188f72527SJohannes Stezenbach$(OBJS):	depend $(obj)include/autoconf.mk
332f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
333f9328639SMarian Balakowicz
33488f72527SJohannes Stezenbach$(LIBS):	depend $(obj)include/autoconf.mk
335f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
336a8c7c708Swdenk
337de109d90SWolfgang Denk$(LIBBOARD):	depend $(LIBS) $(obj)include/autoconf.mk
338de109d90SWolfgang Denk		$(MAKE) -C $(dir $(subst $(obj),,$@))
339de109d90SWolfgang Denk
34088f72527SJohannes Stezenbach$(SUBDIRS):	depend $(obj)include/autoconf.mk
341b028f715Swdenk		$(MAKE) -C $@ all
3427ebf7443Swdenk
343f65c9812SMike Frysinger$(LDSCRIPT):	depend $(obj)include/autoconf.mk
344f65c9812SMike Frysinger		$(MAKE) -C $(dir $@) $(notdir $@)
345f65c9812SMike Frysinger
346dd531aacSWolfgang Denk$(NAND_SPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
3478318fbf8SMarian Balakowicz		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
348887e2ec9SStefan Roese
349dd531aacSWolfgang Denk$(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
3508318fbf8SMarian Balakowicz		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
351887e2ec9SStefan Roese
352751b9b51SKyungmin Park$(ONENAND_IPL):	$(VERSION_FILE)	$(obj)include/autoconf.mk
353f2302d44SStefan Roese		$(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
354751b9b51SKyungmin Park
355751b9b51SKyungmin Park$(U_BOOT_ONENAND):	$(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
356751b9b51SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
3571bb707c3SKyungmin Park		cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
358751b9b51SKyungmin Park
359ae6d1056SWolfgang Denk$(VERSION_FILE):
360aa737945SMike Frysinger		@( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
361aa737945SMike Frysinger		 '$(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion $(TOPDIR))' \
362aa737945SMike Frysinger		 ) > $@.tmp
3630ec7a061SMike Frysinger		@cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
364881a87ecSWolfgang Denk
3658f713fdfSdzugdbtools:
366f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
367f9328639SMarian Balakowicz
368f9328639SMarian Balakowiczupdater:
369f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
370f9328639SMarian Balakowicz
371f9328639SMarian Balakowiczenv:
37264b3727bSMarkus Klotzbücher		$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
3738f713fdfSdzu
374ae6d1056SWolfgang Denkdepend dep:	$(VERSION_FILE)
375f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
3767ebf7443Swdenk
377a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += include
378a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_generic board/$(BOARDDIR)
379a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += cpu/$(CPU)
380a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += lib_$(ARCH)
381a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/cramfs
382a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fat
383a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/fdos
384a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += fs/jffs2
38543ea36fbSWilliam JuulTAG_SUBDIRS += fs/yaffs2
386a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += net
387a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += disk
388a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += common
389a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/bios_emulator
390a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/block
391a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/hwmon
392a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/i2c
393a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/input
394a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/misc
3955ce13051SHaavard SkinnemoenTAG_SUBDIRS += drivers/mmc
396a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd
397a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand
398a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/nand_legacy
399a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/mtd/onenand
400d25ce7d2SHaavard SkinnemoenTAG_SUBDIRS += drivers/mtd/spi
401a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net
402a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/net/sk98lin
403a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pci
404a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/pcmcia
405a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/qe
406a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/rtc
407a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/serial
40804a9e118SBen WarrenTAG_SUBDIRS += drivers/spi
409a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/usb
410a340c325SJean-Christophe PLAGNIOL-VILLARDTAG_SUBDIRS += drivers/video
411a340c325SJean-Christophe PLAGNIOL-VILLARD
412f9328639SMarian Balakowicztags ctags:
413ae6d1056SWolfgang Denk		ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
41488fed9a1SWolfgang Denk						-name '*.[ch]' -print`
4157ebf7443Swdenk
4167ebf7443Swdenketags:
417ae6d1056SWolfgang Denk		etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
41888fed9a1SWolfgang Denk						-name '*.[ch]' -print`
419ffda586fSLi Yangcscope:
420ffda586fSLi Yang		find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
421ffda586fSLi Yang						> cscope.files
422ffda586fSLi Yang		cscope -b -q -k
4237ebf7443Swdenk
424f9328639SMarian Balakowicz$(obj)System.map:	$(obj)u-boot
4257ebf7443Swdenk		@$(NM) $< | \
4267ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
427f9328639SMarian Balakowicz		sort > $(obj)System.map
4287ebf7443Swdenk
4292f155f6cSGrant Likely#
4302f155f6cSGrant Likely# Auto-generate the autoconf.mk file (which is included by all makefiles)
4312f155f6cSGrant Likely#
4322f155f6cSGrant Likely# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
4332f155f6cSGrant Likely# the dep file is only include in this top level makefile to determine when
4342f155f6cSGrant Likely# to regenerate the autoconf.mk file.
4351510b82dSWolfgang Denk$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
4361510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
43716fe7775SMike Frysinger	set -e ; \
438ae6d1056SWolfgang Denk	: Generate the dependancies ; \
4391510b82dSWolfgang Denk	$(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \
4401510b82dSWolfgang Denk		-MQ $(obj)include/autoconf.mk include/common.h > $@
4411510b82dSWolfgang Denk
4421510b82dSWolfgang Denk$(obj)include/autoconf.mk: $(obj)include/config.h
4431510b82dSWolfgang Denk	@$(XECHO) Generating $@ ; \
4441510b82dSWolfgang Denk	set -e ; \
445ae6d1056SWolfgang Denk	: Extract the config macros ; \
4461510b82dSWolfgang Denk	$(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
4471510b82dSWolfgang Denk		sed -n -f tools/scripts/define2mk.sed > $@
4482f155f6cSGrant Likely
449ae6d1056SWolfgang Denksinclude $(obj)include/autoconf.mk.dep
4502f155f6cSGrant Likely
4517ebf7443Swdenk#########################################################################
452ae6d1056SWolfgang Denkelse	# !config.mk
453f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
454f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
455ae6d1056SWolfgang Denk$(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
456ffda586fSLi Yangdep tags ctags etags cscope $(obj)System.map:
4577ebf7443Swdenk	@echo "System not configured - see README" >&2
4587ebf7443Swdenk	@ exit 1
459ae6d1056SWolfgang Denkendif	# config.mk
4607ebf7443Swdenk
4614e53a258SWolfgang Denk.PHONY : CHANGELOG
4624e53a258SWolfgang DenkCHANGELOG:
463b985b5d6SBen Warren	git log --no-merges U-Boot-1_1_5.. | \
464b985b5d6SBen Warren	unexpand -a | sed -e 's/\s\s*$$//' > $@
4654e53a258SWolfgang Denk
4660a823aa2SHarald Welteinclude/license.h: tools/bin2header COPYING
4670a823aa2SHarald Welte	 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
4687ebf7443Swdenk#########################################################################
4697ebf7443Swdenk
4707ebf7443Swdenkunconfig:
471887e2ec9SStefan Roese	@rm -f $(obj)include/config.h $(obj)include/config.mk \
4722f155f6cSGrant Likely		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
4732f155f6cSGrant Likely		$(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
4747ebf7443Swdenk
4757ebf7443Swdenk#========================================================================
4767ebf7443Swdenk# PowerPC
4777ebf7443Swdenk#========================================================================
4780db5bca8Swdenk
4790db5bca8Swdenk#########################################################################
4800db5bca8Swdenk## MPC5xx Systems
4810db5bca8Swdenk#########################################################################
4820db5bca8Swdenk
4835e5f9ed2Swdenkcanmb_config:	unconfig
484f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
4855e5f9ed2Swdenk
4860db5bca8Swdenkcmi_mpc5xx_config:	unconfig
487f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
4880db5bca8Swdenk
489b6e4c403SwdenkPATI_config:		unconfig
490f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
491b6e4c403Swdenk
4927ebf7443Swdenk#########################################################################
493945af8d7Swdenk## MPC5xxx Systems
494945af8d7Swdenk#########################################################################
495a87589daSwdenk
496dafba16eSWolfgang Denkaev_config: unconfig
4974677988cSWolfgang Grandegger	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200 tqc
498dafba16eSWolfgang Denk
4996ca24c64Sdzu@denx.deBC3450_config:	unconfig
500f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
5016ca24c64Sdzu@denx.de
502699f0512SWolfgang Denkcm5200_config:	unconfig
503699f0512SWolfgang Denk	@$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
504699f0512SWolfgang Denk
5055e4b3361SStefan Roesecpci5200_config:  unconfig
506f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
5075e4b3361SStefan Roese
508a87589daSwdenkhmi1001_config:	unconfig
509f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
510a87589daSwdenk
511e35745bbSwdenkLite5200_config				\
512e35745bbSwdenkLite5200_LOWBOOT_config			\
513e35745bbSwdenkLite5200_LOWBOOT08_config		\
514e35745bbSwdenkicecube_5200_config			\
515e35745bbSwdenkicecube_5200_LOWBOOT_config		\
516e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
517b2001f27Swdenkicecube_5200_DDR_config			\
51879d696fcSwdenkicecube_5200_DDR_LOWBOOT_config		\
51979d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
520e35745bbSwdenkicecube_5100_config:			unconfig
521f9328639SMarian Balakowicz	@mkdir -p $(obj)include
522f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
52317d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
52417d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
525f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
526f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
52717d704ebSwdenk		  fi ; \
528ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5295cf9da48Swdenk		}
5305cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
531f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
5325cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
533ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
5345cf9da48Swdenk		}
535b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
536f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
537ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
538b2001f27Swdenk		}
539d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
540f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
541ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
542d4ca31c4Swdenk		}
543a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
544f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
545ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
546945af8d7Swdenk		}
547f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
548945af8d7Swdenk
5492605e90bSHeiko Schocherjupiter_config:	unconfig
5502605e90bSHeiko Schocher	@$(MKCONFIG) jupiter ppc mpc5xxx jupiter
5512605e90bSHeiko Schocher
552138ff60cSwdenkinka4x0_config:	unconfig
553f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
554138ff60cSwdenk
55509e4b0c5SWolfgang Denklite5200b_config	\
556d3832e8fSDomen Puncerlite5200b_PM_config	\
55709e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
558f9328639SMarian Balakowicz	@mkdir -p $(obj)include
559f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
560f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
561ae6d1056SWolfgang Denk	@ $(XECHO) "... DDR memory revision"
562f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
563f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
564d3832e8fSDomen Puncer	@[ -z "$(findstring _PM_,$@)" ] || \
565d3832e8fSDomen Puncer		{ echo "#define CONFIG_LITE5200B_PM"	>>$(obj)include/config.h ; \
566ae6d1056SWolfgang Denk		  $(XECHO) "... with power management (low-power mode) support" ; \
567d3832e8fSDomen Puncer		}
56809e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
569f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
570ae6d1056SWolfgang Denk		  $(XECHO) "... with LOWBOOT configuration" ; \
57109e4b0c5SWolfgang Denk		}
572ae6d1056SWolfgang Denk	@ $(XECHO) "... with MPC5200B processor"
573f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
57409e4b0c5SWolfgang Denk
575f1ee9825SStefan Roesemcc200_config	\
576ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
577ed1cf845SWolfgang Denkmcc200_highboot_config	\
578ed1cf845SWolfgang Denkmcc200_COM12_config	\
579ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
580113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
581113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
582ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
583ed1cf845SWolfgang Denkprs200_config	\
584ed1cf845SWolfgang Denkprs200_DDR_config	\
585ed1cf845SWolfgang Denkprs200_highboot_config	\
586ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
587f9328639SMarian Balakowicz	@mkdir -p $(obj)include
588f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
5894819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
590ae6d1056SWolfgang Denk		{ $(XECHO) "... with lowboot configuration" ; \
591f1ee9825SStefan Roese		}
5924819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
593f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
594ae6d1056SWolfgang Denk		  $(XECHO) "... with highboot configuration" ; \
5954819fad9SWolfgang Denk		}
5964819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
597ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
598ed1cf845SWolfgang Denk		  then \
599ae6d1056SWolfgang Denk			$(XECHO) "... with DDR" ; \
600ed1cf845SWolfgang Denk		  else \
601ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
602ed1cf845SWolfgang Denk			then \
603ae6d1056SWolfgang Denk				$(XECHO) "... with DDR" ; \
604ed1cf845SWolfgang Denk			else \
605f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
606ae6d1056SWolfgang Denk				$(XECHO) "... with SDRAM" ; \
607ed1cf845SWolfgang Denk			fi; \
608ed1cf845SWolfgang Denk		  fi; \
6094819fad9SWolfgang Denk		}
6104819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
611f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
612ae6d1056SWolfgang Denk		  $(XECHO) "... with SDRAM" ; \
6134819fad9SWolfgang Denk		}
614463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
615f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
616ae6d1056SWolfgang Denk		  $(XECHO) "... with console on COM12" ; \
617463764c8SWolfgang Denk		}
618ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
619f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"	>>$(obj)include/config.h ;\
620ed1cf845SWolfgang Denk		}
621f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
62286ea5f93SWolfgang Denk
6238b7d1f0aSStefan Roesemecp5200_config:  unconfig
624ae6d1056SWolfgang Denk	@$(MKCONFIG) mecp5200  ppc mpc5xxx mecp5200 esd
6258b7d1f0aSStefan Roese
626699f0512SWolfgang Denkmotionpro_config:	unconfig
627699f0512SWolfgang Denk	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
628699f0512SWolfgang Denk
629258c37b1SHeiko Schochermucmc52_config:		unconfig
630258c37b1SHeiko Schocher	@$(MKCONFIG) mucmc52 ppc mpc5xxx mucmc52
631258c37b1SHeiko Schocher
6326341d9d7SHeiko Schochermunices_config:	unconfig
633ae6d1056SWolfgang Denk	@$(MKCONFIG) munices ppc mpc5xxx munices
6346341d9d7SHeiko Schocher
635699f0512SWolfgang DenkMVBC_P_config: unconfig
636699f0512SWolfgang Denk	@mkdir -p $(obj)include
637699f0512SWolfgang Denk	@mkdir -p $(obj)board/mvbc_p
638699f0512SWolfgang Denk	@ >$(obj)include/config.h
639699f0512SWolfgang Denk	@[ -z "$(findstring MVBC_P,$@)" ] || \
640699f0512SWolfgang Denk	{   	echo "#define CONFIG_MVBC_P" 	>>$(obj)include/config.h; }
641699f0512SWolfgang Denk	@$(MKCONFIG) -n $@ -a MVBC_P ppc mpc5xxx mvbc_p matrix_vision
642699f0512SWolfgang Denk
64391c82076SJean-Christophe PLAGNIOL-VILLARDo2dnt_config:	unconfig
644f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
645df04a3dfSWolfgang Denk
6465e4b3361SStefan Roesepf5200_config:	unconfig
647f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
6485e4b3361SStefan Roese
64989394047SwdenkPM520_config \
65089394047SwdenkPM520_DDR_config \
65189394047SwdenkPM520_ROMBOOT_config \
65289394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
653f9328639SMarian Balakowicz	@mkdir -p $(obj)include
65489394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
655f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
656ae6d1056SWolfgang Denk		  $(XECHO) "... DDR memory revision" ; \
65789394047Swdenk		}
65889394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
659f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
660ae6d1056SWolfgang Denk		  $(XECHO) "... booting from 8-bit flash" ; \
66189394047Swdenk		}
662f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
66389394047Swdenk
6646624b687SWolfgang Denksmmaco4_config: unconfig
6654677988cSWolfgang Grandegger	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200 tqc
6669cdc8386SWolfgang Denk
6679cdc8386SWolfgang Denkspieval_config:	unconfig
6684677988cSWolfgang Grandegger	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200 tqc
6699cdc8386SWolfgang Denk
67045a212c4SWolfgang DenkTB5200_B_config \
671b87dfd28SWolfgang DenkTB5200_config:	unconfig
672f9328639SMarian Balakowicz	@mkdir -p $(obj)include
67345a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
674f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
675ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200B processor" ; \
67645a212c4SWolfgang Denk		}
6774677988cSWolfgang Grandegger	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200 tqc
678b87dfd28SWolfgang Denk
679d4ca31c4SwdenkMINI5200_config	\
680d4ca31c4SwdenkEVAL5200_config	\
681d4ca31c4SwdenkTOP5200_config:	unconfig
682f9328639SMarian Balakowicz	@mkdir -p $(obj)include
683f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
684f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
685d4ca31c4Swdenk
6866c7a1408SwdenkTotal5100_config		\
6876c7a1408SwdenkTotal5200_config		\
6886c7a1408SwdenkTotal5200_lowboot_config	\
6896c7a1408SwdenkTotal5200_Rev2_config		\
6906c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
691f9328639SMarian Balakowicz	@mkdir -p $(obj)include
692f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
6936c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
694f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
695ae6d1056SWolfgang Denk		  $(XECHO) "... with MGT5100 processor" ; \
6966c7a1408Swdenk		}
6976c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
698f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
699ae6d1056SWolfgang Denk		  $(XECHO) "... with MPC5200 processor" ; \
7006c7a1408Swdenk		}
7016c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
702f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
703ae6d1056SWolfgang Denk		  $(XECHO) "... revision 1 board" ; \
7046c7a1408Swdenk		}
7056c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
706f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
707ae6d1056SWolfgang Denk		  $(XECHO) "... revision 2 board" ; \
7086c7a1408Swdenk		}
7096c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
710f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
711ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
7126c7a1408Swdenk		}
713f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
7146c7a1408Swdenk
7155196a7a0SWolfgang Denkcam5200_config \
716d9384de2SMarian Balakowiczcam5200_niosflash_config \
7175196a7a0SWolfgang Denkfo300_config \
7185196a7a0SWolfgang DenkMiniFAP_config \
7195078cce8SWolfgang DenkTQM5200S_config \
7205078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
7215196a7a0SWolfgang DenkTQM5200_B_config \
7225196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
7235196a7a0SWolfgang DenkTQM5200_config	\
7245196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
725f9328639SMarian Balakowicz	@mkdir -p $(obj)include
7264677988cSWolfgang Grandegger	@mkdir -p $(obj)board/tqc/tqm5200
727135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
728f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
729f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
730f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
731ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200S on Cam5200" ; \
7325078cce8SWolfgang Denk		}
733d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
734d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
735ae6d1056SWolfgang Denk		  $(XECHO) "... with NIOS flash driver" ; \
736d9384de2SMarian Balakowicz		}
7376d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
738f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
739ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200 on FO300" ; \
7406d3bc9b8SMarian Balakowicz		}
741cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
742f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
743ae6d1056SWolfgang Denk		  $(XECHO) "... TQM5200_AC on MiniFAP" ; \
744978b1096SWolfgang Denk		}
745cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
746f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
747ae6d1056SWolfgang Denk		  $(XECHO) "... on a STK52XX.100 base board" ; \
74856523f12Swdenk		}
7495078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
750f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
7515078cce8SWolfgang Denk		}
7525078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
753f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
754f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
75545a212c4SWolfgang Denk		}
756978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
757f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
758978b1096SWolfgang Denk		}
7594677988cSWolfgang Grandegger	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200 tqc
760699f0512SWolfgang Denk
7616dedf3d4SHeiko Schocheruc101_config:		unconfig
7626dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
76353d4a498SBartlomiej Sieka
764699f0512SWolfgang Denkv38b_config: unconfig
765699f0512SWolfgang Denk	@$(MKCONFIG) -a v38b ppc mpc5xxx v38b
76656523f12Swdenk
767945af8d7Swdenk#########################################################################
7688993e54bSRafal Jaworowski## MPC512x Systems
7698993e54bSRafal Jaworowski#########################################################################
770699f0512SWolfgang Denk
7715f91db7fSJohn Rigbyads5121_config \
772f31c49dbSMartha Marxads5121_rev2_config	\
7735f91db7fSJohn Rigby	: unconfig
774210ed200SWolfgang Denk	@mkdir -p $(obj)include
775f31c49dbSMartha Marx	@if [ "$(findstring rev2,$@)" ] ; then \
776f31c49dbSMartha Marx		echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
7775f91db7fSJohn Rigby	fi
7785f91db7fSJohn Rigby	@$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
7798993e54bSRafal Jaworowski
7808993e54bSRafal Jaworowski
7818993e54bSRafal Jaworowski#########################################################################
7827ebf7443Swdenk## MPC8xx Systems
7837ebf7443Swdenk#########################################################################
7847ebf7443Swdenk
7852d24a3a7SwdenkAdder_config	\
7862d24a3a7SwdenkAdder87x_config \
78726238132SwdenkAdderII_config	\
7882d24a3a7Swdenk	:		unconfig
789f9328639SMarian Balakowicz	@mkdir -p $(obj)include
79026238132Swdenk	$(if $(findstring AdderII,$@), \
791f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
792f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
7932d24a3a7Swdenk
79416c8d5e7SWolfgang DenkAdderUSB_config:	unconfig
79591c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
79616c8d5e7SWolfgang Denk
797180d3f74SwdenkADS860_config	  \
798180d3f74SwdenkFADS823_config	  \
799180d3f74SwdenkFADS850SAR_config \
800180d3f74SwdenkMPC86xADS_config  \
8011114257cSwdenkMPC885ADS_config  \
802180d3f74SwdenkFADS860T_config:	unconfig
803f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
8047ebf7443Swdenk
8057ebf7443SwdenkAMX860_config	:	unconfig
806f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
8077ebf7443Swdenk
8087ebf7443Swdenkc2mon_config:		unconfig
809f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
8107ebf7443Swdenk
8117ebf7443SwdenkCCM_config:		unconfig
812f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
8137ebf7443Swdenk
8147ebf7443Swdenkcogent_mpc8xx_config:	unconfig
815f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
8167ebf7443Swdenk
8173bac3513SwdenkELPT860_config:		unconfig
818f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
8193bac3513Swdenk
82084c960ceSWolfgang DenkEP88x_config:		unconfig
821f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
82284c960ceSWolfgang Denk
8237ebf7443SwdenkESTEEM192E_config:	unconfig
824f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
8257ebf7443Swdenk
8267ebf7443SwdenkETX094_config	:	unconfig
827f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
8287ebf7443Swdenk
8297ebf7443SwdenkFLAGADM_config:	unconfig
830f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
8317ebf7443Swdenk
8327aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
8337aa78614Swdenk
8347aa78614SwdenkGEN860T_SC_config	\
8357ebf7443SwdenkGEN860T_config: unconfig
836f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8377aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
838f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
839ae6d1056SWolfgang Denk		  $(XECHO) "With reduced H/W feature set (SC)..." ; \
8407aa78614Swdenk		}
841f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
8427ebf7443Swdenk
8437ebf7443SwdenkGENIETV_config:	unconfig
844f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
8457ebf7443Swdenk
8467ebf7443SwdenkGTH_config:	unconfig
847f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
8487ebf7443Swdenk
8497ebf7443Swdenkhermes_config	:	unconfig
850f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
8517ebf7443Swdenk
852c40b2956SwdenkHMI10_config	:	unconfig
8534677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
854c40b2956Swdenk
8557ebf7443SwdenkIAD210_config: unconfig
856f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
8577ebf7443Swdenk
8587ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
8597ebf7443Swdenk
8607ebf7443SwdenkICU862_100MHz_config	\
8617ebf7443SwdenkICU862_config: unconfig
862f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8637ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
864f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
865ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
8667ebf7443Swdenk		}
867f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
8687ebf7443Swdenk
8697ebf7443SwdenkIP860_config	:	unconfig
870f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
8717ebf7443Swdenk
8727ebf7443SwdenkIVML24_256_config \
8737ebf7443SwdenkIVML24_128_config \
8747ebf7443SwdenkIVML24_config:	unconfig
875f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8767ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
877f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
8787ebf7443Swdenk		 }
8797ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
880f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
8817ebf7443Swdenk		 }
8827ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
883f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
8847ebf7443Swdenk		 }
885f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
8867ebf7443Swdenk
8877ebf7443SwdenkIVMS8_256_config \
8887ebf7443SwdenkIVMS8_128_config \
8897ebf7443SwdenkIVMS8_config:	unconfig
890f9328639SMarian Balakowicz	@mkdir -p $(obj)include
8917ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
892f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
8937ebf7443Swdenk		 }
8947ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
895f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
8967ebf7443Swdenk		 }
8977ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
898f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
8997ebf7443Swdenk		 }
900f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
9017ebf7443Swdenk
90256f94be3SwdenkKUP4K_config	:	unconfig
903f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
9040608e04dSwdenk
9050608e04dSwdenkKUP4X_config	:	unconfig
906f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
90756f94be3Swdenk
9087ebf7443SwdenkLANTEC_config	:	unconfig
909f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
9107ebf7443Swdenk
9117ebf7443Swdenklwmon_config:		unconfig
912f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
9137ebf7443Swdenk
9147ebf7443SwdenkMBX_config	\
9157ebf7443SwdenkMBX860T_config:	unconfig
916f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
9177ebf7443Swdenk
918381e4e63SHeiko Schochermgsuvd_config:		unconfig
919381e4e63SHeiko Schocher	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
920381e4e63SHeiko Schocher
9217ebf7443SwdenkMHPC_config:		unconfig
922f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
9237ebf7443Swdenk
924993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
925993cad93Swdenk
926993cad93SwdenkNETVIA_V2_config \
9277ebf7443SwdenkNETVIA_config:		unconfig
928f9328639SMarian Balakowicz	@mkdir -p $(obj)include
929993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
930f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
931ae6d1056SWolfgang Denk		  $(XECHO) "... Version 1" ; \
932993cad93Swdenk		 }
933993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
934f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
935ae6d1056SWolfgang Denk		  $(XECHO) "... Version 2" ; \
936993cad93Swdenk		 }
937f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
9387ebf7443Swdenk
939c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
940c26e454dSwdenk
941c26e454dSwdenkNETPHONE_V2_config \
94204a85b3bSwdenkNETPHONE_config:	unconfig
943f9328639SMarian Balakowicz	@mkdir -p $(obj)include
944c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
945f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
946c26e454dSwdenk		 }
947c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
948f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
949c26e454dSwdenk		 }
950f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
95104a85b3bSwdenk
95279fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
95304a85b3bSwdenk
95479fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
95579fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
95679fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
95779fa88f3SwdenkNETTA_SWAPHOOK_config \
95879fa88f3SwdenkNETTA_ISDN_6412_config \
95904a85b3bSwdenkNETTA_ISDN_config \
96079fa88f3SwdenkNETTA_6412_config \
96104a85b3bSwdenkNETTA_config:		unconfig
962f9328639SMarian Balakowicz	@mkdir -p $(obj)include
96379fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
964f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
96504a85b3bSwdenk		 }
96679fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
967f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
96879fa88f3Swdenk		 }
96979fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
970f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
97179fa88f3Swdenk		 }
97279fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
973f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
97479fa88f3Swdenk		 }
97579fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
976f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
97779fa88f3Swdenk		 }
97879fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
979f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
98079fa88f3Swdenk		 }
981f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
98204a85b3bSwdenk
98379fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
98479fa88f3Swdenk
98579fa88f3SwdenkNETTA2_V2_config \
98679fa88f3SwdenkNETTA2_config:		unconfig
987f9328639SMarian Balakowicz	@mkdir -p $(obj)include
98879fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
989f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
99079fa88f3Swdenk		 }
99179fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
992f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
99379fa88f3Swdenk		 }
994f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
99579fa88f3Swdenk
996a367d426Sdzu@denx.deNC650_Rev1_config \
997a367d426Sdzu@denx.deNC650_Rev2_config \
998a367d426Sdzu@denx.deCP850_config:	unconfig
999f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1000a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
1001f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
1002f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1003a367d426Sdzu@denx.de		 }
1004a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
1005f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
1006a367d426Sdzu@denx.de		 }
1007a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
1008f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
1009a367d426Sdzu@denx.de		 }
1010f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
10117ca202f5Swdenk
10127ebf7443SwdenkNX823_config:		unconfig
1013f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
10147ebf7443Swdenk
10157ebf7443Swdenkpcu_e_config:		unconfig
1016f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
10177ebf7443Swdenk
10183bbc899fSwdenkQS850_config:	unconfig
1019f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10203bbc899fSwdenk
10213bbc899fSwdenkQS823_config:	unconfig
1022f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
10233bbc899fSwdenk
10243bbc899fSwdenkQS860T_config:	unconfig
1025f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
10263bbc899fSwdenk
1027da93ed81Swdenkquantum_config:	unconfig
1028f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
1029da93ed81Swdenk
10307ebf7443SwdenkR360MPI_config:	unconfig
1031f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
10327ebf7443Swdenk
1033682011ffSwdenkRBC823_config:	unconfig
1034f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
1035682011ffSwdenk
10367ebf7443SwdenkRPXClassic_config:	unconfig
1037f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
10387ebf7443Swdenk
10397ebf7443SwdenkRPXlite_config:		unconfig
1040f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
10417ebf7443Swdenk
1042e63c8ee3SwdenkRPXlite_DW_64_config		\
1043e63c8ee3SwdenkRPXlite_DW_LCD_config		\
1044e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
1045e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
1046e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config	\
1047e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
1048e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config	\
1049e63c8ee3SwdenkRPXlite_DW_config:	unconfig
1050f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1051e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
1052f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
1053ae6d1056SWolfgang Denk		  $(XECHO) "... with 64MHz system clock ..."; \
1054e63c8ee3Swdenk		}
1055e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1056f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1057f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1058ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display ..."; \
1059e63c8ee3Swdenk		}
1060e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
1061f9328639SMarian Balakowicz		{ echo "#define  CFG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
1062ae6d1056SWolfgang Denk		  $(XECHO) "... with ENV in NVRAM ..."; \
1063e63c8ee3Swdenk		}
1064f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
1065e63c8ee3Swdenk
106673a8b27cSwdenkrmu_config:	unconfig
1067f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
106873a8b27cSwdenk
10697ebf7443SwdenkRRvision_config:	unconfig
1070f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
10717ebf7443Swdenk
10727ebf7443SwdenkRRvision_LCD_config:	unconfig
1073f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1074f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1075f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1076f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
10777ebf7443Swdenk
10787ebf7443SwdenkSM850_config	:	unconfig
10794677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
10807ebf7443Swdenk
108191c82076SJean-Christophe PLAGNIOL-VILLARDspc1920_config:		unconfig
1082f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
1083b02d0177SMarkus Klotzbuecher
10847ebf7443SwdenkSPD823TS_config:	unconfig
1085f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
10867ebf7443Swdenk
10876bdf4306SWolfgang Denkstxxtc_config:	unconfig
1088f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
10896bdf4306SWolfgang Denk
1090dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
1091f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
1092dc7c9a1aSwdenk
10937ebf7443SwdenkSXNI855T_config:	unconfig
1094f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
10957ebf7443Swdenk
1096db2f721fSwdenk# EMK MPC8xx based modules
1097db2f721fSwdenkTOP860_config:		unconfig
1098f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
1099db2f721fSwdenk
11007ebf7443Swdenk# Play some tricks for configuration selection
1101e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
1102e9132ea9Swdenk# and only 823 boards may have LCD support
1103e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
11047ebf7443Swdenk
11057ebf7443SwdenkFPS850L_config		\
1106384ae025SwdenkFPS860L_config		\
1107f12e568cSwdenkNSCU_config		\
11087ebf7443SwdenkTQM823L_config		\
11097ebf7443SwdenkTQM823L_LCD_config	\
11107ebf7443SwdenkTQM850L_config		\
11117ebf7443SwdenkTQM855L_config		\
11127ebf7443SwdenkTQM860L_config		\
1113d126bfbdSwdenkTQM862L_config		\
1114ae3af05eSwdenkTQM823M_config		\
1115ae3af05eSwdenkTQM850M_config		\
1116f12e568cSwdenkTQM855M_config		\
1117f12e568cSwdenkTQM860M_config		\
1118f12e568cSwdenkTQM862M_config		\
11198cba090cSWolfgang DenkTQM866M_config		\
1120090eb735SMarkus KlotzbuecherTQM885D_config		\
1121efc6f447SGuennadi LiakhovetskiTK885D_config		\
11228cba090cSWolfgang Denkvirtlab2_config:	unconfig
1123f9328639SMarian Balakowicz	@mkdir -p $(obj)include
11247ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
1125f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
1126f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
1127ae6d1056SWolfgang Denk		  $(XECHO) "... with LCD display" ; \
11287ebf7443Swdenk		}
11294677988cSWolfgang Grandegger	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx tqc
11307ebf7443Swdenk
11317ebf7443SwdenkTTTech_config:	unconfig
1132f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1133f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1134f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
11354677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
11367ebf7443Swdenk
1137ec0aee7bSwdenkuc100_config	:	unconfig
1138f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
1139f7d1572bSwdenk
1140608c9146Swdenkv37_config:	unconfig
1141f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1142f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1143f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1144f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
1145608c9146Swdenk
114691e940d9Sdzuwtk_config:	unconfig
1147f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1148f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
1149f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
11504677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx tqc
115191e940d9Sdzu
11527ebf7443Swdenk#########################################################################
11537ebf7443Swdenk## PPC4xx Systems
11547ebf7443Swdenk#########################################################################
1155e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
11567ebf7443Swdenk
115716c0cc1cSStefan Roeseacadia_config:	unconfig
115816c0cc1cSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
115916c0cc1cSStefan Roese
1160c440bfe6SStefan Roeseacadia_nand_config:	unconfig
116163e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/acadia
116263e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/acadia
1163c440bfe6SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1164c440bfe6SStefan Roese	@$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1165c440bfe6SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1166c440bfe6SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1167c440bfe6SStefan Roese
11687ebf7443SwdenkADCIOP_config:	unconfig
1169f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
11707ebf7443Swdenk
1171899620c2SStefan Roesealpr_config:	unconfig
117235d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
1173899620c2SStefan Roese
11747521af1cSWolfgang DenkAP1000_config:unconfig
1175f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
11767521af1cSWolfgang Denk
1177c419d1d6SstroeseAPC405_config:	unconfig
1178f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1179c419d1d6Sstroese
11807ebf7443SwdenkAR405_config:	unconfig
1181f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
11827ebf7443Swdenk
1183549826eaSstroeseASH405_config:	unconfig
1184f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1185549826eaSstroese
11868a316c9bSStefan Roesebamboo_config:	unconfig
1187f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
11888a316c9bSStefan Roese
1189cf959c7dSStefan Roesebamboo_nand_config:	unconfig
119063e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/bamboo
119163e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/bamboo
1192cf959c7dSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1193f3679aa1SStefan Roese	@$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
1194cf959c7dSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1195cf959c7dSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1196cf959c7dSStefan Roese
11978a316c9bSStefan Roesebubinga_config:	unconfig
1198f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1199549826eaSstroese
12007ebf7443SwdenkCANBT_config:	unconfig
1201f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
12027ebf7443Swdenk
12034c9e8557SStefan Roese# Canyonlands & Glacier use different U-Boot images
12044c9e8557SStefan Roesecanyonlands_config \
12054c9e8557SStefan Roeseglacier_config:	unconfig
12064c9e8557SStefan Roese	@mkdir -p $(obj)include
12074c9e8557SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
12084c9e8557SStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
12094c9e8557SStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1210c813f1f8SStefan Roese
1211fe7c0db6SStefan Roesecanyonlands_nand_config \
1212fe7c0db6SStefan Roeseglacier_nand_config:	unconfig
121371665ebfSStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/canyonlands
121471665ebfSStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/canyonlands
121571665ebfSStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1216fe7c0db6SStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1217fe7c0db6SStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
121871665ebfSStefan Roese	@$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
121971665ebfSStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
122071665ebfSStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
122171665ebfSStefan Roese
12221d6f9720SwdenkCATcenter_config	\
12231d6f9720SwdenkCATcenter_25_config	\
12241d6f9720SwdenkCATcenter_33_config:	unconfig
1225f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1226f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1227f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
12281d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1229f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1230ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
12311d6f9720Swdenk		}
12321d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1233f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1234ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
12351d6f9720Swdenk		}
1236f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
123710767ccbSwdenk
1238699f0512SWolfgang DenkCMS700_config:	unconfig
1239699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1240699f0512SWolfgang Denk
12417644f16fSStefan RoeseCPCI2DP_config:	unconfig
1242f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
12437644f16fSStefan Roese
12447ebf7443SwdenkCPCI405_config	\
1245549826eaSstroeseCPCI4052_config	\
1246c419d1d6SstroeseCPCI405DT_config	\
1247549826eaSstroeseCPCI405AB_config:	unconfig
1248f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1249f9328639SMarian Balakowicz	@echo "BOARD_REVISION = $(@:_config=)"	>> $(obj)include/config.mk
12507ebf7443Swdenk
12517ebf7443SwdenkCPCIISER4_config:	unconfig
1252f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
12537ebf7443Swdenk
12547ebf7443SwdenkCRAYL1_config:	unconfig
1255f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
12567ebf7443Swdenk
1257cd0a9de6Swdenkcsb272_config:	unconfig
1258f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1259cd0a9de6Swdenk
1260aa245090Swdenkcsb472_config:	unconfig
1261f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1262aa245090Swdenk
12637ebf7443SwdenkDASA_SIM_config: unconfig
1264f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
12657ebf7443Swdenk
126672cd5aa7SstroeseDP405_config:	unconfig
1267f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
126872cd5aa7Sstroese
12697ebf7443SwdenkDU405_config:	unconfig
1270f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
12717ebf7443Swdenk
12721a3ac86bSMatthias FuchsDU440_config:	unconfig
12731a3ac86bSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
12741a3ac86bSMatthias Fuchs
12758a316c9bSStefan Roeseebony_config:	unconfig
1276f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
12777ebf7443Swdenk
12787ebf7443SwdenkERIC_config:	unconfig
1279f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
12807ebf7443Swdenk
1281d1cbe85bSwdenkEXBITGEN_config:	unconfig
1282f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1283d1cbe85bSwdenk
1284c419d1d6SstroeseG2000_config:	unconfig
1285f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1286c419d1d6Sstroese
1287ac982ea5SNiklaus Gigerhcu4_config:	unconfig
1288b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
128935d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
1290ac982ea5SNiklaus Giger
1291ac982ea5SNiklaus Gigerhcu5_config:	unconfig
1292b7f6193eSNiklaus Giger	@mkdir -p $(obj)board/netstal/common
129335d22f95SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
1294ac982ea5SNiklaus Giger
1295c419d1d6SstroeseHH405_config:	unconfig
1296f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1297c419d1d6Sstroese
129872cd5aa7SstroeseHUB405_config:	unconfig
1299f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
130072cd5aa7Sstroese
1301db01a2eaSwdenkJSE_config:	unconfig
1302f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1303db01a2eaSwdenk
1304b79316f2SStefan RoeseKAREF_config: unconfig
1305f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1306b79316f2SStefan Roese
13074745acaaSStefan Roesekatmai_config:	unconfig
13084745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
13094745acaaSStefan Roese
1310353f2688SStefan Roese# Kilauea & Haleakala images are identical (recognized via PVR)
1311353f2688SStefan Roesekilauea_config \
1312353f2688SStefan Roesehaleakala_config: unconfig
1313353f2688SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1314566806caSStefan Roese
13153d6cb3b2SStefan Roesekilauea_nand_config \
13163d6cb3b2SStefan Roesehaleakala_nand_config: unconfig
13173d6cb3b2SStefan Roese	@mkdir -p $(obj)include $(obj)board/amcc/kilauea
13183d6cb3b2SStefan Roese	@mkdir -p $(obj)nand_spl/board/amcc/kilauea
13193d6cb3b2SStefan Roese	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
13203d6cb3b2SStefan Roese	@$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
13213d6cb3b2SStefan Roese	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
13223d6cb3b2SStefan Roese	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
13233d6cb3b2SStefan Roese
1324c591dffeSLarry Johnsonkorat_config:	unconfig
1325c591dffeSLarry Johnson	@$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1326c591dffeSLarry Johnson
13276e7fb6eaSStefan Roeseluan_config:	unconfig
1328f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
13296e7fb6eaSStefan Roese
1330b765ffb7SStefan Roeselwmon5_config:	unconfig
1331b765ffb7SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1332b765ffb7SStefan Roese
1333211ea91aSStefan Roesemakalu_config:	unconfig
1334211ea91aSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1335211ea91aSStefan Roese
1336b05f3543SNiklaus Gigermcu25_config:  unconfig
1337b05f3543SNiklaus Giger	@mkdir -p $(obj)board/netstal/common
1338b05f3543SNiklaus Giger	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1339b05f3543SNiklaus Giger
1340b79316f2SStefan RoeseMETROBOX_config: unconfig
1341f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1342b79316f2SStefan Roese
13437ebf7443SwdenkMIP405_config:	unconfig
1344f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
13457ebf7443Swdenk
1346f3e0de60SwdenkMIP405T_config:	unconfig
1347f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1348f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1349ae6d1056SWolfgang Denk	@$(XECHO) "Enable subset config for MIP405T"
1350f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1351f3e0de60Swdenk
13527ebf7443SwdenkML2_config:	unconfig
1353f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
13547ebf7443Swdenk
1355028ab6b5Swdenkml300_config:	unconfig
1356f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1357028ab6b5Swdenk
135801a00431SRicardo Ribalda Delgadoml507_flash_config:	unconfig
135901a00431SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ml507
136001a00431SRicardo Ribalda Delgado	@cp $(obj)board/xilinx/ml507/u-boot-rom.lds  $(obj)board/xilinx/ml507/u-boot.lds
13619246f5ecSRicardo Ribalda Delgado	@echo "TEXT_BASE = 0xFE360000" > $(obj)board/xilinx/ml507/config.tmp
136201a00431SRicardo Ribalda Delgado	@$(MKCONFIG) $(@:_flash_config=) ppc ppc4xx ml507 xilinx
136301a00431SRicardo Ribalda Delgado
1364086511fcSRicardo Ribalda Delgadoml507_config:	unconfig
136501a00431SRicardo Ribalda Delgado	@mkdir -p $(obj)include $(obj)board/xilinx/ml507
136601a00431SRicardo Ribalda Delgado	@cp $(obj)board/xilinx/ml507/u-boot-ram.lds  $(obj)board/xilinx/ml507/u-boot.lds
1367086511fcSRicardo Ribalda Delgado	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml507 xilinx
1368086511fcSRicardo Ribalda Delgado
13698a316c9bSStefan Roeseocotea_config:	unconfig
1370f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
13710e6d798cSwdenk
13727ebf7443SwdenkOCRTC_config		\
13737ebf7443SwdenkORSG_config:	unconfig
1374f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
13757ebf7443Swdenk
13765568e613SStefan Roesep3p440_config:	unconfig
1377f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
13785568e613SStefan Roese
13797ebf7443SwdenkPCI405_config:	unconfig
1380f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
13817ebf7443Swdenk
1382a4c8d138SStefan Roesepcs440ep_config:	unconfig
1383f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1384a4c8d138SStefan Roese
13857ebf7443SwdenkPIP405_config:	unconfig
1386f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
13877ebf7443Swdenk
138872cd5aa7SstroesePLU405_config:	unconfig
1389f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
139072cd5aa7Sstroese
1391549826eaSstroesePMC405_config:	unconfig
1392f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1393549826eaSstroese
13948ba132caSMatthias FuchsPMC440_config:	unconfig
13958ba132caSMatthias Fuchs	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
13968ba132caSMatthias Fuchs
1397281e00a3SwdenkPPChameleonEVB_config		\
1398e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1399e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1400e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1401e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1402e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1403e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1404f9328639SMarian Balakowicz	@mkdir -p $(obj)include
14051d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1406f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1407ae6d1056SWolfgang Denk		  $(XECHO) "... BASIC model" ; \
1408fbe4b5cbSwdenk		}
14091d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1410f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1411ae6d1056SWolfgang Denk		  $(XECHO) "... MEDIUM model" ; \
1412fbe4b5cbSwdenk		}
14131d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1414f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1415ae6d1056SWolfgang Denk		  $(XECHO) "... HIGH-END model" ; \
1416fbe4b5cbSwdenk		}
1417e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1418f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1419ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 25MHz" ; \
1420e55ca7e2Swdenk		}
1421e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1422f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1423ae6d1056SWolfgang Denk		  $(XECHO) "SysClk = 33MHz" ; \
1424e55ca7e2Swdenk		}
1425f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
142612f34241Swdenk
142773ccb341SGary Jennejohnquad100hd_config:	unconfig
142873ccb341SGary Jennejohn	@$(MKCONFIG) $(@:_config=) ppc ppc4xx quad100hd
142973ccb341SGary Jennejohn
143011188d55SStefan Roeseredwood_config: unconfig
143111188d55SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx redwood amcc
143211188d55SStefan Roese
1433430f1b0fSStefan Roesesbc405_config:	unconfig
1434430f1b0fSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1435430f1b0fSStefan Roese
1436699f0512SWolfgang Denksc3_config:unconfig
1437699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
1438699f0512SWolfgang Denk
1439430f1b0fSStefan Roesesequoia_config \
1440854bc8daSStefan Roeserainier_config: unconfig
14418318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1442430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1443430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
14442aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1445854bc8daSStefan Roese
1446430f1b0fSStefan Roesesequoia_nand_config \
1447854bc8daSStefan Roeserainier_nand_config: unconfig
144863e22764SWolfgang Denk	@mkdir -p $(obj)include $(obj)board/amcc/sequoia
144963e22764SWolfgang Denk	@mkdir -p $(obj)nand_spl/board/amcc/sequoia
14508318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1451430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1452430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1453430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
14548318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
14558318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1456652a10c0Swdenk
1457d4024bb7SJohn Otkentaihu_config:	unconfig
1458d4024bb7SJohn Otken	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1459d4024bb7SJohn Otken
14605fb692caSStefan Roesetaishan_config:	unconfig
14615fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
14625fb692caSStefan Roese
146372cd5aa7SstroeseVOH405_config:	unconfig
1464f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
146572cd5aa7Sstroese
1466c419d1d6SstroeseVOM405_config:	unconfig
1467f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1468c419d1d6Sstroese
14697ebf7443SwdenkW7OLMC_config	\
14707ebf7443SwdenkW7OLMG_config: unconfig
1471f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
14727ebf7443Swdenk
1473430f1b0fSStefan Roese# Walnut & Sycamore images are identical (recognized via PVR)
1474430f1b0fSStefan Roesewalnut_config \
1475430f1b0fSStefan Roesesycamore_config: unconfig
1476430f1b0fSStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
14777ebf7443Swdenk
1478c419d1d6SstroeseWUH405_config:	unconfig
1479f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1480c419d1d6Sstroese
1481ba56f625SwdenkXPEDITE1K_config:	unconfig
1482f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1483ba56f625Swdenk
1484430f1b0fSStefan Roeseyosemite_config \
14858a316c9bSStefan Roeseyellowstone_config: unconfig
1486700200c6SStefan Roese	@mkdir -p $(obj)include
1487430f1b0fSStefan Roese	@echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1488430f1b0fSStefan Roese		tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
14892aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
14908a316c9bSStefan Roese
14916c5879f3SMarian Balakowiczyucca_config:	unconfig
1492f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
14936c5879f3SMarian Balakowicz
1494779e9751SStefan Roesezeus_config:	unconfig
1495779e9751SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1496779e9751SStefan Roese
14977ebf7443Swdenk#########################################################################
1498983fda83Swdenk## MPC8220 Systems
1499983fda83Swdenk#########################################################################
1500dc17fb6dSWolfgang Denk
1501dc17fb6dSWolfgang DenkAlaska8220_config	\
1502dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1503f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1504983fda83Swdenk
150512b43d51Swdenksorcery_config:		unconfig
1506f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
150712b43d51Swdenk
1508983fda83Swdenk#########################################################################
15097ebf7443Swdenk## MPC824x Systems
15107ebf7443Swdenk#########################################################################
1511efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
15123bac3513Swdenk
15130332990bSwdenkA3000_config: unconfig
1514f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
15150332990bSwdenk
15168e6f1a8eSWolfgang Denkbarco_config: unconfig
1517f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
15188e6f1a8eSWolfgang Denk
15197ebf7443SwdenkBMW_config: unconfig
1520f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
15217ebf7443Swdenk
15223bac3513SwdenkCPC45_config	\
15233bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1524f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1525f9328639SMarian Balakowicz	@cd $(obj)include ;				\
15263bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
15273bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1528ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
15293bac3513Swdenk	else \
15303bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1531ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
15323bac3513Swdenk	fi; \
15333bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
15343bac3513Swdenk
15357ebf7443SwdenkCU824_config: unconfig
1536f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
15377ebf7443Swdenk
15387abf0c58Swdenkdebris_config: unconfig
1539f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
15407abf0c58Swdenk
154180885a9dSwdenkeXalion_config: unconfig
1542f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
154380885a9dSwdenk
1544756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1545f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1546756f586aSwdenk
154753dd6ce4SWolfgang Denkkvme080_config: unconfig
1548f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
154953dd6ce4SWolfgang Denk
155061525f2fSGuennadi Liakhovetski# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
155161525f2fSGuennadi Liakhovetski# time permits.
155261525f2fSGuennadi Liakhovetski#linkstation_HDLAN_config \
155361525f2fSGuennadi Liakhovetski# Remove this line when HDLAN is fixed
155461525f2fSGuennadi Liakhovetskilinkstation_HGLAN_config: unconfig
155561525f2fSGuennadi Liakhovetski	@mkdir -p $(obj)include
155661525f2fSGuennadi Liakhovetski	@case $@ in \
155761525f2fSGuennadi Liakhovetski		*HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
155861525f2fSGuennadi Liakhovetski		*HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
155961525f2fSGuennadi Liakhovetski	esac
156061525f2fSGuennadi Liakhovetski	@$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
156161525f2fSGuennadi Liakhovetski
15627ebf7443SwdenkMOUSSE_config: unconfig
1563f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
15647ebf7443Swdenk
15657ebf7443SwdenkMUSENKI_config: unconfig
1566f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
15677ebf7443Swdenk
1568b4676a25SwdenkMVBLUE_config:	unconfig
1569f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1570b4676a25Swdenk
15717ebf7443SwdenkOXC_config: unconfig
1572f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
15737ebf7443Swdenk
15747ebf7443SwdenkPN62_config: unconfig
1575f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
15767ebf7443Swdenk
15777ebf7443SwdenkSandpoint8240_config: unconfig
1578f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
15797ebf7443Swdenk
15807ebf7443SwdenkSandpoint8245_config: unconfig
1581f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
15827ebf7443Swdenk
1583466b7410Swdenksbc8240_config: unconfig
1584f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1585466b7410Swdenk
1586d1cbe85bSwdenkSL8245_config: unconfig
1587f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1588d1cbe85bSwdenk
15897ebf7443Swdenkutx8245_config: unconfig
1590f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
15917ebf7443Swdenk
15927ebf7443Swdenk#########################################################################
15937ebf7443Swdenk## MPC8260 Systems
15947ebf7443Swdenk#########################################################################
15957ebf7443Swdenk
159654387ac9Swdenkatc_config:	unconfig
1597f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
159854387ac9Swdenk
15997ebf7443Swdenkcogent_mpc8260_config:	unconfig
1600f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
16017ebf7443Swdenk
16027ebf7443SwdenkCPU86_config	\
16037ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1604f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1605f9328639SMarian Balakowicz	@cd $(obj)include ;				\
16067ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
16077ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1608ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
16097ebf7443Swdenk	else \
16107ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1611ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
16127ebf7443Swdenk	fi; \
16137ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
16147ebf7443Swdenk
1615384cc687SwdenkCPU87_config	\
1616384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1617f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1618f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1619384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1620384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1621ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1622384cc687Swdenk	else \
1623384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1624ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1625384cc687Swdenk	fi; \
1626384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1627384cc687Swdenk
1628f901a83bSWolfgang Denkep8248_config	\
1629f901a83bSWolfgang Denkep8248E_config	:	unconfig
1630f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1631f901a83bSWolfgang Denk
16327ebf7443Swdenkep8260_config:	unconfig
1633f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
16347ebf7443Swdenk
16358d4ac794SWolfgang Denkep82xxm_config:	unconfig
163690b1b2d6SGrant Likely	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
16378d4ac794SWolfgang Denk
16387ebf7443Swdenkgw8260_config:	unconfig
1639f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
16407ebf7443Swdenk
16417ebf7443Swdenkhymod_config:	unconfig
1642f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
16437ebf7443Swdenk
16449dd41a7bSwdenkIDS8247_config:	unconfig
1645f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
16469dd41a7bSwdenk
16477ebf7443SwdenkIPHASE4539_config:	unconfig
1648f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
16497ebf7443Swdenk
1650c3c7f861SwdenkISPAN_config		\
1651c3c7f861SwdenkISPAN_REVB_config:	unconfig
1652f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1653c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
1654f9328639SMarian Balakowicz		echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1655c3c7f861Swdenk	fi
1656f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1657c3c7f861Swdenk
1658ac9db066SHeiko Schochermgcoge_config	:	unconfig
1659ac9db066SHeiko Schocher	@$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1660ac9db066SHeiko Schocher
166104a85b3bSwdenkMPC8260ADS_config	\
1662901787d6SwdenkMPC8260ADS_lowboot_config	\
166304a85b3bSwdenkMPC8260ADS_33MHz_config	\
1664901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
166504a85b3bSwdenkMPC8260ADS_40MHz_config	\
1666901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
166704a85b3bSwdenkMPC8272ADS_config	\
1668901787d6SwdenkMPC8272ADS_lowboot_config	\
166904a85b3bSwdenkPQ2FADS_config		\
1670901787d6SwdenkPQ2FADS_lowboot_config		\
167104a85b3bSwdenkPQ2FADS-VR_config	\
1672901787d6SwdenkPQ2FADS-VR_lowboot_config	\
167304a85b3bSwdenkPQ2FADS-ZU_config	\
1674901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
167504a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1676901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
167704a85b3bSwdenk	:		unconfig
1678f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1679b7e24d28SJon Loeliger	@mkdir -p $(obj)board/freescale/mpc8260ads
168004a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
1681f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1682f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
168304a85b3bSwdenk	$(if $(findstring MHz,$@), \
1684f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
168504a85b3bSwdenk	$(if $(findstring VR,$@), \
1686f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1687901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1688b7e24d28SJon Loeliger		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
1689ae6d1056SWolfgang Denk		  $(XECHO) "... with lowboot configuration" ; \
1690901787d6Swdenk		}
1691b7e24d28SJon Loeliger	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
16927ebf7443Swdenk
1693db2f721fSwdenkMPC8266ADS_config:	unconfig
1694aa3511e4SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
1695db2f721fSwdenk
1696adf22b66SHeiko Schochermuas3001_dev_config \
1697adf22b66SHeiko Schochermuas3001_config	:	unconfig
1698adf22b66SHeiko Schocher	@mkdir -p $(obj)include
1699adf22b66SHeiko Schocher	@mkdir -p $(obj)board/muas3001
1700adf22b66SHeiko Schocher	@if [ "$(findstring dev,$@)" ] ; then \
1701adf22b66SHeiko Schocher		echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1702adf22b66SHeiko Schocher	fi
1703adf22b66SHeiko Schocher	@$(MKCONFIG) -a muas3001 ppc mpc8260 muas3001
1704adf22b66SHeiko Schocher
1705efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
170610f67017SwdenkPM825_config	\
1707efa329cbSwdenkPM825_ROMBOOT_config	\
1708efa329cbSwdenkPM825_BIGFLASH_config	\
1709efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
17107ebf7443SwdenkPM826_config	\
1711efa329cbSwdenkPM826_ROMBOOT_config	\
1712efa329cbSwdenkPM826_BIGFLASH_config	\
1713efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1714f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1715f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1716efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1717f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
17187ebf7443Swdenk	else \
1719f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1720efa329cbSwdenk	fi
1721efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1722ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1723f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1724f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1725efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1726ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1727f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
17287ebf7443Swdenk		fi; \
1729efa329cbSwdenk	else \
1730ae6d1056SWolfgang Denk		$(XECHO) "... booting from 64-bit flash" ; \
1731efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1732ae6d1056SWolfgang Denk			$(XECHO) "... with 32 MB Flash" ; \
1733f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1734f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1735efa329cbSwdenk		else \
1736f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1737efa329cbSwdenk		fi; \
1738efa329cbSwdenk	fi
1739f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1740efa329cbSwdenk
1741efa329cbSwdenkPM828_config	\
1742efa329cbSwdenkPM828_PCI_config	\
1743efa329cbSwdenkPM828_ROMBOOT_config	\
1744efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1745f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1746f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
174717076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1748f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1749ae6d1056SWolfgang Denk		$(XECHO) "... with PCI enabled" ; \
1750efa329cbSwdenk	fi
1751efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1752ae6d1056SWolfgang Denk		$(XECHO) "... booting from 8-bit flash" ; \
1753f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1754f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1755efa329cbSwdenk	fi
1756f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
17577ebf7443Swdenk
17587ebf7443Swdenkppmc8260_config:	unconfig
1759f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
17607ebf7443Swdenk
17618b0bfc68SwdenkRattler8248_config	\
17628b0bfc68SwdenkRattler_config:		unconfig
1763f9328639SMarian Balakowicz	@mkdir -p $(obj)include
17648b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1765f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1766f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
17678b0bfc68Swdenk
17687ebf7443SwdenkRPXsuper_config:	unconfig
1769f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
17707ebf7443Swdenk
17717ebf7443Swdenkrsdproto_config:	unconfig
1772f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
17737ebf7443Swdenk
17747ebf7443Swdenksacsng_config:	unconfig
1775f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
17767ebf7443Swdenk
17777ebf7443Swdenksbc8260_config:	unconfig
1778f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
17797ebf7443Swdenk
17807ebf7443SwdenkSCM_config:		unconfig
1781f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
17827ebf7443Swdenk
178327b207fdSwdenkTQM8255_AA_config \
178427b207fdSwdenkTQM8260_AA_config \
178527b207fdSwdenkTQM8260_AB_config \
178627b207fdSwdenkTQM8260_AC_config \
178727b207fdSwdenkTQM8260_AD_config \
178827b207fdSwdenkTQM8260_AE_config \
178927b207fdSwdenkTQM8260_AF_config \
179027b207fdSwdenkTQM8260_AG_config \
179127b207fdSwdenkTQM8260_AH_config \
17921f62bc2dSWolfgang DenkTQM8260_AI_config \
179327b207fdSwdenkTQM8265_AA_config:  unconfig
1794f9328639SMarian Balakowicz	@mkdir -p $(obj)include
179527b207fdSwdenk	@case "$@" in \
179627b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
179727b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
179827b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
179927b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
180027b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
180127b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
180227b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
180327b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
180427b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
18051f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
180627b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
180727b207fdSwdenk	esac; \
180827b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1809f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
181027b207fdSwdenk	fi; \
1811f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
181227b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
18131aaab9bfSWolfgang Denk	if [ "$${CACHE}" = "yes" ] ; then \
1814f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1815ae6d1056SWolfgang Denk		$(XECHO) "... with L2 Cache support" ; \
18167ebf7443Swdenk	else \
1817f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1818ae6d1056SWolfgang Denk		$(XECHO) "... without L2 Cache support" ; \
181927b207fdSwdenk	fi; \
18201aaab9bfSWolfgang Denk	if [ "$${BMODE}" = "60x" ] ; then \
1821f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1822ae6d1056SWolfgang Denk		$(XECHO) "... with 60x Bus Mode" ; \
182327b207fdSwdenk	else \
1824f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
1825ae6d1056SWolfgang Denk		$(XECHO) "... without 60x Bus Mode" ; \
18267ebf7443Swdenk	fi
18274677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260 tqc
18287ebf7443Swdenk
1829fa230445SHeiko SchocherTQM8272_config: unconfig
18304677988cSWolfgang Grandegger	@$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272 tqc
1831fa230445SHeiko Schocher
1832ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1833ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1834f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1835f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1836f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1837ba91e26aSwdenk
183854387ac9SwdenkZPC1900_config: unconfig
1839f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
18407aa78614Swdenk
18414e5ca3ebSwdenk#########################################################################
18424e5ca3ebSwdenk## Coldfire
18434e5ca3ebSwdenk#########################################################################
18444e5ca3ebSwdenk
18451552af70STsiChungLiewM52277EVB_config:	unconfig
18461552af70STsiChungLiew	@$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
18471552af70STsiChungLiew
18484a442d31STsiChungLiewM5235EVB_config \
18494a442d31STsiChungLiewM5235EVB_Flash16_config \
18504a442d31STsiChungLiewM5235EVB_Flash32_config:	unconfig
18514a442d31STsiChungLiew	@case "$@" in \
18524a442d31STsiChungLiew	M5235EVB_config)		FLASH=16;; \
18534a442d31STsiChungLiew	M5235EVB_Flash16_config)	FLASH=16;; \
18544a442d31STsiChungLiew	M5235EVB_Flash32_config)	FLASH=32;; \
18554a442d31STsiChungLiew	esac; \
18564a442d31STsiChungLiew	if [ "$${FLASH}" != "16" ] ; then \
1857ae6d1056SWolfgang Denk		echo "#define NORFLASH_PS32BIT	1" >> $(obj)include/config.h ; \
18584a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
18594a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
18604a442d31STsiChungLiew	else \
18614a442d31STsiChungLiew		echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
18624a442d31STsiChungLiew		cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
18634a442d31STsiChungLiew	fi
18644a442d31STsiChungLiew	@$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
18654a442d31STsiChungLiew
1866a605aacdSTsiChungLiewM5249EVB_config :		unconfig
1867a605aacdSTsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1868a605aacdSTsiChungLiew
18696d33c6acSTsiChung LiewM5253DEMO_config :		unconfig
18706d33c6acSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253demo freescale
18716d33c6acSTsiChung Liew
1872a1436a84STsiChungLiewM5253EVBE_config :		unconfig
1873a1436a84STsiChungLiew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1874a1436a84STsiChungLiew
18757481266eSWolfgang Denkcobra5272_config :		unconfig
1876f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
18777481266eSWolfgang Denk
18784176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
1879f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1880f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1881f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1882f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
18834176c799SWolfgang Denk
18844176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
1885f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1886f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1887f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1888f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
18894176c799SWolfgang Denk
1890daa6e418SBartlomiej Siekaidmr_config :			unconfig
1891daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1892daa6e418SBartlomiej Sieka
18934176c799SWolfgang DenkM5271EVB_config :		unconfig
1894659e9badSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb freescale
18954176c799SWolfgang Denk
18964e5ca3ebSwdenkM5272C3_config :		unconfig
189756df091dSTsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3 freescale
18984e5ca3ebSwdenk
1899545c8e0aSMatthew FettkeM5275EVB_config :		unconfig
1900545c8e0aSMatthew Fettke	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1901545c8e0aSMatthew Fettke
19024e5ca3ebSwdenkM5282EVB_config :		unconfig
190310db3a17STsiChung Liew	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb freescale
19044e5ca3ebSwdenk
19058e585f02STsiChung LiewM5329AFEE_config \
19068e585f02STsiChung LiewM5329BFEE_config :	unconfig
19078e585f02STsiChung Liew	@case "$@" in \
19088e585f02STsiChung Liew	M5329AFEE_config)	NAND=0;; \
19098e585f02STsiChung Liew	M5329BFEE_config)	NAND=16;; \
19108e585f02STsiChung Liew	esac; \
19118e585f02STsiChung Liew	if [ "$${NAND}" != "0" ] ; then \
1912ab77bc54STsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
19138e585f02STsiChung Liew	fi
19148e585f02STsiChung Liew	@$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
19158e585f02STsiChung Liew
1916aa5f1f9dSTsiChungLiewM5373EVB_config :	unconfig
1917aa5f1f9dSTsiChungLiew	@case "$@" in \
1918aa5f1f9dSTsiChungLiew	M5373EVB_config)	NAND=16;; \
1919aa5f1f9dSTsiChungLiew	esac; \
1920aa5f1f9dSTsiChungLiew	if [ "$${NAND}" != "0" ] ; then \
1921aa5f1f9dSTsiChungLiew		echo "#define NANDFLASH_SIZE	$${NAND}" > $(obj)include/config.h ; \
1922aa5f1f9dSTsiChungLiew	fi
1923aa5f1f9dSTsiChungLiew	@$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1924aa5f1f9dSTsiChungLiew
192505316f8eSTsiChung LiewM54451EVB_config \
192605316f8eSTsiChung LiewM54451EVB_spansion_config \
192705316f8eSTsiChung LiewM54451EVB_stmicro_config :	unconfig
192805316f8eSTsiChung Liew	@case "$@" in \
192905316f8eSTsiChung Liew	M54451EVB_config)		FLASH=SPANSION;; \
193005316f8eSTsiChung Liew	M54451EVB_spansion_config)	FLASH=SPANSION;; \
193105316f8eSTsiChung Liew	M54451EVB_stmicro_config)	FLASH=STMICRO;; \
193205316f8eSTsiChung Liew	esac; \
193305316f8eSTsiChung Liew	if [ "$${FLASH}" = "SPANSION" ] ; then \
193405316f8eSTsiChung Liew		echo "#define CFG_SPANSION_BOOT"	>> $(obj)include/config.h ; \
193505316f8eSTsiChung Liew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
193605316f8eSTsiChung Liew		cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
193705316f8eSTsiChung Liew		$(XECHO) "... with SPANSION boot..." ; \
193805316f8eSTsiChung Liew	fi; \
193905316f8eSTsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
194005316f8eSTsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
194105316f8eSTsiChung Liew		echo "#define CFG_STMICRO_BOOT"	>> $(obj)include/config.h ; \
194205316f8eSTsiChung Liew		echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
194305316f8eSTsiChung Liew		cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
194405316f8eSTsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
194505316f8eSTsiChung Liew	fi; \
194605316f8eSTsiChung Liew	echo "#define CFG_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
194705316f8eSTsiChung Liew	@$(MKCONFIG) -a M54451EVB m68k mcf5445x m54451evb freescale
194805316f8eSTsiChung Liew
19498ae158cdSTsiChungLiewM54455EVB_config \
19508ae158cdSTsiChungLiewM54455EVB_atmel_config \
19518ae158cdSTsiChungLiewM54455EVB_intel_config \
19528ae158cdSTsiChungLiewM54455EVB_a33_config \
19538ae158cdSTsiChungLiewM54455EVB_a66_config \
19548ae158cdSTsiChungLiewM54455EVB_i33_config \
19559f751551STsiChung LiewM54455EVB_i66_config \
19569f751551STsiChung LiewM54455EVB_stm33_config :	unconfig
19578ae158cdSTsiChungLiew	@case "$@" in \
19588ae158cdSTsiChungLiew	M54455EVB_config)		FLASH=ATMEL; FREQ=33333333;; \
19598ae158cdSTsiChungLiew	M54455EVB_atmel_config)		FLASH=ATMEL; FREQ=33333333;; \
19608ae158cdSTsiChungLiew	M54455EVB_intel_config)		FLASH=INTEL; FREQ=33333333;; \
19618ae158cdSTsiChungLiew	M54455EVB_a33_config)		FLASH=ATMEL; FREQ=33333333;; \
19628ae158cdSTsiChungLiew	M54455EVB_a66_config)		FLASH=ATMEL; FREQ=66666666;; \
19638ae158cdSTsiChungLiew	M54455EVB_i33_config)		FLASH=INTEL; FREQ=33333333;; \
19648ae158cdSTsiChungLiew	M54455EVB_i66_config)		FLASH=INTEL; FREQ=66666666;; \
19659f751551STsiChung Liew	M54455EVB_stm33_config)		FLASH=STMICRO; FREQ=33333333;; \
19668ae158cdSTsiChungLiew	esac; \
19671aaab9bfSWolfgang Denk	if [ "$${FLASH}" = "INTEL" ] ; then \
19689f751551STsiChung Liew		echo "#define CFG_INTEL_BOOT" >> $(obj)include/config.h ; \
1969e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1970e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
1971ae6d1056SWolfgang Denk		$(XECHO) "... with INTEL boot..." ; \
19729f751551STsiChung Liew	fi; \
19739f751551STsiChung Liew	if [ "$${FLASH}" = "ATMEL" ] ; then \
19744a442d31STsiChungLiew		echo "#define CFG_ATMEL_BOOT"	>> $(obj)include/config.h ; \
1975e8ee8f3aSTsiChungLiew		echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1976e8ee8f3aSTsiChungLiew		cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
1977ae6d1056SWolfgang Denk		$(XECHO) "... with ATMEL boot..." ; \
19788ae158cdSTsiChungLiew	fi; \
19799f751551STsiChung Liew	if [ "$${FLASH}" = "STMICRO" ] ; then \
19809f751551STsiChung Liew		echo "#define CONFIG_CF_SBF"	>> $(obj)include/config.h ; \
19819f751551STsiChung Liew		echo "#define CFG_STMICRO_BOOT"	>> $(obj)include/config.h ; \
19829f751551STsiChung Liew		echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
19839f751551STsiChung Liew		cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
19849f751551STsiChung Liew		$(XECHO) "... with ST Micro boot..." ; \
19859f751551STsiChung Liew	fi; \
19864a442d31STsiChungLiew	echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
1987ae6d1056SWolfgang Denk	$(XECHO) "... with $${FREQ}Hz input clock"
19888ae158cdSTsiChungLiew	@$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
19898ae158cdSTsiChungLiew
199057a12720STsiChungLiewM5475AFE_config \
199157a12720STsiChungLiewM5475BFE_config \
199257a12720STsiChungLiewM5475CFE_config \
199357a12720STsiChungLiewM5475DFE_config \
199457a12720STsiChungLiewM5475EFE_config \
199557a12720STsiChungLiewM5475FFE_config \
199657a12720STsiChungLiewM5475GFE_config :	unconfig
199757a12720STsiChungLiew	@case "$@" in \
199857a12720STsiChungLiew	M5475AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
199957a12720STsiChungLiew	M5475BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
200057a12720STsiChungLiew	M5475CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
200157a12720STsiChungLiew	M5475DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
200257a12720STsiChungLiew	M5475EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
200357a12720STsiChungLiew	M5475FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
200457a12720STsiChungLiew	M5475GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
200557a12720STsiChungLiew	esac; \
200657a12720STsiChungLiew	echo "#define CFG_BUSCLK	133333333" > $(obj)include/config.h ; \
200757a12720STsiChungLiew	echo "#define CFG_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
200857a12720STsiChungLiew	echo "#define CFG_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
200957a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
201057a12720STsiChungLiew		echo "#define CFG_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
201157a12720STsiChungLiew	fi; \
201257a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
201357a12720STsiChungLiew		echo "#define CFG_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
201457a12720STsiChungLiew	fi; \
201557a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
201657a12720STsiChungLiew		echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
201757a12720STsiChungLiew	fi; \
201857a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
201957a12720STsiChungLiew		echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
202057a12720STsiChungLiew	fi
202157a12720STsiChungLiew	@$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
202257a12720STsiChungLiew
202357a12720STsiChungLiewM5485AFE_config \
202457a12720STsiChungLiewM5485BFE_config \
202557a12720STsiChungLiewM5485CFE_config \
202657a12720STsiChungLiewM5485DFE_config \
202757a12720STsiChungLiewM5485EFE_config \
202857a12720STsiChungLiewM5485FFE_config \
202957a12720STsiChungLiewM5485GFE_config \
203057a12720STsiChungLiewM5485HFE_config :	unconfig
203157a12720STsiChungLiew	@case "$@" in \
203257a12720STsiChungLiew	M5485AFE_config)	BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
203357a12720STsiChungLiew	M5485BFE_config)	BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
203457a12720STsiChungLiew	M5485CFE_config)	BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
203557a12720STsiChungLiew	M5485DFE_config)	BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
203657a12720STsiChungLiew	M5485EFE_config)	BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
203757a12720STsiChungLiew	M5485FFE_config)	BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
203857a12720STsiChungLiew	M5485GFE_config)	BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
20394d264effSTsiChungLiew	M5485HFE_config)	BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
204057a12720STsiChungLiew	esac; \
204157a12720STsiChungLiew	echo "#define CFG_BUSCLK	100000000" > $(obj)include/config.h ; \
204257a12720STsiChungLiew	echo "#define CFG_BOOTSZ	$${BOOT}" >> $(obj)include/config.h ; \
204357a12720STsiChungLiew	echo "#define CFG_DRAMSZ	$${RAM}" >> $(obj)include/config.h ; \
204457a12720STsiChungLiew	if [ "$${RAM1}" != "0" ] ; then \
204557a12720STsiChungLiew		echo "#define CFG_DRAMSZ1	$${RAM1}" >> $(obj)include/config.h ; \
204657a12720STsiChungLiew	fi; \
204757a12720STsiChungLiew	if [ "$${CODE}" != "0" ] ; then \
204857a12720STsiChungLiew		echo "#define CFG_NOR1SZ	$${CODE}" >> $(obj)include/config.h ; \
204957a12720STsiChungLiew	fi; \
205057a12720STsiChungLiew	if [ "$${VID}" == "1" ] ; then \
205157a12720STsiChungLiew		echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
205257a12720STsiChungLiew	fi; \
205357a12720STsiChungLiew	if [ "$${USB}" == "1" ] ; then \
205457a12720STsiChungLiew		echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
205557a12720STsiChungLiew	fi
205657a12720STsiChungLiew	@$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
205757a12720STsiChungLiew
2058699f0512SWolfgang DenkTASREG_config :		unconfig
2059699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
2060699f0512SWolfgang Denk
20617ebf7443Swdenk#########################################################################
2062f046ccd1SEran Liberty## MPC83xx Systems
2063f046ccd1SEran Liberty#########################################################################
2064f046ccd1SEran Liberty
20655c5d3242SKim PhillipsMPC8313ERDB_33_config \
2066e4c09508SScott WoodMPC8313ERDB_66_config \
2067e4c09508SScott WoodMPC8313ERDB_NAND_33_config \
2068e4c09508SScott WoodMPC8313ERDB_NAND_66_config: unconfig
2069cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2070e4c09508SScott Wood	@mkdir -p $(obj)board/freescale/mpc8313erdb
2071c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2072ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2073cdd917a4SWolfgang Denk		echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
20745c5d3242SKim Phillips	fi ; \
20755c5d3242SKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2076ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2077cdd917a4SWolfgang Denk		echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
2078e4c09508SScott Wood	fi ; \
2079e4c09508SScott Wood	if [ "$(findstring _NAND_,$@)" ] ; then \
2080e4c09508SScott Wood		$(XECHO) -n "...NAND..." ; \
2081f4e55a49SKim Phillips		echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
2082e4c09508SScott Wood		echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
20835c5d3242SKim Phillips	fi ;
2084e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
20855c5d3242SKim Phillips
20868bd522ceSDave LiuMPC8315ERDB_config: unconfig
20878bd522ceSDave Liu	@$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
20888bd522ceSDave Liu
20891c274c4eSKim PhillipsMPC8323ERDB_config:	unconfig
20901c274c4eSKim Phillips	@$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
20911c274c4eSKim Phillips
20924decd84eSKim PhillipsMPC832XEMDS_config \
20934decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
20944decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
2095281df457STony LiMPC832XEMDS_SLAVE_config \
2096281df457STony LiMPC832XEMDS_ATM_config:	unconfig
2097cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2098c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2099ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2100cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
21014decd84eSKim Phillips	fi ; \
21024decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2103ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2104cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2105cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
21064decd84eSKim Phillips	fi ; \
21074decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
2108ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2109cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2110281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
21114decd84eSKim Phillips	fi ; \
21124decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
2113ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2114cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2115281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2116281df457STony Li	fi ; \
2117281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2118ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2119281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2120281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
21214decd84eSKim Phillips	fi ;
2122e58fe957SKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
2123e6f2e902SMarian Balakowicz
2124991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
2125e58fe957SKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
2126991425feSMarian Balakowicz
21277a78f148STimur TabiMPC8349ITX_config \
21287a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
21297a78f148STimur TabiMPC8349ITXGP_config:	unconfig
21307a78f148STimur Tabi	@mkdir -p $(obj)include
2131e21659e3SSam Sparks	@mkdir -p $(obj)board/freescale/mpc8349itx
21327a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
21337a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
2134e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
21357a78f148STimur Tabi	fi
21367a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
2137e21659e3SSam Sparks		echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
21387a78f148STimur Tabi	fi
2139e58fe957SKim Phillips	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
21404decd84eSKim Phillips
21415f820439SDave LiuMPC8360EMDS_config \
21425f820439SDave LiuMPC8360EMDS_HOST_33_config \
21435f820439SDave LiuMPC8360EMDS_HOST_66_config \
2144281df457STony LiMPC8360EMDS_SLAVE_config \
2145281df457STony LiMPC8360EMDS_ATM_config: unconfig
2146cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2147c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2148ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
2149cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
21505f820439SDave Liu	fi ; \
21515f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
2152ae6d1056SWolfgang Denk		$(XECHO) "...PCI SLAVE 66M"  ; \
2153cdd917a4SWolfgang Denk		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2154cdd917a4SWolfgang Denk		echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
21555f820439SDave Liu	fi ; \
21565f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
2157ae6d1056SWolfgang Denk		$(XECHO) -n "...33M ..." ; \
2158cdd917a4SWolfgang Denk		echo "#define PCI_33M" >>$(obj)include/config.h ; \
2159281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
21605f820439SDave Liu	fi ; \
21615f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
2162ae6d1056SWolfgang Denk		$(XECHO) -n "...66M..." ; \
2163cdd917a4SWolfgang Denk		echo "#define PCI_66M" >>$(obj)include/config.h ; \
2164281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2165281df457STony Li	fi ; \
2166281df457STony Li	if [ "$(findstring _ATM_,$@)" ] ; then \
2167ae6d1056SWolfgang Denk		$(XECHO) -n "...ATM..." ; \
2168281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2169281df457STony Li		echo "#define CONFIG_PQ_MDS_PIB_ATM	1" >>$(obj)include/config.h ; \
21705f820439SDave Liu	fi ;
2171e58fe957SKim Phillips	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
21725f820439SDave Liu
2173fab6f556SAnton VorontsovMPC8360ERDK_33_config \
2174fab6f556SAnton VorontsovMPC8360ERDK_66_config \
217591c82076SJean-Christophe PLAGNIOL-VILLARDMPC8360ERDK_config:	unconfig
2176fab6f556SAnton Vorontsov	@mkdir -p $(obj)include
2177c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2178ae6d1056SWolfgang Denk		$(XECHO) -n "... CLKIN 33MHz " ; \
2179fab6f556SAnton Vorontsov		echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2180fab6f556SAnton Vorontsov	fi ;
2181fab6f556SAnton Vorontsov	@$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2182fab6f556SAnton Vorontsov
218319580e66SDave LiuMPC837XEMDS_config \
218419580e66SDave LiuMPC837XEMDS_HOST_config:	unconfig
218519580e66SDave Liu	@mkdir -p $(obj)include
2186c6fe4dabSWolfgang Denk	@if [ "$(findstring _HOST_,$@)" ] ; then \
2187ae6d1056SWolfgang Denk		$(XECHO) -n "... PCI HOST " ; \
218819580e66SDave Liu		echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
218919580e66SDave Liu	fi ;
219019580e66SDave Liu	@$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
219119580e66SDave Liu
21925e918a98SKim PhillipsMPC837XERDB_config:	unconfig
21935e918a98SKim Phillips	@$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
21945e918a98SKim Phillips
2195a1293e54SAndre SchwarzMVBLM7_config: unconfig
21961a9eeb78SAndre Schwarz	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mvblm7 matrix_vision
2197a1293e54SAndre Schwarz
219891e25769SPaul Gortmakersbc8349_config:		unconfig
219991e25769SPaul Gortmaker	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
220091e25769SPaul Gortmaker
22014decd84eSKim PhillipsTQM834x_config:	unconfig
22024677988cSWolfgang Grandegger	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x tqc
22034decd84eSKim Phillips
22042ad6b513STimur Tabi
2205f046ccd1SEran Liberty#########################################################################
220642d1f039Swdenk## MPC85xx Systems
220742d1f039Swdenk#########################################################################
220842d1f039Swdenk
22097bd6104bSrobert lazarskiATUM8548_config:	unconfig
22107bd6104bSrobert lazarski	@$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
22117bd6104bSrobert lazarski
22129490a7f1SKumar GalaMPC8536DS_config:       unconfig
22139490a7f1SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8536ds freescale
22149490a7f1SKumar Gala
221542d1f039SwdenkMPC8540ADS_config:	unconfig
2216c2d943ffSKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
221742d1f039Swdenk
2218b0e32949SLunsheng WangMPC8540EVAL_config \
2219b0e32949SLunsheng WangMPC8540EVAL_33_config \
2220b0e32949SLunsheng WangMPC8540EVAL_66_config \
2221b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
2222b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:	  unconfig
2223f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2224c6fe4dabSWolfgang Denk	@if [ "$(findstring _33_,$@)" ] ; then \
2225ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2226b0e32949SLunsheng Wang	else \
2227f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
2228ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2229b0e32949SLunsheng Wang	fi ; \
2230b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
2231f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
2232ae6d1056SWolfgang Denk		$(XECHO) " slave" ; \
2233b0e32949SLunsheng Wang	else \
2234ae6d1056SWolfgang Denk		$(XECHO) " host" ; \
2235b0e32949SLunsheng Wang	fi
2236f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
2237b0e32949SLunsheng Wang
223842d1f039SwdenkMPC8560ADS_config:	unconfig
2239870ceac5SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
224042d1f039Swdenk
22417f3f2bd2SRandy VinsonMPC8541CDS_legacy_config \
224203f5c550SwdenkMPC8541CDS_config:	unconfig
22437f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2244c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
22457f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2246ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
22477f3f2bd2SRandy Vinson	fi
2248415a613bSKumar Gala	@$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
224903f5c550Swdenk
225081f481caSAndy FlemingMPC8544DS_config:	unconfig
225181f481caSAndy Fleming	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
225281f481caSAndy Fleming
22537f3f2bd2SRandy VinsonMPC8548CDS_legacy_config \
2254d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
22557f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2256c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
22577f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2258ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
22597f3f2bd2SRandy Vinson	fi
2260415a613bSKumar Gala	@$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
2261d9b94f28SJon Loeliger
22627f3f2bd2SRandy VinsonMPC8555CDS_legacy_config \
226303f5c550SwdenkMPC8555CDS_config:	unconfig
22647f3f2bd2SRandy Vinson	@mkdir -p $(obj)include
2265c6fe4dabSWolfgang Denk	@if [ "$(findstring _legacy_,$@)" ] ; then \
22667f3f2bd2SRandy Vinson		echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
2267ae6d1056SWolfgang Denk		$(XECHO) "... legacy" ; \
22687f3f2bd2SRandy Vinson	fi
2269415a613bSKumar Gala	@$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
22707abf0c58Swdenk
227167431059SAndy FlemingMPC8568MDS_config:	unconfig
2272acbca876SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
227367431059SAndy Fleming
2274129ba616SKumar GalaMPC8572DS_config:       unconfig
2275129ba616SKumar Gala	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8572ds freescale
2276129ba616SKumar Gala
2277384cc687SwdenkPM854_config:	unconfig
2278f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
2279384cc687Swdenk
2280b20d0032SWolfgang DenkPM856_config:	unconfig
2281f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
2282b20d0032SWolfgang Denk
2283c15f3120Swdenksbc8540_config \
2284c15f3120Swdenksbc8540_33_config \
2285c15f3120Swdenksbc8540_66_config:	unconfig
2286f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2287c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2288f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2289ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
2290c15f3120Swdenk	else \
2291ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
2292c15f3120Swdenk	fi
2293f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
2294c15f3120Swdenk
229511c45ebdSJoe Hammansbc8548_config:		unconfig
229611c45ebdSJoe Hamman	@$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
229711c45ebdSJoe Hamman
2298466b7410Swdenksbc8560_config \
2299466b7410Swdenksbc8560_33_config \
2300466b7410Swdenksbc8560_66_config:	unconfig
2301f9328639SMarian Balakowicz	@mkdir -p $(obj)include
23028b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
2303f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
2304ae6d1056SWolfgang Denk		$(XECHO) "... 66 MHz PCI" ; \
23058b07a110Swdenk	else \
2306ae6d1056SWolfgang Denk		$(XECHO) "... 33 MHz PCI" ; \
23078b07a110Swdenk	fi
2308f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
23098b07a110Swdenk
23105d108ac8SSergei Poselenovsocrates_config:	unconfig
23115d108ac8SSergei Poselenov	@$(MKCONFIG) $(@:_config=) ppc mpc85xx socrates
23125d108ac8SSergei Poselenov
231303f5c550Swdenkstxgp3_config:		unconfig
2314f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
231503f5c550Swdenk
2316ee152983SWolfgang Denkstxssa_config		\
2317ee152983SWolfgang Denkstxssa_4M_config:	unconfig
2318ee152983SWolfgang Denk	@mkdir -p $(obj)include
2319ee152983SWolfgang Denk	@if [ "$(findstring _4M_,$@)" ] ; then \
2320ee152983SWolfgang Denk		echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
2321ae6d1056SWolfgang Denk		$(XECHO) "... with 4 MiB flash memory" ; \
2322ee152983SWolfgang Denk	fi
2323ee152983SWolfgang Denk	@$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
232435171dc0SDan Malek
2325d96f41e0SStefan RoeseTQM8540_config		\
2326d96f41e0SStefan RoeseTQM8541_config		\
23271287e0c5SWolfgang GrandeggerTQM8548_config		\
2328d96f41e0SStefan RoeseTQM8555_config		\
2329f5c5ef4aSwdenkTQM8560_config:		unconfig
2330f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2331a889bd27SWolfgang Denk	@CTYPE=$(subst TQM,,$(@:_config=)); \
2332ae6d1056SWolfgang Denk	$(XECHO) "... TQM"$${CTYPE}; \
2333f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2334f9328639SMarian Balakowicz	echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2335f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
233625991353SWolfgang Grandegger	echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h;
23374677988cSWolfgang Grandegger	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx tqc
2338f5c5ef4aSwdenk
233942d1f039Swdenk#########################################################################
2340debb7354SJon Loeliger## MPC86xx Systems
2341debb7354SJon Loeliger#########################################################################
2342debb7354SJon Loeliger
23433c89d754SJon LoeligerMPC8610HPCD_config:	unconfig
23443c89d754SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
23453c89d754SJon Loeliger
2346debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
23474ce91774SJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
2348debb7354SJon Loeliger
2349c646bba6SJoe Hammansbc8641d_config:	unconfig
235091c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
2351debb7354SJon Loeliger
2352debb7354SJon Loeliger#########################################################################
23537ebf7443Swdenk## 74xx/7xx Systems
23547ebf7443Swdenk#########################################################################
23557ebf7443Swdenk
2356c7de829cSwdenkAmigaOneG3SE_config:	unconfig
2357f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
2358c7de829cSwdenk
235915647dc7SwdenkBAB7xx_config: unconfig
2360f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
236115647dc7Swdenk
2362c419d1d6SstroeseCPCI750_config:	unconfig
2363f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
2364c419d1d6Sstroese
23653a473b2aSwdenkDB64360_config:	unconfig
2366f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
23673a473b2aSwdenk
23683a473b2aSwdenkDB64460_config:	unconfig
2369f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
23703a473b2aSwdenk
237115647dc7SwdenkELPPC_config: unconfig
2372f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
237315647dc7Swdenk
23747ebf7443SwdenkEVB64260_config	\
23757ebf7443SwdenkEVB64260_750CX_config:	unconfig
2376f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
23777ebf7443Swdenk
23784c52783bSroy zangmpc7448hpc2_config:  unconfig
23797f1d846eSJon Loeliger	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
23804c52783bSroy zang
238115647dc7SwdenkP3G4_config: unconfig
2382f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
23837ebf7443Swdenk
23841eac2a71SStefan Roesep3m750_config	\
23851eac2a71SStefan Roesep3m7448_config:		unconfig
23861eac2a71SStefan Roese	@mkdir -p $(obj)include
23871eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
23881eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
23891eac2a71SStefan Roese	else \
23901eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
23911eac2a71SStefan Roese	fi
23921eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
23931eac2a71SStefan Roese
23947ebf7443SwdenkPCIPPC2_config \
23957ebf7443SwdenkPCIPPC6_config: unconfig
2396f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
23977ebf7443Swdenk
2398f5e0d039SHeiko Schocherppmc7xx_config: unconfig
2399f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
2400f5e0d039SHeiko Schocher
2401699f0512SWolfgang DenkZUMA_config:	unconfig
2402699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
2403699f0512SWolfgang Denk
24047ebf7443Swdenk#========================================================================
24057ebf7443Swdenk# ARM
24067ebf7443Swdenk#========================================================================
24077ebf7443Swdenk#########################################################################
24087ebf7443Swdenk## StrongARM Systems
24097ebf7443Swdenk#########################################################################
24107ebf7443Swdenk
2411ea66bc88Swdenkassabet_config	:	unconfig
2412f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
2413ea66bc88Swdenk
24147ebf7443Swdenkdnp1110_config	:	unconfig
2415f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
24167ebf7443Swdenk
2417855a496fSwdenkgcplus_config	:	unconfig
2418f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
2419855a496fSwdenk
2420855a496fSwdenklart_config	:	unconfig
2421f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
2422855a496fSwdenk
24237ebf7443Swdenkshannon_config	:	unconfig
2424f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
24257ebf7443Swdenk
24267ebf7443Swdenk#########################################################################
24272e5983d2Swdenk## ARM92xT Systems
24287ebf7443Swdenk#########################################################################
24297ebf7443Swdenk
2430a4b46ed6SUlf Samuelsson#########################################################################
2431a4b46ed6SUlf Samuelsson## Atmel AT91RM9200 Systems
2432a4b46ed6SUlf Samuelsson#########################################################################
243320b197c6SStelian Pop
2434a85f9f21Swdenkat91rm9200dk_config	:	unconfig
243565230107SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
2436a85f9f21Swdenk
2437d99a8ff6SStelian Popat91sam9261ek_config	:	unconfig
24388ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9261ek atmel at91
2439d99a8ff6SStelian Pop
24408e429b3eSStelian Popat91sam9263ek_config	:	unconfig
24418ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9263ek atmel at91
24428e429b3eSStelian Pop
24432118ebb4SStelian Popat91sam9rlek_config	:	unconfig
24448ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9rlek atmel at91
24452118ebb4SStelian Pop
2446a85f9f21Swdenkcmc_pu2_config	:	unconfig
2447f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
2448a85f9f21Swdenk
2449645da510SWolfgang Denkcsb637_config	:	unconfig
2450f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
2451645da510SWolfgang Denk
2452a4b46ed6SUlf Samuelssonkb9202_config	:	unconfig
2453a4b46ed6SUlf Samuelsson	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2454a4b46ed6SUlf Samuelsson
2455ea8d989fSTimo Tuunainenm501sk_config	:	unconfig
2456ea8d989fSTimo Tuunainen	@$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
245787cb6862SWolfgang Denk
2458699f0512SWolfgang Denkmp2usb_config	:	unconfig
2459699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
2460699f0512SWolfgang Denk
2461a4b46ed6SUlf Samuelsson#########################################################################
2462a4b46ed6SUlf Samuelsson## Atmel ARM926EJ-S Systems
2463a4b46ed6SUlf Samuelsson#########################################################################
2464a4b46ed6SUlf Samuelsson
2465a4b46ed6SUlf Samuelssonat91cap9adk_config	:	unconfig
24668ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91
2467a4b46ed6SUlf Samuelsson
2468a4b46ed6SUlf Samuelssonat91sam9260ek_config	:	unconfig
24698ed2f5f9SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91
2470a4b46ed6SUlf Samuelsson
247174f4304eSWolfgang Denk########################################################################
247287cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
247387cb6862SWolfgang Denkintegratorap_config	\
247487cb6862SWolfgang Denkap_config		\
247587cb6862SWolfgang Denkap966_config		\
247687cb6862SWolfgang Denkap922_config		\
247787cb6862SWolfgang Denkap922_XA10_config	\
247887cb6862SWolfgang Denkap7_config		\
247987cb6862SWolfgang Denkap720t_config		\
248087cb6862SWolfgang Denkap920t_config		\
248187cb6862SWolfgang Denkap926ejs_config		\
248287cb6862SWolfgang Denkap946es_config: unconfig
248396782c63SWolfgang Denk	@board/integratorap/split_by_variant.sh $@
24843d3befa7Swdenk
248587cb6862SWolfgang Denkintegratorcp_config	\
248687cb6862SWolfgang Denkcp_config		\
248787cb6862SWolfgang Denkcp920t_config		\
248887cb6862SWolfgang Denkcp926ejs_config		\
248987cb6862SWolfgang Denkcp946es_config		\
249087cb6862SWolfgang Denkcp1136_config		\
249187cb6862SWolfgang Denkcp966_config		\
249287cb6862SWolfgang Denkcp922_config		\
249387cb6862SWolfgang Denkcp922_XA10_config	\
249487cb6862SWolfgang Denkcp1026_config: unconfig
249596782c63SWolfgang Denk	@board/integratorcp/split_by_variant.sh $@
249625d6712aSwdenk
2497699f0512SWolfgang Denkdavinci_dvevm_config :	unconfig
249889d51d02SHugo Villeneuve	@$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci
2499699f0512SWolfgang Denk
2500699f0512SWolfgang Denkdavinci_schmoogie_config :	unconfig
2501699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2502699f0512SWolfgang Denk
2503699f0512SWolfgang Denkdavinci_sffsdr_config :	unconfig
2504699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs sffsdr davinci davinci
2505699f0512SWolfgang Denk
2506699f0512SWolfgang Denkdavinci_sonata_config :	unconfig
2507699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2508699f0512SWolfgang Denk
2509f832d8a1Swdenklpd7a400_config \
2510f832d8a1Swdenklpd7a404_config:	unconfig
2511f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
25123d3befa7Swdenk
2513281e00a3Swdenkmx1ads_config	:	unconfig
2514f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
2515281e00a3Swdenk
2516281e00a3Swdenkmx1fs2_config	:	unconfig
2517f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
2518281e00a3Swdenk
2519ac7eb8a3SWolfgang Denknetstar_config:		unconfig
2520f4e7cbfcSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm925t netstar
2521ac7eb8a3SWolfgang Denk
25222e5983d2Swdenkomap1510inn_config :	unconfig
2523f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
25242e5983d2Swdenk
2525a4b46ed6SUlf Samuelssonxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2526a4b46ed6SUlf Samuelsson
252763e73c9aSwdenkomap1610inn_config \
252863e73c9aSwdenkomap1610inn_cs0boot_config \
252963e73c9aSwdenkomap1610inn_cs3boot_config \
25303ff02c27Swdenkomap1610inn_cs_autoboot_config \
253163e73c9aSwdenkomap1610h2_config \
253263e73c9aSwdenkomap1610h2_cs0boot_config \
25333ff02c27Swdenkomap1610h2_cs3boot_config \
25343ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
2535f9328639SMarian Balakowicz	@mkdir -p $(obj)include
253663e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2537cdd917a4SWolfgang Denk		echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
2538ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
25393ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
2540cdd917a4SWolfgang Denk		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
2541ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS_AUTO boot"; \
254263e73c9aSwdenk	else \
2543cdd917a4SWolfgang Denk		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2544ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
254563e73c9aSwdenk	fi;
2546f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
25476f21347dSwdenk
2548699f0512SWolfgang Denkomap5912osk_config :	unconfig
2549699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
2550699f0512SWolfgang Denk
2551a4b46ed6SUlf Samuelssonxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2552a4b46ed6SUlf Samuelsson
2553a56bd922Swdenkomap730p2_config \
2554a56bd922Swdenkomap730p2_cs0boot_config \
2555a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
2556f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2557a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
2558f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
2559ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS0 boot"; \
2560a56bd922Swdenk	else \
2561f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
2562ae6d1056SWolfgang Denk		$(XECHO) "... configured for CS3 boot"; \
2563a56bd922Swdenk	fi;
2564f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
2565a56bd922Swdenk
256632cb2c70SWolfgang Denksbc2410x_config: unconfig
2567f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
256832cb2c70SWolfgang Denk
2569281e00a3Swdenkscb9328_config	:	unconfig
2570f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
2571281e00a3Swdenk
25727ebf7443Swdenksmdk2400_config	:	unconfig
2573f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
25747ebf7443Swdenk
25757ebf7443Swdenksmdk2410_config	:	unconfig
2576f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
25777ebf7443Swdenk
25782d24a3a7SwdenkSX1_config :		unconfig
2579f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t sx1
25802d24a3a7Swdenk
2581b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
2582a4b46ed6SUlf Samuelssonxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2583a4b46ed6SUlf Samuelsson
258443d9616cSwdenktrab_config \
2585b0639ca3Swdenktrab_bigram_config \
2586b0639ca3Swdenktrab_bigflash_config \
2587f54ebdfaSwdenktrab_old_config:	unconfig
2588f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2589f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
2590b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
2591f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2592f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
2593ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
2594b0639ca3Swdenk		}
2595b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
2596f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2597f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2598ae6d1056SWolfgang Denk		  $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
2599f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2600b0639ca3Swdenk		}
2601f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
2602f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2603f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2604ae6d1056SWolfgang Denk		  $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
2605f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
260643d9616cSwdenk		}
2607f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
26087ebf7443Swdenk
26091cb8e980SwdenkVCMA9_config	:	unconfig
2610f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
26111cb8e980Swdenk
2612699f0512SWolfgang Denk#########################################################################
261387cb6862SWolfgang Denk# ARM supplied Versatile development boards
2614699f0512SWolfgang Denk#########################################################################
2615699f0512SWolfgang Denk
2616699f0512SWolfgang Denkcm4008_config	:	unconfig
2617699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2618699f0512SWolfgang Denk
2619699f0512SWolfgang Denkcm41xx_config	:	unconfig
2620699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2621699f0512SWolfgang Denk
262287cb6862SWolfgang Denkversatile_config	\
262387cb6862SWolfgang Denkversatileab_config	\
262487cb6862SWolfgang Denkversatilepb_config :	unconfig
262596782c63SWolfgang Denk	@board/versatile/split_by_variant.sh $@
2626074cff0dSwdenk
26273c2b3d45Swdenkvoiceblue_config:	unconfig
26284fedfddfSLadislav Michl	@$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
26293c2b3d45Swdenk
2630074cff0dSwdenk#########################################################################
2631074cff0dSwdenk## S3C44B0 Systems
2632074cff0dSwdenk#########################################################################
2633074cff0dSwdenk
2634074cff0dSwdenkB2_config	:	unconfig
2635f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2636074cff0dSwdenk
26377ebf7443Swdenk#########################################################################
26387ebf7443Swdenk## ARM720T Systems
26397ebf7443Swdenk#########################################################################
26407ebf7443Swdenk
2641c570b2fdSWolfgang Denkarmadillo_config:	unconfig
2642f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2643c570b2fdSWolfgang Denk
26447ebf7443Swdenkep7312_config	:	unconfig
2645f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
26467ebf7443Swdenk
26472d24a3a7Swdenkimpa7_config	:	unconfig
2648f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
26492d24a3a7Swdenk
26502d1a537dSwdenkmodnet50_config :	unconfig
2651f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
26522d1a537dSwdenk
265339539887Swdenkevb4510_config :	unconfig
2654f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
265539539887Swdenk
26566bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
2657b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2658b0d8f5bfSPeter Pearse
2659b0d8f5bfSPeter PearseSMN42_config	:	unconfig
2660b0d8f5bfSPeter Pearse	@$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
26616bd2447eSGary Jennejohn
26627ebf7443Swdenk#########################################################################
266343d9616cSwdenk## XScale Systems
26647ebf7443Swdenk#########################################################################
26657ebf7443Swdenk
2666799891efSMichael Schwingenactux1_config	:	unconfig
2667799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux1
2668799891efSMichael Schwingen
2669799891efSMichael Schwingenactux2_config	:	unconfig
2670799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux2
2671799891efSMichael Schwingen
2672799891efSMichael Schwingenactux3_config	:	unconfig
2673799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux3
2674799891efSMichael Schwingen
2675799891efSMichael Schwingenactux4_config	:	unconfig
2676799891efSMichael Schwingen	@$(MKCONFIG) $(@:_config=) arm ixp actux4
2677799891efSMichael Schwingen
2678fabd46acSwdenkcerf250_config :	unconfig
2679f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
2680fabd46acSwdenk
26817ebf7443Swdenkcradle_config	:	unconfig
2682f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
26837ebf7443Swdenk
26847ebf7443Swdenkcsb226_config	:	unconfig
2685f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
26867ebf7443Swdenk
268791c82076SJean-Christophe PLAGNIOL-VILLARDdelta_config :	unconfig
2688f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
26890be248faSWolfgang Denk
269043d9616cSwdenkinnokom_config	:	unconfig
2691f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
269243d9616cSwdenk
26932d5b561eSwdenkixdp425_config	:	unconfig
2694f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
26952d5b561eSwdenk
2696ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
2697f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2698ba94a1bbSWolfgang Denk
269943d9616cSwdenklubbock_config	:	unconfig
2700f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
270143d9616cSwdenk
27025720df78SHeiko Schocherpleb2_config	:	unconfig
2703f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
27045720df78SHeiko Schocher
270552f52c14Swdenklogodl_config	:	unconfig
2706f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
270752f52c14Swdenk
27089d8d5a5bSStefan Roesepdnb3_config \
27099d8d5a5bSStefan Roesescpu_config:	unconfig
2710cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
27119d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
2712cdd917a4SWolfgang Denk		echo "#define CONFIG_SCPU"	>>$(obj)include/config.h ; \
2713ae6d1056SWolfgang Denk		$(XECHO) "... on SCPU board variant" ; \
27149d8d5a5bSStefan Roese	fi
27159d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2716ba94a1bbSWolfgang Denk
2717f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
2718f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2719f57f70aaSWolfgang Denk
27205e5803e1Sstefano babictrizepsiv_config	:	unconfig
27215e5803e1Sstefano babic	@$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
27225e5803e1Sstefano babic
27233e38691eSwdenkwepep250_config	:	unconfig
2724f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
27253e38691eSwdenk
27264ec3a7f0Swdenkxaeniax_config	:	unconfig
2727f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
27284ec3a7f0Swdenk
2729efa329cbSwdenkxm250_config	:	unconfig
2730f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
2731efa329cbSwdenk
2732ca0e7748Swdenkxsengine_config :	unconfig
2733f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
2734ca0e7748Swdenk
2735e0269579SMarkus Klotzbücherzylonite_config :
2736f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
2737e0269579SMarkus Klotzbücher
27388ed96046Swdenk#########################################################################
27398ed96046Swdenk## ARM1136 Systems
27408ed96046Swdenk#########################################################################
27415ca9881aSPeter Pearse
27425ca9881aSPeter Pearseapollon_config		: unconfig
2743c6fe4dabSWolfgang Denk	@mkdir -p $(obj)include
2744f2302d44SStefan Roese	@mkdir -p $(obj)onenand_ipl/board/apollon
2745751b9b51SKyungmin Park	@echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
27465252ed95SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 apollon NULL omap24xx
2747751b9b51SKyungmin Park	@echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
27488ed96046Swdenk
2749caebc95bSSascha Hauerimx31_litekit_config	: unconfig
2750caebc95bSSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_litekit NULL mx31
2751caebc95bSSascha Hauer
27525ad86216SSascha Hauerimx31_phycore_config	: unconfig
27535ad86216SSascha Hauer	@$(MKCONFIG) $(@:_config=) arm arm1136 imx31_phycore NULL mx31
27545ad86216SSascha Hauer
2755b5dc9b30SGuennadi Liakhovetskimx31ads_config		: unconfig
2756f5acb9fdSJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) $(@:_config=) arm arm1136 mx31ads freescale mx31
2757b5dc9b30SGuennadi Liakhovetski
2758699f0512SWolfgang Denkomap2420h4_config	: unconfig
2759699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4 NULL omap24xx
2760699f0512SWolfgang Denk
2761*11edcfe2SGuennadi Liakhovetski#########################################################################
2762*11edcfe2SGuennadi Liakhovetski## ARM1176 Systems
2763*11edcfe2SGuennadi Liakhovetski#########################################################################
2764*11edcfe2SGuennadi Liakhovetskismdk6400_noUSB_config	\
2765*11edcfe2SGuennadi Liakhovetskismdk6400_config	:	unconfig
2766*11edcfe2SGuennadi Liakhovetski	@mkdir -p $(obj)include $(obj)board/samsung/smdk6400
2767*11edcfe2SGuennadi Liakhovetski	@mkdir -p $(obj)nand_spl/board/samsung/smdk6400
2768*11edcfe2SGuennadi Liakhovetski	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
2769*11edcfe2SGuennadi Liakhovetski	@if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then			\
2770*11edcfe2SGuennadi Liakhovetski		echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
2771*11edcfe2SGuennadi Liakhovetski		$(MKCONFIG) $(@:_config=) arm arm1176 smdk6400 samsung s3c64xx;		\
2772*11edcfe2SGuennadi Liakhovetski	else										\
2773*11edcfe2SGuennadi Liakhovetski		echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
2774*11edcfe2SGuennadi Liakhovetski		$(MKCONFIG) $(@:_noUSB_config=) arm arm1176 smdk6400 samsung s3c64xx;	\
2775*11edcfe2SGuennadi Liakhovetski	fi
2776*11edcfe2SGuennadi Liakhovetski	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
2777*11edcfe2SGuennadi Liakhovetski
27782262cfeeSwdenk#========================================================================
27792262cfeeSwdenk# i386
27802262cfeeSwdenk#========================================================================
27812262cfeeSwdenk#########################################################################
27822262cfeeSwdenk## AMD SC520 CDP
27832262cfeeSwdenk#########################################################################
27842262cfeeSwdenksc520_cdp_config	:	unconfig
2785f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
27862262cfeeSwdenk
27877a8e9bedSwdenksc520_spunk_config	:	unconfig
2788f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
27897a8e9bedSwdenk
27907a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
2791f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
27927a8e9bedSwdenk
279343d9616cSwdenk#========================================================================
279443d9616cSwdenk# MIPS
279543d9616cSwdenk#========================================================================
27967ebf7443Swdenk#########################################################################
279743d9616cSwdenk## MIPS32 4Kc
279843d9616cSwdenk#########################################################################
279943d9616cSwdenk
2800e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2801e0ac62d7Swdenk
2802e0ac62d7Swdenkincaip_100MHz_config	\
2803e0ac62d7Swdenkincaip_133MHz_config	\
2804e0ac62d7Swdenkincaip_150MHz_config	\
280543d9616cSwdenkincaip_config: unconfig
2806f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2807e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
2808f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2809ae6d1056SWolfgang Denk		  $(XECHO) "... with 100MHz system clock" ; \
2810e0ac62d7Swdenk		}
2811e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
2812f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2813ae6d1056SWolfgang Denk		  $(XECHO) "... with 133MHz system clock" ; \
2814e0ac62d7Swdenk		}
2815e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
2816f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2817ae6d1056SWolfgang Denk		  $(XECHO) "... with 150MHz system clock" ; \
2818e0ac62d7Swdenk		}
2819f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2820e0ac62d7Swdenk
2821f4863a7aSwdenktb0229_config: unconfig
2822f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
2823f4863a7aSwdenk
2824e0ac62d7Swdenk#########################################################################
282569459791Swdenk## MIPS32 AU1X00
282669459791Swdenk#########################################################################
2827699f0512SWolfgang Denk
282869459791Swdenkdbau1000_config		:	unconfig
2829f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2830210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
2831f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
283269459791Swdenk
283369459791Swdenkdbau1100_config		:	unconfig
2834f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2835210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
2836f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
283769459791Swdenk
283869459791Swdenkdbau1500_config		:	unconfig
2839f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2840210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
2841f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
284269459791Swdenk
2843ff36fd85Swdenkdbau1550_config		:	unconfig
2844f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2845210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2846f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2847ff36fd85Swdenk
2848ff36fd85Swdenkdbau1550_el_config	:	unconfig
2849f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2850210ed200SWolfgang Denk	@echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
2851f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2852ff36fd85Swdenk
28538a773983SShinya Kuribayashigth2_config		:	unconfig
28548a773983SShinya Kuribayashi	@mkdir -p $(obj)include
28558a773983SShinya Kuribayashi	@echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
28568a773983SShinya Kuribayashi	@$(MKCONFIG) -a gth2 mips mips gth2
28578a773983SShinya Kuribayashi
2858699f0512SWolfgang Denkpb1000_config		:	unconfig
2859699f0512SWolfgang Denk	@mkdir -p $(obj)include
2860699f0512SWolfgang Denk	@echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
2861699f0512SWolfgang Denk	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
2862699f0512SWolfgang Denk
28630764c164SVlad Lunguqemu_mips_config	: unconfig
28640764c164SVlad Lungu	@mkdir -p $(obj)include
2865210ed200SWolfgang Denk	@echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
28660764c164SVlad Lungu	@$(MKCONFIG) -a qemu-mips mips mips qemu-mips
28670764c164SVlad Lungu
286869459791Swdenk#########################################################################
2869e0ac62d7Swdenk## MIPS64 5Kc
2870e0ac62d7Swdenk#########################################################################
287143d9616cSwdenk
28723e38691eSwdenkpurple_config :		unconfig
2873f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
287443d9616cSwdenk
28754a551709Swdenk#========================================================================
28764a551709Swdenk# Nios
28774a551709Swdenk#========================================================================
28784a551709Swdenk#########################################################################
28794a551709Swdenk## Nios32
28804a551709Swdenk#########################################################################
28814a551709Swdenk
2882699f0512SWolfgang DenkADNPESC1_DNPEVA2_base_32_config	\
2883699f0512SWolfgang DenkADNPESC1_base_32_config		\
2884699f0512SWolfgang DenkADNPESC1_config: unconfig
2885699f0512SWolfgang Denk	@mkdir -p $(obj)include
2886699f0512SWolfgang Denk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
2887699f0512SWolfgang Denk		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2888699f0512SWolfgang Denk		  $(XECHO) "... DNP/EVA2 configuration" ; \
2889699f0512SWolfgang Denk		}
2890699f0512SWolfgang Denk	@[ -z "$(findstring _base_32,$@)" ] || \
2891699f0512SWolfgang Denk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2892699f0512SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration" ; \
2893699f0512SWolfgang Denk		}
2894699f0512SWolfgang Denk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2895699f0512SWolfgang Denk		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2896699f0512SWolfgang Denk		  $(XECHO) "... NIOS 'base_32' configuration (DEFAULT)" ; \
2897699f0512SWolfgang Denk		}
2898699f0512SWolfgang Denk	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2899699f0512SWolfgang Denk
2900c935d3bdSwdenkDK1C20_safe_32_config		\
2901c935d3bdSwdenkDK1C20_standard_32_config	\
29024a551709SwdenkDK1C20_config:	unconfig
2903f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2904c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2905f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2906ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
2907c935d3bdSwdenk		}
2908c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2909f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2910ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
2911c935d3bdSwdenk		}
2912c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
2913f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2914ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2915c935d3bdSwdenk		}
2916f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2917c935d3bdSwdenk
2918c935d3bdSwdenkDK1S10_safe_32_config		\
2919c935d3bdSwdenkDK1S10_standard_32_config	\
2920ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
2921c935d3bdSwdenkDK1S10_config:	unconfig
2922f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2923c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2924f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2925ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'safe_32' configuration" ; \
2926c935d3bdSwdenk		}
2927c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2928f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2929ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration" ; \
2930c935d3bdSwdenk		}
2931ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2932f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2933ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'mtx_ldk_20' configuration" ; \
2934ec4c544bSwdenk		}
2935c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
2936f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2937ae6d1056SWolfgang Denk		  $(XECHO) "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2938c935d3bdSwdenk		}
2939f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
29404a551709Swdenk
29415c952cf0Swdenk#########################################################################
29425c952cf0Swdenk## Nios-II
29435c952cf0Swdenk#########################################################################
29445c952cf0Swdenk
29459cc83378SScott McNuttEP1C20_config : unconfig
2946f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
29479cc83378SScott McNutt
29489cc83378SScott McNuttEP1S10_config : unconfig
2949f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
29509cc83378SScott McNutt
29519cc83378SScott McNuttEP1S40_config : unconfig
2952f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
29539cc83378SScott McNutt
29545c952cf0SwdenkPK1C20_config : unconfig
2955f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
29565c952cf0Swdenk
29575c952cf0SwdenkPCI5441_config : unconfig
2958f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
29594a551709Swdenk
2960507bbe3eSwdenk#========================================================================
2961507bbe3eSwdenk## Microblaze
2962699f0512SWolfgang Denk#========================================================================
2963507bbe3eSwdenk
2964cfc67116SMichal Simekml401_config:	unconfig
2965cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2966210ed200SWolfgang Denk	@echo "#define CONFIG_ML401 1" > $(obj)include/config.h
296790b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze ml401 xilinx
2968cfc67116SMichal Simek
2969699f0512SWolfgang Denksuzaku_config:	unconfig
2970699f0512SWolfgang Denk	@mkdir -p $(obj)include
2971699f0512SWolfgang Denk	@echo "#define CONFIG_SUZAKU 1" > $(obj)include/config.h
2972699f0512SWolfgang Denk	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2973699f0512SWolfgang Denk
297417980495SMichal Simekxupv2p_config:	unconfig
2975cdd917a4SWolfgang Denk	@mkdir -p $(obj)include
2976210ed200SWolfgang Denk	@echo "#define CONFIG_XUPV2P 1" > $(obj)include/config.h
297790b1b2d6SGrant Likely	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze xupv2p xilinx
297817980495SMichal Simek
297960fa72d6SMike Frysinger#========================================================================
298060fa72d6SMike Frysinger# Blackfin
298160fa72d6SMike Frysinger#========================================================================
29820afe519aSWolfgang Denk
298360fa72d6SMike Frysinger# Analog Devices boards
298460fa72d6SMike FrysingerBFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit
29850afe519aSWolfgang Denk
298660fa72d6SMike Frysinger$(BFIN_BOARDS:%=%_config)	: unconfig
29879171fc81SMike Frysinger	@$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
298826bf7decSAubrey Li
298960fa72d6SMike Frysinger$(BFIN_BOARDS):
299060fa72d6SMike Frysinger	$(MAKE) $@_config
299160fa72d6SMike Frysinger	$(MAKE)
29920afe519aSWolfgang Denk
29935e3b0bc1SHaavard Skinnemoen#========================================================================
29945e3b0bc1SHaavard Skinnemoen# AVR32
29955e3b0bc1SHaavard Skinnemoen#========================================================================
2996699f0512SWolfgang Denk
2997699f0512SWolfgang Denkatngw100_config	:	unconfig
2998699f0512SWolfgang Denk	@$(MKCONFIG) $(@:_config=) avr32 at32ap atngw100 atmel at32ap700x
29995e3b0bc1SHaavard Skinnemoen
30005e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
300136f28f8aSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
30025e3b0bc1SHaavard Skinnemoen
3003667568dbSHaavard Skinnemoenatstk1003_config	:	unconfig
3004667568dbSHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
3005667568dbSHaavard Skinnemoen
300664ff2357SHaavard Skinnemoenatstk1004_config	:	unconfig
300764ff2357SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
30080afe519aSWolfgang Denk
30090a2e4879SHaavard Skinnemoenatstk1006_config	:	unconfig
30100a2e4879SHaavard Skinnemoen	@$(MKCONFIG) $(@:_config=) avr32 at32ap atstk1000 atmel at32ap700x
30110a2e4879SHaavard Skinnemoen
30120eb5717aSHans-Christian Egtvedtfavr-32-ezkit_config	:	unconfig
30130eb5717aSHans-Christian Egtvedt	@$(MKCONFIG) $(@:_config=) avr32 at32ap favr-32-ezkit earthlcd at32ap700x
30140eb5717aSHans-Christian Egtvedt
30155c374c9eSJulien Mayhammerhead_config	:	unconfig
30165c374c9eSJulien May	@$(MKCONFIG) $(@:_config=) avr32 at32ap hammerhead miromico at32ap700x
30175c374c9eSJulien May
301813b50fe3SMark Jacksonmimc200_config		:	unconfig
301913b50fe3SMark Jackson	@$(MKCONFIG) $(@:_config=) avr32 at32ap mimc200 mimc at32ap700x
302013b50fe3SMark Jackson
3021699f0512SWolfgang Denk#========================================================================
3022699f0512SWolfgang Denk# SH3 (SuperH)
3023699f0512SWolfgang Denk#========================================================================
30247ebf7443Swdenk
302569df3c4dSNobuhiro Iwamatsu#########################################################################
3026b2b5e2bbSYoshihiro Shimoda## sh3 (Renesas SuperH)
3027b2b5e2bbSYoshihiro Shimoda#########################################################################
3028699f0512SWolfgang Denk
30293313e0e2SMark Jonasmpr2_config: unconfig
30303ab4827cSWolfgang Denk	@mkdir -p $(obj)include
30313ab4827cSWolfgang Denk	@echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
30323313e0e2SMark Jonas	@$(MKCONFIG) -a $(@:_config=) sh sh3 mpr2
30333313e0e2SMark Jonas
3034b2b5e2bbSYoshihiro Shimodams7720se_config: unconfig
30353ab4827cSWolfgang Denk	@mkdir -p $(obj)include
30363ab4827cSWolfgang Denk	@echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
303791c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh3 ms7720se
3038b2b5e2bbSYoshihiro Shimoda
3039b2b5e2bbSYoshihiro Shimoda#########################################################################
304069df3c4dSNobuhiro Iwamatsu## sh4 (Renesas SuperH)
304169df3c4dSNobuhiro Iwamatsu#########################################################################
3042699f0512SWolfgang Denk
3043699f0512SWolfgang DenkMigoR_config :       unconfig
3044699f0512SWolfgang Denk	@mkdir -p $(obj)include
3045699f0512SWolfgang Denk	@echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
3046699f0512SWolfgang Denk	@./mkconfig -a $(@:_config=) sh sh4 MigoR
3047699f0512SWolfgang Denk
304869df3c4dSNobuhiro Iwamatsums7750se_config: unconfig
30493ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3050210ed200SWolfgang Denk	@echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
305191c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7750se
305269df3c4dSNobuhiro Iwamatsu
3053d91ea45dSNobuhiro Iwamatsums7722se_config :	unconfig
30543ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3055210ed200SWolfgang Denk	@echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
305691c82076SJean-Christophe PLAGNIOL-VILLARD	@$(MKCONFIG) -a $(@:_config=) sh sh4 ms7722se
30577a8e9bedSwdenk
3058699f0512SWolfgang Denkr2dplus_config  :   unconfig
30593ab4827cSWolfgang Denk	@mkdir -p $(obj)include
3060699f0512SWolfgang Denk	@echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
3061699f0512SWolfgang Denk	@./mkconfig -a $(@:_config=) sh sh4 r2dplus
3062c2042f59Sgoda.yusuke
3063c133c1fbSYusuke Godar7780mp_config: unconfig
30643ab4827cSWolfgang Denk	@mkdir -p $(obj)include
30653ab4827cSWolfgang Denk	@echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
3066c133c1fbSYusuke Goda	@./mkconfig -a $(@:_config=) sh sh4 r7780mp
3067c133c1fbSYusuke Goda
30687faddaecSNobuhiro Iwamatsush7763rdp_config  :   unconfig
30693ab4827cSWolfgang Denk	@mkdir -p $(obj)include
30703ab4827cSWolfgang Denk	@echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
30717faddaecSNobuhiro Iwamatsu	@./mkconfig -a $(@:_config=) sh sh4 sh7763rdp
30727faddaecSNobuhiro Iwamatsu
3073c2f02da2SDaniel Hellstrom#========================================================================
3074c2f02da2SDaniel Hellstrom# SPARC
3075c2f02da2SDaniel Hellstrom#========================================================================
3076699f0512SWolfgang Denk
30771e9a164eSDaniel Hellstrom#########################################################################
30781e9a164eSDaniel Hellstrom## LEON3
30791e9a164eSDaniel Hellstrom#########################################################################
3080c2f02da2SDaniel Hellstrom
308171d7e4c0SDaniel Hellstrom# Gaisler GR-XC3S-1500 board
308271d7e4c0SDaniel Hellstromgr_xc3s_1500_config : unconfig
308371d7e4c0SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_xc3s_1500 gaisler
308471d7e4c0SDaniel Hellstrom
30856ed8a43aSDaniel Hellstrom# Gaisler GR-CPCI-AX2000 board, a General purpose FPGA-AX system
30866ed8a43aSDaniel Hellstromgr_cpci_ax2000_config : unconfig
30876ed8a43aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_cpci_ax2000 gaisler
30886ed8a43aSDaniel Hellstrom
30896940383dSDaniel Hellstrom# Gaisler GRLIB template design (GPL SPARC/LEON3) for Altera NIOS
30906940383dSDaniel Hellstrom# Development board Stratix II edition, FPGA Device EP2S60.
30916940383dSDaniel Hellstromgr_ep2s60_config: unconfig
30926940383dSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 gr_ep2s60 gaisler
30936940383dSDaniel Hellstrom
3094823edd8aSDaniel Hellstrom# Gaisler LEON3 GRSIM simulator
3095823edd8aSDaniel Hellstromgrsim_config : unconfig
3096823edd8aSDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon3 grsim gaisler
3097823edd8aSDaniel Hellstrom
30987ebf7443Swdenk#########################################################################
3099b330990cSDaniel Hellstrom## LEON2
3100b330990cSDaniel Hellstrom#########################################################################
3101b330990cSDaniel Hellstrom
3102ab68f921SDaniel Hellstrom# Gaisler LEON2 GRSIM simulator
3103ab68f921SDaniel Hellstromgrsim_leon2_config : unconfig
3104ab68f921SDaniel Hellstrom	@$(MKCONFIG) $(@:_config=) sparc leon2 grsim_leon2 gaisler
3105ab68f921SDaniel Hellstrom
31067ebf7443Swdenk#########################################################################
31077ebf7443Swdenk#########################################################################
31087ebf7443Swdenk#########################################################################
310985ec0bccSwdenk
31103e38691eSwdenkclean:
3111f9301e1cSWolfgang Denk	@rm -f $(obj)examples/82559_eeprom $(obj)examples/eepro100_eeprom \
3112f9301e1cSWolfgang Denk	       $(obj)examples/hello_world  $(obj)examples/interrupt	  \
3113f9301e1cSWolfgang Denk	       $(obj)examples/mem_to_mem_idma2intr			  \
3114f9301e1cSWolfgang Denk	       $(obj)examples/sched	   $(obj)examples/smc91111_eeprom \
3115f9301e1cSWolfgang Denk	       $(obj)examples/test_burst   $(obj)examples/timer
3116f9301e1cSWolfgang Denk	@rm -f $(obj)tools/bmp_logo	   $(obj)tools/easylogo/easylogo  \
3117f9301e1cSWolfgang Denk	       $(obj)tools/env/{fw_printenv,fw_setenv}			  \
3118f9301e1cSWolfgang Denk	       $(obj)tools/envcrc					  \
3119f9301e1cSWolfgang Denk	       $(obj)tools/gdb/{astest,gdbcont,gdbsend}			  \
3120f9301e1cSWolfgang Denk	       $(obj)tools/gen_eth_addr    $(obj)tools/img2srec		  \
3121f9301e1cSWolfgang Denk	       $(obj)tools/mkimage	   $(obj)tools/mpc86x_clk	  \
3122f9301e1cSWolfgang Denk	       $(obj)tools/ncb		   $(obj)tools/ubsha1
3123f9301e1cSWolfgang Denk	@rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image}	  \
3124f9301e1cSWolfgang Denk	       $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin}	  \
3125f9301e1cSWolfgang Denk	       $(obj)board/trab/trab_fkt   $(obj)board/voiceblue/eeprom   \
3126f9301e1cSWolfgang Denk	       $(obj)board/{integratorap,integratorcp}/u-boot.lds	  \
31279171fc81SMike Frysinger	       $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \
31289171fc81SMike Frysinger	       $(obj)cpu/blackfin/bootrom-asm-offsets.[chs]
3129dc7746d8SWolfgang Denk	@rm -f $(obj)include/bmp_logo.h
3130dc7746d8SWolfgang Denk	@rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
31311bb707c3SKyungmin Park	@rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl-2k.bin,ipl-4k.bin,ipl.map}
3132f9301e1cSWolfgang Denk	@rm -f $(obj)api_examples/demo $(VERSION_FILE)
3133ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \
31347ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
31357ebf7443Swdenk		-o -name '*.o'	-o -name '*.a'	\) -print \
31367ebf7443Swdenk		| xargs rm -f
31377ebf7443Swdenk
31387ebf7443Swdenkclobber:	clean
3139ae6d1056SWolfgang Denk	@find $(OBJTREE) -type f \( -name .depend \
31404c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
31414c0d4c3bSwdenk		-print0 \
31424c0d4c3bSwdenk		| xargs -0 rm -f
3143ffda586fSLi Yang	@rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
31445013c09fSWolfgang Denk		$(obj)cscope.* $(obj)*.*~
3145ae6d1056SWolfgang Denk	@rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
3146766529fcSBartlomiej Sieka	@rm -f $(obj)tools/{crc32.c,environment.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
314789cdab78SMike Frysinger	@rm -f $(obj)tools/{image.c,fdt.c,fdt_ro.c,fdt_rw.c,fdt_strerror.c,zlib.h}
31487e492d82SMarian Balakowicz	@rm -f $(obj)tools/{fdt_wip.c,libfdt_internal.h}
31495013c09fSWolfgang Denk	@rm -f $(obj)cpu/mpc824x/bedbug_603e.c
3150ae6d1056SWolfgang Denk	@rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
3151a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3152a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
3153a958b663SJean-Christophe PLAGNIOL-VILLARD	@[ ! -d $(obj)api_examples ] || find $(obj)api_examples -name "*" -type l -print | xargs rm -f
31547ebf7443Swdenk
3155f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
31567ebf7443Swdenkmrproper \
31577ebf7443Swdenkdistclean:	clobber unconfig
3158f9328639SMarian Balakowiczelse
3159f9328639SMarian Balakowiczmrproper \
3160f9328639SMarian Balakowiczdistclean:	clobber unconfig
3161ae6d1056SWolfgang Denk	rm -rf $(obj)*
3162f9328639SMarian Balakowiczendif
31637ebf7443Swdenk
31647ebf7443Swdenkbackup:
31657ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
31667ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
31677ebf7443Swdenk
31687ebf7443Swdenk#########################################################################
3169