blob: 3e11f6ffa6ca915863d84009d3f471d53c37fcec [file] [log] [blame]
wdenk7ebf7442002-11-02 23:17:16 +00001#
Detlev Zundelfd428c02010-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 Denk45a212c2006-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 Denkf9301e12008-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 Denk93910ed2010-03-12 23:06:04 +010024VERSION = 2010
Wolfgang Denk01f03bd2010-05-26 23:57:08 +020025PATCHLEVEL = 06
Wolfgang Denk8b9e4782008-09-09 23:55:18 +020026SUBLEVEL =
Wolfgang Denka9046b92010-06-13 17:48:15 +020027EXTRAVERSION = -rc2
Wolfgang Denk8b9e4782008-09-09 23:55:18 +020028ifneq "$(SUBLEVEL)" ""
Wolfgang Denk881a87e2006-02-21 17:33:04 +010029U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
Wolfgang Denk8b9e4782008-09-09 23:55:18 +020030else
31U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL)$(EXTRAVERSION)
32endif
Peter Tyser561858e2008-11-03 09:30:59 -060033TIMESTAMP_FILE = $(obj)include/timestamp_autogenerated.h
Marian Balakowiczf9328632006-09-01 19:49:50 +020034VERSION_FILE = $(obj)include/version_autogenerated.h
Wolfgang Denk881a87e2006-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 Galad0179082010-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 Denkf9d77ed2005-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 Tysercf7a7b92008-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 Denkae6d1052008-01-13 00:59:21 +010059# Allow for silent builds
60ifeq (,$(findstring s,$(MAKEFLAGS)))
61XECHO = echo
62else
63XECHO = :
64endif
65
66#########################################################################
Marian Balakowiczf9328632006-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 Roese887e2ec2006-09-07 11:51:23 +020070#
Marian Balakowiczf9328632006-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 Roese887e2ec2006-09-07 11:51:23 +020081#
Marian Balakowiczf9328632006-09-01 19:49:50 +020082# Command line 'O=' setting overrides BUILD_DIR environent variable.
Stefan Roese887e2ec2006-09-07 11:51:23 +020083#
Marian Balakowiczf9328632006-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 Roese887e2ec2006-09-07 11:51:23 +020086#
wdenk7ebf7442002-11-02 23:17:16 +000087
Marian Balakowiczf9328632006-09-01 19:49:50 +020088ifdef O
89ifeq ("$(origin O)", "command line")
90BUILD_DIR := $(O)
91endif
92endif
wdenk7ebf7442002-11-02 23:17:16 +000093
Marian Balakowiczf9328632006-09-01 19:49:50 +020094ifneq ($(BUILD_DIR),)
95saved-output := $(BUILD_DIR)
Marian Balakowicz4f0645e2006-09-07 12:05:53 +020096
97# Attempt to create a output directory.
98$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
99
Stefan Roesea73c8db2006-09-12 08:49:07 +0200100# Verify if it was successful.
Marian Balakowiczf9328632006-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 Denkdd520bf2006-11-30 18:02:20 +0100115REMOTE_BUILD := 1
Marian Balakowiczf9328632006-09-01 19:49:50 +0200116export REMOTE_BUILD
117endif
118
119# $(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 Roese887e2ec2006-09-07 11:51:23 +0200128endif
Marian Balakowiczf9328632006-09-01 19:49:50 +0200129export obj src
130
Wolfgang Denk5013c092008-03-02 22:45:33 +0100131# Make sure CDPATH settings don't interfere
132unexport CDPATH
133
Marian Balakowiczf9328632006-09-01 19:49:50 +0200134#########################################################################
135
Mike Frysinger6d1ce382009-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 Tyser1bc15382009-07-10 11:03:19 -0500139 examples/standalone \
Peter Tyserd4abc752009-07-20 19:02:21 -0500140 examples/api
Mike Frysinger6d1ce382009-05-30 01:02:03 -0400141
142.PHONY : $(SUBDIRS)
143
Wolfgang Denkae6d1052008-01-13 00:59:21 +0100144ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
Marian Balakowiczf9328632006-09-01 19:49:50 +0200145
Mike Frysinger2632c002009-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 Denkae6d1052008-01-13 00:59:21 +0100154include $(obj)include/config.mk
wdenk1d9f4102004-10-09 22:21:29 +0000155export ARCH CPU BOARD VENDOR SOC
Marian Balakowiczf9328632006-09-01 19:49:50 +0200156
Mike Frysinger1ea6bcd2009-06-14 23:33:14 -0400157# set default to nothing for native builds
Wolfgang Denka5284ef2007-03-06 18:01:47 +0100158ifeq ($(HOSTARCH),$(ARCH))
Mike Frysinger1ea6bcd2009-06-14 23:33:14 -0400159CROSS_COMPILE ?=
wdenk7ebf7442002-11-02 23:17:16 +0000160endif
wdenk7ebf7442002-11-02 23:17:16 +0000161
Wolfgang Denk92b197f2006-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 Tyser03b70042010-04-12 22:28:02 -0500168OBJS = $(CPUDIR)/start.o
wdenk2262cfe2002-11-18 00:14:45 +0000169ifeq ($(CPU),i386)
Peter Tyser03b70042010-04-12 22:28:02 -0500170OBJS += $(CPUDIR)/start16.o
171OBJS += $(CPUDIR)/resetvec.o
wdenk2262cfe2002-11-18 00:14:45 +0000172endif
wdenk7ebf7442002-11-02 23:17:16 +0000173ifeq ($(CPU),ppc4xx)
Peter Tyser03b70042010-04-12 22:28:02 -0500174OBJS += $(CPUDIR)/resetvec.o
wdenk7ebf7442002-11-02 23:17:16 +0000175endif
wdenk42d1f032003-10-15 23:53:47 +0000176ifeq ($(CPU),mpc85xx)
Peter Tyser03b70042010-04-12 22:28:02 -0500177OBJS += $(CPUDIR)/resetvec.o
wdenk42d1f032003-10-15 23:53:47 +0000178endif
wdenk7ebf7442002-11-02 23:17:16 +0000179
Marian Balakowiczf9328632006-09-01 19:49:50 +0200180OBJS := $(addprefix $(obj),$(OBJS))
181
Peter Tyser78acc472010-04-12 22:28:05 -0500182LIBS = lib/libgeneric.a
183LIBS += lib/lzma/liblzma.a
184LIBS += lib/lzo/liblzo.a
Kim Phillips7608d752007-08-21 17:00:17 -0500185LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
186 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
Peter Tyser03b70042010-04-12 22:28:02 -0500187LIBS += $(CPUDIR)/lib$(CPU).a
wdenk1d9f4102004-10-09 22:21:29 +0000188ifdef SOC
Peter Tyser03b70042010-04-12 22:28:02 -0500189LIBS += $(CPUDIR)/$(SOC)/lib$(SOC).a
wdenk1d9f4102004-10-09 22:21:29 +0000190endif
Stefan Roese323bfa82007-04-23 12:00:22 +0200191ifeq ($(CPU),ixp)
Peter Tyser84ad6882010-04-12 22:28:11 -0500192LIBS += arch/arm/cpu/ixp/npe/libnpe.a
Stefan Roese323bfa82007-04-23 12:00:22 +0200193endif
Peter Tyserea0364f2010-04-12 22:28:04 -0500194LIBS += arch/$(ARCH)/lib/lib$(ARCH).a
wdenk518e2e12004-03-25 14:59:05 +0000195LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
Stefan Roese9eefe2a2009-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 Jin0f460a12007-07-13 12:14:58 +0800200LIBS += drivers/bios_emulator/libatibiosemu.a
Jean-Christophe PLAGNIOL-VILLARD33daf5b2007-11-24 21:13:59 +0100201LIBS += drivers/block/libblock.a
TsiChungLiew57a12722008-01-15 14:15:46 -0600202LIBS += drivers/dma/libdma.a
Jean-Christophe PLAGNIOL-VILLARDc8aa7df2008-10-31 12:26:55 +0100203LIBS += drivers/fpga/libfpga.a
Peter Tysere92739d2008-12-17 16:36:21 -0600204LIBS += drivers/gpio/libgpio.a
Jean-Christophe PLAGNIOL-VILLARDf868cc52007-11-24 20:14:44 +0100205LIBS += drivers/hwmon/libhwmon.a
Jean-Christophe PLAGNIOL-VILLARD080c6462007-11-20 20:14:18 +0100206LIBS += drivers/i2c/libi2c.a
Jean-Christophe PLAGNIOL-VILLARD16b195c2007-11-24 19:46:45 +0100207LIBS += drivers/input/libinput.a
Jean-Christophe PLAGNIOL-VILLARD318c0b92007-11-24 21:17:55 +0100208LIBS += drivers/misc/libmisc.a
Haavard Skinnemoen5ce13052008-06-12 19:27:56 +0200209LIBS += drivers/mmc/libmmc.a
Jean-Christophe PLAGNIOL-VILLARD59829cc2007-11-24 21:26:56 +0100210LIBS += drivers/mtd/libmtd.a
211LIBS += drivers/mtd/nand/libnand.a
Jean-Christophe PLAGNIOL-VILLARD59829cc2007-11-24 21:26:56 +0100212LIBS += drivers/mtd/onenand/libonenand.a
Kyungmin Park58be3a12008-11-19 16:38:24 +0100213LIBS += drivers/mtd/ubi/libubi.a
Haavard Skinnemoend25ce7d2008-05-16 11:10:33 +0200214LIBS += drivers/mtd/spi/libspi_flash.a
TsiChung Liew8e585f02007-06-18 13:50:13 -0500215LIBS += drivers/net/libnet.a
Jean-Christophe PLAGNIOL-VILLARD55195772008-08-29 01:18:01 +0200216LIBS += drivers/net/phy/libphy.a
Jean-Christophe PLAGNIOL-VILLARD93a686e2007-11-20 20:28:09 +0100217LIBS += drivers/pci/libpci.a
Jean-Christophe PLAGNIOL-VILLARD73646212007-11-20 20:33:09 +0100218LIBS += drivers/pcmcia/libpcmcia.a
Tom Rixcd782632009-06-28 12:52:29 -0500219LIBS += drivers/power/libpower.a
Ben Warren04a9e112008-01-16 22:37:35 -0500220LIBS += drivers/spi/libspi.a
Dave Liu7737d5c2006-11-03 12:11:15 -0600221ifeq ($(CPU),mpc83xx)
222LIBS += drivers/qe/qe.a
223endif
Andy Flemingda9d4612007-08-14 00:14:25 -0500224ifeq ($(CPU),mpc85xx)
225LIBS += drivers/qe/qe.a
Stefan Roesea47a12b2010-04-15 16:07:28 +0200226LIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a
227LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a
Kumar Gala58e5e9a2008-08-26 15:01:29 -0500228endif
229ifeq ($(CPU),mpc86xx)
Stefan Roesea47a12b2010-04-15 16:07:28 +0200230LIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a
231LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a
Andy Flemingda9d4612007-08-14 00:14:25 -0500232endif
Jean-Christophe PLAGNIOL-VILLARD59829cc2007-11-24 21:26:56 +0100233LIBS += drivers/rtc/librtc.a
TsiChung Liew8e585f02007-06-18 13:50:13 -0500234LIBS += drivers/serial/libserial.a
Detlev Zundel572e6172009-03-30 00:31:32 +0200235LIBS += drivers/twserial/libtws.a
Jean-Christophe PLAGNIOL-VILLARD2731b9a2009-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 Rixbffbb2a2009-10-31 12:37:40 -0500239LIBS += drivers/usb/phy/libusb_phy.a
Jean-Christophe PLAGNIOL-VILLARD59829cc2007-11-24 21:26:56 +0100240LIBS += drivers/video/libvideo.a
Jean-Christophe PLAGNIOL-VILLARD843a2652009-03-27 23:26:42 +0100241LIBS += drivers/watchdog/libwatchdog.a
wdenk7ebf7442002-11-02 23:17:16 +0000242LIBS += common/libcommon.a
Peter Tyser0de71d52010-04-12 22:28:06 -0500243LIBS += lib/libfdt/libfdt.a
Rafal Jaworowski500856e2008-01-09 19:39:36 +0100244LIBS += api/libapi.a
Yuri Tikhonov2d2b9942008-03-31 10:51:37 +0200245LIBS += post/libpost.a
Marian Balakowiczf9328632006-09-01 19:49:50 +0200246
247LIBS := $(addprefix $(obj),$(LIBS))
Peter Tyser561858e2008-11-03 09:30:59 -0600248.PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE)
wdenka8c7c702003-12-06 19:49:23 +0000249
Wolfgang Denkde109d92008-04-30 17:25:07 +0200250LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
251LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
252
wdenk4f7cb082003-09-11 23:06:34 +0000253# Add GCC lib
Wolfgang Denk52b1bf22009-07-23 13:15:59 +0200254ifdef USE_PRIVATE_LIBGCC
255ifeq ("$(USE_PRIVATE_LIBGCC)", "yes")
Peter Tyserea0364f2010-04-12 22:28:04 -0500256PLATFORM_LIBGCC = -L $(OBJTREE)/arch/$(ARCH)/lib -lgcc
Wolfgang Denk52b1bf22009-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
wdenk3d3befa2004-03-14 15:06:13 +0000265
Mike Frysinger6ac9f472009-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 Roese887e2ec2006-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 Park751b9b52008-01-17 16:43:25 +0900279ifeq ($(CONFIG_ONENAND_U_BOOT),y)
280ONENAND_IPL = onenand_ipl
281U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
Kyungmin Parkca6189d2009-09-22 09:05:00 +0900282ONENAND_BIN ?= $(obj)onenand_ipl/onenand-ipl-2k.bin
Kyungmin Park751b9b52008-01-17 16:43:25 +0900283endif
284
Marian Balakowiczf9328632006-09-01 19:49:50 +0200285__OBJS := $(subst $(obj),,$(OBJS))
Wolfgang Denkde109d92008-04-30 17:25:07 +0200286__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
Marian Balakowiczf9328632006-09-01 19:49:50 +0200287
wdenk7ebf7442002-11-02 23:17:16 +0000288#########################################################################
wdenkbdccc4f2003-08-05 17:43:17 +0000289#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000290
Mike Frysinger3e883372009-06-15 00:25:19 -0400291# Always append ALL so that arch config.mk's can add custom ones
Kyungmin Park751b9b52008-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
wdenkbdccc4f2003-08-05 17:43:17 +0000294all: $(ALL)
wdenk7ebf7442002-11-02 23:17:16 +0000295
Marian Balakowiczf9328632006-09-01 19:49:50 +0200296$(obj)u-boot.hex: $(obj)u-boot
wdenk6310eb92005-01-09 21:28:15 +0000297 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
298
Marian Balakowiczf9328632006-09-01 19:49:50 +0200299$(obj)u-boot.srec: $(obj)u-boot
Ricardo Ribalda Delgado0817d682008-09-07 17:10:27 -0400300 $(OBJCOPY) -O srec $< $@
wdenk7ebf7442002-11-02 23:17:16 +0000301
Marian Balakowiczf9328632006-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 Frysinger94a91e22008-02-04 19:26:57 -0500305$(obj)u-boot.ldr: $(obj)u-boot
Mike Frysinger76d82182009-07-21 22:17:36 -0400306 $(CREATE_LDR_ENV)
Mike Frysinger68e56322008-08-07 18:56:56 -0400307 $(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS)
Mike Frysinger94a91e22008-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 Balakowiczf9328632006-09-01 19:49:50 +0200315$(obj)u-boot.img: $(obj)u-boot.bin
Wolfgang Denka2a0a712010-05-15 21:23:51 +0200316 $(obj)tools/mkimage -A $(ARCH) -T firmware -C none \
wdenkbdccc4f2003-08-05 17:43:17 +0000317 -a $(TEXT_BASE) -e 0 \
Wolfgang Denk881a87e2006-02-21 17:33:04 +0100318 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
wdenkbdccc4f2003-08-05 17:43:17 +0000319 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
320 -d $< $@
321
Stefano Babic8edcde52010-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 Wadaskaraa0c7a82009-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 Schocher566a4942007-06-22 19:11:54 +0200330$(obj)u-boot.sha1: $(obj)u-boot.bin
Heiko Schocher01159532007-07-14 01:06:58 +0200331 $(obj)tools/ubsha1 $(obj)u-boot.bin
Heiko Schocher566a4942007-06-22 19:11:54 +0200332
Marian Balakowiczf9328632006-09-01 19:49:50 +0200333$(obj)u-boot.dis: $(obj)u-boot
wdenk7ebf7442002-11-02 23:17:16 +0000334 $(OBJDUMP) -d $< > $@
335
Mike Frysingerecb1dc82009-05-20 04:35:14 -0400336GEN_UBOOT = \
Wolfgang Denkde109d92008-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 Balakowiczf9328632006-09-01 19:49:50 +0200339 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
340 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
wdenkb2184c32002-11-19 23:01:07 +0000341 -Map u-boot.map -o u-boot
Wolfgang Denk1aada9c2009-08-17 14:00:53 +0200342$(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds
Mike Frysingerecb1dc82009-05-20 04:35:14 -0400343 $(GEN_UBOOT)
344ifeq ($(CONFIG_KALLSYMS),y)
Wolfgang Denk1aada9c2009-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 Frysingerecb1dc82009-05-20 04:35:14 -0400349 $(GEN_UBOOT) $(obj)common/system_map.o
350endif
wdenk7ebf7442002-11-02 23:17:16 +0000351
Peter Tyserd0d61442009-03-13 18:54:25 -0500352$(OBJS): depend
Peter Tyser03b70042010-04-12 22:28:02 -0500353 $(MAKE) -C $(CPUDIR) $(if $(REMOTE_BUILD),$@,$(notdir $@))
Marian Balakowiczf9328632006-09-01 19:49:50 +0200354
Peter Tyserd0d61442009-03-13 18:54:25 -0500355$(LIBS): depend $(SUBDIRS)
Marian Balakowiczf9328632006-09-01 19:49:50 +0200356 $(MAKE) -C $(dir $(subst $(obj),,$@))
wdenka8c7c702003-12-06 19:49:23 +0000357
Peter Tyserd0d61442009-03-13 18:54:25 -0500358$(LIBBOARD): depend $(LIBS)
Wolfgang Denkde109d92008-04-30 17:25:07 +0200359 $(MAKE) -C $(dir $(subst $(obj),,$@))
360
Peter Tyserd0d61442009-03-13 18:54:25 -0500361$(SUBDIRS): depend
wdenkb028f712003-12-07 21:39:28 +0000362 $(MAKE) -C $@ all
wdenk7ebf7442002-11-02 23:17:16 +0000363
Peter Tyserd0d61442009-03-13 18:54:25 -0500364$(LDSCRIPT): depend
Mike Frysingerf65c9812008-02-16 02:12:37 -0500365 $(MAKE) -C $(dir $@) $(notdir $@)
366
Wolfgang Denk1aada9c2009-08-17 14:00:53 +0200367$(obj)u-boot.lds: $(LDSCRIPT)
368 $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
369
Peter Tyser561858e2008-11-03 09:30:59 -0600370$(NAND_SPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
Marian Balakowicz8318fbf2006-10-23 22:17:05 +0200371 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
Stefan Roese887e2ec2006-09-07 11:51:23 +0200372
Peter Tyserd0d61442009-03-13 18:54:25 -0500373$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
Marian Balakowicz8318fbf2006-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 Roese887e2ec2006-09-07 11:51:23 +0200375
Peter Tyser561858e2008-11-03 09:30:59 -0600376$(ONENAND_IPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
Stefan Roesef2302d42008-08-06 14:05:38 +0200377 $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
Kyungmin Park751b9b52008-01-17 16:43:25 +0900378
Peter Tyserd0d61442009-03-13 18:54:25 -0500379$(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin
Kyungmin Parkca6189d2009-09-22 09:05:00 +0900380 cat $(ONENAND_BIN) $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
Kyungmin Park751b9b52008-01-17 16:43:25 +0900381
Wolfgang Denkae6d1052008-01-13 00:59:21 +0100382$(VERSION_FILE):
Mike Frysingeraa737942008-05-02 21:45:12 -0400383 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
Peter Tyser434c51a2008-11-12 13:06:48 -0600384 '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp
Mike Frysinger0ec7a062008-02-04 17:44:23 -0500385 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
Wolfgang Denk881a87e2006-02-21 17:33:04 +0100386
Peter Tyser561858e2008-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
dzu8f713fd2003-08-07 14:20:31 +0000391gdbtools:
Marian Balakowiczf9328632006-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ücher64b37272007-11-27 10:23:20 +0100398 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
dzu8f713fd2003-08-07 14:20:31 +0000399
Daniel Hobi2a998792010-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 Tyserd0d61442009-03-13 18:54:25 -0500402depend dep: $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
Peter Tyser03b70042010-04-12 22:28:02 -0500403 for dir in $(SUBDIRS) $(CPUDIR) $(dir $(LDSCRIPT)) ; do \
Daniel Hobi2a998792010-01-18 18:13:39 +0100404 $(MAKE) -C $$dir _depend ; done
wdenk7ebf7442002-11-02 23:17:16 +0000405
Li Yange5e4e702009-12-09 18:13:26 +0800406TAG_SUBDIRS = $(SUBDIRS)
407TAG_SUBDIRS += $(dir $(__LIBS))
Jean-Christophe PLAGNIOL-VILLARDa340c322007-11-25 18:45:47 +0100408TAG_SUBDIRS += include
Jean-Christophe PLAGNIOL-VILLARDa340c322007-11-25 18:45:47 +0100409
Marian Balakowiczf9328632006-09-01 19:49:50 +0200410tags ctags:
Li Yange5e4e702009-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 Yange5e4e702009-12-09 18:13:26 +0800415 etags -a -o $(obj)etags `find $(TAG_SUBDIRS) \
416 -name '*.[chS]' -print`
Li Yangffda5862008-02-29 11:46:05 +0800417cscope:
Li Yange5e4e702009-12-09 18:13:26 +0800418 find $(TAG_SUBDIRS) -name '*.[chS]' -print > cscope.files
Li Yangffda5862008-02-29 11:46:05 +0800419 cscope -b -q -k
wdenk7ebf7442002-11-02 23:17:16 +0000420
Mike Frysingerecb1dc82009-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 Frysingerecb1dc82009-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 Likely2f155f62007-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 Denk1510b822008-05-13 23:15:52 +0200434$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
435 @$(XECHO) Generating $@ ; \
Mike Frysinger16fe7772008-02-18 05:10:07 -0500436 set -e ; \
Wolfgang Denkae6d1052008-01-13 00:59:21 +0100437 : Generate the dependancies ; \
Mike Frysinger9aef7382009-07-19 15:17:03 -0400438 $(CC) -x c -DDO_DEPS_ONLY -M $(HOSTCFLAGS) $(CPPFLAGS) \
Wolfgang Denk1510b822008-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 Denkae6d1052008-01-13 00:59:21 +0100444 : Extract the config macros ; \
Wolfgang Denk1510b822008-05-13 23:15:52 +0200445 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
Wolfgang Denk4a0f7532008-12-16 14:41:02 +0100446 sed -n -f tools/scripts/define2mk.sed > $@.tmp && \
447 mv $@.tmp $@
Grant Likely2f155f62007-09-24 09:05:31 -0600448
wdenk7ebf7442002-11-02 23:17:16 +0000449#########################################################################
Wolfgang Denkae6d1052008-01-13 00:59:21 +0100450else # !config.mk
Marian Balakowiczf9328632006-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 Frysingerc7c0d542010-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 Frysingerc7c0d542010-01-21 04:03:22 -0500457
458tools:
459 $(MAKE) -C tools
460tools-all:
461 $(MAKE) -C tools HOST_TOOLS_ALL=y
Wolfgang Denkae6d1052008-01-13 00:59:21 +0100462endif # config.mk
wdenk7ebf7442002-11-02 23:17:16 +0000463
Wolfgang Denk4e53a252006-10-25 00:43:17 +0200464.PHONY : CHANGELOG
465CHANGELOG:
Ben Warrenb985b5d2006-10-26 14:38:25 -0400466 git log --no-merges U-Boot-1_1_5.. | \
467 unexpand -a | sed -e 's/\s\s*$$//' > $@
Wolfgang Denk4e53a252006-10-25 00:43:17 +0200468
Harald Welte0a823aa2008-07-09 22:30:30 +0800469include/license.h: tools/bin2header COPYING
Wolfgang Denk0e42ada2010-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 Roese887e2ec2006-09-07 11:51:23 +0200474 @rm -f $(obj)include/config.h $(obj)include/config.mk \
Grant Likely2f155f62007-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
Wolfgang Denka6862bc2010-05-27 23:18:36 +0200478%_config:: unconfig
479 @$(MKCONFIG) -A $(@:_config=)
480
481##%: %_config
482## $(MAKE)
Mike Frysinger9f4a4202009-10-01 12:11:54 -0400483
Wolfgang Denk8c994632010-05-27 23:18:35 +0200484#
485# Functions to generate common board directory names
486#
487lcname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\L\1/')
488ucname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\U\1/')
489
wdenk7ebf7442002-11-02 23:17:16 +0000490#========================================================================
491# PowerPC
492#========================================================================
wdenk0db5bca2003-03-31 17:27:09 +0000493
494#########################################################################
wdenk945af8d2003-07-16 21:53:01 +0000495## MPC5xxx Systems
496#########################################################################
wdenka87589d2005-06-10 10:00:19 +0000497
Grzegorz Bernacki5c4fa9b2009-03-17 10:06:40 +0100498digsy_mtc_config \
499digsy_mtc_LOWBOOT_config \
500digsy_mtc_RAMBOOT_config: unconfig
501 @mkdir -p $(obj)include
502 @mkdir -p $(obj)board/digsy_mtc
503 @ >$(obj)include/config.h
504 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200505 echo "TEXT_BASE = 0xFF000000" >$(obj)board/digsy_mtc/config.tmp
Grzegorz Bernacki5c4fa9b2009-03-17 10:06:40 +0100506 @[ -z "$(findstring RAMBOOT_,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200507 echo "TEXT_BASE = 0x00100000" >$(obj)board/digsy_mtc/config.tmp
Wolfgang Denked7a1962010-05-27 23:18:34 +0200508 @$(MKCONFIG) -n $@ -a digsy_mtc powerpc mpc5xxx digsy_mtc
Grzegorz Bernacki5c4fa9b2009-03-17 10:06:40 +0100509
Eric Millbrandt5b53b292009-08-13 10:14:21 -0500510galaxy5200_LOWBOOT_config \
511galaxy5200_config: unconfig
512 @mkdir -p $(obj)include
513 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200514 @$(MKCONFIG) -n $@ -a galaxy5200 powerpc mpc5xxx galaxy5200
Eric Millbrandt5b53b292009-08-13 10:14:21 -0500515
wdenke35745b2004-04-18 23:32:11 +0000516Lite5200_config \
517Lite5200_LOWBOOT_config \
518Lite5200_LOWBOOT08_config \
519icecube_5200_config \
520icecube_5200_LOWBOOT_config \
521icecube_5200_LOWBOOT08_config \
Wolfgang Denkdd520bf2006-11-30 18:02:20 +0100522icecube_5200_DDR_config \
523icecube_5200_DDR_LOWBOOT_config \
Detlev Zundelfd428c02010-03-12 10:01:12 +0100524icecube_5200_DDR_LOWBOOT08_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200525 @mkdir -p $(obj)include
526 @mkdir -p $(obj)board/icecube
wdenk17d704e2004-04-10 20:43:50 +0000527 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200528 if [ "$(findstring DDR,$@)" ] ; \
Marian Balakowiczf9328632006-09-01 19:49:50 +0200529 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
530 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200531 fi
wdenk5cf9da42003-11-07 13:42:26 +0000532 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200533 echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp
wdenkb2001f22003-12-20 22:45:10 +0000534 @[ -z "$(findstring DDR,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200535 echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
536 @$(MKCONFIG) -n $@ -a IceCube powerpc mpc5xxx icecube
wdenk945af8d2003-07-16 21:53:01 +0000537
Wolfgang Denk09e4b0c2006-03-17 11:42:53 +0100538lite5200b_config \
Domen Puncerd3832e82007-04-16 14:00:13 +0200539lite5200b_PM_config \
Wolfgang Denk09e4b0c2006-03-17 11:42:53 +0100540lite5200b_LOWBOOT_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200541 @mkdir -p $(obj)include
542 @mkdir -p $(obj)board/icecube
Marian Balakowiczf9328632006-09-01 19:49:50 +0200543 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
Marian Balakowiczf9328632006-09-01 19:49:50 +0200544 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
Domen Puncerd3832e82007-04-16 14:00:13 +0200545 @[ -z "$(findstring _PM_,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200546 echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h
Wolfgang Denk09e4b0c2006-03-17 11:42:53 +0100547 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200548 echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp
549 @$(MKCONFIG) -n $@ -a IceCube powerpc mpc5xxx icecube
Wolfgang Denk09e4b0c2006-03-17 11:42:53 +0100550
Stefan Roesef1ee9822006-03-04 14:57:03 +0100551mcc200_config \
Wolfgang Denked1cf842006-08-24 00:26:42 +0200552mcc200_SDRAM_config \
553mcc200_highboot_config \
554mcc200_COM12_config \
555mcc200_COM12_SDRAM_config \
Wolfgang Denk113f64e2006-08-25 01:38:04 +0200556mcc200_COM12_highboot_config \
557mcc200_COM12_highboot_SDRAM_config \
Wolfgang Denked1cf842006-08-24 00:26:42 +0200558mcc200_highboot_SDRAM_config \
559prs200_config \
560prs200_DDR_config \
561prs200_highboot_config \
562prs200_highboot_DDR_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200563 @mkdir -p $(obj)include
564 @mkdir -p $(obj)board/mcc200
Wolfgang Denk4819fad2006-07-23 22:40:51 +0200565 @[ -z "$(findstring highboot,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200566 echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp
Wolfgang Denk4819fad2006-07-23 22:40:51 +0200567 @[ -n "$(findstring _SDRAM,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200568 if [ -n "$(findstring prs200,$@)" ]; \
569 then \
570 if [ -z "$(findstring _DDR,$@)" ];\
Wolfgang Denked1cf842006-08-24 00:26:42 +0200571 then \
Marian Balakowiczf9328632006-09-01 19:49:50 +0200572 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
Wolfgang Denked1cf842006-08-24 00:26:42 +0200573 fi; \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200574 fi
Wolfgang Denk4819fad2006-07-23 22:40:51 +0200575 @[ -z "$(findstring _SDRAM,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200576 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h
Wolfgang Denk463764c2006-08-17 00:36:51 +0200577 @[ -z "$(findstring COM12,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200578 echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h
Wolfgang Denked1cf842006-08-24 00:26:42 +0200579 @[ -z "$(findstring prs200,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200580 echo "#define CONFIG_PRS200" >>$(obj)include/config.h
Stefan Roesea47a12b2010-04-15 16:07:28 +0200581 @$(MKCONFIG) -n $@ -a mcc200 powerpc mpc5xxx mcc200
Wolfgang Denk86ea5f92006-02-22 00:43:16 +0100582
Wolfgang Denk699f0512008-07-15 22:22:44 +0200583MVBC_P_config: unconfig
584 @mkdir -p $(obj)include
585 @mkdir -p $(obj)board/mvbc_p
586 @ >$(obj)include/config.h
587 @[ -z "$(findstring MVBC_P,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200588 echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +0200589 @$(MKCONFIG) -n $@ -a $@ powerpc mpc5xxx mvbc_p matrix_vision
Wolfgang Denk699f0512008-07-15 22:22:44 +0200590
Andre Schwarz1f2463d2010-04-01 21:26:55 +0200591MVSMR_config: unconfig
592 @mkdir -p $(obj)include
593 @mkdir -p $(obj)board/matrix_vision/mvsmr
Wolfgang Denked7a1962010-05-27 23:18:34 +0200594 @$(MKCONFIG) $@ powerpc mpc5xxx mvsmr matrix_vision
Andre Schwarz1f2463d2010-04-01 21:26:55 +0200595
Jon Smirlc9969942009-06-14 18:21:28 -0400596pcm030_config \
597pcm030_LOWBOOT_config: unconfig
Wolfgang Denk341245a2009-07-19 12:05:15 +0200598 @mkdir -p $(obj)include $(obj)board/phytec/pcm030
Wolfgang Denk0a87dd92009-07-18 18:00:25 +0200599 @ >$(obj)include/config.h
Jon Smirlc9969942009-06-14 18:21:28 -0400600 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200601 echo "TEXT_BASE = 0xFF000000" >$(obj)board/phytec/pcm030/config.tmp
602 @$(MKCONFIG) -n $@ -a pcm030 powerpc mpc5xxx pcm030 phytec
Jon Smirlc9969942009-06-14 18:21:28 -0400603
wdenk89394042004-08-04 21:56:49 +0000604PM520_config \
605PM520_DDR_config \
606PM520_ROMBOOT_config \
607PM520_ROMBOOT_DDR_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200608 @mkdir -p $(obj)include
wdenk89394042004-08-04 21:56:49 +0000609 @[ -z "$(findstring DDR,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200610 echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
wdenk89394042004-08-04 21:56:49 +0000611 @[ -z "$(findstring ROMBOOT,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200612 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h
613 @$(MKCONFIG) -n $@ -a PM520 powerpc mpc5xxx pm520
wdenk89394042004-08-04 21:56:49 +0000614
Wolfgang Denk45a212c2006-07-19 17:52:30 +0200615TB5200_B_config \
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200616TB5200_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200617 @mkdir -p $(obj)include
Wolfgang Denk45a212c2006-07-19 17:52:30 +0200618 @[ -z "$(findstring _B,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200619 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h
Stefan Roesea47a12b2010-04-15 16:07:28 +0200620 @$(MKCONFIG) -n $@ -a TB5200 powerpc mpc5xxx tqm5200 tqc
Wolfgang Denkb87dfd22006-07-19 13:50:38 +0200621
wdenkd4ca31c2004-01-02 14:00:00 +0000622MINI5200_config \
623EVAL5200_config \
624TOP5200_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200625 @mkdir -p $(obj)include
626 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Stefan Roesea47a12b2010-04-15 16:07:28 +0200627 @$(MKCONFIG) -n $@ -a TOP5200 powerpc mpc5xxx top5200 emk
wdenkd4ca31c2004-01-02 14:00:00 +0000628
wdenk6c7a1402004-07-11 19:17:20 +0000629Total5200_config \
630Total5200_lowboot_config \
631Total5200_Rev2_config \
632Total5200_Rev2_lowboot_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200633 @mkdir -p $(obj)include
634 @mkdir -p $(obj)board/total5200
wdenk6c7a1402004-07-11 19:17:20 +0000635 @[ -n "$(findstring Rev,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200636 echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h
wdenk6c7a1402004-07-11 19:17:20 +0000637 @[ -z "$(findstring Rev2_,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200638 echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h
wdenk6c7a1402004-07-11 19:17:20 +0000639 @[ -z "$(findstring lowboot_,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200640 echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp
641 @$(MKCONFIG) -n $@ -a Total5200 powerpc mpc5xxx total5200
wdenk6c7a1402004-07-11 19:17:20 +0000642
Wolfgang Denk5196a7a2006-08-18 23:27:33 +0200643cam5200_config \
Marian Balakowiczd9384de2007-01-10 00:26:15 +0100644cam5200_niosflash_config \
Wolfgang Denk5196a7a2006-08-18 23:27:33 +0200645fo300_config \
646MiniFAP_config \
Wolfgang Denk5078cce2006-07-21 11:16:34 +0200647TQM5200S_config \
648TQM5200S_HIGHBOOT_config \
Wolfgang Denk5196a7a2006-08-18 23:27:33 +0200649TQM5200_B_config \
650TQM5200_B_HIGHBOOT_config \
651TQM5200_config \
652TQM5200_STK100_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200653 @mkdir -p $(obj)include
Wolfgang Grandegger46779882008-06-04 13:52:17 +0200654 @mkdir -p $(obj)board/tqc/tqm5200
Wolfgang Denk135ae002006-07-22 01:20:03 +0200655 @[ -z "$(findstring cam5200,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200656 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
657 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
658 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
Wolfgang Denk5078cce2006-07-21 11:16:34 +0200659 }
Marian Balakowiczd9384de2007-01-10 00:26:15 +0100660 @[ -z "$(findstring niosflash,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200661 echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h
Marian Balakowicz6d3bc9b2006-08-18 19:14:46 +0200662 @[ -z "$(findstring fo300,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200663 echo "#define CONFIG_FO300" >>$(obj)include/config.h
Wolfgang Denkcd65a3d2006-06-16 16:11:34 +0200664 @[ -z "$(findstring MiniFAP,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200665 echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h
Wolfgang Denkcd65a3d2006-06-16 16:11:34 +0200666 @[ -z "$(findstring STK100,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200667 echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h
Wolfgang Denk5078cce2006-07-21 11:16:34 +0200668 @[ -z "$(findstring TQM5200_B,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200669 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h
Wolfgang Denk5078cce2006-07-21 11:16:34 +0200670 @[ -z "$(findstring TQM5200S,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200671 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
672 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
Wolfgang Denk45a212c2006-07-19 17:52:30 +0200673 }
Wolfgang Denk978b1092006-07-19 18:01:38 +0200674 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200675 echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp
Stefan Roesea47a12b2010-04-15 16:07:28 +0200676 @$(MKCONFIG) -n $@ -a TQM5200 powerpc mpc5xxx tqm5200 tqc
Wolfgang Denk699f0512008-07-15 22:22:44 +0200677
wdenk945af8d2003-07-16 21:53:01 +0000678#########################################################################
Rafal Jaworowski8993e542007-07-27 14:43:59 +0200679## MPC512x Systems
680#########################################################################
Wolfgang Denk699f0512008-07-15 22:22:44 +0200681
Wolfgang Denk72601d02009-05-16 10:47:41 +0200682mpc5121ads_config \
683mpc5121ads_rev2_config \
Martha Marxf31c49d2008-05-29 14:23:25 -0400684 : unconfig
Wolfgang Denk210ed202008-03-09 00:06:09 +0100685 @mkdir -p $(obj)include
Martha Marxf31c49d2008-05-29 14:23:25 -0400686 @if [ "$(findstring rev2,$@)" ] ; then \
687 echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
John Rigby5f91db72008-02-26 09:38:14 -0700688 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200689 @$(MKCONFIG) -n $@ -a mpc5121ads powerpc mpc512x mpc5121ads freescale
Rafal Jaworowski8993e542007-07-27 14:43:59 +0200690
691#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000692## MPC8xx Systems
693#########################################################################
694
wdenk2d24a3a2004-06-09 21:50:45 +0000695Adder87x_config \
Wolfgang Denkf9301e12008-03-04 14:58:31 +0100696AdderII_config \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200697AdderUSB_config \
698Adder_config \
wdenk2d24a3a2004-06-09 21:50:45 +0000699 : unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200700 @mkdir -p $(obj)include
wdenk26238132004-07-09 22:51:01 +0000701 $(if $(findstring AdderII,$@), \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200702 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
703 @$(MKCONFIG) -n $@ -a Adder powerpc mpc8xx adder
Wolfgang Denk16c8d5e2006-06-14 17:45:53 +0200704
Wolfgang Denkf9301e12008-03-04 14:58:31 +0100705ADS860_config \
706FADS823_config \
wdenk180d3f72004-01-04 16:28:35 +0000707FADS850SAR_config \
708MPC86xADS_config \
wdenk11142572004-06-06 21:35:06 +0000709MPC885ADS_config \
wdenk180d3f72004-01-04 16:28:35 +0000710FADS860T_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +0200711 @$(MKCONFIG) -n $@ $@ powerpc mpc8xx fads
wdenk7ebf7442002-11-02 23:17:16 +0000712
wdenk7aa78612003-05-03 15:50:43 +0000713GEN860T_SC_config \
wdenk7ebf7442002-11-02 23:17:16 +0000714GEN860T_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200715 @mkdir -p $(obj)include
wdenk7aa78612003-05-03 15:50:43 +0000716 @[ -z "$(findstring _SC,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200717 echo "#define CONFIG_SC" >>$(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +0200718 @$(MKCONFIG) -n $@ -a GEN860T powerpc mpc8xx gen860t
wdenk7ebf7442002-11-02 23:17:16 +0000719
wdenk7ebf7442002-11-02 23:17:16 +0000720ICU862_100MHz_config \
721ICU862_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200722 @mkdir -p $(obj)include
wdenk7ebf7442002-11-02 23:17:16 +0000723 @[ -z "$(findstring _100MHz,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200724 echo "#define CONFIG_100MHz" >>$(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +0200725 @$(MKCONFIG) -n $@ -a ICU862 powerpc mpc8xx icu862
wdenk7ebf7442002-11-02 23:17:16 +0000726
wdenk7ebf7442002-11-02 23:17:16 +0000727IVML24_256_config \
728IVML24_128_config \
729IVML24_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200730 @mkdir -p $(obj)include
wdenk7ebf7442002-11-02 23:17:16 +0000731 @[ -z "$(findstring IVML24_config,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200732 echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000733 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200734 echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000735 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200736 echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h
737 @$(MKCONFIG) -n $@ -a IVML24 powerpc mpc8xx ivm
wdenk7ebf7442002-11-02 23:17:16 +0000738
739IVMS8_256_config \
740IVMS8_128_config \
741IVMS8_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200742 @mkdir -p $(obj)include
wdenk7ebf7442002-11-02 23:17:16 +0000743 @[ -z "$(findstring IVMS8_config,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200744 echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000745 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200746 echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000747 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200748 echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h
749 @$(MKCONFIG) -n $@ -a IVMS8 powerpc mpc8xx ivm
wdenk7ebf7442002-11-02 23:17:16 +0000750
wdenk7ebf7442002-11-02 23:17:16 +0000751MBX_config \
752MBX860T_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +0200753 @$(MKCONFIG) -n $@ $@ powerpc mpc8xx mbx8xx
wdenk7ebf7442002-11-02 23:17:16 +0000754
wdenk993cad92003-06-26 22:04:09 +0000755NETVIA_V2_config \
wdenk7ebf7442002-11-02 23:17:16 +0000756NETVIA_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200757 @mkdir -p $(obj)include
wdenk993cad92003-06-26 22:04:09 +0000758 @[ -z "$(findstring NETVIA_config,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200759 echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h
wdenk993cad92003-06-26 22:04:09 +0000760 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200761 echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +0200762 @$(MKCONFIG) -n $@ -a NETVIA powerpc mpc8xx netvia
wdenkc26e4542004-04-18 10:13:26 +0000763
764NETPHONE_V2_config \
wdenk04a85b32004-04-15 18:22:41 +0000765NETPHONE_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200766 @mkdir -p $(obj)include
wdenkc26e4542004-04-18 10:13:26 +0000767 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200768 echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h
wdenkc26e4542004-04-18 10:13:26 +0000769 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200770 echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +0200771 @$(MKCONFIG) -n $@ -a NETPHONE powerpc mpc8xx netphone
wdenk04a85b32004-04-15 18:22:41 +0000772
wdenk79fa88f2004-06-07 23:46:25 +0000773NETTA_ISDN_6412_SWAPHOOK_config \
774NETTA_ISDN_SWAPHOOK_config \
775NETTA_6412_SWAPHOOK_config \
776NETTA_SWAPHOOK_config \
777NETTA_ISDN_6412_config \
wdenk04a85b32004-04-15 18:22:41 +0000778NETTA_ISDN_config \
wdenk79fa88f2004-06-07 23:46:25 +0000779NETTA_6412_config \
wdenk04a85b32004-04-15 18:22:41 +0000780NETTA_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200781 @mkdir -p $(obj)include
wdenk79fa88f2004-06-07 23:46:25 +0000782 @[ -z "$(findstring ISDN_,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200783 echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h
wdenk79fa88f2004-06-07 23:46:25 +0000784 @[ -n "$(findstring ISDN_,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200785 echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h
wdenk79fa88f2004-06-07 23:46:25 +0000786 @[ -z "$(findstring 6412_,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200787 echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h
wdenk79fa88f2004-06-07 23:46:25 +0000788 @[ -n "$(findstring 6412_,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200789 echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h
wdenk79fa88f2004-06-07 23:46:25 +0000790 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200791 echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h
wdenk79fa88f2004-06-07 23:46:25 +0000792 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200793 echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +0200794 @$(MKCONFIG) -n $@ -a NETTA powerpc mpc8xx netta
wdenk79fa88f2004-06-07 23:46:25 +0000795
796NETTA2_V2_config \
797NETTA2_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200798 @mkdir -p $(obj)include
wdenk79fa88f2004-06-07 23:46:25 +0000799 @[ -z "$(findstring NETTA2_config,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200800 echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h
wdenk79fa88f2004-06-07 23:46:25 +0000801 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200802 echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +0200803 @$(MKCONFIG) -n $@ -a NETTA2 powerpc mpc8xx netta2
wdenk79fa88f2004-06-07 23:46:25 +0000804
dzu@denx.dea367d422006-04-19 11:52:46 +0200805NC650_Rev1_config \
806NC650_Rev2_config \
807CP850_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200808 @mkdir -p $(obj)include
dzu@denx.dea367d422006-04-19 11:52:46 +0200809 @[ -z "$(findstring CP850,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200810 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
811 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
812 }
dzu@denx.dea367d422006-04-19 11:52:46 +0200813 @[ -z "$(findstring Rev1,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200814 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
815 }
dzu@denx.dea367d422006-04-19 11:52:46 +0200816 @[ -z "$(findstring Rev2,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200817 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
818 }
819 @$(MKCONFIG) -n $@ -a NC650 powerpc mpc8xx nc650
wdenk7ca202f2004-08-28 22:45:57 +0000820
Wolfgang Denkdd520bf2006-11-30 18:02:20 +0100821RPXlite_DW_64_config \
822RPXlite_DW_LCD_config \
823RPXlite_DW_64_LCD_config \
wdenke63c8ee2004-06-09 21:04:48 +0000824RPXlite_DW_NVRAM_config \
Wolfgang Denkf9301e12008-03-04 14:58:31 +0100825RPXlite_DW_NVRAM_64_config \
wdenke63c8ee2004-06-09 21:04:48 +0000826RPXlite_DW_NVRAM_LCD_config \
Wolfgang Denkf9301e12008-03-04 14:58:31 +0100827RPXlite_DW_NVRAM_64_LCD_config \
Wolfgang Denk05bf4912007-10-21 01:01:17 +0200828RPXlite_DW_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200829 @mkdir -p $(obj)include
wdenke63c8ee2004-06-09 21:04:48 +0000830 @[ -z "$(findstring _64,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200831 echo "#define RPXlite_64MHz" >>$(obj)include/config.h
wdenke63c8ee2004-06-09 21:04:48 +0000832 @[ -z "$(findstring _LCD,$@)" ] || \
Wolfgang Denkdd520bf2006-11-30 18:02:20 +0100833 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
Marian Balakowiczf9328632006-09-01 19:49:50 +0200834 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
wdenke63c8ee2004-06-09 21:04:48 +0000835 }
836 @[ -z "$(findstring _NVRAM,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200837 echo "#define CONFIG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h
838 @$(MKCONFIG) -n $@ -a RPXlite_DW powerpc mpc8xx RPXlite_dw
wdenke63c8ee2004-06-09 21:04:48 +0000839
wdenk7ebf7442002-11-02 23:17:16 +0000840RRvision_LCD_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200841 @mkdir -p $(obj)include
842 @echo "#define CONFIG_LCD" >$(obj)include/config.h
843 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
Stefan Roesea47a12b2010-04-15 16:07:28 +0200844 @$(MKCONFIG) -a RRvision powerpc mpc8xx RRvision
wdenk7ebf7442002-11-02 23:17:16 +0000845
wdenk7ebf7442002-11-02 23:17:16 +0000846SPD823TS_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +0200847 @$(MKCONFIG) $@ powerpc mpc8xx spd8xx
wdenk7ebf7442002-11-02 23:17:16 +0000848
849SXNI855T_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +0200850 @$(MKCONFIG) $@ powerpc mpc8xx sixnet
wdenk7ebf7442002-11-02 23:17:16 +0000851
852# Play some tricks for configuration selection
wdenke9132ea2004-04-24 23:23:30 +0000853# Only 855 and 860 boards may come with FEC
854# and only 823 boards may have LCD support
Wolfgang Denked7a1962010-05-27 23:18:34 +0200855xtract_8xx = $(subst _LCD,,$1)
wdenk7ebf7442002-11-02 23:17:16 +0000856
857FPS850L_config \
wdenk384ae022002-11-05 00:17:55 +0000858FPS860L_config \
wdenkf12e5682003-07-07 20:07:54 +0000859NSCU_config \
wdenk7ebf7442002-11-02 23:17:16 +0000860TQM823L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000861TQM823L_LCD_config \
wdenk7ebf7442002-11-02 23:17:16 +0000862TQM850L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000863TQM855L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000864TQM860L_config \
wdenkd126bfb2003-04-10 11:18:18 +0000865TQM862L_config \
wdenkae3af052003-08-07 22:18:11 +0000866TQM823M_config \
wdenkae3af052003-08-07 22:18:11 +0000867TQM850M_config \
wdenkf12e5682003-07-07 20:07:54 +0000868TQM855M_config \
wdenkf12e5682003-07-07 20:07:54 +0000869TQM860M_config \
wdenkf12e5682003-07-07 20:07:54 +0000870TQM862M_config \
Wolfgang Denk8cba0902006-05-12 16:15:46 +0200871TQM866M_config \
Markus Klotzbuecher090eb732006-07-12 15:26:01 +0200872TQM885D_config \
Guennadi Liakhovetskiefc6f442008-01-10 17:59:07 +0100873TK885D_config \
Wolfgang Denk8cba0902006-05-12 16:15:46 +0200874virtlab2_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200875 @mkdir -p $(obj)include
wdenk7ebf7442002-11-02 23:17:16 +0000876 @[ -z "$(findstring _LCD,$@)" ] || \
Marian Balakowiczf9328632006-09-01 19:49:50 +0200877 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
878 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +0000879 }
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200880 @$(MKCONFIG) -n $@ -a $(call xtract_8xx,$@) powerpc mpc8xx tqm8xx tqc
wdenk7ebf7442002-11-02 23:17:16 +0000881
882TTTech_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200883 @mkdir -p $(obj)include
884 @echo "#define CONFIG_LCD" >$(obj)include/config.h
885 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
Stefan Roesea47a12b2010-04-15 16:07:28 +0200886 @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc
wdenk7ebf7442002-11-02 23:17:16 +0000887
wdenk608c9142003-01-13 23:54:46 +0000888v37_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200889 @mkdir -p $(obj)include
890 @echo "#define CONFIG_LCD" >$(obj)include/config.h
891 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +0200892 @$(MKCONFIG) $@ powerpc mpc8xx v37
wdenk608c9142003-01-13 23:54:46 +0000893
dzu91e940d2003-09-25 22:32:40 +0000894wtk_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200895 @mkdir -p $(obj)include
896 @echo "#define CONFIG_LCD" >$(obj)include/config.h
897 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
Stefan Roesea47a12b2010-04-15 16:07:28 +0200898 @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc
dzu91e940d2003-09-25 22:32:40 +0000899
wdenk7ebf7442002-11-02 23:17:16 +0000900#########################################################################
901## PPC4xx Systems
902#########################################################################
903
Stefan Roesec440bfe2007-06-06 11:42:13 +0200904acadia_nand_config: unconfig
Wolfgang Denk63e22762007-08-02 10:11:18 +0200905 @mkdir -p $(obj)include $(obj)board/amcc/acadia
906 @mkdir -p $(obj)nand_spl/board/amcc/acadia
Stefan Roesec440bfe2007-06-06 11:42:13 +0200907 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Stefan Roesec440bfe2007-06-06 11:42:13 +0200908 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
909 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denked7a1962010-05-27 23:18:34 +0200910 @$(MKCONFIG) -n $@ -a acadia powerpc ppc4xx acadia amcc
Stefan Roesec440bfe2007-06-06 11:42:13 +0200911
Stefan Roesecf959c72007-06-01 15:27:11 +0200912bamboo_nand_config: unconfig
Wolfgang Denk63e22762007-08-02 10:11:18 +0200913 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
914 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
Stefan Roesecf959c72007-06-01 15:27:11 +0200915 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Stefan Roesecf959c72007-06-01 15:27:11 +0200916 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
917 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denked7a1962010-05-27 23:18:34 +0200918 @$(MKCONFIG) -n $@ -a bamboo powerpc ppc4xx bamboo amcc
Stefan Roesecf959c72007-06-01 15:27:11 +0200919
Adam Grahamf09f09d2008-10-08 10:12:53 -0700920# Arches, Canyonlands & Glacier use different U-Boot images
921arches_config \
Stefan Roese4c9e8552008-03-19 16:20:49 +0100922canyonlands_config \
923glacier_config: unconfig
924 @mkdir -p $(obj)include
925 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
926 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
Stefan Roesea47a12b2010-04-15 16:07:28 +0200927 @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc
Stefan Roesec813f1f2008-03-11 16:53:00 +0100928
Stefan Roesefe7c0db2008-04-08 10:33:27 +0200929canyonlands_nand_config \
930glacier_nand_config: unconfig
Stefan Roese71665eb2008-03-03 17:27:02 +0100931 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
932 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
933 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Stefan Roesefe7c0db2008-04-08 10:33:27 +0200934 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
935 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
Stefan Roese71665eb2008-03-03 17:27:02 +0100936 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
937 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200938 @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc
Stefan Roese71665eb2008-03-03 17:27:02 +0100939
wdenk1d6f9722004-09-09 17:44:35 +0000940CATcenter_config \
941CATcenter_25_config \
942CATcenter_33_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +0200943 @mkdir -p $(obj)include
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200944 @echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
945 @echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
wdenk1d6f9722004-09-09 17:44:35 +0000946 @[ -z "$(findstring _25,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200947 echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h
wdenk1d6f9722004-09-09 17:44:35 +0000948 @[ -z "$(findstring _33,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +0200949 echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +0200950 @$(MKCONFIG) -n $@ -a CATcenter powerpc ppc4xx PPChameleonEVB dave
wdenk10767cc2004-05-13 13:23:58 +0000951
Matthias Fuchs1951f842008-12-10 14:41:25 +0100952CPCI405_config \
Matthias Fuchs767f9152008-09-05 15:34:02 +0200953CPCI4052_config \
stroesec419d1d2004-12-16 18:44:40 +0000954CPCI405DT_config \
stroese549826e2003-05-23 11:41:44 +0000955CPCI405AB_config: unconfig
Matthias Fuchsdd794322008-09-09 09:50:24 +0200956 @mkdir -p $(obj)board/esd/cpci405
Wolfgang Denked7a1962010-05-27 23:18:34 +0200957 @$(MKCONFIG) -n $@ $@ powerpc ppc4xx cpci405 esd
wdenk7ebf7442002-11-02 23:17:16 +0000958
Georg Schardt5deb8022008-10-24 13:51:52 +0200959fx12mm_flash_config: unconfig
960 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
961 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
962 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
963 > $(obj)board/avnet/fx12mm/config.tmp
964 @echo "TEXT_BASE := 0xFFCB0000" \
965 >> $(obj)board/avnet/fx12mm/config.tmp
Stefan Roesea47a12b2010-04-15 16:07:28 +0200966 @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet
Georg Schardt5deb8022008-10-24 13:51:52 +0200967
968fx12mm_config: unconfig
969 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
970 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
971 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
972 > $(obj)board/avnet/fx12mm/config.tmp
973 @echo "TEXT_BASE := 0x03000000" \
974 >> $(obj)board/avnet/fx12mm/config.tmp
Stefan Roesea47a12b2010-04-15 16:07:28 +0200975 @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet
Georg Schardt5deb8022008-10-24 13:51:52 +0200976
Dirk Eibach4c188362009-09-09 12:36:07 +0200977# Compact-Center(codename intip) & DevCon-Center use different U-Boot images
978intip_config \
979devconcenter_config: unconfig
980 @mkdir -p $(obj)include
981 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
982 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
Stefan Roesea47a12b2010-04-15 16:07:28 +0200983 @$(MKCONFIG) -n $@ -a intip powerpc ppc4xx intip gdsys
Dirk Eibach4c188362009-09-09 12:36:07 +0200984
Wolfgang Denka6862bc2010-05-27 23:18:36 +0200985hcu4_config \
986hcu5_config \
987mcu25_config: unconfig
988 @mkdir -p $(obj)board/netstal/common
989 @$(MKCONFIG) $@ powerpc ppc4xx $(call lcname,$@) netstal
990
Stefan Roese353f2682007-10-23 10:10:08 +0200991# Kilauea & Haleakala images are identical (recognized via PVR)
992kilauea_config \
993haleakala_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +0200994 @$(MKCONFIG) -n $@ kilauea powerpc ppc4xx kilauea amcc
Stefan Roese566806c2007-10-05 17:11:30 +0200995
Stefan Roese3d6cb3b2007-11-03 12:08:28 +0100996kilauea_nand_config \
997haleakala_nand_config: unconfig
998 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
999 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1000 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Stefan Roese3d6cb3b2007-11-03 12:08:28 +01001001 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1002 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001003 @$(MKCONFIG) -n $@ -a kilauea powerpc ppc4xx kilauea amcc
Stefan Roese3d6cb3b2007-11-03 12:08:28 +01001004
wdenkdb01a2e2004-04-15 23:14:49 +00001005MIP405T_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02001006 @mkdir -p $(obj)include
1007 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
Wolfgang Denkae6d1052008-01-13 00:59:21 +01001008 @$(XECHO) "Enable subset config for MIP405T"
Stefan Roesea47a12b2010-04-15 16:07:28 +02001009 @$(MKCONFIG) -a MIP405 powerpc ppc4xx mip405 mpl
wdenkf3e0de62003-06-04 15:05:30 +00001010
Ricardo Ribalda Delgadoe07f4a82008-09-01 13:09:39 -04001011ml507_flash_config: unconfig
Ricardo Ribalda Delgado880f6a52008-09-09 10:00:33 -04001012 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
Ricardo Ribalda Delgado01a00432008-07-21 20:30:07 +02001013 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
Ricardo Ribalda Delgado880f6a52008-09-09 10:00:33 -04001014 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1015 > $(obj)board/xilinx/ml507/config.tmp
1016 @echo "TEXT_BASE := 0xFE360000" \
1017 >> $(obj)board/xilinx/ml507/config.tmp
Stefan Roesea47a12b2010-04-15 16:07:28 +02001018 @$(MKCONFIG) ml507 powerpc ppc4xx ml507 xilinx
Ricardo Ribalda Delgado01a00432008-07-21 20:30:07 +02001019
Ricardo Ribalda Delgadoe07f4a82008-09-01 13:09:39 -04001020ml507_config: unconfig
Ricardo Ribalda Delgado880f6a52008-09-09 10:00:33 -04001021 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
Ricardo Ribalda Delgado01a00432008-07-21 20:30:07 +02001022 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
Ricardo Ribalda Delgado880f6a52008-09-09 10:00:33 -04001023 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1024 > $(obj)board/xilinx/ml507/config.tmp
1025 @echo "TEXT_BASE := 0x04000000" \
1026 >> $(obj)board/xilinx/ml507/config.tmp
Wolfgang Denked7a1962010-05-27 23:18:34 +02001027 @$(MKCONFIG) $@ powerpc ppc4xx ml507 xilinx
Ricardo Ribalda Delgado086511f2008-07-17 12:47:09 +02001028
wdenk7ebf7442002-11-02 23:17:16 +00001029OCRTC_config \
1030ORSG_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02001031 @$(MKCONFIG) -n $@ $@ powerpc ppc4xx ocrtc esd
wdenk7ebf7442002-11-02 23:17:16 +00001032
wdenk281e00a2004-08-01 22:48:16 +00001033PPChameleonEVB_config \
wdenke55ca7e2004-07-01 21:40:08 +00001034PPChameleonEVB_BA_25_config \
1035PPChameleonEVB_ME_25_config \
1036PPChameleonEVB_HI_25_config \
1037PPChameleonEVB_BA_33_config \
1038PPChameleonEVB_ME_33_config \
1039PPChameleonEVB_HI_33_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02001040 @mkdir -p $(obj)include
wdenk1d6f9722004-09-09 17:44:35 +00001041 @[ -z "$(findstring EVB_BA,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001042 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h
wdenk1d6f9722004-09-09 17:44:35 +00001043 @[ -z "$(findstring EVB_ME,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001044 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h
wdenk1d6f9722004-09-09 17:44:35 +00001045 @[ -z "$(findstring EVB_HI,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001046 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h
wdenke55ca7e2004-07-01 21:40:08 +00001047 @[ -z "$(findstring _25,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001048 echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h
wdenke55ca7e2004-07-01 21:40:08 +00001049 @[ -z "$(findstring _33,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001050 echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +02001051 @$(MKCONFIG) -n $@ -a PPChameleonEVB powerpc ppc4xx PPChameleonEVB dave
wdenk12f34242003-09-02 22:48:03 +00001052
Stefan Roese430f1b02007-03-28 15:03:16 +02001053sequoia_config \
1054rainier_config: unconfig
1055 @mkdir -p $(obj)include
1056 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1057 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
Stefan Roesea47a12b2010-04-15 16:07:28 +02001058 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
Stefan Roese887e2ec2006-09-07 11:51:23 +02001059
Stefan Roese430f1b02007-03-28 15:03:16 +02001060sequoia_nand_config \
1061rainier_nand_config: unconfig
Wolfgang Denk63e22762007-08-02 10:11:18 +02001062 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1063 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
Marian Balakowicz8318fbf2006-10-23 22:17:05 +02001064 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Stefan Roese430f1b02007-03-28 15:03:16 +02001065 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1066 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
Marian Balakowicz8318fbf2006-10-23 22:17:05 +02001067 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1068 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001069 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
wdenk652a10c2005-01-09 23:48:14 +00001070
Stefan Roesed8731332009-05-11 13:46:14 +02001071sequoia_ramboot_config \
1072rainier_ramboot_config: unconfig
1073 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1074 @echo "#define CONFIG_SYS_RAMBOOT" > $(obj)include/config.h
1075 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1076 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
Stefan Roesed8731332009-05-11 13:46:14 +02001077 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1078 @echo "LDSCRIPT = board/amcc/sequoia/u-boot-ram.lds" >> \
1079 $(obj)board/amcc/sequoia/config.tmp
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001080 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
Stefan Roesed8731332009-05-11 13:46:14 +02001081
Ricardo Ribalda Delgadoe07f4a82008-09-01 13:09:39 -04001082v5fx30teval_config: unconfig
Ricardo Ribalda Delgado880f6a52008-09-09 10:00:33 -04001083 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
Ricardo Ribalda Delgadoe07f4a82008-09-01 13:09:39 -04001084 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
Ricardo Ribalda Delgado880f6a52008-09-09 10:00:33 -04001085 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1086 > $(obj)board/avnet/v5fx30teval/config.tmp
1087 @echo "TEXT_BASE := 0x03000000" \
1088 >> $(obj)board/avnet/v5fx30teval/config.tmp
Wolfgang Denked7a1962010-05-27 23:18:34 +02001089 @$(MKCONFIG) $@ powerpc ppc4xx v5fx30teval avnet
Ricardo Ribalda Delgadoe07f4a82008-09-01 13:09:39 -04001090
1091v5fx30teval_flash_config: unconfig
Ricardo Ribalda Delgado880f6a52008-09-09 10:00:33 -04001092 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
Ricardo Ribalda Delgadoe07f4a82008-09-01 13:09:39 -04001093 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
Ricardo Ribalda Delgado880f6a52008-09-09 10:00:33 -04001094 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
Ricardo Ribalda Delgado2bec4982008-09-11 19:41:25 -04001095 > $(obj)board/avnet/v5fx30teval/config.tmp
Ricardo Ribalda Delgado880f6a52008-09-09 10:00:33 -04001096 @echo "TEXT_BASE := 0xFF1C0000" \
Ricardo Ribalda Delgado2bec4982008-09-11 19:41:25 -04001097 >> $(obj)board/avnet/v5fx30teval/config.tmp
Stefan Roesea47a12b2010-04-15 16:07:28 +02001098 @$(MKCONFIG) v5fx30teval powerpc ppc4xx v5fx30teval avnet
Ricardo Ribalda Delgadoe07f4a82008-09-01 13:09:39 -04001099
wdenk7ebf7442002-11-02 23:17:16 +00001100W7OLMC_config \
1101W7OLMG_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02001102 @$(MKCONFIG) $@ powerpc ppc4xx w7o
wdenk7ebf7442002-11-02 23:17:16 +00001103
Stefan Roese430f1b02007-03-28 15:03:16 +02001104# Walnut & Sycamore images are identical (recognized via PVR)
1105walnut_config \
1106sycamore_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02001107 @$(MKCONFIG) -n $@ walnut powerpc ppc4xx walnut amcc
wdenk7ebf7442002-11-02 23:17:16 +00001108
Ricardo Ribalda Delgado1f4d5322008-10-21 18:29:46 +02001109xilinx-ppc405-generic_flash_config: unconfig
1110 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1111 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
1112 > $(obj)board/xilinx/ppc405-generic/config.tmp
1113 @echo "TEXT_BASE := 0xFE360000" \
1114 >> $(obj)board/xilinx/ppc405-generic/config.tmp
Stefan Roesea47a12b2010-04-15 16:07:28 +02001115 @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx
Ricardo Ribalda Delgado1f4d5322008-10-21 18:29:46 +02001116
1117xilinx-ppc405-generic_config: unconfig
1118 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1119 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
1120 > $(obj)board/xilinx/ppc405-generic/config.tmp
1121 @echo "TEXT_BASE := 0x04000000" \
1122 >> $(obj)board/xilinx/ppc405-generic/config.tmp
Stefan Roesea47a12b2010-04-15 16:07:28 +02001123 @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx
Ricardo Ribalda Delgado1f4d5322008-10-21 18:29:46 +02001124
Ricardo Ribalda Delgadoe07f4a82008-09-01 13:09:39 -04001125xilinx-ppc440-generic_flash_config: unconfig
Ricardo Ribalda Delgado880f6a52008-09-09 10:00:33 -04001126 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1127 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1128 > $(obj)board/xilinx/ppc440-generic/config.tmp
1129 @echo "TEXT_BASE := 0xFE360000" \
1130 >> $(obj)board/xilinx/ppc440-generic/config.tmp
Stefan Roesea47a12b2010-04-15 16:07:28 +02001131 @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx
Ricardo Ribalda Delgadoe07f4a82008-09-01 13:09:39 -04001132
1133xilinx-ppc440-generic_config: unconfig
Ricardo Ribalda Delgado880f6a52008-09-09 10:00:33 -04001134 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1135 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1136 > $(obj)board/xilinx/ppc440-generic/config.tmp
1137 @echo "TEXT_BASE := 0x04000000" \
1138 >> $(obj)board/xilinx/ppc440-generic/config.tmp
Stefan Roesea47a12b2010-04-15 16:07:28 +02001139 @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx
Ricardo Ribalda Delgadoe07f4a82008-09-01 13:09:39 -04001140
Stefan Roese430f1b02007-03-28 15:03:16 +02001141yosemite_config \
1142yellowstone_config: unconfig
Stefan Roese700200c2007-01-30 17:04:19 +01001143 @mkdir -p $(obj)include
Stefan Roese430f1b02007-03-28 15:03:16 +02001144 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1145 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
Stefan Roesea47a12b2010-04-15 16:07:28 +02001146 @$(MKCONFIG) -n $@ -a yosemite powerpc ppc4xx yosemite amcc
Stefan Roese8a316c92005-08-01 16:49:12 +02001147
wdenk7ebf7442002-11-02 23:17:16 +00001148#########################################################################
1149## MPC824x Systems
1150#########################################################################
wdenk3bac3512003-03-12 10:41:04 +00001151
Wolfgang Denk8c994632010-05-27 23:18:35 +02001152eXalion_config: unconfig
1153 @$(MKCONFIG) $(@:_config=) powerpc mpc824x eXalion
wdenk7ebf7442002-11-02 23:17:16 +00001154
wdenk3bac3512003-03-12 10:41:04 +00001155CPC45_config \
1156CPC45_ROMBOOT_config: unconfig
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001157 @mkdir -p $(obj)include ; \
wdenk3bac3512003-03-12 10:41:04 +00001158 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001159 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \
wdenk3bac3512003-03-12 10:41:04 +00001160 else \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001161 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \
wdenk3bac3512003-03-12 10:41:04 +00001162 fi; \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001163 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk;
Wolfgang Denked7a1962010-05-27 23:18:34 +02001164 @$(MKCONFIG) -n $@ CPC45 powerpc mpc824x cpc45
wdenk3bac3512003-03-12 10:41:04 +00001165
Guennadi Liakhovetski61525f22008-03-31 01:32:15 +02001166# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1167# time permits.
1168#linkstation_HDLAN_config \
1169# Remove this line when HDLAN is fixed
1170linkstation_HGLAN_config: unconfig
1171 @mkdir -p $(obj)include
1172 @case $@ in \
1173 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1174 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1175 esac
Stefan Roesea47a12b2010-04-15 16:07:28 +02001176 @$(MKCONFIG) -n $@ -a linkstation powerpc mpc824x linkstation
Guennadi Liakhovetski61525f22008-03-31 01:32:15 +02001177
wdenk7ebf7442002-11-02 23:17:16 +00001178Sandpoint8240_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02001179 @$(MKCONFIG) $@ powerpc mpc824x sandpoint
wdenk7ebf7442002-11-02 23:17:16 +00001180
1181Sandpoint8245_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02001182 @$(MKCONFIG) $@ powerpc mpc824x sandpoint
wdenk7ebf7442002-11-02 23:17:16 +00001183
wdenk7ebf7442002-11-02 23:17:16 +00001184#########################################################################
1185## MPC8260 Systems
1186#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001187
1188cogent_mpc8260_config: unconfig
Wolfgang Denk8c994632010-05-27 23:18:35 +02001189 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 cogent
wdenk7ebf7442002-11-02 23:17:16 +00001190
1191CPU86_config \
1192CPU86_ROMBOOT_config: unconfig
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001193 @mkdir -p $(obj)include ; \
wdenk7ebf7442002-11-02 23:17:16 +00001194 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001195 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \
wdenk7ebf7442002-11-02 23:17:16 +00001196 else \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001197 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \
wdenk7ebf7442002-11-02 23:17:16 +00001198 fi; \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001199 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk;
Wolfgang Denked7a1962010-05-27 23:18:34 +02001200 @$(MKCONFIG) -n $@ CPU86 powerpc mpc8260 cpu86
wdenk7ebf7442002-11-02 23:17:16 +00001201
wdenk384cc682005-04-03 22:35:21 +00001202CPU87_config \
1203CPU87_ROMBOOT_config: unconfig
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001204 @mkdir -p $(obj)include ; \
wdenk384cc682005-04-03 22:35:21 +00001205 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001206 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \
wdenk384cc682005-04-03 22:35:21 +00001207 else \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001208 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \
wdenk384cc682005-04-03 22:35:21 +00001209 fi; \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001210 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk;
Wolfgang Denked7a1962010-05-27 23:18:34 +02001211 @$(MKCONFIG) -n $@ CPU87 powerpc mpc8260 cpu87
wdenk384cc682005-04-03 22:35:21 +00001212
Wolfgang Denkf901a832005-08-06 01:42:58 +02001213ep8248_config \
1214ep8248E_config : unconfig
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001215 @$(MKCONFIG) -n $@ ep8248 powerpc mpc8260 ep8248
Wolfgang Denkf901a832005-08-06 01:42:58 +02001216
wdenkc3c7f862004-06-09 14:47:54 +00001217ISPAN_config \
1218ISPAN_REVB_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02001219 @mkdir -p $(obj)include
wdenkc3c7f862004-06-09 14:47:54 +00001220 @if [ "$(findstring _REVB_,$@)" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +02001221 echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
wdenkc3c7f862004-06-09 14:47:54 +00001222 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001223 @$(MKCONFIG) -n $@ -a ISPAN powerpc mpc8260 ispan
wdenkc3c7f862004-06-09 14:47:54 +00001224
wdenk04a85b32004-04-15 18:22:41 +00001225MPC8260ADS_config \
wdenk901787d2005-04-03 23:22:21 +00001226MPC8260ADS_lowboot_config \
wdenk04a85b32004-04-15 18:22:41 +00001227MPC8260ADS_33MHz_config \
wdenk901787d2005-04-03 23:22:21 +00001228MPC8260ADS_33MHz_lowboot_config \
wdenk04a85b32004-04-15 18:22:41 +00001229MPC8260ADS_40MHz_config \
wdenk901787d2005-04-03 23:22:21 +00001230MPC8260ADS_40MHz_lowboot_config \
wdenk04a85b32004-04-15 18:22:41 +00001231MPC8272ADS_config \
wdenk901787d2005-04-03 23:22:21 +00001232MPC8272ADS_lowboot_config \
wdenk04a85b32004-04-15 18:22:41 +00001233PQ2FADS_config \
wdenk901787d2005-04-03 23:22:21 +00001234PQ2FADS_lowboot_config \
wdenk04a85b32004-04-15 18:22:41 +00001235PQ2FADS-VR_config \
wdenk901787d2005-04-03 23:22:21 +00001236PQ2FADS-VR_lowboot_config \
wdenk04a85b32004-04-15 18:22:41 +00001237PQ2FADS-ZU_config \
wdenk901787d2005-04-03 23:22:21 +00001238PQ2FADS-ZU_lowboot_config \
wdenk04a85b32004-04-15 18:22:41 +00001239PQ2FADS-ZU_66MHz_config \
wdenk901787d2005-04-03 23:22:21 +00001240PQ2FADS-ZU_66MHz_lowboot_config \
wdenk04a85b32004-04-15 18:22:41 +00001241 : unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02001242 @mkdir -p $(obj)include
Jon Loeligerb7e24d22008-03-05 18:05:45 -06001243 @mkdir -p $(obj)board/freescale/mpc8260ads
wdenk04a85b32004-04-15 18:22:41 +00001244 $(if $(findstring PQ2FADS,$@), \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +02001245 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \
1246 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
wdenk04a85b32004-04-15 18:22:41 +00001247 $(if $(findstring MHz,$@), \
Marian Balakowiczf9328632006-09-01 19:49:50 +02001248 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
wdenk04a85b32004-04-15 18:22:41 +00001249 $(if $(findstring VR,$@), \
Marian Balakowiczf9328632006-09-01 19:49:50 +02001250 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
wdenk901787d2005-04-03 23:22:21 +00001251 @[ -z "$(findstring lowboot_,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001252 echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp
1253 @$(MKCONFIG) -n $@ -a MPC8260ADS powerpc mpc8260 mpc8260ads freescale
wdenk7ebf7442002-11-02 23:17:16 +00001254
Heiko Schocheradf22b62008-08-19 10:08:49 +02001255muas3001_dev_config \
1256muas3001_config : unconfig
1257 @mkdir -p $(obj)include
1258 @mkdir -p $(obj)board/muas3001
1259 @if [ "$(findstring dev,$@)" ] ; then \
1260 echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1261 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001262 @$(MKCONFIG) -n $@ -a muas3001 powerpc mpc8260 muas3001
Heiko Schocheradf22b62008-08-19 10:08:49 +02001263
wdenkefa329c2004-03-23 20:18:25 +00001264# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
wdenk10f67012003-03-25 18:06:06 +00001265PM825_config \
wdenkefa329c2004-03-23 20:18:25 +00001266PM825_ROMBOOT_config \
1267PM825_BIGFLASH_config \
1268PM825_ROMBOOT_BIGFLASH_config \
wdenk7ebf7442002-11-02 23:17:16 +00001269PM826_config \
wdenkefa329c2004-03-23 20:18:25 +00001270PM826_ROMBOOT_config \
1271PM826_BIGFLASH_config \
1272PM826_ROMBOOT_BIGFLASH_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02001273 @mkdir -p $(obj)include
1274 @mkdir -p $(obj)board/pm826
wdenkefa329c2004-03-23 20:18:25 +00001275 @if [ "$(findstring PM825_,$@)" ] ; then \
Marian Balakowiczf9328632006-09-01 19:49:50 +02001276 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +00001277 else \
Marian Balakowiczf9328632006-09-01 19:49:50 +02001278 >$(obj)include/config.h ; \
wdenkefa329c2004-03-23 20:18:25 +00001279 fi
1280 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
Marian Balakowiczf9328632006-09-01 19:49:50 +02001281 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1282 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
wdenkefa329c2004-03-23 20:18:25 +00001283 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
Marian Balakowiczf9328632006-09-01 19:49:50 +02001284 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
wdenkefa329c2004-03-23 20:18:25 +00001285 fi; \
1286 else \
wdenkefa329c2004-03-23 20:18:25 +00001287 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
Wolfgang Denkae6d1052008-01-13 00:59:21 +01001288 $(XECHO) "... with 32 MB Flash" ; \
Marian Balakowiczf9328632006-09-01 19:49:50 +02001289 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1290 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
wdenkefa329c2004-03-23 20:18:25 +00001291 else \
Marian Balakowiczf9328632006-09-01 19:49:50 +02001292 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
wdenkefa329c2004-03-23 20:18:25 +00001293 fi; \
1294 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001295 @$(MKCONFIG) -n $@ -a PM826 powerpc mpc8260 pm826
wdenkefa329c2004-03-23 20:18:25 +00001296
1297PM828_config \
1298PM828_PCI_config \
1299PM828_ROMBOOT_config \
1300PM828_ROMBOOT_PCI_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02001301 @mkdir -p $(obj)include
1302 @mkdir -p $(obj)board/pm826
Marian Balakowicz17076262006-04-05 20:37:11 +02001303 @if [ "$(findstring _PCI_,$@)" ] ; then \
Marian Balakowiczf9328632006-09-01 19:49:50 +02001304 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
wdenkefa329c2004-03-23 20:18:25 +00001305 fi
1306 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
Marian Balakowiczf9328632006-09-01 19:49:50 +02001307 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1308 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
wdenkefa329c2004-03-23 20:18:25 +00001309 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001310 @$(MKCONFIG) -n $@ -a PM828 powerpc mpc8260 pm828
wdenk7ebf7442002-11-02 23:17:16 +00001311
wdenk8b0bfc62005-04-03 23:11:38 +00001312Rattler8248_config \
1313Rattler_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02001314 @mkdir -p $(obj)include
wdenk8b0bfc62005-04-03 23:11:38 +00001315 $(if $(findstring 8248,$@), \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001316 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1317 @$(MKCONFIG) -n $@ -a Rattler powerpc mpc8260 rattler
wdenk8b0bfc62005-04-03 23:11:38 +00001318
wdenk27b207f2003-07-24 23:38:38 +00001319TQM8255_AA_config \
1320TQM8260_AA_config \
1321TQM8260_AB_config \
1322TQM8260_AC_config \
1323TQM8260_AD_config \
1324TQM8260_AE_config \
1325TQM8260_AF_config \
1326TQM8260_AG_config \
1327TQM8260_AH_config \
Wolfgang Denk1f62bc22006-03-07 00:32:07 +01001328TQM8260_AI_config \
wdenk27b207f2003-07-24 23:38:38 +00001329TQM8265_AA_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02001330 @mkdir -p $(obj)include
wdenk27b207f2003-07-24 23:38:38 +00001331 @case "$@" in \
Wolfgang Denk1f62bc22006-03-07 00:32:07 +01001332 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1333 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1334 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1335 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1336 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1337 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1338 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1339 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1340 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1341 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1342 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
wdenk27b207f2003-07-24 23:38:38 +00001343 esac; \
wdenk27b207f2003-07-24 23:38:38 +00001344 if [ "$${CTYPE}" != "MPC8260" ] ; then \
Marian Balakowiczf9328632006-09-01 19:49:50 +02001345 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
wdenk27b207f2003-07-24 23:38:38 +00001346 fi; \
Marian Balakowiczf9328632006-09-01 19:49:50 +02001347 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
Wolfgang Denk1aaab9b2008-01-02 15:54:45 +01001348 if [ "$${CACHE}" = "yes" ] ; then \
Marian Balakowiczf9328632006-09-01 19:49:50 +02001349 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +00001350 else \
Marian Balakowiczf9328632006-09-01 19:49:50 +02001351 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
wdenk27b207f2003-07-24 23:38:38 +00001352 fi; \
Wolfgang Denk1aaab9b2008-01-02 15:54:45 +01001353 if [ "$${BMODE}" = "60x" ] ; then \
Marian Balakowiczf9328632006-09-01 19:49:50 +02001354 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
wdenk27b207f2003-07-24 23:38:38 +00001355 else \
Marian Balakowiczf9328632006-09-01 19:49:50 +02001356 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +00001357 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001358 @$(MKCONFIG) -n $@ -a TQM8260 powerpc mpc8260 tqm8260 tqc
wdenk7ebf7442002-11-02 23:17:16 +00001359
wdenkba91e262005-05-30 23:55:42 +00001360VoVPN-GW_66MHz_config \
1361VoVPN-GW_100MHz_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02001362 @mkdir -p $(obj)include
1363 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001364 @$(MKCONFIG) -n $@ -a VoVPN-GW powerpc mpc8260 vovpn-gw funkwerk
wdenkba91e262005-05-30 23:55:42 +00001365
wdenk4e5ca3e2003-12-08 01:34:36 +00001366#########################################################################
1367## Coldfire
1368#########################################################################
1369
Wolfgang Wegner9d79e572010-01-25 11:27:44 +01001370astro_mcf5373l_config \
1371astro_mcf5373l_RAM_config : unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02001372 @$(MKCONFIG) -n $@ -t $@ astro_mcf5373l m68k mcf532x mcf5373l astro
Wolfgang Wegner9d79e572010-01-25 11:27:44 +01001373
TsiChung Liewa21d0c22008-10-21 15:37:02 +00001374M52277EVB_config \
1375M52277EVB_spansion_config \
1376M52277EVB_stmicro_config : unconfig
1377 @case "$@" in \
1378 M52277EVB_config) FLASH=SPANSION;; \
1379 M52277EVB_spansion_config) FLASH=SPANSION;; \
1380 M52277EVB_stmicro_config) FLASH=STMICRO;; \
1381 esac; \
1382 if [ "$${FLASH}" = "SPANSION" ] ; then \
1383 echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \
1384 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1385 cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \
TsiChung Liewa21d0c22008-10-21 15:37:02 +00001386 fi; \
1387 if [ "$${FLASH}" = "STMICRO" ] ; then \
1388 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1389 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
1390 echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1391 cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \
TsiChung Liewa21d0c22008-10-21 15:37:02 +00001392 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001393 @$(MKCONFIG) -n $@ -a M52277EVB m68k mcf5227x m52277evb freescale
TsiChungLiew1552af72008-01-14 17:43:33 -06001394
TsiChungLiew4a442d32007-08-16 19:23:50 -05001395M5235EVB_config \
1396M5235EVB_Flash16_config \
1397M5235EVB_Flash32_config: unconfig
1398 @case "$@" in \
1399 M5235EVB_config) FLASH=16;; \
1400 M5235EVB_Flash16_config) FLASH=16;; \
1401 M5235EVB_Flash32_config) FLASH=32;; \
1402 esac; \
TsiChungLiew4a442d32007-08-16 19:23:50 -05001403 if [ "$${FLASH}" != "16" ] ; then \
Wolfgang Denkae6d1052008-01-13 00:59:21 +01001404 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
TsiChungLiew4a442d32007-08-16 19:23:50 -05001405 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1406 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1407 else \
1408 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1409 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1410 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001411 @$(MKCONFIG) -n $@ -a M5235EVB m68k mcf523x m5235evb freescale
TsiChungLiew4a442d32007-08-16 19:23:50 -05001412
Wolfgang Denk74812662005-12-12 16:06:05 +01001413cobra5272_config : unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02001414 @$(MKCONFIG) $@ m68k mcf52x2 cobra5272
Wolfgang Denk74812662005-12-12 16:06:05 +01001415
Wolfgang Denk4176c792006-06-10 19:27:47 +02001416EB+MCF-EV123_config : unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02001417 @mkdir -p $(obj)include
1418 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
Marian Balakowiczf9328632006-09-01 19:49:50 +02001419 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001420 @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
Wolfgang Denk4176c792006-06-10 19:27:47 +02001421
1422EB+MCF-EV123_internal_config : unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02001423 @mkdir -p $(obj)include
1424 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
Marian Balakowiczf9328632006-09-01 19:49:50 +02001425 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001426 @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
Wolfgang Denk4176c792006-06-10 19:27:47 +02001427
TsiChung Liew8e585f02007-06-18 13:50:13 -05001428M5329AFEE_config \
1429M5329BFEE_config : unconfig
1430 @case "$@" in \
1431 M5329AFEE_config) NAND=0;; \
1432 M5329BFEE_config) NAND=16;; \
1433 esac; \
TsiChung Liew8e585f02007-06-18 13:50:13 -05001434 if [ "$${NAND}" != "0" ] ; then \
TsiChungLiewab77bc52007-08-15 15:39:17 -05001435 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
TsiChung Liew8e585f02007-06-18 13:50:13 -05001436 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001437 @$(MKCONFIG) -n $@ -a M5329EVB m68k mcf532x m5329evb freescale
TsiChung Liew8e585f02007-06-18 13:50:13 -05001438
TsiChungLiewaa5f1f92008-01-14 17:23:08 -06001439M5373EVB_config : unconfig
1440 @case "$@" in \
1441 M5373EVB_config) NAND=16;; \
1442 esac; \
TsiChungLiewaa5f1f92008-01-14 17:23:08 -06001443 if [ "$${NAND}" != "0" ] ; then \
1444 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1445 fi
1446 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1447
TsiChung Liew05316f82008-08-11 13:41:49 +00001448M54451EVB_config \
TsiChung Liew05316f82008-08-11 13:41:49 +00001449M54451EVB_stmicro_config : unconfig
1450 @case "$@" in \
TsiChung Liew709b3842009-06-11 15:39:57 +00001451 M54451EVB_config) FLASH=NOR;; \
TsiChung Liew05316f82008-08-11 13:41:49 +00001452 M54451EVB_stmicro_config) FLASH=STMICRO;; \
1453 esac; \
TsiChung Liew709b3842009-06-11 15:39:57 +00001454 if [ "$${FLASH}" = "NOR" ] ; then \
TsiChung Liew05316f82008-08-11 13:41:49 +00001455 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1456 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
TsiChung Liew05316f82008-08-11 13:41:49 +00001457 fi; \
1458 if [ "$${FLASH}" = "STMICRO" ] ; then \
1459 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +02001460 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
TsiChung Liew05316f82008-08-11 13:41:49 +00001461 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1462 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
TsiChung Liew05316f82008-08-11 13:41:49 +00001463 fi; \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +02001464 echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001465 @$(MKCONFIG) -n $@ -a M54451EVB m68k mcf5445x m54451evb freescale
TsiChung Liew05316f82008-08-11 13:41:49 +00001466
TsiChungLiew8ae158c2007-08-16 15:05:11 -05001467M54455EVB_config \
1468M54455EVB_atmel_config \
1469M54455EVB_intel_config \
1470M54455EVB_a33_config \
1471M54455EVB_a66_config \
1472M54455EVB_i33_config \
TsiChung Liew9f751552008-07-23 20:38:53 -05001473M54455EVB_i66_config \
1474M54455EVB_stm33_config : unconfig
TsiChungLiew8ae158c2007-08-16 15:05:11 -05001475 @case "$@" in \
1476 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1477 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1478 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1479 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1480 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1481 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1482 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
TsiChung Liew9f751552008-07-23 20:38:53 -05001483 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \
TsiChungLiew8ae158c2007-08-16 15:05:11 -05001484 esac; \
Wolfgang Denk1aaab9b2008-01-02 15:54:45 +01001485 if [ "$${FLASH}" = "INTEL" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +02001486 echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
TsiChungLiewe8ee8f32007-10-25 17:16:22 -05001487 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1488 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
TsiChung Liew9f751552008-07-23 20:38:53 -05001489 fi; \
1490 if [ "$${FLASH}" = "ATMEL" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +02001491 echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \
TsiChungLiewe8ee8f32007-10-25 17:16:22 -05001492 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1493 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
TsiChungLiew8ae158c2007-08-16 15:05:11 -05001494 fi; \
TsiChung Liew9f751552008-07-23 20:38:53 -05001495 if [ "$${FLASH}" = "STMICRO" ] ; then \
1496 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +02001497 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
TsiChung Liew9f751552008-07-23 20:38:53 -05001498 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1499 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
TsiChung Liew9f751552008-07-23 20:38:53 -05001500 fi; \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +02001501 echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001502 @$(MKCONFIG) -n $@ -a M54455EVB m68k mcf5445x m54455evb freescale
TsiChungLiew8ae158c2007-08-16 15:05:11 -05001503
TsiChungLiew57a12722008-01-15 14:15:46 -06001504M5475AFE_config \
1505M5475BFE_config \
1506M5475CFE_config \
1507M5475DFE_config \
1508M5475EFE_config \
1509M5475FFE_config \
1510M5475GFE_config : unconfig
1511 @case "$@" in \
1512 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1513 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1514 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1515 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1516 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1517 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1518 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1519 esac; \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +02001520 echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \
1521 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1522 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
TsiChungLiew57a12722008-01-15 14:15:46 -06001523 if [ "$${RAM1}" != "0" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +02001524 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
TsiChungLiew57a12722008-01-15 14:15:46 -06001525 fi; \
1526 if [ "$${CODE}" != "0" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +02001527 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
TsiChungLiew57a12722008-01-15 14:15:46 -06001528 fi; \
1529 if [ "$${VID}" == "1" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +02001530 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
TsiChungLiew57a12722008-01-15 14:15:46 -06001531 fi; \
1532 if [ "$${USB}" == "1" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +02001533 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
TsiChungLiew57a12722008-01-15 14:15:46 -06001534 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001535 @$(MKCONFIG) -n $@ -a M5475EVB m68k mcf547x_8x m547xevb freescale
TsiChungLiew57a12722008-01-15 14:15:46 -06001536
1537M5485AFE_config \
1538M5485BFE_config \
1539M5485CFE_config \
1540M5485DFE_config \
1541M5485EFE_config \
1542M5485FFE_config \
1543M5485GFE_config \
1544M5485HFE_config : unconfig
1545 @case "$@" in \
1546 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1547 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1548 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1549 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1550 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1551 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1552 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
TsiChungLiew4d264ef2008-01-30 15:08:15 -06001553 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
TsiChungLiew57a12722008-01-15 14:15:46 -06001554 esac; \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +02001555 echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \
1556 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1557 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
TsiChungLiew57a12722008-01-15 14:15:46 -06001558 if [ "$${RAM1}" != "0" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +02001559 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
TsiChungLiew57a12722008-01-15 14:15:46 -06001560 fi; \
1561 if [ "$${CODE}" != "0" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +02001562 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
TsiChungLiew57a12722008-01-15 14:15:46 -06001563 fi; \
1564 if [ "$${VID}" == "1" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +02001565 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
TsiChungLiew57a12722008-01-15 14:15:46 -06001566 fi; \
1567 if [ "$${USB}" == "1" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +02001568 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
TsiChungLiew57a12722008-01-15 14:15:46 -06001569 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001570 @$(MKCONFIG) -n $@ -a M5485EVB m68k mcf547x_8x m548xevb freescale
TsiChungLiew57a12722008-01-15 14:15:46 -06001571
wdenk7ebf7442002-11-02 23:17:16 +00001572#########################################################################
Eran Libertyf046ccd2005-07-28 10:08:46 -05001573## MPC83xx Systems
1574#########################################################################
1575
Kim Phillips5c5d3242007-04-25 12:34:38 -05001576MPC8313ERDB_33_config \
Scott Woode4c09502008-06-30 14:13:28 -05001577MPC8313ERDB_66_config \
1578MPC8313ERDB_NAND_33_config \
1579MPC8313ERDB_NAND_66_config: unconfig
Wolfgang Denkcdd917a2007-08-02 00:48:45 +02001580 @mkdir -p $(obj)include
Scott Woode4c09502008-06-30 14:13:28 -05001581 @mkdir -p $(obj)board/freescale/mpc8313erdb
Wolfgang Denkc6fe4da2008-03-09 02:13:19 +01001582 @if [ "$(findstring _33_,$@)" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +02001583 echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
Kim Phillips5c5d3242007-04-25 12:34:38 -05001584 fi ; \
1585 if [ "$(findstring _66_,$@)" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +02001586 echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
Scott Woode4c09502008-06-30 14:13:28 -05001587 fi ; \
1588 if [ "$(findstring _NAND_,$@)" ] ; then \
Kim Phillipsf4e55a42008-08-25 14:53:09 -05001589 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
Scott Woode4c09502008-06-30 14:13:28 -05001590 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
Kim Phillips5c5d3242007-04-25 12:34:38 -05001591 fi ;
Nick Spence64ac1eb2008-09-02 15:21:16 -05001592 @if [ "$(findstring _NAND_,$@)" ] ; then \
1593 echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
1594 fi ;
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001595 @$(MKCONFIG) -n $@ -a MPC8313ERDB powerpc mpc83xx mpc8313erdb freescale
Kim Phillips5c5d3242007-04-25 12:34:38 -05001596
Anton Vorontsov2e950042009-11-24 20:12:12 +03001597MPC8315ERDB_NAND_config \
Dave Liu8bd522c2008-01-11 18:48:24 +08001598MPC8315ERDB_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02001599 @$(MKCONFIG) -n $@ -t $@ MPC8315ERDB powerpc mpc83xx mpc8315erdb freescale
Dave Liu8bd522c2008-01-11 18:48:24 +08001600
Kim Phillips4decd842007-01-24 17:18:37 -06001601MPC832XEMDS_config \
1602MPC832XEMDS_HOST_33_config \
1603MPC832XEMDS_HOST_66_config \
Tony Li281df452007-10-18 17:47:19 +08001604MPC832XEMDS_SLAVE_config \
1605MPC832XEMDS_ATM_config: unconfig
Wolfgang Denkcdd917a2007-08-02 00:48:45 +02001606 @mkdir -p $(obj)include
Wolfgang Denkc6fe4da2008-03-09 02:13:19 +01001607 @if [ "$(findstring _HOST_,$@)" ] ; then \
Wolfgang Denkcdd917a2007-08-02 00:48:45 +02001608 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
Kim Phillips4decd842007-01-24 17:18:37 -06001609 fi ; \
1610 if [ "$(findstring _SLAVE_,$@)" ] ; then \
Wolfgang Denkcdd917a2007-08-02 00:48:45 +02001611 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1612 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
Kim Phillips4decd842007-01-24 17:18:37 -06001613 fi ; \
1614 if [ "$(findstring _33_,$@)" ] ; then \
Wolfgang Denkcdd917a2007-08-02 00:48:45 +02001615 echo "#define PCI_33M" >>$(obj)include/config.h ; \
Tony Li281df452007-10-18 17:47:19 +08001616 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
Kim Phillips4decd842007-01-24 17:18:37 -06001617 fi ; \
1618 if [ "$(findstring _66_,$@)" ] ; then \
Wolfgang Denkcdd917a2007-08-02 00:48:45 +02001619 echo "#define PCI_66M" >>$(obj)include/config.h ; \
Tony Li281df452007-10-18 17:47:19 +08001620 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1621 fi ; \
1622 if [ "$(findstring _ATM_,$@)" ] ; then \
Tony Li281df452007-10-18 17:47:19 +08001623 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
Wolfgang Denkf9301e12008-03-04 14:58:31 +01001624 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
Kim Phillips4decd842007-01-24 17:18:37 -06001625 fi ;
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001626 @$(MKCONFIG) -n $@ -a MPC832XEMDS powerpc mpc83xx mpc832xemds freescale
Marian Balakowicze6f2e902005-10-11 19:09:42 +02001627
Timur Tabi7a78f142007-01-31 15:54:29 -06001628MPC8349ITX_config \
1629MPC8349ITX_LOWBOOT_config \
1630MPC8349ITXGP_config: unconfig
1631 @mkdir -p $(obj)include
Sam Sparkse21659e2007-09-14 11:14:42 -06001632 @mkdir -p $(obj)board/freescale/mpc8349itx
Timur Tabi7a78f142007-01-31 15:54:29 -06001633 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1634 @if [ "$(findstring GP,$@)" ] ; then \
Sam Sparkse21659e2007-09-14 11:14:42 -06001635 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
Timur Tabi7a78f142007-01-31 15:54:29 -06001636 fi
1637 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
Sam Sparkse21659e2007-09-14 11:14:42 -06001638 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
Timur Tabi7a78f142007-01-31 15:54:29 -06001639 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001640 @$(MKCONFIG) -n $@ -a MPC8349ITX powerpc mpc83xx mpc8349itx freescale
Kim Phillips4decd842007-01-24 17:18:37 -06001641
Dave Liu5f820432006-11-03 19:33:44 -06001642MPC8360EMDS_config \
1643MPC8360EMDS_HOST_33_config \
1644MPC8360EMDS_HOST_66_config \
Tony Li281df452007-10-18 17:47:19 +08001645MPC8360EMDS_SLAVE_config \
1646MPC8360EMDS_ATM_config: unconfig
Wolfgang Denkcdd917a2007-08-02 00:48:45 +02001647 @mkdir -p $(obj)include
Wolfgang Denkc6fe4da2008-03-09 02:13:19 +01001648 @if [ "$(findstring _HOST_,$@)" ] ; then \
Wolfgang Denkcdd917a2007-08-02 00:48:45 +02001649 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
Dave Liu5f820432006-11-03 19:33:44 -06001650 fi ; \
1651 if [ "$(findstring _SLAVE_,$@)" ] ; then \
Wolfgang Denkcdd917a2007-08-02 00:48:45 +02001652 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1653 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
Dave Liu5f820432006-11-03 19:33:44 -06001654 fi ; \
1655 if [ "$(findstring _33_,$@)" ] ; then \
Wolfgang Denkcdd917a2007-08-02 00:48:45 +02001656 echo "#define PCI_33M" >>$(obj)include/config.h ; \
Tony Li281df452007-10-18 17:47:19 +08001657 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
Dave Liu5f820432006-11-03 19:33:44 -06001658 fi ; \
1659 if [ "$(findstring _66_,$@)" ] ; then \
Wolfgang Denkcdd917a2007-08-02 00:48:45 +02001660 echo "#define PCI_66M" >>$(obj)include/config.h ; \
Tony Li281df452007-10-18 17:47:19 +08001661 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1662 fi ; \
1663 if [ "$(findstring _ATM_,$@)" ] ; then \
Tony Li281df452007-10-18 17:47:19 +08001664 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
Wolfgang Denkf9301e12008-03-04 14:58:31 +01001665 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
Dave Liu5f820432006-11-03 19:33:44 -06001666 fi ;
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001667 @$(MKCONFIG) -n $@ -a MPC8360EMDS powerpc mpc83xx mpc8360emds freescale
Dave Liu5f820432006-11-03 19:33:44 -06001668
Anton Vorontsovfab6f552008-01-09 20:57:47 +03001669MPC8360ERDK_33_config \
1670MPC8360ERDK_66_config \
Jean-Christophe PLAGNIOL-VILLARD91c82072008-03-02 16:12:31 +01001671MPC8360ERDK_config: unconfig
Anton Vorontsovfab6f552008-01-09 20:57:47 +03001672 @mkdir -p $(obj)include
Wolfgang Denkc6fe4da2008-03-09 02:13:19 +01001673 @if [ "$(findstring _33_,$@)" ] ; then \
Anton Vorontsovfab6f552008-01-09 20:57:47 +03001674 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
1675 fi ;
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001676 @$(MKCONFIG) -n $@ -a MPC8360ERDK powerpc mpc83xx mpc8360erdk freescale
Anton Vorontsovfab6f552008-01-09 20:57:47 +03001677
Dave Liu19580e62007-09-18 12:37:57 +08001678MPC837XEMDS_config \
1679MPC837XEMDS_HOST_config: unconfig
1680 @mkdir -p $(obj)include
Wolfgang Denkc6fe4da2008-03-09 02:13:19 +01001681 @if [ "$(findstring _HOST_,$@)" ] ; then \
Dave Liu19580e62007-09-18 12:37:57 +08001682 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1683 fi ;
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001684 @$(MKCONFIG) -n $@ -a MPC837XEMDS powerpc mpc83xx mpc837xemds freescale
Dave Liu19580e62007-09-18 12:37:57 +08001685
Paul Gortmakerc0d660f2009-08-21 16:21:58 -05001686sbc8349_config \
1687sbc8349_PCI_33_config \
1688sbc8349_PCI_66_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02001689 @$(MKCONFIG) -n $@ -t $@ sbc8349 powerpc mpc83xx sbc8349
Paul Gortmaker91e25762007-01-16 11:38:14 -05001690
Ron Madrid5bb907a2009-01-22 15:05:24 -08001691SIMPC8313_LP_config \
1692SIMPC8313_SP_config: unconfig
1693 @mkdir -p $(obj)include
1694 @mkdir -p $(obj)board/sheldon/simpc8313
1695 @if [ "$(findstring _LP_,$@)" ] ; then \
Ron Madrid5bb907a2009-01-22 15:05:24 -08001696 echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \
1697 fi ; \
1698 if [ "$(findstring _SP_,$@)" ] ; then \
Ron Madrid5bb907a2009-01-22 15:05:24 -08001699 echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \
1700 fi ;
Ron Madrid5bb907a2009-01-22 15:05:24 -08001701 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001702 @$(MKCONFIG) -n $@ -a SIMPC8313 powerpc mpc83xx simpc8313 sheldon
Ron Madrid5bb907a2009-01-22 15:05:24 -08001703
Reinhard Arlt1dee9be2009-12-08 09:13:08 +01001704caddy2_config \
Reinhard Arltc2e49f72009-07-25 06:19:12 +02001705vme8349_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02001706 @$(MKCONFIG) -n $@ -t $@ vme8349 powerpc mpc83xx vme8349 esd
Timur Tabi2ad6b512006-10-31 18:44:42 -06001707
Eran Libertyf046ccd2005-07-28 10:08:46 -05001708#########################################################################
wdenk42d1f032003-10-15 23:53:47 +00001709## MPC85xx Systems
1710#########################################################################
1711
Mingkai Hu9a1a0ae2009-09-23 15:20:37 +08001712MPC8536DS_NAND_config \
Mingkai Hue40ac482009-09-23 15:20:38 +08001713MPC8536DS_SDCARD_config \
1714MPC8536DS_SPIFLASH_config \
Kumar Gala337f9fd2009-07-30 15:54:07 -05001715MPC8536DS_36BIT_config \
Kumar Gala9490a7f2008-07-25 13:31:05 -05001716MPC8536DS_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02001717 @$(MKCONFIG) -n $@ -t $@ MPC8536DS powerpc mpc85xx mpc8536ds freescale
Kumar Gala9490a7f2008-07-25 13:31:05 -05001718
Lunsheng Wangb0e32942005-07-29 10:20:29 -05001719MPC8540EVAL_config \
1720MPC8540EVAL_33_config \
1721MPC8540EVAL_66_config \
1722MPC8540EVAL_33_slave_config \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001723MPC8540EVAL_66_slave_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02001724 @mkdir -p $(obj)include
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001725 @if [ -z "$(findstring _33_,$@)" ] ; then \
Marian Balakowiczf9328632006-09-01 19:49:50 +02001726 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
Lunsheng Wangb0e32942005-07-29 10:20:29 -05001727 fi ; \
1728 if [ "$(findstring _slave_,$@)" ] ; then \
Marian Balakowiczf9328632006-09-01 19:49:50 +02001729 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
Lunsheng Wangb0e32942005-07-29 10:20:29 -05001730 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001731 @$(MKCONFIG) -n $@ -a MPC8540EVAL powerpc mpc85xx mpc8540eval
Lunsheng Wangb0e32942005-07-29 10:20:29 -05001732
Randy Vinson7f3f2bd2007-02-27 19:42:22 -07001733MPC8541CDS_legacy_config \
wdenk03f5c552004-10-10 21:21:55 +00001734MPC8541CDS_config: unconfig
Randy Vinson7f3f2bd2007-02-27 19:42:22 -07001735 @mkdir -p $(obj)include
Wolfgang Denkc6fe4da2008-03-09 02:13:19 +01001736 @if [ "$(findstring _legacy_,$@)" ] ; then \
Randy Vinson7f3f2bd2007-02-27 19:42:22 -07001737 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
Randy Vinson7f3f2bd2007-02-27 19:42:22 -07001738 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001739 @$(MKCONFIG) -n $@ -a MPC8541CDS powerpc mpc85xx mpc8541cds freescale
wdenk03f5c552004-10-10 21:21:55 +00001740
Randy Vinson7f3f2bd2007-02-27 19:42:22 -07001741MPC8548CDS_legacy_config \
Jon Loeligerd9b94f22005-07-25 14:05:07 -05001742MPC8548CDS_config: unconfig
Randy Vinson7f3f2bd2007-02-27 19:42:22 -07001743 @mkdir -p $(obj)include
Wolfgang Denkc6fe4da2008-03-09 02:13:19 +01001744 @if [ "$(findstring _legacy_,$@)" ] ; then \
Randy Vinson7f3f2bd2007-02-27 19:42:22 -07001745 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
Randy Vinson7f3f2bd2007-02-27 19:42:22 -07001746 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001747 @$(MKCONFIG) -n $@ -a MPC8548CDS powerpc mpc85xx mpc8548cds freescale
Jon Loeligerd9b94f22005-07-25 14:05:07 -05001748
Randy Vinson7f3f2bd2007-02-27 19:42:22 -07001749MPC8555CDS_legacy_config \
wdenk03f5c552004-10-10 21:21:55 +00001750MPC8555CDS_config: unconfig
Randy Vinson7f3f2bd2007-02-27 19:42:22 -07001751 @mkdir -p $(obj)include
Wolfgang Denkc6fe4da2008-03-09 02:13:19 +01001752 @if [ "$(findstring _legacy_,$@)" ] ; then \
Randy Vinson7f3f2bd2007-02-27 19:42:22 -07001753 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
Randy Vinson7f3f2bd2007-02-27 19:42:22 -07001754 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001755 @$(MKCONFIG) -n $@ -a MPC8555CDS powerpc mpc85xx mpc8555cds freescale
wdenk7abf0c52004-04-18 21:45:42 +00001756
Liu Yuc95d5412009-11-27 15:31:52 +08001757MPC8569MDS_ATM_config \
Liu Yu674ef7b2010-01-18 19:03:28 +08001758MPC8569MDS_NAND_config \
Haiying Wang765547d2009-03-27 17:02:45 -04001759MPC8569MDS_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02001760 @$(MKCONFIG) -n $@ -t $@ MPC8569MDS powerpc mpc85xx mpc8569mds freescale
Haiying Wang765547d2009-03-27 17:02:45 -04001761
Kumar Gala18af1c52009-01-23 14:22:14 -06001762MPC8572DS_36BIT_config \
Kumar Gala129ba612008-08-12 11:13:08 -05001763MPC8572DS_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02001764 @$(MKCONFIG) -n $@ -t $@ MPC8572DS powerpc mpc85xx mpc8572ds freescale
Kumar Gala129ba612008-08-12 11:13:08 -05001765
Srikanth Srinivasanfeb78382009-04-03 15:36:13 -05001766P2020DS_36BIT_config \
1767P2020DS_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02001768 @$(MKCONFIG) -n $@ -t $@ P2020DS powerpc mpc85xx p2020ds freescale
Srikanth Srinivasanfeb78382009-04-03 15:36:13 -05001769
Kumar Gala62ca21c2009-09-10 16:31:53 -05001770P1011RDB_config \
Dipen Dudhatf7780ec2009-10-08 13:33:18 +05301771P1011RDB_NAND_config \
Dipen Dudhatfad15092009-10-08 13:33:29 +05301772P1011RDB_SDCARD_config \
1773P1011RDB_SPIFLASH_config \
Kumar Gala62ca21c2009-09-10 16:31:53 -05001774P1020RDB_config \
Dipen Dudhatf7780ec2009-10-08 13:33:18 +05301775P1020RDB_NAND_config \
Dipen Dudhatfad15092009-10-08 13:33:29 +05301776P1020RDB_SDCARD_config \
1777P1020RDB_SPIFLASH_config \
Kumar Gala62ca21c2009-09-10 16:31:53 -05001778P2010RDB_config \
Dipen Dudhatf7780ec2009-10-08 13:33:18 +05301779P2010RDB_NAND_config \
Dipen Dudhatfad15092009-10-08 13:33:29 +05301780P2010RDB_SDCARD_config \
1781P2010RDB_SPIFLASH_config \
Dipen Dudhatf7780ec2009-10-08 13:33:18 +05301782P2020RDB_config \
Dipen Dudhatfad15092009-10-08 13:33:29 +05301783P2020RDB_NAND_config \
1784P2020RDB_SDCARD_config \
1785P2020RDB_SPIFLASH_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02001786 @$(MKCONFIG) -n $@ -t $@ P1_P2_RDB powerpc mpc85xx p1_p2_rdb freescale
Poonam Aggrwal728ece32009-08-05 13:29:24 +05301787
wdenkc15f3122004-10-10 22:44:24 +00001788sbc8540_config \
1789sbc8540_33_config \
1790sbc8540_66_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02001791 @$(MKCONFIG) -n $@ -t $@ SBC8540 powerpc mpc85xx sbc8560
wdenkc15f3122004-10-10 22:44:24 +00001792
Paul Gortmaker2738bc82009-09-20 20:36:06 -04001793sbc8548_config \
1794sbc8548_PCI_33_config \
1795sbc8548_PCI_66_config \
1796sbc8548_PCI_33_PCIE_config \
1797sbc8548_PCI_66_PCIE_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02001798 @$(MKCONFIG) -n $@ -t $@ sbc8548 powerpc mpc85xx sbc8548
Joe Hamman11c45eb2007-12-13 06:45:08 -06001799
wdenk466b7412004-07-10 22:35:59 +00001800sbc8560_config \
1801sbc8560_33_config \
Wolfgang Denkf9301e12008-03-04 14:58:31 +01001802sbc8560_66_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02001803 @$(MKCONFIG) -n $@ -t $@ sbc8560 powerpc mpc85xx sbc8560
wdenk8b07a112004-07-10 21:45:47 +00001804
Wolfgang Denkee152982007-05-31 17:20:09 +02001805stxssa_config \
1806stxssa_4M_config: unconfig
1807 @mkdir -p $(obj)include
1808 @if [ "$(findstring _4M_,$@)" ] ; then \
1809 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
Wolfgang Denkee152982007-05-31 17:20:09 +02001810 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001811 @$(MKCONFIG) -n $@ -a stxssa powerpc mpc85xx stxssa stx
Dan Malek35171dc2007-01-05 09:15:34 +01001812
Stefan Roesed96f41e2005-11-30 13:06:40 +01001813TQM8540_config \
1814TQM8541_config \
Wolfgang Grandegger1287e0c2008-06-05 13:12:07 +02001815TQM8548_config \
Wolfgang Grandeggera865bcd2009-02-11 18:38:22 +01001816TQM8548_AG_config \
Wolfgang Grandeggerad7ee5d2009-02-11 18:38:21 +01001817TQM8548_BE_config \
Stefan Roesed96f41e2005-11-30 13:06:40 +01001818TQM8555_config \
1819TQM8560_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02001820 @mkdir -p $(obj)include
Wolfgang Grandeggerad7ee5d2009-02-11 18:38:21 +01001821 @BTYPE=$(@:_config=); \
Wolfgang Grandeggera865bcd2009-02-11 18:38:22 +01001822 CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \
Marian Balakowiczf9328632006-09-01 19:49:50 +02001823 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
Wolfgang Grandeggerad7ee5d2009-02-11 18:38:21 +01001824 echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \
Marian Balakowiczf9328632006-09-01 19:49:50 +02001825 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
Wolfgang Grandeggerad7ee5d2009-02-11 18:38:21 +01001826 echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h;
Wolfgang Grandeggerad7ee5d2009-02-11 18:38:21 +01001827 @echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk;
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001828 @$(MKCONFIG) -n $@ -a TQM85xx powerpc mpc85xx tqm85xx tqc
wdenkf5c5ef42005-04-05 16:26:47 +00001829
wdenk42d1f032003-10-15 23:53:47 +00001830#########################################################################
Jon Loeligerdebb7352006-04-26 17:58:56 -05001831## MPC86xx Systems
1832#########################################################################
1833
Becky Bruce8db04002008-11-06 13:04:09 -06001834MPC8641HPCN_36BIT_config \
Jon Loeligerdebb7352006-04-26 17:58:56 -05001835MPC8641HPCN_config: unconfig
Becky Bruce8db04002008-11-06 13:04:09 -06001836 @mkdir -p $(obj)include
1837 @if [ "$(findstring _36BIT_,$@)" ] ; then \
1838 echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
Becky Bruce8db04002008-11-06 13:04:09 -06001839 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001840 @$(MKCONFIG) -n $@ -a MPC8641HPCN powerpc mpc86xx mpc8641hpcn freescale
Jon Loeligerdebb7352006-04-26 17:58:56 -05001841
Jon Loeligerdebb7352006-04-26 17:58:56 -05001842#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001843## 74xx/7xx Systems
1844#########################################################################
1845
1846EVB64260_config \
1847EVB64260_750CX_config: unconfig
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001848 @$(MKCONFIG) -n $@ EVB64260 powerpc 74xx_7xx evb64260
wdenk7ebf7442002-11-02 23:17:16 +00001849
Stefan Roese1eac2a72006-11-29 15:42:37 +01001850p3m750_config \
1851p3m7448_config: unconfig
1852 @mkdir -p $(obj)include
1853 @if [ "$(findstring 750_,$@)" ] ; then \
1854 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
1855 else \
1856 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
1857 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001858 @$(MKCONFIG) -n $@ -a p3mx powerpc 74xx_7xx p3mx prodrive
Stefan Roese1eac2a72006-11-29 15:42:37 +01001859
wdenk7ebf7442002-11-02 23:17:16 +00001860PCIPPC2_config \
1861PCIPPC6_config: unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02001862 @$(MKCONFIG) -n $@ $@ powerpc 74xx_7xx pcippc2
wdenk7ebf7442002-11-02 23:17:16 +00001863
wdenk7ebf7442002-11-02 23:17:16 +00001864#========================================================================
1865# ARM
1866#========================================================================
Po-Yu Chuang43a5f0d2009-11-11 17:27:30 +08001867
Ulf Samuelssona4b46ed2008-04-12 20:56:03 +02001868#########################################################################
1869## Atmel AT91RM9200 Systems
1870#########################################################################
Stelian Pop20b197c2008-01-20 19:49:21 +00001871
Tom Rixd8380c92009-09-27 07:47:24 -05001872CPUAT91_RAM_config \
1873CPUAT91_config : unconfig
1874 @mkdir -p $(obj)include
1875 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001876 @$(MKCONFIG) -n $@ -a cpuat91 arm arm920t cpuat91 eukrea at91rm9200
Tom Rixd8380c92009-09-27 07:47:24 -05001877
Ulf Samuelssona4b46ed2008-04-12 20:56:03 +02001878#########################################################################
Matthias Weisser34be1062010-01-18 10:58:13 +01001879## ARM926EJ-S Systems
Ulf Samuelssona4b46ed2008-04-12 20:56:03 +02001880#########################################################################
1881
Nicolas Ferre89a7a872008-12-06 13:11:14 +01001882at91sam9260ek_nandflash_config \
1883at91sam9260ek_dataflash_cs0_config \
1884at91sam9260ek_dataflash_cs1_config \
Nicolas Ferredf486b12009-03-22 14:48:16 +01001885at91sam9260ek_config \
1886at91sam9g20ek_nandflash_config \
1887at91sam9g20ek_dataflash_cs0_config \
1888at91sam9g20ek_dataflash_cs1_config \
1889at91sam9g20ek_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDe12d9a82009-01-03 17:22:24 +01001890 @mkdir -p $(obj)include
Nicolas Ferredf486b12009-03-22 14:48:16 +01001891 @if [ "$(findstring 9g20,$@)" ] ; then \
1892 echo "#define CONFIG_AT91SAM9G20EK 1" >>$(obj)include/config.h ; \
Nicolas Ferredf486b12009-03-22 14:48:16 +01001893 else \
1894 echo "#define CONFIG_AT91SAM9260EK 1" >>$(obj)include/config.h ; \
1895 fi;
Nicolas Ferre89a7a872008-12-06 13:11:14 +01001896 @if [ "$(findstring _nandflash,$@)" ] ; then \
1897 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre89a7a872008-12-06 13:11:14 +01001898 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
1899 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
Nicolas Ferre89a7a872008-12-06 13:11:14 +01001900 else \
1901 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
Nicolas Ferre89a7a872008-12-06 13:11:14 +01001902 fi;
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001903 @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
Ulf Samuelssona4b46ed2008-04-12 20:56:03 +02001904
Nicolas Ferre4e170b12009-01-06 21:13:14 +01001905at91sam9xeek_nandflash_config \
1906at91sam9xeek_dataflash_cs0_config \
1907at91sam9xeek_dataflash_cs1_config \
1908at91sam9xeek_config : unconfig
1909 @mkdir -p $(obj)include
1910 @if [ "$(findstring _nandflash,$@)" ] ; then \
1911 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre4e170b12009-01-06 21:13:14 +01001912 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
1913 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
Nicolas Ferre4e170b12009-01-06 21:13:14 +01001914 else \
1915 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
Nicolas Ferre4e170b12009-01-06 21:13:14 +01001916 fi;
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001917 @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
Nicolas Ferre4e170b12009-01-06 21:13:14 +01001918
Nicolas Ferre89a7a872008-12-06 13:11:14 +01001919at91sam9261ek_nandflash_config \
1920at91sam9261ek_dataflash_cs0_config \
1921at91sam9261ek_dataflash_cs3_config \
Sedji Gaouaou5ccc2d92009-06-25 17:04:15 +02001922at91sam9261ek_config \
1923at91sam9g10ek_nandflash_config \
1924at91sam9g10ek_dataflash_cs0_config \
1925at91sam9g10ek_dataflash_cs3_config \
1926at91sam9g10ek_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDe12d9a82009-01-03 17:22:24 +01001927 @mkdir -p $(obj)include
Sedji Gaouaou5ccc2d92009-06-25 17:04:15 +02001928 @if [ "$(findstring 9g10,$@)" ] ; then \
1929 echo "#define CONFIG_AT91SAM9G10EK 1" >>$(obj)include/config.h ; \
Sedji Gaouaou5ccc2d92009-06-25 17:04:15 +02001930 else \
1931 echo "#define CONFIG_AT91SAM9261EK 1" >>$(obj)include/config.h ; \
1932 fi;
Nicolas Ferre89a7a872008-12-06 13:11:14 +01001933 @if [ "$(findstring _nandflash,$@)" ] ; then \
1934 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Sedji Gaouaou5ccc2d92009-06-25 17:04:15 +02001935 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
Nicolas Ferre89a7a872008-12-06 13:11:14 +01001936 echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \
Nicolas Ferre89a7a872008-12-06 13:11:14 +01001937 else \
1938 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
Nicolas Ferre89a7a872008-12-06 13:11:14 +01001939 fi;
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001940 @$(MKCONFIG) -n $@ -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91
Jean-Christophe PLAGNIOL-VILLARD28962f52008-11-01 10:47:59 +01001941
Jean-Christophe PLAGNIOL-VILLARD1b3b7c62009-06-13 12:48:36 +02001942at91sam9263ek_norflash_config \
1943at91sam9263ek_norflash_boot_config \
Nicolas Ferre89a7a872008-12-06 13:11:14 +01001944at91sam9263ek_nandflash_config \
1945at91sam9263ek_dataflash_config \
1946at91sam9263ek_dataflash_cs0_config \
Jean-Christophe PLAGNIOL-VILLARD28962f52008-11-01 10:47:59 +01001947at91sam9263ek_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDe12d9a82009-01-03 17:22:24 +01001948 @mkdir -p $(obj)include
Nicolas Ferre89a7a872008-12-06 13:11:14 +01001949 @if [ "$(findstring _nandflash,$@)" ] ; then \
1950 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD1b3b7c62009-06-13 12:48:36 +02001951 elif [ "$(findstring norflash,$@)" ] ; then \
1952 echo "#define CONFIG_SYS_USE_NORFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre89a7a872008-12-06 13:11:14 +01001953 else \
1954 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre89a7a872008-12-06 13:11:14 +01001955 fi;
Jean-Christophe PLAGNIOL-VILLARD1b3b7c62009-06-13 12:48:36 +02001956 @if [ "$(findstring norflash_boot,$@)" ] ; then \
1957 echo "#define CONFIG_SYS_USE_BOOT_NORFLASH 1" >>$(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD1b3b7c62009-06-13 12:48:36 +02001958 fi;
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001959 @$(MKCONFIG) -n $@ -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91
Jean-Christophe PLAGNIOL-VILLARD28962f52008-11-01 10:47:59 +01001960
Nicolas Ferre89a7a872008-12-06 13:11:14 +01001961at91sam9rlek_nandflash_config \
1962at91sam9rlek_dataflash_config \
1963at91sam9rlek_dataflash_cs0_config \
Jean-Christophe PLAGNIOL-VILLARD28962f52008-11-01 10:47:59 +01001964at91sam9rlek_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDe12d9a82009-01-03 17:22:24 +01001965 @mkdir -p $(obj)include
Nicolas Ferre89a7a872008-12-06 13:11:14 +01001966 @if [ "$(findstring _nandflash,$@)" ] ; then \
1967 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre89a7a872008-12-06 13:11:14 +01001968 else \
1969 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre89a7a872008-12-06 13:11:14 +01001970 fi;
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001971 @$(MKCONFIG) -n $@ -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
Jean-Christophe PLAGNIOL-VILLARD28962f52008-11-01 10:47:59 +01001972
Tom Rix23b80982009-09-27 11:10:09 -05001973CPU9G20_128M_config \
1974CPU9G20_config \
1975CPU9260_128M_config \
1976CPU9260_config : unconfig
1977 @mkdir -p $(obj)include
1978 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02001979 @$(MKCONFIG) -n $@ -a cpu9260 arm arm926ejs cpu9260 eukrea at91
Tom Rix23b80982009-09-27 11:10:09 -05001980
Sedji Gaouaou22ee6472009-07-09 10:16:29 +02001981at91sam9m10g45ek_nandflash_config \
1982at91sam9m10g45ek_dataflash_config \
1983at91sam9m10g45ek_dataflash_cs0_config \
1984at91sam9m10g45ek_config \
1985at91sam9g45ekes_nandflash_config \
1986at91sam9g45ekes_dataflash_config \
1987at91sam9g45ekes_dataflash_cs0_config \
1988at91sam9g45ekes_config : unconfig
1989 @mkdir -p $(obj)include
1990 @if [ "$(findstring 9m10,$@)" ] ; then \
1991 echo "#define CONFIG_AT91SAM9M10G45EK 1" >>$(obj)include/config.h ; \
Sedji Gaouaou22ee6472009-07-09 10:16:29 +02001992 else \
1993 echo "#define CONFIG_AT91SAM9G45EKES 1" >>$(obj)include/config.h ; \
1994 fi;
Sedji Gaouaou22ee6472009-07-09 10:16:29 +02001995 @if [ "$(findstring _nandflash,$@)" ] ; then \
1996 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Sedji Gaouaou22ee6472009-07-09 10:16:29 +02001997 else \
1998 echo "#define CONFIG_ATMEL_SPI 1" >>$(obj)include/config.h ; \
Sedji Gaouaou22ee6472009-07-09 10:16:29 +02001999 fi;
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02002000 @$(MKCONFIG) -n $@ -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91
Sedji Gaouaou22ee6472009-07-09 10:16:29 +02002001
Asen Dimovb5d289f2010-04-20 22:49:04 +03002002pm9g45_config : unconfig
2003 @mkdir -p $(obj)include
2004 @$(MKCONFIG) -a pm9g45 arm arm926ejs pm9g45 ronetix at91
2005
Albin Tonnerre94539672009-08-24 18:03:26 +02002006SBC35_A9G20_NANDFLASH_config \
2007SBC35_A9G20_EEPROM_config \
2008SBC35_A9G20_config : unconfig
2009 @mkdir -p $(obj)include
2010 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02002011 @$(MKCONFIG) -n $@ -a sbc35_a9g20 arm arm926ejs sbc35_a9g20 calao at91
Albin Tonnerre94539672009-08-24 18:03:26 +02002012
Albin Tonnerre2dc851e2009-08-20 16:04:49 +02002013TNY_A9G20_NANDFLASH_config \
2014TNY_A9G20_EEPROM_config \
2015TNY_A9G20_config \
2016TNY_A9260_NANDFLASH_config \
2017TNY_A9260_EEPROM_config \
2018TNY_A9260_config : unconfig
2019 @mkdir -p $(obj)include
2020 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02002021 @$(MKCONFIG) -n $@ -a tny_a9260 arm arm926ejs tny_a9260 calao at91
Albin Tonnerre2dc851e2009-08-20 16:04:49 +02002022
Wolfgang Denk74f43042005-09-25 01:48:28 +02002023########################################################################
Wolfgang Denk87cb6862005-10-06 17:08:18 +02002024## ARM Integrator boards - see doc/README-integrator for more info.
2025integratorap_config \
2026ap_config \
2027ap966_config \
2028ap922_config \
2029ap922_XA10_config \
2030ap7_config \
Wolfgang Denkdd520bf2006-11-30 18:02:20 +01002031ap720t_config \
Wolfgang Denk87cb6862005-10-06 17:08:18 +02002032ap920t_config \
2033ap926ejs_config \
2034ap946es_config: unconfig
Jean-Christophe PLAGNIOL-VILLARD576afd42009-05-17 00:58:37 +02002035 @board/armltd/integrator/split_by_variant.sh ap $@
wdenk3d3befa2004-03-14 15:06:13 +00002036
Wolfgang Denk87cb6862005-10-06 17:08:18 +02002037integratorcp_config \
2038cp_config \
2039cp920t_config \
2040cp926ejs_config \
2041cp946es_config \
2042cp1136_config \
2043cp966_config \
2044cp922_config \
2045cp922_XA10_config \
2046cp1026_config: unconfig
Jean-Christophe PLAGNIOL-VILLARD576afd42009-05-17 00:58:37 +02002047 @board/armltd/integrator/split_by_variant.sh cp $@
wdenk25d67122004-12-10 11:40:40 +00002048
Alessandro Rubiniee1363f2009-06-22 09:18:37 +02002049nhk8815_config \
2050nhk8815_onenand_config: unconfig
Alessandro Rubinid5254f12009-01-24 18:10:37 +01002051 @mkdir -p $(obj)include
2052 @ > $(obj)include/config.h
2053 @if [ "$(findstring _onenand, $@)" ] ; then \
2054 echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \
Alessandro Rubinid5254f12009-01-24 18:10:37 +01002055 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02002056 @$(MKCONFIG) -n $@ -a nhk8815 arm arm926ejs nhk8815 st nomadik
Alessandro Rubinid5254f12009-01-24 18:10:37 +01002057
Ulf Samuelssona4b46ed2008-04-12 20:56:03 +02002058xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2059
wdenk63e73c92004-02-23 22:22:28 +00002060omap1610inn_config \
2061omap1610inn_cs0boot_config \
2062omap1610inn_cs3boot_config \
wdenk3ff02c22004-06-09 15:25:53 +00002063omap1610inn_cs_autoboot_config \
wdenk63e73c92004-02-23 22:22:28 +00002064omap1610h2_config \
2065omap1610h2_cs0boot_config \
wdenk3ff02c22004-06-09 15:25:53 +00002066omap1610h2_cs3boot_config \
2067omap1610h2_cs_autoboot_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02002068 @mkdir -p $(obj)include
wdenk63e73c92004-02-23 22:22:28 +00002069 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
Wolfgang Denkcdd917a2007-08-02 00:48:45 +02002070 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
wdenk3ff02c22004-06-09 15:25:53 +00002071 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
Wolfgang Denkcdd917a2007-08-02 00:48:45 +02002072 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
wdenk63e73c92004-02-23 22:22:28 +00002073 else \
Wolfgang Denkcdd917a2007-08-02 00:48:45 +02002074 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
wdenk63e73c92004-02-23 22:22:28 +00002075 fi;
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02002076 @$(MKCONFIG) -n $@ -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn ti omap
wdenk6f213472003-08-29 22:00:43 +00002077
wdenka56bd922004-06-06 23:13:55 +00002078omap730p2_config \
2079omap730p2_cs0boot_config \
2080omap730p2_cs3boot_config : unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02002081 @mkdir -p $(obj)include
wdenka56bd922004-06-06 23:13:55 +00002082 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
Marian Balakowiczf9328632006-09-01 19:49:50 +02002083 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
wdenka56bd922004-06-06 23:13:55 +00002084 else \
Marian Balakowiczf9328632006-09-01 19:49:50 +02002085 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
wdenka56bd922004-06-06 23:13:55 +00002086 fi;
Wolfgang Denked7a1962010-05-27 23:18:34 +02002087 @$(MKCONFIG) -n $@ -a omap730p2 arm arm926ejs omap730p2 ti omap
wdenka56bd922004-06-06 23:13:55 +00002088
Vipin KUMAR080cfee2010-01-15 19:15:52 +05302089spear300_config \
Vipin KUMAR7da69232010-01-15 19:15:53 +05302090spear310_config \
2091spear320_config : unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02002092 @$(MKCONFIG) -n $@ -t $@ spear3xx arm arm926ejs $(@:_config=) spear spear
Vipin KUMAR7e074152010-01-15 19:15:50 +05302093
Vipin KUMAR566c9c12010-01-15 19:15:48 +05302094spear600_config : unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02002095 @$(MKCONFIG) -n $@ -t $@ spear6xx arm arm926ejs $(@:_config=) spear spear
Vipin KUMAR566c9c12010-01-15 19:15:48 +05302096
Jean-Christophe PLAGNIOL-VILLARD47fd3bf2009-01-28 21:58:03 +01002097SX1_stdout_serial_config \
2098SX1_config: unconfig
2099 @mkdir -p $(obj)include
2100 @if [ "$(findstring _stdout_serial_, $@)" ] ; then \
2101 echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD47fd3bf2009-01-28 21:58:03 +01002102 else \
2103 echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD47fd3bf2009-01-28 21:58:03 +01002104 fi;
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02002105 @$(MKCONFIG) -n $@ SX1 arm arm925t sx1
wdenk2d24a3a2004-06-09 21:50:45 +00002106
wdenkb2001f22003-12-20 22:45:10 +00002107# TRAB default configuration: 8 MB Flash, 32 MB RAM
wdenk43d96162003-03-06 00:02:04 +00002108trab_config \
wdenkb0639ca2003-09-17 22:48:07 +00002109trab_bigram_config \
2110trab_bigflash_config \
wdenkf54ebdf2003-09-17 15:10:32 +00002111trab_old_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02002112 @mkdir -p $(obj)include
2113 @mkdir -p $(obj)board/trab
wdenkb0639ca2003-09-17 22:48:07 +00002114 @[ -z "$(findstring _bigram,$@)" ] || \
Marian Balakowiczf9328632006-09-01 19:49:50 +02002115 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2116 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
wdenkb0639ca2003-09-17 22:48:07 +00002117 }
2118 @[ -z "$(findstring _bigflash,$@)" ] || \
Marian Balakowiczf9328632006-09-01 19:49:50 +02002119 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2120 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
Marian Balakowiczf9328632006-09-01 19:49:50 +02002121 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
wdenkb0639ca2003-09-17 22:48:07 +00002122 }
wdenkf54ebdf2003-09-17 15:10:32 +00002123 @[ -z "$(findstring _old,$@)" ] || \
Marian Balakowiczf9328632006-09-01 19:49:50 +02002124 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2125 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
Marian Balakowiczf9328632006-09-01 19:49:50 +02002126 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
wdenk43d96162003-03-06 00:02:04 +00002127 }
Wolfgang Denka6862bc2010-05-27 23:18:36 +02002128 @$(MKCONFIG) -n $@ -a trab arm arm920t trab - s3c24x0
wdenk7ebf7442002-11-02 23:17:16 +00002129
John Rigby6895d452010-01-25 23:12:58 -07002130tx25_config : unconfig
John Rigby6895d452010-01-25 23:12:58 -07002131 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denked7a1962010-05-27 23:18:34 +02002132 @$(MKCONFIG) $@ arm arm926ejs tx25 karo mx25
John Rigby6895d452010-01-25 23:12:58 -07002133
Wolfgang Denka6862bc2010-05-27 23:18:36 +02002134edb9301_config \
2135edb9302_config \
2136edb9302a_config \
2137edb9307_config \
2138edb9307a_config \
2139edb9312_config \
2140edb9315_config \
2141edb9315a_config: unconfig
2142 @$(MKCONFIG) -n $@ -t $(@:_config=) edb93xx arm arm920t edb93xx - ep93xx
2143
Wolfgang Denk699f0512008-07-15 22:22:44 +02002144#########################################################################
Wolfgang Denk87cb6862005-10-06 17:08:18 +02002145# ARM supplied Versatile development boards
Wolfgang Denk699f0512008-07-15 22:22:44 +02002146#########################################################################
2147
Wolfgang Denk87cb6862005-10-06 17:08:18 +02002148versatile_config \
2149versatileab_config \
2150versatilepb_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDe4943ec2009-01-29 12:07:21 +01002151 @board/armltd/versatile/split_by_variant.sh $@
wdenk074cff02004-02-24 00:16:43 +00002152
2153#########################################################################
wdenk43d96162003-03-06 00:02:04 +00002154## XScale Systems
wdenk7ebf7442002-11-02 23:17:16 +00002155#########################################################################
2156
Stefan Roese9d8d5a52007-01-18 16:05:47 +01002157pdnb3_config \
Wolfgang Denkf9301e12008-03-04 14:58:31 +01002158scpu_config: unconfig
Wolfgang Denkcdd917a2007-08-02 00:48:45 +02002159 @mkdir -p $(obj)include
Stefan Roese9d8d5a52007-01-18 16:05:47 +01002160 @if [ "$(findstring scpu_,$@)" ] ; then \
Wolfgang Denkf9301e12008-03-04 14:58:31 +01002161 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
Stefan Roese9d8d5a52007-01-18 16:05:47 +01002162 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02002163 @$(MKCONFIG) -n $@ -a pdnb3 arm ixp pdnb3 prodrive
Wolfgang Denkba94a1b2006-05-30 15:56:48 +02002164
Stefano Babic040f8f62009-07-01 20:40:41 +02002165polaris_config \
stefano babic5e5803e2007-08-30 23:01:49 +02002166trizepsiv_config : unconfig
Stefano Babic040f8f62009-07-01 20:40:41 +02002167 @mkdir -p $(obj)include
2168 @if [ "$(findstring polaris,$@)" ] ; then \
2169 echo "#define CONFIG_POLARIS 1" >>$(obj)include/config.h ; \
2170 fi;
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02002171 @$(MKCONFIG) -n $@ -a trizepsiv arm pxa trizepsiv
stefano babic5e5803e2007-08-30 23:01:49 +02002172
wdenk8ed96042005-01-09 23:16:25 +00002173#########################################################################
2174## ARM1136 Systems
2175#########################################################################
wdenk8ed96042005-01-09 23:16:25 +00002176
Peter Pearse5ca98812007-11-09 15:24:26 +00002177apollon_config : unconfig
Wolfgang Denk8cbf4e42009-12-06 00:26:19 +01002178 @mkdir -p $(obj)include
Kyungmin Park751b9b52008-01-17 16:43:25 +09002179 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
Kyungmin Park751b9b52008-01-17 16:43:25 +09002180 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denka6862bc2010-05-27 23:18:36 +02002181 @$(MKCONFIG) $@ arm arm1136 apollon - omap24xx
Peter Pearse5ca98812007-11-09 15:24:26 +00002182
Guennadi Liakhovetskia2bb7102009-02-24 10:44:02 +01002183imx31_phycore_eet_config \
Sascha Hauer5ad86212008-03-26 20:41:17 +01002184imx31_phycore_config : unconfig
Guennadi Liakhovetski69c5bf22009-04-05 00:37:07 +02002185 @mkdir -p $(obj)include
Guennadi Liakhovetskia2bb7102009-02-24 10:44:02 +01002186 @if [ -n "$(findstring _eet_,$@)" ]; then \
2187 echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h; \
2188 fi
Wolfgang Denka6862bc2010-05-27 23:18:36 +02002189 @$(MKCONFIG) -n $@ -a imx31_phycore arm arm1136 imx31_phycore - mx31
Sascha Hauer5ad86212008-03-26 20:41:17 +01002190
Magnus Liljad08e5ca2009-07-04 10:31:24 +02002191mx31pdk_config \
2192mx31pdk_nand_config : unconfig
2193 @mkdir -p $(obj)include
2194 @if [ -n "$(findstring _nand_,$@)" ]; then \
2195 echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h; \
2196 else \
2197 echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h; \
2198 echo "#define CONFIG_SKIP_RELOCATE_UBOOT" >> $(obj)include/config.h; \
2199 fi
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02002200 @$(MKCONFIG) -n $@ -a mx31pdk arm arm1136 mx31pdk freescale mx31
Magnus Lilja8449f282009-07-01 01:07:55 +02002201
Guennadi Liakhovetski11edcfe2008-08-31 00:39:47 +02002202#########################################################################
2203## ARM1176 Systems
2204#########################################################################
2205smdk6400_noUSB_config \
2206smdk6400_config : unconfig
2207 @mkdir -p $(obj)include $(obj)board/samsung/smdk6400
2208 @mkdir -p $(obj)nand_spl/board/samsung/smdk6400
2209 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02002210 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Guennadi Liakhovetski11edcfe2008-08-31 00:39:47 +02002211 @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \
2212 echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
Guennadi Liakhovetski11edcfe2008-08-31 00:39:47 +02002213 else \
2214 echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
Guennadi Liakhovetski11edcfe2008-08-31 00:39:47 +02002215 fi
Wolfgang Denk54e19a72010-06-18 01:20:49 +02002216 @$(MKCONFIG) smdk6400 arm arm1176 smdk6400 samsung s3c64xx
Guennadi Liakhovetski11edcfe2008-08-31 00:39:47 +02002217 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
2218
wdenk2262cfe2002-11-18 00:14:45 +00002219#========================================================================
wdenk43d96162003-03-06 00:02:04 +00002220# MIPS
2221#========================================================================
wdenk7ebf7442002-11-02 23:17:16 +00002222#########################################################################
wdenk43d96162003-03-06 00:02:04 +00002223## MIPS32 4Kc
2224#########################################################################
2225
wdenke0ac62d2003-08-17 18:55:18 +00002226incaip_100MHz_config \
2227incaip_133MHz_config \
2228incaip_150MHz_config \
2229incaip_config: unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02002230 @mkdir -p $(obj)include
wdenke0ac62d2003-08-17 18:55:18 +00002231 @[ -z "$(findstring _100MHz,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02002232 echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h
wdenke0ac62d2003-08-17 18:55:18 +00002233 @[ -z "$(findstring _133MHz,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02002234 echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h
wdenke0ac62d2003-08-17 18:55:18 +00002235 @[ -z "$(findstring _150MHz,$@)" ] || \
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02002236 echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h
2237 @$(MKCONFIG) -n $@ -a incaip mips mips incaip
wdenke0ac62d2003-08-17 18:55:18 +00002238
Stefan Roese2a61eff2009-01-21 17:25:01 +01002239vct_premium_config \
2240vct_premium_small_config \
2241vct_premium_onenand_config \
2242vct_premium_onenand_small_config \
2243vct_platinum_config \
2244vct_platinum_small_config \
2245vct_platinum_onenand_config \
2246vct_platinum_onenand_small_config \
2247vct_platinumavc_config \
2248vct_platinumavc_small_config \
2249vct_platinumavc_onenand_config \
2250vct_platinumavc_onenand_small_config: unconfig
2251 @mkdir -p $(obj)include
Wolfgang Denk0e42ada2010-05-27 23:18:33 +02002252 @[ -z "$(findstring _premium,$@)" ] || \
2253 echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h
2254 @[ -z "$(findstring _platinum_,$@)" ] || \
2255 echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h
2256 @[ -z "$(findstring _platinumavc,$@)" ] || \
2257 echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h
2258 @[ -z "$(findstring _onenand,$@)" ] || \
2259 echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h
2260 @[ -z "$(findstring _small,$@)" ] || \
2261 echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h
2262 @$(MKCONFIG) -n $@ -a vct mips mips vct micronas
Stefan Roese2a61eff2009-01-21 17:25:01 +01002263
wdenke0ac62d2003-08-17 18:55:18 +00002264#########################################################################
wdenk69459792004-05-29 16:53:29 +00002265## MIPS32 AU1X00
2266#########################################################################
Wolfgang Denk699f0512008-07-15 22:22:44 +02002267
Wolfgang Denkdd520bf2006-11-30 18:02:20 +01002268dbau1000_config : unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02002269 @mkdir -p $(obj)include
Wolfgang Denk210ed202008-03-09 00:06:09 +01002270 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
Marian Balakowiczf9328632006-09-01 19:49:50 +02002271 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenk69459792004-05-29 16:53:29 +00002272
Wolfgang Denkdd520bf2006-11-30 18:02:20 +01002273dbau1100_config : unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02002274 @mkdir -p $(obj)include
Wolfgang Denk210ed202008-03-09 00:06:09 +01002275 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
Marian Balakowiczf9328632006-09-01 19:49:50 +02002276 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenk69459792004-05-29 16:53:29 +00002277
Wolfgang Denkdd520bf2006-11-30 18:02:20 +01002278dbau1500_config : unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02002279 @mkdir -p $(obj)include
Wolfgang Denk210ed202008-03-09 00:06:09 +01002280 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
Marian Balakowiczf9328632006-09-01 19:49:50 +02002281 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenk69459792004-05-29 16:53:29 +00002282
wdenkff36fd82005-01-09 22:28:56 +00002283dbau1550_config : unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02002284 @mkdir -p $(obj)include
Wolfgang Denk210ed202008-03-09 00:06:09 +01002285 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
Marian Balakowiczf9328632006-09-01 19:49:50 +02002286 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenkff36fd82005-01-09 22:28:56 +00002287
2288dbau1550_el_config : unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02002289 @mkdir -p $(obj)include
Wolfgang Denk210ed202008-03-09 00:06:09 +01002290 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
Marian Balakowiczf9328632006-09-01 19:49:50 +02002291 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenkff36fd82005-01-09 22:28:56 +00002292
Wolfgang Denk699f0512008-07-15 22:22:44 +02002293gth2_config : unconfig
2294 @mkdir -p $(obj)include
2295 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +02002296 @$(MKCONFIG) -a $@ mips mips gth2
Wolfgang Denk699f0512008-07-15 22:22:44 +02002297
Wolfgang Denkdd520bf2006-11-30 18:02:20 +01002298pb1000_config : unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02002299 @mkdir -p $(obj)include
Wolfgang Denk210ed202008-03-09 00:06:09 +01002300 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
Marian Balakowiczf9328632006-09-01 19:49:50 +02002301 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
Wolfgang Denk265817c2005-09-25 00:53:22 +02002302
Wolfgang Denk699f0512008-07-15 22:22:44 +02002303qemu_mips_config : unconfig
Vlad Lungu0764c162008-01-16 19:27:51 +02002304 @mkdir -p $(obj)include
Wolfgang Denk210ed202008-03-09 00:06:09 +01002305 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
Vlad Lungu0764c162008-01-16 19:27:51 +02002306 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2307
wdenk4a551702003-10-08 23:26:14 +00002308#========================================================================
2309# Nios
2310#========================================================================
wdenk4a551702003-10-08 23:26:14 +00002311
wdenk5c952cf2004-10-10 21:27:30 +00002312#########################################################################
2313## Nios-II
2314#########################################################################
2315
Thomas Chou8cbb0dd2010-04-21 08:40:59 +08002316# nios2 generic boards
2317NIOS2_GENERIC = nios2-generic
2318
2319$(NIOS2_GENERIC:%=%_config) : unconfig
Wolfgang Denked7a1962010-05-27 23:18:34 +02002320 @$(MKCONFIG) $@ nios2 nios2 nios2-generic altera
Thomas Chou8cbb0dd2010-04-21 08:40:59 +08002321
wdenk507bbe32004-04-18 21:13:41 +00002322#========================================================================
Mike Frysinger60fa72d2008-02-04 19:26:55 -05002323# Blackfin
2324#========================================================================
Wolfgang Denk0afe5192006-03-12 02:10:00 +01002325
Michael Hennerich10eafa12009-12-10 09:19:21 +00002326bf527-ezkit-v2_config : unconfig
2327 @$(MKCONFIG) -t BF527_EZKIT_REV_2_1 \
2328 bf527-ezkit blackfin blackfin bf527-ezkit
2329
Haavard Skinnemoen5e3b0bc2006-10-25 15:48:59 +02002330#========================================================================
Wolfgang Denk699f0512008-07-15 22:22:44 +02002331# SH3 (SuperH)
2332#========================================================================
wdenk7ebf7442002-11-02 23:17:16 +00002333
Nobuhiro Iwamatsu69df3c42007-05-13 21:01:03 +09002334#########################################################################
Nobuhiro Iwamatsuc655fad2008-08-31 23:02:04 +09002335## sh2 (Renesas SuperH)
2336#########################################################################
2337rsk7203_config: unconfig
Kieran Binghama5b04d02008-12-30 01:16:03 +00002338 @mkdir -p $(obj)include
Peter Griffin4d416502009-02-10 16:44:45 +00002339 @echo "#define CONFIG_RSK7203 1" > $(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +02002340 @$(MKCONFIG) -a $@ sh sh2 rsk7203 renesas
Nobuhiro Iwamatsuc655fad2008-08-31 23:02:04 +09002341
2342#########################################################################
Yoshihiro Shimodab2b5e2b2007-12-03 22:58:50 +09002343## sh3 (Renesas SuperH)
2344#########################################################################
Wolfgang Denk699f0512008-07-15 22:22:44 +02002345
Mark Jonas3313e0e2008-03-10 11:37:10 +01002346mpr2_config: unconfig
Wolfgang Denk3ab48272008-07-07 00:45:03 +02002347 @mkdir -p $(obj)include
2348 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +02002349 @$(MKCONFIG) -a $@ sh sh3 mpr2
Mark Jonas3313e0e2008-03-10 11:37:10 +01002350
Yoshihiro Shimodab2b5e2b2007-12-03 22:58:50 +09002351ms7720se_config: unconfig
Wolfgang Denk3ab48272008-07-07 00:45:03 +02002352 @mkdir -p $(obj)include
2353 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +02002354 @$(MKCONFIG) -a $@ sh sh3 ms7720se
Yoshihiro Shimodab2b5e2b2007-12-03 22:58:50 +09002355
2356#########################################################################
Nobuhiro Iwamatsu69df3c42007-05-13 21:01:03 +09002357## sh4 (Renesas SuperH)
2358#########################################################################
Wolfgang Denk699f0512008-07-15 22:22:44 +02002359
2360MigoR_config : unconfig
2361 @mkdir -p $(obj)include
2362 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +02002363 @$(MKCONFIG) -a $@ sh sh4 MigoR renesas
Wolfgang Denk699f0512008-07-15 22:22:44 +02002364
Nobuhiro Iwamatsu69df3c42007-05-13 21:01:03 +09002365ms7750se_config: unconfig
Wolfgang Denk3ab48272008-07-07 00:45:03 +02002366 @mkdir -p $(obj)include
Wolfgang Denk210ed202008-03-09 00:06:09 +01002367 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +02002368 @$(MKCONFIG) -a $@ sh sh4 ms7750se
Nobuhiro Iwamatsu69df3c42007-05-13 21:01:03 +09002369
Wolfgang Denkf9301e12008-03-04 14:58:31 +01002370ms7722se_config : unconfig
Wolfgang Denk3ab48272008-07-07 00:45:03 +02002371 @mkdir -p $(obj)include
Wolfgang Denk210ed202008-03-09 00:06:09 +01002372 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +02002373 @$(MKCONFIG) -a $@ sh sh4 ms7722se
wdenk7a8e9bed2003-05-31 18:35:21 +00002374
Wolfgang Denk699f0512008-07-15 22:22:44 +02002375r2dplus_config : unconfig
Wolfgang Denk3ab48272008-07-07 00:45:03 +02002376 @mkdir -p $(obj)include
Wolfgang Denk699f0512008-07-15 22:22:44 +02002377 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +02002378 @$(MKCONFIG) -a $@ sh sh4 r2dplus renesas
goda.yusukec2042f52008-01-25 20:46:36 +09002379
Yusuke Godac133c1f2008-03-11 12:55:12 +09002380r7780mp_config: unconfig
Wolfgang Denk3ab48272008-07-07 00:45:03 +02002381 @mkdir -p $(obj)include
2382 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +02002383 @$(MKCONFIG) -a $@ sh sh4 r7780mp renesas
Yusuke Godac133c1f2008-03-11 12:55:12 +09002384
Nobuhiro Iwamatsu7faddae2008-06-09 13:39:57 +09002385sh7763rdp_config : unconfig
Wolfgang Denk3ab48272008-07-07 00:45:03 +02002386 @mkdir -p $(obj)include
2387 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +02002388 @$(MKCONFIG) -a $@ sh sh4 sh7763rdp renesas
Nobuhiro Iwamatsu7faddae2008-06-09 13:39:57 +09002389
Yoshihiro Shimodaada93182009-03-03 15:11:17 +09002390sh7785lcr_32bit_config \
Nobuhiro Iwamatsu0d53a472008-08-31 22:45:08 +09002391sh7785lcr_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDce298172009-06-04 12:06:43 +02002392 @mkdir -p $(obj)include
2393 @mkdir -p $(obj)board/renesas/sh7785lcr
2394 @echo "#define CONFIG_SH7785LCR 1" > $(obj)include/config.h
Yoshihiro Shimodaada93182009-03-03 15:11:17 +09002395 @if [ "$(findstring 32bit, $@)" ] ; then \
2396 echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \
Yoshihiro Shimodaada93182009-03-03 15:11:17 +09002397 echo "TEXT_BASE = 0x8ff80000" > \
2398 $(obj)board/renesas/sh7785lcr/config.tmp ; \
Yoshihiro Shimodaada93182009-03-03 15:11:17 +09002399 fi
Wolfgang Denked7a1962010-05-27 23:18:34 +02002400 @$(MKCONFIG) -n $@ -a sh7785lcr sh sh4 sh7785lcr renesas
Nobuhiro Iwamatsu0d53a472008-08-31 22:45:08 +09002401
Nobuhiro Iwamatsu6f0da492008-08-22 17:39:09 +09002402ap325rxa_config : unconfig
2403 @mkdir -p $(obj)include
2404 @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +02002405 @$(MKCONFIG) -a $@ sh sh4 ap325rxa renesas
Nobuhiro Iwamatsu6f0da492008-08-22 17:39:09 +09002406
Nobuhiro Iwamatsu74d9c162009-06-25 16:31:26 +09002407espt_config : unconfig
2408 @mkdir -p $(obj)include
2409 @echo "#define CONFIG_ESPT 1" > $(obj)include/config.h
Wolfgang Denked7a1962010-05-27 23:18:34 +02002410 @$(MKCONFIG) -a $@ sh sh4 espt
Nobuhiro Iwamatsu74d9c162009-06-25 16:31:26 +09002411
wdenk7ebf7442002-11-02 23:17:16 +00002412#########################################################################
2413#########################################################################
wdenk85ec0bc2003-03-31 16:34:49 +00002414
wdenk3e386912003-04-05 00:53:31 +00002415clean:
Peter Tyser1bc15382009-07-10 11:03:19 -05002416 @rm -f $(obj)examples/standalone/82559_eeprom \
Wolfgang Denkd640ac52009-09-07 23:52:31 +02002417 $(obj)examples/standalone/atmel_df_pow2 \
Peter Tyser1bc15382009-07-10 11:03:19 -05002418 $(obj)examples/standalone/eepro100_eeprom \
2419 $(obj)examples/standalone/hello_world \
2420 $(obj)examples/standalone/interrupt \
2421 $(obj)examples/standalone/mem_to_mem_idma2intr \
2422 $(obj)examples/standalone/sched \
2423 $(obj)examples/standalone/smc91111_eeprom \
2424 $(obj)examples/standalone/test_burst \
2425 $(obj)examples/standalone/timer
Peter Tyserd4abc752009-07-20 19:02:21 -05002426 @rm -f $(obj)examples/api/demo{,.bin}
Wolfgang Denkf9301e12008-03-04 14:58:31 +01002427 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
2428 $(obj)tools/env/{fw_printenv,fw_setenv} \
2429 $(obj)tools/envcrc \
2430 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
2431 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
2432 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
2433 $(obj)tools/ncb $(obj)tools/ubsha1
2434 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
2435 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
2436 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
Wolfgang Denk1dcb50a2009-02-22 01:17:47 +01002437 $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \
Peter Tyserea0364f2010-04-12 22:28:04 -05002438 $(obj)arch/blackfin/lib/u-boot.lds \
Wolfgang Denk1aada9c2009-08-17 14:00:53 +02002439 $(obj)u-boot.lds \
Peter Tyserc6fb83d2010-04-12 22:28:13 -05002440 $(obj)arch/blackfin/cpu/bootrom-asm-offsets.[chs]
Wolfgang Denkdc7746d2008-04-20 15:39:38 -07002441 @rm -f $(obj)include/bmp_logo.h
Wolfgang Denk1aada9c2009-08-17 14:00:53 +02002442 @rm -f $(obj)nand_spl/{u-boot.lds,u-boot-spl,u-boot-spl.map,System.map}
Kyungmin Parkca6189d2009-09-22 09:05:00 +09002443 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl.map}
2444 @rm -f $(ONENAND_BIN)
Wolfgang Denk1aada9c2009-08-17 14:00:53 +02002445 @rm -f $(obj)onenand_ipl/u-boot.lds
Peter Tyserd4abc752009-07-20 19:02:21 -05002446 @rm -f $(TIMESTAMP_FILE) $(VERSION_FILE)
Wolfgang Denkae6d1052008-01-13 00:59:21 +01002447 @find $(OBJTREE) -type f \
wdenk7ebf7442002-11-02 23:17:16 +00002448 \( -name 'core' -o -name '*.bak' -o -name '*~' \
Peter Tyser2b48f7d2009-03-13 18:54:26 -05002449 -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \
wdenk7ebf7442002-11-02 23:17:16 +00002450 | xargs rm -f
wdenk7ebf7442002-11-02 23:17:16 +00002451
2452clobber: clean
Wolfgang Denkae6d1052008-01-13 00:59:21 +01002453 @find $(OBJTREE) -type f \( -name .depend \
wdenk4c0d4c32004-06-09 17:34:58 +00002454 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2455 -print0 \
2456 | xargs -0 rm -f
Li Yangffda5862008-02-29 11:46:05 +08002457 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
Wolfgang Denk5013c092008-03-02 22:45:33 +01002458 $(obj)cscope.* $(obj)*.*~
Wolfgang Denkae6d1052008-01-13 00:59:21 +01002459 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
Prafulla Wadaskaraa0c7a82009-09-07 15:05:02 +05302460 @rm -f $(obj)u-boot.kwb
Stefano Babicc5fb70c2010-02-05 15:13:58 +01002461 @rm -f $(obj)u-boot.imx
Peter Tyserfb8b33c2009-03-13 18:54:47 -05002462 @rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes}
Stefan Roesea47a12b2010-04-15 16:07:28 +02002463 @rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c
Wolfgang Denkae6d1052008-01-13 00:59:21 +01002464 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
Jean-Christophe PLAGNIOL-VILLARDa958b662008-08-16 18:54:27 +02002465 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
2466 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
wdenk7ebf7442002-11-02 23:17:16 +00002467
Marian Balakowiczf9328632006-09-01 19:49:50 +02002468ifeq ($(OBJTREE),$(SRCTREE))
wdenk7ebf7442002-11-02 23:17:16 +00002469mrproper \
2470distclean: clobber unconfig
Marian Balakowiczf9328632006-09-01 19:49:50 +02002471else
2472mrproper \
2473distclean: clobber unconfig
Wolfgang Denkae6d1052008-01-13 00:59:21 +01002474 rm -rf $(obj)*
Marian Balakowiczf9328632006-09-01 19:49:50 +02002475endif
wdenk7ebf7442002-11-02 23:17:16 +00002476
2477backup:
2478 F=`basename $(TOPDIR)` ; cd .. ; \
2479 gtar --force-local -zcvf `date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
2480
2481#########################################################################