blob: 4f1cb1b4d1acc531b5423840a0d1d3286dfabbd8 [file] [log] [blame]
wdenk7ebf7442002-11-02 23:17:16 +00001#
Detlev Zundela414c7a2010-03-12 10:01:12 +01002# (C) Copyright 2000-2010
wdenk7ebf7442002-11-02 23:17:16 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# See file CREDITS for list of people who contributed to this
6# project.
7#
8# This program is free software; you can redistribute it and/or
9# modify it under the terms of the GNU General Public License as
Wolfgang Denkc98368a2006-07-19 17:52:30 +020010# published by the Free Software Foundatio; either version 2 of
wdenk7ebf7442002-11-02 23:17:16 +000011# the License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
Wolfgang Denk19b68c42008-03-04 14:58:31 +010015# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
wdenk7ebf7442002-11-02 23:17:16 +000016# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
20# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21# MA 02111-1307 USA
22#
23
Wolfgang Denka2cfb242010-03-12 23:06:04 +010024VERSION = 2010
Wolfgang Denk23f490d2010-05-26 23:57:08 +020025PATCHLEVEL = 06
Wolfgang Denk88a060b2008-09-09 23:55:18 +020026SUBLEVEL =
Wolfgang Denk94315062010-06-29 23:27:35 +020027EXTRAVERSION =
Wolfgang Denk88a060b2008-09-09 23:55:18 +020028ifneq "$(SUBLEVEL)" ""
Wolfgang Denk4d1d9a32006-02-21 17:33:04 +010029U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
Wolfgang Denk88a060b2008-09-09 23:55:18 +020030else
31U_BOOT_VERSION = $(VERSION).$(PATCHLEVEL)$(EXTRAVERSION)
32endif
Peter Tyser62948502008-11-03 09:30:59 -060033TIMESTAMP_FILE = $(obj)include/timestamp_autogenerated.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +020034VERSION_FILE = $(obj)include/version_autogenerated.h
Wolfgang Denk4d1d9a32006-02-21 17:33:04 +010035
wdenk7ebf7442002-11-02 23:17:16 +000036HOSTARCH := $(shell uname -m | \
37 sed -e s/i.86/i386/ \
38 -e s/sun4u/sparc64/ \
39 -e s/arm.*/arm/ \
40 -e s/sa110/arm/ \
Kumar Galaf299a4c2010-04-28 02:52:02 -050041 -e s/ppc64/powerpc/ \
42 -e s/ppc/powerpc/ \
Nobuhiro Iwamatsucd42c902010-06-16 07:59:17 +090043 -e s/macppc/powerpc/\
44 -e s/sh.*/sh/)
wdenk7ebf7442002-11-02 23:17:16 +000045
Wolfgang Denkaf03f732005-08-12 23:23:46 +020046HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
wdenk7ebf7442002-11-02 23:17:16 +000047 sed -e 's/\(cygwin\).*/cygwin/')
48
Peter Tyser4338a3e2008-11-12 12:33:20 -060049# Set shell to bash if possible, otherwise fall back to sh
50SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
51 else if [ -x /bin/bash ]; then echo /bin/bash; \
52 else echo sh; fi; fi)
53
54export HOSTARCH HOSTOS SHELL
wdenk7ebf7442002-11-02 23:17:16 +000055
56# Deal with colliding definitions from tcsh etc.
57VENDOR=
58
59#########################################################################
Wolfgang Denk0a659ad2008-01-13 00:59:21 +010060# Allow for silent builds
61ifeq (,$(findstring s,$(MAKEFLAGS)))
62XECHO = echo
63else
64XECHO = :
65endif
66
67#########################################################################
Marian Balakowiczd62379d2006-09-01 19:49:50 +020068#
69# U-boot build supports producing a object files to the separate external
70# directory. Two use cases are supported:
Stefan Roese42fbddd2006-09-07 11:51:23 +020071#
Marian Balakowiczd62379d2006-09-01 19:49:50 +020072# 1) Add O= to the make command line
73# 'make O=/tmp/build all'
74#
75# 2) Set environement variable BUILD_DIR to point to the desired location
76# 'export BUILD_DIR=/tmp/build'
77# 'make'
78#
79# The second approach can also be used with a MAKEALL script
80# 'export BUILD_DIR=/tmp/build'
81# './MAKEALL'
Stefan Roese42fbddd2006-09-07 11:51:23 +020082#
Marian Balakowiczd62379d2006-09-01 19:49:50 +020083# Command line 'O=' setting overrides BUILD_DIR environent variable.
Stefan Roese42fbddd2006-09-07 11:51:23 +020084#
Marian Balakowiczd62379d2006-09-01 19:49:50 +020085# When none of the above methods is used the local build is performed and
86# the object files are placed in the source directory.
Stefan Roese42fbddd2006-09-07 11:51:23 +020087#
wdenk7ebf7442002-11-02 23:17:16 +000088
Marian Balakowiczd62379d2006-09-01 19:49:50 +020089ifdef O
90ifeq ("$(origin O)", "command line")
91BUILD_DIR := $(O)
92endif
93endif
94
95ifneq ($(BUILD_DIR),)
96saved-output := $(BUILD_DIR)
Marian Balakowicz7f783cb2006-09-07 12:05:53 +020097
98# Attempt to create a output directory.
99$(shell [ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR})
100
Stefan Roesea4108482006-09-12 08:49:07 +0200101# Verify if it was successful.
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200102BUILD_DIR := $(shell cd $(BUILD_DIR) && /bin/pwd)
103$(if $(BUILD_DIR),,$(error output directory "$(saved-output)" does not exist))
104endif # ifneq ($(BUILD_DIR),)
105
106OBJTREE := $(if $(BUILD_DIR),$(BUILD_DIR),$(CURDIR))
107SRCTREE := $(CURDIR)
108TOPDIR := $(SRCTREE)
109LNDIR := $(OBJTREE)
110export TOPDIR SRCTREE OBJTREE
111
112MKCONFIG := $(SRCTREE)/mkconfig
113export MKCONFIG
114
115ifneq ($(OBJTREE),$(SRCTREE))
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +0100116REMOTE_BUILD := 1
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200117export REMOTE_BUILD
118endif
wdenk7ebf7442002-11-02 23:17:16 +0000119
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200120# $(obj) and (src) are defined in config.mk but here in main Makefile
121# we also need them before config.mk is included which is the case for
122# some targets like unconfig, clean, clobber, distclean, etc.
123ifneq ($(OBJTREE),$(SRCTREE))
124obj := $(OBJTREE)/
125src := $(SRCTREE)/
126else
127obj :=
128src :=
Stefan Roese42fbddd2006-09-07 11:51:23 +0200129endif
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200130export obj src
131
Wolfgang Denk6570eb32008-03-02 22:45:33 +0100132# Make sure CDPATH settings don't interfere
133unexport CDPATH
134
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200135#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000136
Mike Frysingerd8f0f912009-05-30 01:02:03 -0400137# The "tools" are needed early, so put this first
138# Don't include stuff already done in $(LIBS)
139SUBDIRS = tools \
Peter Tyser07a8af32009-07-10 11:03:19 -0500140 examples/standalone \
Peter Tyseracce4eb2009-07-20 19:02:21 -0500141 examples/api
Mike Frysingerd8f0f912009-05-30 01:02:03 -0400142
143.PHONY : $(SUBDIRS)
144
Wolfgang Denk0a659ad2008-01-13 00:59:21 +0100145ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk))
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200146
Mike Frysinger27e1c722009-07-21 22:59:36 -0400147# Include autoconf.mk before config.mk so that the config options are available
148# to all top level build files. We need the dummy all: target to prevent the
149# dependency target in autoconf.mk.dep from being the default.
150all:
151sinclude $(obj)include/autoconf.mk.dep
152sinclude $(obj)include/autoconf.mk
153
wdenk7ebf7442002-11-02 23:17:16 +0000154# load ARCH, BOARD, and CPU configuration
Wolfgang Denk0a659ad2008-01-13 00:59:21 +0100155include $(obj)include/config.mk
wdenkf8e9a232004-10-09 22:21:29 +0000156export ARCH CPU BOARD VENDOR SOC
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200157
Mike Frysinger8378ba42009-06-14 23:33:14 -0400158# set default to nothing for native builds
Wolfgang Denkab4f2fe2007-03-06 18:01:47 +0100159ifeq ($(HOSTARCH),$(ARCH))
Mike Frysinger8378ba42009-06-14 23:33:14 -0400160CROSS_COMPILE ?=
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +0100161endif
wdenk7ebf7442002-11-02 23:17:16 +0000162
Wolfgang Denkbb874e32006-03-12 01:37:50 +0100163# load other configuration
164include $(TOPDIR)/config.mk
165
wdenk7ebf7442002-11-02 23:17:16 +0000166#########################################################################
167# U-Boot objects....order is important (i.e. start must be first)
168
Peter Tyserd53e8fd2010-04-12 22:28:02 -0500169OBJS = $(CPUDIR)/start.o
wdenk591dda52002-11-18 00:14:45 +0000170ifeq ($(CPU),i386)
Peter Tyserd53e8fd2010-04-12 22:28:02 -0500171OBJS += $(CPUDIR)/start16.o
172OBJS += $(CPUDIR)/resetvec.o
wdenk591dda52002-11-18 00:14:45 +0000173endif
wdenk7ebf7442002-11-02 23:17:16 +0000174ifeq ($(CPU),ppc4xx)
Peter Tyserd53e8fd2010-04-12 22:28:02 -0500175OBJS += $(CPUDIR)/resetvec.o
wdenk7ebf7442002-11-02 23:17:16 +0000176endif
wdenk9c53f402003-10-15 23:53:47 +0000177ifeq ($(CPU),mpc85xx)
Peter Tyserd53e8fd2010-04-12 22:28:02 -0500178OBJS += $(CPUDIR)/resetvec.o
wdenk9c53f402003-10-15 23:53:47 +0000179endif
wdenk7ebf7442002-11-02 23:17:16 +0000180
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200181OBJS := $(addprefix $(obj),$(OBJS))
182
Peter Tyser685b7f52010-04-12 22:28:05 -0500183LIBS = lib/libgeneric.a
184LIBS += lib/lzma/liblzma.a
185LIBS += lib/lzo/liblzo.a
Kim Phillips53b34982007-08-21 17:00:17 -0500186LIBS += $(shell if [ -f board/$(VENDOR)/common/Makefile ]; then echo \
187 "board/$(VENDOR)/common/lib$(VENDOR).a"; fi)
Peter Tyserd53e8fd2010-04-12 22:28:02 -0500188LIBS += $(CPUDIR)/lib$(CPU).a
wdenkf8e9a232004-10-09 22:21:29 +0000189ifdef SOC
Peter Tyserd53e8fd2010-04-12 22:28:02 -0500190LIBS += $(CPUDIR)/$(SOC)/lib$(SOC).a
wdenkf8e9a232004-10-09 22:21:29 +0000191endif
Stefan Roese07653eb2007-04-23 12:00:22 +0200192ifeq ($(CPU),ixp)
Peter Tyserf7c67372010-04-12 22:28:11 -0500193LIBS += arch/arm/cpu/ixp/npe/libnpe.a
Stefan Roese07653eb2007-04-23 12:00:22 +0200194endif
Peter Tysercede5d82010-04-12 22:28:04 -0500195LIBS += arch/$(ARCH)/lib/lib$(ARCH).a
wdenk4d01d9e2004-03-25 14:59:05 +0000196LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
Stefan Roese2fc10f62009-03-19 15:35:05 +0100197 fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a \
198 fs/ubifs/libubifs.a
wdenk7ebf7442002-11-02 23:17:16 +0000199LIBS += net/libnet.a
200LIBS += disk/libdisk.a
Jason Jinbb20f352007-07-13 12:14:58 +0800201LIBS += drivers/bios_emulator/libatibiosemu.a
Jean-Christophe PLAGNIOL-VILLARD7f7e6fb2007-11-24 21:13:59 +0100202LIBS += drivers/block/libblock.a
TsiChungLiew8cb946d2008-01-15 14:15:46 -0600203LIBS += drivers/dma/libdma.a
Jean-Christophe PLAGNIOL-VILLARDc0268772008-10-31 12:26:55 +0100204LIBS += drivers/fpga/libfpga.a
Peter Tyser9902e422008-12-17 16:36:21 -0600205LIBS += drivers/gpio/libgpio.a
Jean-Christophe PLAGNIOL-VILLARDcf2e1082007-11-24 20:14:44 +0100206LIBS += drivers/hwmon/libhwmon.a
Jean-Christophe PLAGNIOL-VILLARDed0ea1f2007-11-21 21:19:24 +0100207LIBS += drivers/i2c/libi2c.a
Jean-Christophe PLAGNIOL-VILLARD0c20dcd2007-11-24 19:46:45 +0100208LIBS += drivers/input/libinput.a
Jean-Christophe PLAGNIOL-VILLARDb7803012007-11-24 21:17:55 +0100209LIBS += drivers/misc/libmisc.a
Haavard Skinnemoeneb220962008-06-12 19:27:56 +0200210LIBS += drivers/mmc/libmmc.a
Jean-Christophe PLAGNIOL-VILLARD82ca9742007-11-24 21:26:56 +0100211LIBS += drivers/mtd/libmtd.a
212LIBS += drivers/mtd/nand/libnand.a
Jean-Christophe PLAGNIOL-VILLARD82ca9742007-11-24 21:26:56 +0100213LIBS += drivers/mtd/onenand/libonenand.a
Kyungmin Park0bd0c1f2008-11-19 16:38:24 +0100214LIBS += drivers/mtd/ubi/libubi.a
Haavard Skinnemoen2f5bfb72008-05-16 11:10:33 +0200215LIBS += drivers/mtd/spi/libspi_flash.a
TsiChung Liewf6afe722007-06-18 13:50:13 -0500216LIBS += drivers/net/libnet.a
Jean-Christophe PLAGNIOL-VILLARDf2266792008-08-29 01:18:01 +0200217LIBS += drivers/net/phy/libphy.a
Jean-Christophe PLAGNIOL-VILLARDed0ea1f2007-11-21 21:19:24 +0100218LIBS += drivers/pci/libpci.a
219LIBS += drivers/pcmcia/libpcmcia.a
Tom Rix330a90a2009-06-28 12:52:29 -0500220LIBS += drivers/power/libpower.a
Ben Warren7efe9272008-01-16 22:37:35 -0500221LIBS += drivers/spi/libspi.a
Dave Liue732e9c2006-11-03 12:11:15 -0600222ifeq ($(CPU),mpc83xx)
223LIBS += drivers/qe/qe.a
Kim Phillips6578bae2010-05-28 08:00:14 +0000224LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a
Dave Liue732e9c2006-11-03 12:11:15 -0600225endif
Andy Flemingee0e9172007-08-14 00:14:25 -0500226ifeq ($(CPU),mpc85xx)
227LIBS += drivers/qe/qe.a
Stefan Roese88fbf932010-04-15 16:07:28 +0200228LIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a
229LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a
Kumar Gala124b0822008-08-26 15:01:29 -0500230endif
231ifeq ($(CPU),mpc86xx)
Stefan Roese88fbf932010-04-15 16:07:28 +0200232LIBS += arch/powerpc/cpu/mpc8xxx/ddr/libddr.a
233LIBS += arch/powerpc/cpu/mpc8xxx/lib8xxx.a
Andy Flemingee0e9172007-08-14 00:14:25 -0500234endif
Jean-Christophe PLAGNIOL-VILLARD82ca9742007-11-24 21:26:56 +0100235LIBS += drivers/rtc/librtc.a
TsiChung Liewf6afe722007-06-18 13:50:13 -0500236LIBS += drivers/serial/libserial.a
Detlev Zundela9036ab2009-03-30 00:31:32 +0200237LIBS += drivers/twserial/libtws.a
Jean-Christophe PLAGNIOL-VILLARD8f6bcf42009-04-03 12:46:58 +0200238LIBS += drivers/usb/gadget/libusb_gadget.a
239LIBS += drivers/usb/host/libusb_host.a
240LIBS += drivers/usb/musb/libusb_musb.a
Tom Rix03f4fbb2009-10-31 12:37:40 -0500241LIBS += drivers/usb/phy/libusb_phy.a
Jean-Christophe PLAGNIOL-VILLARD82ca9742007-11-24 21:26:56 +0100242LIBS += drivers/video/libvideo.a
Jean-Christophe PLAGNIOL-VILLARDd5ee38e2009-03-27 23:26:42 +0100243LIBS += drivers/watchdog/libwatchdog.a
wdenk7ebf7442002-11-02 23:17:16 +0000244LIBS += common/libcommon.a
Peter Tyser8e7788f2010-04-12 22:28:06 -0500245LIBS += lib/libfdt/libfdt.a
Rafal Jaworowskia19be782008-01-09 19:39:36 +0100246LIBS += api/libapi.a
Yuri Tikhonovbdfd3022008-03-31 10:51:37 +0200247LIBS += post/libpost.a
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200248
Steve Sakoman1ad21582010-06-08 13:07:46 -0700249ifeq ($(SOC),omap3)
250LIBS += $(CPUDIR)/omap-common/libomap-common.a
251endif
252ifeq ($(SOC),omap4)
253LIBS += $(CPUDIR)/omap-common/libomap-common.a
254endif
255
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200256LIBS := $(addprefix $(obj),$(LIBS))
Peter Tyser62948502008-11-03 09:30:59 -0600257.PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE)
wdenkc0aa5c52003-12-06 19:49:23 +0000258
Wolfgang Denk3823aa82008-04-30 17:25:07 +0200259LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
260LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
261
wdenk4cc02a82003-09-11 23:06:34 +0000262# Add GCC lib
Wolfgang Denkc73f44d2009-07-23 13:15:59 +0200263ifdef USE_PRIVATE_LIBGCC
264ifeq ("$(USE_PRIVATE_LIBGCC)", "yes")
Peter Tysercede5d82010-04-12 22:28:04 -0500265PLATFORM_LIBGCC = -L $(OBJTREE)/arch/$(ARCH)/lib -lgcc
Wolfgang Denkc73f44d2009-07-23 13:15:59 +0200266else
267PLATFORM_LIBGCC = -L $(USE_PRIVATE_LIBGCC) -lgcc
268endif
269else
270PLATFORM_LIBGCC = -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
271endif
272PLATFORM_LIBS += $(PLATFORM_LIBGCC)
273export PLATFORM_LIBS
wdenk4989f872004-03-14 15:06:13 +0000274
Mike Frysinger91acc212009-08-23 02:47:59 -0400275# Special flags for CPP when processing the linker script.
276# Pass the version down so we can handle backwards compatibility
277# on the fly.
278LDPPFLAGS += \
279 -include $(TOPDIR)/include/u-boot/u-boot.lds.h \
280 $(shell $(LD) --version | \
281 sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p')
282
Stefan Roese42fbddd2006-09-07 11:51:23 +0200283ifeq ($(CONFIG_NAND_U_BOOT),y)
284NAND_SPL = nand_spl
285U_BOOT_NAND = $(obj)u-boot-nand.bin
286endif
287
Kyungmin Park33174212008-01-17 16:43:25 +0900288ifeq ($(CONFIG_ONENAND_U_BOOT),y)
289ONENAND_IPL = onenand_ipl
290U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
Kyungmin Parkafb72e42009-09-22 09:05:00 +0900291ONENAND_BIN ?= $(obj)onenand_ipl/onenand-ipl-2k.bin
Kyungmin Park33174212008-01-17 16:43:25 +0900292endif
293
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200294__OBJS := $(subst $(obj),,$(OBJS))
Wolfgang Denk3823aa82008-04-30 17:25:07 +0200295__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200296
wdenk7ebf7442002-11-02 23:17:16 +0000297#########################################################################
wdenk0a658552003-08-05 17:43:17 +0000298#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000299
Mike Frysinger57047e02009-06-15 00:25:19 -0400300# Always append ALL so that arch config.mk's can add custom ones
Kyungmin Park33174212008-01-17 16:43:25 +0900301ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
wdenk7ebf7442002-11-02 23:17:16 +0000302
wdenk0a658552003-08-05 17:43:17 +0000303all: $(ALL)
wdenk7ebf7442002-11-02 23:17:16 +0000304
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200305$(obj)u-boot.hex: $(obj)u-boot
wdenk68005192005-01-09 21:28:15 +0000306 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
307
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200308$(obj)u-boot.srec: $(obj)u-boot
Ricardo Ribalda Delgado0045fd82008-09-07 17:10:27 -0400309 $(OBJCOPY) -O srec $< $@
wdenk7ebf7442002-11-02 23:17:16 +0000310
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200311$(obj)u-boot.bin: $(obj)u-boot
wdenk7ebf7442002-11-02 23:17:16 +0000312 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
313
Mike Frysinger908e7762008-02-04 19:26:57 -0500314$(obj)u-boot.ldr: $(obj)u-boot
Mike Frysinger45b57bd2009-07-21 22:17:36 -0400315 $(CREATE_LDR_ENV)
Mike Frysinger41117ca2008-08-07 18:56:56 -0400316 $(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS)
Mike Frysinger908e7762008-02-04 19:26:57 -0500317
318$(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
319 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
320
321$(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
322 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
323
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200324$(obj)u-boot.img: $(obj)u-boot.bin
Wolfgang Denk45b0c6c2010-05-15 21:23:51 +0200325 $(obj)tools/mkimage -A $(ARCH) -T firmware -C none \
wdenk0a658552003-08-05 17:43:17 +0000326 -a $(TEXT_BASE) -e 0 \
Wolfgang Denk4d1d9a32006-02-21 17:33:04 +0100327 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
wdenk0a658552003-08-05 17:43:17 +0000328 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
329 -d $< $@
330
Stefano Babic7b07f092010-01-20 18:19:10 +0100331$(obj)u-boot.imx: $(obj)u-boot.bin
332 $(obj)tools/mkimage -n $(IMX_CONFIG) -T imximage \
333 -e $(TEXT_BASE) -d $< $@
334
Prafulla Wadaskar07329412009-09-07 15:05:02 +0530335$(obj)u-boot.kwb: $(obj)u-boot.bin
336 $(obj)tools/mkimage -n $(KWD_CONFIG) -T kwbimage \
337 -a $(TEXT_BASE) -e $(TEXT_BASE) -d $< $@
338
Heiko Schocher633e03a2007-06-22 19:11:54 +0200339$(obj)u-boot.sha1: $(obj)u-boot.bin
Heiko Schocher6b765c32007-07-14 01:06:58 +0200340 $(obj)tools/ubsha1 $(obj)u-boot.bin
Heiko Schocher633e03a2007-06-22 19:11:54 +0200341
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200342$(obj)u-boot.dis: $(obj)u-boot
wdenk7ebf7442002-11-02 23:17:16 +0000343 $(OBJDUMP) -d $< > $@
344
Mike Frysingera46fbba2009-05-20 04:35:14 -0400345GEN_UBOOT = \
Wolfgang Denk3823aa82008-04-30 17:25:07 +0200346 UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
347 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200348 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
349 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
wdenk67ff36c2002-11-19 23:01:07 +0000350 -Map u-boot.map -o u-boot
Wolfgang Denk18d46c02009-08-17 14:00:53 +0200351$(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds
Mike Frysingera46fbba2009-05-20 04:35:14 -0400352 $(GEN_UBOOT)
353ifeq ($(CONFIG_KALLSYMS),y)
Wolfgang Denk18d46c02009-08-17 14:00:53 +0200354 smap=`$(call SYSTEM_MAP,u-boot) | \
355 awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \
356 $(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" \
357 -c common/system_map.c -o $(obj)common/system_map.o
Mike Frysingera46fbba2009-05-20 04:35:14 -0400358 $(GEN_UBOOT) $(obj)common/system_map.o
359endif
wdenk7ebf7442002-11-02 23:17:16 +0000360
Peter Tyser5e4668002009-03-13 18:54:25 -0500361$(OBJS): depend
Peter Tyserd53e8fd2010-04-12 22:28:02 -0500362 $(MAKE) -C $(CPUDIR) $(if $(REMOTE_BUILD),$@,$(notdir $@))
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200363
Peter Tyser5e4668002009-03-13 18:54:25 -0500364$(LIBS): depend $(SUBDIRS)
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200365 $(MAKE) -C $(dir $(subst $(obj),,$@))
wdenkc0aa5c52003-12-06 19:49:23 +0000366
Peter Tyser5e4668002009-03-13 18:54:25 -0500367$(LIBBOARD): depend $(LIBS)
Wolfgang Denk3823aa82008-04-30 17:25:07 +0200368 $(MAKE) -C $(dir $(subst $(obj),,$@))
369
Peter Tyser5e4668002009-03-13 18:54:25 -0500370$(SUBDIRS): depend
wdenk444f22b2003-12-07 21:39:28 +0000371 $(MAKE) -C $@ all
wdenk7ebf7442002-11-02 23:17:16 +0000372
Peter Tyser5e4668002009-03-13 18:54:25 -0500373$(LDSCRIPT): depend
Mike Frysingera47a7452008-02-16 02:12:37 -0500374 $(MAKE) -C $(dir $@) $(notdir $@)
375
Wolfgang Denk18d46c02009-08-17 14:00:53 +0200376$(obj)u-boot.lds: $(LDSCRIPT)
377 $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
378
Peter Tyser62948502008-11-03 09:30:59 -0600379$(NAND_SPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
Marian Balakowicz814ed842006-10-23 22:17:05 +0200380 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
Stefan Roese42fbddd2006-09-07 11:51:23 +0200381
Peter Tyser5e4668002009-03-13 18:54:25 -0500382$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
Marian Balakowicz814ed842006-10-23 22:17:05 +0200383 cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
Stefan Roese42fbddd2006-09-07 11:51:23 +0200384
Peter Tyser62948502008-11-03 09:30:59 -0600385$(ONENAND_IPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
Stefan Roese37628252008-08-06 14:05:38 +0200386 $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
Kyungmin Park33174212008-01-17 16:43:25 +0900387
Peter Tyser5e4668002009-03-13 18:54:25 -0500388$(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin
Kyungmin Parkafb72e42009-09-22 09:05:00 +0900389 cat $(ONENAND_BIN) $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
Kyungmin Park33174212008-01-17 16:43:25 +0900390
Wolfgang Denk0a659ad2008-01-13 00:59:21 +0100391$(VERSION_FILE):
Mike Frysinger547e8432008-05-02 21:45:12 -0400392 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
Peter Tyser98c02862008-11-12 13:06:48 -0600393 '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp
Mike Frysinger8cd0c7a2008-02-04 17:44:23 -0500394 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
Wolfgang Denk4d1d9a32006-02-21 17:33:04 +0100395
Peter Tyser62948502008-11-03 09:30:59 -0600396$(TIMESTAMP_FILE):
Ilya Yanokd2b096d2010-06-21 18:13:21 +0400397 @LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > $@
398 @LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> $@
Peter Tyser62948502008-11-03 09:30:59 -0600399
dzu9b10ef982003-08-07 14:20:31 +0000400gdbtools:
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200401 $(MAKE) -C tools/gdb all || exit 1
402
403updater:
404 $(MAKE) -C tools/updater all || exit 1
405
406env:
Markus Klotzbücher2c52a762007-11-27 10:23:20 +0100407 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
dzu9b10ef982003-08-07 14:20:31 +0000408
Daniel Hobiad4eaa32010-01-18 18:13:39 +0100409# Explicitly make _depend in subdirs containing multiple targets to prevent
410# parallel sub-makes creating .depend files simultaneously.
Peter Tyser5e4668002009-03-13 18:54:25 -0500411depend dep: $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
Peter Tyserd53e8fd2010-04-12 22:28:02 -0500412 for dir in $(SUBDIRS) $(CPUDIR) $(dir $(LDSCRIPT)) ; do \
Daniel Hobiad4eaa32010-01-18 18:13:39 +0100413 $(MAKE) -C $$dir _depend ; done
wdenk7ebf7442002-11-02 23:17:16 +0000414
Li Yang22a6da62009-12-09 18:13:26 +0800415TAG_SUBDIRS = $(SUBDIRS)
416TAG_SUBDIRS += $(dir $(__LIBS))
Jean-Christophe PLAGNIOL-VILLARD957013c2007-11-25 18:45:47 +0100417TAG_SUBDIRS += include
Jean-Christophe PLAGNIOL-VILLARD957013c2007-11-25 18:45:47 +0100418
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200419tags ctags:
Li Yang22a6da62009-12-09 18:13:26 +0800420 ctags -w -o $(obj)ctags `find $(TAG_SUBDIRS) \
421 -name '*.[chS]' -print`
wdenk7ebf7442002-11-02 23:17:16 +0000422
423etags:
Li Yang22a6da62009-12-09 18:13:26 +0800424 etags -a -o $(obj)etags `find $(TAG_SUBDIRS) \
425 -name '*.[chS]' -print`
Li Yang8c6dcf02008-02-29 11:46:05 +0800426cscope:
Li Yang22a6da62009-12-09 18:13:26 +0800427 find $(TAG_SUBDIRS) -name '*.[chS]' -print > cscope.files
Li Yang8c6dcf02008-02-29 11:46:05 +0800428 cscope -b -q -k
wdenk7ebf7442002-11-02 23:17:16 +0000429
Mike Frysingera46fbba2009-05-20 04:35:14 -0400430SYSTEM_MAP = \
431 $(NM) $1 | \
wdenk7ebf7442002-11-02 23:17:16 +0000432 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
Mike Frysingera46fbba2009-05-20 04:35:14 -0400433 LC_ALL=C sort
434$(obj)System.map: $(obj)u-boot
435 @$(call SYSTEM_MAP,$<) > $(obj)System.map
wdenk7ebf7442002-11-02 23:17:16 +0000436
Grant Likely0f910192007-09-24 09:05:31 -0600437#
438# Auto-generate the autoconf.mk file (which is included by all makefiles)
439#
440# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
441# the dep file is only include in this top level makefile to determine when
442# to regenerate the autoconf.mk file.
Wolfgang Denk9046f3f2008-05-13 23:15:52 +0200443$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
444 @$(XECHO) Generating $@ ; \
Mike Frysingerd3380232008-02-18 05:10:07 -0500445 set -e ; \
Wolfgang Denk0a659ad2008-01-13 00:59:21 +0100446 : Generate the dependancies ; \
Mike Frysinger00d5bfd2009-07-19 15:17:03 -0400447 $(CC) -x c -DDO_DEPS_ONLY -M $(HOSTCFLAGS) $(CPPFLAGS) \
Wolfgang Denk9046f3f2008-05-13 23:15:52 +0200448 -MQ $(obj)include/autoconf.mk include/common.h > $@
449
450$(obj)include/autoconf.mk: $(obj)include/config.h
451 @$(XECHO) Generating $@ ; \
452 set -e ; \
Wolfgang Denk0a659ad2008-01-13 00:59:21 +0100453 : Extract the config macros ; \
Wolfgang Denk9046f3f2008-05-13 23:15:52 +0200454 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
Wolfgang Denk71d81002008-12-16 14:41:02 +0100455 sed -n -f tools/scripts/define2mk.sed > $@.tmp && \
456 mv $@.tmp $@
Grant Likely0f910192007-09-24 09:05:31 -0600457
wdenk7ebf7442002-11-02 23:17:16 +0000458#########################################################################
Wolfgang Denk0a659ad2008-01-13 00:59:21 +0100459else # !config.mk
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200460all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
461$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
Mike Frysinger39901cd2010-01-21 04:03:22 -0500462$(filter-out tools,$(SUBDIRS)) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools \
463updater env depend dep tags ctags etags cscope $(obj)System.map:
wdenk7ebf7442002-11-02 23:17:16 +0000464 @echo "System not configured - see README" >&2
465 @ exit 1
Mike Frysinger39901cd2010-01-21 04:03:22 -0500466
467tools:
468 $(MAKE) -C tools
469tools-all:
470 $(MAKE) -C tools HOST_TOOLS_ALL=y
Wolfgang Denk0a659ad2008-01-13 00:59:21 +0100471endif # config.mk
wdenk7ebf7442002-11-02 23:17:16 +0000472
Wolfgang Denke5d99e22006-10-25 00:43:17 +0200473.PHONY : CHANGELOG
474CHANGELOG:
Ben Warrendc43c9c2006-10-26 14:38:25 -0400475 git log --no-merges U-Boot-1_1_5.. | \
476 unexpand -a | sed -e 's/\s\s*$$//' > $@
Wolfgang Denke5d99e22006-10-25 00:43:17 +0200477
Harald Welte5708dbf2008-07-09 22:30:30 +0800478include/license.h: tools/bin2header COPYING
Wolfgang Denk625bd332010-05-27 23:18:33 +0200479 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
wdenk7ebf7442002-11-02 23:17:16 +0000480#########################################################################
481
482unconfig:
Stefan Roese42fbddd2006-09-07 11:51:23 +0200483 @rm -f $(obj)include/config.h $(obj)include/config.mk \
Grant Likely0f910192007-09-24 09:05:31 -0600484 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
485 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
wdenk7ebf7442002-11-02 23:17:16 +0000486
Wolfgang Denkf2c7ea82010-05-27 23:18:36 +0200487%_config:: unconfig
488 @$(MKCONFIG) -A $(@:_config=)
489
490##%: %_config
491## $(MAKE)
Mike Frysingera12e9412009-10-01 12:11:54 -0400492
Wolfgang Denke24ec722010-05-27 23:18:35 +0200493#
494# Functions to generate common board directory names
495#
496lcname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\L\1/')
497ucname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\U\1/')
498
wdenk7ebf7442002-11-02 23:17:16 +0000499#========================================================================
500# PowerPC
501#========================================================================
wdenk359733b2003-03-31 17:27:09 +0000502
503#########################################################################
wdenk21136db2003-07-16 21:53:01 +0000504## MPC5xxx Systems
505#########################################################################
wdenk8d414a72005-06-10 10:00:19 +0000506
Grzegorz Bernackiafc9d6d2009-03-17 10:06:40 +0100507digsy_mtc_config \
508digsy_mtc_LOWBOOT_config \
509digsy_mtc_RAMBOOT_config: unconfig
510 @mkdir -p $(obj)include
511 @mkdir -p $(obj)board/digsy_mtc
512 @ >$(obj)include/config.h
513 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200514 echo "TEXT_BASE = 0xFF000000" >$(obj)board/digsy_mtc/config.tmp
Grzegorz Bernackiafc9d6d2009-03-17 10:06:40 +0100515 @[ -z "$(findstring RAMBOOT_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200516 echo "TEXT_BASE = 0x00100000" >$(obj)board/digsy_mtc/config.tmp
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200517 @$(MKCONFIG) -n $@ -a digsy_mtc powerpc mpc5xxx digsy_mtc
Grzegorz Bernackiafc9d6d2009-03-17 10:06:40 +0100518
Eric Millbrandt9fc91f02009-08-13 10:14:21 -0500519galaxy5200_LOWBOOT_config \
520galaxy5200_config: unconfig
521 @mkdir -p $(obj)include
522 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +0200523 @$(MKCONFIG) -n $@ -a galaxy5200 powerpc mpc5xxx galaxy5200
Eric Millbrandt9fc91f02009-08-13 10:14:21 -0500524
wdenke44b9112004-04-18 23:32:11 +0000525Lite5200_config \
526Lite5200_LOWBOOT_config \
527Lite5200_LOWBOOT08_config \
528icecube_5200_config \
529icecube_5200_LOWBOOT_config \
530icecube_5200_LOWBOOT08_config \
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +0100531icecube_5200_DDR_config \
532icecube_5200_DDR_LOWBOOT_config \
Detlev Zundela414c7a2010-03-12 10:01:12 +0100533icecube_5200_DDR_LOWBOOT08_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200534 @mkdir -p $(obj)include
535 @mkdir -p $(obj)board/icecube
wdenk9c07bf62004-04-10 20:43:50 +0000536 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200537 if [ "$(findstring DDR,$@)" ] ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200538 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
539 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200540 fi
wdenk4b16c2e2003-11-07 13:42:26 +0000541 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200542 echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp
wdenk236d3fc2003-12-20 22:45:10 +0000543 @[ -z "$(findstring DDR,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200544 echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
545 @$(MKCONFIG) -n $@ -a IceCube powerpc mpc5xxx icecube
wdenk21136db2003-07-16 21:53:01 +0000546
Wolfgang Denk315b46a2006-03-17 11:42:53 +0100547lite5200b_config \
Domen Puncer64b89ae2007-04-16 14:00:13 +0200548lite5200b_PM_config \
Wolfgang Denk315b46a2006-03-17 11:42:53 +0100549lite5200b_LOWBOOT_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200550 @mkdir -p $(obj)include
551 @mkdir -p $(obj)board/icecube
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200552 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200553 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
Domen Puncer64b89ae2007-04-16 14:00:13 +0200554 @[ -z "$(findstring _PM_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200555 echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h
Wolfgang Denk315b46a2006-03-17 11:42:53 +0100556 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200557 echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp
558 @$(MKCONFIG) -n $@ -a IceCube powerpc mpc5xxx icecube
Wolfgang Denk315b46a2006-03-17 11:42:53 +0100559
Stefan Roese531e94c2006-03-04 14:57:03 +0100560mcc200_config \
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200561mcc200_SDRAM_config \
562mcc200_highboot_config \
563mcc200_COM12_config \
564mcc200_COM12_SDRAM_config \
Wolfgang Denk7aa5b452006-08-25 01:38:04 +0200565mcc200_COM12_highboot_config \
566mcc200_COM12_highboot_SDRAM_config \
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200567mcc200_highboot_SDRAM_config \
568prs200_config \
569prs200_DDR_config \
570prs200_highboot_config \
571prs200_highboot_DDR_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200572 @mkdir -p $(obj)include
573 @mkdir -p $(obj)board/mcc200
Wolfgang Denk790dd202006-07-23 22:40:51 +0200574 @[ -z "$(findstring highboot,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200575 echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp
Wolfgang Denk790dd202006-07-23 22:40:51 +0200576 @[ -n "$(findstring _SDRAM,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200577 if [ -n "$(findstring prs200,$@)" ]; \
578 then \
579 if [ -z "$(findstring _DDR,$@)" ];\
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200580 then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200581 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200582 fi; \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200583 fi
Wolfgang Denk790dd202006-07-23 22:40:51 +0200584 @[ -z "$(findstring _SDRAM,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200585 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h
Wolfgang Denk6d8fdf62006-08-17 00:36:51 +0200586 @[ -z "$(findstring COM12,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200587 echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200588 @[ -z "$(findstring prs200,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200589 echo "#define CONFIG_PRS200" >>$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +0200590 @$(MKCONFIG) -n $@ -a mcc200 powerpc mpc5xxx mcc200
Wolfgang Denk07ad17c2006-02-22 00:43:16 +0100591
Wolfgang Denk28d8d702008-07-15 22:22:44 +0200592MVBC_P_config: unconfig
593 @mkdir -p $(obj)include
594 @mkdir -p $(obj)board/mvbc_p
595 @ >$(obj)include/config.h
596 @[ -z "$(findstring MVBC_P,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200597 echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200598 @$(MKCONFIG) -n $@ -a $@ powerpc mpc5xxx mvbc_p matrix_vision
Wolfgang Denk28d8d702008-07-15 22:22:44 +0200599
Andre Schwarz3f4bd652010-04-01 21:26:55 +0200600MVSMR_config: unconfig
601 @mkdir -p $(obj)include
602 @mkdir -p $(obj)board/matrix_vision/mvsmr
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200603 @$(MKCONFIG) $@ powerpc mpc5xxx mvsmr matrix_vision
Andre Schwarz3f4bd652010-04-01 21:26:55 +0200604
Jon Smirlbc03df92009-06-14 18:21:28 -0400605pcm030_config \
606pcm030_LOWBOOT_config: unconfig
Wolfgang Denk1b55ec82009-07-19 12:05:15 +0200607 @mkdir -p $(obj)include $(obj)board/phytec/pcm030
Wolfgang Denk4e82ddb2009-07-18 18:00:25 +0200608 @ >$(obj)include/config.h
Jon Smirlbc03df92009-06-14 18:21:28 -0400609 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200610 echo "TEXT_BASE = 0xFF000000" >$(obj)board/phytec/pcm030/config.tmp
611 @$(MKCONFIG) -n $@ -a pcm030 powerpc mpc5xxx pcm030 phytec
Jon Smirlbc03df92009-06-14 18:21:28 -0400612
wdenkda54bc92004-08-04 21:56:49 +0000613PM520_config \
614PM520_DDR_config \
615PM520_ROMBOOT_config \
616PM520_ROMBOOT_DDR_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200617 @mkdir -p $(obj)include
wdenkda54bc92004-08-04 21:56:49 +0000618 @[ -z "$(findstring DDR,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200619 echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
wdenkda54bc92004-08-04 21:56:49 +0000620 @[ -z "$(findstring ROMBOOT,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200621 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h
622 @$(MKCONFIG) -n $@ -a PM520 powerpc mpc5xxx pm520
wdenkda54bc92004-08-04 21:56:49 +0000623
Wolfgang Denkc98368a2006-07-19 17:52:30 +0200624TB5200_B_config \
Wolfgang Denkba940932006-07-19 13:50:38 +0200625TB5200_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200626 @mkdir -p $(obj)include
Wolfgang Denkc98368a2006-07-19 17:52:30 +0200627 @[ -z "$(findstring _B,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200628 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +0200629 @$(MKCONFIG) -n $@ -a TB5200 powerpc mpc5xxx tqm5200 tqc
Wolfgang Denkba940932006-07-19 13:50:38 +0200630
wdenk1ebf41e2004-01-02 14:00:00 +0000631MINI5200_config \
632EVAL5200_config \
633TOP5200_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200634 @mkdir -p $(obj)include
635 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +0200636 @$(MKCONFIG) -n $@ -a TOP5200 powerpc mpc5xxx top5200 emk
wdenk1ebf41e2004-01-02 14:00:00 +0000637
wdenkcc3f8a92004-07-11 19:17:20 +0000638Total5200_config \
639Total5200_lowboot_config \
640Total5200_Rev2_config \
641Total5200_Rev2_lowboot_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200642 @mkdir -p $(obj)include
643 @mkdir -p $(obj)board/total5200
wdenkcc3f8a92004-07-11 19:17:20 +0000644 @[ -n "$(findstring Rev,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200645 echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h
wdenkcc3f8a92004-07-11 19:17:20 +0000646 @[ -z "$(findstring Rev2_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200647 echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h
wdenkcc3f8a92004-07-11 19:17:20 +0000648 @[ -z "$(findstring lowboot_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200649 echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp
650 @$(MKCONFIG) -n $@ -a Total5200 powerpc mpc5xxx total5200
wdenkcc3f8a92004-07-11 19:17:20 +0000651
Wolfgang Denk641e3572006-07-22 01:20:03 +0200652cam5200_config \
Marian Balakowicz4b7e4562007-01-10 00:26:15 +0100653cam5200_niosflash_config \
Wolfgang Denk9018bc92006-08-18 23:27:33 +0200654fo300_config \
Marian Balakowiczbcb0cca2006-08-18 19:14:46 +0200655MiniFAP_config \
Wolfgang Denk99753142006-07-21 11:16:34 +0200656TQM5200S_config \
657TQM5200S_HIGHBOOT_config \
Wolfgang Denk9018bc92006-08-18 23:27:33 +0200658TQM5200_B_config \
659TQM5200_B_HIGHBOOT_config \
660TQM5200_config \
661TQM5200_STK100_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200662 @mkdir -p $(obj)include
Wolfgang Grandeggeree38f682008-06-04 13:52:17 +0200663 @mkdir -p $(obj)board/tqc/tqm5200
Wolfgang Denk641e3572006-07-22 01:20:03 +0200664 @[ -z "$(findstring cam5200,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200665 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
666 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
667 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
Wolfgang Denk99753142006-07-21 11:16:34 +0200668 }
Marian Balakowicz4b7e4562007-01-10 00:26:15 +0100669 @[ -z "$(findstring niosflash,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200670 echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h
Marian Balakowiczbcb0cca2006-08-18 19:14:46 +0200671 @[ -z "$(findstring fo300,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200672 echo "#define CONFIG_FO300" >>$(obj)include/config.h
Wolfgang Denk3f2f9dd2006-06-16 16:11:34 +0200673 @[ -z "$(findstring MiniFAP,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200674 echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h
Wolfgang Denk3f2f9dd2006-06-16 16:11:34 +0200675 @[ -z "$(findstring STK100,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200676 echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h
Wolfgang Denk99753142006-07-21 11:16:34 +0200677 @[ -z "$(findstring TQM5200_B,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200678 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h
Wolfgang Denk99753142006-07-21 11:16:34 +0200679 @[ -z "$(findstring TQM5200S,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200680 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
681 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
Wolfgang Denkc98368a2006-07-19 17:52:30 +0200682 }
Wolfgang Denk5591d9e2006-07-19 18:01:38 +0200683 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200684 echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +0200685 @$(MKCONFIG) -n $@ -a TQM5200 powerpc mpc5xxx tqm5200 tqc
Wolfgang Denk28d8d702008-07-15 22:22:44 +0200686
wdenk21136db2003-07-16 21:53:01 +0000687#########################################################################
Rafal Jaworowskid3a02c32007-07-27 14:43:59 +0200688## MPC512x Systems
689#########################################################################
Wolfgang Denk28d8d702008-07-15 22:22:44 +0200690
Wolfgang Denkbbcbb322009-05-16 10:47:41 +0200691mpc5121ads_config \
692mpc5121ads_rev2_config \
Martha Marxfd449ab2008-05-29 14:23:25 -0400693 : unconfig
Wolfgang Denkf10a5de2008-03-09 00:06:09 +0100694 @mkdir -p $(obj)include
Martha Marxfd449ab2008-05-29 14:23:25 -0400695 @if [ "$(findstring rev2,$@)" ] ; then \
696 echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
John Rigbyd1228c92008-02-26 09:38:14 -0700697 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +0200698 @$(MKCONFIG) -n $@ -a mpc5121ads powerpc mpc512x mpc5121ads freescale
wdenk9f664dd2004-06-09 21:50:45 +0000699
wdenkec5dc0d2004-07-09 22:51:01 +0000700#########################################################################
wdenk9f664dd2004-06-09 21:50:45 +0000701## MPC8xx Systems
702#########################################################################
703
wdenk7ebf7442002-11-02 23:17:16 +0000704Adder87x_config \
Wolfgang Denk19b68c42008-03-04 14:58:31 +0100705AdderII_config \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200706AdderUSB_config \
707Adder_config \
wdenk7ebf7442002-11-02 23:17:16 +0000708 : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200709 @mkdir -p $(obj)include
wdenk7ebf7442002-11-02 23:17:16 +0000710 $(if $(findstring AdderII,$@), \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200711 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
712 @$(MKCONFIG) -n $@ -a Adder powerpc mpc8xx adder
Wolfgang Denk3f0137b2006-06-14 17:45:53 +0200713
Wolfgang Denk19b68c42008-03-04 14:58:31 +0100714ADS860_config \
715FADS823_config \
wdenkad276f22004-01-04 16:28:35 +0000716FADS850SAR_config \
717MPC86xADS_config \
wdenka7556b22004-06-06 21:35:06 +0000718MPC885ADS_config \
wdenkad276f22004-01-04 16:28:35 +0000719FADS860T_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200720 @$(MKCONFIG) -n $@ $@ powerpc mpc8xx fads
wdenk7ebf7442002-11-02 23:17:16 +0000721
wdenk541a76d2003-05-03 15:50:43 +0000722GEN860T_SC_config \
wdenk7ebf7442002-11-02 23:17:16 +0000723GEN860T_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200724 @mkdir -p $(obj)include
wdenk541a76d2003-05-03 15:50:43 +0000725 @[ -z "$(findstring _SC,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200726 echo "#define CONFIG_SC" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200727 @$(MKCONFIG) -n $@ -a GEN860T powerpc mpc8xx gen860t
wdenk7ebf7442002-11-02 23:17:16 +0000728
wdenk7ebf7442002-11-02 23:17:16 +0000729ICU862_100MHz_config \
730ICU862_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200731 @mkdir -p $(obj)include
wdenk7ebf7442002-11-02 23:17:16 +0000732 @[ -z "$(findstring _100MHz,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200733 echo "#define CONFIG_100MHz" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200734 @$(MKCONFIG) -n $@ -a ICU862 powerpc mpc8xx icu862
wdenk7ebf7442002-11-02 23:17:16 +0000735
wdenk7ebf7442002-11-02 23:17:16 +0000736IVML24_256_config \
737IVML24_128_config \
738IVML24_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200739 @mkdir -p $(obj)include
wdenk7ebf7442002-11-02 23:17:16 +0000740 @[ -z "$(findstring IVML24_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200741 echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000742 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200743 echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000744 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200745 echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h
746 @$(MKCONFIG) -n $@ -a IVML24 powerpc mpc8xx ivm
wdenk7ebf7442002-11-02 23:17:16 +0000747
748IVMS8_256_config \
749IVMS8_128_config \
750IVMS8_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200751 @mkdir -p $(obj)include
wdenk7ebf7442002-11-02 23:17:16 +0000752 @[ -z "$(findstring IVMS8_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200753 echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000754 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200755 echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000756 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200757 echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h
758 @$(MKCONFIG) -n $@ -a IVMS8 powerpc mpc8xx ivm
wdenk7ebf7442002-11-02 23:17:16 +0000759
wdenk7ebf7442002-11-02 23:17:16 +0000760MBX_config \
761MBX860T_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200762 @$(MKCONFIG) -n $@ $@ powerpc mpc8xx mbx8xx
wdenk7ebf7442002-11-02 23:17:16 +0000763
wdenk70764a32003-06-26 22:04:09 +0000764NETVIA_V2_config \
wdenk7ebf7442002-11-02 23:17:16 +0000765NETVIA_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200766 @mkdir -p $(obj)include
wdenk70764a32003-06-26 22:04:09 +0000767 @[ -z "$(findstring NETVIA_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200768 echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h
wdenk70764a32003-06-26 22:04:09 +0000769 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200770 echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200771 @$(MKCONFIG) -n $@ -a NETVIA powerpc mpc8xx netvia
wdenk6203e402004-04-18 10:13:26 +0000772
773NETPHONE_V2_config \
wdenk3902d702004-04-15 18:22:41 +0000774NETPHONE_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200775 @mkdir -p $(obj)include
wdenk6203e402004-04-18 10:13:26 +0000776 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200777 echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h
wdenk6203e402004-04-18 10:13:26 +0000778 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200779 echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200780 @$(MKCONFIG) -n $@ -a NETPHONE powerpc mpc8xx netphone
wdenk3902d702004-04-15 18:22:41 +0000781
wdenkc4e854f2004-06-07 23:46:25 +0000782NETTA_ISDN_6412_SWAPHOOK_config \
783NETTA_ISDN_SWAPHOOK_config \
784NETTA_6412_SWAPHOOK_config \
785NETTA_SWAPHOOK_config \
786NETTA_ISDN_6412_config \
wdenk3902d702004-04-15 18:22:41 +0000787NETTA_ISDN_config \
wdenkc4e854f2004-06-07 23:46:25 +0000788NETTA_6412_config \
wdenk3902d702004-04-15 18:22:41 +0000789NETTA_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200790 @mkdir -p $(obj)include
wdenkc4e854f2004-06-07 23:46:25 +0000791 @[ -z "$(findstring ISDN_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200792 echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000793 @[ -n "$(findstring ISDN_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200794 echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000795 @[ -z "$(findstring 6412_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200796 echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000797 @[ -n "$(findstring 6412_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200798 echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000799 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200800 echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000801 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200802 echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200803 @$(MKCONFIG) -n $@ -a NETTA powerpc mpc8xx netta
wdenkc4e854f2004-06-07 23:46:25 +0000804
805NETTA2_V2_config \
806NETTA2_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200807 @mkdir -p $(obj)include
wdenkc4e854f2004-06-07 23:46:25 +0000808 @[ -z "$(findstring NETTA2_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200809 echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000810 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200811 echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200812 @$(MKCONFIG) -n $@ -a NETTA2 powerpc mpc8xx netta2
wdenkc4e854f2004-06-07 23:46:25 +0000813
dzu@denx.de8f6fedd2006-04-19 11:52:46 +0200814NC650_Rev1_config \
815NC650_Rev2_config \
816CP850_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200817 @mkdir -p $(obj)include
dzu@denx.de8f6fedd2006-04-19 11:52:46 +0200818 @[ -z "$(findstring CP850,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200819 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
820 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
821 }
dzu@denx.de8f6fedd2006-04-19 11:52:46 +0200822 @[ -z "$(findstring Rev1,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200823 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
824 }
dzu@denx.de8f6fedd2006-04-19 11:52:46 +0200825 @[ -z "$(findstring Rev2,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200826 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
827 }
828 @$(MKCONFIG) -n $@ -a NC650 powerpc mpc8xx nc650
wdenk0bbcbd22004-08-28 22:45:57 +0000829
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +0100830RPXlite_DW_64_config \
831RPXlite_DW_LCD_config \
832RPXlite_DW_64_LCD_config \
wdenkec432742004-06-09 21:04:48 +0000833RPXlite_DW_NVRAM_config \
Wolfgang Denk19b68c42008-03-04 14:58:31 +0100834RPXlite_DW_NVRAM_64_config \
wdenkec432742004-06-09 21:04:48 +0000835RPXlite_DW_NVRAM_LCD_config \
Wolfgang Denk19b68c42008-03-04 14:58:31 +0100836RPXlite_DW_NVRAM_64_LCD_config \
Wolfgang Denkba930932007-10-21 01:01:17 +0200837RPXlite_DW_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200838 @mkdir -p $(obj)include
wdenkec432742004-06-09 21:04:48 +0000839 @[ -z "$(findstring _64,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200840 echo "#define RPXlite_64MHz" >>$(obj)include/config.h
wdenkec432742004-06-09 21:04:48 +0000841 @[ -z "$(findstring _LCD,$@)" ] || \
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +0100842 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200843 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
wdenkec432742004-06-09 21:04:48 +0000844 }
845 @[ -z "$(findstring _NVRAM,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200846 echo "#define CONFIG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h
847 @$(MKCONFIG) -n $@ -a RPXlite_DW powerpc mpc8xx RPXlite_dw
wdenkec432742004-06-09 21:04:48 +0000848
wdenk7ebf7442002-11-02 23:17:16 +0000849RRvision_LCD_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200850 @mkdir -p $(obj)include
851 @echo "#define CONFIG_LCD" >$(obj)include/config.h
852 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +0200853 @$(MKCONFIG) -a RRvision powerpc mpc8xx RRvision
wdenk7ebf7442002-11-02 23:17:16 +0000854
wdenk7ebf7442002-11-02 23:17:16 +0000855SPD823TS_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200856 @$(MKCONFIG) $@ powerpc mpc8xx spd8xx
wdenk7ebf7442002-11-02 23:17:16 +0000857
858SXNI855T_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200859 @$(MKCONFIG) $@ powerpc mpc8xx sixnet
wdenk7ebf7442002-11-02 23:17:16 +0000860
861# Play some tricks for configuration selection
wdenkc78bf132004-04-24 23:23:30 +0000862# Only 855 and 860 boards may come with FEC
863# and only 823 boards may have LCD support
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200864xtract_8xx = $(subst _LCD,,$1)
wdenk7ebf7442002-11-02 23:17:16 +0000865
866FPS850L_config \
wdenk384ae022002-11-05 00:17:55 +0000867FPS860L_config \
wdenk69141282003-07-07 20:07:54 +0000868NSCU_config \
wdenk7ebf7442002-11-02 23:17:16 +0000869TQM823L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000870TQM823L_LCD_config \
wdenk7ebf7442002-11-02 23:17:16 +0000871TQM850L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000872TQM855L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000873TQM860L_config \
wdenk6bd14892003-04-10 11:18:18 +0000874TQM862L_config \
wdenkfb229ae2003-08-07 22:18:11 +0000875TQM823M_config \
wdenkfb229ae2003-08-07 22:18:11 +0000876TQM850M_config \
wdenk69141282003-07-07 20:07:54 +0000877TQM855M_config \
wdenk69141282003-07-07 20:07:54 +0000878TQM860M_config \
wdenk69141282003-07-07 20:07:54 +0000879TQM862M_config \
Wolfgang Denk67ffef32006-05-12 16:15:46 +0200880TQM866M_config \
Markus Klotzbuecher13af9f02006-07-12 15:26:01 +0200881TQM885D_config \
Guennadi Liakhovetski7a90bb92008-01-10 17:59:07 +0100882TK885D_config \
Wolfgang Denk67ffef32006-05-12 16:15:46 +0200883virtlab2_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200884 @mkdir -p $(obj)include
wdenk7ebf7442002-11-02 23:17:16 +0000885 @[ -z "$(findstring _LCD,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200886 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
887 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +0000888 }
Wolfgang Denk625bd332010-05-27 23:18:33 +0200889 @$(MKCONFIG) -n $@ -a $(call xtract_8xx,$@) powerpc mpc8xx tqm8xx tqc
wdenk7ebf7442002-11-02 23:17:16 +0000890
891TTTech_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200892 @mkdir -p $(obj)include
893 @echo "#define CONFIG_LCD" >$(obj)include/config.h
894 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +0200895 @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc
wdenk7ebf7442002-11-02 23:17:16 +0000896
wdenk2dad91b2003-01-13 23:54:46 +0000897v37_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200898 @mkdir -p $(obj)include
899 @echo "#define CONFIG_LCD" >$(obj)include/config.h
900 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200901 @$(MKCONFIG) $@ powerpc mpc8xx v37
wdenk2dad91b2003-01-13 23:54:46 +0000902
dzu69438f62003-09-25 22:32:40 +0000903wtk_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200904 @mkdir -p $(obj)include
905 @echo "#define CONFIG_LCD" >$(obj)include/config.h
906 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +0200907 @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc
dzu69438f62003-09-25 22:32:40 +0000908
wdenk7ebf7442002-11-02 23:17:16 +0000909#########################################################################
910## PPC4xx Systems
911#########################################################################
912
Wolfgang Denke24ec722010-05-27 23:18:35 +0200913acadia_nand_config: unconfig
914 @mkdir -p $(obj)include $(obj)board/amcc/acadia
915 @mkdir -p $(obj)nand_spl/board/amcc/acadia
916 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
917 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
918 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
919 @$(MKCONFIG) -n $@ -a acadia powerpc ppc4xx acadia amcc
Stefan Roese3e1f1b32005-08-01 16:49:12 +0200920
Stefan Roese42743512007-06-01 15:27:11 +0200921bamboo_nand_config: unconfig
Wolfgang Denk6b99a462007-08-02 10:11:18 +0200922 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
923 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
Stefan Roese42743512007-06-01 15:27:11 +0200924 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Stefan Roese42743512007-06-01 15:27:11 +0200925 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
926 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200927 @$(MKCONFIG) -n $@ -a bamboo powerpc ppc4xx bamboo amcc
Stefan Roese42743512007-06-01 15:27:11 +0200928
Adam Graham4900ed22008-10-08 10:12:53 -0700929# Arches, Canyonlands & Glacier use different U-Boot images
930arches_config \
Stefan Roese52df4192008-03-19 16:20:49 +0100931canyonlands_config \
932glacier_config: unconfig
933 @mkdir -p $(obj)include
934 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
935 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +0200936 @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc
Stefan Roese075f7a22008-03-11 16:53:00 +0100937
Stefan Roese216f92e2008-04-08 10:33:27 +0200938canyonlands_nand_config \
939glacier_nand_config: unconfig
Stefan Roese0b86db72008-03-03 17:27:02 +0100940 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
941 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
942 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Stefan Roese216f92e2008-04-08 10:33:27 +0200943 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
944 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
Stefan Roese0b86db72008-03-03 17:27:02 +0100945 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
946 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denk625bd332010-05-27 23:18:33 +0200947 @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc
Stefan Roese0b86db72008-03-03 17:27:02 +0100948
wdenk9e7130b2004-09-09 17:44:35 +0000949CATcenter_config \
950CATcenter_25_config \
951CATcenter_33_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200952 @mkdir -p $(obj)include
Wolfgang Denk625bd332010-05-27 23:18:33 +0200953 @echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
954 @echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
wdenk9e7130b2004-09-09 17:44:35 +0000955 @[ -z "$(findstring _25,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200956 echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h
wdenk9e7130b2004-09-09 17:44:35 +0000957 @[ -z "$(findstring _33,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200958 echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200959 @$(MKCONFIG) -n $@ -a CATcenter powerpc ppc4xx PPChameleonEVB dave
wdenkbb33bab2004-05-13 13:23:58 +0000960
Matthias Fuchs06e5fda2008-12-10 14:41:25 +0100961CPCI405_config \
Matthias Fuchs5afb76b2008-09-05 15:34:02 +0200962CPCI4052_config \
stroese05b88912004-12-16 18:44:40 +0000963CPCI405DT_config \
stroesebfcc82b2003-05-23 11:41:44 +0000964CPCI405AB_config: unconfig
Matthias Fuchs182c4cf2008-09-09 09:50:24 +0200965 @mkdir -p $(obj)board/esd/cpci405
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200966 @$(MKCONFIG) -n $@ $@ powerpc ppc4xx cpci405 esd
wdenk7ebf7442002-11-02 23:17:16 +0000967
Georg Schardt3ce59a12008-10-24 13:51:52 +0200968fx12mm_flash_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-rom.lds"\
972 > $(obj)board/avnet/fx12mm/config.tmp
973 @echo "TEXT_BASE := 0xFFCB0000" \
974 >> $(obj)board/avnet/fx12mm/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +0200975 @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet
Georg Schardt3ce59a12008-10-24 13:51:52 +0200976
977fx12mm_config: unconfig
978 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
979 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
980 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
981 > $(obj)board/avnet/fx12mm/config.tmp
982 @echo "TEXT_BASE := 0x03000000" \
983 >> $(obj)board/avnet/fx12mm/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +0200984 @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet
Georg Schardt3ce59a12008-10-24 13:51:52 +0200985
Dirk Eibach62dbcba2009-09-09 12:36:07 +0200986# Compact-Center(codename intip) & DevCon-Center use different U-Boot images
987intip_config \
988devconcenter_config: unconfig
989 @mkdir -p $(obj)include
990 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
991 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +0200992 @$(MKCONFIG) -n $@ -a intip powerpc ppc4xx intip gdsys
Dirk Eibach62dbcba2009-09-09 12:36:07 +0200993
Wolfgang Denkf2c7ea82010-05-27 23:18:36 +0200994hcu4_config \
995hcu5_config \
996mcu25_config: unconfig
997 @mkdir -p $(obj)board/netstal/common
998 @$(MKCONFIG) $@ powerpc ppc4xx $(call lcname,$@) netstal
999
Stefan Roese15668052007-10-23 10:10:08 +02001000# Kilauea & Haleakala images are identical (recognized via PVR)
1001kilauea_config \
1002haleakala_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001003 @$(MKCONFIG) -n $@ kilauea powerpc ppc4xx kilauea amcc
Stefan Roese7de9fc72007-10-05 17:11:30 +02001004
Stefan Roese720c5852007-11-03 12:08:28 +01001005kilauea_nand_config \
1006haleakala_nand_config: unconfig
1007 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1008 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1009 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Stefan Roese720c5852007-11-03 12:08:28 +01001010 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1011 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denk625bd332010-05-27 23:18:33 +02001012 @$(MKCONFIG) -n $@ -a kilauea powerpc ppc4xx kilauea amcc
Stefan Roese720c5852007-11-03 12:08:28 +01001013
wdenk634d2f72004-04-15 23:14:49 +00001014MIP405T_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001015 @mkdir -p $(obj)include
1016 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01001017 @$(XECHO) "Enable subset config for MIP405T"
Stefan Roese88fbf932010-04-15 16:07:28 +02001018 @$(MKCONFIG) -a MIP405 powerpc ppc4xx mip405 mpl
wdenke39c2842003-06-04 15:05:30 +00001019
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001020ml507_flash_config: unconfig
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001021 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
Ricardo Ribalda Delgado2a019eb2008-07-21 20:30:07 +02001022 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001023 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1024 > $(obj)board/xilinx/ml507/config.tmp
1025 @echo "TEXT_BASE := 0xFE360000" \
1026 >> $(obj)board/xilinx/ml507/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +02001027 @$(MKCONFIG) ml507 powerpc ppc4xx ml507 xilinx
Ricardo Ribalda Delgado2a019eb2008-07-21 20:30:07 +02001028
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001029ml507_config: unconfig
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001030 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
Ricardo Ribalda Delgado2a019eb2008-07-21 20:30:07 +02001031 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001032 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1033 > $(obj)board/xilinx/ml507/config.tmp
1034 @echo "TEXT_BASE := 0x04000000" \
1035 >> $(obj)board/xilinx/ml507/config.tmp
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001036 @$(MKCONFIG) $@ powerpc ppc4xx ml507 xilinx
Ricardo Ribalda Delgadoa8822a72008-07-17 12:47:09 +02001037
wdenk7ebf7442002-11-02 23:17:16 +00001038OCRTC_config \
1039ORSG_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001040 @$(MKCONFIG) -n $@ $@ powerpc ppc4xx ocrtc esd
wdenk7ebf7442002-11-02 23:17:16 +00001041
wdenk7ac16102004-08-01 22:48:16 +00001042PPChameleonEVB_config \
wdenk99874b42004-07-01 21:40:08 +00001043PPChameleonEVB_BA_25_config \
1044PPChameleonEVB_ME_25_config \
1045PPChameleonEVB_HI_25_config \
1046PPChameleonEVB_BA_33_config \
1047PPChameleonEVB_ME_33_config \
1048PPChameleonEVB_HI_33_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001049 @mkdir -p $(obj)include
wdenk9e7130b2004-09-09 17:44:35 +00001050 @[ -z "$(findstring EVB_BA,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001051 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h
wdenk9e7130b2004-09-09 17:44:35 +00001052 @[ -z "$(findstring EVB_ME,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001053 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h
wdenk9e7130b2004-09-09 17:44:35 +00001054 @[ -z "$(findstring EVB_HI,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001055 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h
wdenk99874b42004-07-01 21:40:08 +00001056 @[ -z "$(findstring _25,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001057 echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h
wdenk99874b42004-07-01 21:40:08 +00001058 @[ -z "$(findstring _33,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001059 echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001060 @$(MKCONFIG) -n $@ -a PPChameleonEVB powerpc ppc4xx PPChameleonEVB dave
wdenk232fe0b2003-09-02 22:48:03 +00001061
Stefan Roese374f38b2007-03-28 15:03:16 +02001062sequoia_config \
1063rainier_config: unconfig
1064 @mkdir -p $(obj)include
1065 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1066 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +02001067 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
Stefan Roese42fbddd2006-09-07 11:51:23 +02001068
Stefan Roese374f38b2007-03-28 15:03:16 +02001069sequoia_nand_config \
1070rainier_nand_config: unconfig
Wolfgang Denk6b99a462007-08-02 10:11:18 +02001071 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1072 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
Marian Balakowicz814ed842006-10-23 22:17:05 +02001073 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Stefan Roese374f38b2007-03-28 15:03:16 +02001074 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1075 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
Marian Balakowicz814ed842006-10-23 22:17:05 +02001076 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1077 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denk625bd332010-05-27 23:18:33 +02001078 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
wdenkd3341052005-01-09 23:48:14 +00001079
Stefan Roesec20ef322009-05-11 13:46:14 +02001080sequoia_ramboot_config \
1081rainier_ramboot_config: unconfig
1082 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1083 @echo "#define CONFIG_SYS_RAMBOOT" > $(obj)include/config.h
1084 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1085 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
Stefan Roesec20ef322009-05-11 13:46:14 +02001086 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1087 @echo "LDSCRIPT = board/amcc/sequoia/u-boot-ram.lds" >> \
1088 $(obj)board/amcc/sequoia/config.tmp
Wolfgang Denk625bd332010-05-27 23:18:33 +02001089 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
Stefan Roesec20ef322009-05-11 13:46:14 +02001090
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001091v5fx30teval_config: unconfig
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001092 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001093 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001094 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1095 > $(obj)board/avnet/v5fx30teval/config.tmp
1096 @echo "TEXT_BASE := 0x03000000" \
1097 >> $(obj)board/avnet/v5fx30teval/config.tmp
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001098 @$(MKCONFIG) $@ powerpc ppc4xx v5fx30teval avnet
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001099
1100v5fx30teval_flash_config: unconfig
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001101 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001102 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001103 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
Ricardo Ribalda Delgado162458a2008-09-11 19:41:25 -04001104 > $(obj)board/avnet/v5fx30teval/config.tmp
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001105 @echo "TEXT_BASE := 0xFF1C0000" \
Ricardo Ribalda Delgado162458a2008-09-11 19:41:25 -04001106 >> $(obj)board/avnet/v5fx30teval/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +02001107 @$(MKCONFIG) v5fx30teval powerpc ppc4xx v5fx30teval avnet
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001108
wdenk7ebf7442002-11-02 23:17:16 +00001109W7OLMC_config \
1110W7OLMG_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001111 @$(MKCONFIG) $@ powerpc ppc4xx w7o
wdenk7ebf7442002-11-02 23:17:16 +00001112
Stefan Roese374f38b2007-03-28 15:03:16 +02001113# Walnut & Sycamore images are identical (recognized via PVR)
1114walnut_config \
1115sycamore_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001116 @$(MKCONFIG) -n $@ walnut powerpc ppc4xx walnut amcc
wdenk7ebf7442002-11-02 23:17:16 +00001117
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +02001118xilinx-ppc405-generic_flash_config: unconfig
1119 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1120 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
1121 > $(obj)board/xilinx/ppc405-generic/config.tmp
1122 @echo "TEXT_BASE := 0xFE360000" \
1123 >> $(obj)board/xilinx/ppc405-generic/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +02001124 @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +02001125
1126xilinx-ppc405-generic_config: unconfig
1127 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1128 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
1129 > $(obj)board/xilinx/ppc405-generic/config.tmp
1130 @echo "TEXT_BASE := 0x04000000" \
1131 >> $(obj)board/xilinx/ppc405-generic/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +02001132 @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +02001133
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001134xilinx-ppc440-generic_flash_config: unconfig
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001135 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1136 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1137 > $(obj)board/xilinx/ppc440-generic/config.tmp
1138 @echo "TEXT_BASE := 0xFE360000" \
1139 >> $(obj)board/xilinx/ppc440-generic/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +02001140 @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001141
1142xilinx-ppc440-generic_config: unconfig
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001143 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1144 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1145 > $(obj)board/xilinx/ppc440-generic/config.tmp
1146 @echo "TEXT_BASE := 0x04000000" \
1147 >> $(obj)board/xilinx/ppc440-generic/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +02001148 @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001149
Stefan Roese374f38b2007-03-28 15:03:16 +02001150yosemite_config \
1151yellowstone_config: unconfig
Stefan Roeseb1669da2007-01-30 17:04:19 +01001152 @mkdir -p $(obj)include
Stefan Roese374f38b2007-03-28 15:03:16 +02001153 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1154 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +02001155 @$(MKCONFIG) -n $@ -a yosemite powerpc ppc4xx yosemite amcc
Stefan Roese3e1f1b32005-08-01 16:49:12 +02001156
wdenk7ebf7442002-11-02 23:17:16 +00001157#########################################################################
1158## MPC824x Systems
1159#########################################################################
wdenkef5fe752003-03-12 10:41:04 +00001160
Wolfgang Denke24ec722010-05-27 23:18:35 +02001161eXalion_config: unconfig
1162 @$(MKCONFIG) $(@:_config=) powerpc mpc824x eXalion
wdenk7ebf7442002-11-02 23:17:16 +00001163
wdenkef5fe752003-03-12 10:41:04 +00001164CPC45_config \
1165CPC45_ROMBOOT_config: unconfig
Wolfgang Denk625bd332010-05-27 23:18:33 +02001166 @mkdir -p $(obj)include ; \
wdenkef5fe752003-03-12 10:41:04 +00001167 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001168 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \
wdenkef5fe752003-03-12 10:41:04 +00001169 else \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001170 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \
wdenkef5fe752003-03-12 10:41:04 +00001171 fi; \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001172 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk;
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001173 @$(MKCONFIG) -n $@ CPC45 powerpc mpc824x cpc45
wdenkef5fe752003-03-12 10:41:04 +00001174
Guennadi Liakhovetski40c26b22008-03-31 01:32:15 +02001175# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1176# time permits.
1177#linkstation_HDLAN_config \
1178# Remove this line when HDLAN is fixed
1179linkstation_HGLAN_config: unconfig
1180 @mkdir -p $(obj)include
1181 @case $@ in \
1182 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1183 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1184 esac
Stefan Roese88fbf932010-04-15 16:07:28 +02001185 @$(MKCONFIG) -n $@ -a linkstation powerpc mpc824x linkstation
Guennadi Liakhovetski40c26b22008-03-31 01:32:15 +02001186
wdenk7ebf7442002-11-02 23:17:16 +00001187Sandpoint8240_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001188 @$(MKCONFIG) $@ powerpc mpc824x sandpoint
wdenk7ebf7442002-11-02 23:17:16 +00001189
1190Sandpoint8245_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001191 @$(MKCONFIG) $@ powerpc mpc824x sandpoint
wdenk7ebf7442002-11-02 23:17:16 +00001192
wdenk7ebf7442002-11-02 23:17:16 +00001193#########################################################################
1194## MPC8260 Systems
1195#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001196
1197cogent_mpc8260_config: unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02001198 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 cogent
wdenk7ebf7442002-11-02 23:17:16 +00001199
1200CPU86_config \
1201CPU86_ROMBOOT_config: unconfig
Wolfgang Denk625bd332010-05-27 23:18:33 +02001202 @mkdir -p $(obj)include ; \
wdenk7ebf7442002-11-02 23:17:16 +00001203 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001204 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \
wdenk7ebf7442002-11-02 23:17:16 +00001205 else \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001206 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \
wdenk7ebf7442002-11-02 23:17:16 +00001207 fi; \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001208 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk;
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001209 @$(MKCONFIG) -n $@ CPU86 powerpc mpc8260 cpu86
wdenk7ebf7442002-11-02 23:17:16 +00001210
wdenk6d3c6d12005-04-03 22:35:21 +00001211CPU87_config \
1212CPU87_ROMBOOT_config: unconfig
Wolfgang Denk625bd332010-05-27 23:18:33 +02001213 @mkdir -p $(obj)include ; \
wdenk6d3c6d12005-04-03 22:35:21 +00001214 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001215 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \
wdenk6d3c6d12005-04-03 22:35:21 +00001216 else \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001217 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \
wdenk6d3c6d12005-04-03 22:35:21 +00001218 fi; \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001219 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk;
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001220 @$(MKCONFIG) -n $@ CPU87 powerpc mpc8260 cpu87
wdenk6d3c6d12005-04-03 22:35:21 +00001221
Wolfgang Denk8dd4d332005-08-06 01:42:58 +02001222ep8248_config \
1223ep8248E_config : unconfig
Wolfgang Denk625bd332010-05-27 23:18:33 +02001224 @$(MKCONFIG) -n $@ ep8248 powerpc mpc8260 ep8248
Wolfgang Denk8dd4d332005-08-06 01:42:58 +02001225
wdenk76dd6c72004-06-09 14:47:54 +00001226ISPAN_config \
1227ISPAN_REVB_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001228 @mkdir -p $(obj)include
wdenk76dd6c72004-06-09 14:47:54 +00001229 @if [ "$(findstring _REVB_,$@)" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001230 echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
wdenk76dd6c72004-06-09 14:47:54 +00001231 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001232 @$(MKCONFIG) -n $@ -a ISPAN powerpc mpc8260 ispan
wdenk76dd6c72004-06-09 14:47:54 +00001233
wdenk3902d702004-04-15 18:22:41 +00001234MPC8260ADS_config \
wdenk874c6752005-04-03 23:22:21 +00001235MPC8260ADS_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001236MPC8260ADS_33MHz_config \
wdenk874c6752005-04-03 23:22:21 +00001237MPC8260ADS_33MHz_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001238MPC8260ADS_40MHz_config \
wdenk874c6752005-04-03 23:22:21 +00001239MPC8260ADS_40MHz_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001240MPC8272ADS_config \
wdenk874c6752005-04-03 23:22:21 +00001241MPC8272ADS_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001242PQ2FADS_config \
wdenk874c6752005-04-03 23:22:21 +00001243PQ2FADS_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001244PQ2FADS-VR_config \
wdenk874c6752005-04-03 23:22:21 +00001245PQ2FADS-VR_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001246PQ2FADS-ZU_config \
wdenk874c6752005-04-03 23:22:21 +00001247PQ2FADS-ZU_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001248PQ2FADS-ZU_66MHz_config \
wdenk874c6752005-04-03 23:22:21 +00001249PQ2FADS-ZU_66MHz_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001250 : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001251 @mkdir -p $(obj)include
Jon Loeliger39bf01e2008-03-05 18:05:45 -06001252 @mkdir -p $(obj)board/freescale/mpc8260ads
wdenk3902d702004-04-15 18:22:41 +00001253 $(if $(findstring PQ2FADS,$@), \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001254 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \
1255 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
wdenk3902d702004-04-15 18:22:41 +00001256 $(if $(findstring MHz,$@), \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001257 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
wdenk3902d702004-04-15 18:22:41 +00001258 $(if $(findstring VR,$@), \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001259 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
wdenk874c6752005-04-03 23:22:21 +00001260 @[ -z "$(findstring lowboot_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001261 echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp
1262 @$(MKCONFIG) -n $@ -a MPC8260ADS powerpc mpc8260 mpc8260ads freescale
wdenk7ebf7442002-11-02 23:17:16 +00001263
Heiko Schochera772a162008-08-19 10:08:49 +02001264muas3001_dev_config \
1265muas3001_config : unconfig
1266 @mkdir -p $(obj)include
1267 @mkdir -p $(obj)board/muas3001
1268 @if [ "$(findstring dev,$@)" ] ; then \
1269 echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1270 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001271 @$(MKCONFIG) -n $@ -a muas3001 powerpc mpc8260 muas3001
Heiko Schochera772a162008-08-19 10:08:49 +02001272
wdenkc12081a2004-03-23 20:18:25 +00001273# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
wdenk4b57dcc2003-03-25 18:06:06 +00001274PM825_config \
wdenkc12081a2004-03-23 20:18:25 +00001275PM825_ROMBOOT_config \
1276PM825_BIGFLASH_config \
1277PM825_ROMBOOT_BIGFLASH_config \
1278PM826_config \
1279PM826_ROMBOOT_config \
1280PM826_BIGFLASH_config \
1281PM826_ROMBOOT_BIGFLASH_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001282 @mkdir -p $(obj)include
1283 @mkdir -p $(obj)board/pm826
wdenkc12081a2004-03-23 20:18:25 +00001284 @if [ "$(findstring PM825_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001285 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
wdenkc12081a2004-03-23 20:18:25 +00001286 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001287 >$(obj)include/config.h ; \
wdenkc12081a2004-03-23 20:18:25 +00001288 fi
1289 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001290 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1291 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
wdenkc12081a2004-03-23 20:18:25 +00001292 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001293 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
wdenkc12081a2004-03-23 20:18:25 +00001294 fi; \
wdenk4b57dcc2003-03-25 18:06:06 +00001295 else \
wdenkc12081a2004-03-23 20:18:25 +00001296 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01001297 $(XECHO) "... with 32 MB Flash" ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001298 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1299 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
wdenkc12081a2004-03-23 20:18:25 +00001300 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001301 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
wdenkc12081a2004-03-23 20:18:25 +00001302 fi; \
1303 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001304 @$(MKCONFIG) -n $@ -a PM826 powerpc mpc8260 pm826
wdenk4b57dcc2003-03-25 18:06:06 +00001305
wdenkc12081a2004-03-23 20:18:25 +00001306PM828_config \
1307PM828_PCI_config \
1308PM828_ROMBOOT_config \
1309PM828_ROMBOOT_PCI_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001310 @mkdir -p $(obj)include
1311 @mkdir -p $(obj)board/pm826
Marian Balakowicz3d8d1252006-04-05 20:37:11 +02001312 @if [ "$(findstring _PCI_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001313 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
wdenkc12081a2004-03-23 20:18:25 +00001314 fi
1315 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001316 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1317 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
wdenkc12081a2004-03-23 20:18:25 +00001318 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001319 @$(MKCONFIG) -n $@ -a PM828 powerpc mpc8260 pm828
wdenk7ebf7442002-11-02 23:17:16 +00001320
wdenkbc3202a2005-04-03 23:11:38 +00001321Rattler8248_config \
1322Rattler_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001323 @mkdir -p $(obj)include
wdenkbc3202a2005-04-03 23:11:38 +00001324 $(if $(findstring 8248,$@), \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001325 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1326 @$(MKCONFIG) -n $@ -a Rattler powerpc mpc8260 rattler
wdenkbc3202a2005-04-03 23:11:38 +00001327
wdenk874ac262003-07-24 23:38:38 +00001328TQM8255_AA_config \
1329TQM8260_AA_config \
1330TQM8260_AB_config \
1331TQM8260_AC_config \
1332TQM8260_AD_config \
1333TQM8260_AE_config \
1334TQM8260_AF_config \
1335TQM8260_AG_config \
1336TQM8260_AH_config \
Wolfgang Denk47673562006-03-07 00:32:07 +01001337TQM8260_AI_config \
wdenk874ac262003-07-24 23:38:38 +00001338TQM8265_AA_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001339 @mkdir -p $(obj)include
wdenk874ac262003-07-24 23:38:38 +00001340 @case "$@" in \
Wolfgang Denk47673562006-03-07 00:32:07 +01001341 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1342 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1343 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1344 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1345 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1346 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1347 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1348 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1349 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1350 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1351 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
wdenk874ac262003-07-24 23:38:38 +00001352 esac; \
wdenk874ac262003-07-24 23:38:38 +00001353 if [ "$${CTYPE}" != "MPC8260" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001354 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
wdenk874ac262003-07-24 23:38:38 +00001355 fi; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001356 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
Wolfgang Denk111d6062008-01-02 15:54:45 +01001357 if [ "$${CACHE}" = "yes" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001358 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +00001359 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001360 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
wdenk874ac262003-07-24 23:38:38 +00001361 fi; \
Wolfgang Denk111d6062008-01-02 15:54:45 +01001362 if [ "$${BMODE}" = "60x" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001363 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
wdenk874ac262003-07-24 23:38:38 +00001364 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001365 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +00001366 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001367 @$(MKCONFIG) -n $@ -a TQM8260 powerpc mpc8260 tqm8260 tqc
wdenk7ebf7442002-11-02 23:17:16 +00001368
wdenkc28149c2005-05-30 23:55:42 +00001369VoVPN-GW_66MHz_config \
1370VoVPN-GW_100MHz_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001371 @mkdir -p $(obj)include
1372 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +02001373 @$(MKCONFIG) -n $@ -a VoVPN-GW powerpc mpc8260 vovpn-gw funkwerk
wdenkc28149c2005-05-30 23:55:42 +00001374
wdenkabf7a7c2003-12-08 01:34:36 +00001375#########################################################################
1376## Coldfire
1377#########################################################################
1378
Wolfgang Wegner406471c2010-01-25 11:27:44 +01001379astro_mcf5373l_config \
1380astro_mcf5373l_RAM_config : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001381 @$(MKCONFIG) -n $@ -t $@ astro_mcf5373l m68k mcf532x mcf5373l astro
Wolfgang Wegner406471c2010-01-25 11:27:44 +01001382
TsiChung Liew39966e32008-10-21 15:37:02 +00001383M52277EVB_config \
1384M52277EVB_spansion_config \
1385M52277EVB_stmicro_config : unconfig
1386 @case "$@" in \
1387 M52277EVB_config) FLASH=SPANSION;; \
1388 M52277EVB_spansion_config) FLASH=SPANSION;; \
1389 M52277EVB_stmicro_config) FLASH=STMICRO;; \
1390 esac; \
1391 if [ "$${FLASH}" = "SPANSION" ] ; then \
1392 echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \
1393 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1394 cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \
TsiChung Liew39966e32008-10-21 15:37:02 +00001395 fi; \
1396 if [ "$${FLASH}" = "STMICRO" ] ; then \
1397 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1398 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
1399 echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1400 cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \
TsiChung Liew39966e32008-10-21 15:37:02 +00001401 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001402 @$(MKCONFIG) -n $@ -a M52277EVB m68k mcf5227x m52277evb freescale
TsiChungLiew99b037a2008-01-14 17:43:33 -06001403
TsiChungLiewb859ef12007-08-16 19:23:50 -05001404M5235EVB_config \
1405M5235EVB_Flash16_config \
1406M5235EVB_Flash32_config: unconfig
1407 @case "$@" in \
1408 M5235EVB_config) FLASH=16;; \
1409 M5235EVB_Flash16_config) FLASH=16;; \
1410 M5235EVB_Flash32_config) FLASH=32;; \
1411 esac; \
TsiChungLiewb859ef12007-08-16 19:23:50 -05001412 if [ "$${FLASH}" != "16" ] ; then \
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01001413 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
TsiChungLiewb859ef12007-08-16 19:23:50 -05001414 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1415 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1416 else \
1417 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1418 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1419 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001420 @$(MKCONFIG) -n $@ -a M5235EVB m68k mcf523x m5235evb freescale
TsiChungLiewb859ef12007-08-16 19:23:50 -05001421
Wolfgang Denkaaa7c002005-12-12 16:06:05 +01001422cobra5272_config : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001423 @$(MKCONFIG) $@ m68k mcf52x2 cobra5272
Wolfgang Denkaaa7c002005-12-12 16:06:05 +01001424
Wolfgang Denkb4b1c462006-06-10 19:27:47 +02001425EB+MCF-EV123_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001426 @mkdir -p $(obj)include
1427 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001428 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
Wolfgang Denk625bd332010-05-27 23:18:33 +02001429 @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
Wolfgang Denkb4b1c462006-06-10 19:27:47 +02001430
1431EB+MCF-EV123_internal_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001432 @mkdir -p $(obj)include
1433 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001434 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
Wolfgang Denk625bd332010-05-27 23:18:33 +02001435 @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
Wolfgang Denkb4b1c462006-06-10 19:27:47 +02001436
TsiChung Liewf6afe722007-06-18 13:50:13 -05001437M5329AFEE_config \
1438M5329BFEE_config : unconfig
1439 @case "$@" in \
1440 M5329AFEE_config) NAND=0;; \
1441 M5329BFEE_config) NAND=16;; \
1442 esac; \
TsiChung Liewf6afe722007-06-18 13:50:13 -05001443 if [ "$${NAND}" != "0" ] ; then \
TsiChungLiewaedd3d72007-08-15 15:39:17 -05001444 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
TsiChung Liewf6afe722007-06-18 13:50:13 -05001445 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001446 @$(MKCONFIG) -n $@ -a M5329EVB m68k mcf532x m5329evb freescale
TsiChung Liewf6afe722007-06-18 13:50:13 -05001447
TsiChungLiew6f8a0a32008-01-14 17:23:08 -06001448M5373EVB_config : unconfig
1449 @case "$@" in \
1450 M5373EVB_config) NAND=16;; \
1451 esac; \
TsiChungLiew6f8a0a32008-01-14 17:23:08 -06001452 if [ "$${NAND}" != "0" ] ; then \
1453 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1454 fi
1455 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1456
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001457M54451EVB_config \
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001458M54451EVB_stmicro_config : unconfig
1459 @case "$@" in \
TsiChung Liewb78c9882009-06-11 15:39:57 +00001460 M54451EVB_config) FLASH=NOR;; \
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001461 M54451EVB_stmicro_config) FLASH=STMICRO;; \
1462 esac; \
TsiChung Liewb78c9882009-06-11 15:39:57 +00001463 if [ "$${FLASH}" = "NOR" ] ; then \
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001464 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1465 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001466 fi; \
1467 if [ "$${FLASH}" = "STMICRO" ] ; then \
1468 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001469 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001470 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1471 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001472 fi; \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001473 echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001474 @$(MKCONFIG) -n $@ -a M54451EVB m68k mcf5445x m54451evb freescale
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001475
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -05001476M54455EVB_config \
1477M54455EVB_atmel_config \
1478M54455EVB_intel_config \
1479M54455EVB_a33_config \
1480M54455EVB_a66_config \
1481M54455EVB_i33_config \
TsiChung Liew23cf8fd2008-07-23 20:38:53 -05001482M54455EVB_i66_config \
1483M54455EVB_stm33_config : unconfig
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -05001484 @case "$@" in \
1485 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1486 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1487 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1488 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1489 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1490 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1491 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
TsiChung Liew23cf8fd2008-07-23 20:38:53 -05001492 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -05001493 esac; \
Wolfgang Denk111d6062008-01-02 15:54:45 +01001494 if [ "$${FLASH}" = "INTEL" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001495 echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
TsiChungLiewd98a8d62007-10-25 17:16:22 -05001496 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1497 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
TsiChung Liew23cf8fd2008-07-23 20:38:53 -05001498 fi; \
1499 if [ "$${FLASH}" = "ATMEL" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001500 echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \
TsiChungLiewd98a8d62007-10-25 17:16:22 -05001501 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1502 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -05001503 fi; \
TsiChung Liew23cf8fd2008-07-23 20:38:53 -05001504 if [ "$${FLASH}" = "STMICRO" ] ; then \
1505 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001506 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
TsiChung Liew23cf8fd2008-07-23 20:38:53 -05001507 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1508 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
TsiChung Liew23cf8fd2008-07-23 20:38:53 -05001509 fi; \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001510 echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001511 @$(MKCONFIG) -n $@ -a M54455EVB m68k mcf5445x m54455evb freescale
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -05001512
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001513M5475AFE_config \
1514M5475BFE_config \
1515M5475CFE_config \
1516M5475DFE_config \
1517M5475EFE_config \
1518M5475FFE_config \
1519M5475GFE_config : unconfig
1520 @case "$@" in \
1521 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1522 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1523 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1524 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1525 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1526 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1527 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1528 esac; \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001529 echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \
1530 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1531 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001532 if [ "$${RAM1}" != "0" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001533 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001534 fi; \
1535 if [ "$${CODE}" != "0" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001536 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001537 fi; \
1538 if [ "$${VID}" == "1" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001539 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001540 fi; \
1541 if [ "$${USB}" == "1" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001542 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001543 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001544 @$(MKCONFIG) -n $@ -a M5475EVB m68k mcf547x_8x m547xevb freescale
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001545
1546M5485AFE_config \
1547M5485BFE_config \
1548M5485CFE_config \
1549M5485DFE_config \
1550M5485EFE_config \
1551M5485FFE_config \
1552M5485GFE_config \
1553M5485HFE_config : unconfig
1554 @case "$@" in \
1555 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1556 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1557 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1558 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1559 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1560 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1561 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
TsiChungLiew561db012008-01-30 15:08:15 -06001562 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001563 esac; \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001564 echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \
1565 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1566 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001567 if [ "$${RAM1}" != "0" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001568 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001569 fi; \
1570 if [ "$${CODE}" != "0" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001571 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001572 fi; \
1573 if [ "$${VID}" == "1" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001574 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001575 fi; \
1576 if [ "$${USB}" == "1" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001577 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001578 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001579 @$(MKCONFIG) -n $@ -a M5485EVB m68k mcf547x_8x m548xevb freescale
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001580
wdenk7ebf7442002-11-02 23:17:16 +00001581#########################################################################
Eran Liberty9095d4a2005-07-28 10:08:46 -05001582## MPC83xx Systems
1583#########################################################################
1584
Kim Phillipsffc21c02007-04-25 12:34:38 -05001585MPC8313ERDB_33_config \
Scott Woodb71689b2008-06-30 14:13:28 -05001586MPC8313ERDB_66_config \
1587MPC8313ERDB_NAND_33_config \
1588MPC8313ERDB_NAND_66_config: unconfig
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001589 @mkdir -p $(obj)include
Scott Woodb71689b2008-06-30 14:13:28 -05001590 @mkdir -p $(obj)board/freescale/mpc8313erdb
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01001591 @if [ "$(findstring _33_,$@)" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001592 echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
Kim Phillipsffc21c02007-04-25 12:34:38 -05001593 fi ; \
1594 if [ "$(findstring _66_,$@)" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001595 echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
Scott Woodb71689b2008-06-30 14:13:28 -05001596 fi ; \
1597 if [ "$(findstring _NAND_,$@)" ] ; then \
Kim Phillips44f15e52008-08-25 14:53:09 -05001598 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
Scott Woodb71689b2008-06-30 14:13:28 -05001599 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
Kim Phillipsffc21c02007-04-25 12:34:38 -05001600 fi ;
Nick Spence120097e2008-09-02 15:21:16 -05001601 @if [ "$(findstring _NAND_,$@)" ] ; then \
1602 echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
1603 fi ;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001604 @$(MKCONFIG) -n $@ -a MPC8313ERDB powerpc mpc83xx mpc8313erdb freescale
Kim Phillipsffc21c02007-04-25 12:34:38 -05001605
Anton Vorontsovec821752009-11-24 20:12:12 +03001606MPC8315ERDB_NAND_config \
Dave Liu19b247e2008-01-11 18:48:24 +08001607MPC8315ERDB_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001608 @$(MKCONFIG) -n $@ -t $@ MPC8315ERDB powerpc mpc83xx mpc8315erdb freescale
Dave Liu19b247e2008-01-11 18:48:24 +08001609
Kim Phillips2380d432007-01-24 17:18:37 -06001610MPC832XEMDS_config \
1611MPC832XEMDS_HOST_33_config \
1612MPC832XEMDS_HOST_66_config \
Tony Lic5c40d82007-10-18 17:47:19 +08001613MPC832XEMDS_SLAVE_config \
1614MPC832XEMDS_ATM_config: unconfig
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001615 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01001616 @if [ "$(findstring _HOST_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001617 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
Dave Liua46daea2006-11-03 19:33:44 -06001618 fi ; \
1619 if [ "$(findstring _SLAVE_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001620 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1621 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
Dave Liua46daea2006-11-03 19:33:44 -06001622 fi ; \
1623 if [ "$(findstring _33_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001624 echo "#define PCI_33M" >>$(obj)include/config.h ; \
Tony Lic5c40d82007-10-18 17:47:19 +08001625 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
Dave Liua46daea2006-11-03 19:33:44 -06001626 fi ; \
1627 if [ "$(findstring _66_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001628 echo "#define PCI_66M" >>$(obj)include/config.h ; \
Tony Lic5c40d82007-10-18 17:47:19 +08001629 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1630 fi ; \
1631 if [ "$(findstring _ATM_,$@)" ] ; then \
Tony Lic5c40d82007-10-18 17:47:19 +08001632 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
Wolfgang Denk19b68c42008-03-04 14:58:31 +01001633 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
Dave Liua46daea2006-11-03 19:33:44 -06001634 fi ;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001635 @$(MKCONFIG) -n $@ -a MPC832XEMDS powerpc mpc83xx mpc832xemds freescale
Marian Balakowicz513b4a12005-10-11 19:09:42 +02001636
Timur Tabi435e3a72007-01-31 15:54:29 -06001637MPC8349ITX_config \
1638MPC8349ITX_LOWBOOT_config \
1639MPC8349ITXGP_config: unconfig
1640 @mkdir -p $(obj)include
Sam Sparksb9e9a372007-09-14 11:14:42 -06001641 @mkdir -p $(obj)board/freescale/mpc8349itx
Timur Tabi435e3a72007-01-31 15:54:29 -06001642 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1643 @if [ "$(findstring GP,$@)" ] ; then \
Sam Sparksb9e9a372007-09-14 11:14:42 -06001644 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
Timur Tabi435e3a72007-01-31 15:54:29 -06001645 fi
1646 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
Sam Sparksb9e9a372007-09-14 11:14:42 -06001647 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
Timur Tabi435e3a72007-01-31 15:54:29 -06001648 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001649 @$(MKCONFIG) -n $@ -a MPC8349ITX powerpc mpc83xx mpc8349itx freescale
Timur Tabi054838e2006-10-31 18:44:42 -06001650
Marian Balakowiczd7a3f722006-03-14 16:24:38 +01001651MPC8360EMDS_config \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001652MPC8360EMDS_HOST_33_config \
Marian Balakowiczd7a3f722006-03-14 16:24:38 +01001653MPC8360EMDS_HOST_66_config \
Tony Lic5c40d82007-10-18 17:47:19 +08001654MPC8360EMDS_SLAVE_config \
1655MPC8360EMDS_ATM_config: unconfig
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001656 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01001657 @if [ "$(findstring _HOST_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001658 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001659 fi ; \
wdenk9c53f402003-10-15 23:53:47 +00001660 if [ "$(findstring _SLAVE_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001661 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1662 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
Lunsheng Wang61e61952005-07-29 10:20:29 -05001663 fi ; \
1664 if [ "$(findstring _33_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001665 echo "#define PCI_33M" >>$(obj)include/config.h ; \
Tony Lic5c40d82007-10-18 17:47:19 +08001666 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
Lunsheng Wang61e61952005-07-29 10:20:29 -05001667 fi ; \
1668 if [ "$(findstring _66_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001669 echo "#define PCI_66M" >>$(obj)include/config.h ; \
Tony Lic5c40d82007-10-18 17:47:19 +08001670 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1671 fi ; \
1672 if [ "$(findstring _ATM_,$@)" ] ; then \
Tony Lic5c40d82007-10-18 17:47:19 +08001673 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
Wolfgang Denk19b68c42008-03-04 14:58:31 +01001674 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
Lunsheng Wang61e61952005-07-29 10:20:29 -05001675 fi ;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001676 @$(MKCONFIG) -n $@ -a MPC8360EMDS powerpc mpc83xx mpc8360emds freescale
Lunsheng Wang61e61952005-07-29 10:20:29 -05001677
Anton Vorontsovb6678de2008-01-09 20:57:47 +03001678MPC8360ERDK_33_config \
1679MPC8360ERDK_66_config \
Jean-Christophe PLAGNIOL-VILLARDca0350e2008-03-02 16:12:31 +01001680MPC8360ERDK_config: unconfig
Anton Vorontsovb6678de2008-01-09 20:57:47 +03001681 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01001682 @if [ "$(findstring _33_,$@)" ] ; then \
Anton Vorontsovb6678de2008-01-09 20:57:47 +03001683 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
1684 fi ;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001685 @$(MKCONFIG) -n $@ -a MPC8360ERDK powerpc mpc83xx mpc8360erdk freescale
Anton Vorontsovb6678de2008-01-09 20:57:47 +03001686
Dave Liub19ecd32007-09-18 12:37:57 +08001687MPC837XEMDS_config \
1688MPC837XEMDS_HOST_config: unconfig
1689 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01001690 @if [ "$(findstring _HOST_,$@)" ] ; then \
Dave Liub19ecd32007-09-18 12:37:57 +08001691 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1692 fi ;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001693 @$(MKCONFIG) -n $@ -a MPC837XEMDS powerpc mpc83xx mpc837xemds freescale
Dave Liub19ecd32007-09-18 12:37:57 +08001694
Paul Gortmaker0aaee142009-08-21 16:21:58 -05001695sbc8349_config \
1696sbc8349_PCI_33_config \
1697sbc8349_PCI_66_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001698 @$(MKCONFIG) -n $@ -t $@ sbc8349 powerpc mpc83xx sbc8349
Kim Phillips2380d432007-01-24 17:18:37 -06001699
Ron Madrid9ff89b72009-01-22 15:05:24 -08001700SIMPC8313_LP_config \
1701SIMPC8313_SP_config: unconfig
1702 @mkdir -p $(obj)include
1703 @mkdir -p $(obj)board/sheldon/simpc8313
1704 @if [ "$(findstring _LP_,$@)" ] ; then \
Ron Madrid9ff89b72009-01-22 15:05:24 -08001705 echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \
1706 fi ; \
1707 if [ "$(findstring _SP_,$@)" ] ; then \
Ron Madrid9ff89b72009-01-22 15:05:24 -08001708 echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \
1709 fi ;
Ron Madrid9ff89b72009-01-22 15:05:24 -08001710 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denk625bd332010-05-27 23:18:33 +02001711 @$(MKCONFIG) -n $@ -a SIMPC8313 powerpc mpc83xx simpc8313 sheldon
Ron Madrid9ff89b72009-01-22 15:05:24 -08001712
Reinhard Arlt63881352009-12-08 09:13:08 +01001713caddy2_config \
Reinhard Arlt46911792009-07-25 06:19:12 +02001714vme8349_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001715 @$(MKCONFIG) -n $@ -t $@ vme8349 powerpc mpc83xx vme8349 esd
Lunsheng Wang61e61952005-07-29 10:20:29 -05001716
1717#########################################################################
1718## MPC85xx Systems
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001719#########################################################################
Lunsheng Wang61e61952005-07-29 10:20:29 -05001720
Mingkai Huc2a6dca2009-09-23 15:20:37 +08001721MPC8536DS_NAND_config \
Mingkai Hua74e3952009-09-23 15:20:38 +08001722MPC8536DS_SDCARD_config \
1723MPC8536DS_SPIFLASH_config \
Kumar Galaee1ca7e2009-07-30 15:54:07 -05001724MPC8536DS_36BIT_config \
Kumar Galafd83aa82008-07-25 13:31:05 -05001725MPC8536DS_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001726 @$(MKCONFIG) -n $@ -t $@ MPC8536DS powerpc mpc85xx mpc8536ds freescale
Kumar Galafd83aa82008-07-25 13:31:05 -05001727
wdenk9c53f402003-10-15 23:53:47 +00001728MPC8540EVAL_config \
1729MPC8540EVAL_33_config \
1730MPC8540EVAL_66_config \
1731MPC8540EVAL_33_slave_config \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001732MPC8540EVAL_66_slave_config: unconfig
wdenk9c53f402003-10-15 23:53:47 +00001733 @mkdir -p $(obj)include
Wolfgang Denk625bd332010-05-27 23:18:33 +02001734 @if [ -z "$(findstring _33_,$@)" ] ; then \
wdenk7ebf7442002-11-02 23:17:16 +00001735 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
wdenk452cfd62002-11-19 11:04:11 +00001736 fi ; \
1737 if [ "$(findstring _slave_,$@)" ] ; then \
1738 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
wdenk9f837932003-10-09 19:00:25 +00001739 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001740 @$(MKCONFIG) -n $@ -a MPC8540EVAL powerpc mpc85xx mpc8540eval
wdenk9f837932003-10-09 19:00:25 +00001741
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001742MPC8541CDS_legacy_config \
wdenk0aeb8532004-10-10 21:21:55 +00001743MPC8541CDS_config: unconfig
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001744 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01001745 @if [ "$(findstring _legacy_,$@)" ] ; then \
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001746 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001747 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001748 @$(MKCONFIG) -n $@ -a MPC8541CDS powerpc mpc85xx mpc8541cds freescale
wdenk0aeb8532004-10-10 21:21:55 +00001749
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001750MPC8548CDS_legacy_config \
Jon Loeliger77a4f6e2005-07-25 14:05:07 -05001751MPC8548CDS_config: unconfig
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001752 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01001753 @if [ "$(findstring _legacy_,$@)" ] ; then \
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001754 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001755 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001756 @$(MKCONFIG) -n $@ -a MPC8548CDS powerpc mpc85xx mpc8548cds freescale
Jon Loeliger77a4f6e2005-07-25 14:05:07 -05001757
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001758MPC8555CDS_legacy_config \
wdenk0aeb8532004-10-10 21:21:55 +00001759MPC8555CDS_config: unconfig
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001760 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01001761 @if [ "$(findstring _legacy_,$@)" ] ; then \
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001762 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001763 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001764 @$(MKCONFIG) -n $@ -a MPC8555CDS powerpc mpc85xx mpc8555cds freescale
wdenk78924a72004-04-18 21:45:42 +00001765
Liu Yu06f0ebe2009-11-27 15:31:52 +08001766MPC8569MDS_ATM_config \
Liu Yu2639e512010-01-18 19:03:28 +08001767MPC8569MDS_NAND_config \
Haiying Wangbd255372009-03-27 17:02:45 -04001768MPC8569MDS_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001769 @$(MKCONFIG) -n $@ -t $@ MPC8569MDS powerpc mpc85xx mpc8569mds freescale
Haiying Wangbd255372009-03-27 17:02:45 -04001770
Kumar Galae0f97412009-01-23 14:22:14 -06001771MPC8572DS_36BIT_config \
Kumar Gala3ab0b2d2008-08-12 11:13:08 -05001772MPC8572DS_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001773 @$(MKCONFIG) -n $@ -t $@ MPC8572DS powerpc mpc85xx mpc8572ds freescale
Kumar Gala3ab0b2d2008-08-12 11:13:08 -05001774
Srikanth Srinivasan949a2d52009-04-03 15:36:13 -05001775P2020DS_36BIT_config \
1776P2020DS_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001777 @$(MKCONFIG) -n $@ -t $@ P2020DS powerpc mpc85xx p2020ds freescale
Srikanth Srinivasan949a2d52009-04-03 15:36:13 -05001778
Kumar Gala5b62efc2009-09-10 16:31:53 -05001779P1011RDB_config \
Dipen Dudhate98a3fc2009-10-08 13:33:18 +05301780P1011RDB_NAND_config \
Dipen Dudhat529e5fd2009-10-08 13:33:29 +05301781P1011RDB_SDCARD_config \
1782P1011RDB_SPIFLASH_config \
Kumar Gala5b62efc2009-09-10 16:31:53 -05001783P1020RDB_config \
Dipen Dudhate98a3fc2009-10-08 13:33:18 +05301784P1020RDB_NAND_config \
Dipen Dudhat529e5fd2009-10-08 13:33:29 +05301785P1020RDB_SDCARD_config \
1786P1020RDB_SPIFLASH_config \
Kumar Gala5b62efc2009-09-10 16:31:53 -05001787P2010RDB_config \
Dipen Dudhate98a3fc2009-10-08 13:33:18 +05301788P2010RDB_NAND_config \
Dipen Dudhat529e5fd2009-10-08 13:33:29 +05301789P2010RDB_SDCARD_config \
1790P2010RDB_SPIFLASH_config \
yorkcc1415c2010-07-02 22:25:58 +00001791P2020DS_DDR2_config \
Dipen Dudhate98a3fc2009-10-08 13:33:18 +05301792P2020RDB_config \
Dipen Dudhat529e5fd2009-10-08 13:33:29 +05301793P2020RDB_NAND_config \
1794P2020RDB_SDCARD_config \
1795P2020RDB_SPIFLASH_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001796 @$(MKCONFIG) -n $@ -t $@ P1_P2_RDB powerpc mpc85xx p1_p2_rdb freescale
Poonam Aggrwal987862c2009-08-05 13:29:24 +05301797
wdenkadf849c2004-10-10 22:44:24 +00001798sbc8540_config \
1799sbc8540_33_config \
1800sbc8540_66_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001801 @$(MKCONFIG) -n $@ -t $@ SBC8540 powerpc mpc85xx sbc8560
wdenkadf849c2004-10-10 22:44:24 +00001802
Paul Gortmakerf5c69a52009-09-20 20:36:06 -04001803sbc8548_config \
1804sbc8548_PCI_33_config \
1805sbc8548_PCI_66_config \
1806sbc8548_PCI_33_PCIE_config \
1807sbc8548_PCI_66_PCIE_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001808 @$(MKCONFIG) -n $@ -t $@ sbc8548 powerpc mpc85xx sbc8548
Joe Hammanccefae42007-12-13 06:45:08 -06001809
wdenk265d2172004-07-10 22:35:59 +00001810sbc8560_config \
1811sbc8560_33_config \
Wolfgang Denk19b68c42008-03-04 14:58:31 +01001812sbc8560_66_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001813 @$(MKCONFIG) -n $@ -t $@ sbc8560 powerpc mpc85xx sbc8560
wdenk3203c8f2004-07-10 21:45:47 +00001814
Wolfgang Denk5b9a5d82007-05-31 17:20:09 +02001815stxssa_config \
1816stxssa_4M_config: unconfig
1817 @mkdir -p $(obj)include
1818 @if [ "$(findstring _4M_,$@)" ] ; then \
1819 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
Wolfgang Denk5b9a5d82007-05-31 17:20:09 +02001820 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001821 @$(MKCONFIG) -n $@ -a stxssa powerpc mpc85xx stxssa stx
Dan Malek6acf0482007-01-05 09:15:34 +01001822
Stefan Roese09554022005-11-30 13:06:40 +01001823TQM8540_config \
1824TQM8541_config \
Wolfgang Grandegger328c6ec2008-06-05 13:12:07 +02001825TQM8548_config \
Wolfgang Grandegger7ebcfec2009-02-11 18:38:22 +01001826TQM8548_AG_config \
Wolfgang Grandeggere85bbc62009-02-11 18:38:21 +01001827TQM8548_BE_config \
Stefan Roese09554022005-11-30 13:06:40 +01001828TQM8555_config \
1829TQM8560_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001830 @mkdir -p $(obj)include
Wolfgang Grandeggere85bbc62009-02-11 18:38:21 +01001831 @BTYPE=$(@:_config=); \
Wolfgang Grandegger7ebcfec2009-02-11 18:38:22 +01001832 CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001833 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
Wolfgang Grandeggere85bbc62009-02-11 18:38:21 +01001834 echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001835 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
Wolfgang Grandeggere85bbc62009-02-11 18:38:21 +01001836 echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h;
Wolfgang Grandeggere85bbc62009-02-11 18:38:21 +01001837 @echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001838 @$(MKCONFIG) -n $@ -a TQM85xx powerpc mpc85xx tqm85xx tqc
wdenk8e5263c2005-04-05 16:26:47 +00001839
wdenk9f837932003-10-09 19:00:25 +00001840#########################################################################
Jon Loeliger5c8aa972006-04-26 17:58:56 -05001841## MPC86xx Systems
1842#########################################################################
1843
Becky Brucef4a865c2008-11-06 13:04:09 -06001844MPC8641HPCN_36BIT_config \
Jon Loeliger5c8aa972006-04-26 17:58:56 -05001845MPC8641HPCN_config: unconfig
Becky Brucef4a865c2008-11-06 13:04:09 -06001846 @mkdir -p $(obj)include
1847 @if [ "$(findstring _36BIT_,$@)" ] ; then \
1848 echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
Becky Brucef4a865c2008-11-06 13:04:09 -06001849 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001850 @$(MKCONFIG) -n $@ -a MPC8641HPCN powerpc mpc86xx mpc8641hpcn freescale
Jon Loeliger5c8aa972006-04-26 17:58:56 -05001851
Jon Loeliger5c8aa972006-04-26 17:58:56 -05001852#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001853## 74xx/7xx Systems
1854#########################################################################
1855
1856EVB64260_config \
1857EVB64260_750CX_config: unconfig
Wolfgang Denk625bd332010-05-27 23:18:33 +02001858 @$(MKCONFIG) -n $@ EVB64260 powerpc 74xx_7xx evb64260
wdenk7ebf7442002-11-02 23:17:16 +00001859
Stefan Roese45993ea2006-11-29 15:42:37 +01001860p3m750_config \
1861p3m7448_config: unconfig
1862 @mkdir -p $(obj)include
1863 @if [ "$(findstring 750_,$@)" ] ; then \
1864 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
1865 else \
1866 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
1867 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001868 @$(MKCONFIG) -n $@ -a p3mx powerpc 74xx_7xx p3mx prodrive
Stefan Roese45993ea2006-11-29 15:42:37 +01001869
wdenk7ebf7442002-11-02 23:17:16 +00001870PCIPPC2_config \
1871PCIPPC6_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001872 @$(MKCONFIG) -n $@ $@ powerpc 74xx_7xx pcippc2
wdenk7ebf7442002-11-02 23:17:16 +00001873
wdenk7ebf7442002-11-02 23:17:16 +00001874#========================================================================
1875# ARM
1876#========================================================================
wdenk7ebf7442002-11-02 23:17:16 +00001877
Ulf Samuelsson1c5fdbf2008-04-12 20:56:03 +02001878#########################################################################
1879## Atmel AT91RM9200 Systems
1880#########################################################################
Stelian Pop6c939742008-01-20 19:49:21 +00001881
Tom Rix3db7af72009-09-27 07:47:24 -05001882CPUAT91_RAM_config \
1883CPUAT91_config : unconfig
1884 @mkdir -p $(obj)include
1885 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +02001886 @$(MKCONFIG) -n $@ -a cpuat91 arm arm920t cpuat91 eukrea at91rm9200
Tom Rix3db7af72009-09-27 07:47:24 -05001887
Ulf Samuelsson1c5fdbf2008-04-12 20:56:03 +02001888#########################################################################
Matthias Weisseraea03572010-01-18 10:58:13 +01001889## ARM926EJ-S Systems
Ulf Samuelsson1c5fdbf2008-04-12 20:56:03 +02001890#########################################################################
1891
Nicolas Ferre09e10902008-12-06 13:11:14 +01001892at91sam9260ek_nandflash_config \
1893at91sam9260ek_dataflash_cs0_config \
1894at91sam9260ek_dataflash_cs1_config \
Nicolas Ferre4ef545e2009-03-22 14:48:16 +01001895at91sam9260ek_config \
1896at91sam9g20ek_nandflash_config \
1897at91sam9g20ek_dataflash_cs0_config \
1898at91sam9g20ek_dataflash_cs1_config \
1899at91sam9g20ek_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDe7f5aab2009-01-03 17:22:24 +01001900 @mkdir -p $(obj)include
Nicolas Ferre4ef545e2009-03-22 14:48:16 +01001901 @if [ "$(findstring 9g20,$@)" ] ; then \
1902 echo "#define CONFIG_AT91SAM9G20EK 1" >>$(obj)include/config.h ; \
Nicolas Ferre4ef545e2009-03-22 14:48:16 +01001903 else \
1904 echo "#define CONFIG_AT91SAM9260EK 1" >>$(obj)include/config.h ; \
1905 fi;
Nicolas Ferre09e10902008-12-06 13:11:14 +01001906 @if [ "$(findstring _nandflash,$@)" ] ; then \
1907 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001908 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
1909 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001910 else \
1911 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001912 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001913 @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
Ulf Samuelsson1c5fdbf2008-04-12 20:56:03 +02001914
Nicolas Ferreca5bfc12009-01-06 21:13:14 +01001915at91sam9xeek_nandflash_config \
1916at91sam9xeek_dataflash_cs0_config \
1917at91sam9xeek_dataflash_cs1_config \
1918at91sam9xeek_config : unconfig
1919 @mkdir -p $(obj)include
1920 @if [ "$(findstring _nandflash,$@)" ] ; then \
1921 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferreca5bfc12009-01-06 21:13:14 +01001922 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
1923 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
Nicolas Ferreca5bfc12009-01-06 21:13:14 +01001924 else \
1925 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
Nicolas Ferreca5bfc12009-01-06 21:13:14 +01001926 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001927 @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
Nicolas Ferreca5bfc12009-01-06 21:13:14 +01001928
Nicolas Ferre09e10902008-12-06 13:11:14 +01001929at91sam9261ek_nandflash_config \
1930at91sam9261ek_dataflash_cs0_config \
1931at91sam9261ek_dataflash_cs3_config \
Sedji Gaouaou97a031b2009-06-25 17:04:15 +02001932at91sam9261ek_config \
1933at91sam9g10ek_nandflash_config \
1934at91sam9g10ek_dataflash_cs0_config \
1935at91sam9g10ek_dataflash_cs3_config \
1936at91sam9g10ek_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDe7f5aab2009-01-03 17:22:24 +01001937 @mkdir -p $(obj)include
Sedji Gaouaou97a031b2009-06-25 17:04:15 +02001938 @if [ "$(findstring 9g10,$@)" ] ; then \
1939 echo "#define CONFIG_AT91SAM9G10EK 1" >>$(obj)include/config.h ; \
Sedji Gaouaou97a031b2009-06-25 17:04:15 +02001940 else \
1941 echo "#define CONFIG_AT91SAM9261EK 1" >>$(obj)include/config.h ; \
1942 fi;
Nicolas Ferre09e10902008-12-06 13:11:14 +01001943 @if [ "$(findstring _nandflash,$@)" ] ; then \
1944 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Sedji Gaouaou97a031b2009-06-25 17:04:15 +02001945 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001946 echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001947 else \
1948 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001949 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001950 @$(MKCONFIG) -n $@ -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91
Jean-Christophe PLAGNIOL-VILLARDc804eb22008-11-01 10:47:59 +01001951
Jean-Christophe PLAGNIOL-VILLARD32774732009-06-13 12:48:36 +02001952at91sam9263ek_norflash_config \
1953at91sam9263ek_norflash_boot_config \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001954at91sam9263ek_nandflash_config \
1955at91sam9263ek_dataflash_config \
1956at91sam9263ek_dataflash_cs0_config \
Jean-Christophe PLAGNIOL-VILLARDc804eb22008-11-01 10:47:59 +01001957at91sam9263ek_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDe7f5aab2009-01-03 17:22:24 +01001958 @mkdir -p $(obj)include
Nicolas Ferre09e10902008-12-06 13:11:14 +01001959 @if [ "$(findstring _nandflash,$@)" ] ; then \
1960 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD32774732009-06-13 12:48:36 +02001961 elif [ "$(findstring norflash,$@)" ] ; then \
1962 echo "#define CONFIG_SYS_USE_NORFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001963 else \
1964 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001965 fi;
Jean-Christophe PLAGNIOL-VILLARD32774732009-06-13 12:48:36 +02001966 @if [ "$(findstring norflash_boot,$@)" ] ; then \
1967 echo "#define CONFIG_SYS_USE_BOOT_NORFLASH 1" >>$(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD32774732009-06-13 12:48:36 +02001968 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001969 @$(MKCONFIG) -n $@ -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91
Jean-Christophe PLAGNIOL-VILLARDc804eb22008-11-01 10:47:59 +01001970
Nicolas Ferre09e10902008-12-06 13:11:14 +01001971at91sam9rlek_nandflash_config \
1972at91sam9rlek_dataflash_config \
1973at91sam9rlek_dataflash_cs0_config \
Jean-Christophe PLAGNIOL-VILLARDc804eb22008-11-01 10:47:59 +01001974at91sam9rlek_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDe7f5aab2009-01-03 17:22:24 +01001975 @mkdir -p $(obj)include
Nicolas Ferre09e10902008-12-06 13:11:14 +01001976 @if [ "$(findstring _nandflash,$@)" ] ; then \
1977 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001978 else \
1979 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001980 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001981 @$(MKCONFIG) -n $@ -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
Jean-Christophe PLAGNIOL-VILLARDc804eb22008-11-01 10:47:59 +01001982
Tom Rix799a05b2009-09-27 11:10:09 -05001983CPU9G20_128M_config \
1984CPU9G20_config \
1985CPU9260_128M_config \
1986CPU9260_config : unconfig
1987 @mkdir -p $(obj)include
1988 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +02001989 @$(MKCONFIG) -n $@ -a cpu9260 arm arm926ejs cpu9260 eukrea at91
Tom Rix799a05b2009-09-27 11:10:09 -05001990
Sedji Gaouaou538566d2009-07-09 10:16:29 +02001991at91sam9m10g45ek_nandflash_config \
1992at91sam9m10g45ek_dataflash_config \
1993at91sam9m10g45ek_dataflash_cs0_config \
1994at91sam9m10g45ek_config \
1995at91sam9g45ekes_nandflash_config \
1996at91sam9g45ekes_dataflash_config \
1997at91sam9g45ekes_dataflash_cs0_config \
1998at91sam9g45ekes_config : unconfig
1999 @mkdir -p $(obj)include
2000 @if [ "$(findstring 9m10,$@)" ] ; then \
2001 echo "#define CONFIG_AT91SAM9M10G45EK 1" >>$(obj)include/config.h ; \
Sedji Gaouaou538566d2009-07-09 10:16:29 +02002002 else \
2003 echo "#define CONFIG_AT91SAM9G45EKES 1" >>$(obj)include/config.h ; \
2004 fi;
Sedji Gaouaou538566d2009-07-09 10:16:29 +02002005 @if [ "$(findstring _nandflash,$@)" ] ; then \
2006 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Sedji Gaouaou538566d2009-07-09 10:16:29 +02002007 else \
2008 echo "#define CONFIG_ATMEL_SPI 1" >>$(obj)include/config.h ; \
Sedji Gaouaou538566d2009-07-09 10:16:29 +02002009 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002010 @$(MKCONFIG) -n $@ -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91
Sedji Gaouaou538566d2009-07-09 10:16:29 +02002011
Asen Dimovddd0bda2010-04-20 22:49:04 +03002012pm9g45_config : unconfig
2013 @mkdir -p $(obj)include
2014 @$(MKCONFIG) -a pm9g45 arm arm926ejs pm9g45 ronetix at91
2015
Albin Tonnerre4f572d82009-08-24 18:03:26 +02002016SBC35_A9G20_NANDFLASH_config \
2017SBC35_A9G20_EEPROM_config \
2018SBC35_A9G20_config : unconfig
2019 @mkdir -p $(obj)include
2020 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +02002021 @$(MKCONFIG) -n $@ -a sbc35_a9g20 arm arm926ejs sbc35_a9g20 calao at91
Albin Tonnerre4f572d82009-08-24 18:03:26 +02002022
Albin Tonnerre20615462009-08-20 16:04:49 +02002023TNY_A9G20_NANDFLASH_config \
2024TNY_A9G20_EEPROM_config \
2025TNY_A9G20_config \
2026TNY_A9260_NANDFLASH_config \
2027TNY_A9260_EEPROM_config \
2028TNY_A9260_config : unconfig
2029 @mkdir -p $(obj)include
2030 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +02002031 @$(MKCONFIG) -n $@ -a tny_a9260 arm arm926ejs tny_a9260 calao at91
Albin Tonnerre20615462009-08-20 16:04:49 +02002032
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02002033########################################################################
2034## ARM Integrator boards - see doc/README-integrator for more info.
2035integratorap_config \
2036ap_config \
2037ap966_config \
2038ap922_config \
2039ap922_XA10_config \
2040ap7_config \
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +01002041ap720t_config \
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02002042ap920t_config \
2043ap926ejs_config \
2044ap946es_config: unconfig
Jean-Christophe PLAGNIOL-VILLARD693a7ae2009-05-17 00:58:37 +02002045 @board/armltd/integrator/split_by_variant.sh ap $@
wdenk4989f872004-03-14 15:06:13 +00002046
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02002047integratorcp_config \
2048cp_config \
2049cp920t_config \
2050cp926ejs_config \
2051cp946es_config \
2052cp1136_config \
2053cp966_config \
2054cp922_config \
2055cp922_XA10_config \
2056cp1026_config: unconfig
Jean-Christophe PLAGNIOL-VILLARD693a7ae2009-05-17 00:58:37 +02002057 @board/armltd/integrator/split_by_variant.sh cp $@
wdenkb3a4a702004-12-10 11:40:40 +00002058
Alessandro Rubini42a98012009-06-22 09:18:37 +02002059nhk8815_config \
2060nhk8815_onenand_config: unconfig
Alessandro Rubinibb930d12009-01-24 18:10:37 +01002061 @mkdir -p $(obj)include
2062 @ > $(obj)include/config.h
2063 @if [ "$(findstring _onenand, $@)" ] ; then \
2064 echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \
Alessandro Rubinibb930d12009-01-24 18:10:37 +01002065 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02002066 @$(MKCONFIG) -n $@ -a nhk8815 arm arm926ejs nhk8815 st nomadik
Alessandro Rubinibb930d12009-01-24 18:10:37 +01002067
Ulf Samuelsson1c5fdbf2008-04-12 20:56:03 +02002068xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2069
wdenke97d3d92004-02-23 22:22:28 +00002070omap1610inn_config \
2071omap1610inn_cs0boot_config \
2072omap1610inn_cs3boot_config \
wdenk920e91b2004-06-09 15:25:53 +00002073omap1610inn_cs_autoboot_config \
wdenke97d3d92004-02-23 22:22:28 +00002074omap1610h2_config \
2075omap1610h2_cs0boot_config \
wdenk920e91b2004-06-09 15:25:53 +00002076omap1610h2_cs3boot_config \
2077omap1610h2_cs_autoboot_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002078 @mkdir -p $(obj)include
wdenke97d3d92004-02-23 22:22:28 +00002079 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02002080 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
wdenk920e91b2004-06-09 15:25:53 +00002081 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02002082 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
wdenke97d3d92004-02-23 22:22:28 +00002083 else \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02002084 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
wdenke97d3d92004-02-23 22:22:28 +00002085 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002086 @$(MKCONFIG) -n $@ -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn ti omap
wdenk7eaacc52003-08-29 22:00:43 +00002087
wdenke3a06802004-06-06 23:13:55 +00002088omap730p2_config \
2089omap730p2_cs0boot_config \
2090omap730p2_cs3boot_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002091 @mkdir -p $(obj)include
wdenke3a06802004-06-06 23:13:55 +00002092 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002093 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
wdenke3a06802004-06-06 23:13:55 +00002094 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002095 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
wdenke3a06802004-06-06 23:13:55 +00002096 fi;
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002097 @$(MKCONFIG) -n $@ -a omap730p2 arm arm926ejs omap730p2 ti omap
wdenke3a06802004-06-06 23:13:55 +00002098
Vipin KUMAR6e2998f2010-01-15 19:15:52 +05302099spear300_config \
Vipin KUMARcc0da712010-01-15 19:15:53 +05302100spear310_config \
2101spear320_config : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002102 @$(MKCONFIG) -n $@ -t $@ spear3xx arm arm926ejs $(@:_config=) spear spear
Vipin KUMARb0ea0892010-01-15 19:15:50 +05302103
Vipin KUMAR7cc4c462010-01-15 19:15:48 +05302104spear600_config : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002105 @$(MKCONFIG) -n $@ -t $@ spear6xx arm arm926ejs $(@:_config=) spear spear
Vipin KUMAR7cc4c462010-01-15 19:15:48 +05302106
Jean-Christophe PLAGNIOL-VILLARD82b8e882009-01-28 21:58:03 +01002107SX1_stdout_serial_config \
2108SX1_config: unconfig
2109 @mkdir -p $(obj)include
2110 @if [ "$(findstring _stdout_serial_, $@)" ] ; then \
2111 echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD82b8e882009-01-28 21:58:03 +01002112 else \
2113 echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD82b8e882009-01-28 21:58:03 +01002114 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002115 @$(MKCONFIG) -n $@ SX1 arm arm925t sx1
wdenk9f664dd2004-06-09 21:50:45 +00002116
wdenk236d3fc2003-12-20 22:45:10 +00002117# TRAB default configuration: 8 MB Flash, 32 MB RAM
wdenk4a5c8a72003-03-06 00:02:04 +00002118trab_config \
wdenkb6b2f0e2003-09-17 22:48:07 +00002119trab_bigram_config \
2120trab_bigflash_config \
wdenkf6a6ac12003-09-17 15:10:32 +00002121trab_old_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002122 @mkdir -p $(obj)include
2123 @mkdir -p $(obj)board/trab
wdenkb6b2f0e2003-09-17 22:48:07 +00002124 @[ -z "$(findstring _bigram,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002125 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2126 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
wdenkb6b2f0e2003-09-17 22:48:07 +00002127 }
2128 @[ -z "$(findstring _bigflash,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002129 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2130 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002131 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
wdenkb6b2f0e2003-09-17 22:48:07 +00002132 }
wdenkf6a6ac12003-09-17 15:10:32 +00002133 @[ -z "$(findstring _old,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002134 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2135 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002136 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
wdenk4a5c8a72003-03-06 00:02:04 +00002137 }
Wolfgang Denkf2c7ea82010-05-27 23:18:36 +02002138 @$(MKCONFIG) -n $@ -a trab arm arm920t trab - s3c24x0
wdenk7ebf7442002-11-02 23:17:16 +00002139
John Rigby6478a752010-01-25 23:12:58 -07002140tx25_config : unconfig
John Rigby6478a752010-01-25 23:12:58 -07002141 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002142 @$(MKCONFIG) $@ arm arm926ejs tx25 karo mx25
John Rigby6478a752010-01-25 23:12:58 -07002143
Wolfgang Denkf2c7ea82010-05-27 23:18:36 +02002144edb9301_config \
2145edb9302_config \
2146edb9302a_config \
2147edb9307_config \
2148edb9307a_config \
2149edb9312_config \
2150edb9315_config \
2151edb9315a_config: unconfig
2152 @$(MKCONFIG) -n $@ -t $(@:_config=) edb93xx arm arm920t edb93xx - ep93xx
2153
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002154#########################################################################
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02002155# ARM supplied Versatile development boards
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002156#########################################################################
2157
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02002158versatile_config \
2159versatileab_config \
2160versatilepb_config : unconfig
Jean-Christophe PLAGNIOL-VILLARD98e0d072009-01-29 12:07:21 +01002161 @board/armltd/versatile/split_by_variant.sh $@
wdenkb98ac282004-02-24 00:16:43 +00002162
2163#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +00002164## XScale Systems
wdenk7ebf7442002-11-02 23:17:16 +00002165#########################################################################
2166
Stefan Roese1b5f1ff2007-01-18 16:05:47 +01002167pdnb3_config \
Wolfgang Denk19b68c42008-03-04 14:58:31 +01002168scpu_config: unconfig
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02002169 @mkdir -p $(obj)include
Stefan Roese1b5f1ff2007-01-18 16:05:47 +01002170 @if [ "$(findstring scpu_,$@)" ] ; then \
Wolfgang Denk19b68c42008-03-04 14:58:31 +01002171 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
Stefan Roese1b5f1ff2007-01-18 16:05:47 +01002172 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02002173 @$(MKCONFIG) -n $@ -a pdnb3 arm ixp pdnb3 prodrive
Wolfgang Denk4646d2a2006-05-30 15:56:48 +02002174
Stefano Babice33f8042009-07-01 20:40:41 +02002175polaris_config \
stefano babic6708a602007-08-30 23:01:49 +02002176trizepsiv_config : unconfig
Stefano Babice33f8042009-07-01 20:40:41 +02002177 @mkdir -p $(obj)include
2178 @if [ "$(findstring polaris,$@)" ] ; then \
2179 echo "#define CONFIG_POLARIS 1" >>$(obj)include/config.h ; \
2180 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002181 @$(MKCONFIG) -n $@ -a trizepsiv arm pxa trizepsiv
stefano babic6708a602007-08-30 23:01:49 +02002182
Marek Vasut1e847582010-03-07 23:35:48 +01002183vpac270_nor_config \
2184vpac270_onenand_config : unconfig
2185 @mkdir -p $(obj)include
2186 @if [ "$(findstring onenand,$@)" ] ; then \
2187 echo "#define CONFIG_ONENAND_U_BOOT" \
2188 >>$(obj)include/config.h ; \
2189 fi;
2190 @$(MKCONFIG) -n $@ -a vpac270 arm pxa vpac270
2191
Wolfgang Denke24ec722010-05-27 23:18:35 +02002192#########################################################################
2193## ARM1136 Systems
2194#########################################################################
wdenkb02744a2003-04-05 00:53:31 +00002195
Peter Pearseba348b52007-11-09 15:24:26 +00002196apollon_config : unconfig
Wolfgang Denkec40b4c2009-12-06 00:26:19 +01002197 @mkdir -p $(obj)include
Kyungmin Park33174212008-01-17 16:43:25 +09002198 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
Kyungmin Park33174212008-01-17 16:43:25 +09002199 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denkf2c7ea82010-05-27 23:18:36 +02002200 @$(MKCONFIG) $@ arm arm1136 apollon - omap24xx
Peter Pearseba348b52007-11-09 15:24:26 +00002201
Guennadi Liakhovetskie99f10a2009-02-24 10:44:02 +01002202imx31_phycore_eet_config \
Sascha Hauera5864c02008-03-26 20:41:17 +01002203imx31_phycore_config : unconfig
Guennadi Liakhovetski46d94732009-04-05 00:37:07 +02002204 @mkdir -p $(obj)include
Guennadi Liakhovetskie99f10a2009-02-24 10:44:02 +01002205 @if [ -n "$(findstring _eet_,$@)" ]; then \
2206 echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h; \
2207 fi
Wolfgang Denkf2c7ea82010-05-27 23:18:36 +02002208 @$(MKCONFIG) -n $@ -a imx31_phycore arm arm1136 imx31_phycore - mx31
Sascha Hauera5864c02008-03-26 20:41:17 +01002209
Magnus Lilja24f8b412009-07-04 10:31:24 +02002210mx31pdk_config \
2211mx31pdk_nand_config : unconfig
2212 @mkdir -p $(obj)include
2213 @if [ -n "$(findstring _nand_,$@)" ]; then \
2214 echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h; \
2215 else \
2216 echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h; \
2217 echo "#define CONFIG_SKIP_RELOCATE_UBOOT" >> $(obj)include/config.h; \
2218 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02002219 @$(MKCONFIG) -n $@ -a mx31pdk arm arm1136 mx31pdk freescale mx31
Magnus Lilja6eeb6f72009-07-01 01:07:55 +02002220
Guennadi Liakhovetskib2d42742008-08-31 00:39:47 +02002221#########################################################################
2222## ARM1176 Systems
2223#########################################################################
2224smdk6400_noUSB_config \
2225smdk6400_config : unconfig
2226 @mkdir -p $(obj)include $(obj)board/samsung/smdk6400
2227 @mkdir -p $(obj)nand_spl/board/samsung/smdk6400
2228 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +02002229 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Guennadi Liakhovetskib2d42742008-08-31 00:39:47 +02002230 @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \
2231 echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
Guennadi Liakhovetskib2d42742008-08-31 00:39:47 +02002232 else \
2233 echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
Guennadi Liakhovetskib2d42742008-08-31 00:39:47 +02002234 fi
Wolfgang Denked6372a2010-06-18 01:20:49 +02002235 @$(MKCONFIG) smdk6400 arm arm1176 smdk6400 samsung s3c64xx
Guennadi Liakhovetskib2d42742008-08-31 00:39:47 +02002236 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
2237
wdenk591dda52002-11-18 00:14:45 +00002238#========================================================================
wdenk4a5c8a72003-03-06 00:02:04 +00002239# MIPS
2240#========================================================================
wdenk7ebf7442002-11-02 23:17:16 +00002241#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +00002242## MIPS32 4Kc
2243#########################################################################
2244
wdenk5d841732003-08-17 18:55:18 +00002245incaip_100MHz_config \
2246incaip_133MHz_config \
2247incaip_150MHz_config \
2248incaip_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002249 @mkdir -p $(obj)include
wdenk5d841732003-08-17 18:55:18 +00002250 @[ -z "$(findstring _100MHz,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02002251 echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h
wdenk5d841732003-08-17 18:55:18 +00002252 @[ -z "$(findstring _133MHz,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02002253 echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h
wdenk5d841732003-08-17 18:55:18 +00002254 @[ -z "$(findstring _150MHz,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02002255 echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h
2256 @$(MKCONFIG) -n $@ -a incaip mips mips incaip
wdenk5d841732003-08-17 18:55:18 +00002257
Stefan Roeseee7a6ba2009-01-21 17:25:01 +01002258vct_premium_config \
2259vct_premium_small_config \
2260vct_premium_onenand_config \
2261vct_premium_onenand_small_config \
2262vct_platinum_config \
2263vct_platinum_small_config \
2264vct_platinum_onenand_config \
2265vct_platinum_onenand_small_config \
2266vct_platinumavc_config \
2267vct_platinumavc_small_config \
2268vct_platinumavc_onenand_config \
2269vct_platinumavc_onenand_small_config: unconfig
2270 @mkdir -p $(obj)include
Wolfgang Denk625bd332010-05-27 23:18:33 +02002271 @[ -z "$(findstring _premium,$@)" ] || \
2272 echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h
2273 @[ -z "$(findstring _platinum_,$@)" ] || \
2274 echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h
2275 @[ -z "$(findstring _platinumavc,$@)" ] || \
2276 echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h
2277 @[ -z "$(findstring _onenand,$@)" ] || \
2278 echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h
2279 @[ -z "$(findstring _small,$@)" ] || \
2280 echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h
2281 @$(MKCONFIG) -n $@ -a vct mips mips vct micronas
Stefan Roeseee7a6ba2009-01-21 17:25:01 +01002282
wdenk5d841732003-08-17 18:55:18 +00002283#########################################################################
wdenkcd914452004-05-29 16:53:29 +00002284## MIPS32 AU1X00
2285#########################################################################
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002286
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +01002287dbau1000_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002288 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002289 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002290 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenkcd914452004-05-29 16:53:29 +00002291
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +01002292dbau1100_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002293 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002294 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002295 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenkcd914452004-05-29 16:53:29 +00002296
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +01002297dbau1500_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002298 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002299 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002300 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenkcd914452004-05-29 16:53:29 +00002301
wdenk96c7a8c2005-01-09 22:28:56 +00002302dbau1550_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002303 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002304 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002305 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenk96c7a8c2005-01-09 22:28:56 +00002306
2307dbau1550_el_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002308 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002309 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002310 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenk96c7a8c2005-01-09 22:28:56 +00002311
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002312gth2_config : unconfig
2313 @mkdir -p $(obj)include
2314 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002315 @$(MKCONFIG) -a $@ mips mips gth2
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002316
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +01002317pb1000_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002318 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002319 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002320 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
Wolfgang Denk0cbaf642005-09-25 00:53:22 +02002321
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002322qemu_mips_config : unconfig
Vlad Lungu635e76c2008-01-16 19:27:51 +02002323 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002324 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
Vlad Lungu635e76c2008-01-16 19:27:51 +02002325 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2326
wdenk60164a82003-10-08 23:26:14 +00002327#========================================================================
2328# Nios
2329#========================================================================
wdenk60164a82003-10-08 23:26:14 +00002330
wdenkef3386f2004-10-10 21:27:30 +00002331#########################################################################
2332## Nios-II
2333#########################################################################
2334
Thomas Chou7ffbbf52010-04-21 08:40:59 +08002335# nios2 generic boards
2336NIOS2_GENERIC = nios2-generic
2337
2338$(NIOS2_GENERIC:%=%_config) : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002339 @$(MKCONFIG) $@ nios2 nios2 nios2-generic altera
Thomas Chou7ffbbf52010-04-21 08:40:59 +08002340
wdenk12490652004-04-18 21:13:41 +00002341#========================================================================
Mike Frysinger18ba9f82008-02-04 19:26:55 -05002342# Blackfin
2343#========================================================================
Wolfgang Denk46d2b522006-03-12 02:10:00 +01002344
Michael Henneriche9621622009-12-10 09:19:21 +00002345bf527-ezkit-v2_config : unconfig
2346 @$(MKCONFIG) -t BF527_EZKIT_REV_2_1 \
2347 bf527-ezkit blackfin blackfin bf527-ezkit
2348
Haavard Skinnemoen79f35b92006-10-25 15:48:59 +02002349#========================================================================
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002350# SH3 (SuperH)
2351#========================================================================
wdenk7ebf7442002-11-02 23:17:16 +00002352
Nobuhiro Iwamatsu45254852007-05-13 21:01:03 +09002353#########################################################################
Nobuhiro Iwamatsu6f7d4362008-08-31 23:02:04 +09002354## sh2 (Renesas SuperH)
2355#########################################################################
2356rsk7203_config: unconfig
Kieran Binghamc7e4e352008-12-30 01:16:03 +00002357 @mkdir -p $(obj)include
Peter Griffinde8cd4d2009-02-10 16:44:45 +00002358 @echo "#define CONFIG_RSK7203 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002359 @$(MKCONFIG) -a $@ sh sh2 rsk7203 renesas
Nobuhiro Iwamatsu6f7d4362008-08-31 23:02:04 +09002360
2361#########################################################################
Yoshihiro Shimodadad925c2007-12-03 22:58:50 +09002362## sh3 (Renesas SuperH)
2363#########################################################################
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002364
Mark Jonas35a398a2008-03-10 11:37:10 +01002365mpr2_config: unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02002366 @mkdir -p $(obj)include
2367 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002368 @$(MKCONFIG) -a $@ sh sh3 mpr2
Mark Jonas35a398a2008-03-10 11:37:10 +01002369
Yoshihiro Shimodadad925c2007-12-03 22:58:50 +09002370ms7720se_config: unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02002371 @mkdir -p $(obj)include
2372 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002373 @$(MKCONFIG) -a $@ sh sh3 ms7720se
Yoshihiro Shimodadad925c2007-12-03 22:58:50 +09002374
2375#########################################################################
Nobuhiro Iwamatsu45254852007-05-13 21:01:03 +09002376## sh4 (Renesas SuperH)
2377#########################################################################
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002378
2379MigoR_config : unconfig
2380 @mkdir -p $(obj)include
2381 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002382 @$(MKCONFIG) -a $@ sh sh4 MigoR renesas
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002383
Nobuhiro Iwamatsu45254852007-05-13 21:01:03 +09002384ms7750se_config: unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02002385 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002386 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002387 @$(MKCONFIG) -a $@ sh sh4 ms7750se
Nobuhiro Iwamatsu45254852007-05-13 21:01:03 +09002388
Wolfgang Denk19b68c42008-03-04 14:58:31 +01002389ms7722se_config : unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02002390 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002391 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002392 @$(MKCONFIG) -a $@ sh sh4 ms7722se
wdenkabda5ca2003-05-31 18:35:21 +00002393
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002394r2dplus_config : unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02002395 @mkdir -p $(obj)include
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002396 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002397 @$(MKCONFIG) -a $@ sh sh4 r2dplus renesas
goda.yusukefd768072008-01-25 20:46:36 +09002398
Yusuke Godacf236022008-03-11 12:55:12 +09002399r7780mp_config: unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02002400 @mkdir -p $(obj)include
2401 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002402 @$(MKCONFIG) -a $@ sh sh4 r7780mp renesas
Yusuke Godacf236022008-03-11 12:55:12 +09002403
Nobuhiro Iwamatsu113a37e2008-06-09 13:39:57 +09002404sh7763rdp_config : unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02002405 @mkdir -p $(obj)include
2406 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002407 @$(MKCONFIG) -a $@ sh sh4 sh7763rdp renesas
Nobuhiro Iwamatsu113a37e2008-06-09 13:39:57 +09002408
Yoshihiro Shimoda22dc9ec2009-03-03 15:11:17 +09002409sh7785lcr_32bit_config \
Nobuhiro Iwamatsu52f73c02008-08-31 22:45:08 +09002410sh7785lcr_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDb24d23c2009-06-04 12:06:43 +02002411 @mkdir -p $(obj)include
2412 @mkdir -p $(obj)board/renesas/sh7785lcr
2413 @echo "#define CONFIG_SH7785LCR 1" > $(obj)include/config.h
Yoshihiro Shimoda22dc9ec2009-03-03 15:11:17 +09002414 @if [ "$(findstring 32bit, $@)" ] ; then \
2415 echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \
Yoshihiro Shimoda22dc9ec2009-03-03 15:11:17 +09002416 echo "TEXT_BASE = 0x8ff80000" > \
2417 $(obj)board/renesas/sh7785lcr/config.tmp ; \
Yoshihiro Shimoda22dc9ec2009-03-03 15:11:17 +09002418 fi
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002419 @$(MKCONFIG) -n $@ -a sh7785lcr sh sh4 sh7785lcr renesas
Nobuhiro Iwamatsu52f73c02008-08-31 22:45:08 +09002420
Nobuhiro Iwamatsu3e590432008-08-22 17:39:09 +09002421ap325rxa_config : unconfig
2422 @mkdir -p $(obj)include
2423 @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002424 @$(MKCONFIG) -a $@ sh sh4 ap325rxa renesas
Nobuhiro Iwamatsu3e590432008-08-22 17:39:09 +09002425
Nobuhiro Iwamatsud1f2a0c2009-06-25 16:31:26 +09002426espt_config : unconfig
2427 @mkdir -p $(obj)include
2428 @echo "#define CONFIG_ESPT 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002429 @$(MKCONFIG) -a $@ sh sh4 espt
Nobuhiro Iwamatsud1f2a0c2009-06-25 16:31:26 +09002430
wdenk7ebf7442002-11-02 23:17:16 +00002431#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00002432#########################################################################
2433
2434clean:
Peter Tyser07a8af32009-07-10 11:03:19 -05002435 @rm -f $(obj)examples/standalone/82559_eeprom \
Wolfgang Denk96b0dfd2009-09-07 23:52:31 +02002436 $(obj)examples/standalone/atmel_df_pow2 \
Peter Tyser07a8af32009-07-10 11:03:19 -05002437 $(obj)examples/standalone/eepro100_eeprom \
2438 $(obj)examples/standalone/hello_world \
2439 $(obj)examples/standalone/interrupt \
2440 $(obj)examples/standalone/mem_to_mem_idma2intr \
2441 $(obj)examples/standalone/sched \
2442 $(obj)examples/standalone/smc91111_eeprom \
2443 $(obj)examples/standalone/test_burst \
2444 $(obj)examples/standalone/timer
Peter Tyseracce4eb2009-07-20 19:02:21 -05002445 @rm -f $(obj)examples/api/demo{,.bin}
Wolfgang Denk19b68c42008-03-04 14:58:31 +01002446 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
2447 $(obj)tools/env/{fw_printenv,fw_setenv} \
2448 $(obj)tools/envcrc \
2449 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
2450 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
2451 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
2452 $(obj)tools/ncb $(obj)tools/ubsha1
2453 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
2454 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
2455 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
Wolfgang Denk375babe2009-02-22 01:17:47 +01002456 $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \
Wolfgang Denk18d46c02009-08-17 14:00:53 +02002457 $(obj)u-boot.lds \
Peter Tyser12e57652010-04-12 22:28:13 -05002458 $(obj)arch/blackfin/cpu/bootrom-asm-offsets.[chs]
Wolfgang Denk3cf55ef2008-04-20 15:39:38 -07002459 @rm -f $(obj)include/bmp_logo.h
Wolfgang Denk18d46c02009-08-17 14:00:53 +02002460 @rm -f $(obj)nand_spl/{u-boot.lds,u-boot-spl,u-boot-spl.map,System.map}
Kyungmin Parkafb72e42009-09-22 09:05:00 +09002461 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl.map}
2462 @rm -f $(ONENAND_BIN)
Wolfgang Denk18d46c02009-08-17 14:00:53 +02002463 @rm -f $(obj)onenand_ipl/u-boot.lds
Peter Tyseracce4eb2009-07-20 19:02:21 -05002464 @rm -f $(TIMESTAMP_FILE) $(VERSION_FILE)
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01002465 @find $(OBJTREE) -type f \
wdenk7ebf7442002-11-02 23:17:16 +00002466 \( -name 'core' -o -name '*.bak' -o -name '*~' \
Peter Tyser1ba4b312009-03-13 18:54:26 -05002467 -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \
wdenk7ebf7442002-11-02 23:17:16 +00002468 | xargs rm -f
wdenk7ebf7442002-11-02 23:17:16 +00002469
2470clobber: clean
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01002471 @find $(OBJTREE) -type f \( -name .depend \
wdenkaeba06f2004-06-09 17:34:58 +00002472 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2473 -print0 \
2474 | xargs -0 rm -f
Li Yang8c6dcf02008-02-29 11:46:05 +08002475 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
Wolfgang Denk6570eb32008-03-02 22:45:33 +01002476 $(obj)cscope.* $(obj)*.*~
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01002477 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
Prafulla Wadaskar07329412009-09-07 15:05:02 +05302478 @rm -f $(obj)u-boot.kwb
Stefano Babic421834e2010-02-05 15:13:58 +01002479 @rm -f $(obj)u-boot.imx
Peter Tyserbd5605b2009-03-13 18:54:47 -05002480 @rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes}
Stefan Roese88fbf932010-04-15 16:07:28 +02002481 @rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01002482 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
Jean-Christophe PLAGNIOL-VILLARD70e976e2008-08-16 18:54:27 +02002483 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
2484 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
wdenk7ebf7442002-11-02 23:17:16 +00002485
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002486ifeq ($(OBJTREE),$(SRCTREE))
2487mrproper \
2488distclean: clobber unconfig
2489else
wdenk7ebf7442002-11-02 23:17:16 +00002490mrproper \
2491distclean: clobber unconfig
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01002492 rm -rf $(obj)*
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002493endif
wdenk7ebf7442002-11-02 23:17:16 +00002494
2495backup:
2496 F=`basename $(TOPDIR)` ; cd .. ; \
Ilya Yanokd2b096d2010-06-21 18:13:21 +04002497 gtar --force-local -zcvf `LC_ALL=C date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
wdenk7ebf7442002-11-02 23:17:16 +00002498
2499#########################################################################