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