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