blob: 42d807b95dfc4ab86b86f237545673b84056125d [file] [log] [blame]
wdenk7ebf7442002-11-02 23:17:16 +00001#
Detlev Zundela414c7a2010-03-12 10:01:12 +01002# (C) Copyright 2000-2010
wdenk7ebf7442002-11-02 23:17:16 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# See file CREDITS for list of people who contributed to this
6# project.
7#
8# This program is free software; you can redistribute it and/or
9# modify it under the terms of the GNU General Public License as
Wolfgang Denkc98368a2006-07-19 17:52:30 +020010# published by the Free Software Foundatio; either version 2 of
wdenk7ebf7442002-11-02 23:17:16 +000011# 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
Wolfgang Denk19b68c42008-03-04 14:58:31 +010015# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
wdenk7ebf7442002-11-02 23:17:16 +000016# 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
Wolfgang Denka2cfb242010-03-12 23:06:04 +010024VERSION = 2010
Wolfgang Denk23f490d2010-05-26 23:57:08 +020025PATCHLEVEL = 06
Wolfgang Denk88a060b2008-09-09 23:55:18 +020026SUBLEVEL =
Wolfgang Denk16fa98a2010-06-13 17:48:15 +020027EXTRAVERSION = -rc2
Wolfgang Denk88a060b2008-09-09 23:55:18 +020028ifneq "$(SUBLEVEL)" ""
Wolfgang Denk4d1d9a32006-02-21 17:33:04 +010029U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
Wolfgang Denk88a060b2008-09-09 23:55:18 +020030else
31U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL)$(EXTRAVERSION)
32endif
Peter Tyser62948502008-11-03 09:30:59 -060033TIMESTAMP_FILE = $(obj)include/timestamp_autogenerated.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +020034VERSION_FILE = $(obj)include/version_autogenerated.h
Wolfgang Denk4d1d9a32006-02-21 17:33:04 +010035
wdenk7ebf7442002-11-02 23:17:16 +000036HOSTARCH := $(shell uname -m | \
37 sed -e s/i.86/i386/ \
38 -e s/sun4u/sparc64/ \
39 -e s/arm.*/arm/ \
40 -e s/sa110/arm/ \
Kumar Galaf299a4c2010-04-28 02:52:02 -050041 -e s/ppc64/powerpc/ \
42 -e s/ppc/powerpc/ \
43 -e s/macppc/powerpc/)
wdenk7ebf7442002-11-02 23:17:16 +000044
Wolfgang Denkaf03f732005-08-12 23:23:46 +020045HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
wdenk7ebf7442002-11-02 23:17:16 +000046 sed -e 's/\(cygwin\).*/cygwin/')
47
Peter Tyser4338a3e2008-11-12 12:33:20 -060048# Set shell to bash if possible, otherwise fall back to sh
49SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
50 else if [ -x /bin/bash ]; then echo /bin/bash; \
51 else echo sh; fi; fi)
52
53export HOSTARCH HOSTOS SHELL
wdenk7ebf7442002-11-02 23:17:16 +000054
55# Deal with colliding definitions from tcsh etc.
56VENDOR=
57
58#########################################################################
Wolfgang Denk0a659ad2008-01-13 00:59:21 +010059# Allow for silent builds
60ifeq (,$(findstring s,$(MAKEFLAGS)))
61XECHO = echo
62else
63XECHO = :
64endif
65
66#########################################################################
Marian Balakowiczd62379d2006-09-01 19:49:50 +020067#
68# U-boot build supports producing a object files to the separate external
69# directory. Two use cases are supported:
Stefan Roese42fbddd2006-09-07 11:51:23 +020070#
Marian Balakowiczd62379d2006-09-01 19:49:50 +020071# 1) Add O= to the make command line
72# 'make O=/tmp/build all'
73#
74# 2) Set environement variable BUILD_DIR to point to the desired location
75# 'export BUILD_DIR=/tmp/build'
76# 'make'
77#
78# The second approach can also be used with a MAKEALL script
79# 'export BUILD_DIR=/tmp/build'
80# './MAKEALL'
Stefan Roese42fbddd2006-09-07 11:51:23 +020081#
Marian Balakowiczd62379d2006-09-01 19:49:50 +020082# Command line 'O=' setting overrides BUILD_DIR environent variable.
Stefan Roese42fbddd2006-09-07 11:51:23 +020083#
Marian Balakowiczd62379d2006-09-01 19:49:50 +020084# When none of the above methods is used the local build is performed and
85# the object files are placed in the source directory.
Stefan Roese42fbddd2006-09-07 11:51:23 +020086#
wdenk7ebf7442002-11-02 23:17:16 +000087
Marian Balakowiczd62379d2006-09-01 19:49:50 +020088ifdef O
89ifeq ("$(origin O)", "command line")
90BUILD_DIR := $(O)
91endif
92endif
93
94ifneq ($(BUILD_DIR),)
95saved-output := $(BUILD_DIR)
Marian Balakowicz7f783cb2006-09-07 12:05:53 +020096
97# Attempt to create a output directory.
98$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
99
Stefan Roesea4108482006-09-12 08:49:07 +0200100# Verify if it was successful.
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200101BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
102$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
103endif # ifneq ($(BUILD_DIR),)
104
105OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
106SRCTREE := $(CURDIR)
107TOPDIR := $(SRCTREE)
108LNDIR := $(OBJTREE)
109export TOPDIR SRCTREE OBJTREE
110
111MKCONFIG := $(SRCTREE)/mkconfig
112export MKCONFIG
113
114ifneq ($(OBJTREE),$(SRCTREE))
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +0100115REMOTE_BUILD := 1
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200116export REMOTE_BUILD
117endif
wdenk7ebf7442002-11-02 23:17:16 +0000118
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200119# $(obj) and (src) are defined in config.mk but here in main Makefile
120# we also need them before config.mk is included which is the case for
121# some targets like unconfig, clean, clobber, distclean, etc.
122ifneq ($(OBJTREE),$(SRCTREE))
123obj := $(OBJTREE)/
124src := $(SRCTREE)/
125else
126obj :=
127src :=
Stefan Roese42fbddd2006-09-07 11:51:23 +0200128endif
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200129export obj src
130
Wolfgang Denk6570eb32008-03-02 22:45:33 +0100131# Make sure CDPATH settings don't interfere
132unexport CDPATH
133
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200134#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000135
Mike Frysingerd8f0f912009-05-30 01:02:03 -0400136# The "tools" are needed early, so put this first
137# Don't include stuff already done in $(LIBS)
138SUBDIRS = tools \
Peter Tyser07a8af32009-07-10 11:03:19 -0500139 examples/standalone \
Peter Tyseracce4eb2009-07-20 19:02:21 -0500140 examples/api
Mike Frysingerd8f0f912009-05-30 01:02:03 -0400141
142.PHONY : $(SUBDIRS)
143
Wolfgang Denk0a659ad2008-01-13 00:59:21 +0100144ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200145
Mike Frysinger27e1c722009-07-21 22:59:36 -0400146# Include autoconf.mk before config.mk so that the config options are available
147# to all top level build files. We need the dummy all: target to prevent the
148# dependency target in autoconf.mk.dep from being the default.
149all:
150sinclude $(obj)include/autoconf.mk.dep
151sinclude $(obj)include/autoconf.mk
152
wdenk7ebf7442002-11-02 23:17:16 +0000153# load ARCH, BOARD, and CPU configuration
Wolfgang Denk0a659ad2008-01-13 00:59:21 +0100154include $(obj)include/config.mk
wdenkf8e9a232004-10-09 22:21:29 +0000155export ARCH CPU BOARD VENDOR SOC
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200156
Mike Frysinger8378ba42009-06-14 23:33:14 -0400157# set default to nothing for native builds
Wolfgang Denkab4f2fe2007-03-06 18:01:47 +0100158ifeq ($(HOSTARCH),$(ARCH))
Mike Frysinger8378ba42009-06-14 23:33:14 -0400159CROSS_COMPILE ?=
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +0100160endif
wdenk7ebf7442002-11-02 23:17:16 +0000161
Wolfgang Denkbb874e32006-03-12 01:37:50 +0100162# load other configuration
163include $(TOPDIR)/config.mk
164
wdenk7ebf7442002-11-02 23:17:16 +0000165#########################################################################
166# U-Boot objects....order is important (i.e. start must be first)
167
Peter Tyserd53e8fd2010-04-12 22:28:02 -0500168OBJS = $(CPUDIR)/start.o
wdenk591dda52002-11-18 00:14:45 +0000169ifeq ($(CPU),i386)
Peter Tyserd53e8fd2010-04-12 22:28:02 -0500170OBJS += $(CPUDIR)/start16.o
171OBJS += $(CPUDIR)/resetvec.o
wdenk591dda52002-11-18 00:14:45 +0000172endif
wdenk7ebf7442002-11-02 23:17:16 +0000173ifeq ($(CPU),ppc4xx)
Peter Tyserd53e8fd2010-04-12 22:28:02 -0500174OBJS += $(CPUDIR)/resetvec.o
wdenk7ebf7442002-11-02 23:17:16 +0000175endif
wdenk9c53f402003-10-15 23:53:47 +0000176ifeq ($(CPU),mpc85xx)
Peter Tyserd53e8fd2010-04-12 22:28:02 -0500177OBJS += $(CPUDIR)/resetvec.o
wdenk9c53f402003-10-15 23:53:47 +0000178endif
wdenk7ebf7442002-11-02 23:17:16 +0000179
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200180OBJS := $(addprefix $(obj),$(OBJS))
181
Peter Tyser685b7f52010-04-12 22:28:05 -0500182LIBS = lib/libgeneric.a
183LIBS += lib/lzma/liblzma.a
184LIBS += lib/lzo/liblzo.a
Kim Phillips53b34982007-08-21 17:00:17 -0500185LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
186 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
Peter Tyserd53e8fd2010-04-12 22:28:02 -0500187LIBS += $(CPUDIR)/lib$(CPU).a
wdenkf8e9a232004-10-09 22:21:29 +0000188ifdef SOC
Peter Tyserd53e8fd2010-04-12 22:28:02 -0500189LIBS += $(CPUDIR)/$(SOC)/lib$(SOC).a
wdenkf8e9a232004-10-09 22:21:29 +0000190endif
Stefan Roese07653eb2007-04-23 12:00:22 +0200191ifeq ($(CPU),ixp)
Peter Tyserf7c67372010-04-12 22:28:11 -0500192LIBS += arch/arm/cpu/ixp/npe/libnpe.a
Stefan Roese07653eb2007-04-23 12:00:22 +0200193endif
Peter Tysercede5d82010-04-12 22:28:04 -0500194LIBS += arch/$(ARCH)/lib/lib$(ARCH).a
wdenk4d01d9e2004-03-25 14:59:05 +0000195LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
Stefan Roese2fc10f62009-03-19 15:35:05 +0100196 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a \
197 fs/ubifs/libubifs.a
wdenk7ebf7442002-11-02 23:17:16 +0000198LIBS += net/libnet.a
199LIBS += disk/libdisk.a
Jason Jinbb20f352007-07-13 12:14:58 +0800200LIBS += drivers/bios_emulator/libatibiosemu.a
Jean-Christophe PLAGNIOL-VILLARD7f7e6fb2007-11-24 21:13:59 +0100201LIBS += drivers/block/libblock.a
TsiChungLiew8cb946d2008-01-15 14:15:46 -0600202LIBS += drivers/dma/libdma.a
Jean-Christophe PLAGNIOL-VILLARDc0268772008-10-31 12:26:55 +0100203LIBS += drivers/fpga/libfpga.a
Peter Tyser9902e422008-12-17 16:36:21 -0600204LIBS += drivers/gpio/libgpio.a
Jean-Christophe PLAGNIOL-VILLARDcf2e1082007-11-24 20:14:44 +0100205LIBS += drivers/hwmon/libhwmon.a
Jean-Christophe PLAGNIOL-VILLARDed0ea1f2007-11-21 21:19:24 +0100206LIBS += drivers/i2c/libi2c.a
Jean-Christophe PLAGNIOL-VILLARD0c20dcd2007-11-24 19:46:45 +0100207LIBS += drivers/input/libinput.a
Jean-Christophe PLAGNIOL-VILLARDb7803012007-11-24 21:17:55 +0100208LIBS += drivers/misc/libmisc.a
Haavard Skinnemoeneb220962008-06-12 19:27:56 +0200209LIBS += drivers/mmc/libmmc.a
Jean-Christophe PLAGNIOL-VILLARD82ca9742007-11-24 21:26:56 +0100210LIBS += drivers/mtd/libmtd.a
211LIBS += drivers/mtd/nand/libnand.a
Jean-Christophe PLAGNIOL-VILLARD82ca9742007-11-24 21:26:56 +0100212LIBS += drivers/mtd/onenand/libonenand.a
Kyungmin Park0bd0c1f2008-11-19 16:38:24 +0100213LIBS += drivers/mtd/ubi/libubi.a
Haavard Skinnemoen2f5bfb72008-05-16 11:10:33 +0200214LIBS += drivers/mtd/spi/libspi_flash.a
TsiChung Liewf6afe722007-06-18 13:50:13 -0500215LIBS += drivers/net/libnet.a
Jean-Christophe PLAGNIOL-VILLARDf2266792008-08-29 01:18:01 +0200216LIBS += drivers/net/phy/libphy.a
Jean-Christophe PLAGNIOL-VILLARDed0ea1f2007-11-21 21:19:24 +0100217LIBS += drivers/pci/libpci.a
218LIBS += drivers/pcmcia/libpcmcia.a
Tom Rix330a90a2009-06-28 12:52:29 -0500219LIBS += drivers/power/libpower.a
Ben Warren7efe9272008-01-16 22:37:35 -0500220LIBS += drivers/spi/libspi.a
Dave Liue732e9c2006-11-03 12:11:15 -0600221ifeq ($(CPU),mpc83xx)
222LIBS += drivers/qe/qe.a
223endif
Andy Flemingee0e9172007-08-14 00:14:25 -0500224ifeq ($(CPU),mpc85xx)
225LIBS += drivers/qe/qe.a
Stefan Roese88fbf932010-04-15 16:07:28 +0200226LIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a
227LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a
Kumar Gala124b0822008-08-26 15:01:29 -0500228endif
229ifeq ($(CPU),mpc86xx)
Stefan Roese88fbf932010-04-15 16:07:28 +0200230LIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a
231LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a
Andy Flemingee0e9172007-08-14 00:14:25 -0500232endif
Jean-Christophe PLAGNIOL-VILLARD82ca9742007-11-24 21:26:56 +0100233LIBS += drivers/rtc/librtc.a
TsiChung Liewf6afe722007-06-18 13:50:13 -0500234LIBS += drivers/serial/libserial.a
Detlev Zundela9036ab2009-03-30 00:31:32 +0200235LIBS += drivers/twserial/libtws.a
Jean-Christophe PLAGNIOL-VILLARD8f6bcf42009-04-03 12:46:58 +0200236LIBS += drivers/usb/gadget/libusb_gadget.a
237LIBS += drivers/usb/host/libusb_host.a
238LIBS += drivers/usb/musb/libusb_musb.a
Tom Rix03f4fbb2009-10-31 12:37:40 -0500239LIBS += drivers/usb/phy/libusb_phy.a
Jean-Christophe PLAGNIOL-VILLARD82ca9742007-11-24 21:26:56 +0100240LIBS += drivers/video/libvideo.a
Jean-Christophe PLAGNIOL-VILLARDd5ee38e2009-03-27 23:26:42 +0100241LIBS += drivers/watchdog/libwatchdog.a
wdenk7ebf7442002-11-02 23:17:16 +0000242LIBS += common/libcommon.a
Peter Tyser8e7788f2010-04-12 22:28:06 -0500243LIBS += lib/libfdt/libfdt.a
Rafal Jaworowskia19be782008-01-09 19:39:36 +0100244LIBS += api/libapi.a
Yuri Tikhonovbdfd3022008-03-31 10:51:37 +0200245LIBS += post/libpost.a
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200246
247LIBS := $(addprefix $(obj),$(LIBS))
Peter Tyser62948502008-11-03 09:30:59 -0600248.PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE)
wdenkc0aa5c52003-12-06 19:49:23 +0000249
Wolfgang Denk3823aa82008-04-30 17:25:07 +0200250LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
251LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
252
wdenk4cc02a82003-09-11 23:06:34 +0000253# Add GCC lib
Wolfgang Denkc73f44d2009-07-23 13:15:59 +0200254ifdef USE_PRIVATE_LIBGCC
255ifeq ("$(USE_PRIVATE_LIBGCC)", "yes")
Peter Tysercede5d82010-04-12 22:28:04 -0500256PLATFORM_LIBGCC = -L $(OBJTREE)/arch/$(ARCH)/lib -lgcc
Wolfgang Denkc73f44d2009-07-23 13:15:59 +0200257else
258PLATFORM_LIBGCC = -L $(USE_PRIVATE_LIBGCC) -lgcc
259endif
260else
261PLATFORM_LIBGCC = -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
262endif
263PLATFORM_LIBS += $(PLATFORM_LIBGCC)
264export PLATFORM_LIBS
wdenk4989f872004-03-14 15:06:13 +0000265
Mike Frysinger91acc212009-08-23 02:47:59 -0400266# Special flags for CPP when processing the linker script.
267# Pass the version down so we can handle backwards compatibility
268# on the fly.
269LDPPFLAGS += \
270 -include $(TOPDIR)/include/u-boot/u-boot.lds.h \
271 $(shell $(LD) --version | \
272 sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p')
273
Stefan Roese42fbddd2006-09-07 11:51:23 +0200274ifeq ($(CONFIG_NAND_U_BOOT),y)
275NAND_SPL = nand_spl
276U_BOOT_NAND = $(obj)u-boot-nand.bin
277endif
278
Kyungmin Park33174212008-01-17 16:43:25 +0900279ifeq ($(CONFIG_ONENAND_U_BOOT),y)
280ONENAND_IPL = onenand_ipl
281U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
Kyungmin Parkafb72e42009-09-22 09:05:00 +0900282ONENAND_BIN ?= $(obj)onenand_ipl/onenand-ipl-2k.bin
Kyungmin Park33174212008-01-17 16:43:25 +0900283endif
284
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200285__OBJS := $(subst $(obj),,$(OBJS))
Wolfgang Denk3823aa82008-04-30 17:25:07 +0200286__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200287
wdenk7ebf7442002-11-02 23:17:16 +0000288#########################################################################
wdenk0a658552003-08-05 17:43:17 +0000289#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000290
Mike Frysinger57047e02009-06-15 00:25:19 -0400291# Always append ALL so that arch config.mk's can add custom ones
Kyungmin Park33174212008-01-17 16:43:25 +0900292ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
wdenk7ebf7442002-11-02 23:17:16 +0000293
wdenk0a658552003-08-05 17:43:17 +0000294all: $(ALL)
wdenk7ebf7442002-11-02 23:17:16 +0000295
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200296$(obj)u-boot.hex: $(obj)u-boot
wdenk68005192005-01-09 21:28:15 +0000297 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
298
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200299$(obj)u-boot.srec: $(obj)u-boot
Ricardo Ribalda Delgado0045fd82008-09-07 17:10:27 -0400300 $(OBJCOPY) -O srec $< $@
wdenk7ebf7442002-11-02 23:17:16 +0000301
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200302$(obj)u-boot.bin: $(obj)u-boot
wdenk7ebf7442002-11-02 23:17:16 +0000303 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
304
Mike Frysinger908e7762008-02-04 19:26:57 -0500305$(obj)u-boot.ldr: $(obj)u-boot
Mike Frysinger45b57bd2009-07-21 22:17:36 -0400306 $(CREATE_LDR_ENV)
Mike Frysinger41117ca2008-08-07 18:56:56 -0400307 $(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS)
Mike Frysinger908e7762008-02-04 19:26:57 -0500308
309$(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
310 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
311
312$(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
313 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
314
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200315$(obj)u-boot.img: $(obj)u-boot.bin
Wolfgang Denk45b0c6c2010-05-15 21:23:51 +0200316 $(obj)tools/mkimage -A $(ARCH) -T firmware -C none \
wdenk0a658552003-08-05 17:43:17 +0000317 -a $(TEXT_BASE) -e 0 \
Wolfgang Denk4d1d9a32006-02-21 17:33:04 +0100318 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
wdenk0a658552003-08-05 17:43:17 +0000319 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
320 -d $< $@
321
Stefano Babic7b07f092010-01-20 18:19:10 +0100322$(obj)u-boot.imx: $(obj)u-boot.bin
323 $(obj)tools/mkimage -n $(IMX_CONFIG) -T imximage \
324 -e $(TEXT_BASE) -d $< $@
325
Prafulla Wadaskar07329412009-09-07 15:05:02 +0530326$(obj)u-boot.kwb: $(obj)u-boot.bin
327 $(obj)tools/mkimage -n $(KWD_CONFIG) -T kwbimage \
328 -a $(TEXT_BASE) -e $(TEXT_BASE) -d $< $@
329
Heiko Schocher633e03a2007-06-22 19:11:54 +0200330$(obj)u-boot.sha1: $(obj)u-boot.bin
Heiko Schocher6b765c32007-07-14 01:06:58 +0200331 $(obj)tools/ubsha1 $(obj)u-boot.bin
Heiko Schocher633e03a2007-06-22 19:11:54 +0200332
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200333$(obj)u-boot.dis: $(obj)u-boot
wdenk7ebf7442002-11-02 23:17:16 +0000334 $(OBJDUMP) -d $< > $@
335
Mike Frysingera46fbba2009-05-20 04:35:14 -0400336GEN_UBOOT = \
Wolfgang Denk3823aa82008-04-30 17:25:07 +0200337 UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
338 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200339 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
340 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
wdenk67ff36c2002-11-19 23:01:07 +0000341 -Map u-boot.map -o u-boot
Wolfgang Denk18d46c02009-08-17 14:00:53 +0200342$(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds
Mike Frysingera46fbba2009-05-20 04:35:14 -0400343 $(GEN_UBOOT)
344ifeq ($(CONFIG_KALLSYMS),y)
Wolfgang Denk18d46c02009-08-17 14:00:53 +0200345 smap=`$(call SYSTEM_MAP,u-boot) | \
346 awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \
347 $(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" \
348 -c common/system_map.c -o $(obj)common/system_map.o
Mike Frysingera46fbba2009-05-20 04:35:14 -0400349 $(GEN_UBOOT) $(obj)common/system_map.o
350endif
wdenk7ebf7442002-11-02 23:17:16 +0000351
Peter Tyser5e4668002009-03-13 18:54:25 -0500352$(OBJS): depend
Peter Tyserd53e8fd2010-04-12 22:28:02 -0500353 $(MAKE) -C $(CPUDIR) $(if $(REMOTE_BUILD),$@,$(notdir $@))
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200354
Peter Tyser5e4668002009-03-13 18:54:25 -0500355$(LIBS): depend $(SUBDIRS)
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200356 $(MAKE) -C $(dir $(subst $(obj),,$@))
wdenkc0aa5c52003-12-06 19:49:23 +0000357
Peter Tyser5e4668002009-03-13 18:54:25 -0500358$(LIBBOARD): depend $(LIBS)
Wolfgang Denk3823aa82008-04-30 17:25:07 +0200359 $(MAKE) -C $(dir $(subst $(obj),,$@))
360
Peter Tyser5e4668002009-03-13 18:54:25 -0500361$(SUBDIRS): depend
wdenk444f22b2003-12-07 21:39:28 +0000362 $(MAKE) -C $@ all
wdenk7ebf7442002-11-02 23:17:16 +0000363
Peter Tyser5e4668002009-03-13 18:54:25 -0500364$(LDSCRIPT): depend
Mike Frysingera47a7452008-02-16 02:12:37 -0500365 $(MAKE) -C $(dir $@) $(notdir $@)
366
Wolfgang Denk18d46c02009-08-17 14:00:53 +0200367$(obj)u-boot.lds: $(LDSCRIPT)
368 $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
369
Peter Tyser62948502008-11-03 09:30:59 -0600370$(NAND_SPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
Marian Balakowicz814ed842006-10-23 22:17:05 +0200371 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
Stefan Roese42fbddd2006-09-07 11:51:23 +0200372
Peter Tyser5e4668002009-03-13 18:54:25 -0500373$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
Marian Balakowicz814ed842006-10-23 22:17:05 +0200374 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
Stefan Roese42fbddd2006-09-07 11:51:23 +0200375
Peter Tyser62948502008-11-03 09:30:59 -0600376$(ONENAND_IPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
Stefan Roese37628252008-08-06 14:05:38 +0200377 $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
Kyungmin Park33174212008-01-17 16:43:25 +0900378
Peter Tyser5e4668002009-03-13 18:54:25 -0500379$(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin
Kyungmin Parkafb72e42009-09-22 09:05:00 +0900380 cat $(ONENAND_BIN) $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
Kyungmin Park33174212008-01-17 16:43:25 +0900381
Wolfgang Denk0a659ad2008-01-13 00:59:21 +0100382$(VERSION_FILE):
Mike Frysinger547e8432008-05-02 21:45:12 -0400383 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
Peter Tyser98c02862008-11-12 13:06:48 -0600384 '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp
Mike Frysinger8cd0c7a2008-02-04 17:44:23 -0500385 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
Wolfgang Denk4d1d9a32006-02-21 17:33:04 +0100386
Peter Tyser62948502008-11-03 09:30:59 -0600387$(TIMESTAMP_FILE):
388 @date +'#define U_BOOT_DATE "%b %d %C%y"' > $@
389 @date +'#define U_BOOT_TIME "%T"' >> $@
390
dzu9b10ef982003-08-07 14:20:31 +0000391gdbtools:
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200392 $(MAKE) -C tools/gdb all || exit 1
393
394updater:
395 $(MAKE) -C tools/updater all || exit 1
396
397env:
Markus Klotzbücher2c52a762007-11-27 10:23:20 +0100398 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
dzu9b10ef982003-08-07 14:20:31 +0000399
Daniel Hobiad4eaa32010-01-18 18:13:39 +0100400# Explicitly make _depend in subdirs containing multiple targets to prevent
401# parallel sub-makes creating .depend files simultaneously.
Peter Tyser5e4668002009-03-13 18:54:25 -0500402depend dep: $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
Peter Tyserd53e8fd2010-04-12 22:28:02 -0500403 for dir in $(SUBDIRS) $(CPUDIR) $(dir $(LDSCRIPT)) ; do \
Daniel Hobiad4eaa32010-01-18 18:13:39 +0100404 $(MAKE) -C $$dir _depend ; done
wdenk7ebf7442002-11-02 23:17:16 +0000405
Li Yang22a6da62009-12-09 18:13:26 +0800406TAG_SUBDIRS = $(SUBDIRS)
407TAG_SUBDIRS += $(dir $(__LIBS))
Jean-Christophe PLAGNIOL-VILLARD957013c2007-11-25 18:45:47 +0100408TAG_SUBDIRS += include
Jean-Christophe PLAGNIOL-VILLARD957013c2007-11-25 18:45:47 +0100409
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200410tags ctags:
Li Yang22a6da62009-12-09 18:13:26 +0800411 ctags -w -o $(obj)ctags `find $(TAG_SUBDIRS) \
412 -name '*.[chS]' -print`
wdenk7ebf7442002-11-02 23:17:16 +0000413
414etags:
Li Yang22a6da62009-12-09 18:13:26 +0800415 etags -a -o $(obj)etags `find $(TAG_SUBDIRS) \
416 -name '*.[chS]' -print`
Li Yang8c6dcf02008-02-29 11:46:05 +0800417cscope:
Li Yang22a6da62009-12-09 18:13:26 +0800418 find $(TAG_SUBDIRS) -name '*.[chS]' -print > cscope.files
Li Yang8c6dcf02008-02-29 11:46:05 +0800419 cscope -b -q -k
wdenk7ebf7442002-11-02 23:17:16 +0000420
Mike Frysingera46fbba2009-05-20 04:35:14 -0400421SYSTEM_MAP = \
422 $(NM) $1 | \
wdenk7ebf7442002-11-02 23:17:16 +0000423 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
Mike Frysingera46fbba2009-05-20 04:35:14 -0400424 LC_ALL=C sort
425$(obj)System.map: $(obj)u-boot
426 @$(call SYSTEM_MAP,$<) > $(obj)System.map
wdenk7ebf7442002-11-02 23:17:16 +0000427
Grant Likely0f910192007-09-24 09:05:31 -0600428#
429# Auto-generate the autoconf.mk file (which is included by all makefiles)
430#
431# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
432# the dep file is only include in this top level makefile to determine when
433# to regenerate the autoconf.mk file.
Wolfgang Denk9046f3f2008-05-13 23:15:52 +0200434$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
435 @$(XECHO) Generating $@ ; \
Mike Frysingerd3380232008-02-18 05:10:07 -0500436 set -e ; \
Wolfgang Denk0a659ad2008-01-13 00:59:21 +0100437 : Generate the dependancies ; \
Mike Frysinger00d5bfd2009-07-19 15:17:03 -0400438 $(CC) -x c -DDO_DEPS_ONLY -M $(HOSTCFLAGS) $(CPPFLAGS) \
Wolfgang Denk9046f3f2008-05-13 23:15:52 +0200439 -MQ $(obj)include/autoconf.mk include/common.h > $@
440
441$(obj)include/autoconf.mk: $(obj)include/config.h
442 @$(XECHO) Generating $@ ; \
443 set -e ; \
Wolfgang Denk0a659ad2008-01-13 00:59:21 +0100444 : Extract the config macros ; \
Wolfgang Denk9046f3f2008-05-13 23:15:52 +0200445 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
Wolfgang Denk71d81002008-12-16 14:41:02 +0100446 sed -n -f tools/scripts/define2mk.sed > $@.tmp && \
447 mv $@.tmp $@
Grant Likely0f910192007-09-24 09:05:31 -0600448
wdenk7ebf7442002-11-02 23:17:16 +0000449#########################################################################
Wolfgang Denk0a659ad2008-01-13 00:59:21 +0100450else # !config.mk
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200451all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
452$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
Mike Frysinger39901cd2010-01-21 04:03:22 -0500453$(filter-out tools,$(SUBDIRS)) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools \
454updater env depend dep tags ctags etags cscope $(obj)System.map:
wdenk7ebf7442002-11-02 23:17:16 +0000455 @echo "System not configured - see README" >&2
456 @ exit 1
Mike Frysinger39901cd2010-01-21 04:03:22 -0500457
458tools:
459 $(MAKE) -C tools
460tools-all:
461 $(MAKE) -C tools HOST_TOOLS_ALL=y
Wolfgang Denk0a659ad2008-01-13 00:59:21 +0100462endif # config.mk
wdenk7ebf7442002-11-02 23:17:16 +0000463
Wolfgang Denke5d99e22006-10-25 00:43:17 +0200464.PHONY : CHANGELOG
465CHANGELOG:
Ben Warrendc43c9c2006-10-26 14:38:25 -0400466 git log --no-merges U-Boot-1_1_5.. | \
467 unexpand -a | sed -e 's/\s\s*$$//' > $@
Wolfgang Denke5d99e22006-10-25 00:43:17 +0200468
Harald Welte5708dbf2008-07-09 22:30:30 +0800469include/license.h: tools/bin2header COPYING
Wolfgang Denk625bd332010-05-27 23:18:33 +0200470 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
wdenk7ebf7442002-11-02 23:17:16 +0000471#########################################################################
472
473unconfig:
Stefan Roese42fbddd2006-09-07 11:51:23 +0200474 @rm -f $(obj)include/config.h $(obj)include/config.mk \
Grant Likely0f910192007-09-24 09:05:31 -0600475 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
476 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
wdenk7ebf7442002-11-02 23:17:16 +0000477
Mike Frysingera12e9412009-10-01 12:11:54 -0400478%: %_config
479 $(MAKE)
480
Wolfgang Denke24ec722010-05-27 23:18:35 +0200481#
482# Functions to generate common board directory names
483#
484lcname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\L\1/')
485ucname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\U\1/')
486
wdenk7ebf7442002-11-02 23:17:16 +0000487#========================================================================
488# PowerPC
489#========================================================================
wdenk359733b2003-03-31 17:27:09 +0000490
491#########################################################################
492## MPC5xx Systems
493#########################################################################
494
495cmi_mpc5xx_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200496 @$(MKCONFIG) $@ powerpc mpc5xx cmi
wdenk359733b2003-03-31 17:27:09 +0000497
wdenk634d2f72004-04-15 23:14:49 +0000498PATI_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200499 @$(MKCONFIG) $@ powerpc mpc5xx pati mpl
wdenkbc01dd52004-01-02 16:05:07 +0000500
wdenk7ebf7442002-11-02 23:17:16 +0000501#########################################################################
wdenk21136db2003-07-16 21:53:01 +0000502## MPC5xxx Systems
503#########################################################################
wdenk8d414a72005-06-10 10:00:19 +0000504
Wolfgang Denke24ec722010-05-27 23:18:35 +0200505# generic boards
506################
507BC3450_config \
508canmb_config \
509cm5200_config \
510hmi1001_config \
511jupiter_config \
512inka4x0_config \
513ipek01_config \
514motionpro_config\
515mucmc52_config \
516munices_config \
517o2dnt_config \
518uc101_config \
519v38b_config: unconfig
520 @$(MKCONFIG) $@ powerpc mpc5xxx $(call lcname,$@)
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200521
Wolfgang Denke24ec722010-05-27 23:18:35 +0200522# vendor specific boards (sorted by vendor)
523###########################################
524cpci5200_config \
525mecp5200_config \
526pf5200_config: unconfig
527 @$(MKCONFIG) $@ powerpc mpc5xxx $(call lcname,$@) esd
Wolfgang Denk28d8d702008-07-15 22:22:44 +0200528
Wolfgang Denke24ec722010-05-27 23:18:35 +0200529aev_config \
530smmaco4_config \
531spieval_config: unconfig
532 @$(MKCONFIG) $@ powerpc mpc5xxx tqm5200 tqc
Stefan Roese99200d22005-08-22 17:51:53 +0200533
Wolfgang Denke24ec722010-05-27 23:18:35 +0200534# special boards
535################
Grzegorz Bernackiafc9d6d2009-03-17 10:06:40 +0100536digsy_mtc_config \
537digsy_mtc_LOWBOOT_config \
538digsy_mtc_RAMBOOT_config: unconfig
539 @mkdir -p $(obj)include
540 @mkdir -p $(obj)board/digsy_mtc
541 @ >$(obj)include/config.h
542 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200543 echo "TEXT_BASE = 0xFF000000" >$(obj)board/digsy_mtc/config.tmp
Grzegorz Bernackiafc9d6d2009-03-17 10:06:40 +0100544 @[ -z "$(findstring RAMBOOT_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200545 echo "TEXT_BASE = 0x00100000" >$(obj)board/digsy_mtc/config.tmp
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200546 @$(MKCONFIG) -n $@ -a digsy_mtc powerpc mpc5xxx digsy_mtc
Grzegorz Bernackiafc9d6d2009-03-17 10:06:40 +0100547
Eric Millbrandt9fc91f02009-08-13 10:14:21 -0500548galaxy5200_LOWBOOT_config \
549galaxy5200_config: unconfig
550 @mkdir -p $(obj)include
551 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +0200552 @$(MKCONFIG) -n $@ -a galaxy5200 powerpc mpc5xxx galaxy5200
Eric Millbrandt9fc91f02009-08-13 10:14:21 -0500553
wdenke44b9112004-04-18 23:32:11 +0000554Lite5200_config \
555Lite5200_LOWBOOT_config \
556Lite5200_LOWBOOT08_config \
557icecube_5200_config \
558icecube_5200_LOWBOOT_config \
559icecube_5200_LOWBOOT08_config \
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +0100560icecube_5200_DDR_config \
561icecube_5200_DDR_LOWBOOT_config \
Detlev Zundela414c7a2010-03-12 10:01:12 +0100562icecube_5200_DDR_LOWBOOT08_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200563 @mkdir -p $(obj)include
564 @mkdir -p $(obj)board/icecube
wdenk9c07bf62004-04-10 20:43:50 +0000565 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200566 if [ "$(findstring DDR,$@)" ] ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200567 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
568 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200569 fi
wdenk4b16c2e2003-11-07 13:42:26 +0000570 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200571 echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp
wdenk236d3fc2003-12-20 22:45:10 +0000572 @[ -z "$(findstring DDR,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200573 echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
574 @$(MKCONFIG) -n $@ -a IceCube powerpc mpc5xxx icecube
wdenk21136db2003-07-16 21:53:01 +0000575
Wolfgang Denk315b46a2006-03-17 11:42:53 +0100576lite5200b_config \
Domen Puncer64b89ae2007-04-16 14:00:13 +0200577lite5200b_PM_config \
Wolfgang Denk315b46a2006-03-17 11:42:53 +0100578lite5200b_LOWBOOT_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200579 @mkdir -p $(obj)include
580 @mkdir -p $(obj)board/icecube
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200581 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200582 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
Domen Puncer64b89ae2007-04-16 14:00:13 +0200583 @[ -z "$(findstring _PM_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200584 echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h
Wolfgang Denk315b46a2006-03-17 11:42:53 +0100585 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200586 echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp
587 @$(MKCONFIG) -n $@ -a IceCube powerpc mpc5xxx icecube
Wolfgang Denk315b46a2006-03-17 11:42:53 +0100588
Stefan Roese531e94c2006-03-04 14:57:03 +0100589mcc200_config \
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200590mcc200_SDRAM_config \
591mcc200_highboot_config \
592mcc200_COM12_config \
593mcc200_COM12_SDRAM_config \
Wolfgang Denk7aa5b452006-08-25 01:38:04 +0200594mcc200_COM12_highboot_config \
595mcc200_COM12_highboot_SDRAM_config \
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200596mcc200_highboot_SDRAM_config \
597prs200_config \
598prs200_DDR_config \
599prs200_highboot_config \
600prs200_highboot_DDR_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200601 @mkdir -p $(obj)include
602 @mkdir -p $(obj)board/mcc200
Wolfgang Denk790dd202006-07-23 22:40:51 +0200603 @[ -z "$(findstring highboot,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200604 echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp
Wolfgang Denk790dd202006-07-23 22:40:51 +0200605 @[ -n "$(findstring _SDRAM,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200606 if [ -n "$(findstring prs200,$@)" ]; \
607 then \
608 if [ -z "$(findstring _DDR,$@)" ];\
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200609 then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200610 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200611 fi; \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200612 fi
Wolfgang Denk790dd202006-07-23 22:40:51 +0200613 @[ -z "$(findstring _SDRAM,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200614 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h
Wolfgang Denk6d8fdf62006-08-17 00:36:51 +0200615 @[ -z "$(findstring COM12,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200616 echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200617 @[ -z "$(findstring prs200,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200618 echo "#define CONFIG_PRS200" >>$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +0200619 @$(MKCONFIG) -n $@ -a mcc200 powerpc mpc5xxx mcc200
Wolfgang Denk07ad17c2006-02-22 00:43:16 +0100620
Wolfgang Denk28d8d702008-07-15 22:22:44 +0200621MVBC_P_config: unconfig
622 @mkdir -p $(obj)include
623 @mkdir -p $(obj)board/mvbc_p
624 @ >$(obj)include/config.h
625 @[ -z "$(findstring MVBC_P,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200626 echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200627 @$(MKCONFIG) -n $@ -a $@ powerpc mpc5xxx mvbc_p matrix_vision
Wolfgang Denk28d8d702008-07-15 22:22:44 +0200628
Andre Schwarz3f4bd652010-04-01 21:26:55 +0200629MVSMR_config: unconfig
630 @mkdir -p $(obj)include
631 @mkdir -p $(obj)board/matrix_vision/mvsmr
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200632 @$(MKCONFIG) $@ powerpc mpc5xxx mvsmr matrix_vision
Andre Schwarz3f4bd652010-04-01 21:26:55 +0200633
Jon Smirlbc03df92009-06-14 18:21:28 -0400634pcm030_config \
635pcm030_LOWBOOT_config: unconfig
Wolfgang Denk1b55ec82009-07-19 12:05:15 +0200636 @mkdir -p $(obj)include $(obj)board/phytec/pcm030
Wolfgang Denk4e82ddb2009-07-18 18:00:25 +0200637 @ >$(obj)include/config.h
Jon Smirlbc03df92009-06-14 18:21:28 -0400638 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200639 echo "TEXT_BASE = 0xFF000000" >$(obj)board/phytec/pcm030/config.tmp
640 @$(MKCONFIG) -n $@ -a pcm030 powerpc mpc5xxx pcm030 phytec
Jon Smirlbc03df92009-06-14 18:21:28 -0400641
wdenkda54bc92004-08-04 21:56:49 +0000642PM520_config \
643PM520_DDR_config \
644PM520_ROMBOOT_config \
645PM520_ROMBOOT_DDR_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200646 @mkdir -p $(obj)include
wdenkda54bc92004-08-04 21:56:49 +0000647 @[ -z "$(findstring DDR,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200648 echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
wdenkda54bc92004-08-04 21:56:49 +0000649 @[ -z "$(findstring ROMBOOT,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200650 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h
651 @$(MKCONFIG) -n $@ -a PM520 powerpc mpc5xxx pm520
wdenkda54bc92004-08-04 21:56:49 +0000652
Wolfgang Denkc98368a2006-07-19 17:52:30 +0200653TB5200_B_config \
Wolfgang Denkba940932006-07-19 13:50:38 +0200654TB5200_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200655 @mkdir -p $(obj)include
Wolfgang Denkc98368a2006-07-19 17:52:30 +0200656 @[ -z "$(findstring _B,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200657 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +0200658 @$(MKCONFIG) -n $@ -a TB5200 powerpc mpc5xxx tqm5200 tqc
Wolfgang Denkba940932006-07-19 13:50:38 +0200659
wdenk1ebf41e2004-01-02 14:00:00 +0000660MINI5200_config \
661EVAL5200_config \
662TOP5200_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200663 @mkdir -p $(obj)include
664 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +0200665 @$(MKCONFIG) -n $@ -a TOP5200 powerpc mpc5xxx top5200 emk
wdenk1ebf41e2004-01-02 14:00:00 +0000666
wdenkcc3f8a92004-07-11 19:17:20 +0000667Total5200_config \
668Total5200_lowboot_config \
669Total5200_Rev2_config \
670Total5200_Rev2_lowboot_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200671 @mkdir -p $(obj)include
672 @mkdir -p $(obj)board/total5200
wdenkcc3f8a92004-07-11 19:17:20 +0000673 @[ -n "$(findstring Rev,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200674 echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h
wdenkcc3f8a92004-07-11 19:17:20 +0000675 @[ -z "$(findstring Rev2_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200676 echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h
wdenkcc3f8a92004-07-11 19:17:20 +0000677 @[ -z "$(findstring lowboot_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200678 echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp
679 @$(MKCONFIG) -n $@ -a Total5200 powerpc mpc5xxx total5200
wdenkcc3f8a92004-07-11 19:17:20 +0000680
Wolfgang Denk641e3572006-07-22 01:20:03 +0200681cam5200_config \
Marian Balakowicz4b7e4562007-01-10 00:26:15 +0100682cam5200_niosflash_config \
Wolfgang Denk9018bc92006-08-18 23:27:33 +0200683fo300_config \
Marian Balakowiczbcb0cca2006-08-18 19:14:46 +0200684MiniFAP_config \
Wolfgang Denk99753142006-07-21 11:16:34 +0200685TQM5200S_config \
686TQM5200S_HIGHBOOT_config \
Wolfgang Denk9018bc92006-08-18 23:27:33 +0200687TQM5200_B_config \
688TQM5200_B_HIGHBOOT_config \
689TQM5200_config \
690TQM5200_STK100_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200691 @mkdir -p $(obj)include
Wolfgang Grandeggeree38f682008-06-04 13:52:17 +0200692 @mkdir -p $(obj)board/tqc/tqm5200
Wolfgang Denk641e3572006-07-22 01:20:03 +0200693 @[ -z "$(findstring cam5200,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200694 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
695 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
696 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
Wolfgang Denk99753142006-07-21 11:16:34 +0200697 }
Marian Balakowicz4b7e4562007-01-10 00:26:15 +0100698 @[ -z "$(findstring niosflash,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200699 echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h
Marian Balakowiczbcb0cca2006-08-18 19:14:46 +0200700 @[ -z "$(findstring fo300,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200701 echo "#define CONFIG_FO300" >>$(obj)include/config.h
Wolfgang Denk3f2f9dd2006-06-16 16:11:34 +0200702 @[ -z "$(findstring MiniFAP,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200703 echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h
Wolfgang Denk3f2f9dd2006-06-16 16:11:34 +0200704 @[ -z "$(findstring STK100,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200705 echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h
Wolfgang Denk99753142006-07-21 11:16:34 +0200706 @[ -z "$(findstring TQM5200_B,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200707 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h
Wolfgang Denk99753142006-07-21 11:16:34 +0200708 @[ -z "$(findstring TQM5200S,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200709 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
710 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
Wolfgang Denkc98368a2006-07-19 17:52:30 +0200711 }
Wolfgang Denk5591d9e2006-07-19 18:01:38 +0200712 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200713 echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +0200714 @$(MKCONFIG) -n $@ -a TQM5200 powerpc mpc5xxx tqm5200 tqc
Wolfgang Denk28d8d702008-07-15 22:22:44 +0200715
wdenk21136db2003-07-16 21:53:01 +0000716#########################################################################
Rafal Jaworowskid3a02c32007-07-27 14:43:59 +0200717## MPC512x Systems
718#########################################################################
Wolfgang Denk28d8d702008-07-15 22:22:44 +0200719
Wolfgang Denke24ec722010-05-27 23:18:35 +0200720# generic boards
721################
722pdm360ng_config: unconfig
723 @$(MKCONFIG) $@ powerpc mpc512x $(call lcname,$@)
724
725# vendor specific boards (sorted by vendor)
726###########################################
Wolfgang Denk190ab732009-05-16 10:47:46 +0200727aria_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200728 @$(MKCONFIG) $@ powerpc mpc512x aria davedenx
Wolfgang Denk190ab732009-05-16 10:47:46 +0200729
Stefan Roeseabbd0da2009-06-09 11:50:40 +0200730mecp5123_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200731 @$(MKCONFIG) $@ powerpc mpc512x mecp5123 esd
Stefan Roeseabbd0da2009-06-09 11:50:40 +0200732
Wolfgang Denke24ec722010-05-27 23:18:35 +0200733# special boards
734################
Wolfgang Denkbbcbb322009-05-16 10:47:41 +0200735mpc5121ads_config \
736mpc5121ads_rev2_config \
Martha Marxfd449ab2008-05-29 14:23:25 -0400737 : unconfig
Wolfgang Denkf10a5de2008-03-09 00:06:09 +0100738 @mkdir -p $(obj)include
Martha Marxfd449ab2008-05-29 14:23:25 -0400739 @if [ "$(findstring rev2,$@)" ] ; then \
740 echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
John Rigbyd1228c92008-02-26 09:38:14 -0700741 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +0200742 @$(MKCONFIG) -n $@ -a mpc5121ads powerpc mpc512x mpc5121ads freescale
wdenk9f664dd2004-06-09 21:50:45 +0000743
wdenkec5dc0d2004-07-09 22:51:01 +0000744#########################################################################
wdenk9f664dd2004-06-09 21:50:45 +0000745## MPC8xx Systems
746#########################################################################
747
Wolfgang Denke24ec722010-05-27 23:18:35 +0200748# generic boards
749################
750
751c2mon_config \
752EP88x_config \
753ESTEEM192E_config \
754ETX094_config \
755FLAGADM_config \
756GENIETV_config \
757GTH_config \
758hermes_config \
759IP860_config \
760LANTEC_config \
761lwmon_config \
762NX823_config \
763quantum_config \
764R360MPI_config \
765RBC823_config \
766rmu_config \
767spc1920_config \
768svm_sc8xx_config \
769uc100_config : unconfig
770 @$(MKCONFIG) $@ powerpc mpc8xx $(call lcname,$@)
771
772RPXClassic_config \
773RPXlite_config \
774RRvision_config : unconfig
775 @$(MKCONFIG) $@ powerpc mpc8xx $(@:_config=)
776
777# vendor specific boards (sorted by vendor)
778###########################################
779
780MHPC_config: unconfig
781 @$(MKCONFIG) $@ powerpc mpc8xx mhpc eltec
782
783TOP860_config: unconfig
784 @$(MKCONFIG) $@ powerpc mpc8xx top860 emk
785
786kmsupx4_config \
787mgsuvd_config : unconfig
788 @$(MKCONFIG) $@ powerpc mpc8xx km8xx keymile
789
790KUP4K_config \
791KUP4X_config : unconfig
792 @$(MKCONFIG) $@ powerpc mpc8xx $(call lcname,$@) kup
793
794ELPT860_config: unconfig
795 @$(MKCONFIG) $@ powerpc mpc8xx elpt860 LEOX
796
797stxxtc_config: unconfig
798 @$(MKCONFIG) $@ powerpc mpc8xx stxxtc stx
799
800HMI10_config \
801SM850_config : unconfig
802 @$(MKCONFIG) $@ powerpc mpc8xx tqm8xx tqc
803
804CCM_config \
805IAD210_config \
806pcu_e_config : unconfig
807 @$(MKCONFIG) $@ powerpc mpc8xx $(@:_config=) siemens
808
809QS823_config \
810QS850_config : unconfig
811 @$(MKCONFIG) $@ powerpc mpc8xx qs850 snmc
812
813QS860T_config : unconfig
814 @$(MKCONFIG) $@ powerpc mpc8xx qs860t snmc
815
816AMX860_config : unconfig
817 @$(MKCONFIG) $@ powerpc mpc8xx amx860 westel
818
819# special boards
820################
821
wdenk7ebf7442002-11-02 23:17:16 +0000822Adder87x_config \
Wolfgang Denk19b68c42008-03-04 14:58:31 +0100823AdderII_config \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200824AdderUSB_config \
825Adder_config \
wdenk7ebf7442002-11-02 23:17:16 +0000826 : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200827 @mkdir -p $(obj)include
wdenk7ebf7442002-11-02 23:17:16 +0000828 $(if $(findstring AdderII,$@), \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200829 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
830 @$(MKCONFIG) -n $@ -a Adder powerpc mpc8xx adder
Wolfgang Denk3f0137b2006-06-14 17:45:53 +0200831
Wolfgang Denke24ec722010-05-27 23:18:35 +0200832cogent_mpc8xx_config: unconfig
833 @$(MKCONFIG) $(@:_config=) powerpc mpc8xx cogent
834
Wolfgang Denk19b68c42008-03-04 14:58:31 +0100835ADS860_config \
836FADS823_config \
wdenkad276f22004-01-04 16:28:35 +0000837FADS850SAR_config \
838MPC86xADS_config \
wdenka7556b22004-06-06 21:35:06 +0000839MPC885ADS_config \
wdenkad276f22004-01-04 16:28:35 +0000840FADS860T_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200841 @$(MKCONFIG) -n $@ $@ powerpc mpc8xx fads
wdenk7ebf7442002-11-02 23:17:16 +0000842
wdenk541a76d2003-05-03 15:50:43 +0000843GEN860T_SC_config \
wdenk7ebf7442002-11-02 23:17:16 +0000844GEN860T_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200845 @mkdir -p $(obj)include
wdenk541a76d2003-05-03 15:50:43 +0000846 @[ -z "$(findstring _SC,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200847 echo "#define CONFIG_SC" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200848 @$(MKCONFIG) -n $@ -a GEN860T powerpc mpc8xx gen860t
wdenk7ebf7442002-11-02 23:17:16 +0000849
wdenk7ebf7442002-11-02 23:17:16 +0000850ICU862_100MHz_config \
851ICU862_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200852 @mkdir -p $(obj)include
wdenk7ebf7442002-11-02 23:17:16 +0000853 @[ -z "$(findstring _100MHz,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200854 echo "#define CONFIG_100MHz" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200855 @$(MKCONFIG) -n $@ -a ICU862 powerpc mpc8xx icu862
wdenk7ebf7442002-11-02 23:17:16 +0000856
wdenk7ebf7442002-11-02 23:17:16 +0000857IVML24_256_config \
858IVML24_128_config \
859IVML24_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200860 @mkdir -p $(obj)include
wdenk7ebf7442002-11-02 23:17:16 +0000861 @[ -z "$(findstring IVML24_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200862 echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000863 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200864 echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000865 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200866 echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h
867 @$(MKCONFIG) -n $@ -a IVML24 powerpc mpc8xx ivm
wdenk7ebf7442002-11-02 23:17:16 +0000868
869IVMS8_256_config \
870IVMS8_128_config \
871IVMS8_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200872 @mkdir -p $(obj)include
wdenk7ebf7442002-11-02 23:17:16 +0000873 @[ -z "$(findstring IVMS8_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200874 echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000875 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200876 echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000877 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200878 echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h
879 @$(MKCONFIG) -n $@ -a IVMS8 powerpc mpc8xx ivm
wdenk7ebf7442002-11-02 23:17:16 +0000880
wdenk7ebf7442002-11-02 23:17:16 +0000881MBX_config \
882MBX860T_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200883 @$(MKCONFIG) -n $@ $@ powerpc mpc8xx mbx8xx
wdenk7ebf7442002-11-02 23:17:16 +0000884
wdenk70764a32003-06-26 22:04:09 +0000885NETVIA_V2_config \
wdenk7ebf7442002-11-02 23:17:16 +0000886NETVIA_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200887 @mkdir -p $(obj)include
wdenk70764a32003-06-26 22:04:09 +0000888 @[ -z "$(findstring NETVIA_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200889 echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h
wdenk70764a32003-06-26 22:04:09 +0000890 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200891 echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200892 @$(MKCONFIG) -n $@ -a NETVIA powerpc mpc8xx netvia
wdenk6203e402004-04-18 10:13:26 +0000893
894NETPHONE_V2_config \
wdenk3902d702004-04-15 18:22:41 +0000895NETPHONE_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200896 @mkdir -p $(obj)include
wdenk6203e402004-04-18 10:13:26 +0000897 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200898 echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h
wdenk6203e402004-04-18 10:13:26 +0000899 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200900 echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200901 @$(MKCONFIG) -n $@ -a NETPHONE powerpc mpc8xx netphone
wdenk3902d702004-04-15 18:22:41 +0000902
wdenkc4e854f2004-06-07 23:46:25 +0000903NETTA_ISDN_6412_SWAPHOOK_config \
904NETTA_ISDN_SWAPHOOK_config \
905NETTA_6412_SWAPHOOK_config \
906NETTA_SWAPHOOK_config \
907NETTA_ISDN_6412_config \
wdenk3902d702004-04-15 18:22:41 +0000908NETTA_ISDN_config \
wdenkc4e854f2004-06-07 23:46:25 +0000909NETTA_6412_config \
wdenk3902d702004-04-15 18:22:41 +0000910NETTA_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200911 @mkdir -p $(obj)include
wdenkc4e854f2004-06-07 23:46:25 +0000912 @[ -z "$(findstring ISDN_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200913 echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000914 @[ -n "$(findstring ISDN_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200915 echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000916 @[ -z "$(findstring 6412_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200917 echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000918 @[ -n "$(findstring 6412_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200919 echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000920 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200921 echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000922 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200923 echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200924 @$(MKCONFIG) -n $@ -a NETTA powerpc mpc8xx netta
wdenkc4e854f2004-06-07 23:46:25 +0000925
926NETTA2_V2_config \
927NETTA2_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200928 @mkdir -p $(obj)include
wdenkc4e854f2004-06-07 23:46:25 +0000929 @[ -z "$(findstring NETTA2_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200930 echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000931 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200932 echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200933 @$(MKCONFIG) -n $@ -a NETTA2 powerpc mpc8xx netta2
wdenkc4e854f2004-06-07 23:46:25 +0000934
dzu@denx.de8f6fedd2006-04-19 11:52:46 +0200935NC650_Rev1_config \
936NC650_Rev2_config \
937CP850_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200938 @mkdir -p $(obj)include
dzu@denx.de8f6fedd2006-04-19 11:52:46 +0200939 @[ -z "$(findstring CP850,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200940 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
941 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
942 }
dzu@denx.de8f6fedd2006-04-19 11:52:46 +0200943 @[ -z "$(findstring Rev1,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200944 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
945 }
dzu@denx.de8f6fedd2006-04-19 11:52:46 +0200946 @[ -z "$(findstring Rev2,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200947 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
948 }
949 @$(MKCONFIG) -n $@ -a NC650 powerpc mpc8xx nc650
wdenk0bbcbd22004-08-28 22:45:57 +0000950
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +0100951RPXlite_DW_64_config \
952RPXlite_DW_LCD_config \
953RPXlite_DW_64_LCD_config \
wdenkec432742004-06-09 21:04:48 +0000954RPXlite_DW_NVRAM_config \
Wolfgang Denk19b68c42008-03-04 14:58:31 +0100955RPXlite_DW_NVRAM_64_config \
wdenkec432742004-06-09 21:04:48 +0000956RPXlite_DW_NVRAM_LCD_config \
Wolfgang Denk19b68c42008-03-04 14:58:31 +0100957RPXlite_DW_NVRAM_64_LCD_config \
Wolfgang Denkba930932007-10-21 01:01:17 +0200958RPXlite_DW_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200959 @mkdir -p $(obj)include
wdenkec432742004-06-09 21:04:48 +0000960 @[ -z "$(findstring _64,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200961 echo "#define RPXlite_64MHz" >>$(obj)include/config.h
wdenkec432742004-06-09 21:04:48 +0000962 @[ -z "$(findstring _LCD,$@)" ] || \
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +0100963 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200964 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
wdenkec432742004-06-09 21:04:48 +0000965 }
966 @[ -z "$(findstring _NVRAM,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200967 echo "#define CONFIG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h
968 @$(MKCONFIG) -n $@ -a RPXlite_DW powerpc mpc8xx RPXlite_dw
wdenkec432742004-06-09 21:04:48 +0000969
wdenk7ebf7442002-11-02 23:17:16 +0000970RRvision_LCD_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200971 @mkdir -p $(obj)include
972 @echo "#define CONFIG_LCD" >$(obj)include/config.h
973 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +0200974 @$(MKCONFIG) -a RRvision powerpc mpc8xx RRvision
wdenk7ebf7442002-11-02 23:17:16 +0000975
wdenk7ebf7442002-11-02 23:17:16 +0000976SPD823TS_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200977 @$(MKCONFIG) $@ powerpc mpc8xx spd8xx
wdenk7ebf7442002-11-02 23:17:16 +0000978
979SXNI855T_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200980 @$(MKCONFIG) $@ powerpc mpc8xx sixnet
wdenk7ebf7442002-11-02 23:17:16 +0000981
982# Play some tricks for configuration selection
wdenkc78bf132004-04-24 23:23:30 +0000983# Only 855 and 860 boards may come with FEC
984# and only 823 boards may have LCD support
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200985xtract_8xx = $(subst _LCD,,$1)
wdenk7ebf7442002-11-02 23:17:16 +0000986
987FPS850L_config \
wdenk384ae022002-11-05 00:17:55 +0000988FPS860L_config \
wdenk69141282003-07-07 20:07:54 +0000989NSCU_config \
wdenk7ebf7442002-11-02 23:17:16 +0000990TQM823L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000991TQM823L_LCD_config \
wdenk7ebf7442002-11-02 23:17:16 +0000992TQM850L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000993TQM855L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000994TQM860L_config \
wdenk6bd14892003-04-10 11:18:18 +0000995TQM862L_config \
wdenkfb229ae2003-08-07 22:18:11 +0000996TQM823M_config \
wdenkfb229ae2003-08-07 22:18:11 +0000997TQM850M_config \
wdenk69141282003-07-07 20:07:54 +0000998TQM855M_config \
wdenk69141282003-07-07 20:07:54 +0000999TQM860M_config \
wdenk69141282003-07-07 20:07:54 +00001000TQM862M_config \
Wolfgang Denk67ffef32006-05-12 16:15:46 +02001001TQM866M_config \
Markus Klotzbuecher13af9f02006-07-12 15:26:01 +02001002TQM885D_config \
Guennadi Liakhovetski7a90bb92008-01-10 17:59:07 +01001003TK885D_config \
Wolfgang Denk67ffef32006-05-12 16:15:46 +02001004virtlab2_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001005 @mkdir -p $(obj)include
wdenk7ebf7442002-11-02 23:17:16 +00001006 @[ -z "$(findstring _LCD,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001007 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
1008 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +00001009 }
Wolfgang Denk625bd332010-05-27 23:18:33 +02001010 @$(MKCONFIG) -n $@ -a $(call xtract_8xx,$@) powerpc mpc8xx tqm8xx tqc
wdenk7ebf7442002-11-02 23:17:16 +00001011
1012TTTech_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001013 @mkdir -p $(obj)include
1014 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1015 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +02001016 @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc
wdenk7ebf7442002-11-02 23:17:16 +00001017
wdenk2dad91b2003-01-13 23:54:46 +00001018v37_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001019 @mkdir -p $(obj)include
1020 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1021 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001022 @$(MKCONFIG) $@ powerpc mpc8xx v37
wdenk2dad91b2003-01-13 23:54:46 +00001023
dzu69438f62003-09-25 22:32:40 +00001024wtk_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001025 @mkdir -p $(obj)include
1026 @echo "#define CONFIG_LCD" >$(obj)include/config.h
1027 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +02001028 @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc
dzu69438f62003-09-25 22:32:40 +00001029
wdenk7ebf7442002-11-02 23:17:16 +00001030#########################################################################
1031## PPC4xx Systems
1032#########################################################################
1033
Wolfgang Denke24ec722010-05-27 23:18:35 +02001034# generic boards
1035################
Stefan Roesefdf21b12007-03-21 13:39:57 +01001036
Wolfgang Denke24ec722010-05-27 23:18:35 +02001037csb272_config \
1038csb472_config \
1039ERIC_config \
1040G2000_config \
1041JSE_config \
1042korat_config \
1043lwmon5_config \
1044ML2_config \
1045pcs440ep_config \
1046quad100hd_config\
1047sbc405_config \
1048sc3_config \
1049zeus_config: unconfig
1050 @$(MKCONFIG) $@ powerpc ppc4xx $(call lcname,$@)
Stefan Roese23d8d342007-06-06 11:42:13 +02001051
Wolfgang Denke24ec722010-05-27 23:18:35 +02001052# vendor specific boards (sorted by vendor)
1053###########################################
wdenk7ebf7442002-11-02 23:17:16 +00001054
Wolfgang Denke24ec722010-05-27 23:18:35 +02001055acadia_config \
1056bamboo_config \
1057bubinga_config \
1058ebony_config \
1059katmai_config \
1060luan_config \
1061makalu_config \
1062ocotea_config \
1063redwood_config \
1064taihu_config \
1065taishan_config \
1066yucca_config: unconfig
1067 @$(MKCONFIG) $@ powerpc ppc4xx $(call lcname,$@) amcc
Stefan Roese49639682006-08-15 14:22:35 +02001068
Wolfgang Denk56811f62005-10-09 01:04:33 +02001069AP1000_config:unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02001070 @$(MKCONFIG) $@ powerpc ppc4xx $(call lcname,$@) amirix
Wolfgang Denk56811f62005-10-09 01:04:33 +02001071
Wolfgang Denke24ec722010-05-27 23:18:35 +02001072ADCIOP_config \
1073APC405_config \
1074AR405_config \
1075ASH405_config \
1076CANBT_config \
1077CMS700_config \
1078CPCI2DP_config \
1079CPCIISER4_config\
1080DASA_SIM_config \
1081DP405_config \
1082DU405_config \
1083DU440_config \
1084HH405_config \
1085HUB405_config \
1086PCI405_config \
1087PLU405_config \
1088PMC405_config \
1089PMC405DE_config \
1090PMC440_config \
1091VOH405_config \
1092VOM405_config \
1093WUH405_config: unconfig
1094 @$(MKCONFIG) $@ powerpc ppc4xx $(call lcname,$@) esd
1095
1096CRAYL1_config: unconfig
1097 @$(MKCONFIG) $@ powerpc ppc4xx L1 cray
1098
1099dlvision_config \
1100gdppc440etx_config \
1101neo_config : unconfig
1102 @$(MKCONFIG) $@ powerpc ppc4xx $(call lcname,$@) gdsys
1103
1104icon_config: unconfig
1105 @$(MKCONFIG) $@ powerpc ppc4xx $(call lcname,$@) mosaixtech
1106
1107MIP405_config \
1108PIP405_config: unconfig
1109 @$(MKCONFIG) $@ powerpc ppc4xx $(call lcname,$@) mpl
stroese05b88912004-12-16 18:44:40 +00001110
Wolfgang Denke24ec722010-05-27 23:18:35 +02001111hcu4_config \
1112hcu5_config \
1113mcu25_config: unconfig
1114 @mkdir -p $(obj)board/netstal/common
1115 @$(MKCONFIG) $@ powerpc ppc4xx $(call lcname,$@) netstal
1116
1117alpr_config \
1118p3p440_config: unconfig
1119 @$(MKCONFIG) $@ powerpc ppc4xx $(call lcname,$@) prodrive
1120
1121KAREF_config \
1122METROBOX_config: unconfig
1123 @$(MKCONFIG) $@ powerpc ppc4xx $(call lcname,$@) sandburst
1124
1125XPEDITE1000_config: unconfig
1126 @$(MKCONFIG) $@ powerpc ppc4xx $(call lcname,$@) xes
wdenk7ebf7442002-11-02 23:17:16 +00001127
Wolfgang Denke24ec722010-05-27 23:18:35 +02001128# special boards
1129################
stroesebfcc82b2003-05-23 11:41:44 +00001130
Wolfgang Denke24ec722010-05-27 23:18:35 +02001131acadia_nand_config: unconfig
1132 @mkdir -p $(obj)include $(obj)board/amcc/acadia
1133 @mkdir -p $(obj)nand_spl/board/amcc/acadia
1134 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
1135 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
1136 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
1137 @$(MKCONFIG) -n $@ -a acadia powerpc ppc4xx acadia amcc
Stefan Roese3e1f1b32005-08-01 16:49:12 +02001138
Stefan Roese42743512007-06-01 15:27:11 +02001139bamboo_nand_config: unconfig
Wolfgang Denk6b99a462007-08-02 10:11:18 +02001140 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
1141 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
Stefan Roese42743512007-06-01 15:27:11 +02001142 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Stefan Roese42743512007-06-01 15:27:11 +02001143 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
1144 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001145 @$(MKCONFIG) -n $@ -a bamboo powerpc ppc4xx bamboo amcc
Stefan Roese42743512007-06-01 15:27:11 +02001146
Adam Graham4900ed22008-10-08 10:12:53 -07001147# Arches, Canyonlands & Glacier use different U-Boot images
1148arches_config \
Stefan Roese52df4192008-03-19 16:20:49 +01001149canyonlands_config \
1150glacier_config: unconfig
1151 @mkdir -p $(obj)include
1152 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1153 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +02001154 @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc
Stefan Roese075f7a22008-03-11 16:53:00 +01001155
Stefan Roese216f92e2008-04-08 10:33:27 +02001156canyonlands_nand_config \
1157glacier_nand_config: unconfig
Stefan Roese0b86db72008-03-03 17:27:02 +01001158 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
1159 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
1160 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Stefan Roese216f92e2008-04-08 10:33:27 +02001161 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
1162 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
Stefan Roese0b86db72008-03-03 17:27:02 +01001163 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
1164 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denk625bd332010-05-27 23:18:33 +02001165 @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc
Stefan Roese0b86db72008-03-03 17:27:02 +01001166
wdenk9e7130b2004-09-09 17:44:35 +00001167CATcenter_config \
1168CATcenter_25_config \
1169CATcenter_33_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001170 @mkdir -p $(obj)include
Wolfgang Denk625bd332010-05-27 23:18:33 +02001171 @echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
1172 @echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
wdenk9e7130b2004-09-09 17:44:35 +00001173 @[ -z "$(findstring _25,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001174 echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h
wdenk9e7130b2004-09-09 17:44:35 +00001175 @[ -z "$(findstring _33,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001176 echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001177 @$(MKCONFIG) -n $@ -a CATcenter powerpc ppc4xx PPChameleonEVB dave
wdenkbb33bab2004-05-13 13:23:58 +00001178
Matthias Fuchs06e5fda2008-12-10 14:41:25 +01001179CPCI405_config \
Matthias Fuchs5afb76b2008-09-05 15:34:02 +02001180CPCI4052_config \
stroese05b88912004-12-16 18:44:40 +00001181CPCI405DT_config \
stroesebfcc82b2003-05-23 11:41:44 +00001182CPCI405AB_config: unconfig
Matthias Fuchs182c4cf2008-09-09 09:50:24 +02001183 @mkdir -p $(obj)board/esd/cpci405
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001184 @$(MKCONFIG) -n $@ $@ powerpc ppc4xx cpci405 esd
wdenk7ebf7442002-11-02 23:17:16 +00001185
Georg Schardt3ce59a12008-10-24 13:51:52 +02001186fx12mm_flash_config: unconfig
1187 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1188 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
1189 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
1190 > $(obj)board/avnet/fx12mm/config.tmp
1191 @echo "TEXT_BASE := 0xFFCB0000" \
1192 >> $(obj)board/avnet/fx12mm/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +02001193 @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet
Georg Schardt3ce59a12008-10-24 13:51:52 +02001194
1195fx12mm_config: unconfig
1196 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1197 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
1198 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
1199 > $(obj)board/avnet/fx12mm/config.tmp
1200 @echo "TEXT_BASE := 0x03000000" \
1201 >> $(obj)board/avnet/fx12mm/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +02001202 @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet
Georg Schardt3ce59a12008-10-24 13:51:52 +02001203
Dirk Eibach62dbcba2009-09-09 12:36:07 +02001204# Compact-Center(codename intip) & DevCon-Center use different U-Boot images
1205intip_config \
1206devconcenter_config: unconfig
1207 @mkdir -p $(obj)include
1208 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1209 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +02001210 @$(MKCONFIG) -n $@ -a intip powerpc ppc4xx intip gdsys
Dirk Eibach62dbcba2009-09-09 12:36:07 +02001211
Stefan Roese15668052007-10-23 10:10:08 +02001212# Kilauea & Haleakala images are identical (recognized via PVR)
1213kilauea_config \
1214haleakala_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001215 @$(MKCONFIG) -n $@ kilauea powerpc ppc4xx kilauea amcc
Stefan Roese7de9fc72007-10-05 17:11:30 +02001216
Stefan Roese720c5852007-11-03 12:08:28 +01001217kilauea_nand_config \
1218haleakala_nand_config: unconfig
1219 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1220 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1221 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Stefan Roese720c5852007-11-03 12:08:28 +01001222 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1223 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denk625bd332010-05-27 23:18:33 +02001224 @$(MKCONFIG) -n $@ -a kilauea powerpc ppc4xx kilauea amcc
Stefan Roese720c5852007-11-03 12:08:28 +01001225
wdenk634d2f72004-04-15 23:14:49 +00001226MIP405T_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001227 @mkdir -p $(obj)include
1228 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01001229 @$(XECHO) "Enable subset config for MIP405T"
Stefan Roese88fbf932010-04-15 16:07:28 +02001230 @$(MKCONFIG) -a MIP405 powerpc ppc4xx mip405 mpl
wdenke39c2842003-06-04 15:05:30 +00001231
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001232ml507_flash_config: unconfig
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001233 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
Ricardo Ribalda Delgado2a019eb2008-07-21 20:30:07 +02001234 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001235 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1236 > $(obj)board/xilinx/ml507/config.tmp
1237 @echo "TEXT_BASE := 0xFE360000" \
1238 >> $(obj)board/xilinx/ml507/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +02001239 @$(MKCONFIG) ml507 powerpc ppc4xx ml507 xilinx
Ricardo Ribalda Delgado2a019eb2008-07-21 20:30:07 +02001240
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001241ml507_config: unconfig
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001242 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
Ricardo Ribalda Delgado2a019eb2008-07-21 20:30:07 +02001243 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001244 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1245 > $(obj)board/xilinx/ml507/config.tmp
1246 @echo "TEXT_BASE := 0x04000000" \
1247 >> $(obj)board/xilinx/ml507/config.tmp
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001248 @$(MKCONFIG) $@ powerpc ppc4xx ml507 xilinx
Ricardo Ribalda Delgadoa8822a72008-07-17 12:47:09 +02001249
wdenk7ebf7442002-11-02 23:17:16 +00001250OCRTC_config \
1251ORSG_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001252 @$(MKCONFIG) -n $@ $@ powerpc ppc4xx ocrtc esd
wdenk7ebf7442002-11-02 23:17:16 +00001253
wdenk7ac16102004-08-01 22:48:16 +00001254PPChameleonEVB_config \
wdenk99874b42004-07-01 21:40:08 +00001255PPChameleonEVB_BA_25_config \
1256PPChameleonEVB_ME_25_config \
1257PPChameleonEVB_HI_25_config \
1258PPChameleonEVB_BA_33_config \
1259PPChameleonEVB_ME_33_config \
1260PPChameleonEVB_HI_33_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001261 @mkdir -p $(obj)include
wdenk9e7130b2004-09-09 17:44:35 +00001262 @[ -z "$(findstring EVB_BA,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001263 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h
wdenk9e7130b2004-09-09 17:44:35 +00001264 @[ -z "$(findstring EVB_ME,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001265 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h
wdenk9e7130b2004-09-09 17:44:35 +00001266 @[ -z "$(findstring EVB_HI,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001267 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h
wdenk99874b42004-07-01 21:40:08 +00001268 @[ -z "$(findstring _25,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001269 echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h
wdenk99874b42004-07-01 21:40:08 +00001270 @[ -z "$(findstring _33,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001271 echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001272 @$(MKCONFIG) -n $@ -a PPChameleonEVB powerpc ppc4xx PPChameleonEVB dave
wdenk232fe0b2003-09-02 22:48:03 +00001273
Stefan Roese374f38b2007-03-28 15:03:16 +02001274sequoia_config \
1275rainier_config: unconfig
1276 @mkdir -p $(obj)include
1277 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1278 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +02001279 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
Stefan Roese42fbddd2006-09-07 11:51:23 +02001280
Stefan Roese374f38b2007-03-28 15:03:16 +02001281sequoia_nand_config \
1282rainier_nand_config: unconfig
Wolfgang Denk6b99a462007-08-02 10:11:18 +02001283 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1284 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
Marian Balakowicz814ed842006-10-23 22:17:05 +02001285 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Stefan Roese374f38b2007-03-28 15:03:16 +02001286 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1287 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
Marian Balakowicz814ed842006-10-23 22:17:05 +02001288 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1289 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denk625bd332010-05-27 23:18:33 +02001290 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
wdenkd3341052005-01-09 23:48:14 +00001291
Stefan Roesec20ef322009-05-11 13:46:14 +02001292sequoia_ramboot_config \
1293rainier_ramboot_config: unconfig
1294 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1295 @echo "#define CONFIG_SYS_RAMBOOT" > $(obj)include/config.h
1296 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1297 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
Stefan Roesec20ef322009-05-11 13:46:14 +02001298 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1299 @echo "LDSCRIPT = board/amcc/sequoia/u-boot-ram.lds" >> \
1300 $(obj)board/amcc/sequoia/config.tmp
Wolfgang Denk625bd332010-05-27 23:18:33 +02001301 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
Stefan Roesec20ef322009-05-11 13:46:14 +02001302
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001303v5fx30teval_config: unconfig
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001304 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001305 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001306 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1307 > $(obj)board/avnet/v5fx30teval/config.tmp
1308 @echo "TEXT_BASE := 0x03000000" \
1309 >> $(obj)board/avnet/v5fx30teval/config.tmp
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001310 @$(MKCONFIG) $@ powerpc ppc4xx v5fx30teval avnet
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001311
1312v5fx30teval_flash_config: unconfig
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001313 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001314 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001315 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
Ricardo Ribalda Delgado162458a2008-09-11 19:41:25 -04001316 > $(obj)board/avnet/v5fx30teval/config.tmp
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001317 @echo "TEXT_BASE := 0xFF1C0000" \
Ricardo Ribalda Delgado162458a2008-09-11 19:41:25 -04001318 >> $(obj)board/avnet/v5fx30teval/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +02001319 @$(MKCONFIG) v5fx30teval powerpc ppc4xx v5fx30teval avnet
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001320
wdenk7ebf7442002-11-02 23:17:16 +00001321W7OLMC_config \
1322W7OLMG_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001323 @$(MKCONFIG) $@ powerpc ppc4xx w7o
wdenk7ebf7442002-11-02 23:17:16 +00001324
Stefan Roese374f38b2007-03-28 15:03:16 +02001325# Walnut & Sycamore images are identical (recognized via PVR)
1326walnut_config \
1327sycamore_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001328 @$(MKCONFIG) -n $@ walnut powerpc ppc4xx walnut amcc
wdenk7ebf7442002-11-02 23:17:16 +00001329
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +02001330xilinx-ppc405-generic_flash_config: unconfig
1331 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1332 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
1333 > $(obj)board/xilinx/ppc405-generic/config.tmp
1334 @echo "TEXT_BASE := 0xFE360000" \
1335 >> $(obj)board/xilinx/ppc405-generic/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +02001336 @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +02001337
1338xilinx-ppc405-generic_config: unconfig
1339 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1340 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
1341 > $(obj)board/xilinx/ppc405-generic/config.tmp
1342 @echo "TEXT_BASE := 0x04000000" \
1343 >> $(obj)board/xilinx/ppc405-generic/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +02001344 @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +02001345
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001346xilinx-ppc440-generic_flash_config: unconfig
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001347 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1348 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1349 > $(obj)board/xilinx/ppc440-generic/config.tmp
1350 @echo "TEXT_BASE := 0xFE360000" \
1351 >> $(obj)board/xilinx/ppc440-generic/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +02001352 @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001353
1354xilinx-ppc440-generic_config: unconfig
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001355 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1356 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1357 > $(obj)board/xilinx/ppc440-generic/config.tmp
1358 @echo "TEXT_BASE := 0x04000000" \
1359 >> $(obj)board/xilinx/ppc440-generic/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +02001360 @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001361
Stefan Roese374f38b2007-03-28 15:03:16 +02001362yosemite_config \
1363yellowstone_config: unconfig
Stefan Roeseb1669da2007-01-30 17:04:19 +01001364 @mkdir -p $(obj)include
Stefan Roese374f38b2007-03-28 15:03:16 +02001365 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1366 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +02001367 @$(MKCONFIG) -n $@ -a yosemite powerpc ppc4xx yosemite amcc
Stefan Roese3e1f1b32005-08-01 16:49:12 +02001368
wdenk7ebf7442002-11-02 23:17:16 +00001369#########################################################################
wdenk337f5652004-10-28 00:09:35 +00001370## MPC8220 Systems
1371#########################################################################
Wolfgang Denkdb5f3862005-08-03 22:32:02 +02001372
Wolfgang Denke24ec722010-05-27 23:18:35 +02001373# generic boards
1374################
1375sorcery_config: unconfig
1376 @$(MKCONFIG) $@ powerpc mpc8220 $(call lcname,$@)
1377
Wolfgang Denkdb5f3862005-08-03 22:32:02 +02001378Alaska8220_config \
1379Yukon8220_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001380 @$(MKCONFIG) $@ powerpc mpc8220 alaska
wdenk337f5652004-10-28 00:09:35 +00001381
wdenk337f5652004-10-28 00:09:35 +00001382#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001383## MPC824x Systems
1384#########################################################################
wdenkef5fe752003-03-12 10:41:04 +00001385
Wolfgang Denke24ec722010-05-27 23:18:35 +02001386# generic boards
1387################
1388A3000_config \
1389barco_config \
1390BMW_config \
1391CU824_config \
1392HIDDEN_DRAGON_config \
1393MOUSSE_config \
1394MUSENKI_config \
1395MVBLUE_config \
1396OXC_config \
1397PN62_config \
1398sbc8240_config \
1399utx8245_config: unconfig
1400 @$(MKCONFIG) $@ powerpc mpc824x $(call lcname,$@)
1401
1402# vendor specific boards (sorted by vendor)
1403###########################################
wdenk8aeb24e2003-06-20 22:36:30 +00001404
Wolfgang Denke24ec722010-05-27 23:18:35 +02001405debris_config \
1406kvme080_config: unconfig
1407 @$(MKCONFIG) $@ powerpc mpc824x $(call lcname,$@) etin
Wolfgang Denka48c7252005-09-25 18:59:36 +02001408
Wolfgang Denke24ec722010-05-27 23:18:35 +02001409# special boards
1410################
1411eXalion_config: unconfig
1412 @$(MKCONFIG) $(@:_config=) powerpc mpc824x eXalion
wdenk7ebf7442002-11-02 23:17:16 +00001413
wdenkef5fe752003-03-12 10:41:04 +00001414CPC45_config \
1415CPC45_ROMBOOT_config: unconfig
Wolfgang Denk625bd332010-05-27 23:18:33 +02001416 @mkdir -p $(obj)include ; \
wdenkef5fe752003-03-12 10:41:04 +00001417 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001418 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \
wdenkef5fe752003-03-12 10:41:04 +00001419 else \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001420 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \
wdenkef5fe752003-03-12 10:41:04 +00001421 fi; \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001422 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk;
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001423 @$(MKCONFIG) -n $@ CPC45 powerpc mpc824x cpc45
wdenkef5fe752003-03-12 10:41:04 +00001424
Guennadi Liakhovetski40c26b22008-03-31 01:32:15 +02001425# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1426# time permits.
1427#linkstation_HDLAN_config \
1428# Remove this line when HDLAN is fixed
1429linkstation_HGLAN_config: unconfig
1430 @mkdir -p $(obj)include
1431 @case $@ in \
1432 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1433 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1434 esac
Stefan Roese88fbf932010-04-15 16:07:28 +02001435 @$(MKCONFIG) -n $@ -a linkstation powerpc mpc824x linkstation
Guennadi Liakhovetski40c26b22008-03-31 01:32:15 +02001436
wdenk7ebf7442002-11-02 23:17:16 +00001437Sandpoint8240_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001438 @$(MKCONFIG) $@ powerpc mpc824x sandpoint
wdenk7ebf7442002-11-02 23:17:16 +00001439
1440Sandpoint8245_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001441 @$(MKCONFIG) $@ powerpc mpc824x sandpoint
wdenk7ebf7442002-11-02 23:17:16 +00001442
wdenk7ebf7442002-11-02 23:17:16 +00001443#########################################################################
1444## MPC8260 Systems
1445#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001446
Wolfgang Denke24ec722010-05-27 23:18:35 +02001447# generic boards
1448################
1449atc_config \
1450ep8260_config \
1451ep82xxm_config \
1452gw8260_config \
1453hymod_config \
1454IDS8247_config \
1455IPHASE4539_config \
1456ppmc8260_config \
1457RPXsuper_config \
1458rsdproto_config \
1459sacsng_config \
1460sbc8260_config \
1461ZPC1900_config: unconfig
1462 @$(MKCONFIG) $@ powerpc mpc8260 $(call lcname,$@)
1463
1464# vendor specific boards (sorted by vendor)
1465###########################################
1466
1467MPC8266ADS_config: unconfig
1468 @$(MKCONFIG) $@ powerpc mpc8260 $(call lcname,$@) freescale
1469
1470mgcoge_config : unconfig
1471 @$(MKCONFIG) $@ powerpc mpc8260 $(call lcname,$@) keymile
1472
1473SCM_config: unconfig
1474 @$(MKCONFIG) $@ powerpc mpc8260 $(call ucname,$@) siemens
1475
1476TQM8272_config: unconfig
1477 @$(MKCONFIG) TQM8272 powerpc mpc8260 $(call lcname,$@) tqc
1478
1479# special boards
1480################
wdenk2f0812d2003-10-08 22:45:44 +00001481
wdenk7ebf7442002-11-02 23:17:16 +00001482cogent_mpc8260_config: unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02001483 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 cogent
wdenk7ebf7442002-11-02 23:17:16 +00001484
1485CPU86_config \
1486CPU86_ROMBOOT_config: unconfig
Wolfgang Denk625bd332010-05-27 23:18:33 +02001487 @mkdir -p $(obj)include ; \
wdenk7ebf7442002-11-02 23:17:16 +00001488 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001489 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \
wdenk7ebf7442002-11-02 23:17:16 +00001490 else \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001491 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \
wdenk7ebf7442002-11-02 23:17:16 +00001492 fi; \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001493 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk;
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001494 @$(MKCONFIG) -n $@ CPU86 powerpc mpc8260 cpu86
wdenk7ebf7442002-11-02 23:17:16 +00001495
wdenk6d3c6d12005-04-03 22:35:21 +00001496CPU87_config \
1497CPU87_ROMBOOT_config: unconfig
Wolfgang Denk625bd332010-05-27 23:18:33 +02001498 @mkdir -p $(obj)include ; \
wdenk6d3c6d12005-04-03 22:35:21 +00001499 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001500 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \
wdenk6d3c6d12005-04-03 22:35:21 +00001501 else \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001502 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \
wdenk6d3c6d12005-04-03 22:35:21 +00001503 fi; \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001504 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk;
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001505 @$(MKCONFIG) -n $@ CPU87 powerpc mpc8260 cpu87
wdenk6d3c6d12005-04-03 22:35:21 +00001506
Wolfgang Denk8dd4d332005-08-06 01:42:58 +02001507ep8248_config \
1508ep8248E_config : unconfig
Wolfgang Denk625bd332010-05-27 23:18:33 +02001509 @$(MKCONFIG) -n $@ ep8248 powerpc mpc8260 ep8248
Wolfgang Denk8dd4d332005-08-06 01:42:58 +02001510
wdenk76dd6c72004-06-09 14:47:54 +00001511ISPAN_config \
1512ISPAN_REVB_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001513 @mkdir -p $(obj)include
wdenk76dd6c72004-06-09 14:47:54 +00001514 @if [ "$(findstring _REVB_,$@)" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001515 echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
wdenk76dd6c72004-06-09 14:47:54 +00001516 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001517 @$(MKCONFIG) -n $@ -a ISPAN powerpc mpc8260 ispan
wdenk76dd6c72004-06-09 14:47:54 +00001518
wdenk3902d702004-04-15 18:22:41 +00001519MPC8260ADS_config \
wdenk874c6752005-04-03 23:22:21 +00001520MPC8260ADS_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001521MPC8260ADS_33MHz_config \
wdenk874c6752005-04-03 23:22:21 +00001522MPC8260ADS_33MHz_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001523MPC8260ADS_40MHz_config \
wdenk874c6752005-04-03 23:22:21 +00001524MPC8260ADS_40MHz_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001525MPC8272ADS_config \
wdenk874c6752005-04-03 23:22:21 +00001526MPC8272ADS_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001527PQ2FADS_config \
wdenk874c6752005-04-03 23:22:21 +00001528PQ2FADS_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001529PQ2FADS-VR_config \
wdenk874c6752005-04-03 23:22:21 +00001530PQ2FADS-VR_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001531PQ2FADS-ZU_config \
wdenk874c6752005-04-03 23:22:21 +00001532PQ2FADS-ZU_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001533PQ2FADS-ZU_66MHz_config \
wdenk874c6752005-04-03 23:22:21 +00001534PQ2FADS-ZU_66MHz_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001535 : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001536 @mkdir -p $(obj)include
Jon Loeliger39bf01e2008-03-05 18:05:45 -06001537 @mkdir -p $(obj)board/freescale/mpc8260ads
wdenk3902d702004-04-15 18:22:41 +00001538 $(if $(findstring PQ2FADS,$@), \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001539 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \
1540 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
wdenk3902d702004-04-15 18:22:41 +00001541 $(if $(findstring MHz,$@), \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001542 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
wdenk3902d702004-04-15 18:22:41 +00001543 $(if $(findstring VR,$@), \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001544 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
wdenk874c6752005-04-03 23:22:21 +00001545 @[ -z "$(findstring lowboot_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001546 echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp
1547 @$(MKCONFIG) -n $@ -a MPC8260ADS powerpc mpc8260 mpc8260ads freescale
wdenk7ebf7442002-11-02 23:17:16 +00001548
Heiko Schochera772a162008-08-19 10:08:49 +02001549muas3001_dev_config \
1550muas3001_config : unconfig
1551 @mkdir -p $(obj)include
1552 @mkdir -p $(obj)board/muas3001
1553 @if [ "$(findstring dev,$@)" ] ; then \
1554 echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1555 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001556 @$(MKCONFIG) -n $@ -a muas3001 powerpc mpc8260 muas3001
Heiko Schochera772a162008-08-19 10:08:49 +02001557
wdenkc12081a2004-03-23 20:18:25 +00001558# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
wdenk4b57dcc2003-03-25 18:06:06 +00001559PM825_config \
wdenkc12081a2004-03-23 20:18:25 +00001560PM825_ROMBOOT_config \
1561PM825_BIGFLASH_config \
1562PM825_ROMBOOT_BIGFLASH_config \
1563PM826_config \
1564PM826_ROMBOOT_config \
1565PM826_BIGFLASH_config \
1566PM826_ROMBOOT_BIGFLASH_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001567 @mkdir -p $(obj)include
1568 @mkdir -p $(obj)board/pm826
wdenkc12081a2004-03-23 20:18:25 +00001569 @if [ "$(findstring PM825_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001570 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
wdenkc12081a2004-03-23 20:18:25 +00001571 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001572 >$(obj)include/config.h ; \
wdenkc12081a2004-03-23 20:18:25 +00001573 fi
1574 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001575 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1576 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
wdenkc12081a2004-03-23 20:18:25 +00001577 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001578 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
wdenkc12081a2004-03-23 20:18:25 +00001579 fi; \
wdenk4b57dcc2003-03-25 18:06:06 +00001580 else \
wdenkc12081a2004-03-23 20:18:25 +00001581 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01001582 $(XECHO) "... with 32 MB Flash" ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001583 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1584 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
wdenkc12081a2004-03-23 20:18:25 +00001585 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001586 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
wdenkc12081a2004-03-23 20:18:25 +00001587 fi; \
1588 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001589 @$(MKCONFIG) -n $@ -a PM826 powerpc mpc8260 pm826
wdenk4b57dcc2003-03-25 18:06:06 +00001590
wdenkc12081a2004-03-23 20:18:25 +00001591PM828_config \
1592PM828_PCI_config \
1593PM828_ROMBOOT_config \
1594PM828_ROMBOOT_PCI_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001595 @mkdir -p $(obj)include
1596 @mkdir -p $(obj)board/pm826
Marian Balakowicz3d8d1252006-04-05 20:37:11 +02001597 @if [ "$(findstring _PCI_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001598 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
wdenkc12081a2004-03-23 20:18:25 +00001599 fi
1600 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001601 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1602 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
wdenkc12081a2004-03-23 20:18:25 +00001603 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001604 @$(MKCONFIG) -n $@ -a PM828 powerpc mpc8260 pm828
wdenk7ebf7442002-11-02 23:17:16 +00001605
wdenkbc3202a2005-04-03 23:11:38 +00001606Rattler8248_config \
1607Rattler_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001608 @mkdir -p $(obj)include
wdenkbc3202a2005-04-03 23:11:38 +00001609 $(if $(findstring 8248,$@), \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001610 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1611 @$(MKCONFIG) -n $@ -a Rattler powerpc mpc8260 rattler
wdenkbc3202a2005-04-03 23:11:38 +00001612
wdenk874ac262003-07-24 23:38:38 +00001613TQM8255_AA_config \
1614TQM8260_AA_config \
1615TQM8260_AB_config \
1616TQM8260_AC_config \
1617TQM8260_AD_config \
1618TQM8260_AE_config \
1619TQM8260_AF_config \
1620TQM8260_AG_config \
1621TQM8260_AH_config \
Wolfgang Denk47673562006-03-07 00:32:07 +01001622TQM8260_AI_config \
wdenk874ac262003-07-24 23:38:38 +00001623TQM8265_AA_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001624 @mkdir -p $(obj)include
wdenk874ac262003-07-24 23:38:38 +00001625 @case "$@" in \
Wolfgang Denk47673562006-03-07 00:32:07 +01001626 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1627 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1628 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1629 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1630 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1631 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1632 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1633 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1634 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1635 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1636 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
wdenk874ac262003-07-24 23:38:38 +00001637 esac; \
wdenk874ac262003-07-24 23:38:38 +00001638 if [ "$${CTYPE}" != "MPC8260" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001639 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
wdenk874ac262003-07-24 23:38:38 +00001640 fi; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001641 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
Wolfgang Denk111d6062008-01-02 15:54:45 +01001642 if [ "$${CACHE}" = "yes" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001643 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +00001644 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001645 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
wdenk874ac262003-07-24 23:38:38 +00001646 fi; \
Wolfgang Denk111d6062008-01-02 15:54:45 +01001647 if [ "$${BMODE}" = "60x" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001648 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
wdenk874ac262003-07-24 23:38:38 +00001649 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001650 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +00001651 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001652 @$(MKCONFIG) -n $@ -a TQM8260 powerpc mpc8260 tqm8260 tqc
wdenk7ebf7442002-11-02 23:17:16 +00001653
wdenkc28149c2005-05-30 23:55:42 +00001654VoVPN-GW_66MHz_config \
1655VoVPN-GW_100MHz_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001656 @mkdir -p $(obj)include
1657 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +02001658 @$(MKCONFIG) -n $@ -a VoVPN-GW powerpc mpc8260 vovpn-gw funkwerk
wdenkc28149c2005-05-30 23:55:42 +00001659
wdenkabf7a7c2003-12-08 01:34:36 +00001660#########################################################################
1661## Coldfire
1662#########################################################################
1663
Wolfgang Denke24ec722010-05-27 23:18:35 +02001664# generic boards
1665################
1666
1667idmr_config: unconfig
1668 @$(MKCONFIG) $@ m68k mcf52x2 $(call lcname,$@)
1669
1670# vendor specific boards (sorted by vendor)
1671###########################################
1672
1673TASREG_config : unconfig
1674 @$(MKCONFIG) $@ m68k mcf52x2 $(call lcname,$@) esd
1675
1676M5208EVBE_config \
1677M5249EVB_config \
1678M5253DEMO_config \
1679M5253EVBE_config \
1680M5271EVB_config \
1681M5272C3_config \
1682M5275EVB_config \
1683M5282EVB_config \
1684M53017EVB_config: unconfig
1685 @$(MKCONFIG) $@ m68k mcf52x2 $(call lcname,$@) freescale
1686
1687EP2500_config : unconfig
1688 @$(MKCONFIG) $@ m68k mcf52x2 $(call lcname,$@) Mercury
1689
1690# special boards
1691################
1692
Wolfgang Wegner406471c2010-01-25 11:27:44 +01001693astro_mcf5373l_config \
1694astro_mcf5373l_RAM_config : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001695 @$(MKCONFIG) -n $@ -t $@ astro_mcf5373l m68k mcf532x mcf5373l astro
Wolfgang Wegner406471c2010-01-25 11:27:44 +01001696
TsiChung Liew39966e32008-10-21 15:37:02 +00001697M52277EVB_config \
1698M52277EVB_spansion_config \
1699M52277EVB_stmicro_config : unconfig
1700 @case "$@" in \
1701 M52277EVB_config) FLASH=SPANSION;; \
1702 M52277EVB_spansion_config) FLASH=SPANSION;; \
1703 M52277EVB_stmicro_config) FLASH=STMICRO;; \
1704 esac; \
1705 if [ "$${FLASH}" = "SPANSION" ] ; then \
1706 echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \
1707 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1708 cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \
TsiChung Liew39966e32008-10-21 15:37:02 +00001709 fi; \
1710 if [ "$${FLASH}" = "STMICRO" ] ; then \
1711 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1712 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
1713 echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1714 cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \
TsiChung Liew39966e32008-10-21 15:37:02 +00001715 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001716 @$(MKCONFIG) -n $@ -a M52277EVB m68k mcf5227x m52277evb freescale
TsiChungLiew99b037a2008-01-14 17:43:33 -06001717
TsiChungLiewb859ef12007-08-16 19:23:50 -05001718M5235EVB_config \
1719M5235EVB_Flash16_config \
1720M5235EVB_Flash32_config: unconfig
1721 @case "$@" in \
1722 M5235EVB_config) FLASH=16;; \
1723 M5235EVB_Flash16_config) FLASH=16;; \
1724 M5235EVB_Flash32_config) FLASH=32;; \
1725 esac; \
TsiChungLiewb859ef12007-08-16 19:23:50 -05001726 if [ "$${FLASH}" != "16" ] ; then \
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01001727 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
TsiChungLiewb859ef12007-08-16 19:23:50 -05001728 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1729 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1730 else \
1731 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1732 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1733 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001734 @$(MKCONFIG) -n $@ -a M5235EVB m68k mcf523x m5235evb freescale
TsiChungLiewb859ef12007-08-16 19:23:50 -05001735
Wolfgang Denkaaa7c002005-12-12 16:06:05 +01001736cobra5272_config : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001737 @$(MKCONFIG) $@ m68k mcf52x2 cobra5272
Wolfgang Denkaaa7c002005-12-12 16:06:05 +01001738
Wolfgang Denkb4b1c462006-06-10 19:27:47 +02001739EB+MCF-EV123_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001740 @mkdir -p $(obj)include
1741 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001742 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
Wolfgang Denk625bd332010-05-27 23:18:33 +02001743 @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
Wolfgang Denkb4b1c462006-06-10 19:27:47 +02001744
1745EB+MCF-EV123_internal_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001746 @mkdir -p $(obj)include
1747 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001748 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
Wolfgang Denk625bd332010-05-27 23:18:33 +02001749 @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
Wolfgang Denkb4b1c462006-06-10 19:27:47 +02001750
TsiChung Liewf6afe722007-06-18 13:50:13 -05001751M5329AFEE_config \
1752M5329BFEE_config : unconfig
1753 @case "$@" in \
1754 M5329AFEE_config) NAND=0;; \
1755 M5329BFEE_config) NAND=16;; \
1756 esac; \
TsiChung Liewf6afe722007-06-18 13:50:13 -05001757 if [ "$${NAND}" != "0" ] ; then \
TsiChungLiewaedd3d72007-08-15 15:39:17 -05001758 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
TsiChung Liewf6afe722007-06-18 13:50:13 -05001759 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001760 @$(MKCONFIG) -n $@ -a M5329EVB m68k mcf532x m5329evb freescale
TsiChung Liewf6afe722007-06-18 13:50:13 -05001761
TsiChungLiew6f8a0a32008-01-14 17:23:08 -06001762M5373EVB_config : unconfig
1763 @case "$@" in \
1764 M5373EVB_config) NAND=16;; \
1765 esac; \
TsiChungLiew6f8a0a32008-01-14 17:23:08 -06001766 if [ "$${NAND}" != "0" ] ; then \
1767 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1768 fi
1769 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1770
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001771M54451EVB_config \
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001772M54451EVB_stmicro_config : unconfig
1773 @case "$@" in \
TsiChung Liewb78c9882009-06-11 15:39:57 +00001774 M54451EVB_config) FLASH=NOR;; \
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001775 M54451EVB_stmicro_config) FLASH=STMICRO;; \
1776 esac; \
TsiChung Liewb78c9882009-06-11 15:39:57 +00001777 if [ "$${FLASH}" = "NOR" ] ; then \
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001778 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1779 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001780 fi; \
1781 if [ "$${FLASH}" = "STMICRO" ] ; then \
1782 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001783 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001784 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1785 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001786 fi; \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001787 echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001788 @$(MKCONFIG) -n $@ -a M54451EVB m68k mcf5445x m54451evb freescale
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001789
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -05001790M54455EVB_config \
1791M54455EVB_atmel_config \
1792M54455EVB_intel_config \
1793M54455EVB_a33_config \
1794M54455EVB_a66_config \
1795M54455EVB_i33_config \
TsiChung Liew23cf8fd2008-07-23 20:38:53 -05001796M54455EVB_i66_config \
1797M54455EVB_stm33_config : unconfig
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -05001798 @case "$@" in \
1799 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1800 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1801 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1802 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1803 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1804 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1805 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
TsiChung Liew23cf8fd2008-07-23 20:38:53 -05001806 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -05001807 esac; \
Wolfgang Denk111d6062008-01-02 15:54:45 +01001808 if [ "$${FLASH}" = "INTEL" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001809 echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
TsiChungLiewd98a8d62007-10-25 17:16:22 -05001810 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1811 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
TsiChung Liew23cf8fd2008-07-23 20:38:53 -05001812 fi; \
1813 if [ "$${FLASH}" = "ATMEL" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001814 echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \
TsiChungLiewd98a8d62007-10-25 17:16:22 -05001815 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1816 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -05001817 fi; \
TsiChung Liew23cf8fd2008-07-23 20:38:53 -05001818 if [ "$${FLASH}" = "STMICRO" ] ; then \
1819 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001820 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
TsiChung Liew23cf8fd2008-07-23 20:38:53 -05001821 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1822 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
TsiChung Liew23cf8fd2008-07-23 20:38:53 -05001823 fi; \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001824 echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001825 @$(MKCONFIG) -n $@ -a M54455EVB m68k mcf5445x m54455evb freescale
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -05001826
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001827M5475AFE_config \
1828M5475BFE_config \
1829M5475CFE_config \
1830M5475DFE_config \
1831M5475EFE_config \
1832M5475FFE_config \
1833M5475GFE_config : unconfig
1834 @case "$@" in \
1835 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1836 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1837 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1838 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1839 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1840 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1841 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1842 esac; \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001843 echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \
1844 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1845 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001846 if [ "$${RAM1}" != "0" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001847 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001848 fi; \
1849 if [ "$${CODE}" != "0" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001850 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001851 fi; \
1852 if [ "$${VID}" == "1" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001853 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001854 fi; \
1855 if [ "$${USB}" == "1" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001856 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001857 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001858 @$(MKCONFIG) -n $@ -a M5475EVB m68k mcf547x_8x m547xevb freescale
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001859
1860M5485AFE_config \
1861M5485BFE_config \
1862M5485CFE_config \
1863M5485DFE_config \
1864M5485EFE_config \
1865M5485FFE_config \
1866M5485GFE_config \
1867M5485HFE_config : unconfig
1868 @case "$@" in \
1869 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1870 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1871 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1872 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1873 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1874 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1875 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
TsiChungLiew561db012008-01-30 15:08:15 -06001876 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001877 esac; \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001878 echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \
1879 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1880 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001881 if [ "$${RAM1}" != "0" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001882 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001883 fi; \
1884 if [ "$${CODE}" != "0" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001885 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001886 fi; \
1887 if [ "$${VID}" == "1" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001888 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001889 fi; \
1890 if [ "$${USB}" == "1" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001891 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001892 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001893 @$(MKCONFIG) -n $@ -a M5485EVB m68k mcf547x_8x m548xevb freescale
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001894
wdenk7ebf7442002-11-02 23:17:16 +00001895#########################################################################
Eran Liberty9095d4a2005-07-28 10:08:46 -05001896## MPC83xx Systems
1897#########################################################################
1898
Wolfgang Denke24ec722010-05-27 23:18:35 +02001899# generic boards
1900################
1901
1902# vendor specific boards (sorted by vendor)
1903###########################################
1904
1905MPC8323ERDB_config \
1906MPC8349EMDS_config \
1907MPC837XERDB_config: unconfig
1908 @$(MKCONFIG) $@ powerpc mpc83xx $(call lcname,$@) freescale
1909
Heiko Schocher3f8dcb52008-11-20 09:57:47 +01001910kmeter1_config: unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02001911 @$(MKCONFIG) $@ powerpc mpc83xx $(call lcname,$@) keymile
1912
1913MVBLM7_config: unconfig
1914 @$(MKCONFIG) $@ powerpc mpc83xx $(call lcname,$@) matrix_vision
1915
1916TQM834x_config: unconfig
1917 @$(MKCONFIG) $@ powerpc mpc83xx $(call lcname,$@) tqc
1918
1919# special boards
1920################
Heiko Schocher3f8dcb52008-11-20 09:57:47 +01001921
Kim Phillipsffc21c02007-04-25 12:34:38 -05001922MPC8313ERDB_33_config \
Scott Woodb71689b2008-06-30 14:13:28 -05001923MPC8313ERDB_66_config \
1924MPC8313ERDB_NAND_33_config \
1925MPC8313ERDB_NAND_66_config: unconfig
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001926 @mkdir -p $(obj)include
Scott Woodb71689b2008-06-30 14:13:28 -05001927 @mkdir -p $(obj)board/freescale/mpc8313erdb
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01001928 @if [ "$(findstring _33_,$@)" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001929 echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
Kim Phillipsffc21c02007-04-25 12:34:38 -05001930 fi ; \
1931 if [ "$(findstring _66_,$@)" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001932 echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
Scott Woodb71689b2008-06-30 14:13:28 -05001933 fi ; \
1934 if [ "$(findstring _NAND_,$@)" ] ; then \
Kim Phillips44f15e52008-08-25 14:53:09 -05001935 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
Scott Woodb71689b2008-06-30 14:13:28 -05001936 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
Kim Phillipsffc21c02007-04-25 12:34:38 -05001937 fi ;
Nick Spence120097e2008-09-02 15:21:16 -05001938 @if [ "$(findstring _NAND_,$@)" ] ; then \
1939 echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
1940 fi ;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001941 @$(MKCONFIG) -n $@ -a MPC8313ERDB powerpc mpc83xx mpc8313erdb freescale
Kim Phillipsffc21c02007-04-25 12:34:38 -05001942
Anton Vorontsovec821752009-11-24 20:12:12 +03001943MPC8315ERDB_NAND_config \
Dave Liu19b247e2008-01-11 18:48:24 +08001944MPC8315ERDB_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001945 @$(MKCONFIG) -n $@ -t $@ MPC8315ERDB powerpc mpc83xx mpc8315erdb freescale
Dave Liu19b247e2008-01-11 18:48:24 +08001946
Kim Phillips2380d432007-01-24 17:18:37 -06001947MPC832XEMDS_config \
1948MPC832XEMDS_HOST_33_config \
1949MPC832XEMDS_HOST_66_config \
Tony Lic5c40d82007-10-18 17:47:19 +08001950MPC832XEMDS_SLAVE_config \
1951MPC832XEMDS_ATM_config: unconfig
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001952 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01001953 @if [ "$(findstring _HOST_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001954 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
Dave Liua46daea2006-11-03 19:33:44 -06001955 fi ; \
1956 if [ "$(findstring _SLAVE_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001957 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1958 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
Dave Liua46daea2006-11-03 19:33:44 -06001959 fi ; \
1960 if [ "$(findstring _33_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001961 echo "#define PCI_33M" >>$(obj)include/config.h ; \
Tony Lic5c40d82007-10-18 17:47:19 +08001962 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
Dave Liua46daea2006-11-03 19:33:44 -06001963 fi ; \
1964 if [ "$(findstring _66_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001965 echo "#define PCI_66M" >>$(obj)include/config.h ; \
Tony Lic5c40d82007-10-18 17:47:19 +08001966 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1967 fi ; \
1968 if [ "$(findstring _ATM_,$@)" ] ; then \
Tony Lic5c40d82007-10-18 17:47:19 +08001969 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
Wolfgang Denk19b68c42008-03-04 14:58:31 +01001970 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
Dave Liua46daea2006-11-03 19:33:44 -06001971 fi ;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001972 @$(MKCONFIG) -n $@ -a MPC832XEMDS powerpc mpc83xx mpc832xemds freescale
Marian Balakowicz513b4a12005-10-11 19:09:42 +02001973
Timur Tabi435e3a72007-01-31 15:54:29 -06001974MPC8349ITX_config \
1975MPC8349ITX_LOWBOOT_config \
1976MPC8349ITXGP_config: unconfig
1977 @mkdir -p $(obj)include
Sam Sparksb9e9a372007-09-14 11:14:42 -06001978 @mkdir -p $(obj)board/freescale/mpc8349itx
Timur Tabi435e3a72007-01-31 15:54:29 -06001979 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1980 @if [ "$(findstring GP,$@)" ] ; then \
Sam Sparksb9e9a372007-09-14 11:14:42 -06001981 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
Timur Tabi435e3a72007-01-31 15:54:29 -06001982 fi
1983 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
Sam Sparksb9e9a372007-09-14 11:14:42 -06001984 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
Timur Tabi435e3a72007-01-31 15:54:29 -06001985 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001986 @$(MKCONFIG) -n $@ -a MPC8349ITX powerpc mpc83xx mpc8349itx freescale
Timur Tabi054838e2006-10-31 18:44:42 -06001987
Marian Balakowiczd7a3f722006-03-14 16:24:38 +01001988MPC8360EMDS_config \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001989MPC8360EMDS_HOST_33_config \
Marian Balakowiczd7a3f722006-03-14 16:24:38 +01001990MPC8360EMDS_HOST_66_config \
Tony Lic5c40d82007-10-18 17:47:19 +08001991MPC8360EMDS_SLAVE_config \
1992MPC8360EMDS_ATM_config: unconfig
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001993 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01001994 @if [ "$(findstring _HOST_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001995 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001996 fi ; \
wdenk9c53f402003-10-15 23:53:47 +00001997 if [ "$(findstring _SLAVE_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001998 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1999 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
Lunsheng Wang61e61952005-07-29 10:20:29 -05002000 fi ; \
2001 if [ "$(findstring _33_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02002002 echo "#define PCI_33M" >>$(obj)include/config.h ; \
Tony Lic5c40d82007-10-18 17:47:19 +08002003 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
Lunsheng Wang61e61952005-07-29 10:20:29 -05002004 fi ; \
2005 if [ "$(findstring _66_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02002006 echo "#define PCI_66M" >>$(obj)include/config.h ; \
Tony Lic5c40d82007-10-18 17:47:19 +08002007 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
2008 fi ; \
2009 if [ "$(findstring _ATM_,$@)" ] ; then \
Tony Lic5c40d82007-10-18 17:47:19 +08002010 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
Wolfgang Denk19b68c42008-03-04 14:58:31 +01002011 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
Lunsheng Wang61e61952005-07-29 10:20:29 -05002012 fi ;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002013 @$(MKCONFIG) -n $@ -a MPC8360EMDS powerpc mpc83xx mpc8360emds freescale
Lunsheng Wang61e61952005-07-29 10:20:29 -05002014
Anton Vorontsovb6678de2008-01-09 20:57:47 +03002015MPC8360ERDK_33_config \
2016MPC8360ERDK_66_config \
Jean-Christophe PLAGNIOL-VILLARDca0350e2008-03-02 16:12:31 +01002017MPC8360ERDK_config: unconfig
Anton Vorontsovb6678de2008-01-09 20:57:47 +03002018 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01002019 @if [ "$(findstring _33_,$@)" ] ; then \
Anton Vorontsovb6678de2008-01-09 20:57:47 +03002020 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
2021 fi ;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002022 @$(MKCONFIG) -n $@ -a MPC8360ERDK powerpc mpc83xx mpc8360erdk freescale
Anton Vorontsovb6678de2008-01-09 20:57:47 +03002023
Dave Liub19ecd32007-09-18 12:37:57 +08002024MPC837XEMDS_config \
2025MPC837XEMDS_HOST_config: unconfig
2026 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01002027 @if [ "$(findstring _HOST_,$@)" ] ; then \
Dave Liub19ecd32007-09-18 12:37:57 +08002028 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
2029 fi ;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002030 @$(MKCONFIG) -n $@ -a MPC837XEMDS powerpc mpc83xx mpc837xemds freescale
Dave Liub19ecd32007-09-18 12:37:57 +08002031
Paul Gortmaker0aaee142009-08-21 16:21:58 -05002032sbc8349_config \
2033sbc8349_PCI_33_config \
2034sbc8349_PCI_66_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002035 @$(MKCONFIG) -n $@ -t $@ sbc8349 powerpc mpc83xx sbc8349
Kim Phillips2380d432007-01-24 17:18:37 -06002036
Ron Madrid9ff89b72009-01-22 15:05:24 -08002037SIMPC8313_LP_config \
2038SIMPC8313_SP_config: unconfig
2039 @mkdir -p $(obj)include
2040 @mkdir -p $(obj)board/sheldon/simpc8313
2041 @if [ "$(findstring _LP_,$@)" ] ; then \
Ron Madrid9ff89b72009-01-22 15:05:24 -08002042 echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \
2043 fi ; \
2044 if [ "$(findstring _SP_,$@)" ] ; then \
Ron Madrid9ff89b72009-01-22 15:05:24 -08002045 echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \
2046 fi ;
Ron Madrid9ff89b72009-01-22 15:05:24 -08002047 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denk625bd332010-05-27 23:18:33 +02002048 @$(MKCONFIG) -n $@ -a SIMPC8313 powerpc mpc83xx simpc8313 sheldon
Ron Madrid9ff89b72009-01-22 15:05:24 -08002049
Reinhard Arlt63881352009-12-08 09:13:08 +01002050caddy2_config \
Reinhard Arlt46911792009-07-25 06:19:12 +02002051vme8349_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002052 @$(MKCONFIG) -n $@ -t $@ vme8349 powerpc mpc83xx vme8349 esd
Lunsheng Wang61e61952005-07-29 10:20:29 -05002053
2054#########################################################################
2055## MPC85xx Systems
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002056#########################################################################
Lunsheng Wang61e61952005-07-29 10:20:29 -05002057
Wolfgang Denke24ec722010-05-27 23:18:35 +02002058# generic boards
2059################
2060
2061ATUM8548_config \
2062PM854_config \
2063PM856_config \
2064socrates_config: unconfig
2065 @$(MKCONFIG) $@ powerpc mpc85xx $(call lcname,$@)
2066
2067# vendor specific boards (sorted by vendor)
2068###########################################
2069
2070MPC8540ADS_config \
2071MPC8560ADS_config \
2072MPC8544DS_config \
2073MPC8568MDS_config: unconfig
2074 @$(MKCONFIG) $@ powerpc mpc85xx $(call lcname,$@) freescale
2075
2076stxgp3_config: unconfig
2077 @$(MKCONFIG) $@ powerpc mpc85xx $(call lcname,$@) stx
2078
2079XPEDITE5200_config \
2080XPEDITE5370_config: unconfig
2081 @$(MKCONFIG) $@ powerpc mpc85xx $(call lcname,$@) xes
robert lazarskia36f5552007-12-21 10:36:37 -05002082
Wolfgang Denke24ec722010-05-27 23:18:35 +02002083# special boards
2084################
Mingkai Huc2a6dca2009-09-23 15:20:37 +08002085MPC8536DS_NAND_config \
Mingkai Hua74e3952009-09-23 15:20:38 +08002086MPC8536DS_SDCARD_config \
2087MPC8536DS_SPIFLASH_config \
Kumar Galaee1ca7e2009-07-30 15:54:07 -05002088MPC8536DS_36BIT_config \
Kumar Galafd83aa82008-07-25 13:31:05 -05002089MPC8536DS_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002090 @$(MKCONFIG) -n $@ -t $@ MPC8536DS powerpc mpc85xx mpc8536ds freescale
Kumar Galafd83aa82008-07-25 13:31:05 -05002091
wdenk9c53f402003-10-15 23:53:47 +00002092MPC8540EVAL_config \
2093MPC8540EVAL_33_config \
2094MPC8540EVAL_66_config \
2095MPC8540EVAL_33_slave_config \
Wolfgang Denk625bd332010-05-27 23:18:33 +02002096MPC8540EVAL_66_slave_config: unconfig
wdenk9c53f402003-10-15 23:53:47 +00002097 @mkdir -p $(obj)include
Wolfgang Denk625bd332010-05-27 23:18:33 +02002098 @if [ -z "$(findstring _33_,$@)" ] ; then \
wdenk7ebf7442002-11-02 23:17:16 +00002099 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
wdenk452cfd62002-11-19 11:04:11 +00002100 fi ; \
2101 if [ "$(findstring _slave_,$@)" ] ; then \
2102 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
wdenk9f837932003-10-09 19:00:25 +00002103 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02002104 @$(MKCONFIG) -n $@ -a MPC8540EVAL powerpc mpc85xx mpc8540eval
wdenk9f837932003-10-09 19:00:25 +00002105
Randy Vinson1dfd6d92007-02-27 19:42:22 -07002106MPC8541CDS_legacy_config \
wdenk0aeb8532004-10-10 21:21:55 +00002107MPC8541CDS_config: unconfig
Randy Vinson1dfd6d92007-02-27 19:42:22 -07002108 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01002109 @if [ "$(findstring _legacy_,$@)" ] ; then \
Randy Vinson1dfd6d92007-02-27 19:42:22 -07002110 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
Randy Vinson1dfd6d92007-02-27 19:42:22 -07002111 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02002112 @$(MKCONFIG) -n $@ -a MPC8541CDS powerpc mpc85xx mpc8541cds freescale
wdenk0aeb8532004-10-10 21:21:55 +00002113
Randy Vinson1dfd6d92007-02-27 19:42:22 -07002114MPC8548CDS_legacy_config \
Jon Loeliger77a4f6e2005-07-25 14:05:07 -05002115MPC8548CDS_config: unconfig
Randy Vinson1dfd6d92007-02-27 19:42:22 -07002116 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01002117 @if [ "$(findstring _legacy_,$@)" ] ; then \
Randy Vinson1dfd6d92007-02-27 19:42:22 -07002118 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
Randy Vinson1dfd6d92007-02-27 19:42:22 -07002119 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02002120 @$(MKCONFIG) -n $@ -a MPC8548CDS powerpc mpc85xx mpc8548cds freescale
Jon Loeliger77a4f6e2005-07-25 14:05:07 -05002121
Randy Vinson1dfd6d92007-02-27 19:42:22 -07002122MPC8555CDS_legacy_config \
wdenk0aeb8532004-10-10 21:21:55 +00002123MPC8555CDS_config: unconfig
Randy Vinson1dfd6d92007-02-27 19:42:22 -07002124 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01002125 @if [ "$(findstring _legacy_,$@)" ] ; then \
Randy Vinson1dfd6d92007-02-27 19:42:22 -07002126 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
Randy Vinson1dfd6d92007-02-27 19:42:22 -07002127 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02002128 @$(MKCONFIG) -n $@ -a MPC8555CDS powerpc mpc85xx mpc8555cds freescale
wdenk78924a72004-04-18 21:45:42 +00002129
Liu Yu06f0ebe2009-11-27 15:31:52 +08002130MPC8569MDS_ATM_config \
Liu Yu2639e512010-01-18 19:03:28 +08002131MPC8569MDS_NAND_config \
Haiying Wangbd255372009-03-27 17:02:45 -04002132MPC8569MDS_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002133 @$(MKCONFIG) -n $@ -t $@ MPC8569MDS powerpc mpc85xx mpc8569mds freescale
Haiying Wangbd255372009-03-27 17:02:45 -04002134
Kumar Galae0f97412009-01-23 14:22:14 -06002135MPC8572DS_36BIT_config \
Kumar Gala3ab0b2d2008-08-12 11:13:08 -05002136MPC8572DS_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002137 @$(MKCONFIG) -n $@ -t $@ MPC8572DS powerpc mpc85xx mpc8572ds freescale
Kumar Gala3ab0b2d2008-08-12 11:13:08 -05002138
Srikanth Srinivasan949a2d52009-04-03 15:36:13 -05002139P2020DS_36BIT_config \
2140P2020DS_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002141 @$(MKCONFIG) -n $@ -t $@ P2020DS powerpc mpc85xx p2020ds freescale
Srikanth Srinivasan949a2d52009-04-03 15:36:13 -05002142
Kumar Gala5b62efc2009-09-10 16:31:53 -05002143P1011RDB_config \
Dipen Dudhate98a3fc2009-10-08 13:33:18 +05302144P1011RDB_NAND_config \
Dipen Dudhat529e5fd2009-10-08 13:33:29 +05302145P1011RDB_SDCARD_config \
2146P1011RDB_SPIFLASH_config \
Kumar Gala5b62efc2009-09-10 16:31:53 -05002147P1020RDB_config \
Dipen Dudhate98a3fc2009-10-08 13:33:18 +05302148P1020RDB_NAND_config \
Dipen Dudhat529e5fd2009-10-08 13:33:29 +05302149P1020RDB_SDCARD_config \
2150P1020RDB_SPIFLASH_config \
Kumar Gala5b62efc2009-09-10 16:31:53 -05002151P2010RDB_config \
Dipen Dudhate98a3fc2009-10-08 13:33:18 +05302152P2010RDB_NAND_config \
Dipen Dudhat529e5fd2009-10-08 13:33:29 +05302153P2010RDB_SDCARD_config \
2154P2010RDB_SPIFLASH_config \
Dipen Dudhate98a3fc2009-10-08 13:33:18 +05302155P2020RDB_config \
Dipen Dudhat529e5fd2009-10-08 13:33:29 +05302156P2020RDB_NAND_config \
2157P2020RDB_SDCARD_config \
2158P2020RDB_SPIFLASH_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002159 @$(MKCONFIG) -n $@ -t $@ P1_P2_RDB powerpc mpc85xx p1_p2_rdb freescale
Poonam Aggrwal987862c2009-08-05 13:29:24 +05302160
wdenkadf849c2004-10-10 22:44:24 +00002161sbc8540_config \
2162sbc8540_33_config \
2163sbc8540_66_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002164 @$(MKCONFIG) -n $@ -t $@ SBC8540 powerpc mpc85xx sbc8560
wdenkadf849c2004-10-10 22:44:24 +00002165
Paul Gortmakerf5c69a52009-09-20 20:36:06 -04002166sbc8548_config \
2167sbc8548_PCI_33_config \
2168sbc8548_PCI_66_config \
2169sbc8548_PCI_33_PCIE_config \
2170sbc8548_PCI_66_PCIE_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002171 @$(MKCONFIG) -n $@ -t $@ sbc8548 powerpc mpc85xx sbc8548
Joe Hammanccefae42007-12-13 06:45:08 -06002172
wdenk265d2172004-07-10 22:35:59 +00002173sbc8560_config \
2174sbc8560_33_config \
Wolfgang Denk19b68c42008-03-04 14:58:31 +01002175sbc8560_66_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002176 @$(MKCONFIG) -n $@ -t $@ sbc8560 powerpc mpc85xx sbc8560
wdenk3203c8f2004-07-10 21:45:47 +00002177
Wolfgang Denk5b9a5d82007-05-31 17:20:09 +02002178stxssa_config \
2179stxssa_4M_config: unconfig
2180 @mkdir -p $(obj)include
2181 @if [ "$(findstring _4M_,$@)" ] ; then \
2182 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
Wolfgang Denk5b9a5d82007-05-31 17:20:09 +02002183 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02002184 @$(MKCONFIG) -n $@ -a stxssa powerpc mpc85xx stxssa stx
Dan Malek6acf0482007-01-05 09:15:34 +01002185
Stefan Roese09554022005-11-30 13:06:40 +01002186TQM8540_config \
2187TQM8541_config \
Wolfgang Grandegger328c6ec2008-06-05 13:12:07 +02002188TQM8548_config \
Wolfgang Grandegger7ebcfec2009-02-11 18:38:22 +01002189TQM8548_AG_config \
Wolfgang Grandeggere85bbc62009-02-11 18:38:21 +01002190TQM8548_BE_config \
Stefan Roese09554022005-11-30 13:06:40 +01002191TQM8555_config \
2192TQM8560_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002193 @mkdir -p $(obj)include
Wolfgang Grandeggere85bbc62009-02-11 18:38:21 +01002194 @BTYPE=$(@:_config=); \
Wolfgang Grandegger7ebcfec2009-02-11 18:38:22 +01002195 CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002196 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
Wolfgang Grandeggere85bbc62009-02-11 18:38:21 +01002197 echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002198 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
Wolfgang Grandeggere85bbc62009-02-11 18:38:21 +01002199 echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h;
Wolfgang Grandeggere85bbc62009-02-11 18:38:21 +01002200 @echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002201 @$(MKCONFIG) -n $@ -a TQM85xx powerpc mpc85xx tqm85xx tqc
wdenk8e5263c2005-04-05 16:26:47 +00002202
wdenk9f837932003-10-09 19:00:25 +00002203#########################################################################
Jon Loeliger5c8aa972006-04-26 17:58:56 -05002204## MPC86xx Systems
2205#########################################################################
2206
Wolfgang Denke24ec722010-05-27 23:18:35 +02002207# generic boards
2208################
2209
2210sbc8641d_config: unconfig
2211 @$(MKCONFIG) $@ powerpc mpc86xx $(call lcname,$@)
2212
2213# vendor specific boards (sorted by vendor)
2214###########################################
2215
Jon Loeligeredf4bc62007-10-16 15:27:43 -05002216MPC8610HPCD_config: unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02002217 @$(MKCONFIG) $@ powerpc mpc86xx $(call lcname,$@) freescale
2218
2219XPEDITE5170_config: unconfig
2220 @$(MKCONFIG) $@ powerpc mpc86xx $(call lcname,$@) xes
2221
2222# special boards
2223################
Jon Loeligeredf4bc62007-10-16 15:27:43 -05002224
Becky Brucef4a865c2008-11-06 13:04:09 -06002225MPC8641HPCN_36BIT_config \
Jon Loeliger5c8aa972006-04-26 17:58:56 -05002226MPC8641HPCN_config: unconfig
Becky Brucef4a865c2008-11-06 13:04:09 -06002227 @mkdir -p $(obj)include
2228 @if [ "$(findstring _36BIT_,$@)" ] ; then \
2229 echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
Becky Brucef4a865c2008-11-06 13:04:09 -06002230 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02002231 @$(MKCONFIG) -n $@ -a MPC8641HPCN powerpc mpc86xx mpc8641hpcn freescale
Jon Loeliger5c8aa972006-04-26 17:58:56 -05002232
Jon Loeliger5c8aa972006-04-26 17:58:56 -05002233#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00002234## 74xx/7xx Systems
2235#########################################################################
2236
Wolfgang Denke24ec722010-05-27 23:18:35 +02002237# generic boards
2238################
wdenk7ebf7442002-11-02 23:17:16 +00002239
Wolfgang Denke24ec722010-05-27 23:18:35 +02002240ppmc7xx_config: unconfig
2241 @$(MKCONFIG) $@ powerpc 74xx_7xx $(call lcname,$@)
2242
2243# vendor specific boards (sorted by vendor)
2244###########################################
2245
2246BAB7xx_config \
2247ELPPC_config: unconfig
2248 @$(MKCONFIG) $@ powerpc 74xx_7xx $(call lcname,$@) eltec
wdenk9f837932003-10-09 19:00:25 +00002249
Wolfgang Denkba930932007-10-21 01:01:17 +02002250CPCI750_config: unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02002251 @$(MKCONFIG) $@ powerpc 74xx_7xx $(call lcname,$@) esd
2252
2253mpc7448hpc2_config: unconfig
2254 @$(MKCONFIG) $@ powerpc 74xx_7xx $(call lcname,$@) freescale
stroese05b88912004-12-16 18:44:40 +00002255
Wolfgang Denke24ec722010-05-27 23:18:35 +02002256AmigaOneG3SE_config: unconfig
2257 @$(MKCONFIG) $@ powerpc 74xx_7xx $(@:_config=) MAI
wdenk5da7f2f2004-01-03 00:43:19 +00002258
Wolfgang Denke24ec722010-05-27 23:18:35 +02002259DB64360_config \
Wolfgang Denkba930932007-10-21 01:01:17 +02002260DB64460_config: unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02002261 @$(MKCONFIG) $@ powerpc 74xx_7xx $(call lcname,$@) Marvell
wdenk5da7f2f2004-01-03 00:43:19 +00002262
Wolfgang Denke24ec722010-05-27 23:18:35 +02002263# special boards
2264################
wdenk9f837932003-10-09 19:00:25 +00002265
wdenk7ebf7442002-11-02 23:17:16 +00002266EVB64260_config \
2267EVB64260_750CX_config: unconfig
Wolfgang Denk625bd332010-05-27 23:18:33 +02002268 @$(MKCONFIG) -n $@ EVB64260 powerpc 74xx_7xx evb64260
wdenk7ebf7442002-11-02 23:17:16 +00002269
wdenk9f837932003-10-09 19:00:25 +00002270P3G4_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002271 @$(MKCONFIG) $@ powerpc 74xx_7xx evb64260
wdenk7ebf7442002-11-02 23:17:16 +00002272
Stefan Roese45993ea2006-11-29 15:42:37 +01002273p3m750_config \
2274p3m7448_config: unconfig
2275 @mkdir -p $(obj)include
2276 @if [ "$(findstring 750_,$@)" ] ; then \
2277 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
2278 else \
2279 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
2280 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02002281 @$(MKCONFIG) -n $@ -a p3mx powerpc 74xx_7xx p3mx prodrive
Stefan Roese45993ea2006-11-29 15:42:37 +01002282
wdenk7ebf7442002-11-02 23:17:16 +00002283PCIPPC2_config \
2284PCIPPC6_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002285 @$(MKCONFIG) -n $@ $@ powerpc 74xx_7xx pcippc2
wdenk7ebf7442002-11-02 23:17:16 +00002286
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002287ZUMA_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002288 @$(MKCONFIG) $@ powerpc 74xx_7xx evb64260
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002289
wdenk7ebf7442002-11-02 23:17:16 +00002290#========================================================================
2291# ARM
2292#========================================================================
2293#########################################################################
2294## StrongARM Systems
2295#########################################################################
2296
Wolfgang Denke24ec722010-05-27 23:18:35 +02002297# generic boards
2298################
2299assabet_config \
2300dnp1110_config \
2301gcplus_config \
2302lart_config \
wdenk7ebf7442002-11-02 23:17:16 +00002303shannon_config : unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02002304 @$(MKCONFIG) $@ arm sa1100 $(call lcname,$@)
wdenk7ebf7442002-11-02 23:17:16 +00002305
2306#########################################################################
wdenkf6f96f72003-07-15 20:04:06 +00002307## ARM92xT Systems
wdenk7ebf7442002-11-02 23:17:16 +00002308#########################################################################
2309
Wolfgang Denke24ec722010-05-27 23:18:35 +02002310# generic boards
2311################
2312
2313edb9301_config \
2314edb9302_config \
2315edb9302a_config \
2316edb9307_config \
2317edb9307a_config \
2318edb9312_config \
2319edb9315_config \
2320edb9315a_config: unconfig
2321 @$(MKCONFIG) -n $@ -t $@ edb93xx arm arm920t edb93xx NULL ep93xx
2322
2323mx1ads_config \
2324mx1fs2_config : unconfig
2325 @$(MKCONFIG) $@ arm arm920t $(call lcname,$@) NULL imx
2326
2327sbc2410x_config: unconfig
2328 @$(MKCONFIG) $@ arm arm920t $(call lcname,$@) NULL s3c24x0
2329
2330scb9328_config : unconfig
2331 @$(MKCONFIG) $@ arm arm920t $(call lcname,$@) NULL imx
2332
2333cm4008_config \
2334cm41xx_config : unconfig
2335 @$(MKCONFIG) $@ arm arm920t $(call lcname,$@) NULL ks8695
2336
2337netstar_config \
2338voiceblue_config: unconfig
2339 @$(MKCONFIG) $@ arm arm925t $(call lcname,$@)
2340
2341# vendor specific boards (sorted by vendor)
2342###########################################
2343
Po-Yu Chuang5614a4d2009-11-11 17:27:30 +08002344a320evb_config : unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02002345 @$(MKCONFIG) $@ arm arm920t $(call lcname,$@) faraday a320
2346
2347smdk2400_config \
2348smdk2410_config : unconfig
2349 @$(MKCONFIG) $@ arm arm920t $(call lcname,$@) samsung s3c24x0
Po-Yu Chuang5614a4d2009-11-11 17:27:30 +08002350
Ulf Samuelsson1c5fdbf2008-04-12 20:56:03 +02002351#########################################################################
2352## Atmel AT91RM9200 Systems
2353#########################################################################
Stelian Pop6c939742008-01-20 19:49:21 +00002354
Wolfgang Denke24ec722010-05-27 23:18:35 +02002355# generic boards
2356################
2357
2358cmc_pu2_config \
2359csb637_config \
2360kb9202_config \
2361m501sk_config \
2362mp2usb_config : unconfig
2363 @$(MKCONFIG) $@ arm arm920t $(call lcname,$@) NULL at91rm9200
2364
2365# vendor specific boards (sorted by vendor)
2366###########################################
wdenk91fcc952005-04-06 13:52:31 +00002367
Wolfgang Denke24ec722010-05-27 23:18:35 +02002368at91rm9200dk_config \
Ulf Samuelsson07f9b4e2009-03-27 23:26:43 +01002369at91rm9200ek_config : unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02002370 @$(MKCONFIG) $@ arm arm920t $(call lcname,$@) atmel at91rm9200
2371
2372eb_cpux9k2_config : unconfig
2373 @$(MKCONFIG) $@ arm arm920t $(call lcname,$@) BuS at91
2374
2375omap1510inn_config : unconfig
2376 @$(MKCONFIG) $@ arm arm925t $(call lcname,$@) ti
Ulf Samuelsson07f9b4e2009-03-27 23:26:43 +01002377
Wolfgang Denke24ec722010-05-27 23:18:35 +02002378# special boards
2379################
wdenk91fcc952005-04-06 13:52:31 +00002380
Tom Rix3db7af72009-09-27 07:47:24 -05002381CPUAT91_RAM_config \
2382CPUAT91_config : unconfig
2383 @mkdir -p $(obj)include
2384 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +02002385 @$(MKCONFIG) -n $@ -a cpuat91 arm arm920t cpuat91 eukrea at91rm9200
Tom Rix3db7af72009-09-27 07:47:24 -05002386
Ulf Samuelsson1c5fdbf2008-04-12 20:56:03 +02002387#########################################################################
Matthias Weisseraea03572010-01-18 10:58:13 +01002388## ARM926EJ-S Systems
Ulf Samuelsson1c5fdbf2008-04-12 20:56:03 +02002389#########################################################################
2390
Wolfgang Denke24ec722010-05-27 23:18:35 +02002391# generic boards
2392################
2393
Sergey Lapin77e524c2008-10-31 12:28:43 +01002394afeb9260_config: unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02002395 @$(MKCONFIG) $@ arm arm926ejs $(call lcname,$@) NULL at91
2396
2397# vendor specific boards (sorted by vendor)
2398###########################################
Sergey Lapin77e524c2008-10-31 12:28:43 +01002399
Ulf Samuelsson1c5fdbf2008-04-12 20:56:03 +02002400at91cap9adk_config : unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02002401 @$(MKCONFIG) $@ arm arm926ejs $(call lcname,$@) atmel at91
2402
2403meesc_config \
2404otc570_config : unconfig
2405 @$(MKCONFIG) $@ arm arm926ejs $(call lcname,$@) esd at91
2406
2407guruplug_config \
2408mv88f6281gtw_ge_config \
2409openrd_base_config \
2410rd6281a_config \
2411sheevaplug_config: unconfig
2412 @$(MKCONFIG) $@ arm arm926ejs $(call lcname,$@) Marvell kirkwood
2413
2414VCMA9_config : unconfig
2415 @$(MKCONFIG) $@ arm arm920t $(call lcname,$@) mpl s3c24x0
2416
2417pm9261_config \
2418pm9263_config : unconfig
2419 @$(MKCONFIG) $@ arm arm926ejs $(call lcname,$@) ronetix at91
2420
2421omap5912osk_config : unconfig
2422 @$(MKCONFIG) $@ arm arm926ejs $(call lcname,$@) ti omap
2423
2424# special boards
2425################
Ulf Samuelsson1c5fdbf2008-04-12 20:56:03 +02002426
Nicolas Ferre09e10902008-12-06 13:11:14 +01002427at91sam9260ek_nandflash_config \
2428at91sam9260ek_dataflash_cs0_config \
2429at91sam9260ek_dataflash_cs1_config \
Nicolas Ferre4ef545e2009-03-22 14:48:16 +01002430at91sam9260ek_config \
2431at91sam9g20ek_nandflash_config \
2432at91sam9g20ek_dataflash_cs0_config \
2433at91sam9g20ek_dataflash_cs1_config \
2434at91sam9g20ek_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDe7f5aab2009-01-03 17:22:24 +01002435 @mkdir -p $(obj)include
Nicolas Ferre4ef545e2009-03-22 14:48:16 +01002436 @if [ "$(findstring 9g20,$@)" ] ; then \
2437 echo "#define CONFIG_AT91SAM9G20EK 1" >>$(obj)include/config.h ; \
Nicolas Ferre4ef545e2009-03-22 14:48:16 +01002438 else \
2439 echo "#define CONFIG_AT91SAM9260EK 1" >>$(obj)include/config.h ; \
2440 fi;
Nicolas Ferre09e10902008-12-06 13:11:14 +01002441 @if [ "$(findstring _nandflash,$@)" ] ; then \
2442 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01002443 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
2444 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01002445 else \
2446 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01002447 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002448 @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
Ulf Samuelsson1c5fdbf2008-04-12 20:56:03 +02002449
Nicolas Ferreca5bfc12009-01-06 21:13:14 +01002450at91sam9xeek_nandflash_config \
2451at91sam9xeek_dataflash_cs0_config \
2452at91sam9xeek_dataflash_cs1_config \
2453at91sam9xeek_config : unconfig
2454 @mkdir -p $(obj)include
2455 @if [ "$(findstring _nandflash,$@)" ] ; then \
2456 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferreca5bfc12009-01-06 21:13:14 +01002457 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
2458 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
Nicolas Ferreca5bfc12009-01-06 21:13:14 +01002459 else \
2460 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
Nicolas Ferreca5bfc12009-01-06 21:13:14 +01002461 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002462 @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
Nicolas Ferreca5bfc12009-01-06 21:13:14 +01002463
Nicolas Ferre09e10902008-12-06 13:11:14 +01002464at91sam9261ek_nandflash_config \
2465at91sam9261ek_dataflash_cs0_config \
2466at91sam9261ek_dataflash_cs3_config \
Sedji Gaouaou97a031b2009-06-25 17:04:15 +02002467at91sam9261ek_config \
2468at91sam9g10ek_nandflash_config \
2469at91sam9g10ek_dataflash_cs0_config \
2470at91sam9g10ek_dataflash_cs3_config \
2471at91sam9g10ek_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDe7f5aab2009-01-03 17:22:24 +01002472 @mkdir -p $(obj)include
Sedji Gaouaou97a031b2009-06-25 17:04:15 +02002473 @if [ "$(findstring 9g10,$@)" ] ; then \
2474 echo "#define CONFIG_AT91SAM9G10EK 1" >>$(obj)include/config.h ; \
Sedji Gaouaou97a031b2009-06-25 17:04:15 +02002475 else \
2476 echo "#define CONFIG_AT91SAM9261EK 1" >>$(obj)include/config.h ; \
2477 fi;
Nicolas Ferre09e10902008-12-06 13:11:14 +01002478 @if [ "$(findstring _nandflash,$@)" ] ; then \
2479 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Sedji Gaouaou97a031b2009-06-25 17:04:15 +02002480 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
Nicolas Ferre09e10902008-12-06 13:11:14 +01002481 echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01002482 else \
2483 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01002484 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002485 @$(MKCONFIG) -n $@ -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91
Jean-Christophe PLAGNIOL-VILLARDc804eb22008-11-01 10:47:59 +01002486
Jean-Christophe PLAGNIOL-VILLARD32774732009-06-13 12:48:36 +02002487at91sam9263ek_norflash_config \
2488at91sam9263ek_norflash_boot_config \
Nicolas Ferre09e10902008-12-06 13:11:14 +01002489at91sam9263ek_nandflash_config \
2490at91sam9263ek_dataflash_config \
2491at91sam9263ek_dataflash_cs0_config \
Jean-Christophe PLAGNIOL-VILLARDc804eb22008-11-01 10:47:59 +01002492at91sam9263ek_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDe7f5aab2009-01-03 17:22:24 +01002493 @mkdir -p $(obj)include
Nicolas Ferre09e10902008-12-06 13:11:14 +01002494 @if [ "$(findstring _nandflash,$@)" ] ; then \
2495 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD32774732009-06-13 12:48:36 +02002496 elif [ "$(findstring norflash,$@)" ] ; then \
2497 echo "#define CONFIG_SYS_USE_NORFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01002498 else \
2499 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01002500 fi;
Jean-Christophe PLAGNIOL-VILLARD32774732009-06-13 12:48:36 +02002501 @if [ "$(findstring norflash_boot,$@)" ] ; then \
2502 echo "#define CONFIG_SYS_USE_BOOT_NORFLASH 1" >>$(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD32774732009-06-13 12:48:36 +02002503 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002504 @$(MKCONFIG) -n $@ -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91
Jean-Christophe PLAGNIOL-VILLARDc804eb22008-11-01 10:47:59 +01002505
Nicolas Ferre09e10902008-12-06 13:11:14 +01002506at91sam9rlek_nandflash_config \
2507at91sam9rlek_dataflash_config \
2508at91sam9rlek_dataflash_cs0_config \
Jean-Christophe PLAGNIOL-VILLARDc804eb22008-11-01 10:47:59 +01002509at91sam9rlek_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDe7f5aab2009-01-03 17:22:24 +01002510 @mkdir -p $(obj)include
Nicolas Ferre09e10902008-12-06 13:11:14 +01002511 @if [ "$(findstring _nandflash,$@)" ] ; then \
2512 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01002513 else \
2514 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01002515 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002516 @$(MKCONFIG) -n $@ -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
Jean-Christophe PLAGNIOL-VILLARDc804eb22008-11-01 10:47:59 +01002517
Tom Rix799a05b2009-09-27 11:10:09 -05002518CPU9G20_128M_config \
2519CPU9G20_config \
2520CPU9260_128M_config \
2521CPU9260_config : unconfig
2522 @mkdir -p $(obj)include
2523 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +02002524 @$(MKCONFIG) -n $@ -a cpu9260 arm arm926ejs cpu9260 eukrea at91
Tom Rix799a05b2009-09-27 11:10:09 -05002525
Sedji Gaouaou538566d2009-07-09 10:16:29 +02002526at91sam9m10g45ek_nandflash_config \
2527at91sam9m10g45ek_dataflash_config \
2528at91sam9m10g45ek_dataflash_cs0_config \
2529at91sam9m10g45ek_config \
2530at91sam9g45ekes_nandflash_config \
2531at91sam9g45ekes_dataflash_config \
2532at91sam9g45ekes_dataflash_cs0_config \
2533at91sam9g45ekes_config : unconfig
2534 @mkdir -p $(obj)include
2535 @if [ "$(findstring 9m10,$@)" ] ; then \
2536 echo "#define CONFIG_AT91SAM9M10G45EK 1" >>$(obj)include/config.h ; \
Sedji Gaouaou538566d2009-07-09 10:16:29 +02002537 else \
2538 echo "#define CONFIG_AT91SAM9G45EKES 1" >>$(obj)include/config.h ; \
2539 fi;
Sedji Gaouaou538566d2009-07-09 10:16:29 +02002540 @if [ "$(findstring _nandflash,$@)" ] ; then \
2541 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Sedji Gaouaou538566d2009-07-09 10:16:29 +02002542 else \
2543 echo "#define CONFIG_ATMEL_SPI 1" >>$(obj)include/config.h ; \
Sedji Gaouaou538566d2009-07-09 10:16:29 +02002544 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002545 @$(MKCONFIG) -n $@ -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91
Sedji Gaouaou538566d2009-07-09 10:16:29 +02002546
Albin Tonnerre4f572d82009-08-24 18:03:26 +02002547SBC35_A9G20_NANDFLASH_config \
2548SBC35_A9G20_EEPROM_config \
2549SBC35_A9G20_config : unconfig
2550 @mkdir -p $(obj)include
2551 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +02002552 @$(MKCONFIG) -n $@ -a sbc35_a9g20 arm arm926ejs sbc35_a9g20 calao at91
Albin Tonnerre4f572d82009-08-24 18:03:26 +02002553
Albin Tonnerre20615462009-08-20 16:04:49 +02002554TNY_A9G20_NANDFLASH_config \
2555TNY_A9G20_EEPROM_config \
2556TNY_A9G20_config \
2557TNY_A9260_NANDFLASH_config \
2558TNY_A9260_EEPROM_config \
2559TNY_A9260_config : unconfig
2560 @mkdir -p $(obj)include
2561 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +02002562 @$(MKCONFIG) -n $@ -a tny_a9260 arm arm926ejs tny_a9260 calao at91
Albin Tonnerre20615462009-08-20 16:04:49 +02002563
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02002564########################################################################
2565## ARM Integrator boards - see doc/README-integrator for more info.
2566integratorap_config \
2567ap_config \
2568ap966_config \
2569ap922_config \
2570ap922_XA10_config \
2571ap7_config \
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +01002572ap720t_config \
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02002573ap920t_config \
2574ap926ejs_config \
2575ap946es_config: unconfig
Jean-Christophe PLAGNIOL-VILLARD693a7ae2009-05-17 00:58:37 +02002576 @board/armltd/integrator/split_by_variant.sh ap $@
wdenk4989f872004-03-14 15:06:13 +00002577
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02002578integratorcp_config \
2579cp_config \
2580cp920t_config \
2581cp926ejs_config \
2582cp946es_config \
2583cp1136_config \
2584cp966_config \
2585cp922_config \
2586cp922_XA10_config \
2587cp1026_config: unconfig
Jean-Christophe PLAGNIOL-VILLARD693a7ae2009-05-17 00:58:37 +02002588 @board/armltd/integrator/split_by_variant.sh cp $@
wdenkb3a4a702004-12-10 11:40:40 +00002589
Wolfgang Denk625bd332010-05-27 23:18:33 +02002590da830evm_config \
2591davinci_dvevm_config \
2592davinci_schmoogie_config \
2593davinci_sffsdr_config \
2594davinci_sonata_config \
2595davinci_dm355evm_config \
2596davinci_dm355leopard_config \
2597davinci_dm365evm_config \
2598davinci_dm6467evm_config : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002599 @$(MKCONFIG) -n $@ $@ arm arm926ejs \
Wolfgang Denk625bd332010-05-27 23:18:33 +02002600 $(subst davinci_,,$(@:_config=)) davinci davinci
Sandeep Paulraj1830bba2009-10-10 12:00:47 -04002601
Heiko Schocherc8f51122010-03-05 07:36:33 +01002602magnesium_config \
Ilya Yanok016b7022009-08-11 02:32:09 +04002603imx27lite_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002604 @$(MKCONFIG) $@ arm arm926ejs imx27lite logicpd mx27
Ilya Yanok016b7022009-08-11 02:32:09 +04002605
wdenk37bdfdf2004-06-10 21:55:33 +00002606lpd7a400_config \
2607lpd7a404_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002608 @$(MKCONFIG) $@ arm lh7a40x lpd7a40x
wdenk4989f872004-03-14 15:06:13 +00002609
Alessandro Rubini42a98012009-06-22 09:18:37 +02002610nhk8815_config \
2611nhk8815_onenand_config: unconfig
Alessandro Rubinibb930d12009-01-24 18:10:37 +01002612 @mkdir -p $(obj)include
2613 @ > $(obj)include/config.h
2614 @if [ "$(findstring _onenand, $@)" ] ; then \
2615 echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \
Alessandro Rubinibb930d12009-01-24 18:10:37 +01002616 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02002617 @$(MKCONFIG) -n $@ -a nhk8815 arm arm926ejs nhk8815 st nomadik
Alessandro Rubinibb930d12009-01-24 18:10:37 +01002618
Ulf Samuelsson1c5fdbf2008-04-12 20:56:03 +02002619xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2620
wdenke97d3d92004-02-23 22:22:28 +00002621omap1610inn_config \
2622omap1610inn_cs0boot_config \
2623omap1610inn_cs3boot_config \
wdenk920e91b2004-06-09 15:25:53 +00002624omap1610inn_cs_autoboot_config \
wdenke97d3d92004-02-23 22:22:28 +00002625omap1610h2_config \
2626omap1610h2_cs0boot_config \
wdenk920e91b2004-06-09 15:25:53 +00002627omap1610h2_cs3boot_config \
2628omap1610h2_cs_autoboot_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002629 @mkdir -p $(obj)include
wdenke97d3d92004-02-23 22:22:28 +00002630 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02002631 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
wdenk920e91b2004-06-09 15:25:53 +00002632 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02002633 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
wdenke97d3d92004-02-23 22:22:28 +00002634 else \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02002635 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
wdenke97d3d92004-02-23 22:22:28 +00002636 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002637 @$(MKCONFIG) -n $@ -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn ti omap
wdenk7eaacc52003-08-29 22:00:43 +00002638
wdenke3a06802004-06-06 23:13:55 +00002639omap730p2_config \
2640omap730p2_cs0boot_config \
2641omap730p2_cs3boot_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002642 @mkdir -p $(obj)include
wdenke3a06802004-06-06 23:13:55 +00002643 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002644 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
wdenke3a06802004-06-06 23:13:55 +00002645 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002646 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
wdenke3a06802004-06-06 23:13:55 +00002647 fi;
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002648 @$(MKCONFIG) -n $@ -a omap730p2 arm arm926ejs omap730p2 ti omap
wdenke3a06802004-06-06 23:13:55 +00002649
Vipin KUMAR6e2998f2010-01-15 19:15:52 +05302650spear300_config \
Vipin KUMARcc0da712010-01-15 19:15:53 +05302651spear310_config \
2652spear320_config : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002653 @$(MKCONFIG) -n $@ -t $@ spear3xx arm arm926ejs $(@:_config=) spear spear
Vipin KUMARb0ea0892010-01-15 19:15:50 +05302654
Vipin KUMAR7cc4c462010-01-15 19:15:48 +05302655spear600_config : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002656 @$(MKCONFIG) -n $@ -t $@ spear6xx arm arm926ejs $(@:_config=) spear spear
Vipin KUMAR7cc4c462010-01-15 19:15:48 +05302657
Heiko Schocher60301192010-02-22 16:43:02 +05302658suen3_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002659 @$(MKCONFIG) $@ arm arm926ejs km_arm keymile kirkwood
Heiko Schocher60301192010-02-22 16:43:02 +05302660
Jean-Christophe PLAGNIOL-VILLARD82b8e882009-01-28 21:58:03 +01002661SX1_stdout_serial_config \
2662SX1_config: unconfig
2663 @mkdir -p $(obj)include
2664 @if [ "$(findstring _stdout_serial_, $@)" ] ; then \
2665 echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD82b8e882009-01-28 21:58:03 +01002666 else \
2667 echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD82b8e882009-01-28 21:58:03 +01002668 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002669 @$(MKCONFIG) -n $@ SX1 arm arm925t sx1
wdenk9f664dd2004-06-09 21:50:45 +00002670
wdenk236d3fc2003-12-20 22:45:10 +00002671# TRAB default configuration: 8 MB Flash, 32 MB RAM
wdenk4a5c8a72003-03-06 00:02:04 +00002672trab_config \
wdenkb6b2f0e2003-09-17 22:48:07 +00002673trab_bigram_config \
2674trab_bigflash_config \
wdenkf6a6ac12003-09-17 15:10:32 +00002675trab_old_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002676 @mkdir -p $(obj)include
2677 @mkdir -p $(obj)board/trab
wdenkb6b2f0e2003-09-17 22:48:07 +00002678 @[ -z "$(findstring _bigram,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002679 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2680 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
wdenkb6b2f0e2003-09-17 22:48:07 +00002681 }
2682 @[ -z "$(findstring _bigflash,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002683 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2684 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002685 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
wdenkb6b2f0e2003-09-17 22:48:07 +00002686 }
wdenkf6a6ac12003-09-17 15:10:32 +00002687 @[ -z "$(findstring _old,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002688 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2689 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002690 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
wdenk4a5c8a72003-03-06 00:02:04 +00002691 }
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002692 @$(MKCONFIG) -n $@ -a trab arm arm920t trab NULL s3c24x0
wdenk7ebf7442002-11-02 23:17:16 +00002693
John Rigby6478a752010-01-25 23:12:58 -07002694tx25_config : unconfig
John Rigby6478a752010-01-25 23:12:58 -07002695 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002696 @$(MKCONFIG) $@ arm arm926ejs tx25 karo mx25
John Rigby6478a752010-01-25 23:12:58 -07002697
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002698#########################################################################
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02002699# ARM supplied Versatile development boards
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002700#########################################################################
2701
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02002702versatile_config \
2703versatileab_config \
2704versatilepb_config : unconfig
Jean-Christophe PLAGNIOL-VILLARD98e0d072009-01-29 12:07:21 +01002705 @board/armltd/versatile/split_by_variant.sh $@
wdenkb98ac282004-02-24 00:16:43 +00002706
2707#########################################################################
2708## S3C44B0 Systems
2709#########################################################################
2710
2711B2_config : unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02002712 @$(MKCONFIG) $@ arm s3c44b0 $(call ucname,$@) dave
wdenkb98ac282004-02-24 00:16:43 +00002713
wdenk7ebf7442002-11-02 23:17:16 +00002714#########################################################################
wdenk9f664dd2004-06-09 21:50:45 +00002715## ARM720T Systems
2716#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00002717
Wolfgang Denke24ec722010-05-27 23:18:35 +02002718# generic boards
2719################
wdenk7ebf7442002-11-02 23:17:16 +00002720
Wolfgang Denke24ec722010-05-27 23:18:35 +02002721armadillo_config \
2722ep7312_config \
2723impa7_config \
wdenk2ebee312004-02-23 19:30:57 +00002724modnet50_config : unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02002725 @$(MKCONFIG) $@ arm arm720t $(call lcname,$@)
wdenk2ebee312004-02-23 19:30:57 +00002726
wdenkf2140d52004-07-01 16:30:44 +00002727evb4510_config : unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02002728 @$(MKCONFIG) $@ arm arm720t $(call lcname,$@) NULL s3c4510b
wdenkf2140d52004-07-01 16:30:44 +00002729
Gary Jennejohn7968bb52007-01-24 12:16:56 +01002730lpc2292sodimm_config: unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02002731 @$(MKCONFIG) $@ arm arm720t $(call lcname,$@) NULL lpc2292
2732
2733# vendor specific boards (sorted by vendor)
2734###########################################
Peter Pearsed862a252007-05-09 11:37:56 +01002735
2736SMN42_config : unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02002737 @$(MKCONFIG) $@ arm arm720t $(call ucname,$@) siemens lpc2292
Gary Jennejohn7968bb52007-01-24 12:16:56 +01002738
wdenk7ebf7442002-11-02 23:17:16 +00002739#########################################################################
Dirk Behme2781f802009-01-27 18:19:12 +01002740## ARM CORTEX Systems
2741#########################################################################
Wolfgang Denke24ec722010-05-27 23:18:35 +02002742omapname = $(shell echo $(1) | sed -e 's/omap[0-9]_//' -e 's/\(.*\)_config/\L\1/')
Dirk Behme2781f802009-01-27 18:19:12 +01002743
Wolfgang Denke24ec722010-05-27 23:18:35 +02002744# generic boards
2745################
Dirk Behmebb732be2009-01-28 21:39:58 +01002746
Wolfgang Denke24ec722010-05-27 23:18:35 +02002747omap3_overo_config \
Dirk Behme7b84a7b2009-01-28 21:39:58 +01002748omap3_pandora_config : unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02002749 @$(MKCONFIG) $@ arm arm_cortexa8 $(call omapname,$@) NULL omap3
Dirk Behme7b84a7b2009-01-28 21:39:58 +01002750
Wolfgang Denke24ec722010-05-27 23:18:35 +02002751# vendor specific boards (sorted by vendor)
2752###########################################
Tom Rixc5a51352009-10-17 12:41:06 -05002753
Wolfgang Denke24ec722010-05-27 23:18:35 +02002754mx51evk_config : unconfig
2755 @$(MKCONFIG) $@ arm arm_cortexa8 $(call lcname,$@) freescale mx51
Dirk Behmebab104e2009-01-28 21:40:16 +01002756
Wolfgang Denke24ec722010-05-27 23:18:35 +02002757omap3_zoom1_config \
Tom Rix0419d912009-05-15 23:48:36 +02002758omap3_zoom2_config : unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02002759 @$(MKCONFIG) $@ arm arm_cortexa8 $(call omapname,$@) logicpd omap3
Tom Rix0419d912009-05-15 23:48:36 +02002760
Minkyu Kang29325572009-10-01 17:20:40 +09002761smdkc100_config: unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02002762 @$(MKCONFIG) $@ arm arm_cortexa8 $(call lcname,$@) samsung s5pc1xx
2763
2764omap3_beagle_config \
2765omap3_evm_config \
2766omap3_sdp3430_config : unconfig
2767 @$(MKCONFIG) $@ arm arm_cortexa8 $(call omapname,$@) ti omap3
2768
2769devkit8000_config : unconfig
2770 @$(MKCONFIG) $@ arm arm_cortexa8 $(call lcname,$@) timll omap3
Minkyu Kang29325572009-10-01 17:20:40 +09002771
Dirk Behme2781f802009-01-27 18:19:12 +01002772#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +00002773## XScale Systems
wdenk7ebf7442002-11-02 23:17:16 +00002774#########################################################################
2775
Wolfgang Denke24ec722010-05-27 23:18:35 +02002776# generic boards
2777################
wdenk7ebf7442002-11-02 23:17:16 +00002778
Wolfgang Denke24ec722010-05-27 23:18:35 +02002779actux1_config \
2780actux2_config \
2781actux3_config \
2782actux4_config \
2783ixdp425_config \
Wolfgang Denk4646d2a2006-05-30 15:56:48 +02002784ixdpg425_config : unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02002785 @$(MKCONFIG) $@ arm ixp $(call lcname,$@)
wdenk4a5c8a72003-03-06 00:02:04 +00002786
Wolfgang Denke24ec722010-05-27 23:18:35 +02002787cerf250_config \
2788cradle_config \
2789csb226_config \
2790delta_config \
2791innokom_config \
2792lubbock_config \
2793pleb2_config \
2794logodl_config \
2795pxa255_idp_config \
2796wepep250_config \
2797xaeniax_config \
2798xm250_config \
2799xsengine_config \
2800zylonite_config :
2801 @$(MKCONFIG) $@ arm pxa $(call lcname,$@)
Heiko Schocher221a5062006-05-02 07:51:46 +02002802
Wolfgang Denke24ec722010-05-27 23:18:35 +02002803# special boards
2804################
wdenk88e72a32003-06-19 23:04:19 +00002805
Stefan Roese1b5f1ff2007-01-18 16:05:47 +01002806pdnb3_config \
Wolfgang Denk19b68c42008-03-04 14:58:31 +01002807scpu_config: unconfig
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02002808 @mkdir -p $(obj)include
Stefan Roese1b5f1ff2007-01-18 16:05:47 +01002809 @if [ "$(findstring scpu_,$@)" ] ; then \
Wolfgang Denk19b68c42008-03-04 14:58:31 +01002810 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
Stefan Roese1b5f1ff2007-01-18 16:05:47 +01002811 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02002812 @$(MKCONFIG) -n $@ -a pdnb3 arm ixp pdnb3 prodrive
Wolfgang Denk4646d2a2006-05-30 15:56:48 +02002813
Stefano Babice33f8042009-07-01 20:40:41 +02002814polaris_config \
stefano babic6708a602007-08-30 23:01:49 +02002815trizepsiv_config : unconfig
Stefano Babice33f8042009-07-01 20:40:41 +02002816 @mkdir -p $(obj)include
2817 @if [ "$(findstring polaris,$@)" ] ; then \
2818 echo "#define CONFIG_POLARIS 1" >>$(obj)include/config.h ; \
2819 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002820 @$(MKCONFIG) -n $@ -a trizepsiv arm pxa trizepsiv
stefano babic6708a602007-08-30 23:01:49 +02002821
Wolfgang Denke24ec722010-05-27 23:18:35 +02002822#########################################################################
2823## ARM1136 Systems
2824#########################################################################
wdenkb02744a2003-04-05 00:53:31 +00002825
Wolfgang Denke24ec722010-05-27 23:18:35 +02002826# generic boards
2827################
wdenkfa89d7c2004-09-28 16:44:41 +00002828
Wolfgang Denke24ec722010-05-27 23:18:35 +02002829# vendor specific boards (sorted by vendor)
2830###########################################
wdenkc12081a2004-03-23 20:18:25 +00002831
Wolfgang Denke24ec722010-05-27 23:18:35 +02002832qong_config : unconfig
2833 @$(MKCONFIG) $@ arm arm1136 $(call lcname,$@) davedenx mx31
wdenk51108172004-06-09 15:37:23 +00002834
Wolfgang Denke24ec722010-05-27 23:18:35 +02002835mx31ads_config : unconfig
2836 @$(MKCONFIG) $@ arm arm1136 $(call lcname,$@) freescale mx31
Markus Klotzbücher21e69a02006-02-07 20:04:48 +01002837
Wolfgang Denke24ec722010-05-27 23:18:35 +02002838imx31_litekit_config : unconfig
2839 @$(MKCONFIG) $@ arm arm1136 $(call lcname,$@) logicpd mx31
2840
2841omap2420h4_config : unconfig
2842 @$(MKCONFIG) $@ arm arm1136 $(call lcname,$@) ti omap24xx
2843
2844# special boards
2845################
wdenkf8062712005-01-09 23:16:25 +00002846
Peter Pearseba348b52007-11-09 15:24:26 +00002847apollon_config : unconfig
Wolfgang Denkec40b4c2009-12-06 00:26:19 +01002848 @mkdir -p $(obj)include
Kyungmin Park33174212008-01-17 16:43:25 +09002849 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
Kyungmin Park33174212008-01-17 16:43:25 +09002850 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002851 @$(MKCONFIG) $@ arm arm1136 apollon NULL omap24xx
Peter Pearseba348b52007-11-09 15:24:26 +00002852
Guennadi Liakhovetskie99f10a2009-02-24 10:44:02 +01002853imx31_phycore_eet_config \
Sascha Hauera5864c02008-03-26 20:41:17 +01002854imx31_phycore_config : unconfig
Guennadi Liakhovetski46d94732009-04-05 00:37:07 +02002855 @mkdir -p $(obj)include
Guennadi Liakhovetskie99f10a2009-02-24 10:44:02 +01002856 @if [ -n "$(findstring _eet_,$@)" ]; then \
2857 echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h; \
2858 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02002859 @$(MKCONFIG) -n $@ -a imx31_phycore arm arm1136 imx31_phycore NULL mx31
Sascha Hauera5864c02008-03-26 20:41:17 +01002860
Magnus Lilja24f8b412009-07-04 10:31:24 +02002861mx31pdk_config \
2862mx31pdk_nand_config : unconfig
2863 @mkdir -p $(obj)include
2864 @if [ -n "$(findstring _nand_,$@)" ]; then \
2865 echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h; \
2866 else \
2867 echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h; \
2868 echo "#define CONFIG_SKIP_RELOCATE_UBOOT" >> $(obj)include/config.h; \
2869 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02002870 @$(MKCONFIG) -n $@ -a mx31pdk arm arm1136 mx31pdk freescale mx31
Magnus Lilja6eeb6f72009-07-01 01:07:55 +02002871
Guennadi Liakhovetskib2d42742008-08-31 00:39:47 +02002872#########################################################################
2873## ARM1176 Systems
2874#########################################################################
2875smdk6400_noUSB_config \
2876smdk6400_config : unconfig
2877 @mkdir -p $(obj)include $(obj)board/samsung/smdk6400
2878 @mkdir -p $(obj)nand_spl/board/samsung/smdk6400
2879 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +02002880 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Guennadi Liakhovetskib2d42742008-08-31 00:39:47 +02002881 @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \
2882 echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
Guennadi Liakhovetskib2d42742008-08-31 00:39:47 +02002883 else \
2884 echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
Guennadi Liakhovetskib2d42742008-08-31 00:39:47 +02002885 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02002886 @$(MKCONFIG) $(subst _noUSB,,$(@:_config=)) arm arm1176 smdk6400 samsung s3c64xx
Guennadi Liakhovetskib2d42742008-08-31 00:39:47 +02002887
wdenk591dda52002-11-18 00:14:45 +00002888#========================================================================
2889# i386
2890#========================================================================
2891#########################################################################
wdenk1fe2c702003-03-06 21:55:29 +00002892## AMD SC520 CDP
wdenk591dda52002-11-18 00:14:45 +00002893#########################################################################
Wolfgang Denk5bc73fb2009-01-24 01:01:49 +01002894
Wolfgang Denke24ec722010-05-27 23:18:35 +02002895# generic boards
2896################
2897eNET_config \
2898sc520_cdp_config \
wdenkabda5ca2003-05-31 18:35:21 +00002899sc520_spunk_config : unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02002900 @$(MKCONFIG) $@ i386 i386 $(call lcname,$@) NULL sc520
wdenkabda5ca2003-05-31 18:35:21 +00002901
2902sc520_spunk_rel_config : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002903 @$(MKCONFIG) $@ i386 i386 sc520_spunk NULL sc520
wdenkabda5ca2003-05-31 18:35:21 +00002904
wdenk4a5c8a72003-03-06 00:02:04 +00002905#========================================================================
2906# MIPS
2907#========================================================================
wdenk7ebf7442002-11-02 23:17:16 +00002908#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +00002909## MIPS32 4Kc
2910#########################################################################
2911
Wolfgang Denke24ec722010-05-27 23:18:35 +02002912# generic boards
2913################
2914
2915tb0229_config: unconfig
2916 @$(MKCONFIG) $@ mips mips $(call lcname,$@)
2917
2918# special boards
2919################
2920
wdenk5d841732003-08-17 18:55:18 +00002921incaip_100MHz_config \
2922incaip_133MHz_config \
2923incaip_150MHz_config \
2924incaip_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002925 @mkdir -p $(obj)include
wdenk5d841732003-08-17 18:55:18 +00002926 @[ -z "$(findstring _100MHz,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02002927 echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h
wdenk5d841732003-08-17 18:55:18 +00002928 @[ -z "$(findstring _133MHz,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02002929 echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h
wdenk5d841732003-08-17 18:55:18 +00002930 @[ -z "$(findstring _150MHz,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02002931 echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h
2932 @$(MKCONFIG) -n $@ -a incaip mips mips incaip
wdenk5d841732003-08-17 18:55:18 +00002933
Stefan Roeseee7a6ba2009-01-21 17:25:01 +01002934vct_premium_config \
2935vct_premium_small_config \
2936vct_premium_onenand_config \
2937vct_premium_onenand_small_config \
2938vct_platinum_config \
2939vct_platinum_small_config \
2940vct_platinum_onenand_config \
2941vct_platinum_onenand_small_config \
2942vct_platinumavc_config \
2943vct_platinumavc_small_config \
2944vct_platinumavc_onenand_config \
2945vct_platinumavc_onenand_small_config: unconfig
2946 @mkdir -p $(obj)include
Wolfgang Denk625bd332010-05-27 23:18:33 +02002947 @[ -z "$(findstring _premium,$@)" ] || \
2948 echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h
2949 @[ -z "$(findstring _platinum_,$@)" ] || \
2950 echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h
2951 @[ -z "$(findstring _platinumavc,$@)" ] || \
2952 echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h
2953 @[ -z "$(findstring _onenand,$@)" ] || \
2954 echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h
2955 @[ -z "$(findstring _small,$@)" ] || \
2956 echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h
2957 @$(MKCONFIG) -n $@ -a vct mips mips vct micronas
Stefan Roeseee7a6ba2009-01-21 17:25:01 +01002958
wdenk5d841732003-08-17 18:55:18 +00002959#########################################################################
wdenkcd914452004-05-29 16:53:29 +00002960## MIPS32 AU1X00
2961#########################################################################
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002962
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +01002963dbau1000_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002964 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002965 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002966 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenkcd914452004-05-29 16:53:29 +00002967
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +01002968dbau1100_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002969 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002970 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002971 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenkcd914452004-05-29 16:53:29 +00002972
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +01002973dbau1500_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002974 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002975 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002976 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenkcd914452004-05-29 16:53:29 +00002977
wdenk96c7a8c2005-01-09 22:28:56 +00002978dbau1550_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002979 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002980 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002981 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenk96c7a8c2005-01-09 22:28:56 +00002982
2983dbau1550_el_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002984 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002985 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002986 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenk96c7a8c2005-01-09 22:28:56 +00002987
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002988gth2_config : unconfig
2989 @mkdir -p $(obj)include
2990 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002991 @$(MKCONFIG) -a $@ mips mips gth2
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002992
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +01002993pb1000_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002994 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002995 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002996 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
Wolfgang Denk0cbaf642005-09-25 00:53:22 +02002997
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002998qemu_mips_config : unconfig
Vlad Lungu635e76c2008-01-16 19:27:51 +02002999 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01003000 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
Vlad Lungu635e76c2008-01-16 19:27:51 +02003001 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
3002
wdenkcd914452004-05-29 16:53:29 +00003003#########################################################################
wdenk5d841732003-08-17 18:55:18 +00003004## MIPS64 5Kc
3005#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +00003006
wdenkb02744a2003-04-05 00:53:31 +00003007purple_config : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003008 @$(MKCONFIG) $@ mips mips purple
wdenk4a5c8a72003-03-06 00:02:04 +00003009
wdenk60164a82003-10-08 23:26:14 +00003010#========================================================================
3011# Nios
3012#========================================================================
wdenk60164a82003-10-08 23:26:14 +00003013
wdenkef3386f2004-10-10 21:27:30 +00003014#########################################################################
3015## Nios-II
3016#########################################################################
3017
Wolfgang Denke24ec722010-05-27 23:18:35 +02003018# vendor specific boards (sorted by vendor)
3019###########################################
Scott McNutt2ca00852006-06-08 13:37:39 -04003020
Wolfgang Denke24ec722010-05-27 23:18:35 +02003021EP1C20_config \
3022EP1S10_config \
3023EP1S40_config : unconfig
3024 @$(MKCONFIG) $@ nios2 nios2 $(call lcname,$@) altera
Scott McNutt2ca00852006-06-08 13:37:39 -04003025
Wolfgang Denke24ec722010-05-27 23:18:35 +02003026PK1C20_config \
3027PCI5441_config : unconfig
3028 @$(MKCONFIG) $@ nios2 nios2 $(call lcname,$@) psyent
wdenk12490652004-04-18 21:13:41 +00003029
Thomas Chou7ffbbf52010-04-21 08:40:59 +08003030# nios2 generic boards
3031NIOS2_GENERIC = nios2-generic
3032
3033$(NIOS2_GENERIC:%=%_config) : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003034 @$(MKCONFIG) $@ nios2 nios2 nios2-generic altera
Thomas Chou7ffbbf52010-04-21 08:40:59 +08003035
wdenk12490652004-04-18 21:13:41 +00003036#========================================================================
wdenk12490652004-04-18 21:13:41 +00003037## Microblaze
Wolfgang Denk28d8d702008-07-15 22:22:44 +02003038#========================================================================
wdenk60164a82003-10-08 23:26:14 +00003039
Michal Simek87ed95b2008-12-19 13:14:05 +01003040microblaze-generic_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003041 @$(MKCONFIG) $@ microblaze microblaze microblaze-generic xilinx
Michal Simek922ce202007-03-11 13:48:24 +01003042
Mike Frysinger18ba9f82008-02-04 19:26:55 -05003043#========================================================================
3044# Blackfin
3045#========================================================================
Wolfgang Denk46d2b522006-03-12 02:10:00 +01003046
Mike Frysinger18ba9f82008-02-04 19:26:55 -05003047# Analog Devices boards
Mike Frysinger4752c192008-10-12 21:32:52 -04003048BFIN_BOARDS = bf518f-ezbrd bf526-ezbrd bf527-ezkit bf533-ezkit bf533-stamp \
Mike Frysinger22e89bf2008-10-12 23:08:03 -04003049 bf537-pnav bf537-stamp bf538f-ezkit bf548-ezkit bf561-ezkit
Wolfgang Denk46d2b522006-03-12 02:10:00 +01003050
Mike Frysinger9768ab92008-10-12 21:36:22 -04003051# Bluetechnix tinyboards
Harald Krapfenbauer5e6362c2010-01-13 09:04:53 -05003052BFIN_BOARDS += cm-bf527 cm-bf533 cm-bf537e cm-bf537u cm-bf548 cm-bf561 \
3053 tcm-bf518 tcm-bf537
Mike Frysinger9768ab92008-10-12 21:36:22 -04003054
Mike Frysingerb704a202008-10-12 23:16:52 -04003055# Misc third party boards
Brent Kandetzki0ae93ab2010-03-24 17:41:33 -04003056BFIN_BOARDS += bf537-minotaur bf537-srv1 bf561-acvilon blackstamp ip04
Mike Frysingerb704a202008-10-12 23:16:52 -04003057
Hoan Hoanga13b05b2009-01-18 22:44:17 -05003058# I-SYST Micromodule
3059BFIN_BOARDS += ibf-dsp561
3060
Mike Frysinger18ba9f82008-02-04 19:26:55 -05003061$(BFIN_BOARDS:%=%_config) : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003062 @$(MKCONFIG) $@ blackfin blackfin $(@:_config=)
Aubrey Li10ebdd92007-03-19 01:24:52 +08003063
Michael Henneriche9621622009-12-10 09:19:21 +00003064bf527-ezkit-v2_config : unconfig
3065 @$(MKCONFIG) -t BF527_EZKIT_REV_2_1 \
3066 bf527-ezkit blackfin blackfin bf527-ezkit
3067
Haavard Skinnemoen79f35b92006-10-25 15:48:59 +02003068#========================================================================
3069# AVR32
3070#========================================================================
Wolfgang Denk28d8d702008-07-15 22:22:44 +02003071
3072atngw100_config : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003073 @$(MKCONFIG) $@ avr32 at32ap atngw100 atmel at32ap700x
Haavard Skinnemoen79f35b92006-10-25 15:48:59 +02003074
Wolfgang Denk625bd332010-05-27 23:18:33 +02003075atstk1002_config \
3076atstk1003_config \
3077atstk1004_config \
Haavard Skinnemoen1ba3b742007-11-22 12:14:11 +01003078atstk1006_config : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003079 @$(MKCONFIG) $@ avr32 at32ap atstk1000 atmel at32ap700x
Haavard Skinnemoen1ba3b742007-11-22 12:14:11 +01003080
Hans-Christian Egtvedtd4b48b82008-08-06 14:42:13 +02003081favr-32-ezkit_config : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003082 @$(MKCONFIG) $@ avr32 at32ap favr-32-ezkit earthlcd at32ap700x
Hans-Christian Egtvedtd4b48b82008-08-06 14:42:13 +02003083
Julien May72646d22008-06-23 13:57:52 +02003084hammerhead_config : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003085 @$(MKCONFIG) $@ avr32 at32ap hammerhead miromico at32ap700x
Julien May72646d22008-06-23 13:57:52 +02003086
Mark Jackson1744f5b2008-07-30 13:07:27 +01003087mimc200_config : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003088 @$(MKCONFIG) $@ avr32 at32ap mimc200 mimc at32ap700x
Mark Jackson1744f5b2008-07-30 13:07:27 +01003089
Wolfgang Denk28d8d702008-07-15 22:22:44 +02003090#========================================================================
3091# SH3 (SuperH)
3092#========================================================================
wdenk7ebf7442002-11-02 23:17:16 +00003093
Nobuhiro Iwamatsu45254852007-05-13 21:01:03 +09003094#########################################################################
Nobuhiro Iwamatsu6f7d4362008-08-31 23:02:04 +09003095## sh2 (Renesas SuperH)
3096#########################################################################
3097rsk7203_config: unconfig
Kieran Binghamc7e4e352008-12-30 01:16:03 +00003098 @mkdir -p $(obj)include
Peter Griffinde8cd4d2009-02-10 16:44:45 +00003099 @echo "#define CONFIG_RSK7203 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003100 @$(MKCONFIG) -a $@ sh sh2 rsk7203 renesas
Nobuhiro Iwamatsu6f7d4362008-08-31 23:02:04 +09003101
3102#########################################################################
Yoshihiro Shimodadad925c2007-12-03 22:58:50 +09003103## sh3 (Renesas SuperH)
3104#########################################################################
Wolfgang Denk28d8d702008-07-15 22:22:44 +02003105
Mark Jonas35a398a2008-03-10 11:37:10 +01003106mpr2_config: unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02003107 @mkdir -p $(obj)include
3108 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003109 @$(MKCONFIG) -a $@ sh sh3 mpr2
Mark Jonas35a398a2008-03-10 11:37:10 +01003110
Yoshihiro Shimodadad925c2007-12-03 22:58:50 +09003111ms7720se_config: unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02003112 @mkdir -p $(obj)include
3113 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003114 @$(MKCONFIG) -a $@ sh sh3 ms7720se
Yoshihiro Shimodadad925c2007-12-03 22:58:50 +09003115
3116#########################################################################
Nobuhiro Iwamatsu45254852007-05-13 21:01:03 +09003117## sh4 (Renesas SuperH)
3118#########################################################################
Wolfgang Denk28d8d702008-07-15 22:22:44 +02003119
3120MigoR_config : unconfig
3121 @mkdir -p $(obj)include
3122 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003123 @$(MKCONFIG) -a $@ sh sh4 MigoR renesas
Wolfgang Denk28d8d702008-07-15 22:22:44 +02003124
Nobuhiro Iwamatsu45254852007-05-13 21:01:03 +09003125ms7750se_config: unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02003126 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01003127 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003128 @$(MKCONFIG) -a $@ sh sh4 ms7750se
Nobuhiro Iwamatsu45254852007-05-13 21:01:03 +09003129
Wolfgang Denk19b68c42008-03-04 14:58:31 +01003130ms7722se_config : unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02003131 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01003132 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003133 @$(MKCONFIG) -a $@ sh sh4 ms7722se
wdenkabda5ca2003-05-31 18:35:21 +00003134
Wolfgang Denk28d8d702008-07-15 22:22:44 +02003135r2dplus_config : unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02003136 @mkdir -p $(obj)include
Wolfgang Denk28d8d702008-07-15 22:22:44 +02003137 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003138 @$(MKCONFIG) -a $@ sh sh4 r2dplus renesas
goda.yusukefd768072008-01-25 20:46:36 +09003139
Yusuke Godacf236022008-03-11 12:55:12 +09003140r7780mp_config: unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02003141 @mkdir -p $(obj)include
3142 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003143 @$(MKCONFIG) -a $@ sh sh4 r7780mp renesas
Yusuke Godacf236022008-03-11 12:55:12 +09003144
Nobuhiro Iwamatsu113a37e2008-06-09 13:39:57 +09003145sh7763rdp_config : unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02003146 @mkdir -p $(obj)include
3147 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003148 @$(MKCONFIG) -a $@ sh sh4 sh7763rdp renesas
Nobuhiro Iwamatsu113a37e2008-06-09 13:39:57 +09003149
Yoshihiro Shimoda22dc9ec2009-03-03 15:11:17 +09003150sh7785lcr_32bit_config \
Nobuhiro Iwamatsu52f73c02008-08-31 22:45:08 +09003151sh7785lcr_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDb24d23c2009-06-04 12:06:43 +02003152 @mkdir -p $(obj)include
3153 @mkdir -p $(obj)board/renesas/sh7785lcr
3154 @echo "#define CONFIG_SH7785LCR 1" > $(obj)include/config.h
Yoshihiro Shimoda22dc9ec2009-03-03 15:11:17 +09003155 @if [ "$(findstring 32bit, $@)" ] ; then \
3156 echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \
Yoshihiro Shimoda22dc9ec2009-03-03 15:11:17 +09003157 echo "TEXT_BASE = 0x8ff80000" > \
3158 $(obj)board/renesas/sh7785lcr/config.tmp ; \
Yoshihiro Shimoda22dc9ec2009-03-03 15:11:17 +09003159 fi
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003160 @$(MKCONFIG) -n $@ -a sh7785lcr sh sh4 sh7785lcr renesas
Nobuhiro Iwamatsu52f73c02008-08-31 22:45:08 +09003161
Nobuhiro Iwamatsu3e590432008-08-22 17:39:09 +09003162ap325rxa_config : unconfig
3163 @mkdir -p $(obj)include
3164 @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003165 @$(MKCONFIG) -a $@ sh sh4 ap325rxa renesas
Nobuhiro Iwamatsu3e590432008-08-22 17:39:09 +09003166
Nobuhiro Iwamatsud1f2a0c2009-06-25 16:31:26 +09003167espt_config : unconfig
3168 @mkdir -p $(obj)include
3169 @echo "#define CONFIG_ESPT 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02003170 @$(MKCONFIG) -a $@ sh sh4 espt
Nobuhiro Iwamatsud1f2a0c2009-06-25 16:31:26 +09003171
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +01003172#========================================================================
3173# SPARC
3174#========================================================================
Wolfgang Denk28d8d702008-07-15 22:22:44 +02003175
Daniel Hellstromb552dbe2008-03-26 22:51:29 +01003176#########################################################################
Wolfgang Denke24ec722010-05-27 23:18:35 +02003177## LEON2
Daniel Hellstromb552dbe2008-03-26 22:51:29 +01003178#########################################################################
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +01003179
Wolfgang Denke24ec722010-05-27 23:18:35 +02003180grsim_leon2_config : unconfig
3181 @$(MKCONFIG) $@ sparc leon2 $(call lcname,$@) gaisler
Daniel Hellstromce43fed2008-03-28 10:06:52 +01003182
wdenk7ebf7442002-11-02 23:17:16 +00003183#########################################################################
Wolfgang Denke24ec722010-05-27 23:18:35 +02003184## LEON3
Daniel Hellstrom207e6952008-03-28 10:00:33 +01003185#########################################################################
3186
Wolfgang Denke24ec722010-05-27 23:18:35 +02003187gr_xc3s_1500_config \
3188gr_cpci_ax2000_config \
3189gr_ep2s60_config \
3190grsim_config : unconfig
3191 @$(MKCONFIG) $@ sparc leon3 $(call lcname,$@) gaisler
Daniel Hellstrom73caf572008-03-28 10:20:43 +01003192
wdenk7ebf7442002-11-02 23:17:16 +00003193#########################################################################
3194#########################################################################
3195#########################################################################
wdenk8dba0502003-03-31 16:34:49 +00003196
wdenkb02744a2003-04-05 00:53:31 +00003197clean:
Peter Tyser07a8af32009-07-10 11:03:19 -05003198 @rm -f $(obj)examples/standalone/82559_eeprom \
Wolfgang Denk96b0dfd2009-09-07 23:52:31 +02003199 $(obj)examples/standalone/atmel_df_pow2 \
Peter Tyser07a8af32009-07-10 11:03:19 -05003200 $(obj)examples/standalone/eepro100_eeprom \
3201 $(obj)examples/standalone/hello_world \
3202 $(obj)examples/standalone/interrupt \
3203 $(obj)examples/standalone/mem_to_mem_idma2intr \
3204 $(obj)examples/standalone/sched \
3205 $(obj)examples/standalone/smc91111_eeprom \
3206 $(obj)examples/standalone/test_burst \
3207 $(obj)examples/standalone/timer
Peter Tyseracce4eb2009-07-20 19:02:21 -05003208 @rm -f $(obj)examples/api/demo{,.bin}
Wolfgang Denk19b68c42008-03-04 14:58:31 +01003209 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
3210 $(obj)tools/env/{fw_printenv,fw_setenv} \
3211 $(obj)tools/envcrc \
3212 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
3213 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
3214 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
3215 $(obj)tools/ncb $(obj)tools/ubsha1
3216 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
3217 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
3218 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
Wolfgang Denk375babe2009-02-22 01:17:47 +01003219 $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \
Peter Tysercede5d82010-04-12 22:28:04 -05003220 $(obj)arch/blackfin/lib/u-boot.lds \
Wolfgang Denk18d46c02009-08-17 14:00:53 +02003221 $(obj)u-boot.lds \
Peter Tyser12e57652010-04-12 22:28:13 -05003222 $(obj)arch/blackfin/cpu/bootrom-asm-offsets.[chs]
Wolfgang Denk3cf55ef2008-04-20 15:39:38 -07003223 @rm -f $(obj)include/bmp_logo.h
Wolfgang Denk18d46c02009-08-17 14:00:53 +02003224 @rm -f $(obj)nand_spl/{u-boot.lds,u-boot-spl,u-boot-spl.map,System.map}
Kyungmin Parkafb72e42009-09-22 09:05:00 +09003225 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl.map}
3226 @rm -f $(ONENAND_BIN)
Wolfgang Denk18d46c02009-08-17 14:00:53 +02003227 @rm -f $(obj)onenand_ipl/u-boot.lds
Peter Tyseracce4eb2009-07-20 19:02:21 -05003228 @rm -f $(TIMESTAMP_FILE) $(VERSION_FILE)
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01003229 @find $(OBJTREE) -type f \
wdenk7ebf7442002-11-02 23:17:16 +00003230 \( -name 'core' -o -name '*.bak' -o -name '*~' \
Peter Tyser1ba4b312009-03-13 18:54:26 -05003231 -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \
wdenk7ebf7442002-11-02 23:17:16 +00003232 | xargs rm -f
wdenk7ebf7442002-11-02 23:17:16 +00003233
3234clobber: clean
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01003235 @find $(OBJTREE) -type f \( -name .depend \
wdenkaeba06f2004-06-09 17:34:58 +00003236 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
3237 -print0 \
3238 | xargs -0 rm -f
Li Yang8c6dcf02008-02-29 11:46:05 +08003239 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
Wolfgang Denk6570eb32008-03-02 22:45:33 +01003240 $(obj)cscope.* $(obj)*.*~
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01003241 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
Prafulla Wadaskar07329412009-09-07 15:05:02 +05303242 @rm -f $(obj)u-boot.kwb
Stefano Babic421834e2010-02-05 15:13:58 +01003243 @rm -f $(obj)u-boot.imx
Peter Tyserbd5605b2009-03-13 18:54:47 -05003244 @rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes}
Stefan Roese88fbf932010-04-15 16:07:28 +02003245 @rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01003246 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
Jean-Christophe PLAGNIOL-VILLARD70e976e2008-08-16 18:54:27 +02003247 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
3248 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
wdenk7ebf7442002-11-02 23:17:16 +00003249
Marian Balakowiczd62379d2006-09-01 19:49:50 +02003250ifeq ($(OBJTREE),$(SRCTREE))
3251mrproper \
3252distclean: clobber unconfig
3253else
wdenk7ebf7442002-11-02 23:17:16 +00003254mrproper \
3255distclean: clobber unconfig
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01003256 rm -rf $(obj)*
Marian Balakowiczd62379d2006-09-01 19:49:50 +02003257endif
wdenk7ebf7442002-11-02 23:17:16 +00003258
3259backup:
3260 F=`basename $(TOPDIR)` ; cd .. ; \
3261 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
3262
3263#########################################################################