]> git.ipfire.org Git - people/ms/u-boot.git/blame - Makefile
Coding Style cleanup, update CHANGELOG.
[people/ms/u-boot.git] / Makefile
CommitLineData
7ebf7443 1#
ae6d1056 2# (C) Copyright 2000-2008
7ebf7443
WD
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# See file CREDITS for list of people who contributed to this
6# project.
7#
8# This program is free software; you can redistribute it and/or
9# modify it under the terms of the GNU General Public License as
45a212c4 10# published by the Free Software Foundatio; either version 2 of
7ebf7443
WD
11# the License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
f9301e1c 15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7ebf7443
WD
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21# MA 02111-1307 USA
22#
23
881a87ec 24VERSION = 1
754bac48 25PATCHLEVEL = 3
67a4389e 26SUBLEVEL = 2
46cb5074 27EXTRAVERSION =
881a87ec 28U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
f9328639 29VERSION_FILE = $(obj)include/version_autogenerated.h
881a87ec 30
7ebf7443
WD
31HOSTARCH := $(shell uname -m | \
32 sed -e s/i.86/i386/ \
33 -e s/sun4u/sparc64/ \
34 -e s/arm.*/arm/ \
35 -e s/sa110/arm/ \
36 -e s/powerpc/ppc/ \
a2280646 37 -e s/ppc64/ppc/ \
7ebf7443
WD
38 -e s/macppc/ppc/)
39
f9d77ed3 40HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
7ebf7443
WD
41 sed -e 's/\(cygwin\).*/cygwin/')
42
f9d77ed3 43export HOSTARCH HOSTOS
7ebf7443
WD
44
45# Deal with colliding definitions from tcsh etc.
46VENDOR=
47
ae6d1056
WD
48#########################################################################
49# Allow for silent builds
50ifeq (,$(findstring s,$(MAKEFLAGS)))
51XECHO = echo
52else
53XECHO = :
54endif
55
7ebf7443 56#########################################################################
f9328639
MB
57#
58# U-boot build supports producing a object files to the separate external
59# directory. Two use cases are supported:
887e2ec9 60#
f9328639
MB
61# 1) Add O= to the make command line
62# 'make O=/tmp/build all'
63#
64# 2) Set environement variable BUILD_DIR to point to the desired location
65# 'export BUILD_DIR=/tmp/build'
66# 'make'
67#
68# The second approach can also be used with a MAKEALL script
69# 'export BUILD_DIR=/tmp/build'
70# './MAKEALL'
887e2ec9 71#
f9328639 72# Command line 'O=' setting overrides BUILD_DIR environent variable.
887e2ec9 73#
f9328639
MB
74# When none of the above methods is used the local build is performed and
75# the object files are placed in the source directory.
887e2ec9 76#
f9328639
MB
77
78ifdef O
79ifeq ("$(origin O)", "command line")
80BUILD_DIR := $(O)
81endif
82endif
83
84ifneq ($(BUILD_DIR),)
85saved-output := $(BUILD_DIR)
4f0645eb
MB
86
87# Attempt to create a output directory.
88$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
89
a73c8dbb 90# Verify if it was successful.
f9328639
MB
91BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
92$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
93endif # ifneq ($(BUILD_DIR),)
94
95OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
96SRCTREE := $(CURDIR)
97TOPDIR := $(SRCTREE)
98LNDIR := $(OBJTREE)
99export TOPDIR SRCTREE OBJTREE
100
101MKCONFIG := $(SRCTREE)/mkconfig
102export MKCONFIG
7ebf7443 103
f9328639 104ifneq ($(OBJTREE),$(SRCTREE))
dd520bf3 105REMOTE_BUILD := 1
f9328639
MB
106export REMOTE_BUILD
107endif
108
109# $(obj) and (src) are defined in config.mk but here in main Makefile
110# we also need them before config.mk is included which is the case for
111# some targets like unconfig, clean, clobber, distclean, etc.
112ifneq ($(OBJTREE),$(SRCTREE))
113obj := $(OBJTREE)/
114src := $(SRCTREE)/
115else
116obj :=
117src :=
887e2ec9 118endif
f9328639
MB
119export obj src
120
5013c09f
WD
121# Make sure CDPATH settings don't interfere
122unexport CDPATH
123
7ebf7443
WD
124#########################################################################
125
f8f9dc98
KG
126ifeq ($(ARCH),powerpc)
127ARCH = ppc
128endif
129
ae6d1056 130ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
7ebf7443 131
7ebf7443 132# load ARCH, BOARD, and CPU configuration
ae6d1056 133include $(obj)include/config.mk
1d9f4105 134export ARCH CPU BOARD VENDOR SOC
f9328639 135
7ebf7443 136ifndef CROSS_COMPILE
a5284efd 137ifeq ($(HOSTARCH),$(ARCH))
7ebf7443
WD
138CROSS_COMPILE =
139else
7ebf7443 140ifeq ($(ARCH),ppc)
16c8d5e7 141CROSS_COMPILE = ppc_8xx-
7ebf7443
WD
142endif
143ifeq ($(ARCH),arm)
dc7c9a1a 144CROSS_COMPILE = arm-linux-
7ebf7443 145endif
2262cfee 146ifeq ($(ARCH),i386)
7a8e9bed
WD
147CROSS_COMPILE = i386-linux-
148endif
43d9616c
WD
149ifeq ($(ARCH),mips)
150CROSS_COMPILE = mips_4KC-
151endif
4a551709
WD
152ifeq ($(ARCH),nios)
153CROSS_COMPILE = nios-elf-
154endif
5c952cf0
WD
155ifeq ($(ARCH),nios2)
156CROSS_COMPILE = nios2-elf-
157endif
4e5ca3eb
WD
158ifeq ($(ARCH),m68k)
159CROSS_COMPILE = m68k-elf-
160endif
507bbe3e
WD
161ifeq ($(ARCH),microblaze)
162CROSS_COMPILE = mb-
163endif
0afe519a 164ifeq ($(ARCH),blackfin)
ef26a08f 165CROSS_COMPILE = bfin-uclinux-
0afe519a 166endif
7b64fef3 167ifeq ($(ARCH),avr32)
5374b36d 168CROSS_COMPILE = avr32-linux-
7b64fef3 169endif
0b135cfc
NI
170ifeq ($(ARCH),sh)
171CROSS_COMPILE = sh4-linux-
c2f02da2
DH
172endif
173ifeq ($(ARCH),sparc)
174CROSS_COMPILE = sparc-elf-
175endif # sparc
ae6d1056
WD
176endif # HOSTARCH,ARCH
177endif # CROSS_COMPILE
7ebf7443
WD
178
179export CROSS_COMPILE
180
92b197f0
WD
181# load other configuration
182include $(TOPDIR)/config.mk
183
7ebf7443
WD
184#########################################################################
185# U-Boot objects....order is important (i.e. start must be first)
186
9fd5e31f 187OBJS = cpu/$(CPU)/start.o
2262cfee 188ifeq ($(CPU),i386)
9fd5e31f
WD
189OBJS += cpu/$(CPU)/start16.o
190OBJS += cpu/$(CPU)/reset.o
2262cfee 191endif
7ebf7443 192ifeq ($(CPU),ppc4xx)
9fd5e31f 193OBJS += cpu/$(CPU)/resetvec.o
7ebf7443 194endif
42d1f039
WD
195ifeq ($(CPU),mpc85xx)
196OBJS += cpu/$(CPU)/resetvec.o
197endif
7ebf7443 198
f9328639
MB
199OBJS := $(addprefix $(obj),$(OBJS))
200
9fd5e31f 201LIBS = lib_generic/libgeneric.a
7608d75f
KP
202LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
203 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
9fd5e31f 204LIBS += board/$(BOARDDIR)/lib$(BOARD).a
7ebf7443 205LIBS += cpu/$(CPU)/lib$(CPU).a
1d9f4105
WD
206ifdef SOC
207LIBS += cpu/$(CPU)/$(SOC)/lib$(SOC).a
208endif
323bfa8f
SR
209ifeq ($(CPU),ixp)
210LIBS += cpu/ixp/npe/libnpe.a
211endif
7ebf7443 212LIBS += lib_$(ARCH)/lib$(ARCH).a
518e2e1a 213LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
c419d1d6 214 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
7ebf7443
WD
215LIBS += net/libnet.a
216LIBS += disk/libdisk.a
0f460a1e 217LIBS += drivers/bios_emulator/libatibiosemu.a
33daf5b7 218LIBS += drivers/block/libblock.a
57a12720 219LIBS += drivers/dma/libdma.a
f868cc5a 220LIBS += drivers/hwmon/libhwmon.a
2439e4bf 221LIBS += drivers/i2c/libi2c.a
16b195c8 222LIBS += drivers/input/libinput.a
318c0b90 223LIBS += drivers/misc/libmisc.a
59829cc1
JCPV
224LIBS += drivers/mtd/libmtd.a
225LIBS += drivers/mtd/nand/libnand.a
226LIBS += drivers/mtd/nand_legacy/libnand_legacy.a
227LIBS += drivers/mtd/onenand/libonenand.a
8e585f02 228LIBS += drivers/net/libnet.a
2439e4bf 229LIBS += drivers/net/sk98lin/libsk98lin.a
2439e4bf
JCPV
230LIBS += drivers/pci/libpci.a
231LIBS += drivers/pcmcia/libpcmcia.a
04a9e118 232LIBS += drivers/spi/libspi.a
7737d5c6
DL
233ifeq ($(CPU),mpc83xx)
234LIBS += drivers/qe/qe.a
235endif
da9d4610
AF
236ifeq ($(CPU),mpc85xx)
237LIBS += drivers/qe/qe.a
238endif
59829cc1 239LIBS += drivers/rtc/librtc.a
8e585f02 240LIBS += drivers/serial/libserial.a
59829cc1
JCPV
241LIBS += drivers/usb/libusb.a
242LIBS += drivers/video/libvideo.a
ad5bb451
WD
243LIBS += post/libpost.a post/drivers/libpostdrivers.a
244LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
245 "post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
b4489621
SP
246LIBS += $(shell if [ -d post/lib_$(ARCH)/fpu ]; then echo \
247 "post/lib_$(ARCH)/fpu/libpost$(ARCH)fpu.a"; fi)
ad5bb451
WD
248LIBS += $(shell if [ -d post/cpu/$(CPU) ]; then echo \
249 "post/cpu/$(CPU)/libpost$(CPU).a"; fi)
250LIBS += $(shell if [ -d post/board/$(BOARDDIR) ]; then echo \
251 "post/board/$(BOARDDIR)/libpost$(BOARD).a"; fi)
7ebf7443 252LIBS += common/libcommon.a
7651f8bd 253LIBS += libfdt/libfdt.a
500856eb 254LIBS += api/libapi.a
f9328639
MB
255
256LIBS := $(addprefix $(obj),$(LIBS))
019895a8 257.PHONY : $(LIBS) $(VERSION_FILE)
a8c7c708 258
4f7cb08e 259# Add GCC lib
1a344f29 260PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
3d3befa7 261
a8c7c708
WD
262# The "tools" are needed early, so put this first
263# Don't include stuff already done in $(LIBS)
264SUBDIRS = tools \
0dc1fc22
RJ
265 examples \
266 api_examples
500856eb 267
b028f715 268.PHONY : $(SUBDIRS)
a8c7c708 269
887e2ec9
SR
270ifeq ($(CONFIG_NAND_U_BOOT),y)
271NAND_SPL = nand_spl
272U_BOOT_NAND = $(obj)u-boot-nand.bin
273endif
274
751b9b51
KP
275ifeq ($(CONFIG_ONENAND_U_BOOT),y)
276ONENAND_IPL = onenand_ipl
277U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
278endif
279
f9328639
MB
280__OBJS := $(subst $(obj),,$(OBJS))
281__LIBS := $(subst $(obj),,$(LIBS))
282
bdccc4fe 283#########################################################################
7ebf7443
WD
284#########################################################################
285
751b9b51 286ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
94a91e24
MF
287ifeq ($(ARCH),blackfin)
288ALL += $(obj)u-boot.ldr
289endif
7ebf7443 290
bdccc4fe 291all: $(ALL)
7ebf7443 292
f9328639 293$(obj)u-boot.hex: $(obj)u-boot
6310eb9d
WD
294 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
295
f9328639 296$(obj)u-boot.srec: $(obj)u-boot
7ebf7443
WD
297 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@
298
f9328639 299$(obj)u-boot.bin: $(obj)u-boot
7ebf7443
WD
300 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
301
94a91e24
MF
302$(obj)u-boot.ldr: $(obj)u-boot
303 $(LDR) -T $(CONFIG_BFIN_CPU) -f -c $@ $< $(LDR_FLAGS)
304
305$(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
306 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
307
308$(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
309 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
310
f9328639 311$(obj)u-boot.img: $(obj)u-boot.bin
bdccc4fe
WD
312 ./tools/mkimage -A $(ARCH) -T firmware -C none \
313 -a $(TEXT_BASE) -e 0 \
881a87ec 314 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
bdccc4fe
WD
315 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
316 -d $< $@
317
566a494f 318$(obj)u-boot.sha1: $(obj)u-boot.bin
01159530 319 $(obj)tools/ubsha1 $(obj)u-boot.bin
566a494f 320
f9328639 321$(obj)u-boot.dis: $(obj)u-boot
7ebf7443
WD
322 $(OBJDUMP) -d $< > $@
323
dd531aac 324$(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
0858b835 325 UNDEF_SYM=`$(OBJDUMP) -x $(LIBS) |sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
f9328639
MB
326 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
327 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
b2184c31 328 -Map u-boot.map -o u-boot
7ebf7443 329
88f72527 330$(OBJS): depend $(obj)include/autoconf.mk
f9328639
MB
331 $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
332
88f72527 333$(LIBS): depend $(obj)include/autoconf.mk
f9328639 334 $(MAKE) -C $(dir $(subst $(obj),,$@))
a8c7c708 335
88f72527 336$(SUBDIRS): depend $(obj)include/autoconf.mk
b028f715 337 $(MAKE) -C $@ all
7ebf7443 338
f65c9812
MF
339$(LDSCRIPT): depend $(obj)include/autoconf.mk
340 $(MAKE) -C $(dir $@) $(notdir $@)
341
dd531aac 342$(NAND_SPL): $(VERSION_FILE) $(obj)include/autoconf.mk
8318fbf8 343 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
887e2ec9 344
dd531aac 345$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
8318fbf8 346 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
887e2ec9 347
751b9b51 348$(ONENAND_IPL): $(VERSION_FILE) $(obj)include/autoconf.mk
1bb707c3 349 $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
751b9b51
KP
350
351$(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin $(obj)include/autoconf.mk
1bb707c3 352 $(MAKE) -C $(obj)onenand_ipl/board/$(BOARDDIR) all
751b9b51 353 cat $(obj)onenand_ipl/onenand-ipl-2k.bin $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
1bb707c3 354 cat $(obj)onenand_ipl/onenand-ipl-4k.bin $(obj)u-boot.bin > $(obj)u-boot-flexonenand.bin
751b9b51 355
ae6d1056
WD
356$(VERSION_FILE):
357 @( echo -n "#define U_BOOT_VERSION \"U-Boot " ; \
358 echo -n "$(U_BOOT_VERSION)" ; \
881a87ec 359 echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
ae6d1056 360 $(TOPDIR)) ; \
0ec7a061
MF
361 echo "\"" ) > $@.tmp
362 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
881a87ec 363
8f713fdf 364gdbtools:
f9328639
MB
365 $(MAKE) -C tools/gdb all || exit 1
366
367updater:
368 $(MAKE) -C tools/updater all || exit 1
369
370env:
64b3727b 371 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
8f713fdf 372
ae6d1056 373depend dep: $(VERSION_FILE)
f9328639 374 for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
7ebf7443 375
a340c325
JCPV
376TAG_SUBDIRS += include
377TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
378TAG_SUBDIRS += cpu/$(CPU)
379TAG_SUBDIRS += lib_$(ARCH)
380TAG_SUBDIRS += fs/cramfs
381TAG_SUBDIRS += fs/fat
382TAG_SUBDIRS += fs/fdos
383TAG_SUBDIRS += fs/jffs2
384TAG_SUBDIRS += net
385TAG_SUBDIRS += disk
386TAG_SUBDIRS += common
387TAG_SUBDIRS += drivers/bios_emulator
388TAG_SUBDIRS += drivers/block
389TAG_SUBDIRS += drivers/hwmon
390TAG_SUBDIRS += drivers/i2c
391TAG_SUBDIRS += drivers/input
392TAG_SUBDIRS += drivers/misc
393TAG_SUBDIRS += drivers/mtd
394TAG_SUBDIRS += drivers/mtd/nand
395TAG_SUBDIRS += drivers/mtd/nand_legacy
396TAG_SUBDIRS += drivers/mtd/onenand
397TAG_SUBDIRS += drivers/net
398TAG_SUBDIRS += drivers/net/sk98lin
399TAG_SUBDIRS += drivers/pci
400TAG_SUBDIRS += drivers/pcmcia
401TAG_SUBDIRS += drivers/qe
402TAG_SUBDIRS += drivers/rtc
403TAG_SUBDIRS += drivers/serial
04a9e118 404TAG_SUBDIRS += drivers/spi
a340c325
JCPV
405TAG_SUBDIRS += drivers/usb
406TAG_SUBDIRS += drivers/video
407
f9328639 408tags ctags:
ae6d1056 409 ctags -w -o $(obj)ctags `find $(SUBDIRS) $(TAG_SUBDIRS) \
88fed9a1 410 -name '*.[ch]' -print`
7ebf7443
WD
411
412etags:
ae6d1056 413 etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
88fed9a1 414 -name '*.[ch]' -print`
ffda586f
LY
415cscope:
416 find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
417 > cscope.files
418 cscope -b -q -k
7ebf7443 419
f9328639 420$(obj)System.map: $(obj)u-boot
7ebf7443
WD
421 @$(NM) $< | \
422 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
f9328639 423 sort > $(obj)System.map
7ebf7443 424
2f155f6c
GL
425#
426# Auto-generate the autoconf.mk file (which is included by all makefiles)
427#
428# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
429# the dep file is only include in this top level makefile to determine when
430# to regenerate the autoconf.mk file.
ae6d1056
WD
431$(obj)include/autoconf.mk: $(obj)include/config.h $(VERSION_FILE)
432 @$(XECHO) Generating include/autoconf.mk ; \
16fe7775 433 set -e ; \
ae6d1056 434 : Generate the dependancies ; \
c3aafd8c 435 $(CC) -x c -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \
ae6d1056
WD
436 : Extract the config macros ; \
437 $(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@
2f155f6c 438
ae6d1056 439sinclude $(obj)include/autoconf.mk.dep
2f155f6c 440
7ebf7443 441#########################################################################
ae6d1056 442else # !config.mk
f9328639
MB
443all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
444$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
ae6d1056 445$(SUBDIRS) $(VERSION_FILE) gdbtools updater env depend \
ffda586f 446dep tags ctags etags cscope $(obj)System.map:
7ebf7443
WD
447 @echo "System not configured - see README" >&2
448 @ exit 1
ae6d1056 449endif # config.mk
7ebf7443 450
4e53a258
WD
451.PHONY : CHANGELOG
452CHANGELOG:
b985b5d6
BW
453 git log --no-merges U-Boot-1_1_5.. | \
454 unexpand -a | sed -e 's/\s\s*$$//' > $@
4e53a258 455
7ebf7443
WD
456#########################################################################
457
458unconfig:
887e2ec9 459 @rm -f $(obj)include/config.h $(obj)include/config.mk \
2f155f6c
GL
460 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
461 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
7ebf7443
WD
462
463#========================================================================
464# PowerPC
465#========================================================================
0db5bca8
WD
466
467#########################################################################
468## MPC5xx Systems
469#########################################################################
470
5e5f9ed2 471canmb_config: unconfig
f9328639 472 @$(MKCONFIG) -a canmb ppc mpc5xxx canmb
5e5f9ed2 473
0db5bca8 474cmi_mpc5xx_config: unconfig
f9328639 475 @$(MKCONFIG) $(@:_config=) ppc mpc5xx cmi
0db5bca8 476
db01a2ea 477PATI_config: unconfig
f9328639 478 @$(MKCONFIG) $(@:_config=) ppc mpc5xx pati mpl
b6e4c403 479
945af8d7
WD
480#########################################################################
481## MPC5xxx Systems
482#########################################################################
a87589da 483
dafba16e 484aev_config: unconfig
f9328639 485 @$(MKCONFIG) -a aev ppc mpc5xxx tqm5200
dafba16e 486
6ca24c64 487BC3450_config: unconfig
f9328639 488 @$(MKCONFIG) -a BC3450 ppc mpc5xxx bc3450
6ca24c64 489
5e4b3361 490cpci5200_config: unconfig
f9328639 491 @$(MKCONFIG) -a cpci5200 ppc mpc5xxx cpci5200 esd
5e4b3361 492
05bf4919 493hmi1001_config: unconfig
f9328639 494 @$(MKCONFIG) hmi1001 ppc mpc5xxx hmi1001
a87589da 495
e35745bb
WD
496Lite5200_config \
497Lite5200_LOWBOOT_config \
498Lite5200_LOWBOOT08_config \
499icecube_5200_config \
500icecube_5200_LOWBOOT_config \
501icecube_5200_LOWBOOT08_config \
dd520bf3
WD
502icecube_5200_DDR_config \
503icecube_5200_DDR_LOWBOOT_config \
e35745bb
WD
504icecube_5200_DDR_LOWBOOT08_config \
505icecube_5100_config: unconfig
f9328639
MB
506 @mkdir -p $(obj)include
507 @mkdir -p $(obj)board/icecube
17d704eb
WD
508 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
509 { if [ "$(findstring DDR,$@)" ] ; \
f9328639
MB
510 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
511 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
17d704eb 512 fi ; \
ae6d1056 513 $(XECHO) "... with LOWBOOT configuration" ; \
5cf9da48
WD
514 }
515 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
f9328639 516 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
5cf9da48 517 echo "... with 8 MB flash only" ; \
ae6d1056 518 $(XECHO) "... with LOWBOOT configuration" ; \
5cf9da48 519 }
b2001f27 520 @[ -z "$(findstring DDR,$@)" ] || \
f9328639 521 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
ae6d1056 522 $(XECHO) "... DDR memory revision" ; \
b2001f27 523 }
d4ca31c4 524 @[ -z "$(findstring 5200,$@)" ] || \
f9328639 525 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
ae6d1056 526 $(XECHO) "... with MPC5200 processor" ; \
d4ca31c4 527 }
a0f2fe52 528 @[ -z "$(findstring 5100,$@)" ] || \
f9328639 529 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
ae6d1056 530 $(XECHO) "... with MGT5100 processor" ; \
945af8d7 531 }
f9328639 532 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
945af8d7 533
05bf4919 534jupiter_config: unconfig
2605e90b
HS
535 @$(MKCONFIG) jupiter ppc mpc5xxx jupiter
536
4707fb50 537v38b_config: unconfig
90b1b2d6 538 @$(MKCONFIG) -a v38b ppc mpc5xxx v38b
4707fb50 539
86ea5f93 540inka4x0_config: unconfig
f9328639 541 @$(MKCONFIG) inka4x0 ppc mpc5xxx inka4x0
138ff60c 542
09e4b0c5 543lite5200b_config \
d3832e8f 544lite5200b_PM_config \
09e4b0c5 545lite5200b_LOWBOOT_config: unconfig
f9328639
MB
546 @mkdir -p $(obj)include
547 @mkdir -p $(obj)board/icecube
f9328639 548 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
ae6d1056 549 @ $(XECHO) "... DDR memory revision"
f9328639
MB
550 @ echo "#define CONFIG_MPC5200" >>$(obj)include/config.h
551 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
d3832e8f
DP
552 @[ -z "$(findstring _PM_,$@)" ] || \
553 { echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h ; \
ae6d1056 554 $(XECHO) "... with power management (low-power mode) support" ; \
d3832e8f 555 }
09e4b0c5 556 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
f9328639 557 { echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
ae6d1056 558 $(XECHO) "... with LOWBOOT configuration" ; \
09e4b0c5 559 }
ae6d1056 560 @ $(XECHO) "... with MPC5200B processor"
f9328639 561 @$(MKCONFIG) -a IceCube ppc mpc5xxx icecube
09e4b0c5 562
f1ee9825 563mcc200_config \
ed1cf845
WD
564mcc200_SDRAM_config \
565mcc200_highboot_config \
566mcc200_COM12_config \
567mcc200_COM12_SDRAM_config \
113f64e0
WD
568mcc200_COM12_highboot_config \
569mcc200_COM12_highboot_SDRAM_config \
ed1cf845
WD
570mcc200_highboot_SDRAM_config \
571prs200_config \
572prs200_DDR_config \
573prs200_highboot_config \
574prs200_highboot_DDR_config: unconfig
f9328639
MB
575 @mkdir -p $(obj)include
576 @mkdir -p $(obj)board/mcc200
4819fad9 577 @[ -n "$(findstring highboot,$@)" ] || \
ae6d1056 578 { $(XECHO) "... with lowboot configuration" ; \
f1ee9825 579 }
4819fad9 580 @[ -z "$(findstring highboot,$@)" ] || \
f9328639 581 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp ; \
ae6d1056 582 $(XECHO) "... with highboot configuration" ; \
4819fad9
WD
583 }
584 @[ -n "$(findstring _SDRAM,$@)" ] || \
ed1cf845
WD
585 { if [ -n "$(findstring mcc200,$@)" ]; \
586 then \
ae6d1056 587 $(XECHO) "... with DDR" ; \
ed1cf845
WD
588 else \
589 if [ -n "$(findstring _DDR,$@)" ];\
590 then \
ae6d1056 591 $(XECHO) "... with DDR" ; \
ed1cf845 592 else \
f9328639 593 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
ae6d1056 594 $(XECHO) "... with SDRAM" ; \
ed1cf845
WD
595 fi; \
596 fi; \
4819fad9
WD
597 }
598 @[ -z "$(findstring _SDRAM,$@)" ] || \
f9328639 599 { echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ; \
ae6d1056 600 $(XECHO) "... with SDRAM" ; \
4819fad9 601 }
463764c8 602 @[ -z "$(findstring COM12,$@)" ] || \
f9328639 603 { echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h ; \
ae6d1056 604 $(XECHO) "... with console on COM12" ; \
463764c8 605 }
ed1cf845 606 @[ -z "$(findstring prs200,$@)" ] || \
f9301e1c 607 { echo "#define CONFIG_PRS200" >>$(obj)include/config.h ;\
ed1cf845 608 }
f9328639 609 @$(MKCONFIG) -n $@ -a mcc200 ppc mpc5xxx mcc200
86ea5f93 610
8b7d1f0a 611mecp5200_config: unconfig
ae6d1056 612 @$(MKCONFIG) mecp5200 ppc mpc5xxx mecp5200 esd
8b7d1f0a 613
6341d9d7 614munices_config: unconfig
ae6d1056 615 @$(MKCONFIG) munices ppc mpc5xxx munices
6341d9d7 616
91c82076 617o2dnt_config: unconfig
f9328639 618 @$(MKCONFIG) o2dnt ppc mpc5xxx o2dnt
df04a3df 619
f9301e1c 620pf5200_config: unconfig
f9328639 621 @$(MKCONFIG) pf5200 ppc mpc5xxx pf5200 esd
5e4b3361 622
89394047
WD
623PM520_config \
624PM520_DDR_config \
625PM520_ROMBOOT_config \
626PM520_ROMBOOT_DDR_config: unconfig
f9328639 627 @mkdir -p $(obj)include
89394047 628 @[ -z "$(findstring DDR,$@)" ] || \
f9328639 629 { echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h ; \
ae6d1056 630 $(XECHO) "... DDR memory revision" ; \
89394047
WD
631 }
632 @[ -z "$(findstring ROMBOOT,$@)" ] || \
f9328639 633 { echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
ae6d1056 634 $(XECHO) "... booting from 8-bit flash" ; \
89394047 635 }
f9328639 636 @$(MKCONFIG) -a PM520 ppc mpc5xxx pm520
89394047 637
6624b687 638smmaco4_config: unconfig
f9328639 639 @$(MKCONFIG) -a smmaco4 ppc mpc5xxx tqm5200
9cdc8386 640
86b116b1 641cm5200_config: unconfig
91c82076 642 @$(MKCONFIG) -a cm5200 ppc mpc5xxx cm5200
fa1df308 643
9cdc8386 644spieval_config: unconfig
f9328639 645 @$(MKCONFIG) -a spieval ppc mpc5xxx tqm5200
9cdc8386 646
45a212c4 647TB5200_B_config \
b87dfd28 648TB5200_config: unconfig
f9328639 649 @mkdir -p $(obj)include
45a212c4 650 @[ -z "$(findstring _B,$@)" ] || \
f9328639 651 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
ae6d1056 652 $(XECHO) "... with MPC5200B processor" ; \
45a212c4 653 }
f9328639 654 @$(MKCONFIG) -n $@ -a TB5200 ppc mpc5xxx tqm5200
b87dfd28 655
d4ca31c4
WD
656MINI5200_config \
657EVAL5200_config \
658TOP5200_config: unconfig
f9328639
MB
659 @mkdir -p $(obj)include
660 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
661 @$(MKCONFIG) -n $@ -a TOP5200 ppc mpc5xxx top5200 emk
d4ca31c4 662
6c7a1408
WD
663Total5100_config \
664Total5200_config \
665Total5200_lowboot_config \
666Total5200_Rev2_config \
667Total5200_Rev2_lowboot_config: unconfig
f9328639
MB
668 @mkdir -p $(obj)include
669 @mkdir -p $(obj)board/total5200
6c7a1408 670 @[ -z "$(findstring 5100,$@)" ] || \
f9328639 671 { echo "#define CONFIG_MGT5100" >>$(obj)include/config.h ; \
ae6d1056 672 $(XECHO) "... with MGT5100 processor" ; \
6c7a1408
WD
673 }
674 @[ -z "$(findstring 5200,$@)" ] || \
f9328639 675 { echo "#define CONFIG_MPC5200" >>$(obj)include/config.h ; \
ae6d1056 676 $(XECHO) "... with MPC5200 processor" ; \
6c7a1408
WD
677 }
678 @[ -n "$(findstring Rev,$@)" ] || \
f9328639 679 { echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h ; \
ae6d1056 680 $(XECHO) "... revision 1 board" ; \
6c7a1408
WD
681 }
682 @[ -z "$(findstring Rev2_,$@)" ] || \
f9328639 683 { echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h ; \
ae6d1056 684 $(XECHO) "... revision 2 board" ; \
6c7a1408
WD
685 }
686 @[ -z "$(findstring lowboot_,$@)" ] || \
f9328639 687 { echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp ; \
ae6d1056 688 $(XECHO) "... with lowboot configuration" ; \
6c7a1408 689 }
f9328639 690 @$(MKCONFIG) -a Total5200 ppc mpc5xxx total5200
6c7a1408 691
135ae006 692cam5200_config \
d9384de2 693cam5200_niosflash_config \
5196a7a0 694fo300_config \
6d3bc9b8 695MiniFAP_config \
5078cce8
WD
696TQM5200S_config \
697TQM5200S_HIGHBOOT_config \
5196a7a0
WD
698TQM5200_B_config \
699TQM5200_B_HIGHBOOT_config \
700TQM5200_config \
701TQM5200_STK100_config: unconfig
f9328639
MB
702 @mkdir -p $(obj)include
703 @mkdir -p $(obj)board/tqm5200
135ae006 704 @[ -z "$(findstring cam5200,$@)" ] || \
f9328639
MB
705 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
706 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
707 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
ae6d1056 708 $(XECHO) "... TQM5200S on Cam5200" ; \
5078cce8 709 }
d9384de2
MB
710 @[ -z "$(findstring niosflash,$@)" ] || \
711 { echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h ; \
ae6d1056 712 $(XECHO) "... with NIOS flash driver" ; \
d9384de2 713 }
6d3bc9b8 714 @[ -z "$(findstring fo300,$@)" ] || \
f9328639 715 { echo "#define CONFIG_FO300" >>$(obj)include/config.h ; \
ae6d1056 716 $(XECHO) "... TQM5200 on FO300" ; \
6d3bc9b8 717 }
89394047 718 @[ -z "$(findstring MiniFAP,$@)" ] || \
f9328639 719 { echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h ; \
ae6d1056 720 $(XECHO) "... TQM5200_AC on MiniFAP" ; \
56523f12 721 }
cd65a3dc 722 @[ -z "$(findstring STK100,$@)" ] || \
f9328639 723 { echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h ; \
ae6d1056 724 $(XECHO) "... on a STK52XX.100 base board" ; \
7e6bf358 725 }
5078cce8 726 @[ -z "$(findstring TQM5200_B,$@)" ] || \
f9328639 727 { echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
5078cce8
WD
728 }
729 @[ -z "$(findstring TQM5200S,$@)" ] || \
f9328639
MB
730 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
731 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
45a212c4 732 }
978b1096 733 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
f9328639 734 { echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp ; \
978b1096 735 }
f9328639 736 @$(MKCONFIG) -n $@ -a TQM5200 ppc mpc5xxx tqm5200
05bf4919 737uc101_config: unconfig
6dedf3d4 738 @$(MKCONFIG) uc101 ppc mpc5xxx uc101
05bf4919 739motionpro_config: unconfig
53d4a498
BS
740 @$(MKCONFIG) motionpro ppc mpc5xxx motionpro
741
56523f12 742
8993e54b
RJ
743#########################################################################
744## MPC512x Systems
745#########################################################################
5f91db7f
JR
746ads5121_config \
747ads5121_PCI_config \
748 : unconfig
210ed200 749 @mkdir -p $(obj)include
5f91db7f
JR
750 @if [ "$(findstring _PCI_,$@)" ] ; then \
751 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
752 $(XECHO) "... with PCI enabled" ; \
753 fi
754 @$(MKCONFIG) -a ads5121 ppc mpc512x ads5121
8993e54b
RJ
755
756
7ebf7443
WD
757#########################################################################
758## MPC8xx Systems
759#########################################################################
760
f9301e1c 761Adder_config \
2d24a3a7 762Adder87x_config \
f9301e1c 763AdderII_config \
2d24a3a7 764 : unconfig
f9328639 765 @mkdir -p $(obj)include
26238132 766 $(if $(findstring AdderII,$@), \
f9328639
MB
767 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
768 @$(MKCONFIG) -a Adder ppc mpc8xx adder
2d24a3a7 769
16c8d5e7 770AdderUSB_config: unconfig
91c82076 771 @$(MKCONFIG) -a AdderUSB ppc mpc8xx adder
16c8d5e7 772
f9301e1c
WD
773ADS860_config \
774FADS823_config \
180d3f74
WD
775FADS850SAR_config \
776MPC86xADS_config \
1114257c 777MPC885ADS_config \
180d3f74 778FADS860T_config: unconfig
f9328639 779 @$(MKCONFIG) $(@:_config=) ppc mpc8xx fads
7ebf7443
WD
780
781AMX860_config : unconfig
f9328639 782 @$(MKCONFIG) $(@:_config=) ppc mpc8xx amx860 westel
7ebf7443
WD
783
784c2mon_config: unconfig
f9328639 785 @$(MKCONFIG) $(@:_config=) ppc mpc8xx c2mon
7ebf7443
WD
786
787CCM_config: unconfig
f9328639 788 @$(MKCONFIG) $(@:_config=) ppc mpc8xx CCM siemens
7ebf7443
WD
789
790cogent_mpc8xx_config: unconfig
f9328639 791 @$(MKCONFIG) $(@:_config=) ppc mpc8xx cogent
7ebf7443 792
3bac3513 793ELPT860_config: unconfig
f9328639 794 @$(MKCONFIG) $(@:_config=) ppc mpc8xx elpt860 LEOX
3bac3513 795
84c960ce 796EP88x_config: unconfig
f9328639 797 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ep88x
84c960ce 798
7ebf7443 799ESTEEM192E_config: unconfig
f9328639 800 @$(MKCONFIG) $(@:_config=) ppc mpc8xx esteem192e
7ebf7443
WD
801
802ETX094_config : unconfig
f9328639 803 @$(MKCONFIG) $(@:_config=) ppc mpc8xx etx094
7ebf7443 804
7ebf7443 805FLAGADM_config: unconfig
f9328639 806 @$(MKCONFIG) $(@:_config=) ppc mpc8xx flagadm
7ebf7443 807
7aa78614
WD
808xtract_GEN860T = $(subst _SC,,$(subst _config,,$1))
809
810GEN860T_SC_config \
7ebf7443 811GEN860T_config: unconfig
f9328639 812 @mkdir -p $(obj)include
7aa78614 813 @[ -z "$(findstring _SC,$@)" ] || \
f9328639 814 { echo "#define CONFIG_SC" >>$(obj)include/config.h ; \
ae6d1056 815 $(XECHO) "With reduced H/W feature set (SC)..." ; \
7aa78614 816 }
f9328639 817 @$(MKCONFIG) -a $(call xtract_GEN860T,$@) ppc mpc8xx gen860t
7ebf7443
WD
818
819GENIETV_config: unconfig
f9328639 820 @$(MKCONFIG) $(@:_config=) ppc mpc8xx genietv
7ebf7443
WD
821
822GTH_config: unconfig
f9328639 823 @$(MKCONFIG) $(@:_config=) ppc mpc8xx gth
7ebf7443
WD
824
825hermes_config : unconfig
f9328639 826 @$(MKCONFIG) $(@:_config=) ppc mpc8xx hermes
7ebf7443 827
c40b2956 828HMI10_config : unconfig
f9328639 829 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
c40b2956 830
7ebf7443 831IAD210_config: unconfig
f9328639 832 @$(MKCONFIG) $(@:_config=) ppc mpc8xx IAD210 siemens
7ebf7443
WD
833
834xtract_ICU862 = $(subst _100MHz,,$(subst _config,,$1))
835
836ICU862_100MHz_config \
837ICU862_config: unconfig
f9328639 838 @mkdir -p $(obj)include
7ebf7443 839 @[ -z "$(findstring _100MHz,$@)" ] || \
f9328639 840 { echo "#define CONFIG_100MHz" >>$(obj)include/config.h ; \
ae6d1056 841 $(XECHO) "... with 100MHz system clock" ; \
7ebf7443 842 }
f9328639 843 @$(MKCONFIG) -a $(call xtract_ICU862,$@) ppc mpc8xx icu862
7ebf7443
WD
844
845IP860_config : unconfig
f9328639 846 @$(MKCONFIG) $(@:_config=) ppc mpc8xx ip860
7ebf7443
WD
847
848IVML24_256_config \
849IVML24_128_config \
850IVML24_config: unconfig
f9328639 851 @mkdir -p $(obj)include
7ebf7443 852 @[ -z "$(findstring IVML24_config,$@)" ] || \
f9328639 853 { echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h ; \
7ebf7443
WD
854 }
855 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
f9328639 856 { echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h ; \
7ebf7443
WD
857 }
858 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
f9328639 859 { echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h ; \
7ebf7443 860 }
f9328639 861 @$(MKCONFIG) -a IVML24 ppc mpc8xx ivm
7ebf7443
WD
862
863IVMS8_256_config \
864IVMS8_128_config \
865IVMS8_config: unconfig
f9328639 866 @mkdir -p $(obj)include
7ebf7443 867 @[ -z "$(findstring IVMS8_config,$@)" ] || \
f9328639 868 { echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h ; \
7ebf7443
WD
869 }
870 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
f9328639 871 { echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h ; \
7ebf7443
WD
872 }
873 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
f9328639 874 { echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h ; \
7ebf7443 875 }
f9328639 876 @$(MKCONFIG) -a IVMS8 ppc mpc8xx ivm
7ebf7443 877
56f94be3 878KUP4K_config : unconfig
f9328639 879 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4k kup
0608e04d 880
f9301e1c 881KUP4X_config : unconfig
f9328639 882 @$(MKCONFIG) $(@:_config=) ppc mpc8xx kup4x kup
56f94be3 883
7ebf7443 884LANTEC_config : unconfig
f9328639 885 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lantec
7ebf7443
WD
886
887lwmon_config: unconfig
f9328639 888 @$(MKCONFIG) $(@:_config=) ppc mpc8xx lwmon
7ebf7443
WD
889
890MBX_config \
891MBX860T_config: unconfig
f9328639 892 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mbx8xx
7ebf7443 893
381e4e63
HS
894mgsuvd_config: unconfig
895 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mgsuvd
896
7ebf7443 897MHPC_config: unconfig
f9328639 898 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mhpc eltec
7ebf7443
WD
899
900MVS1_config : unconfig
f9328639 901 @$(MKCONFIG) $(@:_config=) ppc mpc8xx mvs1
7ebf7443 902
993cad93
WD
903xtract_NETVIA = $(subst _V2,,$(subst _config,,$1))
904
905NETVIA_V2_config \
7ebf7443 906NETVIA_config: unconfig
f9328639 907 @mkdir -p $(obj)include
993cad93 908 @[ -z "$(findstring NETVIA_config,$@)" ] || \
f9328639 909 { echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h ; \
ae6d1056 910 $(XECHO) "... Version 1" ; \
993cad93
WD
911 }
912 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
f9328639 913 { echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h ; \
ae6d1056 914 $(XECHO) "... Version 2" ; \
993cad93 915 }
f9328639 916 @$(MKCONFIG) -a $(call xtract_NETVIA,$@) ppc mpc8xx netvia
7ebf7443 917
c26e454d
WD
918xtract_NETPHONE = $(subst _V2,,$(subst _config,,$1))
919
920NETPHONE_V2_config \
04a85b3b 921NETPHONE_config: unconfig
f9328639 922 @mkdir -p $(obj)include
c26e454d 923 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
f9328639 924 { echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h ; \
c26e454d
WD
925 }
926 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
f9328639 927 { echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h ; \
c26e454d 928 }
f9328639 929 @$(MKCONFIG) -a $(call xtract_NETPHONE,$@) ppc mpc8xx netphone
04a85b3b 930
79fa88f3 931xtract_NETTA = $(subst _SWAPHOOK,,$(subst _6412,,$(subst _ISDN,,$(subst _config,,$1))))
04a85b3b 932
79fa88f3
WD
933NETTA_ISDN_6412_SWAPHOOK_config \
934NETTA_ISDN_SWAPHOOK_config \
935NETTA_6412_SWAPHOOK_config \
936NETTA_SWAPHOOK_config \
937NETTA_ISDN_6412_config \
04a85b3b 938NETTA_ISDN_config \
79fa88f3 939NETTA_6412_config \
04a85b3b 940NETTA_config: unconfig
f9328639 941 @mkdir -p $(obj)include
79fa88f3 942 @[ -z "$(findstring ISDN_,$@)" ] || \
f9328639 943 { echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h ; \
79fa88f3
WD
944 }
945 @[ -n "$(findstring ISDN_,$@)" ] || \
f9328639 946 { echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h ; \
04a85b3b 947 }
79fa88f3 948 @[ -z "$(findstring 6412_,$@)" ] || \
f9328639 949 { echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h ; \
79fa88f3
WD
950 }
951 @[ -n "$(findstring 6412_,$@)" ] || \
f9328639 952 { echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h ; \
79fa88f3
WD
953 }
954 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
f9328639 955 { echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h ; \
79fa88f3
WD
956 }
957 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
f9328639 958 { echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h ; \
04a85b3b 959 }
f9328639 960 @$(MKCONFIG) -a $(call xtract_NETTA,$@) ppc mpc8xx netta
04a85b3b 961
79fa88f3
WD
962xtract_NETTA2 = $(subst _V2,,$(subst _config,,$1))
963
964NETTA2_V2_config \
965NETTA2_config: unconfig
f9328639 966 @mkdir -p $(obj)include
79fa88f3 967 @[ -z "$(findstring NETTA2_config,$@)" ] || \
f9328639 968 { echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h ; \
79fa88f3
WD
969 }
970 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
f9328639 971 { echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h ; \
79fa88f3 972 }
f9328639 973 @$(MKCONFIG) -a $(call xtract_NETTA2,$@) ppc mpc8xx netta2
79fa88f3 974
a367d426 975NC650_Rev1_config \
976NC650_Rev2_config \
977CP850_config: unconfig
f9328639 978 @mkdir -p $(obj)include
a367d426 979 @[ -z "$(findstring CP850,$@)" ] || \
f9328639
MB
980 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
981 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
a367d426 982 }
983 @[ -z "$(findstring Rev1,$@)" ] || \
f9328639 984 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
a367d426 985 }
986 @[ -z "$(findstring Rev2,$@)" ] || \
f9328639 987 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
a367d426 988 }
f9328639 989 @$(MKCONFIG) -a NC650 ppc mpc8xx nc650
7ca202f5 990
7ebf7443 991NX823_config: unconfig
f9328639 992 @$(MKCONFIG) $(@:_config=) ppc mpc8xx nx823
7ebf7443
WD
993
994pcu_e_config: unconfig
f9328639 995 @$(MKCONFIG) $(@:_config=) ppc mpc8xx pcu_e siemens
7ebf7443 996
3bbc899f 997QS850_config: unconfig
f9328639 998 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
3bbc899f
WD
999
1000QS823_config: unconfig
f9328639 1001 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs850 snmc
3bbc899f
WD
1002
1003QS860T_config: unconfig
f9328639 1004 @$(MKCONFIG) $(@:_config=) ppc mpc8xx qs860t snmc
3bbc899f 1005
da93ed81 1006quantum_config: unconfig
f9328639 1007 @$(MKCONFIG) $(@:_config=) ppc mpc8xx quantum
da93ed81 1008
7ebf7443 1009R360MPI_config: unconfig
f9328639 1010 @$(MKCONFIG) $(@:_config=) ppc mpc8xx r360mpi
7ebf7443 1011
682011ff 1012RBC823_config: unconfig
f9328639 1013 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rbc823
682011ff 1014
7ebf7443 1015RPXClassic_config: unconfig
f9328639 1016 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXClassic
7ebf7443
WD
1017
1018RPXlite_config: unconfig
f9328639 1019 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RPXlite
7ebf7443 1020
dd520bf3
WD
1021RPXlite_DW_64_config \
1022RPXlite_DW_LCD_config \
1023RPXlite_DW_64_LCD_config \
e63c8ee3 1024RPXlite_DW_NVRAM_config \
f9301e1c 1025RPXlite_DW_NVRAM_64_config \
e63c8ee3 1026RPXlite_DW_NVRAM_LCD_config \
f9301e1c 1027RPXlite_DW_NVRAM_64_LCD_config \
05bf4919 1028RPXlite_DW_config: unconfig
f9328639 1029 @mkdir -p $(obj)include
e63c8ee3 1030 @[ -z "$(findstring _64,$@)" ] || \
f9328639 1031 { echo "#define RPXlite_64MHz" >>$(obj)include/config.h ; \
ae6d1056 1032 $(XECHO) "... with 64MHz system clock ..."; \
e63c8ee3
WD
1033 }
1034 @[ -z "$(findstring _LCD,$@)" ] || \
dd520bf3 1035 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
f9328639 1036 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
ae6d1056 1037 $(XECHO) "... with LCD display ..."; \
e63c8ee3
WD
1038 }
1039 @[ -z "$(findstring _NVRAM,$@)" ] || \
dd520bf3 1040 { echo "#define CFG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h ; \
ae6d1056 1041 $(XECHO) "... with ENV in NVRAM ..."; \
e63c8ee3 1042 }
f9328639 1043 @$(MKCONFIG) -a RPXlite_DW ppc mpc8xx RPXlite_dw
e63c8ee3 1044
73a8b27c 1045rmu_config: unconfig
f9328639 1046 @$(MKCONFIG) $(@:_config=) ppc mpc8xx rmu
73a8b27c 1047
7ebf7443 1048RRvision_config: unconfig
f9328639 1049 @$(MKCONFIG) $(@:_config=) ppc mpc8xx RRvision
7ebf7443
WD
1050
1051RRvision_LCD_config: unconfig
f9328639
MB
1052 @mkdir -p $(obj)include
1053 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1054 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1055 @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision
7ebf7443
WD
1056
1057SM850_config : unconfig
f9328639 1058 @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx
7ebf7443 1059
91c82076 1060spc1920_config: unconfig
f9328639 1061 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spc1920
b02d0177 1062
7ebf7443 1063SPD823TS_config: unconfig
f9328639 1064 @$(MKCONFIG) $(@:_config=) ppc mpc8xx spd8xx
7ebf7443 1065
6bdf4306 1066stxxtc_config: unconfig
f9328639 1067 @$(MKCONFIG) $(@:_config=) ppc mpc8xx stxxtc
6bdf4306 1068
dc7c9a1a 1069svm_sc8xx_config: unconfig
f9328639 1070 @$(MKCONFIG) $(@:_config=) ppc mpc8xx svm_sc8xx
dc7c9a1a 1071
7ebf7443 1072SXNI855T_config: unconfig
f9328639 1073 @$(MKCONFIG) $(@:_config=) ppc mpc8xx sixnet
7ebf7443 1074
db2f721f
WD
1075# EMK MPC8xx based modules
1076TOP860_config: unconfig
f9328639 1077 @$(MKCONFIG) $(@:_config=) ppc mpc8xx top860 emk
db2f721f 1078
7ebf7443 1079# Play some tricks for configuration selection
e9132ea9
WD
1080# Only 855 and 860 boards may come with FEC
1081# and only 823 boards may have LCD support
1082xtract_8xx = $(subst _LCD,,$(subst _config,,$1))
7ebf7443
WD
1083
1084FPS850L_config \
384ae025 1085FPS860L_config \
f12e568c 1086NSCU_config \
7ebf7443 1087TQM823L_config \
7ebf7443 1088TQM823L_LCD_config \
7ebf7443 1089TQM850L_config \
7ebf7443 1090TQM855L_config \
7ebf7443 1091TQM860L_config \
d126bfbd 1092TQM862L_config \
ae3af05e 1093TQM823M_config \
ae3af05e 1094TQM850M_config \
f12e568c 1095TQM855M_config \
f12e568c 1096TQM860M_config \
f12e568c 1097TQM862M_config \
8cba090c 1098TQM866M_config \
090eb735 1099TQM885D_config \
efc6f447 1100TK885D_config \
8cba090c 1101virtlab2_config: unconfig
f9328639 1102 @mkdir -p $(obj)include
7ebf7443 1103 @[ -z "$(findstring _LCD,$@)" ] || \
f9328639
MB
1104 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1105 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
ae6d1056 1106 $(XECHO) "... with LCD display" ; \
7ebf7443 1107 }
f9328639 1108 @$(MKCONFIG) -a $(call xtract_8xx,$@) ppc mpc8xx tqm8xx
7ebf7443
WD
1109
1110TTTech_config: unconfig
f9328639
MB
1111 @mkdir -p $(obj)include
1112 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1113 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
1114 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
7ebf7443 1115
ec0aee7b 1116uc100_config : unconfig
f9328639 1117 @$(MKCONFIG) $(@:_config=) ppc mpc8xx uc100
f7d1572b 1118
608c9146 1119v37_config: unconfig
f9328639
MB
1120 @mkdir -p $(obj)include
1121 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1122 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
1123 @$(MKCONFIG) $(@:_config=) ppc mpc8xx v37
608c9146 1124
91e940d9 1125wtk_config: unconfig
f9328639
MB
1126 @mkdir -p $(obj)include
1127 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1128 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
1129 @$(MKCONFIG) -a TQM823L ppc mpc8xx tqm8xx
91e940d9 1130
7ebf7443
WD
1131#########################################################################
1132## PPC4xx Systems
1133#########################################################################
e55ca7e2 1134xtract_4xx = $(subst _25,,$(subst _33,,$(subst _BA,,$(subst _ME,,$(subst _HI,,$(subst _config,,$1))))))
7ebf7443 1135
16c0cc1c
SR
1136acadia_config: unconfig
1137 @$(MKCONFIG) $(@:_config=) ppc ppc4xx acadia amcc
1138
c440bfe6 1139acadia_nand_config: unconfig
63e22764
WD
1140 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1141 @mkdir -p $(obj)nand_spl/board/amcc/acadia
c440bfe6
SR
1142 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1143 @$(MKCONFIG) -n $@ -a acadia ppc ppc4xx acadia amcc
1144 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1145 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1146
7ebf7443 1147ADCIOP_config: unconfig
f9328639 1148 @$(MKCONFIG) $(@:_config=) ppc ppc4xx adciop esd
7ebf7443 1149
899620c2 1150alpr_config: unconfig
35d22f95 1151 @$(MKCONFIG) $(@:_config=) ppc ppc4xx alpr prodrive
899620c2 1152
7521af1c 1153AP1000_config:unconfig
f9328639 1154 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ap1000 amirix
7521af1c 1155
c419d1d6 1156APC405_config: unconfig
f9328639 1157 @$(MKCONFIG) $(@:_config=) ppc ppc4xx apc405 esd
c419d1d6 1158
7ebf7443 1159AR405_config: unconfig
f9328639 1160 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ar405 esd
7ebf7443 1161
549826ea 1162ASH405_config: unconfig
f9328639 1163 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ash405 esd
549826ea 1164
8a316c9b 1165bamboo_config: unconfig
f9328639 1166 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bamboo amcc
8a316c9b 1167
cf959c7d 1168bamboo_nand_config: unconfig
63e22764
WD
1169 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1170 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
cf959c7d 1171 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
f3679aa1 1172 @$(MKCONFIG) -n $@ -a bamboo ppc ppc4xx bamboo amcc
cf959c7d
SR
1173 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1174 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1175
8a316c9b 1176bubinga_config: unconfig
f9328639 1177 @$(MKCONFIG) $(@:_config=) ppc ppc4xx bubinga amcc
549826ea 1178
7ebf7443 1179CANBT_config: unconfig
f9328639 1180 @$(MKCONFIG) $(@:_config=) ppc ppc4xx canbt esd
7ebf7443 1181
4c9e8557
SR
1182# Canyonlands & Glacier use different U-Boot images
1183canyonlands_config \
1184glacier_config: unconfig
1185 @mkdir -p $(obj)include
1186 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1187 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1188 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
c813f1f8 1189
71665ebf
SR
1190canyonlands_nand_config: unconfig
1191 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1192 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1193 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1194 @$(MKCONFIG) -n $@ -a canyonlands ppc ppc4xx canyonlands amcc
1195 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1196 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1197
1d6f9720
WD
1198CATcenter_config \
1199CATcenter_25_config \
1200CATcenter_33_config: unconfig
f9328639
MB
1201 @mkdir -p $(obj)include
1202 @ echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1203 @ echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
1d6f9720 1204 @[ -z "$(findstring _25,$@)" ] || \
f9328639 1205 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h ; \
ae6d1056 1206 $(XECHO) "SysClk = 25MHz" ; \
1d6f9720
WD
1207 }
1208 @[ -z "$(findstring _33,$@)" ] || \
f9328639 1209 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h ; \
ae6d1056 1210 $(XECHO) "SysClk = 33MHz" ; \
1d6f9720 1211 }
f9328639 1212 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
10767ccb 1213
7644f16f 1214CPCI2DP_config: unconfig
f9328639 1215 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci2dp esd
7644f16f 1216
549826ea
SR
1217CPCI405_config \
1218CPCI4052_config \
c419d1d6 1219CPCI405DT_config \
549826ea 1220CPCI405AB_config: unconfig
f9328639
MB
1221 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpci405 esd
1222 @echo "BOARD_REVISION = $(@:_config=)" >> $(obj)include/config.mk
7ebf7443 1223
7ebf7443 1224CPCIISER4_config: unconfig
f9328639 1225 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cpciiser4 esd
7ebf7443 1226
db01a2ea 1227CRAYL1_config: unconfig
f9328639 1228 @$(MKCONFIG) $(@:_config=) ppc ppc4xx L1 cray
7ebf7443 1229
cd0a9de6 1230csb272_config: unconfig
f9328639 1231 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb272
cd0a9de6 1232
aa245090 1233csb472_config: unconfig
f9328639 1234 @$(MKCONFIG) $(@:_config=) ppc ppc4xx csb472
aa245090 1235
7ebf7443 1236DASA_SIM_config: unconfig
f9328639 1237 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dasa_sim esd
7ebf7443 1238
72cd5aa7 1239DP405_config: unconfig
f9328639 1240 @$(MKCONFIG) $(@:_config=) ppc ppc4xx dp405 esd
72cd5aa7 1241
7ebf7443 1242DU405_config: unconfig
f9328639 1243 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du405 esd
7ebf7443 1244
1a3ac86b
MF
1245DU440_config: unconfig
1246 @$(MKCONFIG) $(@:_config=) ppc ppc4xx du440 esd
1247
8a316c9b 1248ebony_config: unconfig
f9328639 1249 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ebony amcc
7ebf7443 1250
db01a2ea 1251ERIC_config: unconfig
f9328639 1252 @$(MKCONFIG) $(@:_config=) ppc ppc4xx eric
7ebf7443 1253
db01a2ea 1254EXBITGEN_config: unconfig
f9328639 1255 @$(MKCONFIG) $(@:_config=) ppc ppc4xx exbitgen
d1cbe85b 1256
c419d1d6 1257G2000_config: unconfig
f9328639 1258 @$(MKCONFIG) $(@:_config=) ppc ppc4xx g2000
c419d1d6 1259
ac982ea5 1260hcu4_config: unconfig
b7f6193e 1261 @mkdir -p $(obj)board/netstal/common
35d22f95 1262 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu4 netstal
ac982ea5
NG
1263
1264hcu5_config: unconfig
b7f6193e 1265 @mkdir -p $(obj)board/netstal/common
35d22f95 1266 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hcu5 netstal
ac982ea5 1267
c419d1d6 1268HH405_config: unconfig
f9328639 1269 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hh405 esd
c419d1d6 1270
72cd5aa7 1271HUB405_config: unconfig
f9328639 1272 @$(MKCONFIG) $(@:_config=) ppc ppc4xx hub405 esd
72cd5aa7 1273
db01a2ea 1274JSE_config: unconfig
f9328639 1275 @$(MKCONFIG) $(@:_config=) ppc ppc4xx jse
db01a2ea 1276
b79316f2 1277KAREF_config: unconfig
f9328639 1278 @$(MKCONFIG) $(@:_config=) ppc ppc4xx karef sandburst
b79316f2 1279
4745acaa
SR
1280katmai_config: unconfig
1281 @$(MKCONFIG) $(@:_config=) ppc ppc4xx katmai amcc
1282
353f2688
SR
1283# Kilauea & Haleakala images are identical (recognized via PVR)
1284kilauea_config \
1285haleakala_config: unconfig
1286 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
566806ca 1287
3d6cb3b2
SR
1288kilauea_nand_config \
1289haleakala_nand_config: unconfig
1290 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1291 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1292 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1293 @$(MKCONFIG) -n $@ -a kilauea ppc ppc4xx kilauea amcc
1294 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1295 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1296
c591dffe
LJ
1297korat_config: unconfig
1298 @$(MKCONFIG) $(@:_config=) ppc ppc4xx korat
1299
6e7fb6ea 1300luan_config: unconfig
f9328639 1301 @$(MKCONFIG) $(@:_config=) ppc ppc4xx luan amcc
6e7fb6ea 1302
b765ffb7
SR
1303lwmon5_config: unconfig
1304 @$(MKCONFIG) $(@:_config=) ppc ppc4xx lwmon5
1305
211ea91a
SR
1306makalu_config: unconfig
1307 @$(MKCONFIG) $(@:_config=) ppc ppc4xx makalu amcc
1308
b05f3543
NG
1309mcu25_config: unconfig
1310 @mkdir -p $(obj)board/netstal/common
1311 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mcu25 netstal
1312
b79316f2 1313METROBOX_config: unconfig
f9328639 1314 @$(MKCONFIG) $(@:_config=) ppc ppc4xx metrobox sandburst
b79316f2 1315
db01a2ea 1316MIP405_config: unconfig
f9328639 1317 @$(MKCONFIG) $(@:_config=) ppc ppc4xx mip405 mpl
7ebf7443 1318
db01a2ea 1319MIP405T_config: unconfig
f9328639
MB
1320 @mkdir -p $(obj)include
1321 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
ae6d1056 1322 @$(XECHO) "Enable subset config for MIP405T"
f9328639 1323 @$(MKCONFIG) -a MIP405 ppc ppc4xx mip405 mpl
f3e0de60 1324
db01a2ea 1325ML2_config: unconfig
f9328639 1326 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml2
7ebf7443 1327
db01a2ea 1328ml300_config: unconfig
f9328639 1329 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ml300 xilinx
028ab6b5 1330
8a316c9b 1331ocotea_config: unconfig
f9328639 1332 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocotea amcc
0e6d798c 1333
7ebf7443
WD
1334OCRTC_config \
1335ORSG_config: unconfig
f9328639 1336 @$(MKCONFIG) $(@:_config=) ppc ppc4xx ocrtc esd
7ebf7443 1337
5568e613 1338p3p440_config: unconfig
f9328639 1339 @$(MKCONFIG) $(@:_config=) ppc ppc4xx p3p440 prodrive
5568e613 1340
7ebf7443 1341PCI405_config: unconfig
f9328639 1342 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pci405 esd
7ebf7443 1343
a4c8d138 1344pcs440ep_config: unconfig
f9328639 1345 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pcs440ep
a4c8d138 1346
db01a2ea 1347PIP405_config: unconfig
f9328639 1348 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pip405 mpl
7ebf7443 1349
72cd5aa7 1350PLU405_config: unconfig
f9328639 1351 @$(MKCONFIG) $(@:_config=) ppc ppc4xx plu405 esd
72cd5aa7 1352
549826ea 1353PMC405_config: unconfig
f9328639 1354 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc405 esd
549826ea 1355
8ba132ca
MF
1356PMC440_config: unconfig
1357 @$(MKCONFIG) $(@:_config=) ppc ppc4xx pmc440 esd
1358
281e00a3 1359PPChameleonEVB_config \
e55ca7e2
WD
1360PPChameleonEVB_BA_25_config \
1361PPChameleonEVB_ME_25_config \
1362PPChameleonEVB_HI_25_config \
1363PPChameleonEVB_BA_33_config \
1364PPChameleonEVB_ME_33_config \
1365PPChameleonEVB_HI_33_config: unconfig
f9328639 1366 @mkdir -p $(obj)include
1d6f9720 1367 @[ -z "$(findstring EVB_BA,$@)" ] || \
f9328639 1368 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h ; \
ae6d1056 1369 $(XECHO) "... BASIC model" ; \
fbe4b5cb 1370 }
1d6f9720 1371 @[ -z "$(findstring EVB_ME,$@)" ] || \
f9328639 1372 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h ; \
ae6d1056 1373 $(XECHO) "... MEDIUM model" ; \
fbe4b5cb 1374 }
1d6f9720 1375 @[ -z "$(findstring EVB_HI,$@)" ] || \
f9328639 1376 { echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h ; \
ae6d1056 1377 $(XECHO) "... HIGH-END model" ; \
fbe4b5cb 1378 }
e55ca7e2 1379 @[ -z "$(findstring _25,$@)" ] || \
f9328639 1380 { echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h ; \
ae6d1056 1381 $(XECHO) "SysClk = 25MHz" ; \
e55ca7e2
WD
1382 }
1383 @[ -z "$(findstring _33,$@)" ] || \
f9328639 1384 { echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h ; \
ae6d1056 1385 $(XECHO) "SysClk = 33MHz" ; \
e55ca7e2 1386 }
f9328639 1387 @$(MKCONFIG) -a $(call xtract_4xx,$@) ppc ppc4xx PPChameleonEVB dave
12f34241 1388
652a10c0 1389sbc405_config: unconfig
f9328639 1390 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sbc405
652a10c0 1391
430f1b0f
SR
1392sequoia_config \
1393rainier_config: unconfig
1394 @mkdir -p $(obj)include
1395 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1396 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
1397 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
887e2ec9 1398
430f1b0f
SR
1399sequoia_nand_config \
1400rainier_nand_config: unconfig
63e22764
WD
1401 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1402 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
8318fbf8 1403 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
430f1b0f
SR
1404 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1405 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
1406 @$(MKCONFIG) -n $@ -a sequoia ppc ppc4xx sequoia amcc
8318fbf8
MB
1407 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1408 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
652a10c0 1409
6d3e0107 1410sc3_config:unconfig
35d22f95 1411 @$(MKCONFIG) $(@:_config=) ppc ppc4xx sc3
ca43ba18 1412
d4024bb7
JO
1413taihu_config: unconfig
1414 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taihu amcc
1415
5fb692ca
SR
1416taishan_config: unconfig
1417 @$(MKCONFIG) $(@:_config=) ppc ppc4xx taishan amcc
1418
72cd5aa7 1419VOH405_config: unconfig
f9328639 1420 @$(MKCONFIG) $(@:_config=) ppc ppc4xx voh405 esd
72cd5aa7 1421
c419d1d6 1422VOM405_config: unconfig
f9328639 1423 @$(MKCONFIG) $(@:_config=) ppc ppc4xx vom405 esd
c419d1d6 1424
feaedfcf 1425CMS700_config: unconfig
f9328639 1426 @$(MKCONFIG) $(@:_config=) ppc ppc4xx cms700 esd
feaedfcf 1427
7ebf7443
WD
1428W7OLMC_config \
1429W7OLMG_config: unconfig
f9328639 1430 @$(MKCONFIG) $(@:_config=) ppc ppc4xx w7o
7ebf7443 1431
430f1b0f
SR
1432# Walnut & Sycamore images are identical (recognized via PVR)
1433walnut_config \
1434sycamore_config: unconfig
1435 @$(MKCONFIG) -n $@ -a walnut ppc ppc4xx walnut amcc
7ebf7443 1436
c419d1d6 1437WUH405_config: unconfig
f9328639 1438 @$(MKCONFIG) $(@:_config=) ppc ppc4xx wuh405 esd
c419d1d6 1439
db01a2ea 1440XPEDITE1K_config: unconfig
f9328639 1441 @$(MKCONFIG) $(@:_config=) ppc ppc4xx xpedite1k
ba56f625 1442
430f1b0f
SR
1443yosemite_config \
1444yellowstone_config: unconfig
700200c6 1445 @mkdir -p $(obj)include
430f1b0f
SR
1446 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1447 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
2aa54f65 1448 @$(MKCONFIG) -n $@ -a yosemite ppc ppc4xx yosemite amcc
8a316c9b 1449
6c5879f3 1450yucca_config: unconfig
f9328639 1451 @$(MKCONFIG) $(@:_config=) ppc ppc4xx yucca amcc
6c5879f3 1452
779e9751
SR
1453zeus_config: unconfig
1454 @$(MKCONFIG) $(@:_config=) ppc ppc4xx zeus
1455
7ebf7443 1456#########################################################################
983fda83
WD
1457## MPC8220 Systems
1458#########################################################################
dc17fb6d
WD
1459
1460Alaska8220_config \
1461Yukon8220_config: unconfig
f9328639 1462 @$(MKCONFIG) $(@:_config=) ppc mpc8220 alaska
983fda83 1463
12b43d51 1464sorcery_config: unconfig
f9328639 1465 @$(MKCONFIG) $(@:_config=) ppc mpc8220 sorcery
12b43d51 1466
983fda83 1467#########################################################################
7ebf7443
WD
1468## MPC824x Systems
1469#########################################################################
efa329cb 1470xtract_82xx = $(subst _BIGFLASH,,$(subst _ROMBOOT,,$(subst _L2,,$(subst _266MHz,,$(subst _300MHz,,$(subst _config,,$1))))))
3bac3513 1471
0332990b 1472A3000_config: unconfig
f9328639 1473 @$(MKCONFIG) $(@:_config=) ppc mpc824x a3000
0332990b 1474
8e6f1a8e 1475barco_config: unconfig
f9328639 1476 @$(MKCONFIG) $(@:_config=) ppc mpc824x barco
8e6f1a8e 1477
7ebf7443 1478BMW_config: unconfig
f9328639 1479 @$(MKCONFIG) $(@:_config=) ppc mpc824x bmw
7ebf7443 1480
3bac3513
WD
1481CPC45_config \
1482CPC45_ROMBOOT_config: unconfig
f9328639
MB
1483 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc824x cpc45
1484 @cd $(obj)include ; \
3bac3513
WD
1485 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1486 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
ae6d1056 1487 $(XECHO) "... booting from 8-bit flash" ; \
3bac3513
WD
1488 else \
1489 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
ae6d1056 1490 $(XECHO) "... booting from 64-bit flash" ; \
3bac3513
WD
1491 fi; \
1492 echo "export CONFIG_BOOT_ROM" >> config.mk;
1493
7ebf7443 1494CU824_config: unconfig
f9328639 1495 @$(MKCONFIG) $(@:_config=) ppc mpc824x cu824
7ebf7443 1496
7abf0c58 1497debris_config: unconfig
f9328639 1498 @$(MKCONFIG) $(@:_config=) ppc mpc824x debris etin
7abf0c58 1499
80885a9d 1500eXalion_config: unconfig
f9328639 1501 @$(MKCONFIG) $(@:_config=) ppc mpc824x eXalion
80885a9d 1502
756f586a 1503HIDDEN_DRAGON_config: unconfig
f9328639 1504 @$(MKCONFIG) $(@:_config=) ppc mpc824x hidden_dragon
756f586a 1505
53dd6ce4 1506kvme080_config: unconfig
f9328639 1507 @$(MKCONFIG) $(@:_config=) ppc mpc824x kvme080 etin
53dd6ce4 1508
61525f2f
GL
1509# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1510# time permits.
1511#linkstation_HDLAN_config \
1512# Remove this line when HDLAN is fixed
1513linkstation_HGLAN_config: unconfig
1514 @mkdir -p $(obj)include
1515 @case $@ in \
1516 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1517 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1518 esac
1519 @$(MKCONFIG) -n $@ -a linkstation ppc mpc824x linkstation
1520
7ebf7443 1521MOUSSE_config: unconfig
f9328639 1522 @$(MKCONFIG) $(@:_config=) ppc mpc824x mousse
7ebf7443
WD
1523
1524MUSENKI_config: unconfig
f9328639 1525 @$(MKCONFIG) $(@:_config=) ppc mpc824x musenki
7ebf7443 1526
b4676a25 1527MVBLUE_config: unconfig
f9328639 1528 @$(MKCONFIG) $(@:_config=) ppc mpc824x mvblue
b4676a25 1529
7ebf7443 1530OXC_config: unconfig
f9328639 1531 @$(MKCONFIG) $(@:_config=) ppc mpc824x oxc
7ebf7443
WD
1532
1533PN62_config: unconfig
f9328639 1534 @$(MKCONFIG) $(@:_config=) ppc mpc824x pn62
7ebf7443
WD
1535
1536Sandpoint8240_config: unconfig
f9328639 1537 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
7ebf7443
WD
1538
1539Sandpoint8245_config: unconfig
f9328639 1540 @$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
7ebf7443 1541
466b7410 1542sbc8240_config: unconfig
f9328639 1543 @$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
466b7410 1544
d1cbe85b 1545SL8245_config: unconfig
f9328639 1546 @$(MKCONFIG) $(@:_config=) ppc mpc824x sl8245
d1cbe85b 1547
7ebf7443 1548utx8245_config: unconfig
f9328639 1549 @$(MKCONFIG) $(@:_config=) ppc mpc824x utx8245
7ebf7443
WD
1550
1551#########################################################################
1552## MPC8260 Systems
1553#########################################################################
7ebf7443 1554
54387ac9 1555atc_config: unconfig
f9328639 1556 @$(MKCONFIG) $(@:_config=) ppc mpc8260 atc
54387ac9 1557
7ebf7443 1558cogent_mpc8260_config: unconfig
f9328639 1559 @$(MKCONFIG) $(@:_config=) ppc mpc8260 cogent
7ebf7443
WD
1560
1561CPU86_config \
1562CPU86_ROMBOOT_config: unconfig
f9328639
MB
1563 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu86
1564 @cd $(obj)include ; \
7ebf7443
WD
1565 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1566 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
ae6d1056 1567 $(XECHO) "... booting from 8-bit flash" ; \
7ebf7443
WD
1568 else \
1569 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
ae6d1056 1570 $(XECHO) "... booting from 64-bit flash" ; \
7ebf7443
WD
1571 fi; \
1572 echo "export CONFIG_BOOT_ROM" >> config.mk;
1573
384cc687
WD
1574CPU87_config \
1575CPU87_ROMBOOT_config: unconfig
f9328639
MB
1576 @$(MKCONFIG) $(call xtract_82xx,$@) ppc mpc8260 cpu87
1577 @cd $(obj)include ; \
384cc687
WD
1578 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
1579 echo "CONFIG_BOOT_ROM = y" >> config.mk ; \
ae6d1056 1580 $(XECHO) "... booting from 8-bit flash" ; \
384cc687
WD
1581 else \
1582 echo "CONFIG_BOOT_ROM = n" >> config.mk ; \
ae6d1056 1583 $(XECHO) "... booting from 64-bit flash" ; \
384cc687
WD
1584 fi; \
1585 echo "export CONFIG_BOOT_ROM" >> config.mk;
1586
f901a83b
WD
1587ep8248_config \
1588ep8248E_config : unconfig
f9328639 1589 @$(MKCONFIG) ep8248 ppc mpc8260 ep8248
f901a83b 1590
7ebf7443 1591ep8260_config: unconfig
f9328639 1592 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep8260
7ebf7443 1593
8d4ac794 1594ep82xxm_config: unconfig
90b1b2d6 1595 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ep82xxm
8d4ac794 1596
7ebf7443 1597gw8260_config: unconfig
f9328639 1598 @$(MKCONFIG) $(@:_config=) ppc mpc8260 gw8260
7ebf7443
WD
1599
1600hymod_config: unconfig
f9328639 1601 @$(MKCONFIG) $(@:_config=) ppc mpc8260 hymod
7ebf7443 1602
9dd41a7b 1603IDS8247_config: unconfig
f9328639 1604 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ids8247
9dd41a7b 1605
7ebf7443 1606IPHASE4539_config: unconfig
f9328639 1607 @$(MKCONFIG) $(@:_config=) ppc mpc8260 iphase4539
7ebf7443 1608
c3c7f861
WD
1609ISPAN_config \
1610ISPAN_REVB_config: unconfig
f9328639 1611 @mkdir -p $(obj)include
c3c7f861 1612 @if [ "$(findstring _REVB_,$@)" ] ; then \
f9328639 1613 echo "#define CFG_REV_B" > $(obj)include/config.h ; \
c3c7f861 1614 fi
f9328639 1615 @$(MKCONFIG) -a ISPAN ppc mpc8260 ispan
c3c7f861 1616
ac9db066
HS
1617mgcoge_config : unconfig
1618 @$(MKCONFIG) mgcoge ppc mpc8260 mgcoge
1619
04a85b3b 1620MPC8260ADS_config \
901787d6 1621MPC8260ADS_lowboot_config \
04a85b3b 1622MPC8260ADS_33MHz_config \
901787d6 1623MPC8260ADS_33MHz_lowboot_config \
04a85b3b 1624MPC8260ADS_40MHz_config \
901787d6 1625MPC8260ADS_40MHz_lowboot_config \
04a85b3b 1626MPC8272ADS_config \
901787d6 1627MPC8272ADS_lowboot_config \
04a85b3b 1628PQ2FADS_config \
901787d6 1629PQ2FADS_lowboot_config \
04a85b3b 1630PQ2FADS-VR_config \
901787d6 1631PQ2FADS-VR_lowboot_config \
04a85b3b 1632PQ2FADS-ZU_config \
901787d6 1633PQ2FADS-ZU_lowboot_config \
04a85b3b 1634PQ2FADS-ZU_66MHz_config \
901787d6 1635PQ2FADS-ZU_66MHz_lowboot_config \
04a85b3b 1636 : unconfig
f9328639 1637 @mkdir -p $(obj)include
b7e24d28 1638 @mkdir -p $(obj)board/freescale/mpc8260ads
04a85b3b 1639 $(if $(findstring PQ2FADS,$@), \
f9328639
MB
1640 @echo "#define CONFIG_ADSTYPE CFG_PQ2FADS" > $(obj)include/config.h, \
1641 @echo "#define CONFIG_ADSTYPE CFG_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
04a85b3b 1642 $(if $(findstring MHz,$@), \
f9328639 1643 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
04a85b3b 1644 $(if $(findstring VR,$@), \
f9328639 1645 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
901787d6 1646 @[ -z "$(findstring lowboot_,$@)" ] || \
b7e24d28 1647 { echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp ; \
ae6d1056 1648 $(XECHO) "... with lowboot configuration" ; \
901787d6 1649 }
b7e24d28 1650 @$(MKCONFIG) -a MPC8260ADS ppc mpc8260 mpc8260ads freescale
7ebf7443 1651
db2f721f 1652MPC8266ADS_config: unconfig
aa3511e4 1653 @$(MKCONFIG) $(@:_config=) ppc mpc8260 mpc8266ads freescale
db2f721f 1654
efa329cb 1655# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
10f67017 1656PM825_config \
efa329cb
WD
1657PM825_ROMBOOT_config \
1658PM825_BIGFLASH_config \
1659PM825_ROMBOOT_BIGFLASH_config \
1660PM826_config \
1661PM826_ROMBOOT_config \
1662PM826_BIGFLASH_config \
1663PM826_ROMBOOT_BIGFLASH_config: unconfig
f9328639
MB
1664 @mkdir -p $(obj)include
1665 @mkdir -p $(obj)board/pm826
efa329cb 1666 @if [ "$(findstring PM825_,$@)" ] ; then \
f9328639 1667 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
efa329cb 1668 else \
f9328639 1669 >$(obj)include/config.h ; \
efa329cb
WD
1670 fi
1671 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
ae6d1056 1672 $(XECHO) "... booting from 8-bit flash" ; \
f9328639
MB
1673 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1674 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
efa329cb 1675 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
ae6d1056 1676 $(XECHO) "... with 32 MB Flash" ; \
f9328639 1677 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
efa329cb 1678 fi; \
10f67017 1679 else \
ae6d1056 1680 $(XECHO) "... booting from 64-bit flash" ; \
efa329cb 1681 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
ae6d1056 1682 $(XECHO) "... with 32 MB Flash" ; \
f9328639
MB
1683 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1684 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
efa329cb 1685 else \
f9328639 1686 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
efa329cb
WD
1687 fi; \
1688 fi
f9328639 1689 @$(MKCONFIG) -a PM826 ppc mpc8260 pm826
10f67017 1690
efa329cb
WD
1691PM828_config \
1692PM828_PCI_config \
1693PM828_ROMBOOT_config \
1694PM828_ROMBOOT_PCI_config: unconfig
f9328639
MB
1695 @mkdir -p $(obj)include
1696 @mkdir -p $(obj)board/pm826
17076266 1697 @if [ "$(findstring _PCI_,$@)" ] ; then \
f9328639 1698 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
ae6d1056 1699 $(XECHO) "... with PCI enabled" ; \
efa329cb
WD
1700 fi
1701 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
ae6d1056 1702 $(XECHO) "... booting from 8-bit flash" ; \
f9328639
MB
1703 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1704 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
efa329cb 1705 fi
f9328639 1706 @$(MKCONFIG) -a PM828 ppc mpc8260 pm828
7ebf7443
WD
1707
1708ppmc8260_config: unconfig
f9328639 1709 @$(MKCONFIG) $(@:_config=) ppc mpc8260 ppmc8260
7ebf7443 1710
8b0bfc68
WD
1711Rattler8248_config \
1712Rattler_config: unconfig
f9328639 1713 @mkdir -p $(obj)include
8b0bfc68 1714 $(if $(findstring 8248,$@), \
f9328639
MB
1715 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1716 @$(MKCONFIG) -a Rattler ppc mpc8260 rattler
8b0bfc68 1717
7ebf7443 1718RPXsuper_config: unconfig
f9328639 1719 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rpxsuper
7ebf7443
WD
1720
1721rsdproto_config: unconfig
f9328639 1722 @$(MKCONFIG) $(@:_config=) ppc mpc8260 rsdproto
7ebf7443
WD
1723
1724sacsng_config: unconfig
f9328639 1725 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sacsng
7ebf7443
WD
1726
1727sbc8260_config: unconfig
f9328639 1728 @$(MKCONFIG) $(@:_config=) ppc mpc8260 sbc8260
7ebf7443
WD
1729
1730SCM_config: unconfig
f9328639 1731 @$(MKCONFIG) $(@:_config=) ppc mpc8260 SCM siemens
7ebf7443 1732
27b207fd
WD
1733TQM8255_AA_config \
1734TQM8260_AA_config \
1735TQM8260_AB_config \
1736TQM8260_AC_config \
1737TQM8260_AD_config \
1738TQM8260_AE_config \
1739TQM8260_AF_config \
1740TQM8260_AG_config \
1741TQM8260_AH_config \
1f62bc2d 1742TQM8260_AI_config \
27b207fd 1743TQM8265_AA_config: unconfig
f9328639 1744 @mkdir -p $(obj)include
27b207fd 1745 @case "$@" in \
1f62bc2d
WD
1746 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1747 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1748 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1749 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1750 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1751 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1752 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1753 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1754 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1755 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1756 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
27b207fd 1757 esac; \
27b207fd 1758 if [ "$${CTYPE}" != "MPC8260" ] ; then \
f9328639 1759 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
27b207fd 1760 fi; \
f9328639 1761 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
27b207fd 1762 echo "... with $${CFREQ}MHz system clock" ; \
1aaab9bf 1763 if [ "$${CACHE}" = "yes" ] ; then \
f9328639 1764 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
ae6d1056 1765 $(XECHO) "... with L2 Cache support" ; \
7ebf7443 1766 else \
f9328639 1767 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
ae6d1056 1768 $(XECHO) "... without L2 Cache support" ; \
27b207fd 1769 fi; \
1aaab9bf 1770 if [ "$${BMODE}" = "60x" ] ; then \
f9328639 1771 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
ae6d1056 1772 $(XECHO) "... with 60x Bus Mode" ; \
27b207fd 1773 else \
f9328639 1774 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
ae6d1056 1775 $(XECHO) "... without 60x Bus Mode" ; \
7ebf7443 1776 fi
f9328639 1777 @$(MKCONFIG) -a TQM8260 ppc mpc8260 tqm8260
7ebf7443 1778
fa230445 1779TQM8272_config: unconfig
210ed200 1780 @$(MKCONFIG) TQM8272 ppc mpc8260 tqm8272
fa230445 1781
ba91e26a
WD
1782VoVPN-GW_66MHz_config \
1783VoVPN-GW_100MHz_config: unconfig
f9328639
MB
1784 @mkdir -p $(obj)include
1785 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
1786 @$(MKCONFIG) -a VoVPN-GW ppc mpc8260 vovpn-gw funkwerk
ba91e26a 1787
54387ac9 1788ZPC1900_config: unconfig
f9328639 1789 @$(MKCONFIG) $(@:_config=) ppc mpc8260 zpc1900
7aa78614 1790
4e5ca3eb
WD
1791#########################################################################
1792## Coldfire
1793#########################################################################
1794
1552af70
TL
1795M52277EVB_config: unconfig
1796 @$(MKCONFIG) -a M52277EVB m68k mcf5227x m52277evb freescale
1797
4a442d31
TL
1798M5235EVB_config \
1799M5235EVB_Flash16_config \
1800M5235EVB_Flash32_config: unconfig
1801 @case "$@" in \
1802 M5235EVB_config) FLASH=16;; \
1803 M5235EVB_Flash16_config) FLASH=16;; \
1804 M5235EVB_Flash32_config) FLASH=32;; \
1805 esac; \
4a442d31 1806 if [ "$${FLASH}" != "16" ] ; then \
ae6d1056 1807 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
4a442d31
TL
1808 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1809 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1810 else \
1811 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1812 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1813 fi
1814 @$(MKCONFIG) -a M5235EVB m68k mcf523x m5235evb freescale
1815
a605aacd
TL
1816M5249EVB_config : unconfig
1817 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5249evb freescale
1818
a1436a84
TL
1819M5253EVBE_config : unconfig
1820 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5253evbe freescale
1821
7481266e 1822cobra5272_config : unconfig
f9328639 1823 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 cobra5272
7481266e 1824
4176c799 1825EB+MCF-EV123_config : unconfig
f9328639
MB
1826 @mkdir -p $(obj)include
1827 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
f9328639
MB
1828 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1829 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
4176c799
WD
1830
1831EB+MCF-EV123_internal_config : unconfig
f9328639
MB
1832 @mkdir -p $(obj)include
1833 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
f9328639
MB
1834 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
1835 @$(MKCONFIG) EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
4176c799 1836
daa6e418
BS
1837idmr_config : unconfig
1838 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 idmr
1839
4176c799 1840M5271EVB_config : unconfig
f9328639 1841 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5271evb
4176c799 1842
4e5ca3eb 1843M5272C3_config : unconfig
f9328639 1844 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5272c3
4e5ca3eb 1845
545c8e0a
MF
1846M5275EVB_config : unconfig
1847 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5275evb freescale
1848
4e5ca3eb 1849M5282EVB_config : unconfig
f9328639 1850 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 m5282evb
4e5ca3eb 1851
c419d1d6 1852TASREG_config : unconfig
f9328639 1853 @$(MKCONFIG) $(@:_config=) m68k mcf52x2 tasreg esd
c419d1d6 1854
8e585f02
TL
1855M5329AFEE_config \
1856M5329BFEE_config : unconfig
1857 @case "$@" in \
1858 M5329AFEE_config) NAND=0;; \
1859 M5329BFEE_config) NAND=16;; \
1860 esac; \
8e585f02 1861 if [ "$${NAND}" != "0" ] ; then \
ab77bc54 1862 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
8e585f02
TL
1863 fi
1864 @$(MKCONFIG) -a M5329EVB m68k mcf532x m5329evb freescale
1865
aa5f1f9d
TL
1866M5373EVB_config : unconfig
1867 @case "$@" in \
1868 M5373EVB_config) NAND=16;; \
1869 esac; \
aa5f1f9d
TL
1870 if [ "$${NAND}" != "0" ] ; then \
1871 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1872 fi
1873 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1874
8ae158cd
TL
1875M54455EVB_config \
1876M54455EVB_atmel_config \
1877M54455EVB_intel_config \
1878M54455EVB_a33_config \
1879M54455EVB_a66_config \
1880M54455EVB_i33_config \
1881M54455EVB_i66_config : unconfig
1882 @case "$@" in \
1883 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1884 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1885 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1886 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1887 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1888 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1889 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
1890 esac; \
1aaab9bf 1891 if [ "$${FLASH}" = "INTEL" ] ; then \
4a442d31 1892 echo "#undef CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
e8ee8f3a
TL
1893 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1894 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
ae6d1056 1895 $(XECHO) "... with INTEL boot..." ; \
8ae158cd 1896 else \
4a442d31 1897 echo "#define CFG_ATMEL_BOOT" >> $(obj)include/config.h ; \
e8ee8f3a
TL
1898 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1899 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
ae6d1056 1900 $(XECHO) "... with ATMEL boot..." ; \
8ae158cd 1901 fi; \
4a442d31 1902 echo "#define CFG_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
ae6d1056 1903 $(XECHO) "... with $${FREQ}Hz input clock"
8ae158cd
TL
1904 @$(MKCONFIG) -a M54455EVB m68k mcf5445x m54455evb freescale
1905
57a12720
TL
1906M5475AFE_config \
1907M5475BFE_config \
1908M5475CFE_config \
1909M5475DFE_config \
1910M5475EFE_config \
1911M5475FFE_config \
1912M5475GFE_config : unconfig
1913 @case "$@" in \
1914 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1915 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1916 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1917 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1918 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1919 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1920 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1921 esac; \
57a12720
TL
1922 echo "#define CFG_BUSCLK 133333333" > $(obj)include/config.h ; \
1923 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1924 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1925 if [ "$${RAM1}" != "0" ] ; then \
1926 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1927 fi; \
1928 if [ "$${CODE}" != "0" ] ; then \
1929 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1930 fi; \
1931 if [ "$${VID}" == "1" ] ; then \
1932 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
1933 fi; \
1934 if [ "$${USB}" == "1" ] ; then \
1935 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
1936 fi
1937 @$(MKCONFIG) -a M5475EVB m68k mcf547x_8x m547xevb freescale
1938
1939M5485AFE_config \
1940M5485BFE_config \
1941M5485CFE_config \
1942M5485DFE_config \
1943M5485EFE_config \
1944M5485FFE_config \
1945M5485GFE_config \
1946M5485HFE_config : unconfig
1947 @case "$@" in \
1948 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1949 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1950 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1951 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1952 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1953 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1954 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
4d264eff 1955 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
57a12720 1956 esac; \
57a12720
TL
1957 echo "#define CFG_BUSCLK 100000000" > $(obj)include/config.h ; \
1958 echo "#define CFG_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1959 echo "#define CFG_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
1960 if [ "$${RAM1}" != "0" ] ; then \
1961 echo "#define CFG_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
1962 fi; \
1963 if [ "$${CODE}" != "0" ] ; then \
1964 echo "#define CFG_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
1965 fi; \
1966 if [ "$${VID}" == "1" ] ; then \
1967 echo "#define CFG_VIDEO" >> $(obj)include/config.h ; \
1968 fi; \
1969 if [ "$${USB}" == "1" ] ; then \
1970 echo "#define CFG_USBCTRL" >> $(obj)include/config.h ; \
1971 fi
1972 @$(MKCONFIG) -a M5485EVB m68k mcf547x_8x m548xevb freescale
1973
f046ccd1
EL
1974#########################################################################
1975## MPC83xx Systems
1976#########################################################################
1977
5c5d3242
KP
1978MPC8313ERDB_33_config \
1979MPC8313ERDB_66_config: unconfig
cdd917a4 1980 @mkdir -p $(obj)include
c6fe4dab 1981 @if [ "$(findstring _33_,$@)" ] ; then \
ae6d1056 1982 $(XECHO) -n "...33M ..." ; \
cdd917a4 1983 echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
5c5d3242
KP
1984 fi ; \
1985 if [ "$(findstring _66_,$@)" ] ; then \
ae6d1056 1986 $(XECHO) -n "...66M..." ; \
cdd917a4 1987 echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
5c5d3242 1988 fi ;
e58fe957 1989 @$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb freescale
5c5d3242 1990
8bd522ce
DL
1991MPC8315ERDB_config: unconfig
1992 @$(MKCONFIG) -a MPC8315ERDB ppc mpc83xx mpc8315erdb freescale
1993
1c274c4e
KP
1994MPC8323ERDB_config: unconfig
1995 @$(MKCONFIG) -a MPC8323ERDB ppc mpc83xx mpc8323erdb freescale
1996
4decd84e
KP
1997MPC832XEMDS_config \
1998MPC832XEMDS_HOST_33_config \
1999MPC832XEMDS_HOST_66_config \
281df457
TL
2000MPC832XEMDS_SLAVE_config \
2001MPC832XEMDS_ATM_config: unconfig
cdd917a4 2002 @mkdir -p $(obj)include
c6fe4dab 2003 @if [ "$(findstring _HOST_,$@)" ] ; then \
ae6d1056 2004 $(XECHO) -n "... PCI HOST " ; \
cdd917a4 2005 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
5f820439
DL
2006 fi ; \
2007 if [ "$(findstring _SLAVE_,$@)" ] ; then \
ae6d1056 2008 $(XECHO) "...PCI SLAVE 66M" ; \
cdd917a4
WD
2009 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2010 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
5f820439
DL
2011 fi ; \
2012 if [ "$(findstring _33_,$@)" ] ; then \
ae6d1056 2013 $(XECHO) -n "...33M ..." ; \
cdd917a4 2014 echo "#define PCI_33M" >>$(obj)include/config.h ; \
281df457 2015 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
5f820439
DL
2016 fi ; \
2017 if [ "$(findstring _66_,$@)" ] ; then \
ae6d1056 2018 $(XECHO) -n "...66M..." ; \
cdd917a4 2019 echo "#define PCI_66M" >>$(obj)include/config.h ; \
281df457
TL
2020 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2021 fi ; \
2022 if [ "$(findstring _ATM_,$@)" ] ; then \
ae6d1056 2023 $(XECHO) -n "...ATM..." ; \
281df457 2024 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
f9301e1c 2025 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
5f820439 2026 fi ;
e58fe957 2027 @$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds freescale
e6f2e902 2028
991425fe 2029MPC8349EMDS_config: unconfig
e58fe957 2030 @$(MKCONFIG) $(@:_config=) ppc mpc83xx mpc8349emds freescale
991425fe 2031
7a78f148
TT
2032MPC8349ITX_config \
2033MPC8349ITX_LOWBOOT_config \
2034MPC8349ITXGP_config: unconfig
2035 @mkdir -p $(obj)include
e21659e3 2036 @mkdir -p $(obj)board/freescale/mpc8349itx
7a78f148
TT
2037 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
2038 @if [ "$(findstring GP,$@)" ] ; then \
e21659e3 2039 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
7a78f148
TT
2040 fi
2041 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
e21659e3 2042 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
7a78f148 2043 fi
e58fe957 2044 @$(MKCONFIG) -a -n $(@:_config=) MPC8349ITX ppc mpc83xx mpc8349itx freescale
2ad6b513 2045
5f820439
DL
2046MPC8360EMDS_config \
2047MPC8360EMDS_HOST_33_config \
2048MPC8360EMDS_HOST_66_config \
281df457
TL
2049MPC8360EMDS_SLAVE_config \
2050MPC8360EMDS_ATM_config: unconfig
cdd917a4 2051 @mkdir -p $(obj)include
c6fe4dab 2052 @if [ "$(findstring _HOST_,$@)" ] ; then \
ae6d1056 2053 $(XECHO) -n "... PCI HOST " ; \
cdd917a4 2054 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
5f820439
DL
2055 fi ; \
2056 if [ "$(findstring _SLAVE_,$@)" ] ; then \
ae6d1056 2057 $(XECHO) "...PCI SLAVE 66M" ; \
cdd917a4
WD
2058 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2059 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
5f820439
DL
2060 fi ; \
2061 if [ "$(findstring _33_,$@)" ] ; then \
ae6d1056 2062 $(XECHO) -n "...33M ..." ; \
cdd917a4 2063 echo "#define PCI_33M" >>$(obj)include/config.h ; \
281df457 2064 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
5f820439
DL
2065 fi ; \
2066 if [ "$(findstring _66_,$@)" ] ; then \
ae6d1056 2067 $(XECHO) -n "...66M..." ; \
cdd917a4 2068 echo "#define PCI_66M" >>$(obj)include/config.h ; \
281df457
TL
2069 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2070 fi ; \
2071 if [ "$(findstring _ATM_,$@)" ] ; then \
ae6d1056 2072 $(XECHO) -n "...ATM..." ; \
281df457 2073 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
f9301e1c 2074 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
5f820439 2075 fi ;
e58fe957 2076 @$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds freescale
5f820439 2077
fab6f556
AV
2078MPC8360ERDK_33_config \
2079MPC8360ERDK_66_config \
91c82076 2080MPC8360ERDK_config: unconfig
fab6f556 2081 @mkdir -p $(obj)include
c6fe4dab 2082 @if [ "$(findstring _33_,$@)" ] ; then \
ae6d1056 2083 $(XECHO) -n "... CLKIN 33MHz " ; \
fab6f556
AV
2084 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2085 fi ;
2086 @$(MKCONFIG) -a MPC8360ERDK ppc mpc83xx mpc8360erdk freescale
2087
19580e66
DL
2088MPC837XEMDS_config \
2089MPC837XEMDS_HOST_config: unconfig
2090 @mkdir -p $(obj)include
c6fe4dab 2091 @if [ "$(findstring _HOST_,$@)" ] ; then \
ae6d1056 2092 $(XECHO) -n "... PCI HOST " ; \
19580e66
DL
2093 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2094 fi ;
2095 @$(MKCONFIG) -a MPC837XEMDS ppc mpc83xx mpc837xemds freescale
2096
5e918a98
KP
2097MPC837XERDB_config: unconfig
2098 @$(MKCONFIG) -a MPC837XERDB ppc mpc83xx mpc837xerdb freescale
2099
4decd84e
KP
2100sbc8349_config: unconfig
2101 @$(MKCONFIG) $(@:_config=) ppc mpc83xx sbc8349
2102
2103TQM834x_config: unconfig
2104 @$(MKCONFIG) $(@:_config=) ppc mpc83xx tqm834x
2105
2ad6b513 2106
42d1f039
WD
2107#########################################################################
2108## MPC85xx Systems
2109#########################################################################
2110
7bd6104b 2111ATUM8548_config: unconfig
2112 @$(MKCONFIG) $(@:_config=) ppc mpc85xx atum8548
2113
0ac6f8b7 2114MPC8540ADS_config: unconfig
c2d943ff 2115 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8540ads freescale
42d1f039 2116
b0e32949
LW
2117MPC8540EVAL_config \
2118MPC8540EVAL_33_config \
2119MPC8540EVAL_66_config \
2120MPC8540EVAL_33_slave_config \
f9301e1c 2121MPC8540EVAL_66_slave_config: unconfig
f9328639 2122 @mkdir -p $(obj)include
c6fe4dab 2123 @if [ "$(findstring _33_,$@)" ] ; then \
ae6d1056 2124 $(XECHO) "... 33 MHz PCI" ; \
b0e32949 2125 else \
f9328639 2126 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
ae6d1056 2127 $(XECHO) "... 66 MHz PCI" ; \
b0e32949
LW
2128 fi ; \
2129 if [ "$(findstring _slave_,$@)" ] ; then \
f9328639 2130 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
ae6d1056 2131 $(XECHO) " slave" ; \
b0e32949 2132 else \
ae6d1056 2133 $(XECHO) " host" ; \
b0e32949 2134 fi
f9328639 2135 @$(MKCONFIG) -a MPC8540EVAL ppc mpc85xx mpc8540eval
b0e32949 2136
0ac6f8b7 2137MPC8560ADS_config: unconfig
870ceac5 2138 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8560ads freescale
42d1f039 2139
7f3f2bd2 2140MPC8541CDS_legacy_config \
03f5c550 2141MPC8541CDS_config: unconfig
7f3f2bd2 2142 @mkdir -p $(obj)include
c6fe4dab 2143 @if [ "$(findstring _legacy_,$@)" ] ; then \
7f3f2bd2 2144 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
ae6d1056 2145 $(XECHO) "... legacy" ; \
7f3f2bd2 2146 fi
415a613b 2147 @$(MKCONFIG) -a MPC8541CDS ppc mpc85xx mpc8541cds freescale
03f5c550 2148
81f481ca
AF
2149MPC8544DS_config: unconfig
2150 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8544ds freescale
2151
7f3f2bd2 2152MPC8548CDS_legacy_config \
d9b94f28 2153MPC8548CDS_config: unconfig
7f3f2bd2 2154 @mkdir -p $(obj)include
c6fe4dab 2155 @if [ "$(findstring _legacy_,$@)" ] ; then \
7f3f2bd2 2156 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
ae6d1056 2157 $(XECHO) "... legacy" ; \
7f3f2bd2 2158 fi
415a613b 2159 @$(MKCONFIG) -a MPC8548CDS ppc mpc85xx mpc8548cds freescale
d9b94f28 2160
7f3f2bd2 2161MPC8555CDS_legacy_config \
03f5c550 2162MPC8555CDS_config: unconfig
7f3f2bd2 2163 @mkdir -p $(obj)include
c6fe4dab 2164 @if [ "$(findstring _legacy_,$@)" ] ; then \
7f3f2bd2 2165 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
ae6d1056 2166 $(XECHO) "... legacy" ; \
7f3f2bd2 2167 fi
415a613b 2168 @$(MKCONFIG) -a MPC8555CDS ppc mpc85xx mpc8555cds freescale
7abf0c58 2169
67431059 2170MPC8568MDS_config: unconfig
acbca876 2171 @$(MKCONFIG) $(@:_config=) ppc mpc85xx mpc8568mds freescale
67431059 2172
384cc687 2173PM854_config: unconfig
f9328639 2174 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm854
384cc687 2175
b20d0032 2176PM856_config: unconfig
f9328639 2177 @$(MKCONFIG) $(@:_config=) ppc mpc85xx pm856
b20d0032 2178
c15f3120
WD
2179sbc8540_config \
2180sbc8540_33_config \
2181sbc8540_66_config: unconfig
f9328639 2182 @mkdir -p $(obj)include
c15f3120 2183 @if [ "$(findstring _66_,$@)" ] ; then \
f9328639 2184 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
ae6d1056 2185 $(XECHO) "... 66 MHz PCI" ; \
c15f3120 2186 else \
ae6d1056 2187 $(XECHO) "... 33 MHz PCI" ; \
c15f3120 2188 fi
f9328639 2189 @$(MKCONFIG) -a SBC8540 ppc mpc85xx sbc8560
c15f3120 2190
11c45ebd
JH
2191sbc8548_config: unconfig
2192 @$(MKCONFIG) $(@:_config=) ppc mpc85xx sbc8548
2193
466b7410
WD
2194sbc8560_config \
2195sbc8560_33_config \
f9301e1c 2196sbc8560_66_config: unconfig
f9328639 2197 @mkdir -p $(obj)include
8b07a110 2198 @if [ "$(findstring _66_,$@)" ] ; then \
f9328639 2199 echo "#define CONFIG_PCI_66" >>$(obj)include/config.h ; \
ae6d1056 2200 $(XECHO) "... 66 MHz PCI" ; \
8b07a110 2201 else \
ae6d1056 2202 $(XECHO) "... 33 MHz PCI" ; \
8b07a110 2203 fi
f9328639 2204 @$(MKCONFIG) -a sbc8560 ppc mpc85xx sbc8560
8b07a110 2205
03f5c550 2206stxgp3_config: unconfig
f9328639 2207 @$(MKCONFIG) $(@:_config=) ppc mpc85xx stxgp3
03f5c550 2208
ee152983
WD
2209stxssa_config \
2210stxssa_4M_config: unconfig
2211 @mkdir -p $(obj)include
2212 @if [ "$(findstring _4M_,$@)" ] ; then \
2213 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
ae6d1056 2214 $(XECHO) "... with 4 MiB flash memory" ; \
ee152983
WD
2215 fi
2216 @$(MKCONFIG) -a stxssa ppc mpc85xx stxssa
35171dc0 2217
d96f41e0
SR
2218TQM8540_config \
2219TQM8541_config \
2220TQM8555_config \
2221TQM8560_config: unconfig
f9328639 2222 @mkdir -p $(obj)include
a889bd27 2223 @CTYPE=$(subst TQM,,$(@:_config=)); \
ae6d1056 2224 $(XECHO) "... TQM"$${CTYPE}; \
f9328639
MB
2225 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
2226 echo "#define CONFIG_TQM$${CTYPE}">>$(obj)include/config.h; \
2227 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
2228 echo "#define CONFIG_BOARDNAME \"TQM$${CTYPE}\"">>$(obj)include/config.h; \
8a783a65 2229 echo "#define CFG_BOOTFILE_PATH \"/tftpboot/tqm$${CTYPE}/uImage\"">>$(obj)include/config.h
f9328639 2230 @$(MKCONFIG) -a TQM85xx ppc mpc85xx tqm85xx
f5c5ef4a 2231
debb7354
JL
2232#########################################################################
2233## MPC86xx Systems
2234#########################################################################
2235
3c89d754
JL
2236MPC8610HPCD_config: unconfig
2237 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8610hpcd freescale
2238
debb7354 2239MPC8641HPCN_config: unconfig
4ce91774 2240 @$(MKCONFIG) $(@:_config=) ppc mpc86xx mpc8641hpcn freescale
debb7354 2241
c646bba6 2242sbc8641d_config: unconfig
91c82076 2243 @$(MKCONFIG) $(@:_config=) ppc mpc86xx sbc8641d
debb7354 2244
7ebf7443
WD
2245#########################################################################
2246## 74xx/7xx Systems
2247#########################################################################
2248
c7de829c 2249AmigaOneG3SE_config: unconfig
f9328639 2250 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx AmigaOneG3SE MAI
c7de829c 2251
15647dc7 2252BAB7xx_config: unconfig
f9328639 2253 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx bab7xx eltec
15647dc7 2254
05bf4919 2255CPCI750_config: unconfig
f9328639 2256 @$(MKCONFIG) CPCI750 ppc 74xx_7xx cpci750 esd
c419d1d6 2257
05bf4919 2258DB64360_config: unconfig
f9328639 2259 @$(MKCONFIG) DB64360 ppc 74xx_7xx db64360 Marvell
3a473b2a 2260
05bf4919 2261DB64460_config: unconfig
f9328639 2262 @$(MKCONFIG) DB64460 ppc 74xx_7xx db64460 Marvell
3a473b2a 2263
15647dc7 2264ELPPC_config: unconfig
f9328639 2265 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx elppc eltec
15647dc7 2266
7ebf7443
WD
2267EVB64260_config \
2268EVB64260_750CX_config: unconfig
f9328639 2269 @$(MKCONFIG) EVB64260 ppc 74xx_7xx evb64260
7ebf7443 2270
4c52783b 2271mpc7448hpc2_config: unconfig
7f1d846e 2272 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx mpc7448hpc2 freescale
4c52783b 2273
15647dc7 2274P3G4_config: unconfig
f9328639 2275 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
7ebf7443 2276
1eac2a71
SR
2277p3m750_config \
2278p3m7448_config: unconfig
2279 @mkdir -p $(obj)include
2280 @if [ "$(findstring 750_,$@)" ] ; then \
2281 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2282 else \
2283 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2284 fi
2285 @$(MKCONFIG) -a p3mx ppc 74xx_7xx p3mx prodrive
2286
7ebf7443
WD
2287PCIPPC2_config \
2288PCIPPC6_config: unconfig
f9328639 2289 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx pcippc2
7ebf7443 2290
15647dc7 2291ZUMA_config: unconfig
f9328639 2292 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx evb64260
12f34241 2293
f5e0d039 2294ppmc7xx_config: unconfig
f9328639 2295 @$(MKCONFIG) $(@:_config=) ppc 74xx_7xx ppmc7xx
b87dfd28 2296
7ebf7443
WD
2297#========================================================================
2298# ARM
2299#========================================================================
2300#########################################################################
2301## StrongARM Systems
2302#########################################################################
2303
ea66bc88 2304assabet_config : unconfig
f9328639 2305 @$(MKCONFIG) $(@:_config=) arm sa1100 assabet
ea66bc88 2306
7ebf7443 2307dnp1110_config : unconfig
f9328639 2308 @$(MKCONFIG) $(@:_config=) arm sa1100 dnp1110
7ebf7443 2309
855a496f 2310gcplus_config : unconfig
f9328639 2311 @$(MKCONFIG) $(@:_config=) arm sa1100 gcplus
855a496f
WD
2312
2313lart_config : unconfig
f9328639 2314 @$(MKCONFIG) $(@:_config=) arm sa1100 lart
855a496f 2315
7ebf7443 2316shannon_config : unconfig
f9328639 2317 @$(MKCONFIG) $(@:_config=) arm sa1100 shannon
7ebf7443
WD
2318
2319#########################################################################
2e5983d2 2320## ARM92xT Systems
7ebf7443
WD
2321#########################################################################
2322
a4b46ed6
US
2323#########################################################################
2324## Atmel AT91RM9200 Systems
2325#########################################################################
20b197c6 2326
a85f9f21 2327at91rm9200dk_config : unconfig
65230107 2328 @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
a85f9f21
WD
2329
2330cmc_pu2_config : unconfig
f9328639 2331 @$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200
a85f9f21 2332
645da510 2333csb637_config : unconfig
f9328639 2334 @$(MKCONFIG) $(@:_config=) arm arm920t csb637 NULL at91rm9200
645da510 2335
a4b46ed6
US
2336kb9202_config : unconfig
2337 @$(MKCONFIG) $(@:_config=) arm arm920t kb9202 NULL at91rm9200
2338
0e4018d2 2339mp2usb_config : unconfig
f9328639 2340 @$(MKCONFIG) $(@:_config=) arm arm920t mp2usb NULL at91rm9200
0e4018d2 2341
ea8d989f
TT
2342m501sk_config : unconfig
2343 @$(MKCONFIG) $(@:_config=) arm arm920t m501sk NULL at91rm9200
3d3befa7 2344
a4b46ed6
US
2345#########################################################################
2346## Atmel ARM926EJ-S Systems
2347#########################################################################
2348
2349at91cap9adk_config : unconfig
2350 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91cap9adk atmel at91sam9
2351
2352at91sam9260ek_config : unconfig
2353 @$(MKCONFIG) $(@:_config=) arm arm926ejs at91sam9260ek atmel at91sam9
2354
87cb6862
WD
2355########################################################################
2356## ARM Integrator boards - see doc/README-integrator for more info.
2357integratorap_config \
2358ap_config \
2359ap966_config \
2360ap922_config \
2361ap922_XA10_config \
2362ap7_config \
dd520bf3 2363ap720t_config \
87cb6862
WD
2364ap920t_config \
2365ap926ejs_config \
2366ap946es_config: unconfig
96782c63 2367 @board/integratorap/split_by_variant.sh $@
87cb6862
WD
2368
2369integratorcp_config \
2370cp_config \
2371cp920t_config \
2372cp926ejs_config \
2373cp946es_config \
2374cp1136_config \
2375cp966_config \
2376cp922_config \
2377cp922_XA10_config \
2378cp1026_config: unconfig
96782c63 2379 @board/integratorcp/split_by_variant.sh $@
25d6712a 2380
f832d8a1
WD
2381lpd7a400_config \
2382lpd7a404_config: unconfig
f9328639 2383 @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
3d3befa7 2384
281e00a3 2385mx1ads_config : unconfig
f9328639 2386 @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
281e00a3
WD
2387
2388mx1fs2_config : unconfig
f9328639 2389 @$(MKCONFIG) $(@:_config=) arm arm920t mx1fs2 NULL imx
281e00a3 2390
ac7eb8a3 2391netstar_config: unconfig
f4e7cbfc 2392 @$(MKCONFIG) $(@:_config=) arm arm925t netstar
ac7eb8a3 2393
2e5983d2 2394omap1510inn_config : unconfig
f9328639 2395 @$(MKCONFIG) $(@:_config=) arm arm925t omap1510inn
2e5983d2 2396
1eaeb58e 2397omap5912osk_config : unconfig
f9328639 2398 @$(MKCONFIG) $(@:_config=) arm arm926ejs omap5912osk NULL omap
1eaeb58e 2399
c74b2108
SK
2400davinci_dvevm_config : unconfig
2401 @$(MKCONFIG) $(@:_config=) arm arm926ejs dv-evm davinci davinci
2402
2403davinci_schmoogie_config : unconfig
2404 @$(MKCONFIG) $(@:_config=) arm arm926ejs schmoogie davinci davinci
2405
2406davinci_sonata_config : unconfig
2407 @$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
2408
a4b46ed6
US
2409xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2410
63e73c9a
WD
2411omap1610inn_config \
2412omap1610inn_cs0boot_config \
2413omap1610inn_cs3boot_config \
3ff02c27 2414omap1610inn_cs_autoboot_config \
63e73c9a
WD
2415omap1610h2_config \
2416omap1610h2_cs0boot_config \
3ff02c27
WD
2417omap1610h2_cs3boot_config \
2418omap1610h2_cs_autoboot_config: unconfig
f9328639 2419 @mkdir -p $(obj)include
63e73c9a 2420 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
cdd917a4 2421 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
ae6d1056 2422 $(XECHO) "... configured for CS0 boot"; \
3ff02c27 2423 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
cdd917a4 2424 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
ae6d1056 2425 $(XECHO) "... configured for CS_AUTO boot"; \
63e73c9a 2426 else \
cdd917a4 2427 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
ae6d1056 2428 $(XECHO) "... configured for CS3 boot"; \
63e73c9a 2429 fi;
f9328639 2430 @$(MKCONFIG) -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn NULL omap
6f21347d 2431
a4b46ed6
US
2432xtract_omap730p2 = $(subst _cs0boot,,$(subst _cs3boot,, $(subst _config,,$1)))
2433
a56bd922
WD
2434omap730p2_config \
2435omap730p2_cs0boot_config \
2436omap730p2_cs3boot_config : unconfig
f9328639 2437 @mkdir -p $(obj)include
a56bd922 2438 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
f9328639 2439 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
ae6d1056 2440 $(XECHO) "... configured for CS0 boot"; \
a56bd922 2441 else \
f9328639 2442 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
ae6d1056 2443 $(XECHO) "... configured for CS3 boot"; \
a56bd922 2444 fi;
f9328639 2445 @$(MKCONFIG) -a $(call xtract_omap730p2,$@) arm arm926ejs omap730p2 NULL omap
a56bd922 2446
32cb2c70 2447sbc2410x_config: unconfig
f9328639 2448 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0
32cb2c70 2449
281e00a3 2450scb9328_config : unconfig
f9328639 2451 @$(MKCONFIG) $(@:_config=) arm arm920t scb9328 NULL imx
281e00a3 2452
7ebf7443 2453smdk2400_config : unconfig
f9328639 2454 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2400 NULL s3c24x0
7ebf7443
WD
2455
2456smdk2410_config : unconfig
f9328639 2457 @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 NULL s3c24x0
7ebf7443 2458
2d24a3a7 2459SX1_config : unconfig
f9328639 2460 @$(MKCONFIG) $(@:_config=) arm arm925t sx1
2d24a3a7 2461
b2001f27 2462# TRAB default configuration: 8 MB Flash, 32 MB RAM
a4b46ed6
US
2463xtract_trab = $(subst _bigram,,$(subst _bigflash,,$(subst _old,,$(subst _config,,$1))))
2464
43d9616c 2465trab_config \
b0639ca3
WD
2466trab_bigram_config \
2467trab_bigflash_config \
f54ebdfa 2468trab_old_config: unconfig
f9328639
MB
2469 @mkdir -p $(obj)include
2470 @mkdir -p $(obj)board/trab
b0639ca3 2471 @[ -z "$(findstring _bigram,$@)" ] || \
f9328639
MB
2472 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2473 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
ae6d1056 2474 $(XECHO) "... with 8 MB Flash, 32 MB RAM" ; \
b0639ca3
WD
2475 }
2476 @[ -z "$(findstring _bigflash,$@)" ] || \
f9328639
MB
2477 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2478 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
ae6d1056 2479 $(XECHO) "... with 16 MB Flash, 16 MB RAM" ; \
f9328639 2480 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
b0639ca3 2481 }
f54ebdfa 2482 @[ -z "$(findstring _old,$@)" ] || \
f9328639
MB
2483 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2484 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
ae6d1056 2485 $(XECHO) "... with 8 MB Flash, 16 MB RAM" ; \
f9328639 2486 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
43d9616c 2487 }
f9328639 2488 @$(MKCONFIG) -a $(call xtract_trab,$@) arm arm920t trab NULL s3c24x0
7ebf7443 2489
1cb8e980 2490VCMA9_config : unconfig
f9328639 2491 @$(MKCONFIG) $(@:_config=) arm arm920t vcma9 mpl s3c24x0
1cb8e980 2492
87cb6862
WD
2493#========================================================================
2494# ARM supplied Versatile development boards
2495#========================================================================
2496versatile_config \
2497versatileab_config \
2498versatilepb_config : unconfig
96782c63 2499 @board/versatile/split_by_variant.sh $@
074cff0d 2500
3c2b3d45 2501voiceblue_config: unconfig
4fedfddf 2502 @$(MKCONFIG) $(@:_config=) arm arm925t voiceblue
3c2b3d45 2503
16b013e7 2504cm4008_config : unconfig
f9328639 2505 @$(MKCONFIG) $(@:_config=) arm arm920t cm4008 NULL ks8695
16b013e7
WD
2506
2507cm41xx_config : unconfig
f9328639 2508 @$(MKCONFIG) $(@:_config=) arm arm920t cm41xx NULL ks8695
16b013e7 2509
074cff0d
WD
2510#########################################################################
2511## S3C44B0 Systems
2512#########################################################################
2513
2514B2_config : unconfig
f9328639 2515 @$(MKCONFIG) $(@:_config=) arm s3c44b0 B2 dave
074cff0d 2516
2d24a3a7
WD
2517#########################################################################
2518## ARM720T Systems
2519#########################################################################
7ebf7443 2520
c570b2fd 2521armadillo_config: unconfig
f9328639 2522 @$(MKCONFIG) $(@:_config=) arm arm720t armadillo
c570b2fd 2523
7ebf7443 2524ep7312_config : unconfig
f9328639 2525 @$(MKCONFIG) $(@:_config=) arm arm720t ep7312
7ebf7443 2526
2d24a3a7 2527impa7_config : unconfig
f9328639 2528 @$(MKCONFIG) $(@:_config=) arm arm720t impa7
2d24a3a7 2529
2d1a537d 2530modnet50_config : unconfig
f9328639 2531 @$(MKCONFIG) $(@:_config=) arm arm720t modnet50
2d1a537d 2532
39539887 2533evb4510_config : unconfig
f9328639 2534 @$(MKCONFIG) $(@:_config=) arm arm720t evb4510
39539887 2535
6bd2447e 2536lpc2292sodimm_config: unconfig
b0d8f5bf
PP
2537 @$(MKCONFIG) $(@:_config=) arm arm720t lpc2292sodimm NULL lpc2292
2538
2539SMN42_config : unconfig
2540 @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292
6bd2447e 2541
7ebf7443 2542#########################################################################
43d9616c 2543## XScale Systems
7ebf7443
WD
2544#########################################################################
2545
799891ef
MS
2546actux1_config : unconfig
2547 @$(MKCONFIG) $(@:_config=) arm ixp actux1
2548
2549actux2_config : unconfig
2550 @$(MKCONFIG) $(@:_config=) arm ixp actux2
2551
2552actux3_config : unconfig
2553 @$(MKCONFIG) $(@:_config=) arm ixp actux3
2554
2555actux4_config : unconfig
2556 @$(MKCONFIG) $(@:_config=) arm ixp actux4
2557
20787e23 2558adsvix_config : unconfig
f9328639 2559 @$(MKCONFIG) $(@:_config=) arm pxa adsvix
20787e23 2560
fabd46ac 2561cerf250_config : unconfig
f9328639 2562 @$(MKCONFIG) $(@:_config=) arm pxa cerf250
fabd46ac 2563
7ebf7443 2564cradle_config : unconfig
f9328639 2565 @$(MKCONFIG) $(@:_config=) arm pxa cradle
7ebf7443
WD
2566
2567csb226_config : unconfig
f9328639 2568 @$(MKCONFIG) $(@:_config=) arm pxa csb226
7ebf7443 2569
91c82076 2570delta_config : unconfig
f9328639 2571 @$(MKCONFIG) $(@:_config=) arm pxa delta
0be248fa 2572
43d9616c 2573innokom_config : unconfig
f9328639 2574 @$(MKCONFIG) $(@:_config=) arm pxa innokom
43d9616c 2575
2d5b561e 2576ixdp425_config : unconfig
f9328639 2577 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
2d5b561e 2578
ba94a1bb 2579ixdpg425_config : unconfig
f9328639 2580 @$(MKCONFIG) $(@:_config=) arm ixp ixdp425
ba94a1bb 2581
43d9616c 2582lubbock_config : unconfig
f9328639 2583 @$(MKCONFIG) $(@:_config=) arm pxa lubbock
43d9616c 2584
5720df78 2585pleb2_config : unconfig
f9328639 2586 @$(MKCONFIG) $(@:_config=) arm pxa pleb2
5720df78 2587
52f52c14 2588logodl_config : unconfig
f9328639 2589 @$(MKCONFIG) $(@:_config=) arm pxa logodl
52f52c14 2590
9d8d5a5b 2591pdnb3_config \
f9301e1c 2592scpu_config: unconfig
cdd917a4 2593 @mkdir -p $(obj)include
9d8d5a5b 2594 @if [ "$(findstring scpu_,$@)" ] ; then \
f9301e1c 2595 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
ae6d1056 2596 $(XECHO) "... on SCPU board variant" ; \
9d8d5a5b
SR
2597 fi
2598 @$(MKCONFIG) -a pdnb3 arm ixp pdnb3 prodrive
ba94a1bb 2599
f57f70aa 2600pxa255_idp_config: unconfig
f9328639 2601 @$(MKCONFIG) $(@:_config=) arm pxa pxa255_idp
f57f70aa 2602
5e5803e1
SB
2603trizepsiv_config : unconfig
2604 @$(MKCONFIG) $(@:_config=) arm pxa trizepsiv
2605
3e38691e 2606wepep250_config : unconfig
f9328639 2607 @$(MKCONFIG) $(@:_config=) arm pxa wepep250
3e38691e 2608
4ec3a7f0 2609xaeniax_config : unconfig
f9328639 2610 @$(MKCONFIG) $(@:_config=) arm pxa xaeniax
4ec3a7f0 2611
efa329cb 2612xm250_config : unconfig
f9328639 2613 @$(MKCONFIG) $(@:_config=) arm pxa xm250
efa329cb 2614
ca0e7748 2615xsengine_config : unconfig
f9328639 2616 @$(MKCONFIG) $(@:_config=) arm pxa xsengine
ca0e7748 2617