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