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