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