xref: /openbmc/u-boot/Makefile (revision f93286397ed2a7084efb0362a43ee09f11702349)
17ebf7443Swdenk#
2881a87ecSWolfgang Denk# (C) Copyright 2000-2006
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
25881a87ecSWolfgang DenkPATCHLEVEL = 1
26881a87ecSWolfgang DenkSUBLEVEL = 4
27881a87ecSWolfgang DenkEXTRAVERSION =
28881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29*f9328639SMarian 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/ \
377ebf7443Swdenk	    -e s/macppc/ppc/)
387ebf7443Swdenk
39f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
407ebf7443Swdenk	    sed -e 's/\(cygwin\).*/cygwin/')
417ebf7443Swdenk
42f9d77ed3SWolfgang Denkexport	HOSTARCH HOSTOS
437ebf7443Swdenk
447ebf7443Swdenk# Deal with colliding definitions from tcsh etc.
457ebf7443SwdenkVENDOR=
467ebf7443Swdenk
477ebf7443Swdenk#########################################################################
48*f9328639SMarian Balakowicz#
49*f9328639SMarian Balakowicz# U-boot build supports producing a object files to the separate external
50*f9328639SMarian Balakowicz# directory. Two use cases are supported:
51*f9328639SMarian Balakowicz#
52*f9328639SMarian Balakowicz# 1) Add O= to the make command line
53*f9328639SMarian Balakowicz# 'make O=/tmp/build all'
54*f9328639SMarian Balakowicz#
55*f9328639SMarian Balakowicz# 2) Set environement variable BUILD_DIR to point to the desired location
56*f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
57*f9328639SMarian Balakowicz# 'make'
58*f9328639SMarian Balakowicz#
59*f9328639SMarian Balakowicz# The second approach can also be used with a MAKEALL script
60*f9328639SMarian Balakowicz# 'export BUILD_DIR=/tmp/build'
61*f9328639SMarian Balakowicz# './MAKEALL'
62*f9328639SMarian Balakowicz#
63*f9328639SMarian Balakowicz# Command line 'O=' setting overrides BUILD_DIR environent variable.
64*f9328639SMarian Balakowicz#
65*f9328639SMarian Balakowicz# When none of the above methods is used the local build is performed and
66*f9328639SMarian Balakowicz# the object files are placed in the source directory.
67*f9328639SMarian Balakowicz#
687ebf7443Swdenk
69*f9328639SMarian Balakowiczifdef O
70*f9328639SMarian Balakowiczifeq ("$(origin O)", "command line")
71*f9328639SMarian BalakowiczBUILD_DIR := $(O)
72*f9328639SMarian Balakowiczendif
73*f9328639SMarian Balakowiczendif
747ebf7443Swdenk
75*f9328639SMarian Balakowiczifneq ($(BUILD_DIR),)
76*f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR)
77*f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
78*f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
79*f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),)
80*f9328639SMarian Balakowicz
81*f9328639SMarian BalakowiczOBJTREE		:= $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
82*f9328639SMarian BalakowiczSRCTREE		:= $(CURDIR)
83*f9328639SMarian BalakowiczTOPDIR		:= $(SRCTREE)
84*f9328639SMarian BalakowiczLNDIR		:= $(OBJTREE)
85*f9328639SMarian Balakowiczexport	TOPDIR SRCTREE OBJTREE
86*f9328639SMarian Balakowicz
87*f9328639SMarian BalakowiczMKCONFIG	:= $(SRCTREE)/mkconfig
88*f9328639SMarian Balakowiczexport MKCONFIG
89*f9328639SMarian Balakowicz
90*f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
91*f9328639SMarian BalakowiczREMOTE_BUILD 	:= 1
92*f9328639SMarian Balakowiczexport REMOTE_BUILD
93*f9328639SMarian Balakowiczendif
94*f9328639SMarian Balakowicz
95*f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile
96*f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for
97*f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc.
98*f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
99*f9328639SMarian Balakowiczobj := $(OBJTREE)/
100*f9328639SMarian Balakowiczsrc := $(SRCTREE)/
101*f9328639SMarian Balakowiczelse
102*f9328639SMarian Balakowiczobj :=
103*f9328639SMarian Balakowiczsrc :=
104*f9328639SMarian Balakowiczendif
105*f9328639SMarian Balakowiczexport obj src
106*f9328639SMarian Balakowicz
107*f9328639SMarian Balakowicz#########################################################################
108*f9328639SMarian Balakowicz
109*f9328639SMarian Balakowiczifeq ($(OBJTREE)/include/config.mk,$(wildcard $(OBJTREE)/include/config.mk))
110*f9328639SMarian Balakowicz
1117ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
112*f9328639SMarian Balakowiczinclude $(OBJTREE)/include/config.mk
1131d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
114*f9328639SMarian Balakowicz
1157ebf7443Swdenkifndef CROSS_COMPILE
1167ebf7443Swdenkifeq ($(HOSTARCH),ppc)
1177ebf7443SwdenkCROSS_COMPILE =
1187ebf7443Swdenkelse
1197ebf7443Swdenkifeq ($(ARCH),ppc)
120f046ccd1SEran LibertyCROSS_COMPILE = powerpc-linux-
1217ebf7443Swdenkendif
1227ebf7443Swdenkifeq ($(ARCH),arm)
123dc7c9a1aSwdenkCROSS_COMPILE = arm-linux-
1247ebf7443Swdenkendif
1252262cfeeSwdenkifeq ($(ARCH),i386)
1267a8e9bedSwdenkifeq ($(HOSTARCH),i386)
1277a8e9bedSwdenkCROSS_COMPILE =
1287a8e9bedSwdenkelse
1297a8e9bedSwdenkCROSS_COMPILE = i386-linux-
1307a8e9bedSwdenkendif
1312262cfeeSwdenkendif
13243d9616cSwdenkifeq ($(ARCH),mips)
13343d9616cSwdenkCROSS_COMPILE = mips_4KC-
13443d9616cSwdenkendif
1354a551709Swdenkifeq ($(ARCH),nios)
1364a551709SwdenkCROSS_COMPILE = nios-elf-
1374a551709Swdenkendif
1385c952cf0Swdenkifeq ($(ARCH),nios2)
1395c952cf0SwdenkCROSS_COMPILE = nios2-elf-
1405c952cf0Swdenkendif
1414e5ca3ebSwdenkifeq ($(ARCH),m68k)
1424e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
1434e5ca3ebSwdenkendif
144507bbe3eSwdenkifeq ($(ARCH),microblaze)
145507bbe3eSwdenkCROSS_COMPILE = mb-
146507bbe3eSwdenkendif
1470afe519aSWolfgang Denkifeq ($(ARCH),blackfin)
1480afe519aSWolfgang DenkCROSS_COMPILE = bfin-elf-
1490afe519aSWolfgang Denkendif
1507ebf7443Swdenkendif
1517ebf7443Swdenkendif
1527ebf7443Swdenk
1537ebf7443Swdenkexport	CROSS_COMPILE
1547ebf7443Swdenk
15592b197f0SWolfgang Denk# load other configuration
15692b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk
15792b197f0SWolfgang Denk
1587ebf7443Swdenk#########################################################################
1597ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
1607ebf7443Swdenk
1617ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
1622262cfeeSwdenkifeq ($(CPU),i386)
1632262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
1642262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o
1652262cfeeSwdenkendif
1667ebf7443Swdenkifeq ($(CPU),ppc4xx)
1677ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
1687ebf7443Swdenkendif
169f046ccd1SEran Libertyifeq ($(CPU),mpc83xx)
170f046ccd1SEran LibertyOBJS += cpu/$(CPU)/resetvec.o
171f046ccd1SEran Libertyendif
17242d1f039Swdenkifeq ($(CPU),mpc85xx)
17342d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
17442d1f039Swdenkendif
1750afe519aSWolfgang Denkifeq ($(CPU),bf533)
1760afe519aSWolfgang DenkOBJS += cpu/$(CPU)/start1.o	cpu/$(CPU)/interrupt.o	cpu/$(CPU)/cache.o
1770afe519aSWolfgang DenkOBJS += cpu/$(CPU)/cplbhdlr.o	cpu/$(CPU)/cplbmgr.o	cpu/$(CPU)/flush.o
1780afe519aSWolfgang Denkendif
1797ebf7443Swdenk
180*f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS))
181*f9328639SMarian Balakowicz
1829fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
1839fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a
1847ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
1851d9f4105Swdenkifdef SOC
1861d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
1871d9f4105Swdenkendif
1887ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
189518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
190c419d1d6Sstroese	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
1917ebf7443SwdenkLIBS += net/libnet.a
1927ebf7443SwdenkLIBS += disk/libdisk.a
1937ebf7443SwdenkLIBS += rtc/librtc.a
1947ebf7443SwdenkLIBS += dtt/libdtt.a
1957ebf7443SwdenkLIBS += drivers/libdrivers.a
1966db39708SMarian BalakowiczLIBS += drivers/nand/libnand.a
1976db39708SMarian BalakowiczLIBS += drivers/nand_legacy/libnand_legacy.a
1987152b1d0SwdenkLIBS += drivers/sk98lin/libsk98lin.a
1997ebf7443SwdenkLIBS += post/libpost.a post/cpu/libcpu.a
2007ebf7443SwdenkLIBS += common/libcommon.a
201038ccac5SBartlomiej SiekaLIBS += $(BOARDLIBS)
202*f9328639SMarian Balakowicz
203*f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS))
2049fd5e31fSwdenk.PHONY : $(LIBS)
205a8c7c708Swdenk
2064f7cb08eSwdenk# Add GCC lib
2071a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
2083d3befa7Swdenk
209a8c7c708Swdenk# The "tools" are needed early, so put this first
210a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
211a8c7c708SwdenkSUBDIRS	= tools \
212a8c7c708Swdenk	  examples \
213a8c7c708Swdenk	  post \
214a8c7c708Swdenk	  post/cpu
215b028f715Swdenk.PHONY : $(SUBDIRS)
216a8c7c708Swdenk
217*f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS))
218*f9328639SMarian Balakowicz__LIBS := $(subst $(obj),,$(LIBS))
219*f9328639SMarian Balakowicz
2207ebf7443Swdenk#########################################################################
221bdccc4feSwdenk#########################################################################
2227ebf7443Swdenk
223*f9328639SMarian BalakowiczALL = $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map
2247ebf7443Swdenk
225bdccc4feSwdenkall:		$(ALL)
2267ebf7443Swdenk
227*f9328639SMarian Balakowicz$(obj)u-boot.hex:	$(obj)u-boot
2286310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
2296310eb9dSwdenk
230*f9328639SMarian Balakowicz$(obj)u-boot.srec:	$(obj)u-boot
2317ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
2327ebf7443Swdenk
233*f9328639SMarian Balakowicz$(obj)u-boot.bin:	$(obj)u-boot
2347ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
2357ebf7443Swdenk
236*f9328639SMarian Balakowicz$(obj)u-boot.img:	$(obj)u-boot.bin
237bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
238bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
239881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
240bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
241bdccc4feSwdenk		-d $< $@
242bdccc4feSwdenk
243*f9328639SMarian Balakowicz$(obj)u-boot.dis:	$(obj)u-boot
2447ebf7443Swdenk		$(OBJDUMP) -d $< > $@
2457ebf7443Swdenk
246*f9328639SMarian Balakowicz$(obj)u-boot:		depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
2478bde7f77Swdenk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
248*f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
249*f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
250b2184c31Swdenk			-Map u-boot.map -o u-boot
2517ebf7443Swdenk
252*f9328639SMarian Balakowicz$(OBJS):
253*f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
254*f9328639SMarian Balakowicz
255a8c7c708Swdenk$(LIBS):
256*f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
257a8c7c708Swdenk
258a8c7c708Swdenk$(SUBDIRS):
259b028f715Swdenk		$(MAKE) -C $@ all
2607ebf7443Swdenk
261881a87ecSWolfgang Denkversion:
262881a87ecSWolfgang Denk		@echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
263881a87ecSWolfgang Denk		echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
264881a87ecSWolfgang Denk		echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
265881a87ecSWolfgang Denk			 $(TOPDIR)) >> $(VERSION_FILE); \
266881a87ecSWolfgang Denk		echo "\"" >> $(VERSION_FILE)
267881a87ecSWolfgang Denk
2688f713fdfSdzugdbtools:
269*f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
270*f9328639SMarian Balakowicz
271*f9328639SMarian Balakowiczupdater:
272*f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
273*f9328639SMarian Balakowicz
274*f9328639SMarian Balakowiczenv:
275*f9328639SMarian Balakowicz		$(MAKE) -C tools/env all || exit 1
2768f713fdfSdzu
2777ebf7443Swdenkdepend dep:
278*f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
2797ebf7443Swdenk
280*f9328639SMarian Balakowicztags ctags:
281*f9328639SMarian Balakowicz		ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) include \
282bda6c8aeSwdenk				lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
283bda6c8aeSwdenk				fs/cramfs fs/fat fs/fdos fs/jffs2 \
284bda6c8aeSwdenk				net disk rtc dtt drivers drivers/sk98lin common \
2857ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
2867ebf7443Swdenk
2877ebf7443Swdenketags:
288*f9328639SMarian Balakowicz		etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) include \
289eedcd078Swdenk				lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
290eedcd078Swdenk				fs/cramfs fs/fat fs/fdos fs/jffs2 \
291eedcd078Swdenk				net disk rtc dtt drivers drivers/sk98lin common \
2927ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
2937ebf7443Swdenk
294*f9328639SMarian Balakowicz$(obj)System.map:	$(obj)u-boot
2957ebf7443Swdenk		@$(NM) $< | \
2967ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
297*f9328639SMarian Balakowicz		sort > $(obj)System.map
2987ebf7443Swdenk
2997ebf7443Swdenk#########################################################################
3007ebf7443Swdenkelse
301*f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
302*f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
303*f9328639SMarian Balakowicz$(SUBDIRS) version gdbtools updater env depend \
304*f9328639SMarian Balakowiczdep tags ctags etags $(obj)System.map:
3057ebf7443Swdenk	@echo "System not configured - see README" >&2
3067ebf7443Swdenk	@ exit 1
3077ebf7443Swdenkendif
3087ebf7443Swdenk
3097ebf7443Swdenk#########################################################################
3107ebf7443Swdenk
3117ebf7443Swdenkunconfig:
312*f9328639SMarian Balakowicz	@rm -f $(obj)include/config.h $(obj)include/config.mk $(obj)board/*/config.tmp
3137ebf7443Swdenk
3147ebf7443Swdenk#========================================================================
3157ebf7443Swdenk# PowerPC
3167ebf7443Swdenk#========================================================================
3170db5bca8Swdenk
3180db5bca8Swdenk#########################################################################
3190db5bca8Swdenk## MPC5xx Systems
3200db5bca8Swdenk#########################################################################
3210db5bca8Swdenk
3225e5f9ed2Swdenkcanmb_config:	unconfig
323*f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
3245e5f9ed2Swdenk
3250db5bca8Swdenkcmi_mpc5xx_config:	unconfig
326*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
3270db5bca8Swdenk
328b6e4c403SwdenkPATI_config:		unconfig
329*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
330b6e4c403Swdenk
3317ebf7443Swdenk#########################################################################
332945af8d7Swdenk## MPC5xxx Systems
333945af8d7Swdenk#########################################################################
334a87589daSwdenk
335dafba16eSWolfgang Denkaev_config: unconfig
336*f9328639SMarian Balakowicz	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
337dafba16eSWolfgang Denk
3386ca24c64Sdzu@denx.deBC3450_config:	unconfig
339*f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
3406ca24c64Sdzu@denx.de
3415e4b3361SStefan Roesecpci5200_config:  unconfig
342*f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
3435e4b3361SStefan Roese
344a87589daSwdenkhmi1001_config:         unconfig
345*f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
346a87589daSwdenk
347e35745bbSwdenkLite5200_config				\
348e35745bbSwdenkLite5200_LOWBOOT_config			\
349e35745bbSwdenkLite5200_LOWBOOT08_config		\
350e35745bbSwdenkicecube_5200_config			\
351e35745bbSwdenkicecube_5200_LOWBOOT_config		\
352e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
353b2001f27Swdenkicecube_5200_DDR_config 		\
35479d696fcSwdenkicecube_5200_DDR_LOWBOOT_config 	\
35579d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
356e35745bbSwdenkicecube_5100_config:			unconfig
357*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
358*f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
359*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
36017d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
36117d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
362*f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
363*f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
36417d704ebSwdenk		  fi ; \
3655cf9da48Swdenk		  echo "... with LOWBOOT configuration" ; \
3665cf9da48Swdenk		}
3675cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
368*f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
3695cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
37017d704ebSwdenk		  echo "... with LOWBOOT configuration" ; \
3715cf9da48Swdenk		}
372b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
373*f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
374b2001f27Swdenk		  echo "... DDR memory revision" ; \
375b2001f27Swdenk		}
376d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
377*f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
378d4ca31c4Swdenk		  echo "... with MPC5200 processor" ; \
379d4ca31c4Swdenk		}
380a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
381*f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
382945af8d7Swdenk		  echo "... with MGT5100 processor" ; \
383945af8d7Swdenk		}
384*f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
385945af8d7Swdenk
386138ff60cSwdenkinka4x0_config:	unconfig
387*f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
388138ff60cSwdenk
38909e4b0c5SWolfgang Denklite5200b_config	\
39009e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
391*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
392*f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
393*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
394*f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
39509e4b0c5SWolfgang Denk	@ echo "... DDR memory revision"
396*f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
397*f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
39809e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
399*f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
40009e4b0c5SWolfgang Denk		  echo "... with LOWBOOT configuration" ; \
40109e4b0c5SWolfgang Denk		}
40209e4b0c5SWolfgang Denk	@ echo "... with MPC5200B processor"
403*f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
40409e4b0c5SWolfgang Denk
405f1ee9825SStefan Roesemcc200_config	\
406ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
407ed1cf845SWolfgang Denkmcc200_highboot_config	\
408ed1cf845SWolfgang Denkmcc200_COM12_config	\
409ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
410113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
411113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
412ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
413ed1cf845SWolfgang Denkprs200_config	\
414ed1cf845SWolfgang Denkprs200_DDR_config	\
415ed1cf845SWolfgang Denkprs200_highboot_config	\
416ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
417*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
418*f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
419*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
4204819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
4214819fad9SWolfgang Denk		{ echo "... with lowboot configuration" ; \
422f1ee9825SStefan Roese		}
4234819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
424*f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
4254819fad9SWolfgang Denk		  echo "... with highboot configuration" ; \
4264819fad9SWolfgang Denk		}
4274819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
428ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
429ed1cf845SWolfgang Denk		  then \
430ed1cf845SWolfgang Denk		  	echo "... with DDR" ; \
431ed1cf845SWolfgang Denk		  else \
432ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
433ed1cf845SWolfgang Denk			then \
434ed1cf845SWolfgang Denk				echo "... with DDR" ; \
435ed1cf845SWolfgang Denk			else \
436*f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
437ed1cf845SWolfgang Denk				echo "... with SDRAM" ; \
438ed1cf845SWolfgang Denk			fi; \
439ed1cf845SWolfgang Denk		  fi; \
4404819fad9SWolfgang Denk		}
4414819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
442*f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
4434819fad9SWolfgang Denk		  echo "... with SDRAM" ; \
4444819fad9SWolfgang Denk		}
445463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
446*f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
447463764c8SWolfgang Denk		  echo "... with console on COM12" ; \
448463764c8SWolfgang Denk		}
449ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
450*f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"  >>$(obj)include/config.h ;\
451ed1cf845SWolfgang Denk		}
452*f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
45386ea5f93SWolfgang Denk
454df04a3dfSWolfgang Denko2dnt_config:
455*f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
456df04a3dfSWolfgang Denk
4575e4b3361SStefan Roesepf5200_config:  unconfig
458*f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
4595e4b3361SStefan Roese
46089394047SwdenkPM520_config \
46189394047SwdenkPM520_DDR_config \
46289394047SwdenkPM520_ROMBOOT_config \
46389394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
464*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
465*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
46689394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
467*f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
46889394047Swdenk		  echo "... DDR memory revision" ; \
46989394047Swdenk		}
47089394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
471*f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
47289394047Swdenk		  echo "... booting from 8-bit flash" ; \
47389394047Swdenk		}
474*f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
47589394047Swdenk
4766624b687SWolfgang Denksmmaco4_config: unconfig
477*f9328639SMarian Balakowicz	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
4789cdc8386SWolfgang Denk
4799cdc8386SWolfgang Denkspieval_config:	unconfig
480*f9328639SMarian Balakowicz	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
4819cdc8386SWolfgang Denk
48245a212c4SWolfgang DenkTB5200_B_config \
483b87dfd28SWolfgang DenkTB5200_config:	unconfig
484*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
48545a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
486*f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
48745a212c4SWolfgang Denk		  echo "... with MPC5200B processor" ; \
48845a212c4SWolfgang Denk		}
489*f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
490b87dfd28SWolfgang Denk
491d4ca31c4SwdenkMINI5200_config	\
492d4ca31c4SwdenkEVAL5200_config	\
493d4ca31c4SwdenkTOP5200_config:	unconfig
494*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
495*f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
496*f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
497d4ca31c4Swdenk
4986c7a1408SwdenkTotal5100_config		\
4996c7a1408SwdenkTotal5200_config		\
5006c7a1408SwdenkTotal5200_lowboot_config	\
5016c7a1408SwdenkTotal5200_Rev2_config		\
5026c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
503*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
504*f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
505*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
5066c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
507*f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
5086c7a1408Swdenk		  echo "... with MGT5100 processor" ; \
5096c7a1408Swdenk		}
5106c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
511*f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
5126c7a1408Swdenk		  echo "... with MPC5200 processor" ; \
5136c7a1408Swdenk		}
5146c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
515*f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
5166c7a1408Swdenk		  echo "... revision 1 board" ; \
5176c7a1408Swdenk		}
5186c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
519*f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
5206c7a1408Swdenk		  echo "... revision 2 board" ; \
5216c7a1408Swdenk		}
5226c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
523*f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
5246c7a1408Swdenk		  echo "... with lowboot configuration" ; \
5256c7a1408Swdenk		}
526*f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
5276c7a1408Swdenk
5285196a7a0SWolfgang Denkcam5200_config \
5295196a7a0SWolfgang Denkfo300_config \
5305196a7a0SWolfgang DenkMiniFAP_config \
5315078cce8SWolfgang DenkTQM5200S_config \
5325078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
5335196a7a0SWolfgang DenkTQM5200_B_config \
5345196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
5355196a7a0SWolfgang DenkTQM5200_config	\
5365196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
537*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
538*f9328639SMarian Balakowicz	@mkdir -p $(obj)board/tqm5200
539*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
5405196a7a0SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
541*f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
542*f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
543*f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
5445196a7a0SWolfgang Denk		  echo "... TQM5200S on Cam5200" ; \
5455196a7a0SWolfgang Denk		}
5466d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
547*f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
5486d3bc9b8SMarian Balakowicz		  echo "... TQM5200 on FO300" ; \
5496d3bc9b8SMarian Balakowicz		}
55089394047Swdenk	@[ -z "$(findstring MiniFAP,$@)" ] || \
551*f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
55289394047Swdenk		  echo "... TQM5200_AC on MiniFAP" ; \
55356523f12Swdenk		}
554cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
555*f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
556cd65a3dcSWolfgang Denk		  echo "... on a STK52XX.100 base board" ; \
55756523f12Swdenk		}
5585078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
559*f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
5605078cce8SWolfgang Denk		}
5615078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
562*f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
563*f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
56445a212c4SWolfgang Denk		}
565978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
566*f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
567978b1096SWolfgang Denk		}
568*f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
56956523f12Swdenk
570945af8d7Swdenk#########################################################################
5717ebf7443Swdenk## MPC8xx Systems
5727ebf7443Swdenk#########################################################################
5737ebf7443Swdenk
5742d24a3a7SwdenkAdder_config    \
5752d24a3a7SwdenkAdder87x_config \
57626238132SwdenkAdderII_config  \
5772d24a3a7Swdenk	:		unconfig
578*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
57926238132Swdenk	$(if $(findstring AdderII,$@), \
580*f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
581*f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
5822d24a3a7Swdenk
583180d3f74SwdenkADS860_config     \
584180d3f74SwdenkFADS823_config    \
585180d3f74SwdenkFADS850SAR_config \
586180d3f74SwdenkMPC86xADS_config  \
5871114257cSwdenkMPC885ADS_config  \
588180d3f74SwdenkFADS860T_config:	unconfig
589*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
5907ebf7443Swdenk
5917ebf7443SwdenkAMX860_config	:	unconfig
592*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
5937ebf7443Swdenk
5947ebf7443Swdenkc2mon_config:		unconfig
595*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
5967ebf7443Swdenk
5977ebf7443SwdenkCCM_config:		unconfig
598*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
5997ebf7443Swdenk
6007ebf7443Swdenkcogent_mpc8xx_config:	unconfig
601*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
6027ebf7443Swdenk
6033bac3513SwdenkELPT860_config:		unconfig
604*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
6053bac3513Swdenk
60684c960ceSWolfgang DenkEP88x_config:		unconfig
607*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
60884c960ceSWolfgang Denk
6097ebf7443SwdenkESTEEM192E_config:	unconfig
610*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
6117ebf7443Swdenk
6127ebf7443SwdenkETX094_config	:	unconfig
613*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
6147ebf7443Swdenk
6157ebf7443SwdenkFLAGADM_config:	unconfig
616*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
6177ebf7443Swdenk
6187aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
6197aa78614Swdenk
6207aa78614SwdenkGEN860T_SC_config	\
6217ebf7443SwdenkGEN860T_config: unconfig
622*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
623*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
6247aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
625*f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
6267aa78614Swdenk		  echo "With reduced H/W feature set (SC)..." ; \
6277aa78614Swdenk		}
628*f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
6297ebf7443Swdenk
6307ebf7443SwdenkGENIETV_config:	unconfig
631*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
6327ebf7443Swdenk
6337ebf7443SwdenkGTH_config:	unconfig
634*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
6357ebf7443Swdenk
6367ebf7443Swdenkhermes_config	:	unconfig
637*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
6387ebf7443Swdenk
639c40b2956SwdenkHMI10_config	:	unconfig
640*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
641c40b2956Swdenk
6427ebf7443SwdenkIAD210_config: unconfig
643*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
6447ebf7443Swdenk
6457ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
6467ebf7443Swdenk
6477ebf7443SwdenkICU862_100MHz_config	\
6487ebf7443SwdenkICU862_config: unconfig
649*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
650*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
6517ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
652*f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
6537ebf7443Swdenk		  echo "... with 100MHz system clock" ; \
6547ebf7443Swdenk		}
655*f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
6567ebf7443Swdenk
6577ebf7443SwdenkIP860_config	:	unconfig
658*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
6597ebf7443Swdenk
6607ebf7443SwdenkIVML24_256_config \
6617ebf7443SwdenkIVML24_128_config \
6627ebf7443SwdenkIVML24_config:	unconfig
663*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
664*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
6657ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
666*f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
6677ebf7443Swdenk		 }
6687ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
669*f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
6707ebf7443Swdenk		 }
6717ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
672*f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
6737ebf7443Swdenk		 }
674*f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
6757ebf7443Swdenk
6767ebf7443SwdenkIVMS8_256_config \
6777ebf7443SwdenkIVMS8_128_config \
6787ebf7443SwdenkIVMS8_config:	unconfig
679*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
680*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
6817ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
682*f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
6837ebf7443Swdenk		 }
6847ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
685*f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
6867ebf7443Swdenk		 }
6877ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
688*f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
6897ebf7443Swdenk		 }
690*f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
6917ebf7443Swdenk
69256f94be3SwdenkKUP4K_config	:	unconfig
693*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
6940608e04dSwdenk
6950608e04dSwdenkKUP4X_config    :       unconfig
696*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
69756f94be3Swdenk
6987ebf7443SwdenkLANTEC_config	:	unconfig
699*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
7007ebf7443Swdenk
7017ebf7443Swdenklwmon_config:		unconfig
702*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
7037ebf7443Swdenk
7047ebf7443SwdenkMBX_config	\
7057ebf7443SwdenkMBX860T_config:	unconfig
706*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
7077ebf7443Swdenk
7087ebf7443SwdenkMHPC_config:		unconfig
709*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
7107ebf7443Swdenk
7117ebf7443SwdenkMVS1_config :		unconfig
712*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
7137ebf7443Swdenk
714993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
715993cad93Swdenk
716993cad93SwdenkNETVIA_V2_config \
7177ebf7443SwdenkNETVIA_config:		unconfig
718*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
719*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
720993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
721*f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
722993cad93Swdenk		  echo "... Version 1" ; \
723993cad93Swdenk		 }
724993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
725*f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
726993cad93Swdenk		  echo "... Version 2" ; \
727993cad93Swdenk		 }
728*f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
7297ebf7443Swdenk
730c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
731c26e454dSwdenk
732c26e454dSwdenkNETPHONE_V2_config \
73304a85b3bSwdenkNETPHONE_config:	unconfig
734*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
735*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
736c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
737*f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
738c26e454dSwdenk		 }
739c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
740*f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
741c26e454dSwdenk		 }
742*f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
74304a85b3bSwdenk
74479fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
74504a85b3bSwdenk
74679fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
74779fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
74879fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
74979fa88f3SwdenkNETTA_SWAPHOOK_config \
75079fa88f3SwdenkNETTA_ISDN_6412_config \
75104a85b3bSwdenkNETTA_ISDN_config \
75279fa88f3SwdenkNETTA_6412_config \
75304a85b3bSwdenkNETTA_config:		unconfig
754*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
755*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
75679fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
757*f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
75804a85b3bSwdenk		 }
75979fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
760*f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
76179fa88f3Swdenk		 }
76279fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
763*f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
76479fa88f3Swdenk		 }
76579fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
766*f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
76779fa88f3Swdenk		 }
76879fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
769*f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
77079fa88f3Swdenk		 }
77179fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
772*f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
77379fa88f3Swdenk		 }
774*f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
77504a85b3bSwdenk
77679fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
77779fa88f3Swdenk
77879fa88f3SwdenkNETTA2_V2_config \
77979fa88f3SwdenkNETTA2_config:		unconfig
780*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
781*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
78279fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
783*f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
78479fa88f3Swdenk		 }
78579fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
786*f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
78779fa88f3Swdenk		 }
788*f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
78979fa88f3Swdenk
790a367d426Sdzu@denx.deNC650_Rev1_config \
791a367d426Sdzu@denx.deNC650_Rev2_config \
792a367d426Sdzu@denx.deCP850_config:	unconfig
793*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
794*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
795a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
796*f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
797*f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
798a367d426Sdzu@denx.de		 }
799a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
800*f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
801a367d426Sdzu@denx.de		 }
802a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
803*f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
804a367d426Sdzu@denx.de		 }
805*f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
8067ca202f5Swdenk
8077ebf7443SwdenkNX823_config:		unconfig
808*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
8097ebf7443Swdenk
8107ebf7443Swdenkpcu_e_config:		unconfig
811*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
8127ebf7443Swdenk
8133bbc899fSwdenkQS850_config:	unconfig
814*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
8153bbc899fSwdenk
8163bbc899fSwdenkQS823_config:	unconfig
817*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
8183bbc899fSwdenk
8193bbc899fSwdenkQS860T_config:	unconfig
820*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
8213bbc899fSwdenk
822da93ed81Swdenkquantum_config:	unconfig
823*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
824da93ed81Swdenk
8257ebf7443SwdenkR360MPI_config:	unconfig
826*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
8277ebf7443Swdenk
828682011ffSwdenkRBC823_config:	unconfig
829*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
830682011ffSwdenk
8317ebf7443SwdenkRPXClassic_config:	unconfig
832*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
8337ebf7443Swdenk
8347ebf7443SwdenkRPXlite_config:		unconfig
835*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
8367ebf7443Swdenk
837e63c8ee3SwdenkRPXlite_DW_64_config  		\
838e63c8ee3SwdenkRPXlite_DW_LCD_config 		\
839e63c8ee3SwdenkRPXlite_DW_64_LCD_config 	\
840e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
841e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config      \
842e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
843e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config  \
844e63c8ee3SwdenkRPXlite_DW_config:         unconfig
845*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
846*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
847e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
848*f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
849e63c8ee3Swdenk		  echo "... with 64MHz system clock ..."; \
850e63c8ee3Swdenk		}
851e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
852*f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"          	>>$(obj)include/config.h ; \
853*f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
854e63c8ee3Swdenk		  echo "... with LCD display ..."; \
855e63c8ee3Swdenk		}
856e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
857*f9328639SMarian Balakowicz		{ echo "#define  CFG_ENV_IS_IN_NVRAM" 	>>$(obj)include/config.h ; \
858e63c8ee3Swdenk		  echo "... with ENV in NVRAM ..."; \
859e63c8ee3Swdenk		}
860*f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
861e63c8ee3Swdenk
86273a8b27cSwdenkrmu_config:	unconfig
863*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
86473a8b27cSwdenk
8657ebf7443SwdenkRRvision_config:	unconfig
866*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
8677ebf7443Swdenk
8687ebf7443SwdenkRRvision_LCD_config:	unconfig
869*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
870*f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
871*f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
872*f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
8737ebf7443Swdenk
8747ebf7443SwdenkSM850_config	:	unconfig
875*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
8767ebf7443Swdenk
877b02d0177SMarkus Klotzbuecherspc1920_config:
878*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
879b02d0177SMarkus Klotzbuecher
8807ebf7443SwdenkSPD823TS_config:	unconfig
881*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
8827ebf7443Swdenk
8836bdf4306SWolfgang Denkstxxtc_config:	unconfig
884*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
8856bdf4306SWolfgang Denk
886dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
887*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
888dc7c9a1aSwdenk
8897ebf7443SwdenkSXNI855T_config:	unconfig
890*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
8917ebf7443Swdenk
892db2f721fSwdenk# EMK MPC8xx based modules
893db2f721fSwdenkTOP860_config:		unconfig
894*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
895db2f721fSwdenk
8967ebf7443Swdenk# Play some tricks for configuration selection
897e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
898e9132ea9Swdenk# and only 823 boards may have LCD support
899e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
9007ebf7443Swdenk
9017ebf7443SwdenkFPS850L_config		\
902384ae025SwdenkFPS860L_config		\
903f12e568cSwdenkNSCU_config		\
9047ebf7443SwdenkTQM823L_config		\
9057ebf7443SwdenkTQM823L_LCD_config	\
9067ebf7443SwdenkTQM850L_config		\
9077ebf7443SwdenkTQM855L_config		\
9087ebf7443SwdenkTQM860L_config		\
909d126bfbdSwdenkTQM862L_config		\
910ae3af05eSwdenkTQM823M_config		\
911ae3af05eSwdenkTQM850M_config		\
912f12e568cSwdenkTQM855M_config		\
913f12e568cSwdenkTQM860M_config		\
914f12e568cSwdenkTQM862M_config		\
9158cba090cSWolfgang DenkTQM866M_config		\
916090eb735SMarkus KlotzbuecherTQM885D_config		\
9178cba090cSWolfgang Denkvirtlab2_config:	unconfig
918*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
919*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
9207ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
921*f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
922*f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
9237ebf7443Swdenk		  echo "... with LCD display" ; \
9247ebf7443Swdenk		}
925*f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
9267ebf7443Swdenk
9277ebf7443SwdenkTTTech_config:	unconfig
928*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
929*f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
930*f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
931*f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
9327ebf7443Swdenk
933ec0aee7bSwdenkuc100_config	:	unconfig
934*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
935f7d1572bSwdenk
936608c9146Swdenkv37_config:	unconfig
937*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
938*f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
939*f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
940*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
941608c9146Swdenk
94291e940d9Sdzuwtk_config:	unconfig
943*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
944*f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
945*f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
946*f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
94791e940d9Sdzu
9487ebf7443Swdenk#########################################################################
9497ebf7443Swdenk## PPC4xx Systems
9507ebf7443Swdenk#########################################################################
951e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
9527ebf7443Swdenk
9537ebf7443SwdenkADCIOP_config:	unconfig
954*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
9557ebf7443Swdenk
9567521af1cSWolfgang DenkAP1000_config:unconfig
957*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
9587521af1cSWolfgang Denk
959c419d1d6SstroeseAPC405_config:	unconfig
960*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
961c419d1d6Sstroese
9627ebf7443SwdenkAR405_config:	unconfig
963*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
9647ebf7443Swdenk
965549826eaSstroeseASH405_config:	unconfig
966*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
967549826eaSstroese
9688a316c9bSStefan Roesebamboo_config:	unconfig
969*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
9708a316c9bSStefan Roese
9718a316c9bSStefan Roesebubinga_config:	unconfig
972*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
973549826eaSstroese
9747ebf7443SwdenkCANBT_config:	unconfig
975*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
9767ebf7443Swdenk
9771d6f9720SwdenkCATcenter_config	\
9781d6f9720SwdenkCATcenter_25_config	\
9791d6f9720SwdenkCATcenter_33_config:	unconfig
980*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
981*f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
982*f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
9831d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
984*f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
9851d6f9720Swdenk		  echo "SysClk = 25MHz" ; \
9861d6f9720Swdenk		}
9871d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
988*f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
9891d6f9720Swdenk		  echo "SysClk = 33MHz" ; \
9901d6f9720Swdenk		}
991*f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
99210767ccbSwdenk
9937644f16fSStefan RoeseCPCI2DP_config:	unconfig
994*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
9957644f16fSStefan Roese
9967ebf7443SwdenkCPCI405_config	\
997549826eaSstroeseCPCI4052_config	\
998c419d1d6SstroeseCPCI405DT_config	\
999549826eaSstroeseCPCI405AB_config:	unconfig
1000*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1001*f9328639SMarian Balakowicz	@echo "BOARD_REVISION = $(@:_config=)"	>> $(obj)include/config.mk
10027ebf7443Swdenk
10037ebf7443SwdenkCPCI440_config:	unconfig
1004*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
10057ebf7443Swdenk
10067ebf7443SwdenkCPCIISER4_config:	unconfig
1007*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
10087ebf7443Swdenk
10097ebf7443SwdenkCRAYL1_config:	unconfig
1010*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
10117ebf7443Swdenk
1012cd0a9de6Swdenkcsb272_config:	unconfig
1013*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1014cd0a9de6Swdenk
1015aa245090Swdenkcsb472_config:	unconfig
1016*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1017aa245090Swdenk
10187ebf7443SwdenkDASA_SIM_config: unconfig
1019*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
10207ebf7443Swdenk
102172cd5aa7SstroeseDP405_config:	unconfig
1022*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
102372cd5aa7Sstroese
10247ebf7443SwdenkDU405_config:	unconfig
1025*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
10267ebf7443Swdenk
10278a316c9bSStefan Roeseebony_config:	unconfig
1028*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
10297ebf7443Swdenk
10307ebf7443SwdenkERIC_config:	unconfig
1031*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
10327ebf7443Swdenk
1033d1cbe85bSwdenkEXBITGEN_config:	unconfig
1034*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1035d1cbe85bSwdenk
1036c419d1d6SstroeseG2000_config:	unconfig
1037*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1038c419d1d6Sstroese
1039c419d1d6SstroeseHH405_config:	unconfig
1040*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1041c419d1d6Sstroese
104272cd5aa7SstroeseHUB405_config:	unconfig
1043*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
104472cd5aa7Sstroese
1045db01a2eaSwdenkJSE_config:	unconfig
1046*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1047db01a2eaSwdenk
1048b79316f2SStefan RoeseKAREF_config: unconfig
1049*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1050b79316f2SStefan Roese
10516e7fb6eaSStefan Roeseluan_config:	unconfig
1052*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
10536e7fb6eaSStefan Roese
1054b79316f2SStefan RoeseMETROBOX_config: unconfig
1055*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1056b79316f2SStefan Roese
10577ebf7443SwdenkMIP405_config:	unconfig
1058*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
10597ebf7443Swdenk
1060f3e0de60SwdenkMIP405T_config:	unconfig
1061*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1062*f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1063f3e0de60Swdenk	@echo "Enable subset config for MIP405T"
1064*f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1065f3e0de60Swdenk
10667ebf7443SwdenkML2_config:	unconfig
1067*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
10687ebf7443Swdenk
1069028ab6b5Swdenkml300_config:	unconfig
1070*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1071028ab6b5Swdenk
10728a316c9bSStefan Roeseocotea_config:	unconfig
1073*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
10740e6d798cSwdenk
10757ebf7443SwdenkOCRTC_config		\
10767ebf7443SwdenkORSG_config:	unconfig
1077*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
10787ebf7443Swdenk
10795568e613SStefan Roesep3p440_config:	unconfig
1080*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
10815568e613SStefan Roese
10827ebf7443SwdenkPCI405_config:	unconfig
1083*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
10847ebf7443Swdenk
1085a4c8d138SStefan Roesepcs440ep_config:	unconfig
1086*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1087a4c8d138SStefan Roese
10887ebf7443SwdenkPIP405_config:	unconfig
1089*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
10907ebf7443Swdenk
109172cd5aa7SstroesePLU405_config:	unconfig
1092*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
109372cd5aa7Sstroese
1094549826eaSstroesePMC405_config:	unconfig
1095*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1096549826eaSstroese
1097281e00a3SwdenkPPChameleonEVB_config		\
1098e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1099e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1100e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1101e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1102e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1103e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1104*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1105*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
11061d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1107*f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1108fbe4b5cbSwdenk		  echo "... BASIC model" ; \
1109fbe4b5cbSwdenk		}
11101d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1111*f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1112fbe4b5cbSwdenk		  echo "... MEDIUM model" ; \
1113fbe4b5cbSwdenk		}
11141d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1115*f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1116fbe4b5cbSwdenk		  echo "... HIGH-END model" ; \
1117fbe4b5cbSwdenk		}
1118e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1119*f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1120e55ca7e2Swdenk		  echo "SysClk = 25MHz" ; \
1121e55ca7e2Swdenk		}
1122e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1123*f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1124e55ca7e2Swdenk		  echo "SysClk = 33MHz" ; \
1125e55ca7e2Swdenk		}
1126*f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
112712f34241Swdenk
1128652a10c0Swdenksbc405_config:	unconfig
1129*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1130652a10c0Swdenk
11318a316c9bSStefan Roesesycamore_config:	unconfig
11328a316c9bSStefan Roese	@echo "Configuring for sycamore board as subset of walnut..."
1133*f9328639SMarian Balakowicz	@$(MKCONFIG) -a walnut ppc ppc4xx walnut amcc
11348a316c9bSStefan Roese
113572cd5aa7SstroeseVOH405_config:	unconfig
1136*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
113772cd5aa7Sstroese
1138c419d1d6SstroeseVOM405_config:	unconfig
1139*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1140c419d1d6Sstroese
1141feaedfcfSStefan RoeseCMS700_config:	unconfig
1142*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1143feaedfcfSStefan Roese
11447ebf7443SwdenkW7OLMC_config	\
11457ebf7443SwdenkW7OLMG_config: unconfig
1146*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
11477ebf7443Swdenk
11488a316c9bSStefan Roesewalnut_config: unconfig
1149*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx walnut amcc
11507ebf7443Swdenk
1151c419d1d6SstroeseWUH405_config:	unconfig
1152*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1153c419d1d6Sstroese
1154ba56f625SwdenkXPEDITE1K_config:	unconfig
1155*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1156ba56f625Swdenk
11578a316c9bSStefan Roeseyosemite_config:	unconfig
1158*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yosemite amcc
11598a316c9bSStefan Roese
11608a316c9bSStefan Roeseyellowstone_config:	unconfig
1161*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yellowstone amcc
11628a316c9bSStefan Roese
11636c5879f3SMarian Balakowiczyucca_config:	unconfig
1164*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
11656c5879f3SMarian Balakowicz
11667ebf7443Swdenk#########################################################################
1167983fda83Swdenk## MPC8220 Systems
1168983fda83Swdenk#########################################################################
1169dc17fb6dSWolfgang Denk
1170dc17fb6dSWolfgang DenkAlaska8220_config	\
1171dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1172*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1173983fda83Swdenk
117412b43d51Swdenksorcery_config:		unconfig
1175*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
117612b43d51Swdenk
1177983fda83Swdenk#########################################################################
11787ebf7443Swdenk## MPC824x Systems
11797ebf7443Swdenk#########################################################################
1180efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
11813bac3513Swdenk
11820332990bSwdenkA3000_config: unconfig
1183*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
11840332990bSwdenk
11858e6f1a8eSWolfgang Denkbarco_config: unconfig
1186*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
11878e6f1a8eSWolfgang Denk
11887ebf7443SwdenkBMW_config: unconfig
1189*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
11907ebf7443Swdenk
11913bac3513SwdenkCPC45_config	\
11923bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1193*f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1194*f9328639SMarian Balakowicz	@cd $(obj)include ;				\
11953bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
11963bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
11973bac3513Swdenk		echo "... booting from 8-bit flash" ; \
11983bac3513Swdenk	else \
11993bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
12003bac3513Swdenk		echo "... booting from 64-bit flash" ; \
12013bac3513Swdenk	fi; \
12023bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
12033bac3513Swdenk
12047ebf7443SwdenkCU824_config: unconfig
1205*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
12067ebf7443Swdenk
12077abf0c58Swdenkdebris_config: unconfig
1208*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
12097abf0c58Swdenk
121080885a9dSwdenkeXalion_config: unconfig
1211*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
121280885a9dSwdenk
1213756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1214*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1215756f586aSwdenk
121653dd6ce4SWolfgang Denkkvme080_config: unconfig
1217*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
121853dd6ce4SWolfgang Denk
12197ebf7443SwdenkMOUSSE_config: unconfig
1220*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
12217ebf7443Swdenk
12227ebf7443SwdenkMUSENKI_config: unconfig
1223*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
12247ebf7443Swdenk
1225b4676a25SwdenkMVBLUE_config:	unconfig
1226*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1227b4676a25Swdenk
12287ebf7443SwdenkOXC_config: unconfig
1229*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
12307ebf7443Swdenk
12317ebf7443SwdenkPN62_config: unconfig
1232*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
12337ebf7443Swdenk
12347ebf7443SwdenkSandpoint8240_config: unconfig
1235*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
12367ebf7443Swdenk
12377ebf7443SwdenkSandpoint8245_config: unconfig
1238*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
12397ebf7443Swdenk
1240466b7410Swdenksbc8240_config: unconfig
1241*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1242466b7410Swdenk
1243d1cbe85bSwdenkSL8245_config: unconfig
1244*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1245d1cbe85bSwdenk
12467ebf7443Swdenkutx8245_config: unconfig
1247*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
12487ebf7443Swdenk
12497ebf7443Swdenk#########################################################################
12507ebf7443Swdenk## MPC8260 Systems
12517ebf7443Swdenk#########################################################################
12527ebf7443Swdenk
125354387ac9Swdenkatc_config:	unconfig
1254*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
125554387ac9Swdenk
12567ebf7443Swdenkcogent_mpc8260_config:	unconfig
1257*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
12587ebf7443Swdenk
12597ebf7443SwdenkCPU86_config	\
12607ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1261*f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1262*f9328639SMarian Balakowicz	@cd $(obj)include ;				\
12637ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
12647ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
12657ebf7443Swdenk		echo "... booting from 8-bit flash" ; \
12667ebf7443Swdenk	else \
12677ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
12687ebf7443Swdenk		echo "... booting from 64-bit flash" ; \
12697ebf7443Swdenk	fi; \
12707ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
12717ebf7443Swdenk
1272384cc687SwdenkCPU87_config	\
1273384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1274*f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1275*f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1276384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1277384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1278384cc687Swdenk		echo "... booting from 8-bit flash" ; \
1279384cc687Swdenk	else \
1280384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1281384cc687Swdenk		echo "... booting from 64-bit flash" ; \
1282384cc687Swdenk	fi; \
1283384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1284384cc687Swdenk
1285f901a83bSWolfgang Denkep8248_config	\
1286f901a83bSWolfgang Denkep8248E_config	:	unconfig
1287*f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1288f901a83bSWolfgang Denk
12897ebf7443Swdenkep8260_config:	unconfig
1290*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
12917ebf7443Swdenk
12927ebf7443Swdenkgw8260_config:	unconfig
1293*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
12947ebf7443Swdenk
12957ebf7443Swdenkhymod_config:	unconfig
1296*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
12977ebf7443Swdenk
12989dd41a7bSwdenkIDS8247_config:	unconfig
1299*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
13009dd41a7bSwdenk
13017ebf7443SwdenkIPHASE4539_config:	unconfig
1302*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
13037ebf7443Swdenk
1304c3c7f861SwdenkISPAN_config		\
1305c3c7f861SwdenkISPAN_REVB_config:	unconfig
1306*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1307c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
1308*f9328639SMarian Balakowicz		echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1309c3c7f861Swdenk	fi
1310*f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1311c3c7f861Swdenk
131204a85b3bSwdenkMPC8260ADS_config	\
1313901787d6SwdenkMPC8260ADS_lowboot_config	\
131404a85b3bSwdenkMPC8260ADS_33MHz_config	\
1315901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
131604a85b3bSwdenkMPC8260ADS_40MHz_config	\
1317901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
131804a85b3bSwdenkMPC8272ADS_config	\
1319901787d6SwdenkMPC8272ADS_lowboot_config	\
132004a85b3bSwdenkPQ2FADS_config		\
1321901787d6SwdenkPQ2FADS_lowboot_config		\
132204a85b3bSwdenkPQ2FADS-VR_config	\
1323901787d6SwdenkPQ2FADS-VR_lowboot_config	\
132404a85b3bSwdenkPQ2FADS-ZU_config	\
1325901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
132604a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1327901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
132804a85b3bSwdenk	:		unconfig
1329*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1330*f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mpc8260ads
133104a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
1332*f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1333*f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
133404a85b3bSwdenk	$(if $(findstring MHz,$@), \
1335*f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
133604a85b3bSwdenk	$(if $(findstring VR,$@), \
1337*f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1338901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1339*f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1340901787d6Swdenk		  echo "... with lowboot configuration" ; \
1341901787d6Swdenk		}
1342*f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
13437ebf7443Swdenk
1344db2f721fSwdenkMPC8266ADS_config:	unconfig
1345*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1346db2f721fSwdenk
1347efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
134810f67017SwdenkPM825_config	\
1349efa329cbSwdenkPM825_ROMBOOT_config	\
1350efa329cbSwdenkPM825_BIGFLASH_config	\
1351efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
13527ebf7443SwdenkPM826_config	\
1353efa329cbSwdenkPM826_ROMBOOT_config	\
1354efa329cbSwdenkPM826_BIGFLASH_config	\
1355efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1356*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1357*f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1358efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1359*f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
13607ebf7443Swdenk	else \
1361*f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1362efa329cbSwdenk	fi
1363efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1364efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
1365*f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1366*f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1367efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1368efa329cbSwdenk			echo "... with 32 MB Flash" ; \
1369*f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
13707ebf7443Swdenk		fi; \
1371efa329cbSwdenk	else \
1372efa329cbSwdenk		echo "... booting from 64-bit flash" ; \
1373efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1374efa329cbSwdenk			echo "... with 32 MB Flash" ; \
1375*f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1376*f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1377efa329cbSwdenk		else \
1378*f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1379efa329cbSwdenk		fi; \
1380efa329cbSwdenk	fi
1381*f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1382efa329cbSwdenk
1383efa329cbSwdenkPM828_config	\
1384efa329cbSwdenkPM828_PCI_config	\
1385efa329cbSwdenkPM828_ROMBOOT_config	\
1386efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1387*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1388*f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
138917076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1390*f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1391efa329cbSwdenk		echo "... with PCI enabled" ; \
1392efa329cbSwdenk	else \
1393*f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1394efa329cbSwdenk	fi
1395efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1396efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
1397*f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1398*f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1399efa329cbSwdenk	fi
1400*f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
14017ebf7443Swdenk
14027ebf7443Swdenkppmc8260_config:	unconfig
1403*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
14047ebf7443Swdenk
14058b0bfc68SwdenkRattler8248_config	\
14068b0bfc68SwdenkRattler_config:		unconfig
1407*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
14088b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1409*f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1410*f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
14118b0bfc68Swdenk
14127ebf7443SwdenkRPXsuper_config:	unconfig
1413*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
14147ebf7443Swdenk
14157ebf7443Swdenkrsdproto_config:	unconfig
1416*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
14177ebf7443Swdenk
14187ebf7443Swdenksacsng_config:	unconfig
1419*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
14207ebf7443Swdenk
14217ebf7443Swdenksbc8260_config:	unconfig
1422*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
14237ebf7443Swdenk
14247ebf7443SwdenkSCM_config:		unconfig
1425*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
14267ebf7443Swdenk
142727b207fdSwdenkTQM8255_AA_config \
142827b207fdSwdenkTQM8260_AA_config \
142927b207fdSwdenkTQM8260_AB_config \
143027b207fdSwdenkTQM8260_AC_config \
143127b207fdSwdenkTQM8260_AD_config \
143227b207fdSwdenkTQM8260_AE_config \
143327b207fdSwdenkTQM8260_AF_config \
143427b207fdSwdenkTQM8260_AG_config \
143527b207fdSwdenkTQM8260_AH_config \
14361f62bc2dSWolfgang DenkTQM8260_AI_config \
143727b207fdSwdenkTQM8265_AA_config:  unconfig
1438*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
143927b207fdSwdenk	@case "$@" in \
144027b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
144127b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
144227b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
144327b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
144427b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
144527b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
144627b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
144727b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
144827b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
14491f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
145027b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
145127b207fdSwdenk	esac; \
1452*f9328639SMarian Balakowicz	>$(obj)include/config.h ; \
145327b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1454*f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
145527b207fdSwdenk	fi; \
1456*f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
145727b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
145827b207fdSwdenk	if [ "$${CACHE}" == "yes" ] ; then \
1459*f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
146027b207fdSwdenk		echo "... with L2 Cache support" ; \
14617ebf7443Swdenk	else \
1462*f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
14637ebf7443Swdenk		echo "... without L2 Cache support" ; \
146427b207fdSwdenk	fi; \
146527b207fdSwdenk	if [ "$${BMODE}" == "60x" ] ; then \
1466*f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
146727b207fdSwdenk		echo "... with 60x Bus Mode" ; \
146827b207fdSwdenk	else \
1469*f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
147027b207fdSwdenk		echo "... without 60x Bus Mode" ; \
14717ebf7443Swdenk	fi
1472*f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
14737ebf7443Swdenk
1474ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1475ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1476*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1477*f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1478*f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1479ba91e26aSwdenk
148054387ac9SwdenkZPC1900_config: unconfig
1481*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
14827aa78614Swdenk
14834e5ca3ebSwdenk#########################################################################
14844e5ca3ebSwdenk## Coldfire
14854e5ca3ebSwdenk#########################################################################
14864e5ca3ebSwdenk
14877481266eSWolfgang Denkcobra5272_config :		unconfig
1488*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
14897481266eSWolfgang Denk
14904176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
1491*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1492*f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1493*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1494*f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1495*f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
14964176c799SWolfgang Denk
14974176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
1498*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1499*f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1500*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1501*f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1502*f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
15034176c799SWolfgang Denk
15044176c799SWolfgang DenkM5271EVB_config :		unconfig
1505*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
15064176c799SWolfgang Denk
15074e5ca3ebSwdenkM5272C3_config :		unconfig
1508*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
15094e5ca3ebSwdenk
15104e5ca3ebSwdenkM5282EVB_config :		unconfig
1511*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
15124e5ca3ebSwdenk
1513c419d1d6SstroeseTASREG_config :		unconfig
1514*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1515c419d1d6Sstroese
15163a108ed8SZachary P. Landaur5200_config :		unconfig
1517*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
15183a108ed8SZachary P. Landau
15197ebf7443Swdenk#########################################################################
1520f046ccd1SEran Liberty## MPC83xx Systems
1521f046ccd1SEran Liberty#########################################################################
1522f046ccd1SEran Liberty
1523f046ccd1SEran LibertyMPC8349ADS_config:	unconfig
1524*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349ads
1525f046ccd1SEran Liberty
1526e6f2e902SMarian BalakowiczTQM834x_config:	unconfig
1527*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
1528e6f2e902SMarian Balakowicz
1529991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
1530*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds
1531991425feSMarian Balakowicz
1532f046ccd1SEran Liberty#########################################################################
153342d1f039Swdenk## MPC85xx Systems
153442d1f039Swdenk#########################################################################
153542d1f039Swdenk
153642d1f039SwdenkMPC8540ADS_config:	unconfig
1537*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
153842d1f039Swdenk
1539b0e32949SLunsheng WangMPC8540EVAL_config \
1540b0e32949SLunsheng WangMPC8540EVAL_33_config \
1541b0e32949SLunsheng WangMPC8540EVAL_66_config \
1542b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
1543b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:      unconfig
1544*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1545*f9328639SMarian Balakowicz	@echo "" >$(obj)include/config.h ; \
1546b0e32949SLunsheng Wang	if [ "$(findstring _33_,$@)" ] ; then \
1547b0e32949SLunsheng Wang		echo -n "... 33 MHz PCI" ; \
1548b0e32949SLunsheng Wang	else \
1549*f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1550b0e32949SLunsheng Wang		echo -n "... 66 MHz PCI" ; \
1551b0e32949SLunsheng Wang	fi ; \
1552b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
1553*f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1554b0e32949SLunsheng Wang		echo " slave" ; \
1555b0e32949SLunsheng Wang	else \
1556b0e32949SLunsheng Wang		echo " host" ; \
1557b0e32949SLunsheng Wang	fi
1558*f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1559b0e32949SLunsheng Wang
156042d1f039SwdenkMPC8560ADS_config:	unconfig
1561*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
156242d1f039Swdenk
156303f5c550SwdenkMPC8541CDS_config:	unconfig
1564*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8541cds cds
156503f5c550Swdenk
1566d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
1567*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8548cds cds
1568d9b94f28SJon Loeliger
156903f5c550SwdenkMPC8555CDS_config:	unconfig
1570*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8555cds cds
15717abf0c58Swdenk
1572384cc687SwdenkPM854_config:	unconfig
1573*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
1574384cc687Swdenk
1575b20d0032SWolfgang DenkPM856_config:	unconfig
1576*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
1577b20d0032SWolfgang Denk
1578c15f3120Swdenksbc8540_config \
1579c15f3120Swdenksbc8540_33_config \
1580c15f3120Swdenksbc8540_66_config:	unconfig
1581*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1582c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
1583*f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
1584c15f3120Swdenk		echo "... 66 MHz PCI" ; \
1585c15f3120Swdenk	else \
1586*f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1587c15f3120Swdenk		echo "... 33 MHz PCI" ; \
1588c15f3120Swdenk	fi
1589*f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
1590c15f3120Swdenk
1591466b7410Swdenksbc8560_config \
1592466b7410Swdenksbc8560_33_config \
1593466b7410Swdenksbc8560_66_config:      unconfig
1594*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
15958b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
1596*f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
15978b07a110Swdenk		echo "... 66 MHz PCI" ; \
15988b07a110Swdenk	else \
1599*f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
16008b07a110Swdenk		echo "... 33 MHz PCI" ; \
16018b07a110Swdenk	fi
1602*f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
16038b07a110Swdenk
160403f5c550Swdenkstxgp3_config:		unconfig
1605*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
160603f5c550Swdenk
1607d96f41e0SStefan RoeseTQM8540_config		\
1608d96f41e0SStefan RoeseTQM8541_config		\
1609d96f41e0SStefan RoeseTQM8555_config		\
1610f5c5ef4aSwdenkTQM8560_config:		unconfig
1611*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1612a889bd27SWolfgang Denk	@CTYPE=$(subst TQM,,$(@:_config=)); \
1613*f9328639SMarian Balakowicz	>$(obj)include/config.h ; \
1614d96f41e0SStefan Roese	echo "... TQM"$${CTYPE}; \
1615*f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1616*f9328639SMarian Balakowicz	echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
1617*f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1618*f9328639SMarian Balakowicz	echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
1619*f9328639SMarian Balakowicz	echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>$(obj)include/config.h
1620*f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
1621f5c5ef4aSwdenk
162242d1f039Swdenk#########################################################################
16237ebf7443Swdenk## 74xx/7xx Systems
16247ebf7443Swdenk#########################################################################
16257ebf7443Swdenk
1626c7de829cSwdenkAmigaOneG3SE_config:	unconfig
1627*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1628c7de829cSwdenk
162915647dc7SwdenkBAB7xx_config: unconfig
1630*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
163115647dc7Swdenk
1632c419d1d6SstroeseCPCI750_config:        unconfig
1633*f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
1634c419d1d6Sstroese
16353a473b2aSwdenkDB64360_config:  unconfig
1636*f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
16373a473b2aSwdenk
16383a473b2aSwdenkDB64460_config:  unconfig
1639*f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
16403a473b2aSwdenk
164115647dc7SwdenkELPPC_config: unconfig
1642*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
164315647dc7Swdenk
16447ebf7443SwdenkEVB64260_config	\
16457ebf7443SwdenkEVB64260_750CX_config:	unconfig
1646*f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
16477ebf7443Swdenk
164815647dc7SwdenkP3G4_config: unconfig
1649*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
16507ebf7443Swdenk
16517ebf7443SwdenkPCIPPC2_config \
16527ebf7443SwdenkPCIPPC6_config: unconfig
1653*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
16547ebf7443Swdenk
165515647dc7SwdenkZUMA_config:	unconfig
1656*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
165712f34241Swdenk
1658f5e0d039SHeiko Schocherppmc7xx_config: unconfig
1659*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
1660f5e0d039SHeiko Schocher
16617ebf7443Swdenk#========================================================================
16627ebf7443Swdenk# ARM
16637ebf7443Swdenk#========================================================================
16647ebf7443Swdenk#########################################################################
16657ebf7443Swdenk## StrongARM Systems
16667ebf7443Swdenk#########################################################################
16677ebf7443Swdenk
1668ea66bc88Swdenkassabet_config	:	unconfig
1669*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
1670ea66bc88Swdenk
16717ebf7443Swdenkdnp1110_config	:	unconfig
1672*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
16737ebf7443Swdenk
1674855a496fSwdenkgcplus_config	:	unconfig
1675*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
1676855a496fSwdenk
1677855a496fSwdenklart_config	:	unconfig
1678*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
1679855a496fSwdenk
16807ebf7443Swdenkshannon_config	:	unconfig
1681*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
16827ebf7443Swdenk
16837ebf7443Swdenk#########################################################################
16842e5983d2Swdenk## ARM92xT Systems
16857ebf7443Swdenk#########################################################################
16867ebf7443Swdenk
1687b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
168843d9616cSwdenk
16893ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
169063e73c9aSwdenk
1691a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1692a56bd922Swdenk
1693a85f9f21Swdenkat91rm9200dk_config	:	unconfig
1694*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1695a85f9f21Swdenk
1696a85f9f21Swdenkcmc_pu2_config	:	unconfig
1697*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1698a85f9f21Swdenk
1699645da510SWolfgang Denkcsb637_config	:	unconfig
1700*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
1701645da510SWolfgang Denk
17020e4018d2SWolfgang Denkmp2usb_config	:	unconfig
1703*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
17040e4018d2SWolfgang Denk
170587cb6862SWolfgang Denk
170674f4304eSWolfgang Denk########################################################################
170787cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
170887cb6862SWolfgang Denkintegratorap_config	\
170987cb6862SWolfgang Denkap_config		\
171087cb6862SWolfgang Denkap966_config		\
171187cb6862SWolfgang Denkap922_config		\
171287cb6862SWolfgang Denkap922_XA10_config	\
171387cb6862SWolfgang Denkap7_config		\
171487cb6862SWolfgang Denkap720t_config  		\
171587cb6862SWolfgang Denkap920t_config		\
171687cb6862SWolfgang Denkap926ejs_config		\
171787cb6862SWolfgang Denkap946es_config: unconfig
171896782c63SWolfgang Denk	@board/integratorap/split_by_variant.sh $@
17193d3befa7Swdenk
172087cb6862SWolfgang Denkintegratorcp_config	\
172187cb6862SWolfgang Denkcp_config		\
172287cb6862SWolfgang Denkcp920t_config		\
172387cb6862SWolfgang Denkcp926ejs_config		\
172487cb6862SWolfgang Denkcp946es_config		\
172587cb6862SWolfgang Denkcp1136_config		\
172687cb6862SWolfgang Denkcp966_config		\
172787cb6862SWolfgang Denkcp922_config		\
172887cb6862SWolfgang Denkcp922_XA10_config	\
172987cb6862SWolfgang Denkcp1026_config: unconfig
173096782c63SWolfgang Denk	@board/integratorcp/split_by_variant.sh $@
173125d6712aSwdenk
173299b0d285SWolfgang Denkkb9202_config	:	unconfig
1733*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
173499b0d285SWolfgang Denk
1735f832d8a1Swdenklpd7a400_config \
1736f832d8a1Swdenklpd7a404_config:	unconfig
1737*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
17383d3befa7Swdenk
1739281e00a3Swdenkmx1ads_config	:	unconfig
1740*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
1741281e00a3Swdenk
1742281e00a3Swdenkmx1fs2_config	:	unconfig
1743*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
1744281e00a3Swdenk
1745ac7eb8a3SWolfgang Denknetstar_32_config	\
1746ac7eb8a3SWolfgang Denknetstar_config:		unconfig
1747*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1748ac7eb8a3SWolfgang Denk	@if [ "$(findstring _32_,$@)" ] ; then \
1749ac7eb8a3SWolfgang Denk		echo "... 32MB SDRAM" ; \
1750*f9328639SMarian Balakowicz		echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
1751ac7eb8a3SWolfgang Denk	else \
1752ac7eb8a3SWolfgang Denk		echo "... 64MB SDRAM" ; \
1753*f9328639SMarian Balakowicz		echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
1754ac7eb8a3SWolfgang Denk	fi
1755*f9328639SMarian Balakowicz	@$(MKCONFIG) -a netstar arm arm925t netstar
1756ac7eb8a3SWolfgang Denk
17572e5983d2Swdenkomap1510inn_config :	unconfig
1758*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
17592e5983d2Swdenk
17601eaeb58eSwdenkomap5912osk_config :	unconfig
1761*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
17621eaeb58eSwdenk
176363e73c9aSwdenkomap1610inn_config \
176463e73c9aSwdenkomap1610inn_cs0boot_config \
176563e73c9aSwdenkomap1610inn_cs3boot_config \
17663ff02c27Swdenkomap1610inn_cs_autoboot_config \
176763e73c9aSwdenkomap1610h2_config \
176863e73c9aSwdenkomap1610h2_cs0boot_config \
17693ff02c27Swdenkomap1610h2_cs3boot_config \
17703ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
1771*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
177263e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
1773*f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> .$(obj)/include/config.h ; \
1774b79a11ccSwdenk		echo "... configured for CS0 boot"; \
17753ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
1776*f9328639SMarian Balakowicz		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)./include/config.h ; \
17773ff02c27Swdenk		echo "... configured for CS_AUTO boot"; \
177863e73c9aSwdenk	else \
1779*f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)./include/config.h ; \
1780b79a11ccSwdenk		echo "... configured for CS3 boot"; \
178163e73c9aSwdenk	fi;
1782*f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
17836f21347dSwdenk
1784a56bd922Swdenkomap730p2_config \
1785a56bd922Swdenkomap730p2_cs0boot_config \
1786a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
1787*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1788a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
1789*f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
1790a56bd922Swdenk		echo "... configured for CS0 boot"; \
1791a56bd922Swdenk	else \
1792*f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
1793a56bd922Swdenk		echo "... configured for CS3 boot"; \
1794a56bd922Swdenk	fi;
1795*f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
1796a56bd922Swdenk
179732cb2c70SWolfgang Denksbc2410x_config: unconfig
1798*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
179932cb2c70SWolfgang Denk
1800281e00a3Swdenkscb9328_config	:	unconfig
1801*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
1802281e00a3Swdenk
18037ebf7443Swdenksmdk2400_config	:	unconfig
1804*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
18057ebf7443Swdenk
18067ebf7443Swdenksmdk2410_config	:	unconfig
1807*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
18087ebf7443Swdenk
18092d24a3a7SwdenkSX1_config :		unconfig
1810*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t sx1
18112d24a3a7Swdenk
1812b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
181343d9616cSwdenktrab_config \
1814b0639ca3Swdenktrab_bigram_config \
1815b0639ca3Swdenktrab_bigflash_config \
1816f54ebdfaSwdenktrab_old_config:	unconfig
1817*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1818*f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
1819*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1820b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
1821*f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
1822*f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
1823b0639ca3Swdenk		  echo "... with 8 MB Flash, 32 MB RAM" ; \
1824b0639ca3Swdenk		}
1825b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
1826*f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
1827*f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
1828b0639ca3Swdenk		  echo "... with 16 MB Flash, 16 MB RAM" ; \
1829*f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
1830b0639ca3Swdenk		}
1831f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
1832*f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
1833*f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
1834b2001f27Swdenk		  echo "... with 8 MB Flash, 16 MB RAM" ; \
1835*f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
183643d9616cSwdenk		}
1837*f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
18387ebf7443Swdenk
18391cb8e980SwdenkVCMA9_config	:	unconfig
1840*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
18411cb8e980Swdenk
184287cb6862SWolfgang Denk#========================================================================
184387cb6862SWolfgang Denk# ARM supplied Versatile development boards
184487cb6862SWolfgang Denk#========================================================================
184587cb6862SWolfgang Denkversatile_config	\
184687cb6862SWolfgang Denkversatileab_config	\
184787cb6862SWolfgang Denkversatilepb_config :	unconfig
184896782c63SWolfgang Denk	@board/versatile/split_by_variant.sh $@
1849074cff0dSwdenk
18503c2b3d45Swdenkvoiceblue_smallflash_config	\
18513c2b3d45Swdenkvoiceblue_config:	unconfig
1852*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1853*f9328639SMarian Balakowicz	@mkdir -p $(obj)board/voiceblue
18543c2b3d45Swdenk	@if [ "$(findstring _smallflash_,$@)" ] ; then \
18553c2b3d45Swdenk		echo "... boot from lower flash bank" ; \
1856*f9328639SMarian Balakowicz		echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
1857*f9328639SMarian Balakowicz		echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
18583c2b3d45Swdenk	else \
18593c2b3d45Swdenk		echo "... boot from upper flash bank" ; \
1860*f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1861*f9328639SMarian Balakowicz		echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
18623c2b3d45Swdenk	fi
1863*f9328639SMarian Balakowicz	@$(MKCONFIG) -a voiceblue arm arm925t voiceblue
18643c2b3d45Swdenk
186516b013e7Swdenkcm4008_config	:	unconfig
1866*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
186716b013e7Swdenk
186816b013e7Swdenkcm41xx_config	:	unconfig
1869*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
187016b013e7Swdenk
18710c32d96dSWolfgang Denkgth2_config		: 	unconfig
1872*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1873*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1874*f9328639SMarian Balakowicz	@echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
1875*f9328639SMarian Balakowicz	@$(MKCONFIG) -a gth2 mips mips gth2
18760c32d96dSWolfgang Denk
1877074cff0dSwdenk#########################################################################
1878074cff0dSwdenk## S3C44B0 Systems
1879074cff0dSwdenk#########################################################################
1880074cff0dSwdenk
1881074cff0dSwdenkB2_config	:	unconfig
1882*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
1883074cff0dSwdenk
18847ebf7443Swdenk#########################################################################
18857ebf7443Swdenk## ARM720T Systems
18867ebf7443Swdenk#########################################################################
18877ebf7443Swdenk
1888c570b2fdSWolfgang Denkarmadillo_config:	unconfig
1889*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
1890c570b2fdSWolfgang Denk
18917ebf7443Swdenkep7312_config	:	unconfig
1892*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
18937ebf7443Swdenk
18942d24a3a7Swdenkimpa7_config	:	unconfig
1895*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
18962d24a3a7Swdenk
18972d1a537dSwdenkmodnet50_config :	unconfig
1898*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
18992d1a537dSwdenk
190039539887Swdenkevb4510_config :	unconfig
1901*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
190239539887Swdenk
19037ebf7443Swdenk#########################################################################
190443d9616cSwdenk## XScale Systems
19057ebf7443Swdenk#########################################################################
19067ebf7443Swdenk
190720787e23Swdenkadsvix_config	:	unconfig
1908*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa adsvix
190920787e23Swdenk
1910fabd46acSwdenkcerf250_config :	unconfig
1911*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
1912fabd46acSwdenk
19137ebf7443Swdenkcradle_config	:	unconfig
1914*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
19157ebf7443Swdenk
19167ebf7443Swdenkcsb226_config	:	unconfig
1917*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
19187ebf7443Swdenk
19190be248faSWolfgang Denkdelta_config :
1920*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
19210be248faSWolfgang Denk
192243d9616cSwdenkinnokom_config	:	unconfig
1923*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
192443d9616cSwdenk
19252d5b561eSwdenkixdp425_config	:	unconfig
1926*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
19272d5b561eSwdenk
1928ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
1929*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
1930ba94a1bbSWolfgang Denk
193143d9616cSwdenklubbock_config	:	unconfig
1932*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
193343d9616cSwdenk
19345720df78SHeiko Schocherpleb2_config	:	unconfig
1935*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
19365720df78SHeiko Schocher
193752f52c14Swdenklogodl_config	:	unconfig
1938*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
193952f52c14Swdenk
1940ba94a1bbSWolfgang Denkpdnb3_config	:	unconfig
1941*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp pdnb3 prodrive
1942ba94a1bbSWolfgang Denk
1943f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
1944*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
1945f57f70aaSWolfgang Denk
19463e38691eSwdenkwepep250_config	:	unconfig
1947*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
19483e38691eSwdenk
19494ec3a7f0Swdenkxaeniax_config	:	unconfig
1950*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
19514ec3a7f0Swdenk
1952efa329cbSwdenkxm250_config	:	unconfig
1953*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
1954efa329cbSwdenk
1955ca0e7748Swdenkxsengine_config :	unconfig
1956*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
1957ca0e7748Swdenk
1958e0269579SMarkus Klotzbücherzylonite_config :
1959*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
1960e0269579SMarkus Klotzbücher
19618ed96046Swdenk#########################################################################
19628ed96046Swdenk## ARM1136 Systems
19638ed96046Swdenk#########################################################################
19648ed96046Swdenkomap2420h4_config :    unconfig
1965*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
19668ed96046Swdenk
19672262cfeeSwdenk#========================================================================
19682262cfeeSwdenk# i386
19692262cfeeSwdenk#========================================================================
19702262cfeeSwdenk#########################################################################
19712262cfeeSwdenk## AMD SC520 CDP
19722262cfeeSwdenk#########################################################################
19732262cfeeSwdenksc520_cdp_config	:	unconfig
1974*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
19752262cfeeSwdenk
19767a8e9bedSwdenksc520_spunk_config	:	unconfig
1977*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
19787a8e9bedSwdenk
19797a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
1980*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
19817a8e9bedSwdenk
198243d9616cSwdenk#========================================================================
198343d9616cSwdenk# MIPS
198443d9616cSwdenk#========================================================================
19857ebf7443Swdenk#########################################################################
198643d9616cSwdenk## MIPS32 4Kc
198743d9616cSwdenk#########################################################################
198843d9616cSwdenk
1989e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
1990e0ac62d7Swdenk
1991e0ac62d7Swdenkincaip_100MHz_config	\
1992e0ac62d7Swdenkincaip_133MHz_config	\
1993e0ac62d7Swdenkincaip_150MHz_config	\
199443d9616cSwdenkincaip_config: unconfig
1995*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1996*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1997e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
1998*f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
1999e0ac62d7Swdenk		  echo "... with 100MHz system clock" ; \
2000e0ac62d7Swdenk		}
2001e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
2002*f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2003e0ac62d7Swdenk		  echo "... with 133MHz system clock" ; \
2004e0ac62d7Swdenk		}
2005e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
2006*f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2007e0ac62d7Swdenk		  echo "... with 150MHz system clock" ; \
2008e0ac62d7Swdenk		}
2009*f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2010e0ac62d7Swdenk
2011f4863a7aSwdenktb0229_config: unconfig
2012*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
2013f4863a7aSwdenk
2014e0ac62d7Swdenk#########################################################################
201569459791Swdenk## MIPS32 AU1X00
201669459791Swdenk#########################################################################
201769459791Swdenkdbau1000_config		: 	unconfig
2018*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2019*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2020*f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2021*f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
202269459791Swdenk
202369459791Swdenkdbau1100_config		: 	unconfig
2024*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2025*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2026*f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2027*f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
202869459791Swdenk
202969459791Swdenkdbau1500_config		: 	unconfig
2030*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2031*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2032*f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2033*f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
203469459791Swdenk
2035ff36fd85Swdenkdbau1550_config		:	unconfig
2036*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2037*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2038*f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2039*f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2040ff36fd85Swdenk
2041ff36fd85Swdenkdbau1550_el_config	:	unconfig
2042*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2043*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2044*f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2045*f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2046ff36fd85Swdenk
2047265817c7SWolfgang Denkpb1000_config		: 	unconfig
2048*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2049*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2050*f9328639SMarian Balakowicz	@echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2051*f9328639SMarian Balakowicz	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
2052265817c7SWolfgang Denk
205369459791Swdenk#########################################################################
2054e0ac62d7Swdenk## MIPS64 5Kc
2055e0ac62d7Swdenk#########################################################################
205643d9616cSwdenk
20573e38691eSwdenkpurple_config :		unconfig
2058*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
205943d9616cSwdenk
20604a551709Swdenk#========================================================================
20614a551709Swdenk# Nios
20624a551709Swdenk#========================================================================
20634a551709Swdenk#########################################################################
20644a551709Swdenk## Nios32
20654a551709Swdenk#########################################################################
20664a551709Swdenk
2067c935d3bdSwdenkDK1C20_safe_32_config		\
2068c935d3bdSwdenkDK1C20_standard_32_config	\
20694a551709SwdenkDK1C20_config:	unconfig
2070*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2071*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2072c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2073*f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2074c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
2075c935d3bdSwdenk		}
2076c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2077*f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2078c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
2079c935d3bdSwdenk		}
2080c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
2081*f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2082c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2083c935d3bdSwdenk		}
2084*f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2085c935d3bdSwdenk
2086c935d3bdSwdenkDK1S10_safe_32_config		\
2087c935d3bdSwdenkDK1S10_standard_32_config	\
2088ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
2089c935d3bdSwdenkDK1S10_config:	unconfig
2090*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2091*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2092c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2093*f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2094c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
2095c935d3bdSwdenk		}
2096c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2097*f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2098c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
2099c935d3bdSwdenk		}
2100ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2101*f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2102ec4c544bSwdenk		  echo "... NIOS 'mtx_ldk_20' configuration" ; \
2103ec4c544bSwdenk		}
2104c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
2105*f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2106c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2107c935d3bdSwdenk		}
2108*f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
21094a551709Swdenk
2110aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
2111aaf224abSwdenkADNPESC1_base_32_config		\
2112aaf224abSwdenkADNPESC1_config: unconfig
2113*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2114*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2115aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
2116*f9328639SMarian Balakowicz		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2117aaf224abSwdenk		  echo "... DNP/EVA2 configuration" ; \
2118aaf224abSwdenk		}
2119aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
2120*f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2121aaf224abSwdenk		  echo "... NIOS 'base_32' configuration" ; \
2122aaf224abSwdenk		}
2123aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2124*f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2125aaf224abSwdenk		  echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2126aaf224abSwdenk		}
2127*f9328639SMarian Balakowicz	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2128aaf224abSwdenk
21295c952cf0Swdenk#########################################################################
21305c952cf0Swdenk## Nios-II
21315c952cf0Swdenk#########################################################################
21325c952cf0Swdenk
21339cc83378SScott McNuttEP1C20_config : unconfig
2134*f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
21359cc83378SScott McNutt
21369cc83378SScott McNuttEP1S10_config : unconfig
2137*f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
21389cc83378SScott McNutt
21399cc83378SScott McNuttEP1S40_config : unconfig
2140*f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
21419cc83378SScott McNutt
21425c952cf0SwdenkPK1C20_config : unconfig
2143*f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
21445c952cf0Swdenk
21455c952cf0SwdenkPCI5441_config : unconfig
2146*f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
21474a551709Swdenk
2148507bbe3eSwdenk#========================================================================
2149507bbe3eSwdenk# MicroBlaze
2150507bbe3eSwdenk#========================================================================
2151507bbe3eSwdenk#########################################################################
2152507bbe3eSwdenk## Microblaze
2153507bbe3eSwdenk#########################################################################
2154507bbe3eSwdenksuzaku_config:	unconfig
2155*f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2156*f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2157*f9328639SMarian Balakowicz	@echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2158*f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2159507bbe3eSwdenk
21603e38691eSwdenk#########################################################################
21610afe519aSWolfgang Denk## Blackfin
21620afe519aSWolfgang Denk#########################################################################
21630afe519aSWolfgang Denkezkit533_config	:	unconfig
2164*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) blackfin bf533 ezkit533
21650afe519aSWolfgang Denk
21660afe519aSWolfgang Denkstamp_config	:	unconfig
2167*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) blackfin bf533 stamp
21680afe519aSWolfgang Denk
21690afe519aSWolfgang Denkdspstamp_config	:	unconfig
2170*f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) blackfin bf533 dsp_stamp
21710afe519aSWolfgang Denk
21720afe519aSWolfgang Denk#########################################################################
21730afe519aSWolfgang Denk#########################################################################
21743e38691eSwdenk#########################################################################
21757ebf7443Swdenk
21767ebf7443Swdenkclean:
2177*f9328639SMarian Balakowicz	find $(OBJTREE) -type f \
21787ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
21797ebf7443Swdenk		-o -name '*.o'  -o -name '*.a'  \) -print \
21807ebf7443Swdenk		| xargs rm -f
2181*f9328639SMarian Balakowicz	rm -f $(obj)examples/hello_world $(obj)examples/timer \
2182*f9328639SMarian Balakowicz	      $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2183*f9328639SMarian Balakowicz	      $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2184*f9328639SMarian Balakowicz	      $(obj)examples/smc91111_eeprom \
2185*f9328639SMarian Balakowicz	      $(obj)examples/test_burst
2186*f9328639SMarian Balakowicz	rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2187*f9328639SMarian Balakowicz		$(obj)tools/gen_eth_addr
2188*f9328639SMarian Balakowicz	rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2189*f9328639SMarian Balakowicz	rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2190*f9328639SMarian Balakowicz	rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2191*f9328639SMarian Balakowicz	rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2192*f9328639SMarian Balakowicz	rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2193*f9328639SMarian Balakowicz	rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2194*f9328639SMarian Balakowicz	rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2195*f9328639SMarian Balakowicz	rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2196*f9328639SMarian Balakowicz	rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2197*f9328639SMarian Balakowicz	rm -f $(obj)include/bmp_logo.h
21987ebf7443Swdenk
21997ebf7443Swdenkclobber:	clean
2200*f9328639SMarian Balakowicz	find $(OBJTREE) -type f \( -name .depend \
22014c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
22024c0d4c3bSwdenk		-print0 \
22034c0d4c3bSwdenk		| xargs -0 rm -f
2204*f9328639SMarian Balakowicz	rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2205*f9328639SMarian Balakowicz	rm -fr $(obj)*.*~
2206*f9328639SMarian Balakowicz	rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2207*f9328639SMarian Balakowicz	rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c
2208*f9328639SMarian Balakowicz	rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2209*f9328639SMarian Balakowicz	rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
22107ebf7443Swdenk
2211*f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
22127ebf7443Swdenkmrproper \
22137ebf7443Swdenkdistclean:	clobber unconfig
2214*f9328639SMarian Balakowiczelse
2215*f9328639SMarian Balakowiczmrproper \
2216*f9328639SMarian Balakowiczdistclean:	clobber unconfig
2217*f9328639SMarian Balakowicz	rm -rf $(OBJTREE)/*
2218*f9328639SMarian Balakowiczendif
22197ebf7443Swdenk
22207ebf7443Swdenkbackup:
22217ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
22227ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
22237ebf7443Swdenk
22247ebf7443Swdenk#########################################################################
2225