blob: 47f4e7d5ab0b3fd644a8a9d99be58eb681b30ef8 [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
Minkyu Kang0a2b6312010-08-19 13:48:11 +0900256ifeq ($(SOC),s5pc1xx)
257LIBS += $(CPUDIR)/s5p-common/libs5p-common.a
258endif
259ifeq ($(SOC),s5pc2xx)
260LIBS += $(CPUDIR)/s5p-common/libs5p-common.a
261endif
262
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200263LIBS := $(addprefix $(obj),$(LIBS))
Peter Tyser62948502008-11-03 09:30:59 -0600264.PHONY : $(LIBS) $(TIMESTAMP_FILE) $(VERSION_FILE)
wdenkc0aa5c52003-12-06 19:49:23 +0000265
Wolfgang Denk3823aa82008-04-30 17:25:07 +0200266LIBBOARD = board/$(BOARDDIR)/lib$(BOARD).a
267LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
268
wdenk4cc02a82003-09-11 23:06:34 +0000269# Add GCC lib
Wolfgang Denkc73f44d2009-07-23 13:15:59 +0200270ifdef USE_PRIVATE_LIBGCC
271ifeq ("$(USE_PRIVATE_LIBGCC)", "yes")
Peter Tysercede5d82010-04-12 22:28:04 -0500272PLATFORM_LIBGCC = -L $(OBJTREE)/arch/$(ARCH)/lib -lgcc
Wolfgang Denkc73f44d2009-07-23 13:15:59 +0200273else
274PLATFORM_LIBGCC = -L $(USE_PRIVATE_LIBGCC) -lgcc
275endif
276else
277PLATFORM_LIBGCC = -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc
278endif
279PLATFORM_LIBS += $(PLATFORM_LIBGCC)
280export PLATFORM_LIBS
wdenk4989f872004-03-14 15:06:13 +0000281
Mike Frysinger91acc212009-08-23 02:47:59 -0400282# Special flags for CPP when processing the linker script.
283# Pass the version down so we can handle backwards compatibility
284# on the fly.
285LDPPFLAGS += \
286 -include $(TOPDIR)/include/u-boot/u-boot.lds.h \
287 $(shell $(LD) --version | \
288 sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p')
289
Stefan Roese42fbddd2006-09-07 11:51:23 +0200290ifeq ($(CONFIG_NAND_U_BOOT),y)
291NAND_SPL = nand_spl
292U_BOOT_NAND = $(obj)u-boot-nand.bin
293endif
294
Kyungmin Park33174212008-01-17 16:43:25 +0900295ifeq ($(CONFIG_ONENAND_U_BOOT),y)
296ONENAND_IPL = onenand_ipl
297U_BOOT_ONENAND = $(obj)u-boot-onenand.bin
Kyungmin Parkafb72e42009-09-22 09:05:00 +0900298ONENAND_BIN ?= $(obj)onenand_ipl/onenand-ipl-2k.bin
Kyungmin Park33174212008-01-17 16:43:25 +0900299endif
300
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200301__OBJS := $(subst $(obj),,$(OBJS))
Wolfgang Denk3823aa82008-04-30 17:25:07 +0200302__LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200303
wdenk7ebf7442002-11-02 23:17:16 +0000304#########################################################################
wdenk0a658552003-08-05 17:43:17 +0000305#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +0000306
Mike Frysinger57047e02009-06-15 00:25:19 -0400307# Always append ALL so that arch config.mk's can add custom ones
Kyungmin Park33174212008-01-17 16:43:25 +0900308ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
wdenk7ebf7442002-11-02 23:17:16 +0000309
wdenk0a658552003-08-05 17:43:17 +0000310all: $(ALL)
wdenk7ebf7442002-11-02 23:17:16 +0000311
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200312$(obj)u-boot.hex: $(obj)u-boot
wdenk68005192005-01-09 21:28:15 +0000313 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@
314
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200315$(obj)u-boot.srec: $(obj)u-boot
Ricardo Ribalda Delgado0045fd82008-09-07 17:10:27 -0400316 $(OBJCOPY) -O srec $< $@
wdenk7ebf7442002-11-02 23:17:16 +0000317
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200318$(obj)u-boot.bin: $(obj)u-boot
wdenk7ebf7442002-11-02 23:17:16 +0000319 $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
320
Mike Frysinger908e7762008-02-04 19:26:57 -0500321$(obj)u-boot.ldr: $(obj)u-boot
Mike Frysinger45b57bd2009-07-21 22:17:36 -0400322 $(CREATE_LDR_ENV)
Mike Frysinger41117ca2008-08-07 18:56:56 -0400323 $(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS)
Mike Frysinger908e7762008-02-04 19:26:57 -0500324
325$(obj)u-boot.ldr.hex: $(obj)u-boot.ldr
326 $(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
327
328$(obj)u-boot.ldr.srec: $(obj)u-boot.ldr
329 $(OBJCOPY) ${OBJCFLAGS} -O srec $< $@ -I binary
330
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200331$(obj)u-boot.img: $(obj)u-boot.bin
Wolfgang Denk45b0c6c2010-05-15 21:23:51 +0200332 $(obj)tools/mkimage -A $(ARCH) -T firmware -C none \
wdenk0a658552003-08-05 17:43:17 +0000333 -a $(TEXT_BASE) -e 0 \
Wolfgang Denk4d1d9a32006-02-21 17:33:04 +0100334 -n $(shell sed -n -e 's/.*U_BOOT_VERSION//p' $(VERSION_FILE) | \
wdenk0a658552003-08-05 17:43:17 +0000335 sed -e 's/"[ ]*$$/ for $(BOARD) board"/') \
336 -d $< $@
337
Stefano Babic7b07f092010-01-20 18:19:10 +0100338$(obj)u-boot.imx: $(obj)u-boot.bin
339 $(obj)tools/mkimage -n $(IMX_CONFIG) -T imximage \
340 -e $(TEXT_BASE) -d $< $@
341
Prafulla Wadaskar07329412009-09-07 15:05:02 +0530342$(obj)u-boot.kwb: $(obj)u-boot.bin
343 $(obj)tools/mkimage -n $(KWD_CONFIG) -T kwbimage \
344 -a $(TEXT_BASE) -e $(TEXT_BASE) -d $< $@
345
Heiko Schocher633e03a2007-06-22 19:11:54 +0200346$(obj)u-boot.sha1: $(obj)u-boot.bin
Heiko Schocher6b765c32007-07-14 01:06:58 +0200347 $(obj)tools/ubsha1 $(obj)u-boot.bin
Heiko Schocher633e03a2007-06-22 19:11:54 +0200348
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200349$(obj)u-boot.dis: $(obj)u-boot
wdenk7ebf7442002-11-02 23:17:16 +0000350 $(OBJDUMP) -d $< > $@
351
Mike Frysingera46fbba2009-05-20 04:35:14 -0400352GEN_UBOOT = \
Wolfgang Denk3823aa82008-04-30 17:25:07 +0200353 UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
354 sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200355 cd $(LNDIR) && $(LD) $(LDFLAGS) $$UNDEF_SYM $(__OBJS) \
356 --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
wdenk67ff36c2002-11-19 23:01:07 +0000357 -Map u-boot.map -o u-boot
Wolfgang Denk18d46c02009-08-17 14:00:53 +0200358$(obj)u-boot: depend $(SUBDIRS) $(OBJS) $(LIBBOARD) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds
Mike Frysingera46fbba2009-05-20 04:35:14 -0400359 $(GEN_UBOOT)
360ifeq ($(CONFIG_KALLSYMS),y)
Wolfgang Denk18d46c02009-08-17 14:00:53 +0200361 smap=`$(call SYSTEM_MAP,u-boot) | \
362 awk '$$2 ~ /[tTwW]/ {printf $$1 $$3 "\\\\000"}'` ; \
363 $(CC) $(CFLAGS) -DSYSTEM_MAP="\"$${smap}\"" \
364 -c common/system_map.c -o $(obj)common/system_map.o
Mike Frysingera46fbba2009-05-20 04:35:14 -0400365 $(GEN_UBOOT) $(obj)common/system_map.o
366endif
wdenk7ebf7442002-11-02 23:17:16 +0000367
Peter Tyser5e4668002009-03-13 18:54:25 -0500368$(OBJS): depend
Peter Tyserd53e8fd2010-04-12 22:28:02 -0500369 $(MAKE) -C $(CPUDIR) $(if $(REMOTE_BUILD),$@,$(notdir $@))
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200370
Peter Tyser5e4668002009-03-13 18:54:25 -0500371$(LIBS): depend $(SUBDIRS)
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200372 $(MAKE) -C $(dir $(subst $(obj),,$@))
wdenkc0aa5c52003-12-06 19:49:23 +0000373
Peter Tyser5e4668002009-03-13 18:54:25 -0500374$(LIBBOARD): depend $(LIBS)
Wolfgang Denk3823aa82008-04-30 17:25:07 +0200375 $(MAKE) -C $(dir $(subst $(obj),,$@))
376
Peter Tyser5e4668002009-03-13 18:54:25 -0500377$(SUBDIRS): depend
wdenk444f22b2003-12-07 21:39:28 +0000378 $(MAKE) -C $@ all
wdenk7ebf7442002-11-02 23:17:16 +0000379
Peter Tyser5e4668002009-03-13 18:54:25 -0500380$(LDSCRIPT): depend
Mike Frysingera47a7452008-02-16 02:12:37 -0500381 $(MAKE) -C $(dir $@) $(notdir $@)
382
Wolfgang Denk18d46c02009-08-17 14:00:53 +0200383$(obj)u-boot.lds: $(LDSCRIPT)
384 $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
385
Peter Tyser62948502008-11-03 09:30:59 -0600386$(NAND_SPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
Marian Balakowicz814ed842006-10-23 22:17:05 +0200387 $(MAKE) -C nand_spl/board/$(BOARDDIR) all
Stefan Roese42fbddd2006-09-07 11:51:23 +0200388
Peter Tyser5e4668002009-03-13 18:54:25 -0500389$(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot.bin
Marian Balakowicz814ed842006-10-23 22:17:05 +0200390 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 +0200391
Peter Tyser62948502008-11-03 09:30:59 -0600392$(ONENAND_IPL): $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
Stefan Roese37628252008-08-06 14:05:38 +0200393 $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
Kyungmin Park33174212008-01-17 16:43:25 +0900394
Peter Tyser5e4668002009-03-13 18:54:25 -0500395$(U_BOOT_ONENAND): $(ONENAND_IPL) $(obj)u-boot.bin
Kyungmin Parkafb72e42009-09-22 09:05:00 +0900396 cat $(ONENAND_BIN) $(obj)u-boot.bin > $(obj)u-boot-onenand.bin
Kyungmin Park33174212008-01-17 16:43:25 +0900397
Wolfgang Denk0a659ad2008-01-13 00:59:21 +0100398$(VERSION_FILE):
Mike Frysinger547e8432008-05-02 21:45:12 -0400399 @( printf '#define U_BOOT_VERSION "U-Boot %s%s"\n' "$(U_BOOT_VERSION)" \
Peter Tyser98c02862008-11-12 13:06:48 -0600400 '$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ) > $@.tmp
Mike Frysinger8cd0c7a2008-02-04 17:44:23 -0500401 @cmp -s $@ $@.tmp && rm -f $@.tmp || mv -f $@.tmp $@
Wolfgang Denk4d1d9a32006-02-21 17:33:04 +0100402
Peter Tyser62948502008-11-03 09:30:59 -0600403$(TIMESTAMP_FILE):
Ilya Yanokd2b096d2010-06-21 18:13:21 +0400404 @LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > $@
405 @LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> $@
Peter Tyser62948502008-11-03 09:30:59 -0600406
dzu9b10ef982003-08-07 14:20:31 +0000407gdbtools:
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200408 $(MAKE) -C tools/gdb all || exit 1
409
410updater:
411 $(MAKE) -C tools/updater all || exit 1
412
413env:
Markus Klotzbücher2c52a762007-11-27 10:23:20 +0100414 $(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
dzu9b10ef982003-08-07 14:20:31 +0000415
Daniel Hobiad4eaa32010-01-18 18:13:39 +0100416# Explicitly make _depend in subdirs containing multiple targets to prevent
417# parallel sub-makes creating .depend files simultaneously.
Peter Tyser5e4668002009-03-13 18:54:25 -0500418depend dep: $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
Peter Tyserd53e8fd2010-04-12 22:28:02 -0500419 for dir in $(SUBDIRS) $(CPUDIR) $(dir $(LDSCRIPT)) ; do \
Daniel Hobiad4eaa32010-01-18 18:13:39 +0100420 $(MAKE) -C $$dir _depend ; done
wdenk7ebf7442002-11-02 23:17:16 +0000421
Li Yang22a6da62009-12-09 18:13:26 +0800422TAG_SUBDIRS = $(SUBDIRS)
423TAG_SUBDIRS += $(dir $(__LIBS))
Jean-Christophe PLAGNIOL-VILLARD957013c2007-11-25 18:45:47 +0100424TAG_SUBDIRS += include
Jean-Christophe PLAGNIOL-VILLARD957013c2007-11-25 18:45:47 +0100425
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200426tags ctags:
Li Yang22a6da62009-12-09 18:13:26 +0800427 ctags -w -o $(obj)ctags `find $(TAG_SUBDIRS) \
428 -name '*.[chS]' -print`
wdenk7ebf7442002-11-02 23:17:16 +0000429
430etags:
Li Yang22a6da62009-12-09 18:13:26 +0800431 etags -a -o $(obj)etags `find $(TAG_SUBDIRS) \
432 -name '*.[chS]' -print`
Li Yang8c6dcf02008-02-29 11:46:05 +0800433cscope:
Li Yang22a6da62009-12-09 18:13:26 +0800434 find $(TAG_SUBDIRS) -name '*.[chS]' -print > cscope.files
Li Yang8c6dcf02008-02-29 11:46:05 +0800435 cscope -b -q -k
wdenk7ebf7442002-11-02 23:17:16 +0000436
Mike Frysingera46fbba2009-05-20 04:35:14 -0400437SYSTEM_MAP = \
438 $(NM) $1 | \
wdenk7ebf7442002-11-02 23:17:16 +0000439 grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
Mike Frysingera46fbba2009-05-20 04:35:14 -0400440 LC_ALL=C sort
441$(obj)System.map: $(obj)u-boot
442 @$(call SYSTEM_MAP,$<) > $(obj)System.map
wdenk7ebf7442002-11-02 23:17:16 +0000443
Grant Likely0f910192007-09-24 09:05:31 -0600444#
445# Auto-generate the autoconf.mk file (which is included by all makefiles)
446#
447# This target actually generates 2 files; autoconf.mk and autoconf.mk.dep.
448# the dep file is only include in this top level makefile to determine when
449# to regenerate the autoconf.mk file.
Wolfgang Denk9046f3f2008-05-13 23:15:52 +0200450$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h
451 @$(XECHO) Generating $@ ; \
Mike Frysingerd3380232008-02-18 05:10:07 -0500452 set -e ; \
Wolfgang Denk0a659ad2008-01-13 00:59:21 +0100453 : Generate the dependancies ; \
Mike Frysinger00d5bfd2009-07-19 15:17:03 -0400454 $(CC) -x c -DDO_DEPS_ONLY -M $(HOSTCFLAGS) $(CPPFLAGS) \
Wolfgang Denk9046f3f2008-05-13 23:15:52 +0200455 -MQ $(obj)include/autoconf.mk include/common.h > $@
456
457$(obj)include/autoconf.mk: $(obj)include/config.h
458 @$(XECHO) Generating $@ ; \
459 set -e ; \
Wolfgang Denk0a659ad2008-01-13 00:59:21 +0100460 : Extract the config macros ; \
Wolfgang Denk9046f3f2008-05-13 23:15:52 +0200461 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
Wolfgang Denk71d81002008-12-16 14:41:02 +0100462 sed -n -f tools/scripts/define2mk.sed > $@.tmp && \
463 mv $@.tmp $@
Grant Likely0f910192007-09-24 09:05:31 -0600464
wdenk7ebf7442002-11-02 23:17:16 +0000465#########################################################################
Wolfgang Denk0a659ad2008-01-13 00:59:21 +0100466else # !config.mk
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200467all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \
468$(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \
Mike Frysinger39901cd2010-01-21 04:03:22 -0500469$(filter-out tools,$(SUBDIRS)) $(TIMESTAMP_FILE) $(VERSION_FILE) gdbtools \
470updater env depend dep tags ctags etags cscope $(obj)System.map:
wdenk7ebf7442002-11-02 23:17:16 +0000471 @echo "System not configured - see README" >&2
472 @ exit 1
Mike Frysinger39901cd2010-01-21 04:03:22 -0500473
474tools:
475 $(MAKE) -C tools
476tools-all:
477 $(MAKE) -C tools HOST_TOOLS_ALL=y
Wolfgang Denk0a659ad2008-01-13 00:59:21 +0100478endif # config.mk
wdenk7ebf7442002-11-02 23:17:16 +0000479
Wolfgang Denke5d99e22006-10-25 00:43:17 +0200480.PHONY : CHANGELOG
481CHANGELOG:
Ben Warrendc43c9c2006-10-26 14:38:25 -0400482 git log --no-merges U-Boot-1_1_5.. | \
483 unexpand -a | sed -e 's/\s\s*$$//' > $@
Wolfgang Denke5d99e22006-10-25 00:43:17 +0200484
Harald Welte5708dbf2008-07-09 22:30:30 +0800485include/license.h: tools/bin2header COPYING
Wolfgang Denk625bd332010-05-27 23:18:33 +0200486 cat COPYING | gzip -9 -c | ./tools/bin2header license_gzip > include/license.h
wdenk7ebf7442002-11-02 23:17:16 +0000487#########################################################################
488
489unconfig:
Stefan Roese42fbddd2006-09-07 11:51:23 +0200490 @rm -f $(obj)include/config.h $(obj)include/config.mk \
Grant Likely0f910192007-09-24 09:05:31 -0600491 $(obj)board/*/config.tmp $(obj)board/*/*/config.tmp \
492 $(obj)include/autoconf.mk $(obj)include/autoconf.mk.dep
wdenk7ebf7442002-11-02 23:17:16 +0000493
Wolfgang Denkf2c7ea82010-05-27 23:18:36 +0200494%_config:: unconfig
495 @$(MKCONFIG) -A $(@:_config=)
496
497##%: %_config
498## $(MAKE)
Mike Frysingera12e9412009-10-01 12:11:54 -0400499
Wolfgang Denke24ec722010-05-27 23:18:35 +0200500#
501# Functions to generate common board directory names
502#
503lcname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\L\1/')
504ucname = $(shell echo $(1) | sed -e 's/\(.*\)_config/\U\1/')
505
wdenk7ebf7442002-11-02 23:17:16 +0000506#========================================================================
507# PowerPC
508#========================================================================
wdenk359733b2003-03-31 17:27:09 +0000509
510#########################################################################
wdenk21136db2003-07-16 21:53:01 +0000511## MPC5xxx Systems
512#########################################################################
wdenk8d414a72005-06-10 10:00:19 +0000513
Grzegorz Bernackiafc9d6d2009-03-17 10:06:40 +0100514digsy_mtc_config \
515digsy_mtc_LOWBOOT_config \
516digsy_mtc_RAMBOOT_config: unconfig
517 @mkdir -p $(obj)include
518 @mkdir -p $(obj)board/digsy_mtc
519 @ >$(obj)include/config.h
520 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200521 echo "TEXT_BASE = 0xFF000000" >$(obj)board/digsy_mtc/config.tmp
Grzegorz Bernackiafc9d6d2009-03-17 10:06:40 +0100522 @[ -z "$(findstring RAMBOOT_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200523 echo "TEXT_BASE = 0x00100000" >$(obj)board/digsy_mtc/config.tmp
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200524 @$(MKCONFIG) -n $@ -a digsy_mtc powerpc mpc5xxx digsy_mtc
Grzegorz Bernackiafc9d6d2009-03-17 10:06:40 +0100525
Eric Millbrandt9fc91f02009-08-13 10:14:21 -0500526galaxy5200_LOWBOOT_config \
527galaxy5200_config: unconfig
528 @mkdir -p $(obj)include
529 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +0200530 @$(MKCONFIG) -n $@ -a galaxy5200 powerpc mpc5xxx galaxy5200
Eric Millbrandt9fc91f02009-08-13 10:14:21 -0500531
wdenke44b9112004-04-18 23:32:11 +0000532Lite5200_config \
533Lite5200_LOWBOOT_config \
534Lite5200_LOWBOOT08_config \
535icecube_5200_config \
536icecube_5200_LOWBOOT_config \
537icecube_5200_LOWBOOT08_config \
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +0100538icecube_5200_DDR_config \
539icecube_5200_DDR_LOWBOOT_config \
Detlev Zundela414c7a2010-03-12 10:01:12 +0100540icecube_5200_DDR_LOWBOOT08_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200541 @mkdir -p $(obj)include
542 @mkdir -p $(obj)board/icecube
wdenk9c07bf62004-04-10 20:43:50 +0000543 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200544 if [ "$(findstring DDR,$@)" ] ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200545 then echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp ; \
546 else echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp ; \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200547 fi
wdenk4b16c2e2003-11-07 13:42:26 +0000548 @[ -z "$(findstring LOWBOOT08,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200549 echo "TEXT_BASE = 0xFF800000" >$(obj)board/icecube/config.tmp
wdenk236d3fc2003-12-20 22:45:10 +0000550 @[ -z "$(findstring DDR,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200551 echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
552 @$(MKCONFIG) -n $@ -a IceCube powerpc mpc5xxx icecube
wdenk21136db2003-07-16 21:53:01 +0000553
Wolfgang Denk315b46a2006-03-17 11:42:53 +0100554lite5200b_config \
Domen Puncer64b89ae2007-04-16 14:00:13 +0200555lite5200b_PM_config \
Wolfgang Denk315b46a2006-03-17 11:42:53 +0100556lite5200b_LOWBOOT_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200557 @mkdir -p $(obj)include
558 @mkdir -p $(obj)board/icecube
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200559 @ echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200560 @ echo "#define CONFIG_LITE5200B" >>$(obj)include/config.h
Domen Puncer64b89ae2007-04-16 14:00:13 +0200561 @[ -z "$(findstring _PM_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200562 echo "#define CONFIG_LITE5200B_PM" >>$(obj)include/config.h
Wolfgang Denk315b46a2006-03-17 11:42:53 +0100563 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200564 echo "TEXT_BASE = 0xFF000000" >$(obj)board/icecube/config.tmp
565 @$(MKCONFIG) -n $@ -a IceCube powerpc mpc5xxx icecube
Wolfgang Denk315b46a2006-03-17 11:42:53 +0100566
Stefan Roese531e94c2006-03-04 14:57:03 +0100567mcc200_config \
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200568mcc200_SDRAM_config \
569mcc200_highboot_config \
570mcc200_COM12_config \
571mcc200_COM12_SDRAM_config \
Wolfgang Denk7aa5b452006-08-25 01:38:04 +0200572mcc200_COM12_highboot_config \
573mcc200_COM12_highboot_SDRAM_config \
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200574mcc200_highboot_SDRAM_config \
575prs200_config \
576prs200_DDR_config \
577prs200_highboot_config \
578prs200_highboot_DDR_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200579 @mkdir -p $(obj)include
580 @mkdir -p $(obj)board/mcc200
Wolfgang Denk790dd202006-07-23 22:40:51 +0200581 @[ -z "$(findstring highboot,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200582 echo "TEXT_BASE = 0xFFF00000" >$(obj)board/mcc200/config.tmp
Wolfgang Denk790dd202006-07-23 22:40:51 +0200583 @[ -n "$(findstring _SDRAM,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200584 if [ -n "$(findstring prs200,$@)" ]; \
585 then \
586 if [ -z "$(findstring _DDR,$@)" ];\
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200587 then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200588 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h ;\
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200589 fi; \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200590 fi
Wolfgang Denk790dd202006-07-23 22:40:51 +0200591 @[ -z "$(findstring _SDRAM,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200592 echo "#define CONFIG_MCC200_SDRAM" >>$(obj)include/config.h
Wolfgang Denk6d8fdf62006-08-17 00:36:51 +0200593 @[ -z "$(findstring COM12,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200594 echo "#define CONFIG_CONSOLE_COM12" >>$(obj)include/config.h
Wolfgang Denk472e5c22006-08-24 00:26:42 +0200595 @[ -z "$(findstring prs200,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200596 echo "#define CONFIG_PRS200" >>$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +0200597 @$(MKCONFIG) -n $@ -a mcc200 powerpc mpc5xxx mcc200
Wolfgang Denk07ad17c2006-02-22 00:43:16 +0100598
Wolfgang Denk28d8d702008-07-15 22:22:44 +0200599MVBC_P_config: unconfig
600 @mkdir -p $(obj)include
601 @mkdir -p $(obj)board/mvbc_p
602 @ >$(obj)include/config.h
603 @[ -z "$(findstring MVBC_P,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200604 echo "#define CONFIG_MVBC_P" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200605 @$(MKCONFIG) -n $@ -a $@ powerpc mpc5xxx mvbc_p matrix_vision
Wolfgang Denk28d8d702008-07-15 22:22:44 +0200606
Andre Schwarz3f4bd652010-04-01 21:26:55 +0200607MVSMR_config: unconfig
608 @mkdir -p $(obj)include
609 @mkdir -p $(obj)board/matrix_vision/mvsmr
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200610 @$(MKCONFIG) $@ powerpc mpc5xxx mvsmr matrix_vision
Andre Schwarz3f4bd652010-04-01 21:26:55 +0200611
Jon Smirlbc03df92009-06-14 18:21:28 -0400612pcm030_config \
613pcm030_LOWBOOT_config: unconfig
Wolfgang Denk1b55ec82009-07-19 12:05:15 +0200614 @mkdir -p $(obj)include $(obj)board/phytec/pcm030
Wolfgang Denk4e82ddb2009-07-18 18:00:25 +0200615 @ >$(obj)include/config.h
Jon Smirlbc03df92009-06-14 18:21:28 -0400616 @[ -z "$(findstring LOWBOOT_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200617 echo "TEXT_BASE = 0xFF000000" >$(obj)board/phytec/pcm030/config.tmp
618 @$(MKCONFIG) -n $@ -a pcm030 powerpc mpc5xxx pcm030 phytec
Jon Smirlbc03df92009-06-14 18:21:28 -0400619
wdenkda54bc92004-08-04 21:56:49 +0000620PM520_config \
621PM520_DDR_config \
622PM520_ROMBOOT_config \
623PM520_ROMBOOT_DDR_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200624 @mkdir -p $(obj)include
wdenkda54bc92004-08-04 21:56:49 +0000625 @[ -z "$(findstring DDR,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200626 echo "#define CONFIG_MPC5200_DDR" >>$(obj)include/config.h
wdenkda54bc92004-08-04 21:56:49 +0000627 @[ -z "$(findstring ROMBOOT,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200628 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h
629 @$(MKCONFIG) -n $@ -a PM520 powerpc mpc5xxx pm520
wdenkda54bc92004-08-04 21:56:49 +0000630
Wolfgang Denkc98368a2006-07-19 17:52:30 +0200631TB5200_B_config \
Wolfgang Denkba940932006-07-19 13:50:38 +0200632TB5200_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200633 @mkdir -p $(obj)include
Wolfgang Denkc98368a2006-07-19 17:52:30 +0200634 @[ -z "$(findstring _B,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200635 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +0200636 @$(MKCONFIG) -n $@ -a TB5200 powerpc mpc5xxx tqm5200 tqc
Wolfgang Denkba940932006-07-19 13:50:38 +0200637
wdenk1ebf41e2004-01-02 14:00:00 +0000638MINI5200_config \
639EVAL5200_config \
640TOP5200_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200641 @mkdir -p $(obj)include
642 @ echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +0200643 @$(MKCONFIG) -n $@ -a TOP5200 powerpc mpc5xxx top5200 emk
wdenk1ebf41e2004-01-02 14:00:00 +0000644
wdenkcc3f8a92004-07-11 19:17:20 +0000645Total5200_config \
646Total5200_lowboot_config \
647Total5200_Rev2_config \
648Total5200_Rev2_lowboot_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200649 @mkdir -p $(obj)include
650 @mkdir -p $(obj)board/total5200
wdenkcc3f8a92004-07-11 19:17:20 +0000651 @[ -n "$(findstring Rev,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200652 echo "#define CONFIG_TOTAL5200_REV 1" >>$(obj)include/config.h
wdenkcc3f8a92004-07-11 19:17:20 +0000653 @[ -z "$(findstring Rev2_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200654 echo "#define CONFIG_TOTAL5200_REV 2" >>$(obj)include/config.h
wdenkcc3f8a92004-07-11 19:17:20 +0000655 @[ -z "$(findstring lowboot_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200656 echo "TEXT_BASE = 0xFE000000" >$(obj)board/total5200/config.tmp
657 @$(MKCONFIG) -n $@ -a Total5200 powerpc mpc5xxx total5200
wdenkcc3f8a92004-07-11 19:17:20 +0000658
Wolfgang Denk641e3572006-07-22 01:20:03 +0200659cam5200_config \
Marian Balakowicz4b7e4562007-01-10 00:26:15 +0100660cam5200_niosflash_config \
Wolfgang Denk9018bc92006-08-18 23:27:33 +0200661fo300_config \
Marian Balakowiczbcb0cca2006-08-18 19:14:46 +0200662MiniFAP_config \
Wolfgang Denk99753142006-07-21 11:16:34 +0200663TQM5200S_config \
664TQM5200S_HIGHBOOT_config \
Wolfgang Denk9018bc92006-08-18 23:27:33 +0200665TQM5200_B_config \
666TQM5200_B_HIGHBOOT_config \
667TQM5200_config \
668TQM5200_STK100_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200669 @mkdir -p $(obj)include
Wolfgang Grandeggeree38f682008-06-04 13:52:17 +0200670 @mkdir -p $(obj)board/tqc/tqm5200
Wolfgang Denk641e3572006-07-22 01:20:03 +0200671 @[ -z "$(findstring cam5200,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200672 { echo "#define CONFIG_CAM5200" >>$(obj)include/config.h ; \
673 echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
674 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
Wolfgang Denk99753142006-07-21 11:16:34 +0200675 }
Marian Balakowicz4b7e4562007-01-10 00:26:15 +0100676 @[ -z "$(findstring niosflash,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200677 echo "#define CONFIG_CAM5200_NIOSFLASH" >>$(obj)include/config.h
Marian Balakowiczbcb0cca2006-08-18 19:14:46 +0200678 @[ -z "$(findstring fo300,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200679 echo "#define CONFIG_FO300" >>$(obj)include/config.h
Wolfgang Denk3f2f9dd2006-06-16 16:11:34 +0200680 @[ -z "$(findstring MiniFAP,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200681 echo "#define CONFIG_MINIFAP" >>$(obj)include/config.h
Wolfgang Denk3f2f9dd2006-06-16 16:11:34 +0200682 @[ -z "$(findstring STK100,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200683 echo "#define CONFIG_STK52XX_REV100" >>$(obj)include/config.h
Wolfgang Denk99753142006-07-21 11:16:34 +0200684 @[ -z "$(findstring TQM5200_B,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200685 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h
Wolfgang Denk99753142006-07-21 11:16:34 +0200686 @[ -z "$(findstring TQM5200S,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200687 { echo "#define CONFIG_TQM5200S" >>$(obj)include/config.h ; \
688 echo "#define CONFIG_TQM5200_B" >>$(obj)include/config.h ; \
Wolfgang Denkc98368a2006-07-19 17:52:30 +0200689 }
Wolfgang Denk5591d9e2006-07-19 18:01:38 +0200690 @[ -z "$(findstring HIGHBOOT,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200691 echo "TEXT_BASE = 0xFFF00000" >$(obj)board/tqm5200/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +0200692 @$(MKCONFIG) -n $@ -a TQM5200 powerpc mpc5xxx tqm5200 tqc
Wolfgang Denk28d8d702008-07-15 22:22:44 +0200693
wdenk21136db2003-07-16 21:53:01 +0000694#########################################################################
Rafal Jaworowskid3a02c32007-07-27 14:43:59 +0200695## MPC512x Systems
696#########################################################################
Wolfgang Denk28d8d702008-07-15 22:22:44 +0200697
Wolfgang Denkbbcbb322009-05-16 10:47:41 +0200698mpc5121ads_config \
699mpc5121ads_rev2_config \
Martha Marxfd449ab2008-05-29 14:23:25 -0400700 : unconfig
Wolfgang Denkf10a5de2008-03-09 00:06:09 +0100701 @mkdir -p $(obj)include
Martha Marxfd449ab2008-05-29 14:23:25 -0400702 @if [ "$(findstring rev2,$@)" ] ; then \
703 echo "#define CONFIG_ADS5121_REV2 1" > $(obj)include/config.h; \
John Rigbyd1228c92008-02-26 09:38:14 -0700704 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +0200705 @$(MKCONFIG) -n $@ -a mpc5121ads powerpc mpc512x mpc5121ads freescale
wdenk9f664dd2004-06-09 21:50:45 +0000706
wdenkec5dc0d2004-07-09 22:51:01 +0000707#########################################################################
wdenk9f664dd2004-06-09 21:50:45 +0000708## MPC8xx Systems
709#########################################################################
710
wdenk7ebf7442002-11-02 23:17:16 +0000711Adder87x_config \
Wolfgang Denk19b68c42008-03-04 14:58:31 +0100712AdderII_config \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200713AdderUSB_config \
714Adder_config \
wdenk7ebf7442002-11-02 23:17:16 +0000715 : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200716 @mkdir -p $(obj)include
wdenk7ebf7442002-11-02 23:17:16 +0000717 $(if $(findstring AdderII,$@), \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200718 @echo "#define CONFIG_MPC852T" > $(obj)include/config.h)
719 @$(MKCONFIG) -n $@ -a Adder powerpc mpc8xx adder
Wolfgang Denk3f0137b2006-06-14 17:45:53 +0200720
Wolfgang Denk19b68c42008-03-04 14:58:31 +0100721ADS860_config \
722FADS823_config \
wdenkad276f22004-01-04 16:28:35 +0000723FADS850SAR_config \
724MPC86xADS_config \
wdenka7556b22004-06-06 21:35:06 +0000725MPC885ADS_config \
wdenkad276f22004-01-04 16:28:35 +0000726FADS860T_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200727 @$(MKCONFIG) -n $@ $@ powerpc mpc8xx fads
wdenk7ebf7442002-11-02 23:17:16 +0000728
wdenk541a76d2003-05-03 15:50:43 +0000729GEN860T_SC_config \
wdenk7ebf7442002-11-02 23:17:16 +0000730GEN860T_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200731 @mkdir -p $(obj)include
wdenk541a76d2003-05-03 15:50:43 +0000732 @[ -z "$(findstring _SC,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200733 echo "#define CONFIG_SC" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200734 @$(MKCONFIG) -n $@ -a GEN860T powerpc mpc8xx gen860t
wdenk7ebf7442002-11-02 23:17:16 +0000735
wdenk7ebf7442002-11-02 23:17:16 +0000736ICU862_100MHz_config \
737ICU862_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200738 @mkdir -p $(obj)include
wdenk7ebf7442002-11-02 23:17:16 +0000739 @[ -z "$(findstring _100MHz,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200740 echo "#define CONFIG_100MHz" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200741 @$(MKCONFIG) -n $@ -a ICU862 powerpc mpc8xx icu862
wdenk7ebf7442002-11-02 23:17:16 +0000742
wdenk7ebf7442002-11-02 23:17:16 +0000743IVML24_256_config \
744IVML24_128_config \
745IVML24_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200746 @mkdir -p $(obj)include
wdenk7ebf7442002-11-02 23:17:16 +0000747 @[ -z "$(findstring IVML24_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200748 echo "#define CONFIG_IVML24_16M" >>$(obj)include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000749 @[ -z "$(findstring IVML24_128_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200750 echo "#define CONFIG_IVML24_32M" >>$(obj)include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000751 @[ -z "$(findstring IVML24_256_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200752 echo "#define CONFIG_IVML24_64M" >>$(obj)include/config.h
753 @$(MKCONFIG) -n $@ -a IVML24 powerpc mpc8xx ivm
wdenk7ebf7442002-11-02 23:17:16 +0000754
755IVMS8_256_config \
756IVMS8_128_config \
757IVMS8_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200758 @mkdir -p $(obj)include
wdenk7ebf7442002-11-02 23:17:16 +0000759 @[ -z "$(findstring IVMS8_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200760 echo "#define CONFIG_IVMS8_16M" >>$(obj)include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000761 @[ -z "$(findstring IVMS8_128_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200762 echo "#define CONFIG_IVMS8_32M" >>$(obj)include/config.h
wdenk7ebf7442002-11-02 23:17:16 +0000763 @[ -z "$(findstring IVMS8_256_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200764 echo "#define CONFIG_IVMS8_64M" >>$(obj)include/config.h
765 @$(MKCONFIG) -n $@ -a IVMS8 powerpc mpc8xx ivm
wdenk7ebf7442002-11-02 23:17:16 +0000766
wdenk7ebf7442002-11-02 23:17:16 +0000767MBX_config \
768MBX860T_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200769 @$(MKCONFIG) -n $@ $@ powerpc mpc8xx mbx8xx
wdenk7ebf7442002-11-02 23:17:16 +0000770
wdenk70764a32003-06-26 22:04:09 +0000771NETVIA_V2_config \
wdenk7ebf7442002-11-02 23:17:16 +0000772NETVIA_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200773 @mkdir -p $(obj)include
wdenk70764a32003-06-26 22:04:09 +0000774 @[ -z "$(findstring NETVIA_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200775 echo "#define CONFIG_NETVIA_VERSION 1" >>$(obj)include/config.h
wdenk70764a32003-06-26 22:04:09 +0000776 @[ -z "$(findstring NETVIA_V2_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200777 echo "#define CONFIG_NETVIA_VERSION 2" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200778 @$(MKCONFIG) -n $@ -a NETVIA powerpc mpc8xx netvia
wdenk6203e402004-04-18 10:13:26 +0000779
780NETPHONE_V2_config \
wdenk3902d702004-04-15 18:22:41 +0000781NETPHONE_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200782 @mkdir -p $(obj)include
wdenk6203e402004-04-18 10:13:26 +0000783 @[ -z "$(findstring NETPHONE_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200784 echo "#define CONFIG_NETPHONE_VERSION 1" >>$(obj)include/config.h
wdenk6203e402004-04-18 10:13:26 +0000785 @[ -z "$(findstring NETPHONE_V2_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200786 echo "#define CONFIG_NETPHONE_VERSION 2" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200787 @$(MKCONFIG) -n $@ -a NETPHONE powerpc mpc8xx netphone
wdenk3902d702004-04-15 18:22:41 +0000788
wdenkc4e854f2004-06-07 23:46:25 +0000789NETTA_ISDN_6412_SWAPHOOK_config \
790NETTA_ISDN_SWAPHOOK_config \
791NETTA_6412_SWAPHOOK_config \
792NETTA_SWAPHOOK_config \
793NETTA_ISDN_6412_config \
wdenk3902d702004-04-15 18:22:41 +0000794NETTA_ISDN_config \
wdenkc4e854f2004-06-07 23:46:25 +0000795NETTA_6412_config \
wdenk3902d702004-04-15 18:22:41 +0000796NETTA_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200797 @mkdir -p $(obj)include
wdenkc4e854f2004-06-07 23:46:25 +0000798 @[ -z "$(findstring ISDN_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200799 echo "#define CONFIG_NETTA_ISDN 1" >>$(obj)include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000800 @[ -n "$(findstring ISDN_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200801 echo "#undef CONFIG_NETTA_ISDN" >>$(obj)include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000802 @[ -z "$(findstring 6412_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200803 echo "#define CONFIG_NETTA_6412 1" >>$(obj)include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000804 @[ -n "$(findstring 6412_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200805 echo "#undef CONFIG_NETTA_6412" >>$(obj)include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000806 @[ -z "$(findstring SWAPHOOK_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200807 echo "#define CONFIG_NETTA_SWAPHOOK 1" >>$(obj)include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000808 @[ -n "$(findstring SWAPHOOK_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200809 echo "#undef CONFIG_NETTA_SWAPHOOK" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200810 @$(MKCONFIG) -n $@ -a NETTA powerpc mpc8xx netta
wdenkc4e854f2004-06-07 23:46:25 +0000811
812NETTA2_V2_config \
813NETTA2_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200814 @mkdir -p $(obj)include
wdenkc4e854f2004-06-07 23:46:25 +0000815 @[ -z "$(findstring NETTA2_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200816 echo "#define CONFIG_NETTA2_VERSION 1" >>$(obj)include/config.h
wdenkc4e854f2004-06-07 23:46:25 +0000817 @[ -z "$(findstring NETTA2_V2_config,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200818 echo "#define CONFIG_NETTA2_VERSION 2" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200819 @$(MKCONFIG) -n $@ -a NETTA2 powerpc mpc8xx netta2
wdenkc4e854f2004-06-07 23:46:25 +0000820
dzu@denx.de8f6fedd2006-04-19 11:52:46 +0200821NC650_Rev1_config \
822NC650_Rev2_config \
823CP850_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200824 @mkdir -p $(obj)include
dzu@denx.de8f6fedd2006-04-19 11:52:46 +0200825 @[ -z "$(findstring CP850,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200826 { echo "#define CONFIG_CP850 1" >>$(obj)include/config.h ; \
827 echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
828 }
dzu@denx.de8f6fedd2006-04-19 11:52:46 +0200829 @[ -z "$(findstring Rev1,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200830 { echo "#define CONFIG_IDS852_REV1 1" >>$(obj)include/config.h ; \
831 }
dzu@denx.de8f6fedd2006-04-19 11:52:46 +0200832 @[ -z "$(findstring Rev2,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200833 { echo "#define CONFIG_IDS852_REV2 1" >>$(obj)include/config.h ; \
834 }
835 @$(MKCONFIG) -n $@ -a NC650 powerpc mpc8xx nc650
wdenk0bbcbd22004-08-28 22:45:57 +0000836
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +0100837RPXlite_DW_64_config \
838RPXlite_DW_LCD_config \
839RPXlite_DW_64_LCD_config \
wdenkec432742004-06-09 21:04:48 +0000840RPXlite_DW_NVRAM_config \
Wolfgang Denk19b68c42008-03-04 14:58:31 +0100841RPXlite_DW_NVRAM_64_config \
wdenkec432742004-06-09 21:04:48 +0000842RPXlite_DW_NVRAM_LCD_config \
Wolfgang Denk19b68c42008-03-04 14:58:31 +0100843RPXlite_DW_NVRAM_64_LCD_config \
Wolfgang Denkba930932007-10-21 01:01:17 +0200844RPXlite_DW_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200845 @mkdir -p $(obj)include
wdenkec432742004-06-09 21:04:48 +0000846 @[ -z "$(findstring _64,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200847 echo "#define RPXlite_64MHz" >>$(obj)include/config.h
wdenkec432742004-06-09 21:04:48 +0000848 @[ -z "$(findstring _LCD,$@)" ] || \
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +0100849 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200850 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
wdenkec432742004-06-09 21:04:48 +0000851 }
852 @[ -z "$(findstring _NVRAM,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200853 echo "#define CONFIG_ENV_IS_IN_NVRAM" >>$(obj)include/config.h
854 @$(MKCONFIG) -n $@ -a RPXlite_DW powerpc mpc8xx RPXlite_dw
wdenkec432742004-06-09 21:04:48 +0000855
wdenk7ebf7442002-11-02 23:17:16 +0000856RRvision_LCD_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200857 @mkdir -p $(obj)include
858 @echo "#define CONFIG_LCD" >$(obj)include/config.h
859 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +0200860 @$(MKCONFIG) -a RRvision powerpc mpc8xx RRvision
wdenk7ebf7442002-11-02 23:17:16 +0000861
wdenk7ebf7442002-11-02 23:17:16 +0000862SPD823TS_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200863 @$(MKCONFIG) $@ powerpc mpc8xx spd8xx
wdenk7ebf7442002-11-02 23:17:16 +0000864
865SXNI855T_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200866 @$(MKCONFIG) $@ powerpc mpc8xx sixnet
wdenk7ebf7442002-11-02 23:17:16 +0000867
868# Play some tricks for configuration selection
wdenkc78bf132004-04-24 23:23:30 +0000869# Only 855 and 860 boards may come with FEC
870# and only 823 boards may have LCD support
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200871xtract_8xx = $(subst _LCD,,$1)
wdenk7ebf7442002-11-02 23:17:16 +0000872
873FPS850L_config \
wdenk384ae022002-11-05 00:17:55 +0000874FPS860L_config \
wdenk69141282003-07-07 20:07:54 +0000875NSCU_config \
wdenk7ebf7442002-11-02 23:17:16 +0000876TQM823L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000877TQM823L_LCD_config \
wdenk7ebf7442002-11-02 23:17:16 +0000878TQM850L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000879TQM855L_config \
wdenk7ebf7442002-11-02 23:17:16 +0000880TQM860L_config \
wdenk6bd14892003-04-10 11:18:18 +0000881TQM862L_config \
wdenkfb229ae2003-08-07 22:18:11 +0000882TQM823M_config \
wdenkfb229ae2003-08-07 22:18:11 +0000883TQM850M_config \
wdenk69141282003-07-07 20:07:54 +0000884TQM855M_config \
wdenk69141282003-07-07 20:07:54 +0000885TQM860M_config \
wdenk69141282003-07-07 20:07:54 +0000886TQM862M_config \
Wolfgang Denk67ffef32006-05-12 16:15:46 +0200887TQM866M_config \
Markus Klotzbuecher13af9f02006-07-12 15:26:01 +0200888TQM885D_config \
Guennadi Liakhovetski7a90bb92008-01-10 17:59:07 +0100889TK885D_config \
Wolfgang Denk67ffef32006-05-12 16:15:46 +0200890virtlab2_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200891 @mkdir -p $(obj)include
wdenk7ebf7442002-11-02 23:17:16 +0000892 @[ -z "$(findstring _LCD,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200893 { echo "#define CONFIG_LCD" >>$(obj)include/config.h ; \
894 echo "#define CONFIG_NEC_NL6448BC20" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +0000895 }
Wolfgang Denk625bd332010-05-27 23:18:33 +0200896 @$(MKCONFIG) -n $@ -a $(call xtract_8xx,$@) powerpc mpc8xx tqm8xx tqc
wdenk7ebf7442002-11-02 23:17:16 +0000897
898TTTech_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200899 @mkdir -p $(obj)include
900 @echo "#define CONFIG_LCD" >$(obj)include/config.h
901 @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +0200902 @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc
wdenk7ebf7442002-11-02 23:17:16 +0000903
wdenk2dad91b2003-01-13 23:54:46 +0000904v37_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200905 @mkdir -p $(obj)include
906 @echo "#define CONFIG_LCD" >$(obj)include/config.h
907 @echo "#define CONFIG_SHARP_LQ084V1DG21" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200908 @$(MKCONFIG) $@ powerpc mpc8xx v37
wdenk2dad91b2003-01-13 23:54:46 +0000909
dzu69438f62003-09-25 22:32:40 +0000910wtk_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200911 @mkdir -p $(obj)include
912 @echo "#define CONFIG_LCD" >$(obj)include/config.h
913 @echo "#define CONFIG_SHARP_LQ065T9DR51U" >>$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +0200914 @$(MKCONFIG) -a TQM823L powerpc mpc8xx tqm8xx tqc
dzu69438f62003-09-25 22:32:40 +0000915
wdenk7ebf7442002-11-02 23:17:16 +0000916#########################################################################
917## PPC4xx Systems
918#########################################################################
919
Wolfgang Denke24ec722010-05-27 23:18:35 +0200920acadia_nand_config: unconfig
921 @mkdir -p $(obj)include $(obj)board/amcc/acadia
922 @mkdir -p $(obj)nand_spl/board/amcc/acadia
923 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
924 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/acadia/config.tmp
925 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
926 @$(MKCONFIG) -n $@ -a acadia powerpc ppc4xx acadia amcc
Stefan Roese3e1f1b32005-08-01 16:49:12 +0200927
Stefan Roese42743512007-06-01 15:27:11 +0200928bamboo_nand_config: unconfig
Wolfgang Denk6b99a462007-08-02 10:11:18 +0200929 @mkdir -p $(obj)include $(obj)board/amcc/bamboo
930 @mkdir -p $(obj)nand_spl/board/amcc/bamboo
Stefan Roese42743512007-06-01 15:27:11 +0200931 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Stefan Roese42743512007-06-01 15:27:11 +0200932 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/bamboo/config.tmp
933 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200934 @$(MKCONFIG) -n $@ -a bamboo powerpc ppc4xx bamboo amcc
Stefan Roese42743512007-06-01 15:27:11 +0200935
Adam Graham4900ed22008-10-08 10:12:53 -0700936# Arches, Canyonlands & Glacier use different U-Boot images
937arches_config \
Stefan Roese52df4192008-03-19 16:20:49 +0100938canyonlands_config \
939glacier_config: unconfig
940 @mkdir -p $(obj)include
941 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
942 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +0200943 @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc
Stefan Roese075f7a22008-03-11 16:53:00 +0100944
Stefan Roese216f92e2008-04-08 10:33:27 +0200945canyonlands_nand_config \
946glacier_nand_config: unconfig
Stefan Roese0b86db72008-03-03 17:27:02 +0100947 @mkdir -p $(obj)include $(obj)board/amcc/canyonlands
948 @mkdir -p $(obj)nand_spl/board/amcc/canyonlands
949 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Stefan Roese216f92e2008-04-08 10:33:27 +0200950 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_nand_config=)) | \
951 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
Stefan Roese0b86db72008-03-03 17:27:02 +0100952 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/canyonlands/config.tmp
953 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denk625bd332010-05-27 23:18:33 +0200954 @$(MKCONFIG) -n $@ -a canyonlands powerpc ppc4xx canyonlands amcc
Stefan Roese0b86db72008-03-03 17:27:02 +0100955
wdenk9e7130b2004-09-09 17:44:35 +0000956CATcenter_config \
957CATcenter_25_config \
958CATcenter_33_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +0200959 @mkdir -p $(obj)include
Wolfgang Denk625bd332010-05-27 23:18:33 +0200960 @echo "/* CATcenter uses PPChameleon Model ME */" > $(obj)include/config.h
961 @echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >> $(obj)include/config.h
wdenk9e7130b2004-09-09 17:44:35 +0000962 @[ -z "$(findstring _25,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200963 echo "#define CONFIG_PPCHAMELEON_CLK_25" >> $(obj)include/config.h
wdenk9e7130b2004-09-09 17:44:35 +0000964 @[ -z "$(findstring _33,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +0200965 echo "#define CONFIG_PPCHAMELEON_CLK_33" >> $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200966 @$(MKCONFIG) -n $@ -a CATcenter powerpc ppc4xx PPChameleonEVB dave
wdenkbb33bab2004-05-13 13:23:58 +0000967
Matthias Fuchs06e5fda2008-12-10 14:41:25 +0100968CPCI405_config \
Matthias Fuchs5afb76b2008-09-05 15:34:02 +0200969CPCI4052_config \
stroese05b88912004-12-16 18:44:40 +0000970CPCI405DT_config \
stroesebfcc82b2003-05-23 11:41:44 +0000971CPCI405AB_config: unconfig
Matthias Fuchs182c4cf2008-09-09 09:50:24 +0200972 @mkdir -p $(obj)board/esd/cpci405
Wolfgang Denka97b6ab2010-05-27 23:18:34 +0200973 @$(MKCONFIG) -n $@ $@ powerpc ppc4xx cpci405 esd
wdenk7ebf7442002-11-02 23:17:16 +0000974
Georg Schardt3ce59a12008-10-24 13:51:52 +0200975fx12mm_flash_config: unconfig
976 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
977 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
978 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
979 > $(obj)board/avnet/fx12mm/config.tmp
980 @echo "TEXT_BASE := 0xFFCB0000" \
981 >> $(obj)board/avnet/fx12mm/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +0200982 @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet
Georg Schardt3ce59a12008-10-24 13:51:52 +0200983
984fx12mm_config: unconfig
985 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
986 @mkdir -p $(obj)include $(obj)board/avnet/fx12mm
987 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
988 > $(obj)board/avnet/fx12mm/config.tmp
989 @echo "TEXT_BASE := 0x03000000" \
990 >> $(obj)board/avnet/fx12mm/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +0200991 @$(MKCONFIG) fx12mm powerpc ppc4xx fx12mm avnet
Georg Schardt3ce59a12008-10-24 13:51:52 +0200992
Dirk Eibach62dbcba2009-09-09 12:36:07 +0200993# Compact-Center(codename intip) & DevCon-Center use different U-Boot images
994intip_config \
995devconcenter_config: unconfig
996 @mkdir -p $(obj)include
997 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
998 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +0200999 @$(MKCONFIG) -n $@ -a intip powerpc ppc4xx intip gdsys
Dirk Eibach62dbcba2009-09-09 12:36:07 +02001000
Wolfgang Denkf2c7ea82010-05-27 23:18:36 +02001001hcu4_config \
1002hcu5_config \
1003mcu25_config: unconfig
1004 @mkdir -p $(obj)board/netstal/common
1005 @$(MKCONFIG) $@ powerpc ppc4xx $(call lcname,$@) netstal
1006
Stefan Roese15668052007-10-23 10:10:08 +02001007# Kilauea & Haleakala images are identical (recognized via PVR)
1008kilauea_config \
1009haleakala_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001010 @$(MKCONFIG) -n $@ kilauea powerpc ppc4xx kilauea amcc
Stefan Roese7de9fc72007-10-05 17:11:30 +02001011
Stefan Roese720c5852007-11-03 12:08:28 +01001012kilauea_nand_config \
1013haleakala_nand_config: unconfig
1014 @mkdir -p $(obj)include $(obj)board/amcc/kilauea
1015 @mkdir -p $(obj)nand_spl/board/amcc/kilauea
1016 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Stefan Roese720c5852007-11-03 12:08:28 +01001017 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/kilauea/config.tmp
1018 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denk625bd332010-05-27 23:18:33 +02001019 @$(MKCONFIG) -n $@ -a kilauea powerpc ppc4xx kilauea amcc
Stefan Roese720c5852007-11-03 12:08:28 +01001020
wdenk634d2f72004-04-15 23:14:49 +00001021MIP405T_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001022 @mkdir -p $(obj)include
1023 @echo "#define CONFIG_MIP405T" >$(obj)include/config.h
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01001024 @$(XECHO) "Enable subset config for MIP405T"
Stefan Roese88fbf932010-04-15 16:07:28 +02001025 @$(MKCONFIG) -a MIP405 powerpc ppc4xx mip405 mpl
wdenke39c2842003-06-04 15:05:30 +00001026
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001027ml507_flash_config: unconfig
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001028 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
Ricardo Ribalda Delgado2a019eb2008-07-21 20:30:07 +02001029 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001030 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1031 > $(obj)board/xilinx/ml507/config.tmp
1032 @echo "TEXT_BASE := 0xFE360000" \
1033 >> $(obj)board/xilinx/ml507/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +02001034 @$(MKCONFIG) ml507 powerpc ppc4xx ml507 xilinx
Ricardo Ribalda Delgado2a019eb2008-07-21 20:30:07 +02001035
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001036ml507_config: unconfig
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001037 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
Ricardo Ribalda Delgado2a019eb2008-07-21 20:30:07 +02001038 @mkdir -p $(obj)include $(obj)board/xilinx/ml507
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001039 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1040 > $(obj)board/xilinx/ml507/config.tmp
1041 @echo "TEXT_BASE := 0x04000000" \
1042 >> $(obj)board/xilinx/ml507/config.tmp
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001043 @$(MKCONFIG) $@ powerpc ppc4xx ml507 xilinx
Ricardo Ribalda Delgadoa8822a72008-07-17 12:47:09 +02001044
wdenk7ebf7442002-11-02 23:17:16 +00001045OCRTC_config \
1046ORSG_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001047 @$(MKCONFIG) -n $@ $@ powerpc ppc4xx ocrtc esd
wdenk7ebf7442002-11-02 23:17:16 +00001048
wdenk7ac16102004-08-01 22:48:16 +00001049PPChameleonEVB_config \
wdenk99874b42004-07-01 21:40:08 +00001050PPChameleonEVB_BA_25_config \
1051PPChameleonEVB_ME_25_config \
1052PPChameleonEVB_HI_25_config \
1053PPChameleonEVB_BA_33_config \
1054PPChameleonEVB_ME_33_config \
1055PPChameleonEVB_HI_33_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001056 @mkdir -p $(obj)include
wdenk9e7130b2004-09-09 17:44:35 +00001057 @[ -z "$(findstring EVB_BA,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001058 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 0" >>$(obj)include/config.h
wdenk9e7130b2004-09-09 17:44:35 +00001059 @[ -z "$(findstring EVB_ME,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001060 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 1" >>$(obj)include/config.h
wdenk9e7130b2004-09-09 17:44:35 +00001061 @[ -z "$(findstring EVB_HI,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001062 echo "#define CONFIG_PPCHAMELEON_MODULE_MODEL 2" >>$(obj)include/config.h
wdenk99874b42004-07-01 21:40:08 +00001063 @[ -z "$(findstring _25,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001064 echo "#define CONFIG_PPCHAMELEON_CLK_25" >>$(obj)include/config.h
wdenk99874b42004-07-01 21:40:08 +00001065 @[ -z "$(findstring _33,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001066 echo "#define CONFIG_PPCHAMELEON_CLK_33" >>$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001067 @$(MKCONFIG) -n $@ -a PPChameleonEVB powerpc ppc4xx PPChameleonEVB dave
wdenk232fe0b2003-09-02 22:48:03 +00001068
Stefan Roese374f38b2007-03-28 15:03:16 +02001069sequoia_config \
1070rainier_config: unconfig
1071 @mkdir -p $(obj)include
1072 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1073 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +02001074 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
Stefan Roese42fbddd2006-09-07 11:51:23 +02001075
Stefan Roese374f38b2007-03-28 15:03:16 +02001076sequoia_nand_config \
1077rainier_nand_config: unconfig
Wolfgang Denk6b99a462007-08-02 10:11:18 +02001078 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1079 @mkdir -p $(obj)nand_spl/board/amcc/sequoia
Marian Balakowicz814ed842006-10-23 22:17:05 +02001080 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Stefan Roese374f38b2007-03-28 15:03:16 +02001081 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1082 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
Marian Balakowicz814ed842006-10-23 22:17:05 +02001083 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1084 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denk625bd332010-05-27 23:18:33 +02001085 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
wdenkd3341052005-01-09 23:48:14 +00001086
Stefan Roesec20ef322009-05-11 13:46:14 +02001087sequoia_ramboot_config \
1088rainier_ramboot_config: unconfig
1089 @mkdir -p $(obj)include $(obj)board/amcc/sequoia
1090 @echo "#define CONFIG_SYS_RAMBOOT" > $(obj)include/config.h
1091 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1092 tr '[:lower:]' '[:upper:]')" >> $(obj)include/config.h
Stefan Roesec20ef322009-05-11 13:46:14 +02001093 @echo "TEXT_BASE = 0x01000000" > $(obj)board/amcc/sequoia/config.tmp
1094 @echo "LDSCRIPT = board/amcc/sequoia/u-boot-ram.lds" >> \
1095 $(obj)board/amcc/sequoia/config.tmp
Wolfgang Denk625bd332010-05-27 23:18:33 +02001096 @$(MKCONFIG) -n $@ -a sequoia powerpc ppc4xx sequoia amcc
Stefan Roesec20ef322009-05-11 13:46:14 +02001097
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001098v5fx30teval_config: unconfig
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001099 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001100 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001101 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1102 > $(obj)board/avnet/v5fx30teval/config.tmp
1103 @echo "TEXT_BASE := 0x03000000" \
1104 >> $(obj)board/avnet/v5fx30teval/config.tmp
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001105 @$(MKCONFIG) $@ powerpc ppc4xx v5fx30teval avnet
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001106
1107v5fx30teval_flash_config: unconfig
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001108 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001109 @mkdir -p $(obj)include $(obj)board/avnet/v5fx30teval
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001110 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
Ricardo Ribalda Delgado162458a2008-09-11 19:41:25 -04001111 > $(obj)board/avnet/v5fx30teval/config.tmp
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001112 @echo "TEXT_BASE := 0xFF1C0000" \
Ricardo Ribalda Delgado162458a2008-09-11 19:41:25 -04001113 >> $(obj)board/avnet/v5fx30teval/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +02001114 @$(MKCONFIG) v5fx30teval powerpc ppc4xx v5fx30teval avnet
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001115
wdenk7ebf7442002-11-02 23:17:16 +00001116W7OLMC_config \
1117W7OLMG_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001118 @$(MKCONFIG) $@ powerpc ppc4xx w7o
wdenk7ebf7442002-11-02 23:17:16 +00001119
Stefan Roese374f38b2007-03-28 15:03:16 +02001120# Walnut & Sycamore images are identical (recognized via PVR)
1121walnut_config \
1122sycamore_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001123 @$(MKCONFIG) -n $@ walnut powerpc ppc4xx walnut amcc
wdenk7ebf7442002-11-02 23:17:16 +00001124
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +02001125xilinx-ppc405-generic_flash_config: unconfig
1126 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1127 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-rom.lds"\
1128 > $(obj)board/xilinx/ppc405-generic/config.tmp
1129 @echo "TEXT_BASE := 0xFE360000" \
1130 >> $(obj)board/xilinx/ppc405-generic/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +02001131 @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +02001132
1133xilinx-ppc405-generic_config: unconfig
1134 @mkdir -p $(obj)include $(obj)board/xilinx/ppc405-generic
1135 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc405-generic/u-boot-ram.lds"\
1136 > $(obj)board/xilinx/ppc405-generic/config.tmp
1137 @echo "TEXT_BASE := 0x04000000" \
1138 >> $(obj)board/xilinx/ppc405-generic/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +02001139 @$(MKCONFIG) xilinx-ppc405-generic powerpc ppc4xx ppc405-generic xilinx
Ricardo Ribalda Delgado78ea77e2008-10-21 18:29:46 +02001140
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001141xilinx-ppc440-generic_flash_config: unconfig
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001142 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1143 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-rom.lds"\
1144 > $(obj)board/xilinx/ppc440-generic/config.tmp
1145 @echo "TEXT_BASE := 0xFE360000" \
1146 >> $(obj)board/xilinx/ppc440-generic/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +02001147 @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001148
1149xilinx-ppc440-generic_config: unconfig
Ricardo Ribalda Delgado184ce1c2008-09-09 10:00:33 -04001150 @mkdir -p $(obj)include $(obj)board/xilinx/ppc440-generic
1151 @echo "LDSCRIPT:=$(SRCTREE)/board/xilinx/ppc440-generic/u-boot-ram.lds"\
1152 > $(obj)board/xilinx/ppc440-generic/config.tmp
1153 @echo "TEXT_BASE := 0x04000000" \
1154 >> $(obj)board/xilinx/ppc440-generic/config.tmp
Stefan Roese88fbf932010-04-15 16:07:28 +02001155 @$(MKCONFIG) xilinx-ppc440-generic powerpc ppc4xx ppc440-generic xilinx
Ricardo Ribalda Delgadof84496a2008-09-01 13:09:39 -04001156
Stefan Roese374f38b2007-03-28 15:03:16 +02001157yosemite_config \
1158yellowstone_config: unconfig
Stefan Roeseb1669da2007-01-30 17:04:19 +01001159 @mkdir -p $(obj)include
Stefan Roese374f38b2007-03-28 15:03:16 +02001160 @echo "#define CONFIG_$$(echo $(subst ,,$(@:_config=)) | \
1161 tr '[:lower:]' '[:upper:]')" >$(obj)include/config.h
Stefan Roese88fbf932010-04-15 16:07:28 +02001162 @$(MKCONFIG) -n $@ -a yosemite powerpc ppc4xx yosemite amcc
Stefan Roese3e1f1b32005-08-01 16:49:12 +02001163
wdenk7ebf7442002-11-02 23:17:16 +00001164#########################################################################
1165## MPC824x Systems
1166#########################################################################
wdenkef5fe752003-03-12 10:41:04 +00001167
Wolfgang Denke24ec722010-05-27 23:18:35 +02001168eXalion_config: unconfig
1169 @$(MKCONFIG) $(@:_config=) powerpc mpc824x eXalion
wdenk7ebf7442002-11-02 23:17:16 +00001170
wdenkef5fe752003-03-12 10:41:04 +00001171CPC45_config \
1172CPC45_ROMBOOT_config: unconfig
Wolfgang Denk625bd332010-05-27 23:18:33 +02001173 @mkdir -p $(obj)include ; \
wdenkef5fe752003-03-12 10:41:04 +00001174 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001175 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \
wdenkef5fe752003-03-12 10:41:04 +00001176 else \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001177 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \
wdenkef5fe752003-03-12 10:41:04 +00001178 fi; \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001179 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk;
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001180 @$(MKCONFIG) -n $@ CPC45 powerpc mpc824x cpc45
wdenkef5fe752003-03-12 10:41:04 +00001181
Guennadi Liakhovetski40c26b22008-03-31 01:32:15 +02001182# HDLAN is broken ATM. Should be fixed as soon as hardware is available and as
1183# time permits.
1184#linkstation_HDLAN_config \
1185# Remove this line when HDLAN is fixed
1186linkstation_HGLAN_config: unconfig
1187 @mkdir -p $(obj)include
1188 @case $@ in \
1189 *HGLAN*) echo "#define CONFIG_HGLAN 1" >$(obj)include/config.h; ;; \
1190 *HDLAN*) echo "#define CONFIG_HLAN 1" >$(obj)include/config.h; ;; \
1191 esac
Stefan Roese88fbf932010-04-15 16:07:28 +02001192 @$(MKCONFIG) -n $@ -a linkstation powerpc mpc824x linkstation
Guennadi Liakhovetski40c26b22008-03-31 01:32:15 +02001193
wdenk7ebf7442002-11-02 23:17:16 +00001194Sandpoint8240_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001195 @$(MKCONFIG) $@ powerpc mpc824x sandpoint
wdenk7ebf7442002-11-02 23:17:16 +00001196
1197Sandpoint8245_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001198 @$(MKCONFIG) $@ powerpc mpc824x sandpoint
wdenk7ebf7442002-11-02 23:17:16 +00001199
wdenk7ebf7442002-11-02 23:17:16 +00001200#########################################################################
1201## MPC8260 Systems
1202#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001203
1204cogent_mpc8260_config: unconfig
Wolfgang Denke24ec722010-05-27 23:18:35 +02001205 @$(MKCONFIG) $(@:_config=) powerpc mpc8260 cogent
wdenk7ebf7442002-11-02 23:17:16 +00001206
1207CPU86_config \
1208CPU86_ROMBOOT_config: unconfig
Wolfgang Denk625bd332010-05-27 23:18:33 +02001209 @mkdir -p $(obj)include ; \
wdenk7ebf7442002-11-02 23:17:16 +00001210 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001211 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \
wdenk7ebf7442002-11-02 23:17:16 +00001212 else \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001213 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \
wdenk7ebf7442002-11-02 23:17:16 +00001214 fi; \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001215 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk;
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001216 @$(MKCONFIG) -n $@ CPU86 powerpc mpc8260 cpu86
wdenk7ebf7442002-11-02 23:17:16 +00001217
wdenk6d3c6d12005-04-03 22:35:21 +00001218CPU87_config \
1219CPU87_ROMBOOT_config: unconfig
Wolfgang Denk625bd332010-05-27 23:18:33 +02001220 @mkdir -p $(obj)include ; \
wdenk6d3c6d12005-04-03 22:35:21 +00001221 if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001222 echo "CONFIG_BOOT_ROM = y" >> $(obj)include/config.mk ; \
wdenk6d3c6d12005-04-03 22:35:21 +00001223 else \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001224 echo "CONFIG_BOOT_ROM = n" >> $(obj)include/config.mk ; \
wdenk6d3c6d12005-04-03 22:35:21 +00001225 fi; \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001226 echo "export CONFIG_BOOT_ROM" >> $(obj)include/config.mk;
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001227 @$(MKCONFIG) -n $@ CPU87 powerpc mpc8260 cpu87
wdenk6d3c6d12005-04-03 22:35:21 +00001228
Wolfgang Denk8dd4d332005-08-06 01:42:58 +02001229ep8248_config \
1230ep8248E_config : unconfig
Wolfgang Denk625bd332010-05-27 23:18:33 +02001231 @$(MKCONFIG) -n $@ ep8248 powerpc mpc8260 ep8248
Wolfgang Denk8dd4d332005-08-06 01:42:58 +02001232
wdenk76dd6c72004-06-09 14:47:54 +00001233ISPAN_config \
1234ISPAN_REVB_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001235 @mkdir -p $(obj)include
wdenk76dd6c72004-06-09 14:47:54 +00001236 @if [ "$(findstring _REVB_,$@)" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001237 echo "#define CONFIG_SYS_REV_B" > $(obj)include/config.h ; \
wdenk76dd6c72004-06-09 14:47:54 +00001238 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001239 @$(MKCONFIG) -n $@ -a ISPAN powerpc mpc8260 ispan
wdenk76dd6c72004-06-09 14:47:54 +00001240
wdenk3902d702004-04-15 18:22:41 +00001241MPC8260ADS_config \
wdenk874c6752005-04-03 23:22:21 +00001242MPC8260ADS_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001243MPC8260ADS_33MHz_config \
wdenk874c6752005-04-03 23:22:21 +00001244MPC8260ADS_33MHz_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001245MPC8260ADS_40MHz_config \
wdenk874c6752005-04-03 23:22:21 +00001246MPC8260ADS_40MHz_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001247MPC8272ADS_config \
wdenk874c6752005-04-03 23:22:21 +00001248MPC8272ADS_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001249PQ2FADS_config \
wdenk874c6752005-04-03 23:22:21 +00001250PQ2FADS_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001251PQ2FADS-VR_config \
wdenk874c6752005-04-03 23:22:21 +00001252PQ2FADS-VR_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001253PQ2FADS-ZU_config \
wdenk874c6752005-04-03 23:22:21 +00001254PQ2FADS-ZU_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001255PQ2FADS-ZU_66MHz_config \
wdenk874c6752005-04-03 23:22:21 +00001256PQ2FADS-ZU_66MHz_lowboot_config \
wdenk3902d702004-04-15 18:22:41 +00001257 : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001258 @mkdir -p $(obj)include
Jon Loeliger39bf01e2008-03-05 18:05:45 -06001259 @mkdir -p $(obj)board/freescale/mpc8260ads
wdenk3902d702004-04-15 18:22:41 +00001260 $(if $(findstring PQ2FADS,$@), \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001261 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_PQ2FADS" > $(obj)include/config.h, \
1262 @echo "#define CONFIG_ADSTYPE CONFIG_SYS_"$(subst MPC,,$(word 1,$(subst _, ,$@))) > $(obj)include/config.h)
wdenk3902d702004-04-15 18:22:41 +00001263 $(if $(findstring MHz,$@), \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001264 @echo "#define CONFIG_8260_CLKIN" $(subst MHz,,$(word 2,$(subst _, ,$@)))"000000" >> $(obj)include/config.h, \
wdenk3902d702004-04-15 18:22:41 +00001265 $(if $(findstring VR,$@), \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001266 @echo "#define CONFIG_8260_CLKIN 66000000" >> $(obj)include/config.h))
wdenk874c6752005-04-03 23:22:21 +00001267 @[ -z "$(findstring lowboot_,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001268 echo "TEXT_BASE = 0xFF800000" >$(obj)board/freescale/mpc8260ads/config.tmp
1269 @$(MKCONFIG) -n $@ -a MPC8260ADS powerpc mpc8260 mpc8260ads freescale
wdenk7ebf7442002-11-02 23:17:16 +00001270
Heiko Schochera772a162008-08-19 10:08:49 +02001271muas3001_dev_config \
1272muas3001_config : unconfig
1273 @mkdir -p $(obj)include
1274 @mkdir -p $(obj)board/muas3001
1275 @if [ "$(findstring dev,$@)" ] ; then \
1276 echo "#define CONFIG_MUAS_DEV_BOARD" > $(obj)include/config.h ; \
1277 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001278 @$(MKCONFIG) -n $@ -a muas3001 powerpc mpc8260 muas3001
Heiko Schochera772a162008-08-19 10:08:49 +02001279
wdenkc12081a2004-03-23 20:18:25 +00001280# PM825/PM826 default configuration: small (= 8 MB) Flash / boot from 64-bit flash
wdenk4b57dcc2003-03-25 18:06:06 +00001281PM825_config \
wdenkc12081a2004-03-23 20:18:25 +00001282PM825_ROMBOOT_config \
1283PM825_BIGFLASH_config \
1284PM825_ROMBOOT_BIGFLASH_config \
1285PM826_config \
1286PM826_ROMBOOT_config \
1287PM826_BIGFLASH_config \
1288PM826_ROMBOOT_BIGFLASH_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001289 @mkdir -p $(obj)include
1290 @mkdir -p $(obj)board/pm826
wdenkc12081a2004-03-23 20:18:25 +00001291 @if [ "$(findstring PM825_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001292 echo "#define CONFIG_PCI" >$(obj)include/config.h ; \
wdenkc12081a2004-03-23 20:18:25 +00001293 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001294 >$(obj)include/config.h ; \
wdenkc12081a2004-03-23 20:18:25 +00001295 fi
1296 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001297 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1298 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
wdenkc12081a2004-03-23 20:18:25 +00001299 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001300 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
wdenkc12081a2004-03-23 20:18:25 +00001301 fi; \
wdenk4b57dcc2003-03-25 18:06:06 +00001302 else \
wdenkc12081a2004-03-23 20:18:25 +00001303 if [ "$(findstring _BIGFLASH_,$@)" ] ; then \
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01001304 $(XECHO) "... with 32 MB Flash" ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001305 echo "#define CONFIG_FLASH_32MB" >>$(obj)include/config.h ; \
1306 echo "TEXT_BASE = 0x40000000" >$(obj)board/pm826/config.tmp ; \
wdenkc12081a2004-03-23 20:18:25 +00001307 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001308 echo "TEXT_BASE = 0xFF000000" >$(obj)board/pm826/config.tmp ; \
wdenkc12081a2004-03-23 20:18:25 +00001309 fi; \
1310 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001311 @$(MKCONFIG) -n $@ -a PM826 powerpc mpc8260 pm826
wdenk4b57dcc2003-03-25 18:06:06 +00001312
wdenkc12081a2004-03-23 20:18:25 +00001313PM828_config \
1314PM828_PCI_config \
1315PM828_ROMBOOT_config \
1316PM828_ROMBOOT_PCI_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001317 @mkdir -p $(obj)include
1318 @mkdir -p $(obj)board/pm826
Marian Balakowicz3d8d1252006-04-05 20:37:11 +02001319 @if [ "$(findstring _PCI_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001320 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
wdenkc12081a2004-03-23 20:18:25 +00001321 fi
1322 @if [ "$(findstring _ROMBOOT_,$@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001323 echo "#define CONFIG_BOOT_ROM" >>$(obj)include/config.h ; \
1324 echo "TEXT_BASE = 0xFF800000" >$(obj)board/pm826/config.tmp ; \
wdenkc12081a2004-03-23 20:18:25 +00001325 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001326 @$(MKCONFIG) -n $@ -a PM828 powerpc mpc8260 pm828
wdenk7ebf7442002-11-02 23:17:16 +00001327
wdenkbc3202a2005-04-03 23:11:38 +00001328Rattler8248_config \
1329Rattler_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001330 @mkdir -p $(obj)include
wdenkbc3202a2005-04-03 23:11:38 +00001331 $(if $(findstring 8248,$@), \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001332 @echo "#define CONFIG_MPC8248" > $(obj)include/config.h)
1333 @$(MKCONFIG) -n $@ -a Rattler powerpc mpc8260 rattler
wdenkbc3202a2005-04-03 23:11:38 +00001334
wdenk874ac262003-07-24 23:38:38 +00001335TQM8255_AA_config \
1336TQM8260_AA_config \
1337TQM8260_AB_config \
1338TQM8260_AC_config \
1339TQM8260_AD_config \
1340TQM8260_AE_config \
1341TQM8260_AF_config \
1342TQM8260_AG_config \
1343TQM8260_AH_config \
Wolfgang Denk47673562006-03-07 00:32:07 +01001344TQM8260_AI_config \
wdenk874ac262003-07-24 23:38:38 +00001345TQM8265_AA_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001346 @mkdir -p $(obj)include
wdenk874ac262003-07-24 23:38:38 +00001347 @case "$@" in \
Wolfgang Denk47673562006-03-07 00:32:07 +01001348 TQM8255_AA_config) CTYPE=MPC8255; CFREQ=300; CACHE=no; BMODE=8260;; \
1349 TQM8260_AA_config) CTYPE=MPC8260; CFREQ=200; CACHE=no; BMODE=8260;; \
1350 TQM8260_AB_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1351 TQM8260_AC_config) CTYPE=MPC8260; CFREQ=200; CACHE=yes; BMODE=60x;; \
1352 TQM8260_AD_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1353 TQM8260_AE_config) CTYPE=MPC8260; CFREQ=266; CACHE=no; BMODE=8260;; \
1354 TQM8260_AF_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1355 TQM8260_AG_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=8260;; \
1356 TQM8260_AH_config) CTYPE=MPC8260; CFREQ=300; CACHE=yes; BMODE=60x;; \
1357 TQM8260_AI_config) CTYPE=MPC8260; CFREQ=300; CACHE=no; BMODE=60x;; \
1358 TQM8265_AA_config) CTYPE=MPC8265; CFREQ=300; CACHE=no; BMODE=60x;; \
wdenk874ac262003-07-24 23:38:38 +00001359 esac; \
wdenk874ac262003-07-24 23:38:38 +00001360 if [ "$${CTYPE}" != "MPC8260" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001361 echo "#define CONFIG_$${CTYPE}" >>$(obj)include/config.h ; \
wdenk874ac262003-07-24 23:38:38 +00001362 fi; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001363 echo "#define CONFIG_$${CFREQ}MHz" >>$(obj)include/config.h ; \
Wolfgang Denk111d6062008-01-02 15:54:45 +01001364 if [ "$${CACHE}" = "yes" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001365 echo "#define CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +00001366 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001367 echo "#undef CONFIG_L2_CACHE" >>$(obj)include/config.h ; \
wdenk874ac262003-07-24 23:38:38 +00001368 fi; \
Wolfgang Denk111d6062008-01-02 15:54:45 +01001369 if [ "$${BMODE}" = "60x" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001370 echo "#define CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
wdenk874ac262003-07-24 23:38:38 +00001371 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001372 echo "#undef CONFIG_BUSMODE_60x" >>$(obj)include/config.h ; \
wdenk7ebf7442002-11-02 23:17:16 +00001373 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001374 @$(MKCONFIG) -n $@ -a TQM8260 powerpc mpc8260 tqm8260 tqc
wdenk7ebf7442002-11-02 23:17:16 +00001375
wdenkc28149c2005-05-30 23:55:42 +00001376VoVPN-GW_66MHz_config \
1377VoVPN-GW_100MHz_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001378 @mkdir -p $(obj)include
1379 @echo "#define CONFIG_CLKIN_$(word 2,$(subst _, ,$@))" > $(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +02001380 @$(MKCONFIG) -n $@ -a VoVPN-GW powerpc mpc8260 vovpn-gw funkwerk
wdenkc28149c2005-05-30 23:55:42 +00001381
wdenkabf7a7c2003-12-08 01:34:36 +00001382#########################################################################
1383## Coldfire
1384#########################################################################
1385
Wolfgang Wegner406471c2010-01-25 11:27:44 +01001386astro_mcf5373l_config \
1387astro_mcf5373l_RAM_config : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001388 @$(MKCONFIG) -n $@ -t $@ astro_mcf5373l m68k mcf532x mcf5373l astro
Wolfgang Wegner406471c2010-01-25 11:27:44 +01001389
TsiChung Liew39966e32008-10-21 15:37:02 +00001390M52277EVB_config \
1391M52277EVB_spansion_config \
1392M52277EVB_stmicro_config : unconfig
1393 @case "$@" in \
1394 M52277EVB_config) FLASH=SPANSION;; \
1395 M52277EVB_spansion_config) FLASH=SPANSION;; \
1396 M52277EVB_stmicro_config) FLASH=STMICRO;; \
1397 esac; \
1398 if [ "$${FLASH}" = "SPANSION" ] ; then \
1399 echo "#define CONFIG_SYS_SPANSION_BOOT" >> $(obj)include/config.h ; \
1400 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1401 cp $(obj)board/freescale/m52277evb/u-boot.spa $(obj)board/freescale/m52277evb/u-boot.lds ; \
TsiChung Liew39966e32008-10-21 15:37:02 +00001402 fi; \
1403 if [ "$${FLASH}" = "STMICRO" ] ; then \
1404 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
1405 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
1406 echo "TEXT_BASE = 0x43E00000" > $(obj)board/freescale/m52277evb/config.tmp ; \
1407 cp $(obj)board/freescale/m52277evb/u-boot.stm $(obj)board/freescale/m52277evb/u-boot.lds ; \
TsiChung Liew39966e32008-10-21 15:37:02 +00001408 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001409 @$(MKCONFIG) -n $@ -a M52277EVB m68k mcf5227x m52277evb freescale
TsiChungLiew99b037a2008-01-14 17:43:33 -06001410
TsiChungLiewb859ef12007-08-16 19:23:50 -05001411M5235EVB_config \
1412M5235EVB_Flash16_config \
1413M5235EVB_Flash32_config: unconfig
1414 @case "$@" in \
1415 M5235EVB_config) FLASH=16;; \
1416 M5235EVB_Flash16_config) FLASH=16;; \
1417 M5235EVB_Flash32_config) FLASH=32;; \
1418 esac; \
TsiChungLiewb859ef12007-08-16 19:23:50 -05001419 if [ "$${FLASH}" != "16" ] ; then \
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01001420 echo "#define NORFLASH_PS32BIT 1" >> $(obj)include/config.h ; \
TsiChungLiewb859ef12007-08-16 19:23:50 -05001421 echo "TEXT_BASE = 0xFFC00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1422 cp $(obj)board/freescale/m5235evb/u-boot.32 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1423 else \
1424 echo "TEXT_BASE = 0xFFE00000" > $(obj)board/freescale/m5235evb/config.tmp ; \
1425 cp $(obj)board/freescale/m5235evb/u-boot.16 $(obj)board/freescale/m5235evb/u-boot.lds ; \
1426 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001427 @$(MKCONFIG) -n $@ -a M5235EVB m68k mcf523x m5235evb freescale
TsiChungLiewb859ef12007-08-16 19:23:50 -05001428
Wolfgang Denkaaa7c002005-12-12 16:06:05 +01001429cobra5272_config : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001430 @$(MKCONFIG) $@ m68k mcf52x2 cobra5272
Wolfgang Denkaaa7c002005-12-12 16:06:05 +01001431
Wolfgang Denkb4b1c462006-06-10 19:27:47 +02001432EB+MCF-EV123_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001433 @mkdir -p $(obj)include
1434 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001435 @echo "TEXT_BASE = 0xFFE00000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
Wolfgang Denk625bd332010-05-27 23:18:33 +02001436 @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
Wolfgang Denkb4b1c462006-06-10 19:27:47 +02001437
1438EB+MCF-EV123_internal_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001439 @mkdir -p $(obj)include
1440 @mkdir -p $(obj)board/BuS/EB+MCF-EV123
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001441 @echo "TEXT_BASE = 0xF0000000"|tee $(obj)board/BuS/EB+MCF-EV123/textbase.mk
Wolfgang Denk625bd332010-05-27 23:18:33 +02001442 @$(MKCONFIG) -n $@ EB+MCF-EV123 m68k mcf52x2 EB+MCF-EV123 BuS
Wolfgang Denkb4b1c462006-06-10 19:27:47 +02001443
TsiChung Liewf6afe722007-06-18 13:50:13 -05001444M5329AFEE_config \
1445M5329BFEE_config : unconfig
1446 @case "$@" in \
1447 M5329AFEE_config) NAND=0;; \
1448 M5329BFEE_config) NAND=16;; \
1449 esac; \
TsiChung Liewf6afe722007-06-18 13:50:13 -05001450 if [ "$${NAND}" != "0" ] ; then \
TsiChungLiewaedd3d72007-08-15 15:39:17 -05001451 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
TsiChung Liewf6afe722007-06-18 13:50:13 -05001452 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001453 @$(MKCONFIG) -n $@ -a M5329EVB m68k mcf532x m5329evb freescale
TsiChung Liewf6afe722007-06-18 13:50:13 -05001454
TsiChungLiew6f8a0a32008-01-14 17:23:08 -06001455M5373EVB_config : unconfig
1456 @case "$@" in \
1457 M5373EVB_config) NAND=16;; \
1458 esac; \
TsiChungLiew6f8a0a32008-01-14 17:23:08 -06001459 if [ "$${NAND}" != "0" ] ; then \
1460 echo "#define NANDFLASH_SIZE $${NAND}" > $(obj)include/config.h ; \
1461 fi
1462 @$(MKCONFIG) -a M5373EVB m68k mcf532x m5373evb freescale
1463
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001464M54451EVB_config \
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001465M54451EVB_stmicro_config : unconfig
1466 @case "$@" in \
TsiChung Liewb78c9882009-06-11 15:39:57 +00001467 M54451EVB_config) FLASH=NOR;; \
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001468 M54451EVB_stmicro_config) FLASH=STMICRO;; \
1469 esac; \
TsiChung Liewb78c9882009-06-11 15:39:57 +00001470 if [ "$${FLASH}" = "NOR" ] ; then \
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001471 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1472 cp $(obj)board/freescale/m54451evb/u-boot.spa $(obj)board/freescale/m54451evb/u-boot.lds ; \
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001473 fi; \
1474 if [ "$${FLASH}" = "STMICRO" ] ; then \
1475 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001476 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001477 echo "TEXT_BASE = 0x47E00000" > $(obj)board/freescale/m54451evb/config.tmp ; \
1478 cp $(obj)board/freescale/m54451evb/u-boot.stm $(obj)board/freescale/m54451evb/u-boot.lds ; \
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001479 fi; \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001480 echo "#define CONFIG_SYS_INPUT_CLKSRC 24000000" >> $(obj)include/config.h ;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001481 @$(MKCONFIG) -n $@ -a M54451EVB m68k mcf5445x m54451evb freescale
TsiChung Liew3cdc00a2008-08-11 13:41:49 +00001482
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -05001483M54455EVB_config \
1484M54455EVB_atmel_config \
1485M54455EVB_intel_config \
1486M54455EVB_a33_config \
1487M54455EVB_a66_config \
1488M54455EVB_i33_config \
TsiChung Liew23cf8fd2008-07-23 20:38:53 -05001489M54455EVB_i66_config \
1490M54455EVB_stm33_config : unconfig
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -05001491 @case "$@" in \
1492 M54455EVB_config) FLASH=ATMEL; FREQ=33333333;; \
1493 M54455EVB_atmel_config) FLASH=ATMEL; FREQ=33333333;; \
1494 M54455EVB_intel_config) FLASH=INTEL; FREQ=33333333;; \
1495 M54455EVB_a33_config) FLASH=ATMEL; FREQ=33333333;; \
1496 M54455EVB_a66_config) FLASH=ATMEL; FREQ=66666666;; \
1497 M54455EVB_i33_config) FLASH=INTEL; FREQ=33333333;; \
1498 M54455EVB_i66_config) FLASH=INTEL; FREQ=66666666;; \
TsiChung Liew23cf8fd2008-07-23 20:38:53 -05001499 M54455EVB_stm33_config) FLASH=STMICRO; FREQ=33333333;; \
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -05001500 esac; \
Wolfgang Denk111d6062008-01-02 15:54:45 +01001501 if [ "$${FLASH}" = "INTEL" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001502 echo "#define CONFIG_SYS_INTEL_BOOT" >> $(obj)include/config.h ; \
TsiChungLiewd98a8d62007-10-25 17:16:22 -05001503 echo "TEXT_BASE = 0x00000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1504 cp $(obj)board/freescale/m54455evb/u-boot.int $(obj)board/freescale/m54455evb/u-boot.lds ; \
TsiChung Liew23cf8fd2008-07-23 20:38:53 -05001505 fi; \
1506 if [ "$${FLASH}" = "ATMEL" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001507 echo "#define CONFIG_SYS_ATMEL_BOOT" >> $(obj)include/config.h ; \
TsiChungLiewd98a8d62007-10-25 17:16:22 -05001508 echo "TEXT_BASE = 0x04000000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1509 cp $(obj)board/freescale/m54455evb/u-boot.atm $(obj)board/freescale/m54455evb/u-boot.lds ; \
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -05001510 fi; \
TsiChung Liew23cf8fd2008-07-23 20:38:53 -05001511 if [ "$${FLASH}" = "STMICRO" ] ; then \
1512 echo "#define CONFIG_CF_SBF" >> $(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001513 echo "#define CONFIG_SYS_STMICRO_BOOT" >> $(obj)include/config.h ; \
TsiChung Liew23cf8fd2008-07-23 20:38:53 -05001514 echo "TEXT_BASE = 0x4FE00000" > $(obj)board/freescale/m54455evb/config.tmp ; \
1515 cp $(obj)board/freescale/m54455evb/u-boot.stm $(obj)board/freescale/m54455evb/u-boot.lds ; \
TsiChung Liew23cf8fd2008-07-23 20:38:53 -05001516 fi; \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001517 echo "#define CONFIG_SYS_INPUT_CLKSRC $${FREQ}" >> $(obj)include/config.h ; \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001518 @$(MKCONFIG) -n $@ -a M54455EVB m68k mcf5445x m54455evb freescale
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -05001519
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001520M5475AFE_config \
1521M5475BFE_config \
1522M5475CFE_config \
1523M5475DFE_config \
1524M5475EFE_config \
1525M5475FFE_config \
1526M5475GFE_config : unconfig
1527 @case "$@" in \
1528 M5475AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1529 M5475BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1530 M5475CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1531 M5475DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1532 M5475EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1533 M5475FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1534 M5475GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1535 esac; \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001536 echo "#define CONFIG_SYS_BUSCLK 133333333" > $(obj)include/config.h ; \
1537 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1538 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001539 if [ "$${RAM1}" != "0" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001540 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001541 fi; \
1542 if [ "$${CODE}" != "0" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001543 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001544 fi; \
1545 if [ "$${VID}" == "1" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001546 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001547 fi; \
1548 if [ "$${USB}" == "1" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001549 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001550 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001551 @$(MKCONFIG) -n $@ -a M5475EVB m68k mcf547x_8x m547xevb freescale
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001552
1553M5485AFE_config \
1554M5485BFE_config \
1555M5485CFE_config \
1556M5485DFE_config \
1557M5485EFE_config \
1558M5485FFE_config \
1559M5485GFE_config \
1560M5485HFE_config : unconfig
1561 @case "$@" in \
1562 M5485AFE_config) BOOT=2;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
1563 M5485BFE_config) BOOT=2;CODE=16;VID=0;USB=0;RAM=64;RAM1=0;; \
1564 M5485CFE_config) BOOT=2;CODE=16;VID=1;USB=1;RAM=64;RAM1=0;; \
1565 M5485DFE_config) BOOT=2;CODE=0;VID=0;USB=1;RAM=64;RAM1=0;; \
1566 M5485EFE_config) BOOT=2;CODE=0;VID=1;USB=1;RAM=64;RAM1=0;; \
1567 M5485FFE_config) BOOT=2;CODE=32;VID=1;USB=1;RAM=64;RAM1=64;; \
1568 M5485GFE_config) BOOT=4;CODE=0;VID=0;USB=0;RAM=64;RAM1=0;; \
TsiChungLiew561db012008-01-30 15:08:15 -06001569 M5485HFE_config) BOOT=2;CODE=16;VID=1;USB=0;RAM=64;RAM1=0;; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001570 esac; \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001571 echo "#define CONFIG_SYS_BUSCLK 100000000" > $(obj)include/config.h ; \
1572 echo "#define CONFIG_SYS_BOOTSZ $${BOOT}" >> $(obj)include/config.h ; \
1573 echo "#define CONFIG_SYS_DRAMSZ $${RAM}" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001574 if [ "$${RAM1}" != "0" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001575 echo "#define CONFIG_SYS_DRAMSZ1 $${RAM1}" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001576 fi; \
1577 if [ "$${CODE}" != "0" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001578 echo "#define CONFIG_SYS_NOR1SZ $${CODE}" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001579 fi; \
1580 if [ "$${VID}" == "1" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001581 echo "#define CONFIG_SYS_VIDEO" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001582 fi; \
1583 if [ "$${USB}" == "1" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001584 echo "#define CONFIG_SYS_USBCTRL" >> $(obj)include/config.h ; \
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001585 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001586 @$(MKCONFIG) -n $@ -a M5485EVB m68k mcf547x_8x m548xevb freescale
TsiChungLiew8cb946d2008-01-15 14:15:46 -06001587
wdenk7ebf7442002-11-02 23:17:16 +00001588#########################################################################
Eran Liberty9095d4a2005-07-28 10:08:46 -05001589## MPC83xx Systems
1590#########################################################################
1591
Kim Phillipsffc21c02007-04-25 12:34:38 -05001592MPC8313ERDB_33_config \
Scott Woodb71689b2008-06-30 14:13:28 -05001593MPC8313ERDB_66_config \
1594MPC8313ERDB_NAND_33_config \
1595MPC8313ERDB_NAND_66_config: unconfig
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001596 @mkdir -p $(obj)include
Scott Woodb71689b2008-06-30 14:13:28 -05001597 @mkdir -p $(obj)board/freescale/mpc8313erdb
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01001598 @if [ "$(findstring _33_,$@)" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001599 echo "#define CONFIG_SYS_33MHZ" >>$(obj)include/config.h ; \
Kim Phillipsffc21c02007-04-25 12:34:38 -05001600 fi ; \
1601 if [ "$(findstring _66_,$@)" ] ; then \
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +02001602 echo "#define CONFIG_SYS_66MHZ" >>$(obj)include/config.h ; \
Scott Woodb71689b2008-06-30 14:13:28 -05001603 fi ; \
1604 if [ "$(findstring _NAND_,$@)" ] ; then \
Kim Phillips44f15e52008-08-25 14:53:09 -05001605 echo "TEXT_BASE = 0x00100000" > $(obj)board/freescale/mpc8313erdb/config.tmp ; \
Scott Woodb71689b2008-06-30 14:13:28 -05001606 echo "#define CONFIG_NAND_U_BOOT" >>$(obj)include/config.h ; \
Kim Phillipsffc21c02007-04-25 12:34:38 -05001607 fi ;
Nick Spence120097e2008-09-02 15:21:16 -05001608 @if [ "$(findstring _NAND_,$@)" ] ; then \
1609 echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk ; \
1610 fi ;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001611 @$(MKCONFIG) -n $@ -a MPC8313ERDB powerpc mpc83xx mpc8313erdb freescale
Kim Phillipsffc21c02007-04-25 12:34:38 -05001612
Anton Vorontsovec821752009-11-24 20:12:12 +03001613MPC8315ERDB_NAND_config \
Dave Liu19b247e2008-01-11 18:48:24 +08001614MPC8315ERDB_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001615 @$(MKCONFIG) -n $@ -t $@ MPC8315ERDB powerpc mpc83xx mpc8315erdb freescale
Dave Liu19b247e2008-01-11 18:48:24 +08001616
Kim Phillips2380d432007-01-24 17:18:37 -06001617MPC832XEMDS_config \
1618MPC832XEMDS_HOST_33_config \
1619MPC832XEMDS_HOST_66_config \
Tony Lic5c40d82007-10-18 17:47:19 +08001620MPC832XEMDS_SLAVE_config \
1621MPC832XEMDS_ATM_config: unconfig
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001622 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01001623 @if [ "$(findstring _HOST_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001624 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
Dave Liua46daea2006-11-03 19:33:44 -06001625 fi ; \
1626 if [ "$(findstring _SLAVE_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001627 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1628 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
Dave Liua46daea2006-11-03 19:33:44 -06001629 fi ; \
1630 if [ "$(findstring _33_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001631 echo "#define PCI_33M" >>$(obj)include/config.h ; \
Tony Lic5c40d82007-10-18 17:47:19 +08001632 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
Dave Liua46daea2006-11-03 19:33:44 -06001633 fi ; \
1634 if [ "$(findstring _66_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001635 echo "#define PCI_66M" >>$(obj)include/config.h ; \
Tony Lic5c40d82007-10-18 17:47:19 +08001636 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1637 fi ; \
1638 if [ "$(findstring _ATM_,$@)" ] ; then \
Tony Lic5c40d82007-10-18 17:47:19 +08001639 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
Wolfgang Denk19b68c42008-03-04 14:58:31 +01001640 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
Dave Liua46daea2006-11-03 19:33:44 -06001641 fi ;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001642 @$(MKCONFIG) -n $@ -a MPC832XEMDS powerpc mpc83xx mpc832xemds freescale
Marian Balakowicz513b4a12005-10-11 19:09:42 +02001643
Timur Tabi435e3a72007-01-31 15:54:29 -06001644MPC8349ITX_config \
1645MPC8349ITX_LOWBOOT_config \
1646MPC8349ITXGP_config: unconfig
1647 @mkdir -p $(obj)include
Sam Sparksb9e9a372007-09-14 11:14:42 -06001648 @mkdir -p $(obj)board/freescale/mpc8349itx
Timur Tabi435e3a72007-01-31 15:54:29 -06001649 @echo "#define CONFIG_$(subst _LOWBOOT,,$(@:_config=))" >> $(obj)include/config.h
1650 @if [ "$(findstring GP,$@)" ] ; then \
Sam Sparksb9e9a372007-09-14 11:14:42 -06001651 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
Timur Tabi435e3a72007-01-31 15:54:29 -06001652 fi
1653 @if [ "$(findstring LOWBOOT,$@)" ] ; then \
Sam Sparksb9e9a372007-09-14 11:14:42 -06001654 echo "TEXT_BASE = 0xFE000000" >$(obj)board/freescale/mpc8349itx/config.tmp ; \
Timur Tabi435e3a72007-01-31 15:54:29 -06001655 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001656 @$(MKCONFIG) -n $@ -a MPC8349ITX powerpc mpc83xx mpc8349itx freescale
Timur Tabi054838e2006-10-31 18:44:42 -06001657
Marian Balakowiczd7a3f722006-03-14 16:24:38 +01001658MPC8360EMDS_config \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001659MPC8360EMDS_HOST_33_config \
Marian Balakowiczd7a3f722006-03-14 16:24:38 +01001660MPC8360EMDS_HOST_66_config \
Tony Lic5c40d82007-10-18 17:47:19 +08001661MPC8360EMDS_SLAVE_config \
1662MPC8360EMDS_ATM_config: unconfig
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001663 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01001664 @if [ "$(findstring _HOST_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001665 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001666 fi ; \
wdenk9c53f402003-10-15 23:53:47 +00001667 if [ "$(findstring _SLAVE_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001668 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1669 echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
Lunsheng Wang61e61952005-07-29 10:20:29 -05001670 fi ; \
1671 if [ "$(findstring _33_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001672 echo "#define PCI_33M" >>$(obj)include/config.h ; \
Tony Lic5c40d82007-10-18 17:47:19 +08001673 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
Lunsheng Wang61e61952005-07-29 10:20:29 -05001674 fi ; \
1675 if [ "$(findstring _66_,$@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02001676 echo "#define PCI_66M" >>$(obj)include/config.h ; \
Tony Lic5c40d82007-10-18 17:47:19 +08001677 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
1678 fi ; \
1679 if [ "$(findstring _ATM_,$@)" ] ; then \
Tony Lic5c40d82007-10-18 17:47:19 +08001680 echo "#define CONFIG_PQ_MDS_PIB 1" >>$(obj)include/config.h ; \
Wolfgang Denk19b68c42008-03-04 14:58:31 +01001681 echo "#define CONFIG_PQ_MDS_PIB_ATM 1" >>$(obj)include/config.h ; \
Lunsheng Wang61e61952005-07-29 10:20:29 -05001682 fi ;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001683 @$(MKCONFIG) -n $@ -a MPC8360EMDS powerpc mpc83xx mpc8360emds freescale
Lunsheng Wang61e61952005-07-29 10:20:29 -05001684
Anton Vorontsovb6678de2008-01-09 20:57:47 +03001685MPC8360ERDK_33_config \
1686MPC8360ERDK_66_config \
Jean-Christophe PLAGNIOL-VILLARDca0350e2008-03-02 16:12:31 +01001687MPC8360ERDK_config: unconfig
Anton Vorontsovb6678de2008-01-09 20:57:47 +03001688 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01001689 @if [ "$(findstring _33_,$@)" ] ; then \
Anton Vorontsovb6678de2008-01-09 20:57:47 +03001690 echo "#define CONFIG_CLKIN_33MHZ" >>$(obj)include/config.h ;\
1691 fi ;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001692 @$(MKCONFIG) -n $@ -a MPC8360ERDK powerpc mpc83xx mpc8360erdk freescale
Anton Vorontsovb6678de2008-01-09 20:57:47 +03001693
Dave Liub19ecd32007-09-18 12:37:57 +08001694MPC837XEMDS_config \
1695MPC837XEMDS_HOST_config: unconfig
1696 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01001697 @if [ "$(findstring _HOST_,$@)" ] ; then \
Dave Liub19ecd32007-09-18 12:37:57 +08001698 echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
1699 fi ;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001700 @$(MKCONFIG) -n $@ -a MPC837XEMDS powerpc mpc83xx mpc837xemds freescale
Dave Liub19ecd32007-09-18 12:37:57 +08001701
Paul Gortmaker0aaee142009-08-21 16:21:58 -05001702sbc8349_config \
1703sbc8349_PCI_33_config \
1704sbc8349_PCI_66_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001705 @$(MKCONFIG) -n $@ -t $@ sbc8349 powerpc mpc83xx sbc8349
Kim Phillips2380d432007-01-24 17:18:37 -06001706
Ron Madrid9ff89b72009-01-22 15:05:24 -08001707SIMPC8313_LP_config \
1708SIMPC8313_SP_config: unconfig
1709 @mkdir -p $(obj)include
1710 @mkdir -p $(obj)board/sheldon/simpc8313
1711 @if [ "$(findstring _LP_,$@)" ] ; then \
Ron Madrid9ff89b72009-01-22 15:05:24 -08001712 echo "#define CONFIG_NAND_LP" >> $(obj)include/config.h ; \
1713 fi ; \
1714 if [ "$(findstring _SP_,$@)" ] ; then \
Ron Madrid9ff89b72009-01-22 15:05:24 -08001715 echo "#define CONFIG_NAND_SP" >> $(obj)include/config.h ; \
1716 fi ;
Ron Madrid9ff89b72009-01-22 15:05:24 -08001717 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denk625bd332010-05-27 23:18:33 +02001718 @$(MKCONFIG) -n $@ -a SIMPC8313 powerpc mpc83xx simpc8313 sheldon
Ron Madrid9ff89b72009-01-22 15:05:24 -08001719
Reinhard Arlt63881352009-12-08 09:13:08 +01001720caddy2_config \
Reinhard Arlt46911792009-07-25 06:19:12 +02001721vme8349_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001722 @$(MKCONFIG) -n $@ -t $@ vme8349 powerpc mpc83xx vme8349 esd
Lunsheng Wang61e61952005-07-29 10:20:29 -05001723
1724#########################################################################
1725## MPC85xx Systems
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001726#########################################################################
Lunsheng Wang61e61952005-07-29 10:20:29 -05001727
Mingkai Huc2a6dca2009-09-23 15:20:37 +08001728MPC8536DS_NAND_config \
Mingkai Hua74e3952009-09-23 15:20:38 +08001729MPC8536DS_SDCARD_config \
1730MPC8536DS_SPIFLASH_config \
Kumar Galaee1ca7e2009-07-30 15:54:07 -05001731MPC8536DS_36BIT_config \
Kumar Galafd83aa82008-07-25 13:31:05 -05001732MPC8536DS_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001733 @$(MKCONFIG) -n $@ -t $@ MPC8536DS powerpc mpc85xx mpc8536ds freescale
Kumar Galafd83aa82008-07-25 13:31:05 -05001734
wdenk9c53f402003-10-15 23:53:47 +00001735MPC8540EVAL_config \
1736MPC8540EVAL_33_config \
1737MPC8540EVAL_66_config \
1738MPC8540EVAL_33_slave_config \
Wolfgang Denk625bd332010-05-27 23:18:33 +02001739MPC8540EVAL_66_slave_config: unconfig
wdenk9c53f402003-10-15 23:53:47 +00001740 @mkdir -p $(obj)include
Wolfgang Denk625bd332010-05-27 23:18:33 +02001741 @if [ -z "$(findstring _33_,$@)" ] ; then \
wdenk7ebf7442002-11-02 23:17:16 +00001742 echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
wdenk452cfd62002-11-19 11:04:11 +00001743 fi ; \
1744 if [ "$(findstring _slave_,$@)" ] ; then \
1745 echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \
wdenk9f837932003-10-09 19:00:25 +00001746 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001747 @$(MKCONFIG) -n $@ -a MPC8540EVAL powerpc mpc85xx mpc8540eval
wdenk9f837932003-10-09 19:00:25 +00001748
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001749MPC8541CDS_legacy_config \
wdenk0aeb8532004-10-10 21:21:55 +00001750MPC8541CDS_config: unconfig
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001751 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01001752 @if [ "$(findstring _legacy_,$@)" ] ; then \
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001753 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001754 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001755 @$(MKCONFIG) -n $@ -a MPC8541CDS powerpc mpc85xx mpc8541cds freescale
wdenk0aeb8532004-10-10 21:21:55 +00001756
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001757MPC8548CDS_legacy_config \
Jon Loeliger77a4f6e2005-07-25 14:05:07 -05001758MPC8548CDS_config: unconfig
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001759 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01001760 @if [ "$(findstring _legacy_,$@)" ] ; then \
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001761 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001762 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001763 @$(MKCONFIG) -n $@ -a MPC8548CDS powerpc mpc85xx mpc8548cds freescale
Jon Loeliger77a4f6e2005-07-25 14:05:07 -05001764
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001765MPC8555CDS_legacy_config \
wdenk0aeb8532004-10-10 21:21:55 +00001766MPC8555CDS_config: unconfig
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001767 @mkdir -p $(obj)include
Wolfgang Denkeeb656c2008-03-09 02:13:19 +01001768 @if [ "$(findstring _legacy_,$@)" ] ; then \
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001769 echo "#define CONFIG_LEGACY" >>$(obj)include/config.h ; \
Randy Vinson1dfd6d92007-02-27 19:42:22 -07001770 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001771 @$(MKCONFIG) -n $@ -a MPC8555CDS powerpc mpc85xx mpc8555cds freescale
wdenk78924a72004-04-18 21:45:42 +00001772
Liu Yu06f0ebe2009-11-27 15:31:52 +08001773MPC8569MDS_ATM_config \
Liu Yu2639e512010-01-18 19:03:28 +08001774MPC8569MDS_NAND_config \
Haiying Wangbd255372009-03-27 17:02:45 -04001775MPC8569MDS_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001776 @$(MKCONFIG) -n $@ -t $@ MPC8569MDS powerpc mpc85xx mpc8569mds freescale
Haiying Wangbd255372009-03-27 17:02:45 -04001777
Kumar Galae0f97412009-01-23 14:22:14 -06001778MPC8572DS_36BIT_config \
Kumar Gala3ab0b2d2008-08-12 11:13:08 -05001779MPC8572DS_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001780 @$(MKCONFIG) -n $@ -t $@ MPC8572DS powerpc mpc85xx mpc8572ds freescale
Kumar Gala3ab0b2d2008-08-12 11:13:08 -05001781
Srikanth Srinivasan949a2d52009-04-03 15:36:13 -05001782P2020DS_36BIT_config \
1783P2020DS_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001784 @$(MKCONFIG) -n $@ -t $@ P2020DS powerpc mpc85xx p2020ds freescale
Srikanth Srinivasan949a2d52009-04-03 15:36:13 -05001785
Kumar Gala5b62efc2009-09-10 16:31:53 -05001786P1011RDB_config \
Dipen Dudhate98a3fc2009-10-08 13:33:18 +05301787P1011RDB_NAND_config \
Dipen Dudhat529e5fd2009-10-08 13:33:29 +05301788P1011RDB_SDCARD_config \
1789P1011RDB_SPIFLASH_config \
Kumar Gala5b62efc2009-09-10 16:31:53 -05001790P1020RDB_config \
Dipen Dudhate98a3fc2009-10-08 13:33:18 +05301791P1020RDB_NAND_config \
Dipen Dudhat529e5fd2009-10-08 13:33:29 +05301792P1020RDB_SDCARD_config \
1793P1020RDB_SPIFLASH_config \
Kumar Gala5b62efc2009-09-10 16:31:53 -05001794P2010RDB_config \
Dipen Dudhate98a3fc2009-10-08 13:33:18 +05301795P2010RDB_NAND_config \
Dipen Dudhat529e5fd2009-10-08 13:33:29 +05301796P2010RDB_SDCARD_config \
1797P2010RDB_SPIFLASH_config \
Dipen Dudhate98a3fc2009-10-08 13:33:18 +05301798P2020RDB_config \
Dipen Dudhat529e5fd2009-10-08 13:33:29 +05301799P2020RDB_NAND_config \
1800P2020RDB_SDCARD_config \
1801P2020RDB_SPIFLASH_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001802 @$(MKCONFIG) -n $@ -t $@ P1_P2_RDB powerpc mpc85xx p1_p2_rdb freescale
Poonam Aggrwal987862c2009-08-05 13:29:24 +05301803
wdenkadf849c2004-10-10 22:44:24 +00001804sbc8540_config \
1805sbc8540_33_config \
1806sbc8540_66_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001807 @$(MKCONFIG) -n $@ -t $@ SBC8540 powerpc mpc85xx sbc8560
wdenkadf849c2004-10-10 22:44:24 +00001808
Paul Gortmakerf5c69a52009-09-20 20:36:06 -04001809sbc8548_config \
1810sbc8548_PCI_33_config \
1811sbc8548_PCI_66_config \
1812sbc8548_PCI_33_PCIE_config \
1813sbc8548_PCI_66_PCIE_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001814 @$(MKCONFIG) -n $@ -t $@ sbc8548 powerpc mpc85xx sbc8548
Joe Hammanccefae42007-12-13 06:45:08 -06001815
wdenk265d2172004-07-10 22:35:59 +00001816sbc8560_config \
1817sbc8560_33_config \
Wolfgang Denk19b68c42008-03-04 14:58:31 +01001818sbc8560_66_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001819 @$(MKCONFIG) -n $@ -t $@ sbc8560 powerpc mpc85xx sbc8560
wdenk3203c8f2004-07-10 21:45:47 +00001820
Wolfgang Denk5b9a5d82007-05-31 17:20:09 +02001821stxssa_config \
1822stxssa_4M_config: unconfig
1823 @mkdir -p $(obj)include
1824 @if [ "$(findstring _4M_,$@)" ] ; then \
1825 echo "#define CONFIG_STXSSA_4M" >>$(obj)include/config.h ; \
Wolfgang Denk5b9a5d82007-05-31 17:20:09 +02001826 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001827 @$(MKCONFIG) -n $@ -a stxssa powerpc mpc85xx stxssa stx
Dan Malek6acf0482007-01-05 09:15:34 +01001828
Stefan Roese09554022005-11-30 13:06:40 +01001829TQM8540_config \
1830TQM8541_config \
Wolfgang Grandegger328c6ec2008-06-05 13:12:07 +02001831TQM8548_config \
Wolfgang Grandegger7ebcfec2009-02-11 18:38:22 +01001832TQM8548_AG_config \
Wolfgang Grandeggere85bbc62009-02-11 18:38:21 +01001833TQM8548_BE_config \
Stefan Roese09554022005-11-30 13:06:40 +01001834TQM8555_config \
1835TQM8560_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001836 @mkdir -p $(obj)include
Wolfgang Grandeggere85bbc62009-02-11 18:38:21 +01001837 @BTYPE=$(@:_config=); \
Wolfgang Grandegger7ebcfec2009-02-11 18:38:22 +01001838 CTYPE=$(subst TQM,,$(subst _AG,,$(subst _BE,,$(@:_config=)))); \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001839 echo "#define CONFIG_MPC$${CTYPE}">>$(obj)include/config.h; \
Wolfgang Grandeggere85bbc62009-02-11 18:38:21 +01001840 echo "#define CONFIG_$${BTYPE}">>$(obj)include/config.h; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001841 echo "#define CONFIG_HOSTNAME tqm$${CTYPE}">>$(obj)include/config.h; \
Wolfgang Grandeggere85bbc62009-02-11 18:38:21 +01001842 echo "#define CONFIG_BOARDNAME \"$${BTYPE}\"">>$(obj)include/config.h;
Wolfgang Grandeggere85bbc62009-02-11 18:38:21 +01001843 @echo "CONFIG_$(@:_config=) = y">>$(obj)include/config.mk;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001844 @$(MKCONFIG) -n $@ -a TQM85xx powerpc mpc85xx tqm85xx tqc
wdenk8e5263c2005-04-05 16:26:47 +00001845
wdenk9f837932003-10-09 19:00:25 +00001846#########################################################################
Jon Loeliger5c8aa972006-04-26 17:58:56 -05001847## MPC86xx Systems
1848#########################################################################
1849
Becky Brucef4a865c2008-11-06 13:04:09 -06001850MPC8641HPCN_36BIT_config \
Jon Loeliger5c8aa972006-04-26 17:58:56 -05001851MPC8641HPCN_config: unconfig
Becky Brucef4a865c2008-11-06 13:04:09 -06001852 @mkdir -p $(obj)include
1853 @if [ "$(findstring _36BIT_,$@)" ] ; then \
1854 echo "#define CONFIG_PHYS_64BIT" >>$(obj)include/config.h ; \
Becky Brucef4a865c2008-11-06 13:04:09 -06001855 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001856 @$(MKCONFIG) -n $@ -a MPC8641HPCN powerpc mpc86xx mpc8641hpcn freescale
Jon Loeliger5c8aa972006-04-26 17:58:56 -05001857
Jon Loeliger5c8aa972006-04-26 17:58:56 -05001858#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00001859## 74xx/7xx Systems
1860#########################################################################
1861
1862EVB64260_config \
1863EVB64260_750CX_config: unconfig
Wolfgang Denk625bd332010-05-27 23:18:33 +02001864 @$(MKCONFIG) -n $@ EVB64260 powerpc 74xx_7xx evb64260
wdenk7ebf7442002-11-02 23:17:16 +00001865
Stefan Roese45993ea2006-11-29 15:42:37 +01001866p3m750_config \
1867p3m7448_config: unconfig
1868 @mkdir -p $(obj)include
1869 @if [ "$(findstring 750_,$@)" ] ; then \
1870 echo "#define CONFIG_P3M750" >>$(obj)include/config.h ; \
1871 else \
1872 echo "#define CONFIG_P3M7448" >>$(obj)include/config.h ; \
1873 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02001874 @$(MKCONFIG) -n $@ -a p3mx powerpc 74xx_7xx p3mx prodrive
Stefan Roese45993ea2006-11-29 15:42:37 +01001875
wdenk7ebf7442002-11-02 23:17:16 +00001876PCIPPC2_config \
1877PCIPPC6_config: unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02001878 @$(MKCONFIG) -n $@ $@ powerpc 74xx_7xx pcippc2
wdenk7ebf7442002-11-02 23:17:16 +00001879
wdenk7ebf7442002-11-02 23:17:16 +00001880#========================================================================
1881# ARM
1882#========================================================================
wdenk7ebf7442002-11-02 23:17:16 +00001883
Ulf Samuelsson1c5fdbf2008-04-12 20:56:03 +02001884#########################################################################
1885## Atmel AT91RM9200 Systems
1886#########################################################################
Stelian Pop6c939742008-01-20 19:49:21 +00001887
Tom Rix3db7af72009-09-27 07:47:24 -05001888CPUAT91_RAM_config \
1889CPUAT91_config : unconfig
1890 @mkdir -p $(obj)include
1891 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +02001892 @$(MKCONFIG) -n $@ -a cpuat91 arm arm920t cpuat91 eukrea at91rm9200
Tom Rix3db7af72009-09-27 07:47:24 -05001893
Ulf Samuelsson1c5fdbf2008-04-12 20:56:03 +02001894#########################################################################
Matthias Weisseraea03572010-01-18 10:58:13 +01001895## ARM926EJ-S Systems
Ulf Samuelsson1c5fdbf2008-04-12 20:56:03 +02001896#########################################################################
1897
Nicolas Ferre09e10902008-12-06 13:11:14 +01001898at91sam9260ek_nandflash_config \
1899at91sam9260ek_dataflash_cs0_config \
1900at91sam9260ek_dataflash_cs1_config \
Nicolas Ferre4ef545e2009-03-22 14:48:16 +01001901at91sam9260ek_config \
1902at91sam9g20ek_nandflash_config \
1903at91sam9g20ek_dataflash_cs0_config \
1904at91sam9g20ek_dataflash_cs1_config \
1905at91sam9g20ek_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDe7f5aab2009-01-03 17:22:24 +01001906 @mkdir -p $(obj)include
Nicolas Ferre4ef545e2009-03-22 14:48:16 +01001907 @if [ "$(findstring 9g20,$@)" ] ; then \
1908 echo "#define CONFIG_AT91SAM9G20EK 1" >>$(obj)include/config.h ; \
Nicolas Ferre4ef545e2009-03-22 14:48:16 +01001909 else \
1910 echo "#define CONFIG_AT91SAM9260EK 1" >>$(obj)include/config.h ; \
1911 fi;
Nicolas Ferre09e10902008-12-06 13:11:14 +01001912 @if [ "$(findstring _nandflash,$@)" ] ; then \
1913 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001914 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
1915 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001916 else \
1917 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001918 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001919 @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
Ulf Samuelsson1c5fdbf2008-04-12 20:56:03 +02001920
Nicolas Ferreca5bfc12009-01-06 21:13:14 +01001921at91sam9xeek_nandflash_config \
1922at91sam9xeek_dataflash_cs0_config \
1923at91sam9xeek_dataflash_cs1_config \
1924at91sam9xeek_config : unconfig
1925 @mkdir -p $(obj)include
1926 @if [ "$(findstring _nandflash,$@)" ] ; then \
1927 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferreca5bfc12009-01-06 21:13:14 +01001928 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
1929 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
Nicolas Ferreca5bfc12009-01-06 21:13:14 +01001930 else \
1931 echo "#define CONFIG_SYS_USE_DATAFLASH_CS1 1" >>$(obj)include/config.h ; \
Nicolas Ferreca5bfc12009-01-06 21:13:14 +01001932 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001933 @$(MKCONFIG) -n $@ -a at91sam9260ek arm arm926ejs at91sam9260ek atmel at91
Nicolas Ferreca5bfc12009-01-06 21:13:14 +01001934
Nicolas Ferre09e10902008-12-06 13:11:14 +01001935at91sam9261ek_nandflash_config \
1936at91sam9261ek_dataflash_cs0_config \
1937at91sam9261ek_dataflash_cs3_config \
Sedji Gaouaou97a031b2009-06-25 17:04:15 +02001938at91sam9261ek_config \
1939at91sam9g10ek_nandflash_config \
1940at91sam9g10ek_dataflash_cs0_config \
1941at91sam9g10ek_dataflash_cs3_config \
1942at91sam9g10ek_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDe7f5aab2009-01-03 17:22:24 +01001943 @mkdir -p $(obj)include
Sedji Gaouaou97a031b2009-06-25 17:04:15 +02001944 @if [ "$(findstring 9g10,$@)" ] ; then \
1945 echo "#define CONFIG_AT91SAM9G10EK 1" >>$(obj)include/config.h ; \
Sedji Gaouaou97a031b2009-06-25 17:04:15 +02001946 else \
1947 echo "#define CONFIG_AT91SAM9261EK 1" >>$(obj)include/config.h ; \
1948 fi;
Nicolas Ferre09e10902008-12-06 13:11:14 +01001949 @if [ "$(findstring _nandflash,$@)" ] ; then \
1950 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Sedji Gaouaou97a031b2009-06-25 17:04:15 +02001951 elif [ "$(findstring dataflash_cs0,$@)" ] ; then \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001952 echo "#define CONFIG_SYS_USE_DATAFLASH_CS3 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001953 else \
1954 echo "#define CONFIG_SYS_USE_DATAFLASH_CS0 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001955 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001956 @$(MKCONFIG) -n $@ -a at91sam9261ek arm arm926ejs at91sam9261ek atmel at91
Jean-Christophe PLAGNIOL-VILLARDc804eb22008-11-01 10:47:59 +01001957
Jean-Christophe PLAGNIOL-VILLARD32774732009-06-13 12:48:36 +02001958at91sam9263ek_norflash_config \
1959at91sam9263ek_norflash_boot_config \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001960at91sam9263ek_nandflash_config \
1961at91sam9263ek_dataflash_config \
1962at91sam9263ek_dataflash_cs0_config \
Jean-Christophe PLAGNIOL-VILLARDc804eb22008-11-01 10:47:59 +01001963at91sam9263ek_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDe7f5aab2009-01-03 17:22:24 +01001964 @mkdir -p $(obj)include
Nicolas Ferre09e10902008-12-06 13:11:14 +01001965 @if [ "$(findstring _nandflash,$@)" ] ; then \
1966 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD32774732009-06-13 12:48:36 +02001967 elif [ "$(findstring norflash,$@)" ] ; then \
1968 echo "#define CONFIG_SYS_USE_NORFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001969 else \
1970 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001971 fi;
Jean-Christophe PLAGNIOL-VILLARD32774732009-06-13 12:48:36 +02001972 @if [ "$(findstring norflash_boot,$@)" ] ; then \
1973 echo "#define CONFIG_SYS_USE_BOOT_NORFLASH 1" >>$(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD32774732009-06-13 12:48:36 +02001974 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001975 @$(MKCONFIG) -n $@ -a at91sam9263ek arm arm926ejs at91sam9263ek atmel at91
Jean-Christophe PLAGNIOL-VILLARDc804eb22008-11-01 10:47:59 +01001976
Nicolas Ferre09e10902008-12-06 13:11:14 +01001977at91sam9rlek_nandflash_config \
1978at91sam9rlek_dataflash_config \
1979at91sam9rlek_dataflash_cs0_config \
Jean-Christophe PLAGNIOL-VILLARDc804eb22008-11-01 10:47:59 +01001980at91sam9rlek_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDe7f5aab2009-01-03 17:22:24 +01001981 @mkdir -p $(obj)include
Nicolas Ferre09e10902008-12-06 13:11:14 +01001982 @if [ "$(findstring _nandflash,$@)" ] ; then \
1983 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001984 else \
1985 echo "#define CONFIG_SYS_USE_DATAFLASH 1" >>$(obj)include/config.h ; \
Nicolas Ferre09e10902008-12-06 13:11:14 +01001986 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02001987 @$(MKCONFIG) -n $@ -a at91sam9rlek arm arm926ejs at91sam9rlek atmel at91
Jean-Christophe PLAGNIOL-VILLARDc804eb22008-11-01 10:47:59 +01001988
Tom Rix799a05b2009-09-27 11:10:09 -05001989CPU9G20_128M_config \
1990CPU9G20_config \
1991CPU9260_128M_config \
1992CPU9260_config : unconfig
1993 @mkdir -p $(obj)include
1994 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +02001995 @$(MKCONFIG) -n $@ -a cpu9260 arm arm926ejs cpu9260 eukrea at91
Tom Rix799a05b2009-09-27 11:10:09 -05001996
Sedji Gaouaou538566d2009-07-09 10:16:29 +02001997at91sam9m10g45ek_nandflash_config \
1998at91sam9m10g45ek_dataflash_config \
1999at91sam9m10g45ek_dataflash_cs0_config \
2000at91sam9m10g45ek_config \
2001at91sam9g45ekes_nandflash_config \
2002at91sam9g45ekes_dataflash_config \
2003at91sam9g45ekes_dataflash_cs0_config \
2004at91sam9g45ekes_config : unconfig
2005 @mkdir -p $(obj)include
2006 @if [ "$(findstring 9m10,$@)" ] ; then \
2007 echo "#define CONFIG_AT91SAM9M10G45EK 1" >>$(obj)include/config.h ; \
Sedji Gaouaou538566d2009-07-09 10:16:29 +02002008 else \
2009 echo "#define CONFIG_AT91SAM9G45EKES 1" >>$(obj)include/config.h ; \
2010 fi;
Sedji Gaouaou538566d2009-07-09 10:16:29 +02002011 @if [ "$(findstring _nandflash,$@)" ] ; then \
2012 echo "#define CONFIG_SYS_USE_NANDFLASH 1" >>$(obj)include/config.h ; \
Sedji Gaouaou538566d2009-07-09 10:16:29 +02002013 else \
2014 echo "#define CONFIG_ATMEL_SPI 1" >>$(obj)include/config.h ; \
Sedji Gaouaou538566d2009-07-09 10:16:29 +02002015 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002016 @$(MKCONFIG) -n $@ -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91
Sedji Gaouaou538566d2009-07-09 10:16:29 +02002017
Asen Dimovddd0bda2010-04-20 22:49:04 +03002018pm9g45_config : unconfig
2019 @mkdir -p $(obj)include
2020 @$(MKCONFIG) -a pm9g45 arm arm926ejs pm9g45 ronetix at91
2021
Albin Tonnerre4f572d82009-08-24 18:03:26 +02002022SBC35_A9G20_NANDFLASH_config \
2023SBC35_A9G20_EEPROM_config \
2024SBC35_A9G20_config : unconfig
2025 @mkdir -p $(obj)include
2026 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +02002027 @$(MKCONFIG) -n $@ -a sbc35_a9g20 arm arm926ejs sbc35_a9g20 calao at91
Albin Tonnerre4f572d82009-08-24 18:03:26 +02002028
Albin Tonnerre20615462009-08-20 16:04:49 +02002029TNY_A9G20_NANDFLASH_config \
2030TNY_A9G20_EEPROM_config \
2031TNY_A9G20_config \
2032TNY_A9260_NANDFLASH_config \
2033TNY_A9260_EEPROM_config \
2034TNY_A9260_config : unconfig
2035 @mkdir -p $(obj)include
2036 @echo "#define CONFIG_$(@:_config=) 1" >$(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +02002037 @$(MKCONFIG) -n $@ -a tny_a9260 arm arm926ejs tny_a9260 calao at91
Albin Tonnerre20615462009-08-20 16:04:49 +02002038
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02002039########################################################################
2040## ARM Integrator boards - see doc/README-integrator for more info.
2041integratorap_config \
2042ap_config \
2043ap966_config \
2044ap922_config \
2045ap922_XA10_config \
2046ap7_config \
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +01002047ap720t_config \
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02002048ap920t_config \
2049ap926ejs_config \
2050ap946es_config: unconfig
Jean-Christophe PLAGNIOL-VILLARD693a7ae2009-05-17 00:58:37 +02002051 @board/armltd/integrator/split_by_variant.sh ap $@
wdenk4989f872004-03-14 15:06:13 +00002052
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02002053integratorcp_config \
2054cp_config \
2055cp920t_config \
2056cp926ejs_config \
2057cp946es_config \
2058cp1136_config \
2059cp966_config \
2060cp922_config \
2061cp922_XA10_config \
2062cp1026_config: unconfig
Jean-Christophe PLAGNIOL-VILLARD693a7ae2009-05-17 00:58:37 +02002063 @board/armltd/integrator/split_by_variant.sh cp $@
wdenkb3a4a702004-12-10 11:40:40 +00002064
Alessandro Rubini42a98012009-06-22 09:18:37 +02002065nhk8815_config \
2066nhk8815_onenand_config: unconfig
Alessandro Rubinibb930d12009-01-24 18:10:37 +01002067 @mkdir -p $(obj)include
2068 @ > $(obj)include/config.h
2069 @if [ "$(findstring _onenand, $@)" ] ; then \
2070 echo "#define CONFIG_BOOT_ONENAND" >> $(obj)include/config.h; \
Alessandro Rubinibb930d12009-01-24 18:10:37 +01002071 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02002072 @$(MKCONFIG) -n $@ -a nhk8815 arm arm926ejs nhk8815 st nomadik
Alessandro Rubinibb930d12009-01-24 18:10:37 +01002073
Ulf Samuelsson1c5fdbf2008-04-12 20:56:03 +02002074xtract_omap1610xxx = $(subst _cs0boot,,$(subst _cs3boot,,$(subst _cs_autoboot,,$(subst _config,,$1))))
2075
wdenke97d3d92004-02-23 22:22:28 +00002076omap1610inn_config \
2077omap1610inn_cs0boot_config \
2078omap1610inn_cs3boot_config \
wdenk920e91b2004-06-09 15:25:53 +00002079omap1610inn_cs_autoboot_config \
wdenke97d3d92004-02-23 22:22:28 +00002080omap1610h2_config \
2081omap1610h2_cs0boot_config \
wdenk920e91b2004-06-09 15:25:53 +00002082omap1610h2_cs3boot_config \
2083omap1610h2_cs_autoboot_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002084 @mkdir -p $(obj)include
wdenke97d3d92004-02-23 22:22:28 +00002085 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02002086 echo "#define CONFIG_CS0_BOOT" >> .$(obj)include/config.h ; \
wdenk920e91b2004-06-09 15:25:53 +00002087 elif [ "$(findstring _cs_autoboot_, $@)" ] ; then \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02002088 echo "#define CONFIG_CS_AUTOBOOT" >> $(obj)include/config.h ; \
wdenke97d3d92004-02-23 22:22:28 +00002089 else \
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02002090 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
wdenke97d3d92004-02-23 22:22:28 +00002091 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002092 @$(MKCONFIG) -n $@ -a $(call xtract_omap1610xxx,$@) arm arm926ejs omap1610inn ti omap
wdenk7eaacc52003-08-29 22:00:43 +00002093
wdenke3a06802004-06-06 23:13:55 +00002094omap730p2_config \
2095omap730p2_cs0boot_config \
2096omap730p2_cs3boot_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002097 @mkdir -p $(obj)include
wdenke3a06802004-06-06 23:13:55 +00002098 @if [ "$(findstring _cs0boot_, $@)" ] ; then \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002099 echo "#define CONFIG_CS0_BOOT" >> $(obj)include/config.h ; \
wdenke3a06802004-06-06 23:13:55 +00002100 else \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002101 echo "#define CONFIG_CS3_BOOT" >> $(obj)include/config.h ; \
wdenke3a06802004-06-06 23:13:55 +00002102 fi;
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002103 @$(MKCONFIG) -n $@ -a omap730p2 arm arm926ejs omap730p2 ti omap
wdenke3a06802004-06-06 23:13:55 +00002104
Vipin KUMAR6e2998f2010-01-15 19:15:52 +05302105spear300_config \
Vipin KUMARcc0da712010-01-15 19:15:53 +05302106spear310_config \
2107spear320_config : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002108 @$(MKCONFIG) -n $@ -t $@ spear3xx arm arm926ejs $(@:_config=) spear spear
Vipin KUMARb0ea0892010-01-15 19:15:50 +05302109
Vipin KUMAR7cc4c462010-01-15 19:15:48 +05302110spear600_config : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002111 @$(MKCONFIG) -n $@ -t $@ spear6xx arm arm926ejs $(@:_config=) spear spear
Vipin KUMAR7cc4c462010-01-15 19:15:48 +05302112
Jean-Christophe PLAGNIOL-VILLARD82b8e882009-01-28 21:58:03 +01002113SX1_stdout_serial_config \
2114SX1_config: unconfig
2115 @mkdir -p $(obj)include
2116 @if [ "$(findstring _stdout_serial_, $@)" ] ; then \
2117 echo "#undef CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD82b8e882009-01-28 21:58:03 +01002118 else \
2119 echo "#define CONFIG_STDOUT_USBTTY" >> $(obj)include/config.h ; \
Jean-Christophe PLAGNIOL-VILLARD82b8e882009-01-28 21:58:03 +01002120 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002121 @$(MKCONFIG) -n $@ SX1 arm arm925t sx1
wdenk9f664dd2004-06-09 21:50:45 +00002122
wdenk236d3fc2003-12-20 22:45:10 +00002123# TRAB default configuration: 8 MB Flash, 32 MB RAM
wdenk4a5c8a72003-03-06 00:02:04 +00002124trab_config \
wdenkb6b2f0e2003-09-17 22:48:07 +00002125trab_bigram_config \
2126trab_bigflash_config \
wdenkf6a6ac12003-09-17 15:10:32 +00002127trab_old_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002128 @mkdir -p $(obj)include
2129 @mkdir -p $(obj)board/trab
wdenkb6b2f0e2003-09-17 22:48:07 +00002130 @[ -z "$(findstring _bigram,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002131 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2132 echo "#define CONFIG_RAM_32MB" >>$(obj)include/config.h ; \
wdenkb6b2f0e2003-09-17 22:48:07 +00002133 }
2134 @[ -z "$(findstring _bigflash,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002135 { echo "#define CONFIG_FLASH_16MB" >>$(obj)include/config.h ; \
2136 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002137 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
wdenkb6b2f0e2003-09-17 22:48:07 +00002138 }
wdenkf6a6ac12003-09-17 15:10:32 +00002139 @[ -z "$(findstring _old,$@)" ] || \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002140 { echo "#define CONFIG_FLASH_8MB" >>$(obj)include/config.h ; \
2141 echo "#define CONFIG_RAM_16MB" >>$(obj)include/config.h ; \
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002142 echo "TEXT_BASE = 0x0CF40000" >$(obj)board/trab/config.tmp ; \
wdenk4a5c8a72003-03-06 00:02:04 +00002143 }
Wolfgang Denkf2c7ea82010-05-27 23:18:36 +02002144 @$(MKCONFIG) -n $@ -a trab arm arm920t trab - s3c24x0
wdenk7ebf7442002-11-02 23:17:16 +00002145
John Rigby6478a752010-01-25 23:12:58 -07002146tx25_config : unconfig
John Rigby6478a752010-01-25 23:12:58 -07002147 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002148 @$(MKCONFIG) $@ arm arm926ejs tx25 karo mx25
John Rigby6478a752010-01-25 23:12:58 -07002149
Wolfgang Denkf2c7ea82010-05-27 23:18:36 +02002150edb9301_config \
2151edb9302_config \
2152edb9302a_config \
2153edb9307_config \
2154edb9307a_config \
2155edb9312_config \
2156edb9315_config \
2157edb9315a_config: unconfig
2158 @$(MKCONFIG) -n $@ -t $(@:_config=) edb93xx arm arm920t edb93xx - ep93xx
2159
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002160#########################################################################
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02002161# ARM supplied Versatile development boards
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002162#########################################################################
2163
Wolfgang Denk7f88a5e2005-10-06 17:08:18 +02002164versatile_config \
2165versatileab_config \
2166versatilepb_config : unconfig
Jean-Christophe PLAGNIOL-VILLARD98e0d072009-01-29 12:07:21 +01002167 @board/armltd/versatile/split_by_variant.sh $@
wdenkb98ac282004-02-24 00:16:43 +00002168
2169#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +00002170## XScale Systems
wdenk7ebf7442002-11-02 23:17:16 +00002171#########################################################################
2172
Stefan Roese1b5f1ff2007-01-18 16:05:47 +01002173pdnb3_config \
Wolfgang Denk19b68c42008-03-04 14:58:31 +01002174scpu_config: unconfig
Wolfgang Denk4d5a8e32007-08-02 00:48:45 +02002175 @mkdir -p $(obj)include
Stefan Roese1b5f1ff2007-01-18 16:05:47 +01002176 @if [ "$(findstring scpu_,$@)" ] ; then \
Wolfgang Denk19b68c42008-03-04 14:58:31 +01002177 echo "#define CONFIG_SCPU" >>$(obj)include/config.h ; \
Stefan Roese1b5f1ff2007-01-18 16:05:47 +01002178 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02002179 @$(MKCONFIG) -n $@ -a pdnb3 arm ixp pdnb3 prodrive
Wolfgang Denk4646d2a2006-05-30 15:56:48 +02002180
Stefano Babice33f8042009-07-01 20:40:41 +02002181polaris_config \
stefano babic6708a602007-08-30 23:01:49 +02002182trizepsiv_config : unconfig
Stefano Babice33f8042009-07-01 20:40:41 +02002183 @mkdir -p $(obj)include
2184 @if [ "$(findstring polaris,$@)" ] ; then \
2185 echo "#define CONFIG_POLARIS 1" >>$(obj)include/config.h ; \
2186 fi;
Wolfgang Denk625bd332010-05-27 23:18:33 +02002187 @$(MKCONFIG) -n $@ -a trizepsiv arm pxa trizepsiv
stefano babic6708a602007-08-30 23:01:49 +02002188
Marek Vasut1e847582010-03-07 23:35:48 +01002189vpac270_nor_config \
2190vpac270_onenand_config : unconfig
2191 @mkdir -p $(obj)include
2192 @if [ "$(findstring onenand,$@)" ] ; then \
2193 echo "#define CONFIG_ONENAND_U_BOOT" \
2194 >>$(obj)include/config.h ; \
2195 fi;
2196 @$(MKCONFIG) -n $@ -a vpac270 arm pxa vpac270
2197
Wolfgang Denke24ec722010-05-27 23:18:35 +02002198#########################################################################
2199## ARM1136 Systems
2200#########################################################################
wdenkb02744a2003-04-05 00:53:31 +00002201
Peter Pearseba348b52007-11-09 15:24:26 +00002202apollon_config : unconfig
Wolfgang Denkec40b4c2009-12-06 00:26:19 +01002203 @mkdir -p $(obj)include
Kyungmin Park33174212008-01-17 16:43:25 +09002204 @echo "#define CONFIG_ONENAND_U_BOOT" > $(obj)include/config.h
Kyungmin Park33174212008-01-17 16:43:25 +09002205 @echo "CONFIG_ONENAND_U_BOOT = y" >> $(obj)include/config.mk
Wolfgang Denkf2c7ea82010-05-27 23:18:36 +02002206 @$(MKCONFIG) $@ arm arm1136 apollon - omap24xx
Peter Pearseba348b52007-11-09 15:24:26 +00002207
Guennadi Liakhovetskie99f10a2009-02-24 10:44:02 +01002208imx31_phycore_eet_config \
Sascha Hauera5864c02008-03-26 20:41:17 +01002209imx31_phycore_config : unconfig
Guennadi Liakhovetski46d94732009-04-05 00:37:07 +02002210 @mkdir -p $(obj)include
Guennadi Liakhovetskie99f10a2009-02-24 10:44:02 +01002211 @if [ -n "$(findstring _eet_,$@)" ]; then \
2212 echo "#define CONFIG_IMX31_PHYCORE_EET" >> $(obj)include/config.h; \
2213 fi
Wolfgang Denkf2c7ea82010-05-27 23:18:36 +02002214 @$(MKCONFIG) -n $@ -a imx31_phycore arm arm1136 imx31_phycore - mx31
Sascha Hauera5864c02008-03-26 20:41:17 +01002215
Magnus Lilja24f8b412009-07-04 10:31:24 +02002216mx31pdk_config \
2217mx31pdk_nand_config : unconfig
2218 @mkdir -p $(obj)include
2219 @if [ -n "$(findstring _nand_,$@)" ]; then \
2220 echo "#define CONFIG_NAND_U_BOOT" >> $(obj)include/config.h; \
2221 else \
2222 echo "#define CONFIG_SKIP_LOWLEVEL_INIT" >> $(obj)include/config.h; \
2223 echo "#define CONFIG_SKIP_RELOCATE_UBOOT" >> $(obj)include/config.h; \
2224 fi
Wolfgang Denk625bd332010-05-27 23:18:33 +02002225 @$(MKCONFIG) -n $@ -a mx31pdk arm arm1136 mx31pdk freescale mx31
Magnus Lilja6eeb6f72009-07-01 01:07:55 +02002226
Guennadi Liakhovetskib2d42742008-08-31 00:39:47 +02002227#########################################################################
2228## ARM1176 Systems
2229#########################################################################
2230smdk6400_noUSB_config \
2231smdk6400_config : unconfig
2232 @mkdir -p $(obj)include $(obj)board/samsung/smdk6400
2233 @mkdir -p $(obj)nand_spl/board/samsung/smdk6400
2234 @echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
Wolfgang Denk625bd332010-05-27 23:18:33 +02002235 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
Guennadi Liakhovetskib2d42742008-08-31 00:39:47 +02002236 @if [ -z "$(findstring smdk6400_noUSB_config,$@)" ]; then \
2237 echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
Guennadi Liakhovetskib2d42742008-08-31 00:39:47 +02002238 else \
2239 echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6400/config.tmp;\
Guennadi Liakhovetskib2d42742008-08-31 00:39:47 +02002240 fi
Wolfgang Denked6372a2010-06-18 01:20:49 +02002241 @$(MKCONFIG) smdk6400 arm arm1176 smdk6400 samsung s3c64xx
Guennadi Liakhovetskib2d42742008-08-31 00:39:47 +02002242 @echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
2243
wdenk591dda52002-11-18 00:14:45 +00002244#========================================================================
wdenk4a5c8a72003-03-06 00:02:04 +00002245# MIPS
2246#========================================================================
wdenk7ebf7442002-11-02 23:17:16 +00002247#########################################################################
wdenk4a5c8a72003-03-06 00:02:04 +00002248## MIPS32 4Kc
2249#########################################################################
2250
wdenk5d841732003-08-17 18:55:18 +00002251incaip_100MHz_config \
2252incaip_133MHz_config \
2253incaip_150MHz_config \
2254incaip_config: unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002255 @mkdir -p $(obj)include
wdenk5d841732003-08-17 18:55:18 +00002256 @[ -z "$(findstring _100MHz,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02002257 echo "#define CPU_CLOCK_RATE 100000000" >>$(obj)include/config.h
wdenk5d841732003-08-17 18:55:18 +00002258 @[ -z "$(findstring _133MHz,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02002259 echo "#define CPU_CLOCK_RATE 133000000" >>$(obj)include/config.h
wdenk5d841732003-08-17 18:55:18 +00002260 @[ -z "$(findstring _150MHz,$@)" ] || \
Wolfgang Denk625bd332010-05-27 23:18:33 +02002261 echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h
2262 @$(MKCONFIG) -n $@ -a incaip mips mips incaip
wdenk5d841732003-08-17 18:55:18 +00002263
Stefan Roeseee7a6ba2009-01-21 17:25:01 +01002264vct_premium_config \
2265vct_premium_small_config \
2266vct_premium_onenand_config \
2267vct_premium_onenand_small_config \
2268vct_platinum_config \
2269vct_platinum_small_config \
2270vct_platinum_onenand_config \
2271vct_platinum_onenand_small_config \
2272vct_platinumavc_config \
2273vct_platinumavc_small_config \
2274vct_platinumavc_onenand_config \
2275vct_platinumavc_onenand_small_config: unconfig
2276 @mkdir -p $(obj)include
Wolfgang Denk625bd332010-05-27 23:18:33 +02002277 @[ -z "$(findstring _premium,$@)" ] || \
2278 echo "#define CONFIG_VCT_PREMIUM" > $(obj)include/config.h
2279 @[ -z "$(findstring _platinum_,$@)" ] || \
2280 echo "#define CONFIG_VCT_PLATINUM" > $(obj)include/config.h
2281 @[ -z "$(findstring _platinumavc,$@)" ] || \
2282 echo "#define CONFIG_VCT_PLATINUMAVC" > $(obj)include/config.h
2283 @[ -z "$(findstring _onenand,$@)" ] || \
2284 echo "#define CONFIG_VCT_ONENAND" >> $(obj)include/config.h
2285 @[ -z "$(findstring _small,$@)" ] || \
2286 echo "#define CONFIG_VCT_SMALL_IMAGE" >> $(obj)include/config.h
2287 @$(MKCONFIG) -n $@ -a vct mips mips vct micronas
Stefan Roeseee7a6ba2009-01-21 17:25:01 +01002288
wdenk5d841732003-08-17 18:55:18 +00002289#########################################################################
wdenkcd914452004-05-29 16:53:29 +00002290## MIPS32 AU1X00
2291#########################################################################
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002292
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +01002293dbau1000_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002294 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002295 @echo "#define CONFIG_DBAU1000 1" >$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002296 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenkcd914452004-05-29 16:53:29 +00002297
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +01002298dbau1100_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002299 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002300 @echo "#define CONFIG_DBAU1100 1" >$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002301 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenkcd914452004-05-29 16:53:29 +00002302
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +01002303dbau1500_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002304 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002305 @echo "#define CONFIG_DBAU1500 1" >$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002306 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenkcd914452004-05-29 16:53:29 +00002307
wdenk96c7a8c2005-01-09 22:28:56 +00002308dbau1550_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002309 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002310 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002311 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenk96c7a8c2005-01-09 22:28:56 +00002312
2313dbau1550_el_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002314 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002315 @echo "#define CONFIG_DBAU1550 1" >$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002316 @$(MKCONFIG) -a dbau1x00 mips mips dbau1x00
wdenk96c7a8c2005-01-09 22:28:56 +00002317
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002318gth2_config : unconfig
2319 @mkdir -p $(obj)include
2320 @echo "#define CONFIG_GTH2 1" >$(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002321 @$(MKCONFIG) -a $@ mips mips gth2
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002322
Wolfgang Denk87b3d4b2006-11-30 18:02:20 +01002323pb1000_config : unconfig
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002324 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002325 @echo "#define CONFIG_PB1000 1" >$(obj)include/config.h
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002326 @$(MKCONFIG) -a pb1x00 mips mips pb1x00
Wolfgang Denk0cbaf642005-09-25 00:53:22 +02002327
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002328qemu_mips_config : unconfig
Vlad Lungu635e76c2008-01-16 19:27:51 +02002329 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002330 @echo "#define CONFIG_QEMU_MIPS 1" >$(obj)include/config.h
Vlad Lungu635e76c2008-01-16 19:27:51 +02002331 @$(MKCONFIG) -a qemu-mips mips mips qemu-mips
2332
wdenk60164a82003-10-08 23:26:14 +00002333#========================================================================
2334# Nios
2335#========================================================================
wdenk60164a82003-10-08 23:26:14 +00002336
wdenkef3386f2004-10-10 21:27:30 +00002337#########################################################################
2338## Nios-II
2339#########################################################################
2340
Thomas Chou7ffbbf52010-04-21 08:40:59 +08002341# nios2 generic boards
2342NIOS2_GENERIC = nios2-generic
2343
2344$(NIOS2_GENERIC:%=%_config) : unconfig
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002345 @$(MKCONFIG) $@ nios2 nios2 nios2-generic altera
Thomas Chou7ffbbf52010-04-21 08:40:59 +08002346
wdenk12490652004-04-18 21:13:41 +00002347#========================================================================
Mike Frysinger18ba9f82008-02-04 19:26:55 -05002348# Blackfin
2349#========================================================================
Wolfgang Denk46d2b522006-03-12 02:10:00 +01002350
Michael Henneriche9621622009-12-10 09:19:21 +00002351bf527-ezkit-v2_config : unconfig
2352 @$(MKCONFIG) -t BF527_EZKIT_REV_2_1 \
2353 bf527-ezkit blackfin blackfin bf527-ezkit
2354
Haavard Skinnemoen79f35b92006-10-25 15:48:59 +02002355#========================================================================
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002356# SH3 (SuperH)
2357#========================================================================
wdenk7ebf7442002-11-02 23:17:16 +00002358
Nobuhiro Iwamatsu45254852007-05-13 21:01:03 +09002359#########################################################################
Nobuhiro Iwamatsu6f7d4362008-08-31 23:02:04 +09002360## sh2 (Renesas SuperH)
2361#########################################################################
2362rsk7203_config: unconfig
Kieran Binghamc7e4e352008-12-30 01:16:03 +00002363 @mkdir -p $(obj)include
Peter Griffinde8cd4d2009-02-10 16:44:45 +00002364 @echo "#define CONFIG_RSK7203 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002365 @$(MKCONFIG) -a $@ sh sh2 rsk7203 renesas
Nobuhiro Iwamatsu6f7d4362008-08-31 23:02:04 +09002366
2367#########################################################################
Yoshihiro Shimodadad925c2007-12-03 22:58:50 +09002368## sh3 (Renesas SuperH)
2369#########################################################################
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002370
Mark Jonas35a398a2008-03-10 11:37:10 +01002371mpr2_config: unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02002372 @mkdir -p $(obj)include
2373 @echo "#define CONFIG_MPR2 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002374 @$(MKCONFIG) -a $@ sh sh3 mpr2
Mark Jonas35a398a2008-03-10 11:37:10 +01002375
Yoshihiro Shimodadad925c2007-12-03 22:58:50 +09002376ms7720se_config: unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02002377 @mkdir -p $(obj)include
2378 @echo "#define CONFIG_MS7720SE 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002379 @$(MKCONFIG) -a $@ sh sh3 ms7720se
Yoshihiro Shimodadad925c2007-12-03 22:58:50 +09002380
2381#########################################################################
Nobuhiro Iwamatsu45254852007-05-13 21:01:03 +09002382## sh4 (Renesas SuperH)
2383#########################################################################
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002384
2385MigoR_config : unconfig
2386 @mkdir -p $(obj)include
2387 @echo "#define CONFIG_MIGO_R 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002388 @$(MKCONFIG) -a $@ sh sh4 MigoR renesas
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002389
Nobuhiro Iwamatsu45254852007-05-13 21:01:03 +09002390ms7750se_config: unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02002391 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002392 @echo "#define CONFIG_MS7750SE 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002393 @$(MKCONFIG) -a $@ sh sh4 ms7750se
Nobuhiro Iwamatsu45254852007-05-13 21:01:03 +09002394
Wolfgang Denk19b68c42008-03-04 14:58:31 +01002395ms7722se_config : unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02002396 @mkdir -p $(obj)include
Wolfgang Denkf10a5de2008-03-09 00:06:09 +01002397 @echo "#define CONFIG_MS7722SE 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002398 @$(MKCONFIG) -a $@ sh sh4 ms7722se
wdenkabda5ca2003-05-31 18:35:21 +00002399
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002400r2dplus_config : unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02002401 @mkdir -p $(obj)include
Wolfgang Denk28d8d702008-07-15 22:22:44 +02002402 @echo "#define CONFIG_R2DPLUS 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002403 @$(MKCONFIG) -a $@ sh sh4 r2dplus renesas
goda.yusukefd768072008-01-25 20:46:36 +09002404
Yusuke Godacf236022008-03-11 12:55:12 +09002405r7780mp_config: unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02002406 @mkdir -p $(obj)include
2407 @echo "#define CONFIG_R7780MP 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002408 @$(MKCONFIG) -a $@ sh sh4 r7780mp renesas
Yusuke Godacf236022008-03-11 12:55:12 +09002409
Nobuhiro Iwamatsu113a37e2008-06-09 13:39:57 +09002410sh7763rdp_config : unconfig
Wolfgang Denk741c6882008-07-07 00:45:03 +02002411 @mkdir -p $(obj)include
2412 @echo "#define CONFIG_SH7763RDP 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002413 @$(MKCONFIG) -a $@ sh sh4 sh7763rdp renesas
Nobuhiro Iwamatsu113a37e2008-06-09 13:39:57 +09002414
Yoshihiro Shimoda22dc9ec2009-03-03 15:11:17 +09002415sh7785lcr_32bit_config \
Nobuhiro Iwamatsu52f73c02008-08-31 22:45:08 +09002416sh7785lcr_config : unconfig
Jean-Christophe PLAGNIOL-VILLARDb24d23c2009-06-04 12:06:43 +02002417 @mkdir -p $(obj)include
2418 @mkdir -p $(obj)board/renesas/sh7785lcr
2419 @echo "#define CONFIG_SH7785LCR 1" > $(obj)include/config.h
Yoshihiro Shimoda22dc9ec2009-03-03 15:11:17 +09002420 @if [ "$(findstring 32bit, $@)" ] ; then \
2421 echo "#define CONFIG_SH_32BIT 1" >> $(obj)include/config.h ; \
Yoshihiro Shimoda22dc9ec2009-03-03 15:11:17 +09002422 echo "TEXT_BASE = 0x8ff80000" > \
2423 $(obj)board/renesas/sh7785lcr/config.tmp ; \
Yoshihiro Shimoda22dc9ec2009-03-03 15:11:17 +09002424 fi
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002425 @$(MKCONFIG) -n $@ -a sh7785lcr sh sh4 sh7785lcr renesas
Nobuhiro Iwamatsu52f73c02008-08-31 22:45:08 +09002426
Nobuhiro Iwamatsu3e590432008-08-22 17:39:09 +09002427ap325rxa_config : unconfig
2428 @mkdir -p $(obj)include
2429 @echo "#define CONFIG_AP325RXA 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002430 @$(MKCONFIG) -a $@ sh sh4 ap325rxa renesas
Nobuhiro Iwamatsu3e590432008-08-22 17:39:09 +09002431
Nobuhiro Iwamatsud1f2a0c2009-06-25 16:31:26 +09002432espt_config : unconfig
2433 @mkdir -p $(obj)include
2434 @echo "#define CONFIG_ESPT 1" > $(obj)include/config.h
Wolfgang Denka97b6ab2010-05-27 23:18:34 +02002435 @$(MKCONFIG) -a $@ sh sh4 espt
Nobuhiro Iwamatsud1f2a0c2009-06-25 16:31:26 +09002436
wdenk7ebf7442002-11-02 23:17:16 +00002437#########################################################################
wdenk7ebf7442002-11-02 23:17:16 +00002438#########################################################################
2439
2440clean:
Peter Tyser07a8af32009-07-10 11:03:19 -05002441 @rm -f $(obj)examples/standalone/82559_eeprom \
Wolfgang Denk96b0dfd2009-09-07 23:52:31 +02002442 $(obj)examples/standalone/atmel_df_pow2 \
Peter Tyser07a8af32009-07-10 11:03:19 -05002443 $(obj)examples/standalone/eepro100_eeprom \
2444 $(obj)examples/standalone/hello_world \
2445 $(obj)examples/standalone/interrupt \
2446 $(obj)examples/standalone/mem_to_mem_idma2intr \
2447 $(obj)examples/standalone/sched \
2448 $(obj)examples/standalone/smc91111_eeprom \
2449 $(obj)examples/standalone/test_burst \
2450 $(obj)examples/standalone/timer
Peter Tyseracce4eb2009-07-20 19:02:21 -05002451 @rm -f $(obj)examples/api/demo{,.bin}
Wolfgang Denk19b68c42008-03-04 14:58:31 +01002452 @rm -f $(obj)tools/bmp_logo $(obj)tools/easylogo/easylogo \
2453 $(obj)tools/env/{fw_printenv,fw_setenv} \
2454 $(obj)tools/envcrc \
2455 $(obj)tools/gdb/{astest,gdbcont,gdbsend} \
2456 $(obj)tools/gen_eth_addr $(obj)tools/img2srec \
2457 $(obj)tools/mkimage $(obj)tools/mpc86x_clk \
2458 $(obj)tools/ncb $(obj)tools/ubsha1
2459 @rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image} \
2460 $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \
2461 $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \
Wolfgang Denk375babe2009-02-22 01:17:47 +01002462 $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \
Wolfgang Denk18d46c02009-08-17 14:00:53 +02002463 $(obj)u-boot.lds \
Peter Tyser12e57652010-04-12 22:28:13 -05002464 $(obj)arch/blackfin/cpu/bootrom-asm-offsets.[chs]
Wolfgang Denk3cf55ef2008-04-20 15:39:38 -07002465 @rm -f $(obj)include/bmp_logo.h
Wolfgang Denk18d46c02009-08-17 14:00:53 +02002466 @rm -f $(obj)nand_spl/{u-boot.lds,u-boot-spl,u-boot-spl.map,System.map}
Kyungmin Parkafb72e42009-09-22 09:05:00 +09002467 @rm -f $(obj)onenand_ipl/onenand-{ipl,ipl.bin,ipl.map}
2468 @rm -f $(ONENAND_BIN)
Wolfgang Denk18d46c02009-08-17 14:00:53 +02002469 @rm -f $(obj)onenand_ipl/u-boot.lds
Peter Tyseracce4eb2009-07-20 19:02:21 -05002470 @rm -f $(TIMESTAMP_FILE) $(VERSION_FILE)
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01002471 @find $(OBJTREE) -type f \
wdenk7ebf7442002-11-02 23:17:16 +00002472 \( -name 'core' -o -name '*.bak' -o -name '*~' \
Peter Tyser1ba4b312009-03-13 18:54:26 -05002473 -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \
wdenk7ebf7442002-11-02 23:17:16 +00002474 | xargs rm -f
wdenk7ebf7442002-11-02 23:17:16 +00002475
2476clobber: clean
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01002477 @find $(OBJTREE) -type f \( -name .depend \
wdenkaeba06f2004-06-09 17:34:58 +00002478 -o -name '*.srec' -o -name '*.bin' -o -name u-boot.img \) \
2479 -print0 \
2480 | xargs -0 rm -f
Li Yang8c6dcf02008-02-29 11:46:05 +08002481 @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
Wolfgang Denk6570eb32008-03-02 22:45:33 +01002482 $(obj)cscope.* $(obj)*.*~
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01002483 @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
Prafulla Wadaskar07329412009-09-07 15:05:02 +05302484 @rm -f $(obj)u-boot.kwb
Stefano Babic421834e2010-02-05 15:13:58 +01002485 @rm -f $(obj)u-boot.imx
Peter Tyserbd5605b2009-03-13 18:54:47 -05002486 @rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes}
Stefan Roese88fbf932010-04-15 16:07:28 +02002487 @rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01002488 @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
Jean-Christophe PLAGNIOL-VILLARD70e976e2008-08-16 18:54:27 +02002489 @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
2490 @[ ! -d $(obj)onenand_ipl ] || find $(obj)onenand_ipl -name "*" -type l -print | xargs rm -f
wdenk7ebf7442002-11-02 23:17:16 +00002491
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002492ifeq ($(OBJTREE),$(SRCTREE))
2493mrproper \
2494distclean: clobber unconfig
2495else
wdenk7ebf7442002-11-02 23:17:16 +00002496mrproper \
2497distclean: clobber unconfig
Wolfgang Denk0a659ad2008-01-13 00:59:21 +01002498 rm -rf $(obj)*
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002499endif
wdenk7ebf7442002-11-02 23:17:16 +00002500
2501backup:
2502 F=`basename $(TOPDIR)` ; cd .. ; \
Ilya Yanokd2b096d2010-06-21 18:13:21 +04002503 gtar --force-local -zcvf `LC_ALL=C date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
wdenk7ebf7442002-11-02 23:17:16 +00002504
2505#########################################################################