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