xref: /openbmc/u-boot/Makefile (revision 7a78f148d6a7298e4fface680dc7eacd877b1aba)
1 7ebf7443Swdenk#
2 881a87ecSWolfgang Denk# (C) Copyright 2000-2006
3 7ebf7443Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 7ebf7443Swdenk#
5 7ebf7443Swdenk# See file CREDITS for list of people who contributed to this
6 7ebf7443Swdenk# project.
7 7ebf7443Swdenk#
8 7ebf7443Swdenk# This program is free software; you can redistribute it and/or
9 7ebf7443Swdenk# modify it under the terms of the GNU General Public License as
10 45a212c4SWolfgang Denk# published by the Free Software Foundatio; either version 2 of
11 7ebf7443Swdenk# the License, or (at your option) any later version.
12 7ebf7443Swdenk#
13 7ebf7443Swdenk# This program is distributed in the hope that it will be useful,
14 7ebf7443Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of
15 7ebf7443Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 7ebf7443Swdenk# GNU General Public License for more details.
17 7ebf7443Swdenk#
18 7ebf7443Swdenk# You should have received a copy of the GNU General Public License
19 7ebf7443Swdenk# along with this program; if not, write to the Free Software
20 7ebf7443Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 7ebf7443Swdenk# MA 02111-1307 USA
22 7ebf7443Swdenk#
23 7ebf7443Swdenk
24 881a87ecSWolfgang DenkVERSION = 1
25 f4eb5452SWolfgang DenkPATCHLEVEL = 2
26 f4eb5452SWolfgang DenkSUBLEVEL = 0
27 881a87ecSWolfgang DenkEXTRAVERSION =
28 881a87ecSWolfgang DenkU_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
29 f9328639SMarian BalakowiczVERSION_FILE = $(obj)include/version_autogenerated.h
30 881a87ecSWolfgang Denk
31 7ebf7443SwdenkHOSTARCH := $(shell uname -m | \
32 7ebf7443Swdenk	sed -e s/i.86/i386/ \
33 7ebf7443Swdenk	    -e s/sun4u/sparc64/ \
34 7ebf7443Swdenk	    -e s/arm.*/arm/ \
35 7ebf7443Swdenk	    -e s/sa110/arm/ \
36 7ebf7443Swdenk	    -e s/powerpc/ppc/ \
37 7ebf7443Swdenk	    -e s/macppc/ppc/)
38 7ebf7443Swdenk
39 f9d77ed3SWolfgang DenkHOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
40 7ebf7443Swdenk	    sed -e 's/\(cygwin\).*/cygwin/')
41 7ebf7443Swdenk
42 f9d77ed3SWolfgang Denkexport	HOSTARCH HOSTOS
43 7ebf7443Swdenk
44 7ebf7443Swdenk# Deal with colliding definitions from tcsh etc.
45 7ebf7443SwdenkVENDOR=
46 7ebf7443Swdenk
47 7ebf7443Swdenk#########################################################################
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#
68 7ebf7443Swdenk
69 f9328639SMarian Balakowiczifdef O
70 f9328639SMarian Balakowiczifeq ("$(origin O)", "command line")
71 f9328639SMarian BalakowiczBUILD_DIR := $(O)
72 f9328639SMarian Balakowiczendif
73 f9328639SMarian Balakowiczendif
74 7ebf7443Swdenk
75 f9328639SMarian Balakowiczifneq ($(BUILD_DIR),)
76 f9328639SMarian Balakowiczsaved-output := $(BUILD_DIR)
77 4f0645ebSMarian Balakowicz
78 4f0645ebSMarian Balakowicz# Attempt to create a output directory.
79 4f0645ebSMarian Balakowicz$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
80 4f0645ebSMarian Balakowicz
81 4f0645ebSMarian Balakowicz# Verify if it was successful.
82 f9328639SMarian BalakowiczBUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
83 f9328639SMarian Balakowicz$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
84 f9328639SMarian Balakowiczendif # ifneq ($(BUILD_DIR),)
85 f9328639SMarian Balakowicz
86 f9328639SMarian BalakowiczOBJTREE		:= $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
87 f9328639SMarian BalakowiczSRCTREE		:= $(CURDIR)
88 f9328639SMarian BalakowiczTOPDIR		:= $(SRCTREE)
89 f9328639SMarian BalakowiczLNDIR		:= $(OBJTREE)
90 f9328639SMarian Balakowiczexport	TOPDIR SRCTREE OBJTREE
91 f9328639SMarian Balakowicz
92 f9328639SMarian BalakowiczMKCONFIG	:= $(SRCTREE)/mkconfig
93 f9328639SMarian Balakowiczexport MKCONFIG
94 f9328639SMarian Balakowicz
95 f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
96 f9328639SMarian BalakowiczREMOTE_BUILD	:= 1
97 f9328639SMarian Balakowiczexport REMOTE_BUILD
98 f9328639SMarian Balakowiczendif
99 f9328639SMarian Balakowicz
100 f9328639SMarian Balakowicz# $(obj) and (src) are defined in config.mk but here in main Makefile
101 f9328639SMarian Balakowicz# we also need them before config.mk is included which is the case for
102 f9328639SMarian Balakowicz# some targets like unconfig, clean, clobber, distclean, etc.
103 f9328639SMarian Balakowiczifneq ($(OBJTREE),$(SRCTREE))
104 f9328639SMarian Balakowiczobj := $(OBJTREE)/
105 f9328639SMarian Balakowiczsrc := $(SRCTREE)/
106 f9328639SMarian Balakowiczelse
107 f9328639SMarian Balakowiczobj :=
108 f9328639SMarian Balakowiczsrc :=
109 f9328639SMarian Balakowiczendif
110 f9328639SMarian Balakowiczexport obj src
111 f9328639SMarian Balakowicz
112 f9328639SMarian Balakowicz#########################################################################
113 f9328639SMarian Balakowicz
114 f9328639SMarian Balakowiczifeq ($(OBJTREE)/include/config.mk,$(wildcard $(OBJTREE)/include/config.mk))
115 f9328639SMarian Balakowicz
116 7ebf7443Swdenk# load ARCH, BOARD, and CPU configuration
117 f9328639SMarian Balakowiczinclude $(OBJTREE)/include/config.mk
118 1d9f4105Swdenkexport	ARCH CPU BOARD VENDOR SOC
119 f9328639SMarian Balakowicz
120 7ebf7443Swdenkifndef CROSS_COMPILE
121 7ebf7443Swdenkifeq ($(HOSTARCH),ppc)
122 7ebf7443SwdenkCROSS_COMPILE =
123 7ebf7443Swdenkelse
124 7ebf7443Swdenkifeq ($(ARCH),ppc)
125 f046ccd1SEran LibertyCROSS_COMPILE = powerpc-linux-
126 7ebf7443Swdenkendif
127 7ebf7443Swdenkifeq ($(ARCH),arm)
128 dc7c9a1aSwdenkCROSS_COMPILE = arm-linux-
129 7ebf7443Swdenkendif
130 2262cfeeSwdenkifeq ($(ARCH),i386)
131 7a8e9bedSwdenkifeq ($(HOSTARCH),i386)
132 7a8e9bedSwdenkCROSS_COMPILE =
133 7a8e9bedSwdenkelse
134 7a8e9bedSwdenkCROSS_COMPILE = i386-linux-
135 7a8e9bedSwdenkendif
136 2262cfeeSwdenkendif
137 43d9616cSwdenkifeq ($(ARCH),mips)
138 43d9616cSwdenkCROSS_COMPILE = mips_4KC-
139 43d9616cSwdenkendif
140 4a551709Swdenkifeq ($(ARCH),nios)
141 4a551709SwdenkCROSS_COMPILE = nios-elf-
142 4a551709Swdenkendif
143 5c952cf0Swdenkifeq ($(ARCH),nios2)
144 5c952cf0SwdenkCROSS_COMPILE = nios2-elf-
145 5c952cf0Swdenkendif
146 4e5ca3ebSwdenkifeq ($(ARCH),m68k)
147 4e5ca3ebSwdenkCROSS_COMPILE = m68k-elf-
148 4e5ca3ebSwdenkendif
149 507bbe3eSwdenkifeq ($(ARCH),microblaze)
150 507bbe3eSwdenkCROSS_COMPILE = mb-
151 507bbe3eSwdenkendif
152 0afe519aSWolfgang Denkifeq ($(ARCH),blackfin)
153 0afe519aSWolfgang DenkCROSS_COMPILE = bfin-elf-
154 0afe519aSWolfgang Denkendif
155 7b64fef3SWolfgang Denkifeq ($(ARCH),avr32)
156 7b64fef3SWolfgang DenkCROSS_COMPILE = avr32-
157 7b64fef3SWolfgang Denkendif
158 7ebf7443Swdenkendif
159 7ebf7443Swdenkendif
160 7ebf7443Swdenk
161 7ebf7443Swdenkexport	CROSS_COMPILE
162 7ebf7443Swdenk
163 92b197f0SWolfgang Denk# load other configuration
164 92b197f0SWolfgang Denkinclude $(TOPDIR)/config.mk
165 92b197f0SWolfgang Denk
166 7ebf7443Swdenk#########################################################################
167 7ebf7443Swdenk# U-Boot objects....order is important (i.e. start must be first)
168 7ebf7443Swdenk
169 7ebf7443SwdenkOBJS  = cpu/$(CPU)/start.o
170 2262cfeeSwdenkifeq ($(CPU),i386)
171 2262cfeeSwdenkOBJS += cpu/$(CPU)/start16.o
172 2262cfeeSwdenkOBJS += cpu/$(CPU)/reset.o
173 2262cfeeSwdenkendif
174 7ebf7443Swdenkifeq ($(CPU),ppc4xx)
175 7ebf7443SwdenkOBJS += cpu/$(CPU)/resetvec.o
176 7ebf7443Swdenkendif
177 42d1f039Swdenkifeq ($(CPU),mpc85xx)
178 42d1f039SwdenkOBJS += cpu/$(CPU)/resetvec.o
179 42d1f039Swdenkendif
180 debb7354SJon Loeligerifeq ($(CPU),mpc86xx)
181 debb7354SJon LoeligerOBJS += cpu/$(CPU)/resetvec.o
182 debb7354SJon Loeligerendif
183 0afe519aSWolfgang Denkifeq ($(CPU),bf533)
184 0afe519aSWolfgang DenkOBJS += cpu/$(CPU)/start1.o	cpu/$(CPU)/interrupt.o	cpu/$(CPU)/cache.o
185 0afe519aSWolfgang DenkOBJS += cpu/$(CPU)/cplbhdlr.o	cpu/$(CPU)/cplbmgr.o	cpu/$(CPU)/flush.o
186 0afe519aSWolfgang Denkendif
187 7ebf7443Swdenk
188 f9328639SMarian BalakowiczOBJS := $(addprefix $(obj),$(OBJS))
189 f9328639SMarian Balakowicz
190 9fd5e31fSwdenkLIBS  = lib_generic/libgeneric.a
191 9fd5e31fSwdenkLIBS += board/$(BOARDDIR)/lib$(BOARD).a
192 7ebf7443SwdenkLIBS += cpu/$(CPU)/lib$(CPU).a
193 1d9f4105Swdenkifdef SOC
194 1d9f4105SwdenkLIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
195 1d9f4105Swdenkendif
196 7ebf7443SwdenkLIBS += lib_$(ARCH)/lib$(ARCH).a
197 518e2e1aSwdenkLIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
198 c419d1d6Sstroese	fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
199 7ebf7443SwdenkLIBS += net/libnet.a
200 7ebf7443SwdenkLIBS += disk/libdisk.a
201 7ebf7443SwdenkLIBS += rtc/librtc.a
202 7ebf7443SwdenkLIBS += dtt/libdtt.a
203 7ebf7443SwdenkLIBS += drivers/libdrivers.a
204 6db39708SMarian BalakowiczLIBS += drivers/nand/libnand.a
205 6db39708SMarian BalakowiczLIBS += drivers/nand_legacy/libnand_legacy.a
206 7737d5c6SDave Liuifeq ($(CPU),mpc83xx)
207 7737d5c6SDave LiuLIBS += drivers/qe/qe.a
208 7737d5c6SDave Liuendif
209 7152b1d0SwdenkLIBS += drivers/sk98lin/libsk98lin.a
210 7ebf7443SwdenkLIBS += post/libpost.a post/cpu/libcpu.a
211 7ebf7443SwdenkLIBS += common/libcommon.a
212 038ccac5SBartlomiej SiekaLIBS += $(BOARDLIBS)
213 f9328639SMarian Balakowicz
214 f9328639SMarian BalakowiczLIBS := $(addprefix $(obj),$(LIBS))
215 9fd5e31fSwdenk.PHONY : $(LIBS)
216 a8c7c708Swdenk
217 4f7cb08eSwdenk# Add GCC lib
218 1a344f29SwdenkPLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
219 3d3befa7Swdenk
220 a8c7c708Swdenk# The "tools" are needed early, so put this first
221 a8c7c708Swdenk# Don't include stuff already done in $(LIBS)
222 a8c7c708SwdenkSUBDIRS	= tools \
223 a8c7c708Swdenk	  examples \
224 a8c7c708Swdenk	  post \
225 a8c7c708Swdenk	  post/cpu
226 b028f715Swdenk.PHONY : $(SUBDIRS)
227 a8c7c708Swdenk
228 887e2ec9SStefan Roeseifeq ($(CONFIG_NAND_U_BOOT),y)
229 887e2ec9SStefan RoeseNAND_SPL = nand_spl
230 887e2ec9SStefan RoeseU_BOOT_NAND = $(obj)u-boot-nand.bin
231 887e2ec9SStefan Roeseendif
232 887e2ec9SStefan Roese
233 f9328639SMarian Balakowicz__OBJS := $(subst $(obj),,$(OBJS))
234 f9328639SMarian Balakowicz__LIBS := $(subst $(obj),,$(LIBS))
235 f9328639SMarian Balakowicz
236 7ebf7443Swdenk#########################################################################
237 bdccc4feSwdenk#########################################################################
238 7ebf7443Swdenk
239 887e2ec9SStefan RoeseALL = $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND)
240 7ebf7443Swdenk
241 bdccc4feSwdenkall:		$(ALL)
242 7ebf7443Swdenk
243 f9328639SMarian Balakowicz$(obj)u-boot.hex:	$(obj)u-boot
244 6310eb9dSwdenk		$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
245 6310eb9dSwdenk
246 f9328639SMarian Balakowicz$(obj)u-boot.srec:	$(obj)u-boot
247 7ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
248 7ebf7443Swdenk
249 f9328639SMarian Balakowicz$(obj)u-boot.bin:	$(obj)u-boot
250 7ebf7443Swdenk		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
251 7ebf7443Swdenk
252 f9328639SMarian Balakowicz$(obj)u-boot.img:	$(obj)u-boot.bin
253 bdccc4feSwdenk		./tools/mkimage -A $(ARCH) -T firmware -C none \
254 bdccc4feSwdenk		-a $(TEXT_BASE) -e 0 \
255 881a87ecSWolfgang Denk		-n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
256 bdccc4feSwdenk			sed -e 's/"[	 ]*$$/ for $(BOARD) board"/') \
257 bdccc4feSwdenk		-d $< $@
258 bdccc4feSwdenk
259 f9328639SMarian Balakowicz$(obj)u-boot.dis:	$(obj)u-boot
260 7ebf7443Swdenk		$(OBJDUMP) -d $< > $@
261 7ebf7443Swdenk
262 f9328639SMarian Balakowicz$(obj)u-boot:		depend version $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
263 8bde7f77Swdenk		UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
264 f9328639SMarian Balakowicz		cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
265 f9328639SMarian Balakowicz			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
266 b2184c31Swdenk			-Map u-boot.map -o u-boot
267 7ebf7443Swdenk
268 f9328639SMarian Balakowicz$(OBJS):
269 f9328639SMarian Balakowicz		$(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
270 f9328639SMarian Balakowicz
271 a8c7c708Swdenk$(LIBS):
272 f9328639SMarian Balakowicz		$(MAKE) -C $(dir $(subst $(obj),,$@))
273 a8c7c708Swdenk
274 a8c7c708Swdenk$(SUBDIRS):
275 b028f715Swdenk		$(MAKE) -C $@ all
276 7ebf7443Swdenk
277 887e2ec9SStefan Roese$(NAND_SPL):	version
278 8318fbf8SMarian Balakowicz		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
279 887e2ec9SStefan Roese
280 887e2ec9SStefan Roese$(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin
281 8318fbf8SMarian Balakowicz		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
282 887e2ec9SStefan Roese
283 881a87ecSWolfgang Denkversion:
284 881a87ecSWolfgang Denk		@echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
285 881a87ecSWolfgang Denk		echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
286 881a87ecSWolfgang Denk		echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
287 881a87ecSWolfgang Denk			 $(TOPDIR)) >> $(VERSION_FILE); \
288 881a87ecSWolfgang Denk		echo "\"" >> $(VERSION_FILE)
289 881a87ecSWolfgang Denk
290 8f713fdfSdzugdbtools:
291 f9328639SMarian Balakowicz		$(MAKE) -C tools/gdb all || exit 1
292 f9328639SMarian Balakowicz
293 f9328639SMarian Balakowiczupdater:
294 f9328639SMarian Balakowicz		$(MAKE) -C tools/updater all || exit 1
295 f9328639SMarian Balakowicz
296 f9328639SMarian Balakowiczenv:
297 f9328639SMarian Balakowicz		$(MAKE) -C tools/env all || exit 1
298 8f713fdfSdzu
299 7ebf7443Swdenkdepend dep:
300 f9328639SMarian Balakowicz		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
301 7ebf7443Swdenk
302 f9328639SMarian Balakowicztags ctags:
303 f9328639SMarian Balakowicz		ctags -w -o $(OBJTREE)/ctags `find $(SUBDIRS) include \
304 bda6c8aeSwdenk				lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
305 bda6c8aeSwdenk				fs/cramfs fs/fat fs/fdos fs/jffs2 \
306 bda6c8aeSwdenk				net disk rtc dtt drivers drivers/sk98lin common \
307 7ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
308 7ebf7443Swdenk
309 7ebf7443Swdenketags:
310 f9328639SMarian Balakowicz		etags -a -o $(OBJTREE)/etags `find $(SUBDIRS) include \
311 eedcd078Swdenk				lib_generic board/$(BOARDDIR) cpu/$(CPU) lib_$(ARCH) \
312 eedcd078Swdenk				fs/cramfs fs/fat fs/fdos fs/jffs2 \
313 eedcd078Swdenk				net disk rtc dtt drivers drivers/sk98lin common \
314 7ebf7443Swdenk			\( -name CVS -prune \) -o \( -name '*.[ch]' -print \)`
315 7ebf7443Swdenk
316 f9328639SMarian Balakowicz$(obj)System.map:	$(obj)u-boot
317 7ebf7443Swdenk		@$(NM) $< | \
318 7ebf7443Swdenk		grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
319 f9328639SMarian Balakowicz		sort > $(obj)System.map
320 7ebf7443Swdenk
321 7ebf7443Swdenk#########################################################################
322 7ebf7443Swdenkelse
323 f9328639SMarian Balakowiczall $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
324 f9328639SMarian Balakowicz$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
325 f9328639SMarian Balakowicz$(SUBDIRS) version gdbtools updater env depend \
326 f9328639SMarian Balakowiczdep tags ctags etags $(obj)System.map:
327 7ebf7443Swdenk	@echo "System not configured - see README" >&2
328 7ebf7443Swdenk	@ exit 1
329 7ebf7443Swdenkendif
330 7ebf7443Swdenk
331 4e53a258SWolfgang Denk.PHONY : CHANGELOG
332 4e53a258SWolfgang DenkCHANGELOG:
333 b985b5d6SBen Warren	git log --no-merges U-Boot-1_1_5.. | \
334 b985b5d6SBen Warren	unexpand -a | sed -e 's/\s\s*$$//' > $@
335 4e53a258SWolfgang Denk
336 7ebf7443Swdenk#########################################################################
337 7ebf7443Swdenk
338 7ebf7443Swdenkunconfig:
339 887e2ec9SStefan Roese	@rm -f $(obj)include/config.h $(obj)include/config.mk \
340 887e2ec9SStefan Roese		$(obj)board/*/config.tmp $(obj)board/*/*/config.tmp
341 7ebf7443Swdenk
342 7ebf7443Swdenk#========================================================================
343 7ebf7443Swdenk# PowerPC
344 7ebf7443Swdenk#========================================================================
345 0db5bca8Swdenk
346 0db5bca8Swdenk#########################################################################
347 0db5bca8Swdenk## MPC5xx Systems
348 0db5bca8Swdenk#########################################################################
349 0db5bca8Swdenk
350 5e5f9ed2Swdenkcanmb_config:	unconfig
351 f9328639SMarian Balakowicz	@$(MKCONFIG) -a canmb ppc mpc5xxx canmb
352 5e5f9ed2Swdenk
353 0db5bca8Swdenkcmi_mpc5xx_config:	unconfig
354 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
355 0db5bca8Swdenk
356 b6e4c403SwdenkPATI_config:		unconfig
357 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
358 b6e4c403Swdenk
359 7ebf7443Swdenk#########################################################################
360 945af8d7Swdenk## MPC5xxx Systems
361 945af8d7Swdenk#########################################################################
362 a87589daSwdenk
363 dafba16eSWolfgang Denkaev_config: unconfig
364 f9328639SMarian Balakowicz	@$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
365 dafba16eSWolfgang Denk
366 6ca24c64Sdzu@denx.deBC3450_config:	unconfig
367 f9328639SMarian Balakowicz	@$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
368 6ca24c64Sdzu@denx.de
369 5e4b3361SStefan Roesecpci5200_config:  unconfig
370 f9328639SMarian Balakowicz	@$(MKCONFIG) -a cpci5200  ppc mpc5xxx cpci5200 esd
371 5e4b3361SStefan Roese
372 a87589daSwdenkhmi1001_config:         unconfig
373 f9328639SMarian Balakowicz	@$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
374 a87589daSwdenk
375 e35745bbSwdenkLite5200_config				\
376 e35745bbSwdenkLite5200_LOWBOOT_config			\
377 e35745bbSwdenkLite5200_LOWBOOT08_config		\
378 e35745bbSwdenkicecube_5200_config			\
379 e35745bbSwdenkicecube_5200_LOWBOOT_config		\
380 e35745bbSwdenkicecube_5200_LOWBOOT08_config		\
381 b2001f27Swdenkicecube_5200_DDR_config			\
382 79d696fcSwdenkicecube_5200_DDR_LOWBOOT_config		\
383 79d696fcSwdenkicecube_5200_DDR_LOWBOOT08_config	\
384 e35745bbSwdenkicecube_5100_config:			unconfig
385 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
386 f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
387 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
388 17d704ebSwdenk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
389 17d704ebSwdenk		{ if [ "$(findstring DDR,$@)" ] ; \
390 f9328639SMarian Balakowicz			then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
391 f9328639SMarian Balakowicz			else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
392 17d704ebSwdenk		  fi ; \
393 5cf9da48Swdenk		  echo "... with LOWBOOT configuration" ; \
394 5cf9da48Swdenk		}
395 5cf9da48Swdenk	@[ -z "$(findstring LOWBOOT08,$@)" ] || \
396 f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
397 5cf9da48Swdenk		  echo "... with 8 MB flash only" ; \
398 17d704ebSwdenk		  echo "... with LOWBOOT configuration" ; \
399 5cf9da48Swdenk		}
400 b2001f27Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
401 f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
402 b2001f27Swdenk		  echo "... DDR memory revision" ; \
403 b2001f27Swdenk		}
404 d4ca31c4Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
405 f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
406 d4ca31c4Swdenk		  echo "... with MPC5200 processor" ; \
407 d4ca31c4Swdenk		}
408 a0f2fe52Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
409 f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
410 945af8d7Swdenk		  echo "... with MGT5100 processor" ; \
411 945af8d7Swdenk		}
412 f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
413 945af8d7Swdenk
414 4707fb50SBartlomiej Siekav38b_config: unconfig
415 82d9c9ecSBartlomiej Sieka	@./mkconfig -a v38b ppc mpc5xxx v38b
416 4707fb50SBartlomiej Sieka
417 138ff60cSwdenkinka4x0_config:	unconfig
418 f9328639SMarian Balakowicz	@$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
419 138ff60cSwdenk
420 09e4b0c5SWolfgang Denklite5200b_config	\
421 09e4b0c5SWolfgang Denklite5200b_LOWBOOT_config:	unconfig
422 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
423 f9328639SMarian Balakowicz	@mkdir -p $(obj)board/icecube
424 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
425 f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h
426 09e4b0c5SWolfgang Denk	@ echo "... DDR memory revision"
427 f9328639SMarian Balakowicz	@ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h
428 f9328639SMarian Balakowicz	@ echo "#define CONFIG_LITE5200B"	>>$(obj)include/config.h
429 09e4b0c5SWolfgang Denk	@[ -z "$(findstring LOWBOOT_,$@)" ] || \
430 f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
431 09e4b0c5SWolfgang Denk		  echo "... with LOWBOOT configuration" ; \
432 09e4b0c5SWolfgang Denk		}
433 09e4b0c5SWolfgang Denk	@ echo "... with MPC5200B processor"
434 f9328639SMarian Balakowicz	@$(MKCONFIG) -a IceCube  ppc mpc5xxx icecube
435 09e4b0c5SWolfgang Denk
436 f1ee9825SStefan Roesemcc200_config	\
437 ed1cf845SWolfgang Denkmcc200_SDRAM_config	\
438 ed1cf845SWolfgang Denkmcc200_highboot_config	\
439 ed1cf845SWolfgang Denkmcc200_COM12_config	\
440 ed1cf845SWolfgang Denkmcc200_COM12_SDRAM_config	\
441 113f64e0SWolfgang Denkmcc200_COM12_highboot_config	\
442 113f64e0SWolfgang Denkmcc200_COM12_highboot_SDRAM_config	\
443 ed1cf845SWolfgang Denkmcc200_highboot_SDRAM_config	\
444 ed1cf845SWolfgang Denkprs200_config	\
445 ed1cf845SWolfgang Denkprs200_DDR_config	\
446 ed1cf845SWolfgang Denkprs200_highboot_config	\
447 ed1cf845SWolfgang Denkprs200_highboot_DDR_config:	unconfig
448 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
449 f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mcc200
450 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
451 4819fad9SWolfgang Denk	@[ -n "$(findstring highboot,$@)" ] || \
452 4819fad9SWolfgang Denk		{ echo "... with lowboot configuration" ; \
453 f1ee9825SStefan Roese		}
454 4819fad9SWolfgang Denk	@[ -z "$(findstring highboot,$@)" ] || \
455 f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
456 4819fad9SWolfgang Denk		  echo "... with highboot configuration" ; \
457 4819fad9SWolfgang Denk		}
458 4819fad9SWolfgang Denk	@[ -n "$(findstring _SDRAM,$@)" ] || \
459 ed1cf845SWolfgang Denk		{ if [ -n "$(findstring mcc200,$@)" ]; \
460 ed1cf845SWolfgang Denk		  then \
461 ed1cf845SWolfgang Denk			echo "... with DDR" ; \
462 ed1cf845SWolfgang Denk		  else \
463 ed1cf845SWolfgang Denk			if [ -n "$(findstring _DDR,$@)" ];\
464 ed1cf845SWolfgang Denk			then \
465 ed1cf845SWolfgang Denk				echo "... with DDR" ; \
466 ed1cf845SWolfgang Denk			else \
467 f9328639SMarian Balakowicz				echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
468 ed1cf845SWolfgang Denk				echo "... with SDRAM" ; \
469 ed1cf845SWolfgang Denk			fi; \
470 ed1cf845SWolfgang Denk		  fi; \
471 4819fad9SWolfgang Denk		}
472 4819fad9SWolfgang Denk	@[ -z "$(findstring _SDRAM,$@)" ] || \
473 f9328639SMarian Balakowicz		{ echo "#define CONFIG_MCC200_SDRAM"	>>$(obj)include/config.h ; \
474 4819fad9SWolfgang Denk		  echo "... with SDRAM" ; \
475 4819fad9SWolfgang Denk		}
476 463764c8SWolfgang Denk	@[ -z "$(findstring COM12,$@)" ] || \
477 f9328639SMarian Balakowicz		{ echo "#define CONFIG_CONSOLE_COM12"	>>$(obj)include/config.h ; \
478 463764c8SWolfgang Denk		  echo "... with console on COM12" ; \
479 463764c8SWolfgang Denk		}
480 ed1cf845SWolfgang Denk	@[ -z "$(findstring prs200,$@)" ] || \
481 f9328639SMarian Balakowicz		{ echo "#define CONFIG_PRS200"  >>$(obj)include/config.h ;\
482 ed1cf845SWolfgang Denk		}
483 f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
484 86ea5f93SWolfgang Denk
485 8b7d1f0aSStefan Roesemecp5200_config:  unconfig
486 8b7d1f0aSStefan Roese	@$(MKCONFIG) -a mecp5200  ppc mpc5xxx mecp5200 esd
487 8b7d1f0aSStefan Roese
488 df04a3dfSWolfgang Denko2dnt_config:
489 f9328639SMarian Balakowicz	@$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
490 df04a3dfSWolfgang Denk
491 5e4b3361SStefan Roesepf5200_config:  unconfig
492 f9328639SMarian Balakowicz	@$(MKCONFIG) pf5200  ppc mpc5xxx pf5200 esd
493 5e4b3361SStefan Roese
494 89394047SwdenkPM520_config \
495 89394047SwdenkPM520_DDR_config \
496 89394047SwdenkPM520_ROMBOOT_config \
497 89394047SwdenkPM520_ROMBOOT_DDR_config:	unconfig
498 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
499 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
500 89394047Swdenk	@[ -z "$(findstring DDR,$@)" ] || \
501 f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200_DDR"	>>$(obj)include/config.h ; \
502 89394047Swdenk		  echo "... DDR memory revision" ; \
503 89394047Swdenk		}
504 89394047Swdenk	@[ -z "$(findstring ROMBOOT,$@)" ] || \
505 f9328639SMarian Balakowicz		{ echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
506 89394047Swdenk		  echo "... booting from 8-bit flash" ; \
507 89394047Swdenk		}
508 f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
509 89394047Swdenk
510 6624b687SWolfgang Denksmmaco4_config: unconfig
511 f9328639SMarian Balakowicz	@$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
512 9cdc8386SWolfgang Denk
513 9cdc8386SWolfgang Denkspieval_config:	unconfig
514 f9328639SMarian Balakowicz	@$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
515 9cdc8386SWolfgang Denk
516 45a212c4SWolfgang DenkTB5200_B_config \
517 b87dfd28SWolfgang DenkTB5200_config:	unconfig
518 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
519 45a212c4SWolfgang Denk	@[ -z "$(findstring _B,$@)" ] || \
520 f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
521 45a212c4SWolfgang Denk		  echo "... with MPC5200B processor" ; \
522 45a212c4SWolfgang Denk		}
523 f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
524 b87dfd28SWolfgang Denk
525 d4ca31c4SwdenkMINI5200_config	\
526 d4ca31c4SwdenkEVAL5200_config	\
527 d4ca31c4SwdenkTOP5200_config:	unconfig
528 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
529 f9328639SMarian Balakowicz	@ echo "#define CONFIG_$(@:_config=) 1"	>$(obj)include/config.h
530 f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
531 d4ca31c4Swdenk
532 6c7a1408SwdenkTotal5100_config		\
533 6c7a1408SwdenkTotal5200_config		\
534 6c7a1408SwdenkTotal5200_lowboot_config	\
535 6c7a1408SwdenkTotal5200_Rev2_config		\
536 6c7a1408SwdenkTotal5200_Rev2_lowboot_config:	unconfig
537 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
538 f9328639SMarian Balakowicz	@mkdir -p $(obj)board/total5200
539 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
540 6c7a1408Swdenk	@[ -z "$(findstring 5100,$@)" ] || \
541 f9328639SMarian Balakowicz		{ echo "#define CONFIG_MGT5100"		>>$(obj)include/config.h ; \
542 6c7a1408Swdenk		  echo "... with MGT5100 processor" ; \
543 6c7a1408Swdenk		}
544 6c7a1408Swdenk	@[ -z "$(findstring 5200,$@)" ] || \
545 f9328639SMarian Balakowicz		{ echo "#define CONFIG_MPC5200"		>>$(obj)include/config.h ; \
546 6c7a1408Swdenk		  echo "... with MPC5200 processor" ; \
547 6c7a1408Swdenk		}
548 6c7a1408Swdenk	@[ -n "$(findstring Rev,$@)" ] || \
549 f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 1"	>>$(obj)include/config.h ; \
550 6c7a1408Swdenk		  echo "... revision 1 board" ; \
551 6c7a1408Swdenk		}
552 6c7a1408Swdenk	@[ -z "$(findstring Rev2_,$@)" ] || \
553 f9328639SMarian Balakowicz		{ echo "#define CONFIG_TOTAL5200_REV 2"	>>$(obj)include/config.h ; \
554 6c7a1408Swdenk		  echo "... revision 2 board" ; \
555 6c7a1408Swdenk		}
556 6c7a1408Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
557 f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
558 6c7a1408Swdenk		  echo "... with lowboot configuration" ; \
559 6c7a1408Swdenk		}
560 f9328639SMarian Balakowicz	@$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
561 6c7a1408Swdenk
562 5196a7a0SWolfgang Denkcam5200_config \
563 d9384de2SMarian Balakowiczcam5200_niosflash_config \
564 5196a7a0SWolfgang Denkfo300_config \
565 5196a7a0SWolfgang DenkMiniFAP_config \
566 5078cce8SWolfgang DenkTQM5200S_config \
567 5078cce8SWolfgang DenkTQM5200S_HIGHBOOT_config \
568 5196a7a0SWolfgang DenkTQM5200_B_config \
569 5196a7a0SWolfgang DenkTQM5200_B_HIGHBOOT_config \
570 5196a7a0SWolfgang DenkTQM5200_config	\
571 5196a7a0SWolfgang DenkTQM5200_STK100_config:	unconfig
572 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
573 f9328639SMarian Balakowicz	@mkdir -p $(obj)board/tqm5200
574 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
575 135ae006SWolfgang Denk	@[ -z "$(findstring cam5200,$@)" ] || \
576 f9328639SMarian Balakowicz		{ echo "#define CONFIG_CAM5200"	>>$(obj)include/config.h ; \
577 f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
578 f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
579 135ae006SWolfgang Denk		  echo "... TQM5200S on Cam5200" ; \
580 5078cce8SWolfgang Denk		}
581 d9384de2SMarian Balakowicz	@[ -z "$(findstring niosflash,$@)" ] || \
582 d9384de2SMarian Balakowicz		{ echo "#define CONFIG_CAM5200_NIOSFLASH"	>>$(obj)include/config.h ; \
583 d9384de2SMarian Balakowicz		  echo "... with NIOS flash driver" ; \
584 d9384de2SMarian Balakowicz		}
585 6d3bc9b8SMarian Balakowicz	@[ -z "$(findstring fo300,$@)" ] || \
586 f9328639SMarian Balakowicz		{ echo "#define CONFIG_FO300"	>>$(obj)include/config.h ; \
587 6d3bc9b8SMarian Balakowicz		  echo "... TQM5200 on FO300" ; \
588 6d3bc9b8SMarian Balakowicz		}
589 cd65a3dcSWolfgang Denk	@[ -z "$(findstring MiniFAP,$@)" ] || \
590 f9328639SMarian Balakowicz		{ echo "#define CONFIG_MINIFAP"	>>$(obj)include/config.h ; \
591 45a212c4SWolfgang Denk		  echo "... TQM5200_AC on MiniFAP" ; \
592 978b1096SWolfgang Denk		}
593 cd65a3dcSWolfgang Denk	@[ -z "$(findstring STK100,$@)" ] || \
594 f9328639SMarian Balakowicz		{ echo "#define CONFIG_STK52XX_REV100"	>>$(obj)include/config.h ; \
595 cd65a3dcSWolfgang Denk		  echo "... on a STK52XX.100 base board" ; \
596 56523f12Swdenk		}
597 5078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200_B,$@)" ] || \
598 f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
599 5078cce8SWolfgang Denk		}
600 5078cce8SWolfgang Denk	@[ -z "$(findstring TQM5200S,$@)" ] || \
601 f9328639SMarian Balakowicz		{ echo "#define CONFIG_TQM5200S"	>>$(obj)include/config.h ; \
602 f9328639SMarian Balakowicz		  echo "#define CONFIG_TQM5200_B"	>>$(obj)include/config.h ; \
603 45a212c4SWolfgang Denk		}
604 978b1096SWolfgang Denk	@[ -z "$(findstring HIGHBOOT,$@)" ] || \
605 f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
606 978b1096SWolfgang Denk		}
607 f9328639SMarian Balakowicz	@$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
608 6dedf3d4SHeiko Schocheruc101_config:         unconfig
609 6dedf3d4SHeiko Schocher	@$(MKCONFIG) uc101 ppc mpc5xxx uc101
610 53d4a498SBartlomiej Siekamotionpro_config:         unconfig
611 53d4a498SBartlomiej Sieka	@$(MKCONFIG) motionpro ppc mpc5xxx motionpro
612 53d4a498SBartlomiej Sieka
613 56523f12Swdenk
614 945af8d7Swdenk#########################################################################
615 7ebf7443Swdenk## MPC8xx Systems
616 7ebf7443Swdenk#########################################################################
617 7ebf7443Swdenk
618 2d24a3a7SwdenkAdder_config    \
619 2d24a3a7SwdenkAdder87x_config \
620 26238132SwdenkAdderII_config  \
621 2d24a3a7Swdenk	:		unconfig
622 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
623 26238132Swdenk	$(if $(findstring AdderII,$@), \
624 f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
625 f9328639SMarian Balakowicz	@$(MKCONFIG) -a Adder ppc mpc8xx adder
626 2d24a3a7Swdenk
627 180d3f74SwdenkADS860_config     \
628 180d3f74SwdenkFADS823_config    \
629 180d3f74SwdenkFADS850SAR_config \
630 180d3f74SwdenkMPC86xADS_config  \
631 1114257cSwdenkMPC885ADS_config  \
632 180d3f74SwdenkFADS860T_config:	unconfig
633 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
634 7ebf7443Swdenk
635 7ebf7443SwdenkAMX860_config	:	unconfig
636 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
637 7ebf7443Swdenk
638 7ebf7443Swdenkc2mon_config:		unconfig
639 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
640 7ebf7443Swdenk
641 7ebf7443SwdenkCCM_config:		unconfig
642 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
643 7ebf7443Swdenk
644 7ebf7443Swdenkcogent_mpc8xx_config:	unconfig
645 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
646 7ebf7443Swdenk
647 3bac3513SwdenkELPT860_config:		unconfig
648 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
649 3bac3513Swdenk
650 84c960ceSWolfgang DenkEP88x_config:		unconfig
651 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
652 84c960ceSWolfgang Denk
653 7ebf7443SwdenkESTEEM192E_config:	unconfig
654 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
655 7ebf7443Swdenk
656 7ebf7443SwdenkETX094_config	:	unconfig
657 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
658 7ebf7443Swdenk
659 7ebf7443SwdenkFLAGADM_config:	unconfig
660 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
661 7ebf7443Swdenk
662 7aa78614Swdenkxtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
663 7aa78614Swdenk
664 7aa78614SwdenkGEN860T_SC_config	\
665 7ebf7443SwdenkGEN860T_config: unconfig
666 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
667 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
668 7aa78614Swdenk	@[ -z "$(findstring _SC,$@)" ] || \
669 f9328639SMarian Balakowicz		{ echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
670 7aa78614Swdenk		  echo "With reduced H/W feature set (SC)..." ; \
671 7aa78614Swdenk		}
672 f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
673 7ebf7443Swdenk
674 7ebf7443SwdenkGENIETV_config:	unconfig
675 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
676 7ebf7443Swdenk
677 7ebf7443SwdenkGTH_config:	unconfig
678 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
679 7ebf7443Swdenk
680 7ebf7443Swdenkhermes_config	:	unconfig
681 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
682 7ebf7443Swdenk
683 c40b2956SwdenkHMI10_config	:	unconfig
684 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
685 c40b2956Swdenk
686 7ebf7443SwdenkIAD210_config: unconfig
687 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
688 7ebf7443Swdenk
689 7ebf7443Swdenkxtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
690 7ebf7443Swdenk
691 7ebf7443SwdenkICU862_100MHz_config	\
692 7ebf7443SwdenkICU862_config: unconfig
693 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
694 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
695 7ebf7443Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
696 f9328639SMarian Balakowicz		{ echo "#define CONFIG_100MHz"	>>$(obj)include/config.h ; \
697 7ebf7443Swdenk		  echo "... with 100MHz system clock" ; \
698 7ebf7443Swdenk		}
699 f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
700 7ebf7443Swdenk
701 7ebf7443SwdenkIP860_config	:	unconfig
702 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
703 7ebf7443Swdenk
704 7ebf7443SwdenkIVML24_256_config \
705 7ebf7443SwdenkIVML24_128_config \
706 7ebf7443SwdenkIVML24_config:	unconfig
707 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
708 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
709 7ebf7443Swdenk	@[ -z "$(findstring IVML24_config,$@)" ] || \
710 f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_16M"	>>$(obj)include/config.h ; \
711 7ebf7443Swdenk		 }
712 7ebf7443Swdenk	@[ -z "$(findstring IVML24_128_config,$@)" ] || \
713 f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_32M"	>>$(obj)include/config.h ; \
714 7ebf7443Swdenk		 }
715 7ebf7443Swdenk	@[ -z "$(findstring IVML24_256_config,$@)" ] || \
716 f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVML24_64M"	>>$(obj)include/config.h ; \
717 7ebf7443Swdenk		 }
718 f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
719 7ebf7443Swdenk
720 7ebf7443SwdenkIVMS8_256_config \
721 7ebf7443SwdenkIVMS8_128_config \
722 7ebf7443SwdenkIVMS8_config:	unconfig
723 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
724 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
725 7ebf7443Swdenk	@[ -z "$(findstring IVMS8_config,$@)" ] || \
726 f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_16M"	>>$(obj)include/config.h ; \
727 7ebf7443Swdenk		 }
728 7ebf7443Swdenk	@[ -z "$(findstring IVMS8_128_config,$@)" ] || \
729 f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_32M"	>>$(obj)include/config.h ; \
730 7ebf7443Swdenk		 }
731 7ebf7443Swdenk	@[ -z "$(findstring IVMS8_256_config,$@)" ] || \
732 f9328639SMarian Balakowicz		 { echo "#define CONFIG_IVMS8_64M"	>>$(obj)include/config.h ; \
733 7ebf7443Swdenk		 }
734 f9328639SMarian Balakowicz	@$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
735 7ebf7443Swdenk
736 56f94be3SwdenkKUP4K_config	:	unconfig
737 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
738 0608e04dSwdenk
739 0608e04dSwdenkKUP4X_config    :       unconfig
740 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
741 56f94be3Swdenk
742 7ebf7443SwdenkLANTEC_config	:	unconfig
743 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
744 7ebf7443Swdenk
745 7ebf7443Swdenklwmon_config:		unconfig
746 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
747 7ebf7443Swdenk
748 7ebf7443SwdenkMBX_config	\
749 7ebf7443SwdenkMBX860T_config:	unconfig
750 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
751 7ebf7443Swdenk
752 7ebf7443SwdenkMHPC_config:		unconfig
753 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
754 7ebf7443Swdenk
755 7ebf7443SwdenkMVS1_config :		unconfig
756 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
757 7ebf7443Swdenk
758 993cad93Swdenkxtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
759 993cad93Swdenk
760 993cad93SwdenkNETVIA_V2_config \
761 7ebf7443SwdenkNETVIA_config:		unconfig
762 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
763 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
764 993cad93Swdenk	@[ -z "$(findstring NETVIA_config,$@)" ] || \
765 f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
766 993cad93Swdenk		  echo "... Version 1" ; \
767 993cad93Swdenk		 }
768 993cad93Swdenk	@[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
769 f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
770 993cad93Swdenk		  echo "... Version 2" ; \
771 993cad93Swdenk		 }
772 f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
773 7ebf7443Swdenk
774 c26e454dSwdenkxtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
775 c26e454dSwdenk
776 c26e454dSwdenkNETPHONE_V2_config \
777 04a85b3bSwdenkNETPHONE_config:	unconfig
778 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
779 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
780 c26e454dSwdenk	@[ -z "$(findstring NETPHONE_config,$@)" ] || \
781 f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
782 c26e454dSwdenk		 }
783 c26e454dSwdenk	@[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
784 f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
785 c26e454dSwdenk		 }
786 f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
787 04a85b3bSwdenk
788 79fa88f3Swdenkxtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
789 04a85b3bSwdenk
790 79fa88f3SwdenkNETTA_ISDN_6412_SWAPHOOK_config \
791 79fa88f3SwdenkNETTA_ISDN_SWAPHOOK_config \
792 79fa88f3SwdenkNETTA_6412_SWAPHOOK_config \
793 79fa88f3SwdenkNETTA_SWAPHOOK_config \
794 79fa88f3SwdenkNETTA_ISDN_6412_config \
795 04a85b3bSwdenkNETTA_ISDN_config \
796 79fa88f3SwdenkNETTA_6412_config \
797 04a85b3bSwdenkNETTA_config:		unconfig
798 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
799 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
800 79fa88f3Swdenk	@[ -z "$(findstring ISDN_,$@)" ] || \
801 f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
802 04a85b3bSwdenk		 }
803 79fa88f3Swdenk	@[ -n "$(findstring ISDN_,$@)" ] || \
804 f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
805 79fa88f3Swdenk		 }
806 79fa88f3Swdenk	@[ -z "$(findstring 6412_,$@)" ] || \
807 f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
808 79fa88f3Swdenk		 }
809 79fa88f3Swdenk	@[ -n "$(findstring 6412_,$@)" ] || \
810 f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
811 79fa88f3Swdenk		 }
812 79fa88f3Swdenk	@[ -z "$(findstring SWAPHOOK_,$@)" ] || \
813 f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
814 79fa88f3Swdenk		 }
815 79fa88f3Swdenk	@[ -n "$(findstring SWAPHOOK_,$@)" ] || \
816 f9328639SMarian Balakowicz		 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
817 79fa88f3Swdenk		 }
818 f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
819 04a85b3bSwdenk
820 79fa88f3Swdenkxtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
821 79fa88f3Swdenk
822 79fa88f3SwdenkNETTA2_V2_config \
823 79fa88f3SwdenkNETTA2_config:		unconfig
824 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
825 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
826 79fa88f3Swdenk	@[ -z "$(findstring NETTA2_config,$@)" ] || \
827 f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
828 79fa88f3Swdenk		 }
829 79fa88f3Swdenk	@[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
830 f9328639SMarian Balakowicz		 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
831 79fa88f3Swdenk		 }
832 f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
833 79fa88f3Swdenk
834 a367d426Sdzu@denx.deNC650_Rev1_config \
835 a367d426Sdzu@denx.deNC650_Rev2_config \
836 a367d426Sdzu@denx.deCP850_config:	unconfig
837 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
838 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
839 a367d426Sdzu@denx.de	@[ -z "$(findstring CP850,$@)" ] || \
840 f9328639SMarian Balakowicz		 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
841 f9328639SMarian Balakowicz		   echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
842 a367d426Sdzu@denx.de		 }
843 a367d426Sdzu@denx.de	@[ -z "$(findstring Rev1,$@)" ] || \
844 f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
845 a367d426Sdzu@denx.de		 }
846 a367d426Sdzu@denx.de	@[ -z "$(findstring Rev2,$@)" ] || \
847 f9328639SMarian Balakowicz		 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
848 a367d426Sdzu@denx.de		 }
849 f9328639SMarian Balakowicz	@$(MKCONFIG) -a NC650 ppc mpc8xx nc650
850 7ca202f5Swdenk
851 7ebf7443SwdenkNX823_config:		unconfig
852 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
853 7ebf7443Swdenk
854 7ebf7443Swdenkpcu_e_config:		unconfig
855 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
856 7ebf7443Swdenk
857 3bbc899fSwdenkQS850_config:	unconfig
858 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
859 3bbc899fSwdenk
860 3bbc899fSwdenkQS823_config:	unconfig
861 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
862 3bbc899fSwdenk
863 3bbc899fSwdenkQS860T_config:	unconfig
864 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
865 3bbc899fSwdenk
866 da93ed81Swdenkquantum_config:	unconfig
867 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
868 da93ed81Swdenk
869 7ebf7443SwdenkR360MPI_config:	unconfig
870 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
871 7ebf7443Swdenk
872 682011ffSwdenkRBC823_config:	unconfig
873 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
874 682011ffSwdenk
875 7ebf7443SwdenkRPXClassic_config:	unconfig
876 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
877 7ebf7443Swdenk
878 7ebf7443SwdenkRPXlite_config:		unconfig
879 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
880 7ebf7443Swdenk
881 e63c8ee3SwdenkRPXlite_DW_64_config		\
882 e63c8ee3SwdenkRPXlite_DW_LCD_config		\
883 e63c8ee3SwdenkRPXlite_DW_64_LCD_config	\
884 e63c8ee3SwdenkRPXlite_DW_NVRAM_config		\
885 e63c8ee3SwdenkRPXlite_DW_NVRAM_64_config      \
886 e63c8ee3SwdenkRPXlite_DW_NVRAM_LCD_config	\
887 e63c8ee3SwdenkRPXlite_DW_NVRAM_64_LCD_config  \
888 e63c8ee3SwdenkRPXlite_DW_config:         unconfig
889 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
890 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
891 e63c8ee3Swdenk	@[ -z "$(findstring _64,$@)" ] || \
892 f9328639SMarian Balakowicz		{ echo "#define RPXlite_64MHz"		>>$(obj)include/config.h ; \
893 e63c8ee3Swdenk		  echo "... with 64MHz system clock ..."; \
894 e63c8ee3Swdenk		}
895 e63c8ee3Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
896 f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
897 f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
898 e63c8ee3Swdenk		  echo "... with LCD display ..."; \
899 e63c8ee3Swdenk		}
900 e63c8ee3Swdenk	@[ -z "$(findstring _NVRAM,$@)" ] || \
901 f9328639SMarian Balakowicz		{ echo "#define  CFG_ENV_IS_IN_NVRAM"	>>$(obj)include/config.h ; \
902 e63c8ee3Swdenk		  echo "... with ENV in NVRAM ..."; \
903 e63c8ee3Swdenk		}
904 f9328639SMarian Balakowicz	@$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
905 e63c8ee3Swdenk
906 73a8b27cSwdenkrmu_config:	unconfig
907 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
908 73a8b27cSwdenk
909 7ebf7443SwdenkRRvision_config:	unconfig
910 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
911 7ebf7443Swdenk
912 7ebf7443SwdenkRRvision_LCD_config:	unconfig
913 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
914 f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
915 f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
916 f9328639SMarian Balakowicz	@$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
917 7ebf7443Swdenk
918 7ebf7443SwdenkSM850_config	:	unconfig
919 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
920 7ebf7443Swdenk
921 b02d0177SMarkus Klotzbuecherspc1920_config:
922 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
923 b02d0177SMarkus Klotzbuecher
924 7ebf7443SwdenkSPD823TS_config:	unconfig
925 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
926 7ebf7443Swdenk
927 6bdf4306SWolfgang Denkstxxtc_config:	unconfig
928 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
929 6bdf4306SWolfgang Denk
930 dc7c9a1aSwdenksvm_sc8xx_config:	unconfig
931 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
932 dc7c9a1aSwdenk
933 7ebf7443SwdenkSXNI855T_config:	unconfig
934 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
935 7ebf7443Swdenk
936 db2f721fSwdenk# EMK MPC8xx based modules
937 db2f721fSwdenkTOP860_config:		unconfig
938 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
939 db2f721fSwdenk
940 7ebf7443Swdenk# Play some tricks for configuration selection
941 e9132ea9Swdenk# Only 855 and 860 boards may come with FEC
942 e9132ea9Swdenk# and only 823 boards may have LCD support
943 e9132ea9Swdenkxtract_8xx = $(subst _LCD,,$(subst _config,,$1))
944 7ebf7443Swdenk
945 7ebf7443SwdenkFPS850L_config		\
946 384ae025SwdenkFPS860L_config		\
947 f12e568cSwdenkNSCU_config		\
948 7ebf7443SwdenkTQM823L_config		\
949 7ebf7443SwdenkTQM823L_LCD_config	\
950 7ebf7443SwdenkTQM850L_config		\
951 7ebf7443SwdenkTQM855L_config		\
952 7ebf7443SwdenkTQM860L_config		\
953 d126bfbdSwdenkTQM862L_config		\
954 ae3af05eSwdenkTQM823M_config		\
955 ae3af05eSwdenkTQM850M_config		\
956 f12e568cSwdenkTQM855M_config		\
957 f12e568cSwdenkTQM860M_config		\
958 f12e568cSwdenkTQM862M_config		\
959 8cba090cSWolfgang DenkTQM866M_config		\
960 090eb735SMarkus KlotzbuecherTQM885D_config		\
961 8cba090cSWolfgang Denkvirtlab2_config:	unconfig
962 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
963 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
964 7ebf7443Swdenk	@[ -z "$(findstring _LCD,$@)" ] || \
965 f9328639SMarian Balakowicz		{ echo "#define CONFIG_LCD"		>>$(obj)include/config.h ; \
966 f9328639SMarian Balakowicz		  echo "#define CONFIG_NEC_NL6448BC20"	>>$(obj)include/config.h ; \
967 7ebf7443Swdenk		  echo "... with LCD display" ; \
968 7ebf7443Swdenk		}
969 f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
970 7ebf7443Swdenk
971 7ebf7443SwdenkTTTech_config:	unconfig
972 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
973 f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
974 f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
975 f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
976 7ebf7443Swdenk
977 ec0aee7bSwdenkuc100_config	:	unconfig
978 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
979 f7d1572bSwdenk
980 608c9146Swdenkv37_config:	unconfig
981 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
982 f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
983 f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
984 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
985 608c9146Swdenk
986 91e940d9Sdzuwtk_config:	unconfig
987 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
988 f9328639SMarian Balakowicz	@echo "#define CONFIG_LCD" >$(obj)include/config.h
989 f9328639SMarian Balakowicz	@echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
990 f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
991 91e940d9Sdzu
992 7ebf7443Swdenk#########################################################################
993 7ebf7443Swdenk## PPC4xx Systems
994 7ebf7443Swdenk#########################################################################
995 e55ca7e2Swdenkxtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
996 7ebf7443Swdenk
997 7ebf7443SwdenkADCIOP_config:	unconfig
998 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
999 7ebf7443Swdenk
1000 899620c2SStefan Roesealpr_config:	unconfig
1001 899620c2SStefan Roese	@./mkconfig $(@:_config=) ppc ppc4xx alpr prodrive
1002 899620c2SStefan Roese
1003 7521af1cSWolfgang DenkAP1000_config:unconfig
1004 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
1005 7521af1cSWolfgang Denk
1006 c419d1d6SstroeseAPC405_config:	unconfig
1007 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
1008 c419d1d6Sstroese
1009 7ebf7443SwdenkAR405_config:	unconfig
1010 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
1011 7ebf7443Swdenk
1012 549826eaSstroeseASH405_config:	unconfig
1013 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
1014 549826eaSstroese
1015 8a316c9bSStefan Roesebamboo_config:	unconfig
1016 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
1017 8a316c9bSStefan Roese
1018 8a316c9bSStefan Roesebubinga_config:	unconfig
1019 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
1020 549826eaSstroese
1021 7ebf7443SwdenkCANBT_config:	unconfig
1022 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
1023 7ebf7443Swdenk
1024 1d6f9720SwdenkCATcenter_config	\
1025 1d6f9720SwdenkCATcenter_25_config	\
1026 1d6f9720SwdenkCATcenter_33_config:	unconfig
1027 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1028 f9328639SMarian Balakowicz	@ echo "/* CATcenter uses PPChameleon Model ME */"  > $(obj)include/config.h
1029 f9328639SMarian Balakowicz	@ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1030 1d6f9720Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1031 f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
1032 1d6f9720Swdenk		  echo "SysClk = 25MHz" ; \
1033 1d6f9720Swdenk		}
1034 1d6f9720Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1035 f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
1036 1d6f9720Swdenk		  echo "SysClk = 33MHz" ; \
1037 1d6f9720Swdenk		}
1038 f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1039 10767ccbSwdenk
1040 7644f16fSStefan RoeseCPCI2DP_config:	unconfig
1041 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
1042 7644f16fSStefan Roese
1043 7ebf7443SwdenkCPCI405_config	\
1044 549826eaSstroeseCPCI4052_config	\
1045 c419d1d6SstroeseCPCI405DT_config	\
1046 549826eaSstroeseCPCI405AB_config:	unconfig
1047 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1048 f9328639SMarian Balakowicz	@echo "BOARD_REVISION = $(@:_config=)"	>> $(obj)include/config.mk
1049 7ebf7443Swdenk
1050 7ebf7443SwdenkCPCI440_config:	unconfig
1051 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci440 esd
1052 7ebf7443Swdenk
1053 7ebf7443SwdenkCPCIISER4_config:	unconfig
1054 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
1055 7ebf7443Swdenk
1056 7ebf7443SwdenkCRAYL1_config:	unconfig
1057 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
1058 7ebf7443Swdenk
1059 cd0a9de6Swdenkcsb272_config:	unconfig
1060 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
1061 cd0a9de6Swdenk
1062 aa245090Swdenkcsb472_config:	unconfig
1063 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
1064 aa245090Swdenk
1065 7ebf7443SwdenkDASA_SIM_config: unconfig
1066 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
1067 7ebf7443Swdenk
1068 72cd5aa7SstroeseDP405_config:	unconfig
1069 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
1070 72cd5aa7Sstroese
1071 7ebf7443SwdenkDU405_config:	unconfig
1072 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
1073 7ebf7443Swdenk
1074 8a316c9bSStefan Roeseebony_config:	unconfig
1075 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
1076 7ebf7443Swdenk
1077 7ebf7443SwdenkERIC_config:	unconfig
1078 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
1079 7ebf7443Swdenk
1080 d1cbe85bSwdenkEXBITGEN_config:	unconfig
1081 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
1082 d1cbe85bSwdenk
1083 c419d1d6SstroeseG2000_config:	unconfig
1084 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
1085 c419d1d6Sstroese
1086 c419d1d6SstroeseHH405_config:	unconfig
1087 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
1088 c419d1d6Sstroese
1089 72cd5aa7SstroeseHUB405_config:	unconfig
1090 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
1091 72cd5aa7Sstroese
1092 db01a2eaSwdenkJSE_config:	unconfig
1093 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
1094 db01a2eaSwdenk
1095 b79316f2SStefan RoeseKAREF_config: unconfig
1096 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
1097 b79316f2SStefan Roese
1098 4745acaaSStefan Roesekatmai_config:	unconfig
1099 4745acaaSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1100 4745acaaSStefan Roese
1101 6e7fb6eaSStefan Roeseluan_config:	unconfig
1102 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
1103 6e7fb6eaSStefan Roese
1104 b79316f2SStefan RoeseMETROBOX_config: unconfig
1105 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
1106 b79316f2SStefan Roese
1107 7ebf7443SwdenkMIP405_config:	unconfig
1108 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
1109 7ebf7443Swdenk
1110 f3e0de60SwdenkMIP405T_config:	unconfig
1111 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1112 f9328639SMarian Balakowicz	@echo "#define CONFIG_MIP405T" >$(obj)include/config.h
1113 f3e0de60Swdenk	@echo "Enable subset config for MIP405T"
1114 f9328639SMarian Balakowicz	@$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
1115 f3e0de60Swdenk
1116 7ebf7443SwdenkML2_config:	unconfig
1117 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
1118 7ebf7443Swdenk
1119 028ab6b5Swdenkml300_config:	unconfig
1120 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
1121 028ab6b5Swdenk
1122 8a316c9bSStefan Roeseocotea_config:	unconfig
1123 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
1124 0e6d798cSwdenk
1125 7ebf7443SwdenkOCRTC_config		\
1126 7ebf7443SwdenkORSG_config:	unconfig
1127 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
1128 7ebf7443Swdenk
1129 5568e613SStefan Roesep3p440_config:	unconfig
1130 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
1131 5568e613SStefan Roese
1132 7ebf7443SwdenkPCI405_config:	unconfig
1133 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
1134 7ebf7443Swdenk
1135 a4c8d138SStefan Roesepcs440ep_config:	unconfig
1136 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
1137 a4c8d138SStefan Roese
1138 7ebf7443SwdenkPIP405_config:	unconfig
1139 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
1140 7ebf7443Swdenk
1141 72cd5aa7SstroesePLU405_config:	unconfig
1142 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
1143 72cd5aa7Sstroese
1144 549826eaSstroesePMC405_config:	unconfig
1145 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
1146 549826eaSstroese
1147 281e00a3SwdenkPPChameleonEVB_config		\
1148 e55ca7e2SwdenkPPChameleonEVB_BA_25_config	\
1149 e55ca7e2SwdenkPPChameleonEVB_ME_25_config	\
1150 e55ca7e2SwdenkPPChameleonEVB_HI_25_config	\
1151 e55ca7e2SwdenkPPChameleonEVB_BA_33_config	\
1152 e55ca7e2SwdenkPPChameleonEVB_ME_33_config	\
1153 e55ca7e2SwdenkPPChameleonEVB_HI_33_config:	unconfig
1154 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1155 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1156 1d6f9720Swdenk	@[ -z "$(findstring EVB_BA,$@)" ] || \
1157 f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
1158 fbe4b5cbSwdenk		  echo "... BASIC model" ; \
1159 fbe4b5cbSwdenk		}
1160 1d6f9720Swdenk	@[ -z "$(findstring EVB_ME,$@)" ] || \
1161 f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
1162 fbe4b5cbSwdenk		  echo "... MEDIUM model" ; \
1163 fbe4b5cbSwdenk		}
1164 1d6f9720Swdenk	@[ -z "$(findstring EVB_HI,$@)" ] || \
1165 f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
1166 fbe4b5cbSwdenk		  echo "... HIGH-END model" ; \
1167 fbe4b5cbSwdenk		}
1168 e55ca7e2Swdenk	@[ -z "$(findstring _25,$@)" ] || \
1169 f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
1170 e55ca7e2Swdenk		  echo "SysClk = 25MHz" ; \
1171 e55ca7e2Swdenk		}
1172 e55ca7e2Swdenk	@[ -z "$(findstring _33,$@)" ] || \
1173 f9328639SMarian Balakowicz		{ echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
1174 e55ca7e2Swdenk		  echo "SysClk = 33MHz" ; \
1175 e55ca7e2Swdenk		}
1176 f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
1177 12f34241Swdenk
1178 854bc8daSStefan Roeserainier_config:	unconfig
1179 8318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1180 8318fbf8SMarian Balakowicz	@echo "#define CONFIG_RAINIER" > $(obj)include/config.h
1181 2aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1182 854bc8daSStefan Roese
1183 854bc8daSStefan Roeserainier_nand_config:	unconfig
1184 8318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1185 8318fbf8SMarian Balakowicz	@mkdir -p $(obj)nand_spl
1186 8318fbf8SMarian Balakowicz	@mkdir -p $(obj)board/amcc/sequoia
1187 8318fbf8SMarian Balakowicz	@echo "#define CONFIG_RAINIER" > $(obj)include/config.h
1188 8318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h
1189 854bc8daSStefan Roese	@echo "Compile NAND boot image for sequoia"
1190 2aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
1191 8318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1192 8318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1193 7ebf7443Swdenk
1194 652a10c0Swdenksbc405_config:	unconfig
1195 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
1196 652a10c0Swdenk
1197 887e2ec9SStefan Roesesequoia_config:	unconfig
1198 887e2ec9SStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx sequoia amcc
1199 887e2ec9SStefan Roese
1200 887e2ec9SStefan Roesesequoia_nand_config:	unconfig
1201 8318fbf8SMarian Balakowicz	@mkdir -p $(obj)include
1202 8318fbf8SMarian Balakowicz	@mkdir -p $(obj)nand_spl
1203 8318fbf8SMarian Balakowicz	@mkdir -p $(obj)board/amcc/sequoia
1204 8318fbf8SMarian Balakowicz	@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1205 887e2ec9SStefan Roese	@echo "Compile NAND boot image for sequoia"
1206 887e2ec9SStefan Roese	@$(MKCONFIG) -a sequoia ppc ppc4xx sequoia amcc
1207 8318fbf8SMarian Balakowicz	@echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1208 8318fbf8SMarian Balakowicz	@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1209 72cd5aa7Sstroese
1210 6d3e0107SWolfgang Denksc3_config:unconfig
1211 6d3e0107SWolfgang Denk	@./mkconfig $(@:_config=) ppc ppc4xx sc3
1212 ca43ba18SHeiko Schocher
1213 8a316c9bSStefan Roesesycamore_config:	unconfig
1214 2aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
1215 8a316c9bSStefan Roese
1216 5fb692caSStefan Roesetaishan_config:	unconfig
1217 5fb692caSStefan Roese	@$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1218 5fb692caSStefan Roese
1219 7ebf7443SwdenkVOH405_config:	unconfig
1220 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
1221 3bac3513Swdenk
1222 c419d1d6SstroeseVOM405_config:	unconfig
1223 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
1224 c419d1d6Sstroese
1225 feaedfcfSStefan RoeseCMS700_config:	unconfig
1226 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
1227 feaedfcfSStefan Roese
1228 7ebf7443SwdenkW7OLMC_config	\
1229 7ebf7443SwdenkW7OLMG_config: unconfig
1230 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
1231 7ebf7443Swdenk
1232 8a316c9bSStefan Roesewalnut_config: unconfig
1233 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx walnut amcc
1234 7ebf7443Swdenk
1235 c419d1d6SstroeseWUH405_config:	unconfig
1236 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
1237 c419d1d6Sstroese
1238 ba56f625SwdenkXPEDITE1K_config:	unconfig
1239 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
1240 ba56f625Swdenk
1241 8a316c9bSStefan Roeseyosemite_config:	unconfig
1242 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yosemite amcc
1243 8a316c9bSStefan Roese
1244 8a316c9bSStefan Roeseyellowstone_config:	unconfig
1245 700200c6SStefan Roese	@mkdir -p $(obj)include
1246 700200c6SStefan Roese	@echo "#define CONFIG_YELLOWSTONE" > $(obj)include/config.h
1247 2aa54f65SStefan Roese	@$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
1248 8a316c9bSStefan Roese
1249 6c5879f3SMarian Balakowiczyucca_config:	unconfig
1250 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
1251 6c5879f3SMarian Balakowicz
1252 7ebf7443Swdenk#########################################################################
1253 983fda83Swdenk## MPC8220 Systems
1254 983fda83Swdenk#########################################################################
1255 dc17fb6dSWolfgang Denk
1256 dc17fb6dSWolfgang DenkAlaska8220_config	\
1257 dc17fb6dSWolfgang DenkYukon8220_config:	unconfig
1258 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
1259 983fda83Swdenk
1260 12b43d51Swdenksorcery_config:		unconfig
1261 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
1262 12b43d51Swdenk
1263 983fda83Swdenk#########################################################################
1264 7ebf7443Swdenk## MPC824x Systems
1265 7ebf7443Swdenk#########################################################################
1266 efa329cbSwdenkxtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
1267 7ebf7443Swdenk
1268 0332990bSwdenkA3000_config: unconfig
1269 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
1270 0332990bSwdenk
1271 8e6f1a8eSWolfgang Denkbarco_config: unconfig
1272 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x barco
1273 8e6f1a8eSWolfgang Denk
1274 7ebf7443SwdenkBMW_config: unconfig
1275 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
1276 7ebf7443Swdenk
1277 3bac3513SwdenkCPC45_config	\
1278 3bac3513SwdenkCPC45_ROMBOOT_config:	unconfig
1279 f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1280 f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1281 3bac3513Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1282 3bac3513Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1283 3bac3513Swdenk		echo "... booting from 8-bit flash" ; \
1284 3bac3513Swdenk	else \
1285 3bac3513Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1286 3bac3513Swdenk		echo "... booting from 64-bit flash" ; \
1287 3bac3513Swdenk	fi; \
1288 3bac3513Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1289 3bac3513Swdenk
1290 7ebf7443SwdenkCU824_config: unconfig
1291 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
1292 7ebf7443Swdenk
1293 7abf0c58Swdenkdebris_config: unconfig
1294 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
1295 7abf0c58Swdenk
1296 80885a9dSwdenkeXalion_config: unconfig
1297 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
1298 80885a9dSwdenk
1299 756f586aSwdenkHIDDEN_DRAGON_config: unconfig
1300 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
1301 756f586aSwdenk
1302 53dd6ce4SWolfgang Denkkvme080_config: unconfig
1303 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
1304 53dd6ce4SWolfgang Denk
1305 7ebf7443SwdenkMOUSSE_config: unconfig
1306 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
1307 7ebf7443Swdenk
1308 7ebf7443SwdenkMUSENKI_config: unconfig
1309 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
1310 7ebf7443Swdenk
1311 b4676a25SwdenkMVBLUE_config:	unconfig
1312 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
1313 b4676a25Swdenk
1314 7ebf7443SwdenkOXC_config: unconfig
1315 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
1316 7ebf7443Swdenk
1317 7ebf7443SwdenkPN62_config: unconfig
1318 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
1319 7ebf7443Swdenk
1320 7ebf7443SwdenkSandpoint8240_config: unconfig
1321 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1322 7ebf7443Swdenk
1323 7ebf7443SwdenkSandpoint8245_config: unconfig
1324 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
1325 7ebf7443Swdenk
1326 466b7410Swdenksbc8240_config: unconfig
1327 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
1328 466b7410Swdenk
1329 d1cbe85bSwdenkSL8245_config: unconfig
1330 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
1331 d1cbe85bSwdenk
1332 7ebf7443Swdenkutx8245_config: unconfig
1333 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
1334 7ebf7443Swdenk
1335 7ebf7443Swdenk#########################################################################
1336 7ebf7443Swdenk## MPC8260 Systems
1337 7ebf7443Swdenk#########################################################################
1338 7ebf7443Swdenk
1339 54387ac9Swdenkatc_config:	unconfig
1340 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
1341 54387ac9Swdenk
1342 7ebf7443Swdenkcogent_mpc8260_config:	unconfig
1343 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
1344 7ebf7443Swdenk
1345 7ebf7443SwdenkCPU86_config	\
1346 7ebf7443SwdenkCPU86_ROMBOOT_config: unconfig
1347 f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1348 f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1349 7ebf7443Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1350 7ebf7443Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1351 7ebf7443Swdenk		echo "... booting from 8-bit flash" ; \
1352 7ebf7443Swdenk	else \
1353 7ebf7443Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1354 7ebf7443Swdenk		echo "... booting from 64-bit flash" ; \
1355 7ebf7443Swdenk	fi; \
1356 7ebf7443Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1357 7ebf7443Swdenk
1358 384cc687SwdenkCPU87_config	\
1359 384cc687SwdenkCPU87_ROMBOOT_config: unconfig
1360 f9328639SMarian Balakowicz	@$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1361 f9328639SMarian Balakowicz	@cd $(obj)include ;				\
1362 384cc687Swdenk	if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1363 384cc687Swdenk		echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
1364 384cc687Swdenk		echo "... booting from 8-bit flash" ; \
1365 384cc687Swdenk	else \
1366 384cc687Swdenk		echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
1367 384cc687Swdenk		echo "... booting from 64-bit flash" ; \
1368 384cc687Swdenk	fi; \
1369 384cc687Swdenk	echo "export CONFIG_BOOT_ROM" >> config.mk;
1370 384cc687Swdenk
1371 f901a83bSWolfgang Denkep8248_config	\
1372 f901a83bSWolfgang Denkep8248E_config	:	unconfig
1373 f9328639SMarian Balakowicz	@$(MKCONFIG) ep8248 ppc mpc8260 ep8248
1374 f901a83bSWolfgang Denk
1375 7ebf7443Swdenkep8260_config:	unconfig
1376 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
1377 7ebf7443Swdenk
1378 8d4ac794SWolfgang Denkep82xxm_config:	unconfig
1379 8d4ac794SWolfgang Denk	@./mkconfig $(@:_config=) ppc mpc8260 ep82xxm
1380 8d4ac794SWolfgang Denk
1381 7ebf7443Swdenkgw8260_config:	unconfig
1382 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
1383 7ebf7443Swdenk
1384 7ebf7443Swdenkhymod_config:	unconfig
1385 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
1386 7ebf7443Swdenk
1387 9dd41a7bSwdenkIDS8247_config:	unconfig
1388 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
1389 9dd41a7bSwdenk
1390 7ebf7443SwdenkIPHASE4539_config:	unconfig
1391 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
1392 7ebf7443Swdenk
1393 c3c7f861SwdenkISPAN_config		\
1394 c3c7f861SwdenkISPAN_REVB_config:	unconfig
1395 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1396 c3c7f861Swdenk	@if [ "$(findstring _REVB_,$@)" ] ; then \
1397 f9328639SMarian Balakowicz		echo "#define CFG_REV_B" > $(obj)include/config.h ; \
1398 c3c7f861Swdenk	fi
1399 f9328639SMarian Balakowicz	@$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
1400 c3c7f861Swdenk
1401 04a85b3bSwdenkMPC8260ADS_config	\
1402 901787d6SwdenkMPC8260ADS_lowboot_config	\
1403 04a85b3bSwdenkMPC8260ADS_33MHz_config	\
1404 901787d6SwdenkMPC8260ADS_33MHz_lowboot_config	\
1405 04a85b3bSwdenkMPC8260ADS_40MHz_config	\
1406 901787d6SwdenkMPC8260ADS_40MHz_lowboot_config	\
1407 04a85b3bSwdenkMPC8272ADS_config	\
1408 901787d6SwdenkMPC8272ADS_lowboot_config	\
1409 04a85b3bSwdenkPQ2FADS_config		\
1410 901787d6SwdenkPQ2FADS_lowboot_config		\
1411 04a85b3bSwdenkPQ2FADS-VR_config	\
1412 901787d6SwdenkPQ2FADS-VR_lowboot_config	\
1413 04a85b3bSwdenkPQ2FADS-ZU_config	\
1414 901787d6SwdenkPQ2FADS-ZU_lowboot_config	\
1415 04a85b3bSwdenkPQ2FADS-ZU_66MHz_config	\
1416 901787d6SwdenkPQ2FADS-ZU_66MHz_lowboot_config	\
1417 04a85b3bSwdenk	:		unconfig
1418 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1419 f9328639SMarian Balakowicz	@mkdir -p $(obj)board/mpc8260ads
1420 04a85b3bSwdenk	$(if $(findstring PQ2FADS,$@), \
1421 f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1422 f9328639SMarian Balakowicz	@echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
1423 04a85b3bSwdenk	$(if $(findstring MHz,$@), \
1424 f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
1425 04a85b3bSwdenk	$(if $(findstring VR,$@), \
1426 f9328639SMarian Balakowicz	@echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
1427 901787d6Swdenk	@[ -z "$(findstring lowboot_,$@)" ] || \
1428 f9328639SMarian Balakowicz		{ echo "TEXT_BASE = 0xFF800000" >$(obj)board/mpc8260ads/config.tmp ; \
1429 901787d6Swdenk		  echo "... with lowboot configuration" ; \
1430 901787d6Swdenk		}
1431 f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads
1432 7ebf7443Swdenk
1433 db2f721fSwdenkMPC8266ADS_config:	unconfig
1434 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads
1435 db2f721fSwdenk
1436 efa329cbSwdenk# PM825/PM826 default configuration:  small (= 8 MB) Flash / boot from 64-bit flash
1437 10f67017SwdenkPM825_config	\
1438 efa329cbSwdenkPM825_ROMBOOT_config	\
1439 efa329cbSwdenkPM825_BIGFLASH_config	\
1440 efa329cbSwdenkPM825_ROMBOOT_BIGFLASH_config	\
1441 7ebf7443SwdenkPM826_config	\
1442 efa329cbSwdenkPM826_ROMBOOT_config	\
1443 efa329cbSwdenkPM826_BIGFLASH_config	\
1444 efa329cbSwdenkPM826_ROMBOOT_BIGFLASH_config:	unconfig
1445 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1446 f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1447 efa329cbSwdenk	@if [ "$(findstring PM825_,$@)" ] ; then \
1448 f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"	>$(obj)include/config.h ; \
1449 7ebf7443Swdenk	else \
1450 f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1451 efa329cbSwdenk	fi
1452 efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1453 efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
1454 f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1455 f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1456 efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1457 efa329cbSwdenk			echo "... with 32 MB Flash" ; \
1458 f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1459 7ebf7443Swdenk		fi; \
1460 efa329cbSwdenk	else \
1461 efa329cbSwdenk		echo "... booting from 64-bit flash" ; \
1462 efa329cbSwdenk		if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
1463 efa329cbSwdenk			echo "... with 32 MB Flash" ; \
1464 f9328639SMarian Balakowicz			echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1465 f9328639SMarian Balakowicz			echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
1466 efa329cbSwdenk		else \
1467 f9328639SMarian Balakowicz			echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
1468 efa329cbSwdenk		fi; \
1469 efa329cbSwdenk	fi
1470 f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM826 ppc mpc8260 pm826
1471 efa329cbSwdenk
1472 efa329cbSwdenkPM828_config	\
1473 efa329cbSwdenkPM828_PCI_config	\
1474 efa329cbSwdenkPM828_ROMBOOT_config	\
1475 efa329cbSwdenkPM828_ROMBOOT_PCI_config:	unconfig
1476 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1477 f9328639SMarian Balakowicz	@mkdir -p $(obj)board/pm826
1478 17076266SMarian Balakowicz	@if [ "$(findstring _PCI_,$@)" ] ; then \
1479 f9328639SMarian Balakowicz		echo "#define CONFIG_PCI"  >>$(obj)include/config.h ; \
1480 efa329cbSwdenk		echo "... with PCI enabled" ; \
1481 efa329cbSwdenk	else \
1482 f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1483 efa329cbSwdenk	fi
1484 efa329cbSwdenk	@if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1485 efa329cbSwdenk		echo "... booting from 8-bit flash" ; \
1486 f9328639SMarian Balakowicz		echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1487 f9328639SMarian Balakowicz		echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
1488 efa329cbSwdenk	fi
1489 f9328639SMarian Balakowicz	@$(MKCONFIG) -a PM828 ppc mpc8260 pm828
1490 7ebf7443Swdenk
1491 7ebf7443Swdenkppmc8260_config:	unconfig
1492 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
1493 7ebf7443Swdenk
1494 8b0bfc68SwdenkRattler8248_config	\
1495 8b0bfc68SwdenkRattler_config:		unconfig
1496 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1497 8b0bfc68Swdenk	$(if $(findstring 8248,$@), \
1498 f9328639SMarian Balakowicz	@echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1499 f9328639SMarian Balakowicz	@$(MKCONFIG) -a Rattler ppc mpc8260 rattler
1500 8b0bfc68Swdenk
1501 7ebf7443SwdenkRPXsuper_config:	unconfig
1502 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
1503 7ebf7443Swdenk
1504 7ebf7443Swdenkrsdproto_config:	unconfig
1505 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
1506 7ebf7443Swdenk
1507 7ebf7443Swdenksacsng_config:	unconfig
1508 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
1509 7ebf7443Swdenk
1510 7ebf7443Swdenksbc8260_config:	unconfig
1511 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
1512 7ebf7443Swdenk
1513 7ebf7443SwdenkSCM_config:		unconfig
1514 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
1515 7ebf7443Swdenk
1516 27b207fdSwdenkTQM8255_AA_config \
1517 27b207fdSwdenkTQM8260_AA_config \
1518 27b207fdSwdenkTQM8260_AB_config \
1519 27b207fdSwdenkTQM8260_AC_config \
1520 27b207fdSwdenkTQM8260_AD_config \
1521 27b207fdSwdenkTQM8260_AE_config \
1522 27b207fdSwdenkTQM8260_AF_config \
1523 27b207fdSwdenkTQM8260_AG_config \
1524 27b207fdSwdenkTQM8260_AH_config \
1525 1f62bc2dSWolfgang DenkTQM8260_AI_config \
1526 27b207fdSwdenkTQM8265_AA_config:  unconfig
1527 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1528 27b207fdSwdenk	@case "$@" in \
1529 27b207fdSwdenk	TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no;	BMODE=8260;;  \
1530 27b207fdSwdenk	TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no;	BMODE=8260;; \
1531 27b207fdSwdenk	TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
1532 27b207fdSwdenk	TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes;	BMODE=60x;;  \
1533 27b207fdSwdenk	TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
1534 27b207fdSwdenk	TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no;	BMODE=8260;; \
1535 27b207fdSwdenk	TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
1536 27b207fdSwdenk	TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=8260;; \
1537 27b207fdSwdenk	TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes;	BMODE=60x;;  \
1538 1f62bc2dSWolfgang Denk	TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no;	BMODE=60x;;  \
1539 27b207fdSwdenk	TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no;	BMODE=60x;;  \
1540 27b207fdSwdenk	esac; \
1541 f9328639SMarian Balakowicz	>$(obj)include/config.h ; \
1542 27b207fdSwdenk	if [ "$${CTYPE}" != "MPC8260" ] ; then \
1543 f9328639SMarian Balakowicz		echo "#define CONFIG_$${CTYPE}"	>>$(obj)include/config.h ; \
1544 27b207fdSwdenk	fi; \
1545 f9328639SMarian Balakowicz	echo "#define CONFIG_$${CFREQ}MHz"	>>$(obj)include/config.h ; \
1546 27b207fdSwdenk	echo "... with $${CFREQ}MHz system clock" ; \
1547 27b207fdSwdenk	if [ "$${CACHE}" == "yes" ] ; then \
1548 f9328639SMarian Balakowicz		echo "#define CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1549 27b207fdSwdenk		echo "... with L2 Cache support" ; \
1550 7ebf7443Swdenk	else \
1551 f9328639SMarian Balakowicz		echo "#undef CONFIG_L2_CACHE"	>>$(obj)include/config.h ; \
1552 7ebf7443Swdenk		echo "... without L2 Cache support" ; \
1553 27b207fdSwdenk	fi; \
1554 27b207fdSwdenk	if [ "$${BMODE}" == "60x" ] ; then \
1555 f9328639SMarian Balakowicz		echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
1556 27b207fdSwdenk		echo "... with 60x Bus Mode" ; \
1557 27b207fdSwdenk	else \
1558 f9328639SMarian Balakowicz		echo "#undef CONFIG_BUSMODE_60x"  >>$(obj)include/config.h ; \
1559 27b207fdSwdenk		echo "... without 60x Bus Mode" ; \
1560 7ebf7443Swdenk	fi
1561 f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
1562 7ebf7443Swdenk
1563 fa230445SHeiko SchocherTQM8272_config: unconfig
1564 fa230445SHeiko Schocher	@$(MKCONFIG) -a TQM8272 ppc mpc8260 tqm8272
1565 fa230445SHeiko Schocher
1566 ba91e26aSwdenkVoVPN-GW_66MHz_config	\
1567 ba91e26aSwdenkVoVPN-GW_100MHz_config:		unconfig
1568 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1569 f9328639SMarian Balakowicz	@echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1570 f9328639SMarian Balakowicz	@$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
1571 ba91e26aSwdenk
1572 54387ac9SwdenkZPC1900_config: unconfig
1573 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
1574 7aa78614Swdenk
1575 4e5ca3ebSwdenk#########################################################################
1576 4e5ca3ebSwdenk## Coldfire
1577 4e5ca3ebSwdenk#########################################################################
1578 4e5ca3ebSwdenk
1579 7481266eSWolfgang Denkcobra5272_config :		unconfig
1580 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
1581 7481266eSWolfgang Denk
1582 4176c799SWolfgang DenkEB+MCF-EV123_config :		unconfig
1583 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1584 f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1585 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1586 f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1587 f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1588 4176c799SWolfgang Denk
1589 4176c799SWolfgang DenkEB+MCF-EV123_internal_config :	unconfig
1590 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1591 f9328639SMarian Balakowicz	@mkdir -p $(obj)board/BuS/EB+MCF-EV123
1592 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1593 f9328639SMarian Balakowicz	@echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1594 f9328639SMarian Balakowicz	@$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
1595 4176c799SWolfgang Denk
1596 daa6e418SBartlomiej Siekaidmr_config :			unconfig
1597 daa6e418SBartlomiej Sieka	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1598 daa6e418SBartlomiej Sieka
1599 4176c799SWolfgang DenkM5271EVB_config :		unconfig
1600 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
1601 4176c799SWolfgang Denk
1602 4e5ca3ebSwdenkM5272C3_config :		unconfig
1603 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
1604 4e5ca3ebSwdenk
1605 4e5ca3ebSwdenkM5282EVB_config :		unconfig
1606 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
1607 4e5ca3ebSwdenk
1608 c419d1d6SstroeseTASREG_config :		unconfig
1609 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
1610 c419d1d6Sstroese
1611 3a108ed8SZachary P. Landaur5200_config :		unconfig
1612 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) m68k mcf52x2 r5200
1613 3a108ed8SZachary P. Landau
1614 7ebf7443Swdenk#########################################################################
1615 f046ccd1SEran Liberty## MPC83xx Systems
1616 f046ccd1SEran Liberty#########################################################################
1617 f046ccd1SEran Liberty
1618 4decd84eSKim PhillipsMPC832XEMDS_config \
1619 4decd84eSKim PhillipsMPC832XEMDS_HOST_33_config \
1620 4decd84eSKim PhillipsMPC832XEMDS_HOST_66_config \
1621 4decd84eSKim PhillipsMPC832XEMDS_SLAVE_config:	unconfig
1622 4decd84eSKim Phillips	@echo "" >include/config.h ; \
1623 4decd84eSKim Phillips	if [ "$(findstring _HOST_,$@)" ] ; then \
1624 4decd84eSKim Phillips		echo -n "... PCI HOST " ; \
1625 4decd84eSKim Phillips		echo "#define CONFIG_PCI" >>include/config.h ; \
1626 4decd84eSKim Phillips	fi ; \
1627 4decd84eSKim Phillips	if [ "$(findstring _SLAVE_,$@)" ] ; then \
1628 4decd84eSKim Phillips		echo "...PCI SLAVE 66M"  ; \
1629 4decd84eSKim Phillips		echo "#define CONFIG_PCI" >>include/config.h ; \
1630 4decd84eSKim Phillips		echo "#define CONFIG_PCISLAVE" >>include/config.h ; \
1631 4decd84eSKim Phillips	fi ; \
1632 4decd84eSKim Phillips	if [ "$(findstring _33_,$@)" ] ; then \
1633 4decd84eSKim Phillips		echo -n "...33M ..." ; \
1634 4decd84eSKim Phillips		echo "#define PCI_33M" >>include/config.h ; \
1635 4decd84eSKim Phillips	fi ; \
1636 4decd84eSKim Phillips	if [ "$(findstring _66_,$@)" ] ; then \
1637 4decd84eSKim Phillips		echo -n "...66M..." ; \
1638 4decd84eSKim Phillips		echo "#define PCI_66M" >>include/config.h ; \
1639 4decd84eSKim Phillips	fi ;
1640 4decd84eSKim Phillips	@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds
1641 e6f2e902SMarian Balakowicz
1642 991425feSMarian BalakowiczMPC8349EMDS_config:	unconfig
1643 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds
1644 991425feSMarian Balakowicz
1645 *7a78f148STimur TabiMPC8349ITX_config \
1646 *7a78f148STimur TabiMPC8349ITX_LOWBOOT_config \
1647 *7a78f148STimur TabiMPC8349ITXGP_config:	unconfig
1648 *7a78f148STimur Tabi	@mkdir -p $(obj)include
1649 *7a78f148STimur Tabi	@mkdir -p $(obj)board/mpc8349itx
1650 *7a78f148STimur Tabi	@echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1651 *7a78f148STimur Tabi	@if [ "$(findstring GP,$@)" ] ; then \
1652 *7a78f148STimur Tabi		echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1653 *7a78f148STimur Tabi	fi
1654 *7a78f148STimur Tabi	@if [ "$(findstring LOWBOOT,$@)" ] ; then \
1655 *7a78f148STimur Tabi		echo "TEXT_BASE = 0xFE000000" >$(obj)board/mpc8349itx/config.tmp ; \
1656 *7a78f148STimur Tabi	fi
1657 *7a78f148STimur Tabi	@$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx
1658 4decd84eSKim Phillips
1659 5f820439SDave LiuMPC8360EMDS_config \
1660 5f820439SDave LiuMPC8360EMDS_HOST_33_config \
1661 5f820439SDave LiuMPC8360EMDS_HOST_66_config \
1662 5f820439SDave LiuMPC8360EMDS_SLAVE_config:	unconfig
1663 5f820439SDave Liu	@echo "" >include/config.h ; \
1664 5f820439SDave Liu	if [ "$(findstring _HOST_,$@)" ] ; then \
1665 5f820439SDave Liu		echo -n "... PCI HOST " ; \
1666 5f820439SDave Liu		echo "#define CONFIG_PCI" >>include/config.h ; \
1667 5f820439SDave Liu	fi ; \
1668 5f820439SDave Liu	if [ "$(findstring _SLAVE_,$@)" ] ; then \
1669 5f820439SDave Liu		echo "...PCI SLAVE 66M"  ; \
1670 5f820439SDave Liu		echo "#define CONFIG_PCI" >>include/config.h ; \
1671 5f820439SDave Liu		echo "#define CONFIG_PCISLAVE" >>include/config.h ; \
1672 5f820439SDave Liu	fi ; \
1673 5f820439SDave Liu	if [ "$(findstring _33_,$@)" ] ; then \
1674 5f820439SDave Liu		echo -n "...33M ..." ; \
1675 5f820439SDave Liu		echo "#define PCI_33M" >>include/config.h ; \
1676 5f820439SDave Liu	fi ; \
1677 5f820439SDave Liu	if [ "$(findstring _66_,$@)" ] ; then \
1678 5f820439SDave Liu		echo -n "...66M..." ; \
1679 5f820439SDave Liu		echo "#define PCI_66M" >>include/config.h ; \
1680 5f820439SDave Liu	fi ;
1681 5f820439SDave Liu	@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds
1682 5f820439SDave Liu
1683 91e25769SPaul Gortmakersbc8349_config:		unconfig
1684 91e25769SPaul Gortmaker	@$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
1685 91e25769SPaul Gortmaker
1686 4decd84eSKim PhillipsTQM834x_config:	unconfig
1687 4decd84eSKim Phillips	@$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
1688 4decd84eSKim Phillips
1689 24c3aca3SDave Liu
1690 f046ccd1SEran Liberty#########################################################################
1691 42d1f039Swdenk## MPC85xx Systems
1692 42d1f039Swdenk#########################################################################
1693 42d1f039Swdenk
1694 42d1f039SwdenkMPC8540ADS_config:	unconfig
1695 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads
1696 42d1f039Swdenk
1697 b0e32949SLunsheng WangMPC8540EVAL_config \
1698 b0e32949SLunsheng WangMPC8540EVAL_33_config \
1699 b0e32949SLunsheng WangMPC8540EVAL_66_config \
1700 b0e32949SLunsheng WangMPC8540EVAL_33_slave_config \
1701 b0e32949SLunsheng WangMPC8540EVAL_66_slave_config:      unconfig
1702 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1703 f9328639SMarian Balakowicz	@echo "" >$(obj)include/config.h ; \
1704 b0e32949SLunsheng Wang	if [ "$(findstring _33_,$@)" ] ; then \
1705 b0e32949SLunsheng Wang		echo -n "... 33 MHz PCI" ; \
1706 b0e32949SLunsheng Wang	else \
1707 f9328639SMarian Balakowicz		echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
1708 b0e32949SLunsheng Wang		echo -n "... 66 MHz PCI" ; \
1709 b0e32949SLunsheng Wang	fi ; \
1710 b0e32949SLunsheng Wang	if [ "$(findstring _slave_,$@)" ] ; then \
1711 f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
1712 b0e32949SLunsheng Wang		echo " slave" ; \
1713 b0e32949SLunsheng Wang	else \
1714 b0e32949SLunsheng Wang		echo " host" ; \
1715 b0e32949SLunsheng Wang	fi
1716 f9328639SMarian Balakowicz	@$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
1717 b0e32949SLunsheng Wang
1718 42d1f039SwdenkMPC8560ADS_config:	unconfig
1719 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads
1720 42d1f039Swdenk
1721 03f5c550SwdenkMPC8541CDS_config:	unconfig
1722 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8541cds cds
1723 03f5c550Swdenk
1724 d9b94f28SJon LoeligerMPC8548CDS_config:	unconfig
1725 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8548cds cds
1726 d9b94f28SJon Loeliger
1727 03f5c550SwdenkMPC8555CDS_config:	unconfig
1728 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8555cds cds
1729 7abf0c58Swdenk
1730 384cc687SwdenkPM854_config:	unconfig
1731 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
1732 384cc687Swdenk
1733 b20d0032SWolfgang DenkPM856_config:	unconfig
1734 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
1735 b20d0032SWolfgang Denk
1736 c15f3120Swdenksbc8540_config \
1737 c15f3120Swdenksbc8540_33_config \
1738 c15f3120Swdenksbc8540_66_config:	unconfig
1739 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1740 c15f3120Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
1741 f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
1742 c15f3120Swdenk		echo "... 66 MHz PCI" ; \
1743 c15f3120Swdenk	else \
1744 f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1745 c15f3120Swdenk		echo "... 33 MHz PCI" ; \
1746 c15f3120Swdenk	fi
1747 f9328639SMarian Balakowicz	@$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
1748 c15f3120Swdenk
1749 466b7410Swdenksbc8560_config \
1750 466b7410Swdenksbc8560_33_config \
1751 466b7410Swdenksbc8560_66_config:      unconfig
1752 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1753 8b07a110Swdenk	@if [ "$(findstring _66_,$@)" ] ; then \
1754 f9328639SMarian Balakowicz		echo "#define CONFIG_PCI_66"	>>$(obj)include/config.h ; \
1755 8b07a110Swdenk		echo "... 66 MHz PCI" ; \
1756 8b07a110Swdenk	else \
1757 f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
1758 8b07a110Swdenk		echo "... 33 MHz PCI" ; \
1759 8b07a110Swdenk	fi
1760 f9328639SMarian Balakowicz	@$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
1761 8b07a110Swdenk
1762 03f5c550Swdenkstxgp3_config:		unconfig
1763 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
1764 03f5c550Swdenk
1765 d96f41e0SStefan RoeseTQM8540_config		\
1766 d96f41e0SStefan RoeseTQM8541_config		\
1767 d96f41e0SStefan RoeseTQM8555_config		\
1768 f5c5ef4aSwdenkTQM8560_config:		unconfig
1769 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1770 a889bd27SWolfgang Denk	@CTYPE=$(subst TQM,,$(@:_config=)); \
1771 f9328639SMarian Balakowicz	>$(obj)include/config.h ; \
1772 d96f41e0SStefan Roese	echo "... TQM"$${CTYPE}; \
1773 f9328639SMarian Balakowicz	echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
1774 f9328639SMarian Balakowicz	echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
1775 f9328639SMarian Balakowicz	echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
1776 f9328639SMarian Balakowicz	echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
1777 f9328639SMarian Balakowicz	echo "#define CFG_BOOTFILE \"bootfile=/tftpboot/tqm$${CTYPE}/uImage\0\"">>$(obj)include/config.h
1778 f9328639SMarian Balakowicz	@$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
1779 f5c5ef4aSwdenk
1780 42d1f039Swdenk#########################################################################
1781 debb7354SJon Loeliger## MPC86xx Systems
1782 debb7354SJon Loeliger#########################################################################
1783 debb7354SJon Loeliger
1784 debb7354SJon LoeligerMPC8641HPCN_config:    unconfig
1785 debb7354SJon Loeliger	@./mkconfig $(@:_config=) ppc mpc86xx mpc8641hpcn
1786 debb7354SJon Loeliger
1787 debb7354SJon Loeliger
1788 debb7354SJon Loeliger#########################################################################
1789 7ebf7443Swdenk## 74xx/7xx Systems
1790 7ebf7443Swdenk#########################################################################
1791 7ebf7443Swdenk
1792 c7de829cSwdenkAmigaOneG3SE_config:	unconfig
1793 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
1794 c7de829cSwdenk
1795 15647dc7SwdenkBAB7xx_config: unconfig
1796 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
1797 15647dc7Swdenk
1798 c419d1d6SstroeseCPCI750_config:        unconfig
1799 f9328639SMarian Balakowicz	@$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
1800 c419d1d6Sstroese
1801 3a473b2aSwdenkDB64360_config:  unconfig
1802 f9328639SMarian Balakowicz	@$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
1803 3a473b2aSwdenk
1804 3a473b2aSwdenkDB64460_config:  unconfig
1805 f9328639SMarian Balakowicz	@$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
1806 3a473b2aSwdenk
1807 15647dc7SwdenkELPPC_config: unconfig
1808 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
1809 15647dc7Swdenk
1810 7ebf7443SwdenkEVB64260_config	\
1811 7ebf7443SwdenkEVB64260_750CX_config:	unconfig
1812 f9328639SMarian Balakowicz	@$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
1813 7ebf7443Swdenk
1814 15647dc7SwdenkP3G4_config: unconfig
1815 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1816 7ebf7443Swdenk
1817 1eac2a71SStefan Roesep3m750_config	\
1818 1eac2a71SStefan Roesep3m7448_config:		unconfig
1819 1eac2a71SStefan Roese	@mkdir -p $(obj)include
1820 1eac2a71SStefan Roese	@if [ "$(findstring 750_,$@)" ] ; then \
1821 1eac2a71SStefan Roese		echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
1822 1eac2a71SStefan Roese	else \
1823 1eac2a71SStefan Roese		echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
1824 1eac2a71SStefan Roese	fi
1825 1eac2a71SStefan Roese	@$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
1826 1eac2a71SStefan Roese
1827 7ebf7443SwdenkPCIPPC2_config \
1828 7ebf7443SwdenkPCIPPC6_config: unconfig
1829 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
1830 7ebf7443Swdenk
1831 15647dc7SwdenkZUMA_config:	unconfig
1832 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
1833 12f34241Swdenk
1834 f5e0d039SHeiko Schocherppmc7xx_config: unconfig
1835 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
1836 f5e0d039SHeiko Schocher
1837 7ebf7443Swdenk#========================================================================
1838 7ebf7443Swdenk# ARM
1839 7ebf7443Swdenk#========================================================================
1840 7ebf7443Swdenk#########################################################################
1841 7ebf7443Swdenk## StrongARM Systems
1842 7ebf7443Swdenk#########################################################################
1843 7ebf7443Swdenk
1844 ea66bc88Swdenkassabet_config	:	unconfig
1845 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 assabet
1846 ea66bc88Swdenk
1847 7ebf7443Swdenkdnp1110_config	:	unconfig
1848 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
1849 7ebf7443Swdenk
1850 855a496fSwdenkgcplus_config	:	unconfig
1851 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
1852 855a496fSwdenk
1853 855a496fSwdenklart_config	:	unconfig
1854 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 lart
1855 855a496fSwdenk
1856 7ebf7443Swdenkshannon_config	:	unconfig
1857 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm sa1100 shannon
1858 7ebf7443Swdenk
1859 7ebf7443Swdenk#########################################################################
1860 2e5983d2Swdenk## ARM92xT Systems
1861 7ebf7443Swdenk#########################################################################
1862 7ebf7443Swdenk
1863 b0639ca3Swdenkxtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
1864 43d9616cSwdenk
1865 3ff02c27Swdenkxtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
1866 63e73c9aSwdenk
1867 a56bd922Swdenkxtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
1868 a56bd922Swdenk
1869 a85f9f21Swdenkat91rm9200dk_config	:	unconfig
1870 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk NULL at91rm9200
1871 a85f9f21Swdenk
1872 a85f9f21Swdenkcmc_pu2_config	:	unconfig
1873 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
1874 a85f9f21Swdenk
1875 645da510SWolfgang Denkcsb637_config	:	unconfig
1876 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
1877 645da510SWolfgang Denk
1878 0e4018d2SWolfgang Denkmp2usb_config	:	unconfig
1879 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
1880 0e4018d2SWolfgang Denk
1881 87cb6862SWolfgang Denk
1882 74f4304eSWolfgang Denk########################################################################
1883 87cb6862SWolfgang Denk## ARM Integrator boards - see doc/README-integrator for more info.
1884 87cb6862SWolfgang Denkintegratorap_config	\
1885 87cb6862SWolfgang Denkap_config		\
1886 87cb6862SWolfgang Denkap966_config		\
1887 87cb6862SWolfgang Denkap922_config		\
1888 87cb6862SWolfgang Denkap922_XA10_config	\
1889 87cb6862SWolfgang Denkap7_config		\
1890 87cb6862SWolfgang Denkap720t_config		\
1891 87cb6862SWolfgang Denkap920t_config		\
1892 87cb6862SWolfgang Denkap926ejs_config		\
1893 87cb6862SWolfgang Denkap946es_config: unconfig
1894 96782c63SWolfgang Denk	@board/integratorap/split_by_variant.sh $@
1895 3d3befa7Swdenk
1896 87cb6862SWolfgang Denkintegratorcp_config	\
1897 87cb6862SWolfgang Denkcp_config		\
1898 87cb6862SWolfgang Denkcp920t_config		\
1899 87cb6862SWolfgang Denkcp926ejs_config		\
1900 87cb6862SWolfgang Denkcp946es_config		\
1901 87cb6862SWolfgang Denkcp1136_config		\
1902 87cb6862SWolfgang Denkcp966_config		\
1903 87cb6862SWolfgang Denkcp922_config		\
1904 87cb6862SWolfgang Denkcp922_XA10_config	\
1905 87cb6862SWolfgang Denkcp1026_config: unconfig
1906 96782c63SWolfgang Denk	@board/integratorcp/split_by_variant.sh $@
1907 25d6712aSwdenk
1908 99b0d285SWolfgang Denkkb9202_config	:	unconfig
1909 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
1910 99b0d285SWolfgang Denk
1911 f832d8a1Swdenklpd7a400_config \
1912 f832d8a1Swdenklpd7a404_config:	unconfig
1913 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
1914 3d3befa7Swdenk
1915 281e00a3Swdenkmx1ads_config	:	unconfig
1916 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
1917 281e00a3Swdenk
1918 281e00a3Swdenkmx1fs2_config	:	unconfig
1919 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
1920 281e00a3Swdenk
1921 ac7eb8a3SWolfgang Denknetstar_32_config	\
1922 ac7eb8a3SWolfgang Denknetstar_config:		unconfig
1923 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1924 ac7eb8a3SWolfgang Denk	@if [ "$(findstring _32_,$@)" ] ; then \
1925 ac7eb8a3SWolfgang Denk		echo "... 32MB SDRAM" ; \
1926 f9328639SMarian Balakowicz		echo "#define PHYS_SDRAM_1_SIZE SZ_32M" >>$(obj)include/config.h ; \
1927 ac7eb8a3SWolfgang Denk	else \
1928 ac7eb8a3SWolfgang Denk		echo "... 64MB SDRAM" ; \
1929 f9328639SMarian Balakowicz		echo "#define PHYS_SDRAM_1_SIZE SZ_64M" >>$(obj)include/config.h ; \
1930 ac7eb8a3SWolfgang Denk	fi
1931 f9328639SMarian Balakowicz	@$(MKCONFIG) -a netstar arm arm925t netstar
1932 ac7eb8a3SWolfgang Denk
1933 2e5983d2Swdenkomap1510inn_config :	unconfig
1934 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
1935 2e5983d2Swdenk
1936 1eaeb58eSwdenkomap5912osk_config :	unconfig
1937 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
1938 1eaeb58eSwdenk
1939 63e73c9aSwdenkomap1610inn_config \
1940 63e73c9aSwdenkomap1610inn_cs0boot_config \
1941 63e73c9aSwdenkomap1610inn_cs3boot_config \
1942 3ff02c27Swdenkomap1610inn_cs_autoboot_config \
1943 63e73c9aSwdenkomap1610h2_config \
1944 63e73c9aSwdenkomap1610h2_cs0boot_config \
1945 3ff02c27Swdenkomap1610h2_cs3boot_config \
1946 3ff02c27Swdenkomap1610h2_cs_autoboot_config:	unconfig
1947 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1948 63e73c9aSwdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
1949 f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> .$(obj)/include/config.h ; \
1950 b79a11ccSwdenk		echo "... configured for CS0 boot"; \
1951 3ff02c27Swdenk	elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
1952 f9328639SMarian Balakowicz		echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)./include/config.h ; \
1953 3ff02c27Swdenk		echo "... configured for CS_AUTO boot"; \
1954 63e73c9aSwdenk	else \
1955 f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)./include/config.h ; \
1956 b79a11ccSwdenk		echo "... configured for CS3 boot"; \
1957 63e73c9aSwdenk	fi;
1958 f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
1959 6f21347dSwdenk
1960 a56bd922Swdenkomap730p2_config \
1961 a56bd922Swdenkomap730p2_cs0boot_config \
1962 a56bd922Swdenkomap730p2_cs3boot_config :	unconfig
1963 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1964 a56bd922Swdenk	@if [ "$(findstring _cs0boot_, $@)" ] ; then \
1965 f9328639SMarian Balakowicz		echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
1966 a56bd922Swdenk		echo "... configured for CS0 boot"; \
1967 a56bd922Swdenk	else \
1968 f9328639SMarian Balakowicz		echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
1969 a56bd922Swdenk		echo "... configured for CS3 boot"; \
1970 a56bd922Swdenk	fi;
1971 f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
1972 a56bd922Swdenk
1973 32cb2c70SWolfgang Denksbc2410x_config: unconfig
1974 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
1975 32cb2c70SWolfgang Denk
1976 281e00a3Swdenkscb9328_config	:	unconfig
1977 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
1978 281e00a3Swdenk
1979 7ebf7443Swdenksmdk2400_config	:	unconfig
1980 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
1981 7ebf7443Swdenk
1982 7ebf7443Swdenksmdk2410_config	:	unconfig
1983 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
1984 7ebf7443Swdenk
1985 2d24a3a7SwdenkSX1_config :		unconfig
1986 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm925t sx1
1987 2d24a3a7Swdenk
1988 b2001f27Swdenk# TRAB default configuration:	8 MB Flash, 32 MB RAM
1989 43d9616cSwdenktrab_config \
1990 b0639ca3Swdenktrab_bigram_config \
1991 b0639ca3Swdenktrab_bigflash_config \
1992 f54ebdfaSwdenktrab_old_config:	unconfig
1993 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
1994 f9328639SMarian Balakowicz	@mkdir -p $(obj)board/trab
1995 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
1996 b0639ca3Swdenk	@[ -z "$(findstring _bigram,$@)" ] || \
1997 f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
1998 f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_32MB"   >>$(obj)include/config.h ; \
1999 b0639ca3Swdenk		  echo "... with 8 MB Flash, 32 MB RAM" ; \
2000 b0639ca3Swdenk		}
2001 b0639ca3Swdenk	@[ -z "$(findstring _bigflash,$@)" ] || \
2002 f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2003 f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2004 b0639ca3Swdenk		  echo "... with 16 MB Flash, 16 MB RAM" ; \
2005 f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2006 b0639ca3Swdenk		}
2007 f54ebdfaSwdenk	@[ -z "$(findstring _old,$@)" ] || \
2008 f9328639SMarian Balakowicz		{ echo "#define CONFIG_FLASH_8MB"  >>$(obj)include/config.h ; \
2009 f9328639SMarian Balakowicz		  echo "#define CONFIG_RAM_16MB"   >>$(obj)include/config.h ; \
2010 b2001f27Swdenk		  echo "... with 8 MB Flash, 16 MB RAM" ; \
2011 f9328639SMarian Balakowicz		  echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
2012 43d9616cSwdenk		}
2013 f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
2014 7ebf7443Swdenk
2015 1cb8e980SwdenkVCMA9_config	:	unconfig
2016 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
2017 1cb8e980Swdenk
2018 87cb6862SWolfgang Denk#========================================================================
2019 87cb6862SWolfgang Denk# ARM supplied Versatile development boards
2020 87cb6862SWolfgang Denk#========================================================================
2021 87cb6862SWolfgang Denkversatile_config	\
2022 87cb6862SWolfgang Denkversatileab_config	\
2023 87cb6862SWolfgang Denkversatilepb_config :	unconfig
2024 96782c63SWolfgang Denk	@board/versatile/split_by_variant.sh $@
2025 074cff0dSwdenk
2026 3c2b3d45Swdenkvoiceblue_smallflash_config	\
2027 3c2b3d45Swdenkvoiceblue_config:	unconfig
2028 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2029 f9328639SMarian Balakowicz	@mkdir -p $(obj)board/voiceblue
2030 3c2b3d45Swdenk	@if [ "$(findstring _smallflash_,$@)" ] ; then \
2031 3c2b3d45Swdenk		echo "... boot from lower flash bank" ; \
2032 f9328639SMarian Balakowicz		echo "#define VOICEBLUE_SMALL_FLASH" >>$(obj)include/config.h ; \
2033 f9328639SMarian Balakowicz		echo "VOICEBLUE_SMALL_FLASH=y" >$(obj)board/voiceblue/config.tmp ; \
2034 3c2b3d45Swdenk	else \
2035 3c2b3d45Swdenk		echo "... boot from upper flash bank" ; \
2036 f9328639SMarian Balakowicz		>$(obj)include/config.h ; \
2037 f9328639SMarian Balakowicz		echo "VOICEBLUE_SMALL_FLASH=n" >$(obj)board/voiceblue/config.tmp ; \
2038 3c2b3d45Swdenk	fi
2039 f9328639SMarian Balakowicz	@$(MKCONFIG) -a voiceblue arm arm925t voiceblue
2040 3c2b3d45Swdenk
2041 16b013e7Swdenkcm4008_config	:	unconfig
2042 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
2043 16b013e7Swdenk
2044 16b013e7Swdenkcm41xx_config	:	unconfig
2045 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
2046 16b013e7Swdenk
2047 0c32d96dSWolfgang Denkgth2_config		:	unconfig
2048 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2049 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2050 f9328639SMarian Balakowicz	@echo "#define CONFIG_GTH2 1" >>$(obj)include/config.h
2051 f9328639SMarian Balakowicz	@$(MKCONFIG) -a gth2 mips mips gth2
2052 0c32d96dSWolfgang Denk
2053 074cff0dSwdenk#########################################################################
2054 074cff0dSwdenk## S3C44B0 Systems
2055 074cff0dSwdenk#########################################################################
2056 074cff0dSwdenk
2057 074cff0dSwdenkB2_config	:	unconfig
2058 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
2059 074cff0dSwdenk
2060 7ebf7443Swdenk#########################################################################
2061 7ebf7443Swdenk## ARM720T Systems
2062 7ebf7443Swdenk#########################################################################
2063 7ebf7443Swdenk
2064 c570b2fdSWolfgang Denkarmadillo_config:	unconfig
2065 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t armadillo
2066 c570b2fdSWolfgang Denk
2067 7ebf7443Swdenkep7312_config	:	unconfig
2068 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t ep7312
2069 7ebf7443Swdenk
2070 2d24a3a7Swdenkimpa7_config	:	unconfig
2071 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t impa7
2072 2d24a3a7Swdenk
2073 2d1a537dSwdenkmodnet50_config :	unconfig
2074 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2075 2d1a537dSwdenk
2076 39539887Swdenkevb4510_config :	unconfig
2077 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm720t evb4510
2078 39539887Swdenk
2079 6bd2447eSGary Jennejohnlpc2292sodimm_config:	unconfig
2080 6bd2447eSGary Jennejohn	@$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm
2081 6bd2447eSGary Jennejohn
2082 7ebf7443Swdenk#########################################################################
2083 43d9616cSwdenk## XScale Systems
2084 7ebf7443Swdenk#########################################################################
2085 7ebf7443Swdenk
2086 20787e23Swdenkadsvix_config	:	unconfig
2087 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa adsvix
2088 20787e23Swdenk
2089 fabd46acSwdenkcerf250_config :	unconfig
2090 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cerf250
2091 fabd46acSwdenk
2092 7ebf7443Swdenkcradle_config	:	unconfig
2093 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa cradle
2094 7ebf7443Swdenk
2095 7ebf7443Swdenkcsb226_config	:	unconfig
2096 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa csb226
2097 7ebf7443Swdenk
2098 0be248faSWolfgang Denkdelta_config :
2099 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa delta
2100 0be248faSWolfgang Denk
2101 43d9616cSwdenkinnokom_config	:	unconfig
2102 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa innokom
2103 43d9616cSwdenk
2104 2d5b561eSwdenkixdp425_config	:	unconfig
2105 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2106 2d5b561eSwdenk
2107 ba94a1bbSWolfgang Denkixdpg425_config	:	unconfig
2108 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2109 ba94a1bbSWolfgang Denk
2110 43d9616cSwdenklubbock_config	:	unconfig
2111 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa lubbock
2112 43d9616cSwdenk
2113 5720df78SHeiko Schocherpleb2_config	:	unconfig
2114 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pleb2
2115 5720df78SHeiko Schocher
2116 52f52c14Swdenklogodl_config	:	unconfig
2117 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa logodl
2118 52f52c14Swdenk
2119 9d8d5a5bSStefan Roesepdnb3_config \
2120 9d8d5a5bSStefan Roesescpu_config:    unconfig
2121 9d8d5a5bSStefan Roese	@if [ "$(findstring scpu_,$@)" ] ; then \
2122 9d8d5a5bSStefan Roese		echo "#define CONFIG_SCPU"      >>include/config.h ; \
2123 9d8d5a5bSStefan Roese		echo "... on SCPU board variant" ; \
2124 9d8d5a5bSStefan Roese	else \
2125 9d8d5a5bSStefan Roese		>include/config.h ; \
2126 9d8d5a5bSStefan Roese	fi
2127 9d8d5a5bSStefan Roese	@$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
2128 ba94a1bbSWolfgang Denk
2129 f57f70aaSWolfgang Denkpxa255_idp_config:	unconfig
2130 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
2131 f57f70aaSWolfgang Denk
2132 3e38691eSwdenkwepep250_config	:	unconfig
2133 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa wepep250
2134 3e38691eSwdenk
2135 4ec3a7f0Swdenkxaeniax_config	:	unconfig
2136 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xaeniax
2137 4ec3a7f0Swdenk
2138 efa329cbSwdenkxm250_config	:	unconfig
2139 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xm250
2140 efa329cbSwdenk
2141 ca0e7748Swdenkxsengine_config :	unconfig
2142 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa xsengine
2143 ca0e7748Swdenk
2144 e0269579SMarkus Klotzbücherzylonite_config :
2145 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm pxa zylonite
2146 e0269579SMarkus Klotzbücher
2147 8ed96046Swdenk#########################################################################
2148 8ed96046Swdenk## ARM1136 Systems
2149 8ed96046Swdenk#########################################################################
2150 8ed96046Swdenkomap2420h4_config :    unconfig
2151 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) arm arm1136 omap2420h4
2152 8ed96046Swdenk
2153 2262cfeeSwdenk#========================================================================
2154 2262cfeeSwdenk# i386
2155 2262cfeeSwdenk#========================================================================
2156 2262cfeeSwdenk#########################################################################
2157 2262cfeeSwdenk## AMD SC520 CDP
2158 2262cfeeSwdenk#########################################################################
2159 2262cfeeSwdenksc520_cdp_config	:	unconfig
2160 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_cdp
2161 2262cfeeSwdenk
2162 7a8e9bedSwdenksc520_spunk_config	:	unconfig
2163 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2164 7a8e9bedSwdenk
2165 7a8e9bedSwdenksc520_spunk_rel_config	:	unconfig
2166 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) i386 i386 sc520_spunk
2167 7a8e9bedSwdenk
2168 43d9616cSwdenk#========================================================================
2169 43d9616cSwdenk# MIPS
2170 43d9616cSwdenk#========================================================================
2171 7ebf7443Swdenk#########################################################################
2172 43d9616cSwdenk## MIPS32 4Kc
2173 43d9616cSwdenk#########################################################################
2174 43d9616cSwdenk
2175 e0ac62d7Swdenkxtract_incaip = $(subst _100MHz,,$(subst _133MHz,,$(subst _150MHz,,$(subst _config,,$1))))
2176 e0ac62d7Swdenk
2177 e0ac62d7Swdenkincaip_100MHz_config	\
2178 e0ac62d7Swdenkincaip_133MHz_config	\
2179 e0ac62d7Swdenkincaip_150MHz_config	\
2180 43d9616cSwdenkincaip_config: unconfig
2181 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2182 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2183 e0ac62d7Swdenk	@[ -z "$(findstring _100MHz,$@)" ] || \
2184 f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h ; \
2185 e0ac62d7Swdenk		  echo "... with 100MHz system clock" ; \
2186 e0ac62d7Swdenk		}
2187 e0ac62d7Swdenk	@[ -z "$(findstring _133MHz,$@)" ] || \
2188 f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h ; \
2189 e0ac62d7Swdenk		  echo "... with 133MHz system clock" ; \
2190 e0ac62d7Swdenk		}
2191 e0ac62d7Swdenk	@[ -z "$(findstring _150MHz,$@)" ] || \
2192 f9328639SMarian Balakowicz		{ echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
2193 e0ac62d7Swdenk		  echo "... with 150MHz system clock" ; \
2194 e0ac62d7Swdenk		}
2195 f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
2196 e0ac62d7Swdenk
2197 f4863a7aSwdenktb0229_config: unconfig
2198 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips tb0229
2199 f4863a7aSwdenk
2200 e0ac62d7Swdenk#########################################################################
2201 69459791Swdenk## MIPS32 AU1X00
2202 69459791Swdenk#########################################################################
2203 69459791Swdenkdbau1000_config		:	unconfig
2204 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2205 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2206 f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1000 1" >>$(obj)include/config.h
2207 f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2208 69459791Swdenk
2209 69459791Swdenkdbau1100_config		:	unconfig
2210 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2211 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2212 f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1100 1" >>$(obj)include/config.h
2213 f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2214 69459791Swdenk
2215 69459791Swdenkdbau1500_config		:	unconfig
2216 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2217 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2218 f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1500 1" >>$(obj)include/config.h
2219 f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2220 69459791Swdenk
2221 ff36fd85Swdenkdbau1550_config		:	unconfig
2222 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2223 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2224 f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2225 f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2226 ff36fd85Swdenk
2227 ff36fd85Swdenkdbau1550_el_config	:	unconfig
2228 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2229 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2230 f9328639SMarian Balakowicz	@echo "#define CONFIG_DBAU1550 1" >>$(obj)include/config.h
2231 f9328639SMarian Balakowicz	@$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
2232 ff36fd85Swdenk
2233 265817c7SWolfgang Denkpb1000_config		:	unconfig
2234 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2235 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2236 f9328639SMarian Balakowicz	@echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
2237 f9328639SMarian Balakowicz	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
2238 265817c7SWolfgang Denk
2239 69459791Swdenk#########################################################################
2240 e0ac62d7Swdenk## MIPS64 5Kc
2241 e0ac62d7Swdenk#########################################################################
2242 43d9616cSwdenk
2243 3e38691eSwdenkpurple_config :		unconfig
2244 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) mips mips purple
2245 43d9616cSwdenk
2246 4a551709Swdenk#========================================================================
2247 4a551709Swdenk# Nios
2248 4a551709Swdenk#========================================================================
2249 4a551709Swdenk#########################################################################
2250 4a551709Swdenk## Nios32
2251 4a551709Swdenk#########################################################################
2252 4a551709Swdenk
2253 c935d3bdSwdenkDK1C20_safe_32_config		\
2254 c935d3bdSwdenkDK1C20_standard_32_config	\
2255 4a551709SwdenkDK1C20_config:	unconfig
2256 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2257 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2258 c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2259 f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2260 c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
2261 c935d3bdSwdenk		}
2262 c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2263 f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2264 c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
2265 c935d3bdSwdenk		}
2266 c935d3bdSwdenk	@[ -z "$(findstring DK1C20_config,$@)" ] || \
2267 f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2268 c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2269 c935d3bdSwdenk		}
2270 f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1C20 nios nios dk1c20 altera
2271 c935d3bdSwdenk
2272 c935d3bdSwdenkDK1S10_safe_32_config		\
2273 c935d3bdSwdenkDK1S10_standard_32_config	\
2274 ec4c544bSwdenkDK1S10_mtx_ldk_20_config	\
2275 c935d3bdSwdenkDK1S10_config:	unconfig
2276 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2277 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2278 c935d3bdSwdenk	@[ -z "$(findstring _safe_32,$@)" ] || \
2279 f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_SAFE_32 1" >>$(obj)include/config.h ; \
2280 c935d3bdSwdenk		  echo "... NIOS 'safe_32' configuration" ; \
2281 c935d3bdSwdenk		}
2282 c935d3bdSwdenk	@[ -z "$(findstring _standard_32,$@)" ] || \
2283 f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2284 c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration" ; \
2285 c935d3bdSwdenk		}
2286 ec4c544bSwdenk	@[ -z "$(findstring _mtx_ldk_20,$@)" ] || \
2287 f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_MTX_LDK_20 1" >>$(obj)include/config.h ; \
2288 ec4c544bSwdenk		  echo "... NIOS 'mtx_ldk_20' configuration" ; \
2289 ec4c544bSwdenk		}
2290 c935d3bdSwdenk	@[ -z "$(findstring DK1S10_config,$@)" ] || \
2291 f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_STANDARD_32 1" >>$(obj)include/config.h ; \
2292 c935d3bdSwdenk		  echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
2293 c935d3bdSwdenk		}
2294 f9328639SMarian Balakowicz	@$(MKCONFIG) -a DK1S10 nios nios dk1s10 altera
2295 4a551709Swdenk
2296 aaf224abSwdenkADNPESC1_DNPEVA2_base_32_config	\
2297 aaf224abSwdenkADNPESC1_base_32_config		\
2298 aaf224abSwdenkADNPESC1_config: unconfig
2299 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2300 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2301 aaf224abSwdenk	@[ -z "$(findstring _DNPEVA2,$@)" ] || \
2302 f9328639SMarian Balakowicz		{ echo "#define CONFIG_DNPEVA2 1" >>$(obj)include/config.h ; \
2303 aaf224abSwdenk		  echo "... DNP/EVA2 configuration" ; \
2304 aaf224abSwdenk		}
2305 aaf224abSwdenk	@[ -z "$(findstring _base_32,$@)" ] || \
2306 f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2307 aaf224abSwdenk		  echo "... NIOS 'base_32' configuration" ; \
2308 aaf224abSwdenk		}
2309 aaf224abSwdenk	@[ -z "$(findstring ADNPESC1_config,$@)" ] || \
2310 f9328639SMarian Balakowicz		{ echo "#define CONFIG_NIOS_BASE_32 1" >>$(obj)include/config.h ; \
2311 aaf224abSwdenk		  echo "... NIOS 'base_32' configuration (DEFAULT)" ; \
2312 aaf224abSwdenk		}
2313 f9328639SMarian Balakowicz	@$(MKCONFIG) -a ADNPESC1 nios nios adnpesc1 ssv
2314 aaf224abSwdenk
2315 5c952cf0Swdenk#########################################################################
2316 5c952cf0Swdenk## Nios-II
2317 5c952cf0Swdenk#########################################################################
2318 5c952cf0Swdenk
2319 9cc83378SScott McNuttEP1C20_config : unconfig
2320 f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1C20 nios2 nios2 ep1c20 altera
2321 9cc83378SScott McNutt
2322 9cc83378SScott McNuttEP1S10_config : unconfig
2323 f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S10 nios2 nios2 ep1s10 altera
2324 9cc83378SScott McNutt
2325 9cc83378SScott McNuttEP1S40_config : unconfig
2326 f9328639SMarian Balakowicz	@$(MKCONFIG)  EP1S40 nios2 nios2 ep1s40 altera
2327 9cc83378SScott McNutt
2328 5c952cf0SwdenkPK1C20_config : unconfig
2329 f9328639SMarian Balakowicz	@$(MKCONFIG)  PK1C20 nios2 nios2 pk1c20 psyent
2330 5c952cf0Swdenk
2331 5c952cf0SwdenkPCI5441_config : unconfig
2332 f9328639SMarian Balakowicz	@$(MKCONFIG)  PCI5441 nios2 nios2 pci5441 psyent
2333 4a551709Swdenk
2334 507bbe3eSwdenk#========================================================================
2335 507bbe3eSwdenk# MicroBlaze
2336 507bbe3eSwdenk#========================================================================
2337 507bbe3eSwdenk#########################################################################
2338 507bbe3eSwdenk## Microblaze
2339 507bbe3eSwdenk#########################################################################
2340 507bbe3eSwdenksuzaku_config:	unconfig
2341 f9328639SMarian Balakowicz	@mkdir -p $(obj)include
2342 f9328639SMarian Balakowicz	@ >$(obj)include/config.h
2343 f9328639SMarian Balakowicz	@echo "#define CONFIG_SUZAKU 1" >> $(obj)include/config.h
2344 f9328639SMarian Balakowicz	@$(MKCONFIG) -a $(@:_config=) microblaze microblaze suzaku AtmarkTechno
2345 507bbe3eSwdenk
2346 3e38691eSwdenk#########################################################################
2347 0afe519aSWolfgang Denk## Blackfin
2348 0afe519aSWolfgang Denk#########################################################################
2349 0afe519aSWolfgang Denkezkit533_config	:	unconfig
2350 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) blackfin bf533 ezkit533
2351 0afe519aSWolfgang Denk
2352 0afe519aSWolfgang Denkstamp_config	:	unconfig
2353 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) blackfin bf533 stamp
2354 0afe519aSWolfgang Denk
2355 0afe519aSWolfgang Denkdspstamp_config	:	unconfig
2356 f9328639SMarian Balakowicz	@$(MKCONFIG) $(@:_config=) blackfin bf533 dsp_stamp
2357 0afe519aSWolfgang Denk
2358 5e3b0bc1SHaavard Skinnemoen#========================================================================
2359 5e3b0bc1SHaavard Skinnemoen# AVR32
2360 5e3b0bc1SHaavard Skinnemoen#========================================================================
2361 5e3b0bc1SHaavard Skinnemoen#########################################################################
2362 5e3b0bc1SHaavard Skinnemoen## AT32AP7xxx
2363 5e3b0bc1SHaavard Skinnemoen#########################################################################
2364 5e3b0bc1SHaavard Skinnemoen
2365 5e3b0bc1SHaavard Skinnemoenatstk1002_config	:	unconfig
2366 5e3b0bc1SHaavard Skinnemoen	@./mkconfig $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
2367 5e3b0bc1SHaavard Skinnemoen
2368 0afe519aSWolfgang Denk#########################################################################
2369 0afe519aSWolfgang Denk#########################################################################
2370 3e38691eSwdenk#########################################################################
2371 7ebf7443Swdenk
2372 7ebf7443Swdenkclean:
2373 f9328639SMarian Balakowicz	find $(OBJTREE) -type f \
2374 7ebf7443Swdenk		\( -name 'core' -o -name '*.bak' -o -name '*~' \
2375 7ebf7443Swdenk		-o -name '*.o'  -o -name '*.a'  \) -print \
2376 7ebf7443Swdenk		| xargs rm -f
2377 f9328639SMarian Balakowicz	rm -f $(obj)examples/hello_world $(obj)examples/timer \
2378 f9328639SMarian Balakowicz	      $(obj)examples/eepro100_eeprom $(obj)examples/sched \
2379 f9328639SMarian Balakowicz	      $(obj)examples/mem_to_mem_idma2intr $(obj)examples/82559_eeprom \
2380 d214fbbdSWolfgang Denk	      $(obj)examples/smc91111_eeprom $(obj)examples/interrupt \
2381 f9328639SMarian Balakowicz	      $(obj)examples/test_burst
2382 f9328639SMarian Balakowicz	rm -f $(obj)tools/img2srec $(obj)tools/mkimage $(obj)tools/envcrc \
2383 f9328639SMarian Balakowicz		$(obj)tools/gen_eth_addr
2384 f9328639SMarian Balakowicz	rm -f $(obj)tools/mpc86x_clk $(obj)tools/ncb
2385 f9328639SMarian Balakowicz	rm -f $(obj)tools/easylogo/easylogo $(obj)tools/bmp_logo
2386 f9328639SMarian Balakowicz	rm -f $(obj)tools/gdb/astest $(obj)tools/gdb/gdbcont $(obj)tools/gdb/gdbsend
2387 f9328639SMarian Balakowicz	rm -f $(obj)tools/env/fw_printenv $(obj)tools/env/fw_setenv
2388 f9328639SMarian Balakowicz	rm -f $(obj)board/cray/L1/bootscript.c $(obj)board/cray/L1/bootscript.image
2389 f9328639SMarian Balakowicz	rm -f $(obj)board/netstar/eeprom $(obj)board/netstar/crcek $(obj)board/netstar/crcit
2390 f9328639SMarian Balakowicz	rm -f $(obj)board/netstar/*.srec $(obj)board/netstar/*.bin
2391 f9328639SMarian Balakowicz	rm -f $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom
2392 f9328639SMarian Balakowicz	rm -f $(obj)board/integratorap/u-boot.lds $(obj)board/integratorcp/u-boot.lds
2393 f9328639SMarian Balakowicz	rm -f $(obj)include/bmp_logo.h
2394 8318fbf8SMarian Balakowicz	rm -f $(obj)nand_spl/u-boot-spl $(obj)nand_spl/u-boot-spl.map
2395 7ebf7443Swdenk
2396 7ebf7443Swdenkclobber:	clean
2397 f9328639SMarian Balakowicz	find $(OBJTREE) -type f \( -name .depend \
2398 4c0d4c3bSwdenk		-o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2399 4c0d4c3bSwdenk		-print0 \
2400 4c0d4c3bSwdenk		| xargs -0 rm -f
2401 f9328639SMarian Balakowicz	rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS $(obj)include/version_autogenerated.h
2402 f9328639SMarian Balakowicz	rm -fr $(obj)*.*~
2403 f9328639SMarian Balakowicz	rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
2404 f9328639SMarian Balakowicz	rm -f $(obj)tools/crc32.c $(obj)tools/environment.c $(obj)tools/env/crc32.c
2405 f9328639SMarian Balakowicz	rm -f $(obj)tools/inca-swap-bytes $(obj)cpu/mpc824x/bedbug_603e.c
2406 f9328639SMarian Balakowicz	rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
2407 8318fbf8SMarian Balakowicz	[ ! -d $(OBJTREE)/nand_spl ] || find $(obj)nand_spl -lname "*" -print | xargs rm -f
2408 7ebf7443Swdenk
2409 f9328639SMarian Balakowiczifeq ($(OBJTREE),$(SRCTREE))
2410 7ebf7443Swdenkmrproper \
2411 7ebf7443Swdenkdistclean:	clobber unconfig
2412 f9328639SMarian Balakowiczelse
2413 f9328639SMarian Balakowiczmrproper \
2414 f9328639SMarian Balakowiczdistclean:	clobber unconfig
2415 f9328639SMarian Balakowicz	rm -rf $(OBJTREE)/*
2416 f9328639SMarian Balakowiczendif
2417 7ebf7443Swdenk
2418 7ebf7443Swdenkbackup:
2419 7ebf7443Swdenk	F=`basename $(TOPDIR)` ; cd .. ; \
2420 7ebf7443Swdenk	gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2421 7ebf7443Swdenk
2422 7ebf7443Swdenk#########################################################################
2423