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